/* =========================
   ========== FONTS ==========
   ========================= */
@font-face {
  font-family: 'Akira Expanded';
  src: url('assets/fonts/akira_expanded_demo-webfont.woff2') format('woff2'),
       url('assets/fonts/akira_expanded_demo-webfont.woff') format('woff');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Koch Regular';
  src: url('assets/fonts/Koch Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

/* =========================
   ========== RESET ==========
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --site-bg: #ebe1bd;
  --ink: #000;
  --muted-ink: rgba(0, 0, 0, 0.58);
  --page-pad: clamp(1rem, 2.2vw, 2rem);
  --nav-width: clamp(8.8rem, 10.5vw, 10.5rem);
  --nav-gap: clamp(0.45rem, 0.75vw, 0.75rem);
  --nav-font: clamp(0.82rem, 0.75vw + 0.55rem, 1.1rem);
  --ui-font: clamp(0.9rem, 0.55vw + 0.75rem, 1.15rem);
  --logo-width: clamp(5.8rem, 8vw, 8.5rem);
  --border: 1px solid var(--ink);
  --app-height: 100dvh;
  --frost-bg: rgba(235, 225, 189, 0.58);
  --frost-border: rgba(0, 0, 0, 0.28);
  --frost-shadow: 0 0.55rem 1.45rem rgba(0, 0, 0, 0.07);
}

html {
  font-size: clamp(16px, 0.45vw + 14px, 21px);
  -webkit-text-size-adjust: 100%;
}

/* =========================
   ========== BODY ==========
   ========================= */
body {
  background: var(--site-bg);
  color: #111;
  font-family: 'Koch Regular', sans-serif;
  font-size: clamp(18px, 0.85vw + 14px, 28px);
  -webkit-text-stroke: .45pt;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-height);
  overflow-x: hidden;
  overflow-y: auto;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

img {
  backface-visibility: hidden;
}

.volume-tile-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: grid;
  width: 100vw;
  height: var(--app-height);
  min-height: 100vh;
  overflow: hidden;
  opacity: 0.16;
  pointer-events: none;
  background: transparent;
  contain: layout paint style;
}

.volume-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
  contain: paint;
  opacity: 1;
  animation: volume-tile-fade var(--tile-fade-duration, 12000ms) linear var(--tile-fade-delay, 0ms) infinite both;
  will-change: opacity;
}

.volume-tile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
}

@keyframes volume-tile-fade {
  0%, 62% {
    opacity: 1;
  }

  72%, 78% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

button,
summary,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
summary,
a {
  touch-action: manipulation;
}

body.store-page {
  height: 100vh;
  height: 100dvh;
  height: var(--app-height);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

body.lock-scroll {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  height: var(--app-height);
}

/* =========================
   ========== LOGO TOP ==========
   ========================= */
#logo-top-center {
  position: fixed;
  top: var(--page-pad);
  left: 50%;
  transform: translateX(-50%);
  max-width: var(--logo-width);
  width: 100%;
  height: auto;
  z-index: 1004;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#logo-top-center.visible {
  opacity: 0.85;
  visibility: visible;
}


/* =========================
   ========== LANDING SCREEN ==========
   ========================= */
#landing {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  height: var(--app-height);
  background: black;
  overflow: hidden;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s ease;
  opacity: 1;
  pointer-events: auto;
}

#landing.fade-out {
  opacity: 0;
  pointer-events: none;
}

#landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  z-index: 0;
}

#landing video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.landing-logo {
  width: clamp(88px, 14vw, 150px);
  margin-bottom: 2rem;
  opacity: 0.9;
  pointer-events: auto;
  cursor: pointer;
  z-index: 1;
}

.enter-button {
  cursor: pointer;
  border: 1px solid #fff;
  padding: clamp(0.85rem, 1.4vw, 1.25rem) clamp(1.7rem, 3vw, 2.7rem);
  font-size: var(--ui-font);
  transition: all 0.2s ease;
  z-index: 1;
}

.enter-button:hover {
  background: #fff;
  color: #000;
}

/* =========================
   ========== HOME INDEX ==========
   ========================= */
.home-index-page {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-height);
  background: #ebe1bd;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  text-align: center;
}

.home-index-wrap {
  width: min(480px, 86vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-index-logo {
  width: clamp(88px, 15vw, 150px);
  opacity: 0.9;
  pointer-events: auto;
  cursor: pointer;
  margin-bottom: 2rem;
}

.site-index {
  position: fixed;
  top: var(--page-pad);
  right: var(--page-pad);
  z-index: 1003;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--nav-gap);
  width: var(--nav-width);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

body.show-ui .site-index {
  opacity: 1;
  pointer-events: auto;
}

.site-index-dropdown {
  position: fixed;
  top: var(--page-pad);
  right: var(--page-pad);
  z-index: 3000;
  width: var(--nav-width);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  will-change: opacity, transform;
}

body.show-ui .site-index-dropdown {
  opacity: 1;
  pointer-events: auto;
}

body > :not(.site-index-dropdown):not(script):not(style) {
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

body.index-open > :not(.site-index-dropdown):not(script):not(style) {
  filter: blur(10px);
  opacity: 0.42;
  pointer-events: none;
}

body.index-open .site-index-dropdown {
  filter: none;
  opacity: 1;
}

body.page-transitioning > :not(.site-index-dropdown):not(script):not(style) {
  filter: blur(18px);
  opacity: 0.16;
  transform: scale(0.985);
  pointer-events: none;
}

body.page-transitioning .site-index-dropdown {
  filter: blur(2px);
  opacity: 0;
  transform: translateY(-0.25rem) scale(0.985);
  pointer-events: none;
  transition: filter 0.24s ease, opacity 0.24s ease, transform 0.24s ease;
}

@media (prefers-reduced-motion: reduce) {
  body > :not(.site-index-dropdown):not(script):not(style),
  .site-index-dropdown,
  .site-index,
  .site-index a,
  .site-index-dropdown summary {
    transition-duration: 0.001ms !important;
  }
}

.site-index-dropdown summary {
  display: block;
  color: var(--ink);
  border: 1px solid var(--frost-border);
  background: var(--frost-bg);
  box-shadow: var(--frost-shadow);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  border-radius: 0;
  padding: clamp(0.52rem, 0.62vw, 0.7rem) clamp(0.68rem, 0.9vw, 0.86rem);
  font-size: var(--nav-font);
  font-weight: bold;
  font-family: 'Koch Regular', sans-serif;
  text-align: center;
  line-height: 1.05;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-index-dropdown summary::-webkit-details-marker {
  display: none;
}

.site-index-dropdown summary:hover,
.site-index-dropdown[open] summary,
.site-index-dropdown:focus-within summary {
  background: rgba(0, 0, 0, 0.76);
  border-color: rgba(0, 0, 0, 0.58);
  color: #fff;
}

.site-index-dropdown .site-index {
  position: static;
  width: 100%;
  margin-top: var(--nav-gap);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: none;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.site-index-dropdown[open] .site-index,
.site-index-dropdown:hover .site-index,
.site-index-dropdown:focus-within .site-index {
  max-height: 32rem;
  opacity: 1;
  pointer-events: auto;
}

.site-index a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--frost-border);
  background: var(--frost-bg);
  box-shadow: var(--frost-shadow);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  border-radius: 0;
  padding: clamp(0.52rem, 0.62vw, 0.7rem) clamp(0.68rem, 0.9vw, 0.86rem);
  font-size: var(--nav-font);
  font-weight: bold;
  font-family: 'Koch Regular', sans-serif;
  text-align: center;
  line-height: 1.05;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-index a:hover,
.site-index a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.76);
  border-color: rgba(0, 0, 0, 0.58);
  color: #fff;
}

.site-index-spacer {
  display: block;
  height: clamp(0.55rem, 0.75vw, 0.85rem);
  pointer-events: none;
}

.home-index-page .site-index {
  position: static;
  width: min(var(--nav-width), 100%);
}

@media (max-width: 760px) {
  :root {
    --page-pad: max(0.85rem, env(safe-area-inset-left));
    --nav-width: min(9.4rem, calc(100vw - 1.7rem));
    --nav-gap: 0.42rem;
    --nav-font: clamp(0.86rem, 2.9vw, 1.05rem);
    --ui-font: clamp(0.98rem, 3.25vw, 1.15rem);
    --logo-width: clamp(4.5rem, 19vw, 6rem);
  }

  html {
    font-size: 16px;
  }

  body {
    font-size: clamp(18px, 4.35vw, 21px);
    -webkit-text-stroke: 0.28pt;
  }

  body.store-page {
    scroll-snap-type: none;
  }

  .home-index-page {
    overflow-y: auto;
    padding: calc(1rem + env(safe-area-inset-top)) 1rem calc(1rem + env(safe-area-inset-bottom));
  }

  .site-index {
    top: auto;
    right: auto;
    bottom: calc(var(--page-pad) + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: min(21rem, calc(100vw - (var(--page-pad) * 2)));
  }

  .site-index-dropdown {
    top: calc(0.85rem + env(safe-area-inset-top));
    right: 0.85rem;
    bottom: auto;
    left: auto;
    width: min(9.4rem, calc(100vw - 1.7rem));
    transform: none;
  }

  body.page-transitioning > :not(.site-index-dropdown):not(script):not(style) {
    transform: none;
  }

  .site-index-dropdown .site-index {
    max-height: 0;
  }

  .home-index-page .site-index {
    transform: none;
    width: min(var(--nav-width), 100%);
  }
}

/* =========================
   ========== PRODUCT MODULE ==========
   ========================= */
#product-stack {
  display: flex;
  flex-direction: column;
}

.product-module {
  scroll-snap-align: start;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-height);
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--site-bg);
  position: relative;
  padding: calc(var(--page-pad) * 3) var(--page-pad);
  overflow: hidden;
}

.oversized-logo {
  position: absolute;
  bottom: 19rem;
  left: 5rem;
  width: 300px;
  height: auto;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}



/* =========================
   ========== UI ==========
   ========================= */
.product-ui {
  border: var(--border);
  width: clamp(16rem, 20vw, 23rem);
  padding: clamp(0.95rem, 1vw, 1.35rem);
  font-size: var(--ui-font);
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 0.75vw, 0.9rem);
  line-height: 1.2;
  margin-top: clamp(7rem, 14vh, 12rem);
  position: relative;
  z-index: 2;
  transform: translateX(clamp(-3rem, -3vw, -1rem));
}

.product-title {
  font-family: 'Akira Expanded', sans-serif;
  font-weight: 800;
}

.product-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.size-options {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.size-option {
  cursor: pointer;
  color: #000;
  transition: color 0.2s ease;
}

.size-option.active {
  color: #0000ff;
}

.cart-circle {
  width: clamp(9rem, 11vw, 12.5rem);
  height: clamp(9rem, 11vw, 12.5rem);
  border: 1px solid #999;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #999;
  transition: all 0.2s ease;
  cursor: not-allowed;
  font-size: 0.9em;
  text-align: center;
}

.cart-circle.active {
  color: #0000ff;
  border-color: #0000ff;
  cursor: pointer;
}

.product-footer {
  display: flex;
  justify-content: flex-start;
}

.price {
  color: #0000ff;
  font-weight: normal;
}

.comfort-description {
  margin-top: clamp(1rem, 1.4vw, 1.5rem);
  font-size: clamp(0.78rem, 0.42vw + 0.64rem, 0.95rem);
  max-width: clamp(20rem, 26vw, 32rem);
  line-height: 1.4;
  opacity: 0.75;
  position: relative;
  z-index: 2;
}

/* =========================
   ========== CART UI ==========
   ========================= */
.cart-page {
  padding: calc(var(--page-pad) * 4) var(--page-pad) calc(var(--page-pad) * 2);
  background: var(--site-bg);
  color: #000;
  font-family: 'Koch Regular', sans-serif;
  font-size: var(--ui-font);
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-height);
  width: min(56rem, calc(100vw - (var(--page-pad) * 2)));
  margin: 0 auto;
}

.cart-page h1 {
  font-size: clamp(2rem, 3vw, 3.25rem);
  margin-bottom: 1.5rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ccc;
  gap: clamp(0.75rem, 1vw, 1.25rem);
  padding: clamp(1rem, 1.2vw, 1.35rem) 0;
}

.item-name { font-weight: bold; }
.item-details {
  min-width: 12rem;
}
.item-meta {
  color: #555;
  font-size: 0.9em;
  margin-top: 0.25rem;
  text-transform: lowercase;
}
.item-price { color: #0000ff; }

.remove-button {
  background: none;
  border: 1px solid #999;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: #000;
}

.cart-summary {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#checkout-button {
  padding: 0.75rem 1.5rem;
  background: #000;
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

#checkout-button:disabled,
#clear-cart:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.cart-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

#clear-cart {
  border: 1px solid #000;
  background: transparent;
  color: #000;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  padding: 0.75rem 1.25rem;
}

.cart-empty {
  border-top: 1px solid #ccc;
  padding: 1rem 0;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background: transparent;
  border: 1px solid #aaa;
  padding: 0.35rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
}

.qty-btn:hover { background: #ddd; }
.quantity { min-width: 1.5rem; text-align: center; }
.item-total { font-weight: bold; color: #0000ff; }

/* =========================
   ========== SOUND ==========
   ========================= */
.sound-page {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-height);
  padding: calc(var(--page-pad) * 5) var(--page-pad) calc(var(--page-pad) * 2);
}

.sound-tracklist,
.sound-player {
  width: min(58rem, 100%);
  margin: 0 auto;
}

.sound-tracklist {
  border-top: 1px solid #000;
}

.sound-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sound-controls {
  border-bottom: 1px solid #000;
  padding: clamp(0.85rem, 1vw, 1.1rem) 0;
  font-size: var(--ui-font);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  cursor: pointer;
}

.sound-controls button {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  min-width: 4.5rem;
  text-align: right;
}

.sound-track.is-active .sound-controls {
  color: #0000ff;
}

.sound-player {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto minmax(14rem, 1.4fr);
  gap: 1rem;
  align-items: center;
  border: 1px solid #000;
  border-top: 0;
  background: #000;
  color: #fff;
  font-family: 'Koch Regular', sans-serif;
  font-size: clamp(0.82rem, 0.5vw + 0.68rem, 1rem);
  padding: clamp(0.85rem, 1vw, 1.1rem) clamp(0.9rem, 1.2vw, 1.25rem);
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sound-player.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sound-player-title {
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sound-player-controls {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
}

.sound-player button {
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.sound-player-progress {
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  gap: 0.65rem;
  align-items: center;
}

#sound-scrubber {
  width: 100%;
  accent-color: #fff;
}

@media (max-width: 760px) {
  .product-module {
    min-height: 100svh;
    min-height: var(--app-height);
    padding: calc(4.8rem + env(safe-area-inset-top)) 0.85rem calc(2rem + env(safe-area-inset-bottom));
    align-items: flex-start;
  }

  .product-header {
    gap: 1rem;
  }

  .product-title {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .cart-circle {
    width: clamp(8rem, 38vw, 10.5rem);
    height: clamp(8rem, 38vw, 10.5rem);
  }

  .sound-player {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .sound-player-controls {
    justify-content: flex-start;
  }

  .sound-page {
    padding: calc(4.8rem + env(safe-area-inset-top)) 0.85rem calc(2rem + env(safe-area-inset-bottom));
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }

  .sound-controls {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .sound-controls span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .sound-controls button {
    flex: 0 0 auto;
    min-height: 44px;
    min-width: 4.4rem;
  }

  .sound-player {
    position: sticky;
    bottom: 0;
    z-index: 8;
    border-top: 1px solid #000;
  }

  .sound-player-progress {
    grid-template-columns: 2.4rem 1fr 2.4rem;
    gap: 0.5rem;
  }
}

/* =========================
   ========== CHECKOUT ==========
   ========================= */
.checkout-page {
  max-width: 42rem;
  margin: calc(var(--page-pad) * 5) auto calc(var(--page-pad) * 2);
  padding: 0 var(--page-pad);
  font-family: 'Koch Regular', sans-serif;
  font-size: var(--ui-font);
}

.checkout-page h1 {
  font-size: clamp(2rem, 3vw, 3.25rem);
  margin-bottom: 1rem;
}

.checkout-note,
.checkout-cart-summary {
  border-top: 1px solid #000;
  padding: 1rem 0;
}

.checkout-cart-summary ul {
  list-style: none;
}

#checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

#checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

#checkout-form input,
#checkout-form textarea {
  border: 1px solid #000;
  background: #ebe1bd;
  font: inherit;
  padding: 0.6rem;
}

#checkout-form button {
  align-self: flex-start;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  cursor: pointer;
  font: inherit;
  padding: 0.75rem 1.25rem;
}

#confirmation {
  margin-top: 1rem;
}

@media (max-width: 760px) {
  .cart-page,
  .checkout-page {
    width: 100%;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }

  .cart-page {
    padding-top: calc(4.8rem + env(safe-area-inset-top));
  }

  .checkout-page {
    margin-top: calc(4.8rem + env(safe-area-inset-top));
  }

  .cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .item-details {
    min-width: 0;
  }

  .item-controls,
  .item-total,
  .remove-button {
    justify-self: end;
  }

  .cart-summary,
  .cart-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  #checkout-button,
  #clear-cart,
  .qty-btn,
  .remove-button,
  #checkout-form button {
    min-height: 44px;
  }

  #checkout-form input,
  #checkout-form textarea {
    min-height: 44px;
    width: 100%;
  }
}

/* =========================
   ========== COMFORT GALLERY ==========
   ========================= */
.comfort-gallery {
  position: absolute;
  bottom: 0;
  left: 40%;
  transform: translateX(-50%);
  height: 60vh;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.comfort-gallery img {
  position: absolute;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  max-height: 60vh;
  transform: translateX(40px);
}

.comfort-gallery img.active {
  opacity: 0.85;
  pointer-events: auto;
}

.comfort-gallery img:nth-child(1) {
  transform: scale(1.2) translateX(-40px) translateY(40px);
}

.comfort-gallery img:nth-child(2) {
  transform: scale(1) translateX(35px);
}

.gallery-dots {
  position: absolute;
  bottom: -2.5rem;
  left: 110%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  z-index: 10;
  pointer-events: auto;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #999;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active { background: #000; }

@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.site-index-cart {
  transition: transform 0.2s ease;
}

@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.site-index-cart.bump {
  animation: bump 0.3s ease;
}

#module-nav {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

body.show-ui #module-nav {
  opacity: 1;
  pointer-events: auto;
}


/* =========================
   ========== opera GRID ==========
   ========================= */
.opera-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(13rem, 18vw, 18rem), 1fr));
  gap: clamp(1rem, 1.5vw, 1.6rem);
  padding: calc(var(--page-pad) * 5) var(--page-pad) calc(var(--page-pad) * 2);
  max-width: 100%;
}
.opera-item {
  background-color: transparent !important; /* Force override any white */
  border: 1px solid #000;
  padding: clamp(0.65rem, 0.9vw, 0.9rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--ui-font);
}

.opera-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.opera-item:hover {
  border-color: #0000ff;
}
.opera-info {
  margin-top: 0.5rem;
  text-align: center;
}

.add-button {
  margin-top: 0.5rem;
  border: 1px solid #000;
  background: none;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  font-size: 0.65rem;
  font-family: inherit;
}
#opera-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  padding: 0.75rem 1.25rem;
  background: #ebe1bd;
  border: 1px solid #000;
  cursor: pointer;
  z-index: 1001;
  font-family: 'Koch Regular', sans-serif;
}



