/* ==========================================================================
   5. STORE SECTIONS: EDITORIAL, RICH, LUXURY (CATEGORIES, BEST, ABOUT, HOW)
   ========================================================================== */
section.s {
  padding-block: clamp(72px, 11vw, 130px);
  position: relative;
}
.sh {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.sh h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.85rem, 1.35rem + 1.8vw, 3rem);
  line-height: 1.3;
  font-weight: 350;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sh a.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--brass);
  transition: opacity 0.2s, color 0.2s;
}
.sh a.view-all:hover {
  color: var(--brass);
  opacity: 0.85;
}
.sh a.view-all svg {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
  transition: transform 0.25s var(--ease);
}
.sh a.view-all:hover svg {
  transform: translateX(-4px) rotate(180deg);
}

/* EDITORIAL ASYMMETRIC GRID: CATEGORIES */
.cats {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.cat {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-warm);
  text-decoration: none;
  display: block;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.cat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brass-hairline);
}
.cat-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.cat:hover img {
  transform: scale(1.05);
}
.cat-badge {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  background: rgba(28, 26, 23, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #F6F3EE;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--r-full);
  border: 1px solid rgba(169, 130, 79, 0.3);
}
.cat-meta {
  position: absolute;
  inset-inline: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(28, 26, 23, 0.05);
}
.cat-meta b {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  display: block;
}
.cat-meta small {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  display: block;
  margin-top: 2px;
}
.cat-meta .arrow-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-warm);
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: all 0.25s;
}
.cat:hover .cat-meta .arrow-icon {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
  transform: translateX(-3px);
}
.cat-meta .arrow-icon svg {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

/* Asymmetric editorial cell spanning */
.cat.col-7 { grid-column: span 7; aspect-ratio: 16/11; }
.cat.col-5 { grid-column: span 5; aspect-ratio: 16/11; }
.cat.col-4 { grid-column: span 4; aspect-ratio: 4/4.5; }

@media (max-width: 900px) {
  .cat.col-7, .cat.col-5 { grid-column: span 6; aspect-ratio: 4/4.5; }
  .cat.col-4 { grid-column: span 6; aspect-ratio: 4/4.5; }
}
@media (max-width: 767px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .cat.col-7, .cat.col-5, .cat.col-4 { grid-column: span 1; aspect-ratio: 4/5; }
  .cat.col-hero { grid-column: span 2; aspect-ratio: 16/10; }
  .cat-meta {
    inset-inline: 10px;
    bottom: 10px;
    padding: 10px 12px;
  }
  .cat-meta b { font-size: 13.5px; }
  .cat-meta small { font-size: 12px; }
  .cat-meta .arrow-icon { display: none; }
}

/* ==========================================================================
   BEST SELLERS (HOVER STATES & REFINED COLOR DOTS)
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
  min-width: 0;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brass-hairline);
}
.card .m {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--r);
  overflow: visible;
  background: transparent;
  perspective: 900px;
  -webkit-perspective: 900px;
}
.card .m img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .flip-front img,
.card:hover .m img {
  transform: scale(1.04);
}
.card .lbl {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: var(--r-full);
  z-index: 3;
}

/* ==========================================================================
   TASK A3: FLIP CARD (Flip to see it with your photo)
   ========================================================================== */
.flip-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(.22, 1, .36, 1);
  border-radius: var(--r);
}
.card.flipped .flip-inner {
  transform: rotateY(-180deg);
}
.flip-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--r);
  overflow: hidden;
}
.flip-front {
  transform: rotateY(0deg);
  background: var(--surface-warm);
  z-index: 2;
}
.flip-back {
  transform: rotateY(180deg);
  background: var(--surface-warm, #EFE9DF);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 1;
}
.flip-bg-prod {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.card.has-user-photo .flip-bg-prod,
body.has-photo .flip-bg-prod {
  opacity: 0.22;
}
.flip-print-zone {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--brass, #A9824F);
  background: rgba(255, 255, 255, 0.45);
  padding: 8px;
  box-sizing: border-box;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.flip-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  width: 100%;
}
.card.has-user-photo .flip-empty-state,
body.has-photo .flip-empty-state {
  display: none !important;
}
.flip-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--brass-text, #7A5A2C);
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}
.flip-upl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  height: 36px;
  padding-inline: 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(28, 26, 23, 0.12);
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.flip-upl-btn:hover {
  background: #2C2924;
  border-color: #2C2924;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 26, 23, 0.18);
}
.flip-upl-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.flip-user-preview {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.card.has-user-photo .flip-user-preview,
body.has-photo .flip-user-preview {
  display: block;
}
.card.has-user-photo .flip-print-zone,
body.has-photo .flip-print-zone {
  border-style: solid;
  border-color: rgba(169, 130, 79, 0.65);
  box-shadow: 0 6px 20px rgba(28, 26, 23, 0.15);
  padding: 0;
  background: transparent;
}
.flip-user-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 1. Phone case card: aspect 9:18.5, radius 18px, camera bump, photo cover-fitted, thin 3px dark edge */
.flip-print-zone.zone-case,
[data-kind="phonecase"] .flip-print-zone,
[data-kind="case"] .flip-print-zone {
  aspect-ratio: 9 / 18.5;
  height: 88%;
  max-height: calc(100% - 14px);
  width: auto;
  max-width: 52%;
  border-radius: 18px;
  overflow: hidden;
}
.flip-print-zone.zone-case::after,
[data-kind="phonecase"] .flip-print-zone::after,
[data-kind="case"] .flip-print-zone::after {
  content: '';
  position: absolute;
  top: 7%;
  inset-inline-end: 8%;
  width: 32%;
  aspect-ratio: 1;
  border-radius: 7px;
  border: 1px dashed rgba(169, 130, 79, 0.45);
  background: rgba(169, 130, 79, 0.05);
  pointer-events: none;
  z-index: 1;
}
.card.has-user-photo .zone-case,
body.has-photo .zone-case,
.card[data-kind="phonecase"].has-user-photo .flip-print-zone,
body.has-photo .card[data-kind="phonecase"] .flip-print-zone,
.card[data-kind="case"].has-user-photo .flip-print-zone,
body.has-photo .card[data-kind="case"] .flip-print-zone {
  border: 3px solid #1C1A17;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(28, 26, 23, 0.22);
  padding: 0;
  background: transparent;
}
.card.has-user-photo .zone-case::after,
body.has-photo .zone-case::after,
.card[data-kind="phonecase"].has-user-photo .flip-print-zone::after,
body.has-photo .card[data-kind="phonecase"] .flip-print-zone::after,
.card[data-kind="case"].has-user-photo .flip-print-zone::after,
body.has-photo .card[data-kind="case"] .flip-print-zone::after {
  display: none;
}
.zone-case .flip-user-preview::after,
[data-kind="phonecase"] .flip-user-preview::after,
[data-kind="case"] .flip-user-preview::after {
  content: '';
  position: absolute;
  top: 7%;
  inset-inline-end: 8%;
  width: 33%;
  aspect-ratio: 1;
  border-radius: 7px;
  background: radial-gradient(circle at 35% 35%, #2d2926 26%, #121110 30%, #121110 42%, transparent 44%),
              radial-gradient(circle at 65% 65%, #2d2926 26%, #121110 30%, #121110 42%, transparent 44%),
              #1C1A17;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  z-index: 4;
  pointer-events: none;
}
.zone-case .flip-user-preview,
[data-kind="phonecase"] .flip-user-preview,
[data-kind="case"] .flip-user-preview {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  position: absolute;
}
.zone-case .flip-user-img,
[data-kind="phonecase"] .flip-user-img,
[data-kind="case"] .flip-user-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 2. Mug card: wide band (aspect ~2.2:1), curved-surface shading, handle shape */
.flip-print-zone.zone-mug,
[data-kind="mug"] .flip-print-zone {
  width: 76%;
  max-width: calc(100% - 32px);
  aspect-ratio: 2.2 / 1;
  height: auto;
  border-radius: 8px;
  overflow: visible;
}
.flip-print-zone.zone-mug::before,
[data-kind="mug"] .flip-print-zone::before {
  content: '';
  position: absolute;
  inset-inline-start: -18px;
  top: 18%;
  width: 20px;
  height: 64%;
  border: 4px solid #D5CEBE;
  border-inline-end: 0;
  border-radius: 14px 0 0 14px;
  pointer-events: none;
  box-shadow: -2px 2px 6px rgba(28, 26, 23, 0.12);
  z-index: 1;
}
.card.has-user-photo .zone-mug,
body.has-photo .zone-mug,
.card[data-kind="mug"].has-user-photo .flip-print-zone,
body.has-photo .card[data-kind="mug"] .flip-print-zone {
  border: 1px solid rgba(169, 130, 79, 0.35);
  box-shadow: 0 8px 24px rgba(28, 26, 23, 0.16);
  padding: 0;
  background: transparent;
}
.card.has-user-photo .zone-mug::before,
body.has-photo .zone-mug::before,
.card[data-kind="mug"].has-user-photo .flip-print-zone::before,
body.has-photo .card[data-kind="mug"] .flip-print-zone::before {
  border-color: #D5CEBE;
}
.zone-mug .flip-user-preview,
[data-kind="mug"] .flip-user-preview {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: absolute;
  box-shadow: inset 14px 0 16px -4px rgba(20, 18, 16, 0.35), inset -14px 0 16px -4px rgba(20, 18, 16, 0.35);
}
.zone-mug .flip-user-img,
[data-kind="mug"] .flip-user-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zone-mug .flip-user-preview::after,
[data-kind="mug"] .flip-user-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(25, 22, 18, 0.40) 0%,
    rgba(25, 22, 18, 0.14) 14%,
    rgba(255, 255, 255, 0.38) 28%,
    rgba(255, 255, 255, 0.08) 52%,
    rgba(25, 22, 18, 0.16) 78%,
    rgba(25, 22, 18, 0.42) 100%
  );
  border-radius: inherit;
}

/* 3. Framed print card: photo inside white mat (12% padding) inside thin black frame, aspect 4:5 */
.flip-print-zone.zone-frame,
[data-kind="frame"] .flip-print-zone {
  aspect-ratio: 4 / 5;
  height: 86%;
  max-height: calc(100% - 16px);
  width: auto;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.5);
}
.card.has-user-photo .zone-frame,
body.has-photo .zone-frame,
.card[data-kind="frame"].has-user-photo .flip-print-zone,
body.has-photo .card[data-kind="frame"] .flip-print-zone {
  border: 4px solid #1C1A17;
  background: #FFFFFF;
  box-shadow: 0 10px 28px rgba(28, 26, 23, 0.22);
  padding: 0;
}
.zone-frame .flip-user-preview,
[data-kind="frame"] .flip-user-preview {
  inset: 12%;
  width: calc(100% - 24%);
  height: calc(100% - 24%);
  position: absolute;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), inset 0 1px 3px rgba(0, 0, 0, 0.25);
}
.zone-frame .flip-user-img,
[data-kind="frame"] .flip-user-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 4. T-shirt card: shirt-coloured area with chest print (~45% width, aspect 4:5), matte opacity .95, multiply overlay */
.card[data-kind="tshirt"] .flip-back {
  background: #EDE6DA;
  position: relative;
}
.card[data-kind="tshirt"] .flip-back::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  margin-inline: auto;
  width: 36%;
  height: 15px;
  border: 2px solid rgba(169, 130, 79, 0.28);
  border-top: 0;
  border-radius: 0 0 50% 50%;
  background: var(--bg, #F6F3EE);
  z-index: 1;
  pointer-events: none;
}
.flip-print-zone.zone-tshirt,
[data-kind="tshirt"] .flip-print-zone {
  width: 48%;
  max-width: 50%;
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
  z-index: 2;
}
.card.has-user-photo .zone-tshirt,
body.has-photo .zone-tshirt,
.card[data-kind="tshirt"].has-user-photo .flip-print-zone,
body.has-photo .card[data-kind="tshirt"] .flip-print-zone {
  border: 1px solid rgba(169, 130, 79, 0.22);
  box-shadow: 0 2px 8px rgba(28, 26, 23, 0.08);
  padding: 0;
  background: transparent;
}
.zone-tshirt .flip-user-preview,
[data-kind="tshirt"] .flip-user-preview {
  inset: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 3px;
  overflow: hidden;
}
.zone-tshirt .flip-user-img,
[data-kind="tshirt"] .flip-user-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  display: block;
}
.zone-tshirt .flip-user-preview::after,
[data-kind="tshirt"] .flip-user-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(237, 230, 218, 0.22);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.flip-btn {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(28, 26, 23, 0.12);
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  padding: 0;
}
.flip-btn:hover {
  background: #FFFFFF;
  color: var(--brass-text, #7A5A2C);
  border-color: var(--brass);
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(28, 26, 23, 0.18);
}
.flip-btn:active {
  transform: scale(0.96);
}
.flip-btn:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.flip-btn[aria-pressed="true"] {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}
.flip-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s var(--ease);
}
.flip-btn[aria-pressed="true"] svg {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .flip-inner {
    transition: none !important;
    transform: none !important;
  }
  .flip-face {
    transform: none !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    transition: opacity 200ms ease, visibility 200ms ease !important;
  }
  .card:not(.flipped) .flip-front {
    opacity: 1;
    visibility: visible;
    z-index: 2;
  }
  .card:not(.flipped) .flip-back {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
  }
  .card.flipped .flip-front {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
  }
  .card.flipped .flip-back {
    opacity: 1;
    visibility: visible;
    z-index: 2;
  }
}

.no-preserve-3d .flip-inner {
  transition: none !important;
  transform: none !important;
}
.no-preserve-3d .flip-face {
  transform: none !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
  transition: opacity 200ms ease, visibility 200ms ease !important;
}
.no-preserve-3d .card:not(.flipped) .flip-front {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.no-preserve-3d .card:not(.flipped) .flip-back {
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}
.no-preserve-3d .card.flipped .flip-front {
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}
.no-preserve-3d .card.flipped .flip-back {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

@supports not (transform-style: preserve-3d) {
  .flip-inner {
    transition: none !important;
    transform: none !important;
  }
  .flip-face {
    transform: none !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    transition: opacity 200ms ease, visibility 200ms ease !important;
  }
  .card:not(.flipped) .flip-front {
    opacity: 1;
    visibility: visible;
    z-index: 2;
  }
  .card:not(.flipped) .flip-back {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
  }
  .card.flipped .flip-front {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
  }
  .card.flipped .flip-back {
    opacity: 1;
    visibility: visible;
    z-index: 2;
  }
}
.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 14px 6px 4px;
}
.color-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: transform 0.2s;
}
.dot:hover {
  transform: scale(1.15);
}
.dot.active {
  outline: 1.5px solid var(--brass);
  outline-offset: 0;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}
.card .sub {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.card .pr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.card .pr b {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  position: relative;
  padding-bottom: 2px;
}
.card .pr b::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 1.5px;
  background: var(--brass);
}
.card .pr b small {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  margin-inline-start: 4px;
}
.card .pr .btn {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 12.5px;
}

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 767px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  .card {
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    border-radius: var(--r);
    min-width: 0;
  }
  .card .m {
    aspect-ratio: 1/1;
    border-radius: var(--r-sm);
  }
  .flip-inner,
  .flip-face {
    border-radius: var(--r-sm);
  }
  .flip-back {
    padding: 6px;
  }
  .flip-empty-state {
    gap: 4px;
    padding: 4px 2px;
  }
  .flip-text {
    font-size: 11.5px;
    line-height: 1.25;
  }
  .flip-upl-btn {
    min-height: 26px;
    height: 26px;
    padding-inline: 6px;
    font-size: 10px;
    gap: 3px;
    max-width: 100%;
  }
  .flip-upl-btn svg {
    width: 11px;
    height: 11px;
  }
  .flip-btn {
    bottom: 6px;
    inset-inline-end: 6px;
  }

  /* Keep product-specific shapes on mobile */
  .flip-print-zone.zone-case,
  [data-kind="phonecase"] .flip-print-zone,
  [data-kind="case"] .flip-print-zone {
    height: 90%;
    max-height: calc(100% - 10px);
    border-radius: 14px;
  }
  .zone-case .flip-upl-btn {
    padding-inline: 4px;
    font-size: 9px;
  }
  .zone-case .flip-upl-btn svg {
    display: none;
  }
  .flip-print-zone.zone-mug,
  [data-kind="mug"] .flip-print-zone {
    width: 80%;
    max-width: calc(100% - 24px);
    border-radius: 6px;
  }
  .flip-print-zone.zone-mug::before,
  [data-kind="mug"] .flip-print-zone::before {
    inset-inline-start: -14px;
    width: 15px;
    border-width: 3px;
  }
  .flip-print-zone.zone-frame,
  [data-kind="frame"] .flip-print-zone {
    height: 88%;
    max-height: calc(100% - 10px);
  }
  .card.has-user-photo .zone-frame,
  body.has-photo .zone-frame,
  .card[data-kind="frame"].has-user-photo .flip-print-zone,
  body.has-photo .card[data-kind="frame"] .flip-print-zone {
    border-width: 3px;
  }
  .flip-print-zone.zone-tshirt,
  [data-kind="tshirt"] .flip-print-zone {
    width: clamp(86px, 50%, 120px);
    margin-top: 6px;
  }
  .zone-tshirt .flip-upl-btn {
    padding-inline: 4px;
    font-size: 9.5px;
  }
  .card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 10px 2px 2px;
  }
  .card h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 4px;
    min-height: 2.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card .sub {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 8px;
    min-height: 2.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card .pr {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border-top: 1px solid var(--line);
  }
  .card .pr b {
    font-size: 13px;
    justify-content: center;
    text-align: center;
  }
  .card .pr .btn {
    width: 100%;
    min-height: 44px;
    padding-inline: 8px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* ==========================================================================
   ABOUT & ATELIER STANDARDS (QUIET LUXURY DARK SECTION)
   ========================================================================== */
.about {
  background: var(--dark);
  color: #F6F3EE;
  border-top: 1px solid rgba(169, 130, 79, 0.2);
  border-bottom: 1px solid rgba(169, 130, 79, 0.2);
}
.about .in {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}
.about .kick {
  color: var(--brass);
}
.about h2 {
  font-size: clamp(1.85rem, 1.35rem + 1.8vw, 3rem);
  line-height: 1.3;
  margin: 0.5rem 0 1.25rem;
  font-weight: 350;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.about p.lead-text {
  color: #C5BFB5;
  font-size: 1rem;
  line-height: 1.85;
  max-width: 54ch;
  margin-bottom: 32px;
  font-weight: 400;
}

.feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.feat {
  background: var(--dark-surface);
  padding: 24px 22px;
  border-radius: var(--r);
  border: 1px solid var(--dark-border);
  transition: transform 0.3s var(--ease), border-color 0.3s;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}
.feat p { grid-column: 1 / -1; margin-top: 8px !important; }
.feat:hover {
  transform: translateY(-2px);
  border-color: rgba(169, 130, 79, 0.45);
}
.feat-icon-box {
  display: grid;
  color: var(--brass);
}
.feat svg {
  width: 22px;
  height: 22px;
}
.feat h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #FFFFFF;
}
.feat p {
  margin: 0;
  font-size: 14px;
  color: #A9A296;
  line-height: 1.65;
}

.stats {
  display: flex;
  gap: 36px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(169, 130, 79, 0.2);
  flex-wrap: wrap;
}
.stat-item b {
  display: block;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem);
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-family: Vazirmatn, system-ui;
}
.stat-item span {
  color: var(--brass);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 4px;
  display: block;
}

@media (max-width: 960px) {
  .about .in { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .feats { grid-template-columns: 1fr; gap: 14px; }
  .stats { gap: 16px 20px; }
  .stat-item { flex: 1 1 calc(50% - 10px); }
  .stat-item b { font-size: 1.4rem; }
}

/* ==========================================================================
   HOW TO ORDER (REFINED 3-STEP TIMELINE)
   ========================================================================== */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  position: relative;
}
.steps-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  inset-inline-start: 12%;
  inset-inline-end: 12%;
  height: 1px;
  background: rgba(169, 130, 79, 0.3);
  z-index: 1;
}
.step-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  min-width: 0;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brass-hairline);
}
.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.step-num {
  font-size: 1.7rem;
  font-weight: 350;
  color: var(--brass);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-family: Vazirmatn, system-ui;
}
.step-icon {
  display: grid;
  color: var(--brass);
}
.step-icon svg {
  width: 19px;
  height: 19px;
}
.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .steps-timeline { grid-template-columns: 1fr; gap: 20px; }
  .steps-timeline::before { display: none; }
  .step-card { padding: 22px 20px; }
}

/* ==========================================================================
   TESTIMONIALS STRIP (QUIET LUXURY ARCHIVE)
   ========================================================================== */
.testimonials-strip {
  background: var(--surface-warm);
  border-block: 1px solid var(--line);
  padding-block: clamp(64px, 8vw, 104px);
}
.testi-disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(28, 26, 23, 0.04);
  border: 1px dashed rgba(169, 130, 79, 0.35);
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-top: 10px;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.testi-card {
  background: #FFFFFF;
  border-radius: var(--r-lg);
  padding: 28px 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  min-width: 0;
}
.testi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brass-hairline);
}
.testi-card blockquote {
  margin: 0 0 20px;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 400;
  font-style: normal;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-warm);
  color: var(--ink);
  font-weight: 500;
  font-size: 12.5px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(169, 130, 79, 0.3);
}
.testi-meta b {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.testi-meta small {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.testi-meta small svg {
  width: 13px;
  height: 13px;
  color: var(--brass);
}

@media (max-width: 900px) {
  .testi-grid { grid-template-columns: 1fr; gap: 16px; }
  .testi-card { padding: 22px 20px; }
}

/* ==========================================================================
   FINAL CTA BAND (BEFORE FOOTER)
   ========================================================================== */
.final-cta {
  background: var(--surface-warm);
  border-block: 1px solid var(--line);
  padding-block: clamp(64px, 8vw, 104px);
  text-align: center;
}
.final-cta-in {
  max-width: 720px;
  margin-inline: auto;
}
.final-cta h2 {
  font-size: clamp(1.85rem, 1.35rem + 1.8vw, 2.9rem);
  line-height: 1.3;
  font-weight: 350;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 1rem;
  color: var(--ink);
}
.final-cta p {
  color: var(--muted);
  font-size: clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem);
  line-height: 1.8;
  margin: 0 auto 28px;
  max-width: 52ch;
}
.final-cta .btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.trust-points {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 4vw, 36px);
  margin-top: 36px;
  flex-wrap: wrap;
}
.trust-point {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.trust-point svg {
  width: 17px;
  height: 17px;
  color: var(--brass);
}

/* ==========================================================================
   FOOTER (NEWSLETTER & NEUTRAL TRUST PLACEHOLDERS)
   ========================================================================== */
footer {
  background: var(--surface-warm);
  padding-block: clamp(64px, 8vw, 96px) 36px;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.newsletter-box h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}
.newsletter-box p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-height: 44px;
  padding-inline: 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: #FFFFFF;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--brass);
  outline: 3px solid rgba(169, 130, 79, 0.35);
  outline-offset: 0;
}
.newsletter-form .btn {
  min-height: 44px;
  padding-inline: 24px;
}

.trust-badges-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 12px;
}
.trust-badges-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-badge-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  border: 1px dashed rgba(169, 130, 79, 0.4);
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.trust-badge-placeholder svg {
  width: 16px;
  height: 16px;
  color: var(--brass);
  flex-shrink: 0;
}

.fgrid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px);
  padding-block: 48px 36px;
}
footer h4 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
footer a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.88rem;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--ink);
}

.legal {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted-light);
  font-size: 12px;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .fgrid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .fgrid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  section.s {
    padding-block: 56px;
  }
  .wrap {
    padding-inline: 16px;
  }
  .sh {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }
  .sh h2 {
    font-size: clamp(1.45rem, 1.25rem + 1vw, 1.85rem);
    line-height: 1.35;
  }
  .sh a.view-all {
    font-size: 13.5px;
    min-height: 44px;
  }
  .about p.lead-text {
    font-size: 14.5px;
    line-height: 1.85;
    margin-bottom: 24px;
  }
  .feat p {
    font-size: 14px;
    line-height: 1.7;
  }
  .step-card p {
    font-size: 14px;
    line-height: 1.7;
  }
  .testi-card blockquote {
    font-size: 14px;
    line-height: 1.8;
  }
  .testi-meta small {
    font-size: 12px;
  }
  .final-cta {
    padding-block: 56px;
  }
  .final-cta h2 {
    font-size: clamp(1.45rem, 1.25rem + 1vw, 1.85rem);
  }
  .final-cta p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
  }
  .final-cta .btn-group {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .final-cta .btn-group .btn {
    width: 100%;
    min-height: 48px;
    font-size: 14px;
  }
  .trust-points {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
    width: 100%;
  }
  .trust-point {
    font-size: 13px;
  }
  footer {
    padding-block: 48px calc(24px + env(safe-area-inset-bottom));
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }
  .newsletter-box p {
    font-size: 14px;
  }
  .newsletter-form {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .newsletter-form input[type="email"] {
    min-height: 48px;
    font-size: 14px;
    width: 100%;
  }
  .newsletter-form .btn {
    width: 100%;
    min-height: 48px;
    font-size: 14px;
  }
  .trust-badges-row {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .trust-badge-placeholder {
    width: 100%;
    min-height: 44px;
    font-size: 12px;
    justify-content: flex-start;
    padding-inline: 16px;
  }
  .fgrid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 32px 24px;
  }
  footer h4 {
    font-size: 15px;
    margin-bottom: 12px;
  }
  footer a {
    font-size: 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
  }
}

/* REVEAL ON SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* FIXED SAMPLE BADGE */
.sample {
  position: fixed;
  bottom: 12px;
  inset-inline-end: 12px;
  z-index: 60;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  background: rgba(28, 26, 23, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #F6F3EE;
  padding: 6px 14px;
  border-radius: var(--r-full);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
@media (max-width: 767px) {
  .sample {
    position: static;
    display: table;
    margin: 20px auto 0;
    background: rgba(28, 26, 23, 0.05);
    color: var(--muted);
    border: 1px solid var(--line);
    box-shadow: none;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: var(--r-full);
    pointer-events: auto;
  }
}

/* FALLBACK FOR NOGL */
.nogl {
  position: absolute;
  inset: 0;
  background: url(/demo/img/hero-front.webp) center/cover;
  display: none;
}
.nogl.on { display: block; }
@media (max-width: 767px) {
  .nogl { background-image: url(/demo/img/hero-front-portrait.webp); }
}

/* ACCESSIBILITY & REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cap, .cap.on { transition: none; }
  body:not(.ready) .cap[data-ch="0"] .kick,
  body:not(.ready) .cap[data-ch="0"] h1,
  body:not(.ready) .chips .chip:first-child,
  body:not(.ready) .mch0-cta,
  body.ready .cap[data-ch="0"].on .kick,
  body.ready .cap[data-ch="0"].on h1,
  body.ready .chips .chip:first-child,
  body.ready .mch0-cta {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Mobile polish: small category cards show the title only. */
@media (max-width: 767px) {
  .cats .cat:not(:first-child) .cat-meta small,
  .cats .cat:not(:first-child) .cat-meta .arrow-icon { display: none; }
  .cats .cat:not(:first-child) .cat-meta { padding: 10px 12px; }
  .cats .cat:not(:first-child) .cat-meta b { font-size: 14px; line-height: 1.5; }
  /* Footer on phones: brand and contact full width, the two link lists side by side. */
  .fgrid { grid-template-columns: 1fr 1fr !important; column-gap: 16px; }
  .fgrid > div:first-child, .fgrid > div:last-child { grid-column: 1 / -1; }
  footer ul { gap: 0; }
  footer a { line-height: 1.5; }
}

/* First load on phones: show a still of the desk shot under a light veil instead of a black screen; reserve the chip row. */
@media (max-width: 1023px) {
  .loader {
    background: url(/demo/img/poster-desk-m.webp) center bottom / cover no-repeat, #E6DDD0;
    background-color: #E6DDD0;
    color: #1C1A17;
  }
  .loader .kicker, .loader span.status-msg { color: #5E5850; }
  .loader { place-items: start center; padding-top: 6%; }
  .loader span.status-msg { display: none; }
  .chips { min-height: 84px; }
}

/* Contrast: small brass text uses the darker brass; legal line uses the muted ink. */
.kick .en, .chip-price, .chip small { color: var(--brass-text); }
.legal { color: var(--muted); }

/* P3: still-image tier, rack controls */
@media (max-width: 1023px) {
  .nogl {
    background-image: url(/demo/img/poster-desk-m.webp);
    background-position: center bottom;
    background-size: cover;
  }
}

/* Section 3: Data Tier Styling (still & lite) */
[data-tier="still"] #gl { display: none !important; }
[data-tier="still"] .nogl { display: block !important; }
[data-tier="still"] .loader {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
[data-tier="still"] .hint,
[data-tier="still"] .tag,
[data-tier="still"] .welcome,
[data-tier="still"] .rail,
[data-tier="still"] .mprog {
  display: none !important;
}
[data-tier="still"] .cap[data-ch="0"] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  display: block !important;
  pointer-events: auto !important;
}
[data-tier="still"] .cap[data-ch="0"] .row {
  display: flex !important;
}
[data-tier="still"] .mch0-cta {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
}
@media (max-width: 1023px) {
  [data-tier="still"] .journey {
    height: auto !important;
    min-height: calc(100svh - 56px);
  }
  [data-tier="still"] .sticky {
    position: relative !important;
    height: auto !important;
    min-height: calc(100svh - 56px);
  }
  [data-tier="still"] .viewport {
    height: auto;
    flex: 1 1 0; min-height: 0;
  }
}
@media (min-width: 1024px) {
  [data-tier="still"] .journey {
    height: auto !important;
    min-height: 100vh;
  }
  [data-tier="still"] .sticky {
    position: relative !important;
    height: 100vh;
  }
}
[data-tier="lite"] .hdr.solid {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--bg);
}
[data-tier="lite"] .cap {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(255, 255, 255, 0.95);
}
[data-tier="lite"] .chip {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #FCFAF6;
}

/* Section 4: Wardrobe Rack Controls */
.rackctl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  padding: 6px 12px;
  background: var(--surface-tint);
  border: 1px solid var(--line-light);
  border-radius: var(--r);
}
.rackctl[hidden] { display: none !important; }
.rackctl .rk {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface, #fff);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}
.rackctl .rk:hover {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
  transform: translateY(-1px);
}
.rackctl .rk:active {
  transform: translateY(0);
}
.rackctl .rk svg { width: 20px; height: 20px; }
.rackctl .seg {
  display: inline-flex;
  align-items: center;
  background: var(--surface-warm, #EFE9DF);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
}
.rackctl .seg button {
  min-width: 60px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  padding: 4px 14px;
}
.rackctl .seg button:hover {
  color: var(--ink);
}
.rackctl .seg button[aria-pressed="true"] {
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(28, 26, 23, 0.12);
}

/* Keep the selected product sharp: dim, never blur, behind the product sheet. No blur at all on light tiers (old phones). */
.panel-backdrop { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(42, 36, 30, 0.16) !important; }
html[data-tier="lite"] *, html[data-tier="still"] * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* Still tier (no 3D): one upload button (the caption row), no empty chip row, no progress tabs. */
html[data-tier="still"] .m-upload-btn, html[data-tier="still"] #chips, html[data-tier="still"] .mprog { display: none !important; }

/* A2: 2D photo preview when the 3D room is not running yet (or never, on old phones). */
.pv2d { position: fixed; inset: 0; z-index: 120; display: grid; place-items: end center; background: rgba(28, 26, 23, 0.32); }
.pv2d[hidden] { display: none; }
.pv2d .sheet { width: min(560px, 100%); background: var(--bg); border-radius: 24px 24px 0 0; padding: 20px 20px max(20px, env(safe-area-inset-bottom)); display: grid; gap: 16px; }
@media (min-width: 1024px) { .pv2d { place-items: center; } .pv2d .sheet { border-radius: 24px; } }
.pv2d h3 { margin: 0; font-size: 20px; font-weight: 700; }
.pv2d .row3 { display: grid; grid-template-columns: 0.9fr 1.1fr 1fr; gap: 16px; align-items: end; padding: 8px 12px 4px; }
.pv2d .mk { background-size: cover; background-position: center; box-shadow: 0 10px 22px rgba(28, 26, 23, 0.16); }
.pv2d .case { aspect-ratio: 9 / 18.5; border-radius: 18px; position: relative; border: 3px solid #1C1A17; }
.pv2d .case::before { content: ""; position: absolute; top: 7%; inset-inline-end: 9%; width: 34%; aspect-ratio: 1; border-radius: 10px; background: rgba(28, 26, 23, 0.82); }
.pv2d .frame { aspect-ratio: 4 / 5; background-color: #fff; border: 7px solid #B08D57; padding: 12%; box-sizing: border-box; background-clip: content-box; background-origin: content-box; }
.pv2d .mug { aspect-ratio: 1 / 0.92; border-radius: 6px 6px 14px 14px; position: relative; margin-inline-start: 18%;
  box-shadow: inset 10px 0 18px rgba(255, 255, 255, 0.35), inset -12px 0 18px rgba(0, 0, 0, 0.18), 0 10px 22px rgba(28, 26, 23, 0.16); }
.pv2d .mug::after { content: ""; position: absolute; inset-inline-start: -26%; top: 22%; width: 28%; height: 48%; border: 7px solid #D3C8B9; border-inline-end: 0; border-start-start-radius: 40%; border-end-start-radius: 40%; }
.pv2d .note { margin: 0; font-size: 14px; color: var(--muted); }
.pv2d .acts { display: grid; gap: 10px; }

/* While the 2D preview is open, toasts sit at the top so they never cover its buttons. */
body:has(.pv2d:not([hidden])) .toast-hub { top: calc(64px + env(safe-area-inset-top)); bottom: auto; }

/* A3 fix: the hidden face of a flip card is not focusable (hidden halfway through the turn, so the motion is unchanged). */
.flip-face[aria-hidden="true"] { visibility: hidden; transition: visibility 0s linear .3s; }
.flip-face:not([aria-hidden="true"]) { visibility: visible; transition: visibility 0s linear 0s; }

/* Slot that receives the customer photo; behaves like the old img container. */
.flip-user-slot { display: contents; }

/* A4: darkroom reveal — a freshly uploaded photo develops from a pale sepia print to full colour. */
@keyframes vx-develop { 0% { filter: grayscale(1) sepia(.6) brightness(1.35) contrast(.8); opacity: .65; } 60% { opacity: 1; } 100% { filter: none; opacity: 1; } }
.developing { animation: vx-develop 1.8s cubic-bezier(.33, 1, .68, 1) both; }
@media (prefers-reduced-motion: reduce) { .developing { animation: none; } }

/* Still tier poster: room for the parallax without showing edges. */
.nogl { will-change: transform; transform: scale(1.06); }

/* Owner 2026-11-09: the faded product photo already carries a printed image, which showed through under the customer photo. The back face shows only the clean product shape + the customer photo. */
.flip-back .flip-bg-prod { display: none !important; }

/* Tooltip sits right above the pointer (viewport coordinates), never far away over another product. */
.tag { position: fixed !important; transform: translate(50%, calc(-100% - 14px)) !important; z-index: 60; pointer-events: none; }






/* ---- still tier: interactive poster ---- */
.nogl { background: #E6DDD0 !important; overflow: hidden; container-type: size; }
/* whole poster always visible (contain); a blurred copy fills the rest, like a video letterbox */
.nogl::before { content: ""; position: absolute; inset: -40px; background: url(/demo/img/poster-desk-d.webp) center / cover; filter: blur(28px) brightness(.92) saturate(1.05); }
@media (max-width: 1023px) { .nogl::before { background-image: url(/demo/img/poster-desk-m.webp); } }
.still-stage { position: absolute; left: 50%; top: 50%; aspect-ratio: var(--ratio); width: min(100cqw, calc(100cqh * (16 / 9)));
  transform: translate(-50%, -50%) translate(var(--px, 0px), var(--py, 0px)); transition: transform .9s cubic-bezier(.16,1,.3,1); }
.still-stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; animation: still-breathe 14s ease-in-out infinite alternate; transform-origin: 50% 45%; }
@keyframes still-breathe { to { transform: scale(1.012); } }
.still-m { display: none; width: min(100cqw, calc(100cqh * (824 / 971))); }
@media (max-width: 1023px) { .still-d { display: none; } .still-m { display: block; } }
.still-stage .hot { position: absolute; border-radius: 12px; outline: none; transition: box-shadow .35s, background .35s; }
.still-stage .hot i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: rgba(255,255,255,.95);
  box-shadow: 0 0 0 4px rgba(169,130,79,.35), 0 2px 8px rgba(28,26,23,.35); animation: still-ping 2.8s var(--d, 0s) ease-out infinite; }
@keyframes still-ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.75), 0 2px 8px rgba(28,26,23,.35); } 70% { box-shadow: 0 0 0 16px rgba(255,255,255,0), 0 2px 8px rgba(28,26,23,.35); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0), 0 2px 8px rgba(28,26,23,.35); } }
.still-stage .hot:hover, .still-stage .hot:focus-visible { background: rgba(255,244,226,.12); box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 0 40px 6px rgba(255,214,160,.55); }
.still-stage .hot:hover i, .still-stage .hot:focus-visible i { opacity: 0; }
.still-stage .hot::after { content: attr(data-label); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); white-space: nowrap;
  background: rgba(28,26,23,.88); color: #F6F3EE; font: 600 12.5px/1.4 Vazirmatn, sans-serif; padding: 6px 12px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .35s cubic-bezier(.16,1,.3,1); }
.still-stage .hot:hover::after, .still-stage .hot:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .still-stage img, .still-stage .hot i { animation: none; } .still-stage { transition: none; } }
/* Loader: sharp poster that breathes + a glass card with the real loading progress */
.loader { animation: vx-breathe 9s ease-in-out infinite alternate; background-size: cover; }
@keyframes vx-breathe { from { background-size: 100% auto; } to { background-size: 104% auto; } }
@media (max-aspect-ratio: 16/9) { @keyframes vx-breathe { from { background-size: auto 100%; } to { background-size: auto 104%; } } }
.loader .in { background: rgba(250, 247, 242, 0.74); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 22px; padding: 26px 34px 22px; min-width: 260px;
  box-shadow: 0 1px 2px rgba(28,26,23,.06), 0 24px 60px -24px rgba(28,26,23,.45); text-align: center; animation: vx-card-in .9s cubic-bezier(.16,1,.3,1) both; }
@keyframes vx-card-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.loader .bar { height: 3px; border-radius: 3px; background: rgba(169,130,79,.18); overflow: hidden; margin-top: 14px; position: relative; }
.loader .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #A9824F, #D9B77E, #A9824F); background-size: 200% 100%;
  border-radius: inherit; transition: width .5s cubic-bezier(.16,1,.3,1); animation: vx-shimmer 1.6s linear infinite; }
@keyframes vx-shimmer { to { background-position: -200% 0; } }
.loader .brand-mark b { color: #1C1A17; }
@media (prefers-reduced-motion: reduce) { .loader, .loader .in, .loader .bar i { animation: none !important; } }
/* warm grade */
@media (min-width: 1024px) { #gl { filter: sepia(.10) saturate(1.10) contrast(1.04); } }

.room-choice { position:absolute; bottom:16px; left:16px; z-index:12; min-height:44px; padding:8px 16px; border:1px solid #A9824F; border-radius:999px; background:#fff; color:#1C1A17; font:600 13px Vazirmatn,sans-serif; cursor:pointer; }
.room-choice[hidden] { display:none; }
@media (hover:none) {
  .still-stage .hot::after { opacity:1; transform:translate(-50%,0); white-space:normal; width:112px; text-align:center; font-size:10px; padding:5px 7px; }
  .still-m .hot:nth-of-type(1)::after { top:100%; bottom:auto; }
  .still-m .hot:nth-of-type(3)::after { top:100%; bottom:auto; }
}
