/* Saga Studios — web layer mirroring the app (generated from app-test.css; [data-app-test] → [data-web]) */
/* Saga Studios — app-test onboarding + test helpers */

.app-test-pill {
  position: fixed;
  top: max(8px, env(safe-area-inset-top, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  left: auto;
  z-index: 46; /* below back button (50) so it never covers it */
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 980px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8E8E93;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.app-test-pill.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}
body.nav-open .app-test-pill,
body.onboarding-open .app-test-pill { opacity: 0; pointer-events: none; }

.app-test-sheet-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  display: none; place-items: end center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}
.app-test-sheet-overlay.is-open { display: grid; }
.app-test-sheet {
  width: min(100%, 400px);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 24px 22px 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.1);
}
.app-test-sheet h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.app-test-sheet .meta {
  font-size: 12px; color: #6E6E73; margin: 0 0 18px;
}
.app-test-sheet .actions { display: grid; gap: 8px; }
.app-test-sheet .actions button {
  min-height: 44px;
  border-radius: 980px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.app-test-sheet .actions button.primary {
  background: #111; color: #fff; border-color: #111;
}
.app-test-sheet .close {
  position: absolute; /* placed via flex */
}

/* Onboarding */
.onboard {
  position: fixed; inset: 0; z-index: 90;
  background: #fff;
  display: none;
  flex-direction: column;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, Inter, "Noto Sans Devanagari", "Kohinoor Devanagari", "Helvetica Neue", Arial, sans-serif;
  color: #1D1D1F;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
body.onboarding-open .onboard { display: flex; }
body.onboarding-open { overflow: hidden; }
body.onboarding-open .wa-fab,
body.onboarding-open .site-header { visibility: hidden; }

.onboard-skip {
  align-self: flex-end;
  margin: 12px 18px 0;
  background: none; border: 0;
  font: inherit; font-size: 14px; font-weight: 500;
  color: #6E6E73; cursor: pointer; min-height: 44px; padding: 0 8px;
}

.onboard-track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.onboard-track::-webkit-scrollbar { display: none; }

.onboard-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 28px 16px;
  box-sizing: border-box;
}
.onboard-slide img {
  width: min(78vw, 320px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  background: #f5f5f7;
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.onboard-logo {
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 700;
  color: #111;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  line-height: 1.15;
}
.onboard-logo span { display: none; }
.onboard-tag {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3A3A3C;
  font-weight: 500;
  margin: 0;
}
.onboard-slide h2 {
  font-size: clamp(24px, 6.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 16ch;
  text-wrap: balance;
}
.onboard-slide p {
  margin: 0;
  color: #6E6E73;
  font-size: 16px;
  line-height: 1.5;
  max-width: 32ch;
}
.onboard-a2hs {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f5f7;
  font-size: 14px;
  color: #1D1D1F;
  max-width: 34ch;
  line-height: 1.45;
}
.onboard-a2hs strong { display: block; margin-bottom: 4px; font-weight: 600; }

.onboard-footer {
  padding: 12px 24px max(20px, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.onboard-dots {
  display: flex; gap: 8px; justify-content: center;
}
.onboard-dots button {
  width: 8px; height: 8px; border-radius: 999px; border: 0;
  background: rgba(0,0,0,0.18); padding: 0; cursor: pointer;
}
.onboard-dots button[aria-current="true"] {
  width: 22px; background: #111;
}
.onboard-nav {
  display: flex; gap: 10px; width: min(100%, 360px);
}
.onboard-nav .btn {
  flex: 1;
  min-height: 48px;
}
.onboard-nav .btn[hidden] { display: none !important; }
.onboard-nav .btn-ghost {
  background: transparent;
  color: #111;
  border: 1px solid rgba(0,0,0,0.12);
}

/* Standalone polish: slightly more top padding for status bar */
@media (display-mode: standalone) {
  .app-test-pill { top: max(8px, env(safe-area-inset-top, 0px)); }
}

/* ═══ App shell: bottom tab bar ═══ */
:root {
  --tab-h: 64px;
  --app-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gold: #C5A572;
}
/* App shell spacing — tight footer gap, clearance only after footer for nav */
body[data-web] {
  --nav-clearance: calc(var(--tab-h) + 28px + env(safe-area-inset-bottom, 0px));
  --cta-h: 48px;
  padding-bottom: 0; /* clearance lives on footer, not as a pre-footer void */
}
body[data-web] .site-header { display: none !important; }

/* Soft white fade + solid cover under floating nav so content cannot peek through */
body[data-web]::after {
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--tab-h) + 36px + env(safe-area-inset-bottom, 0px));
  z-index: 47;
  pointer-events: none;
  background: linear-gradient(to top, #FFFFFF 55%, rgba(255,255,255,0.92) 78%, rgba(255,255,255,0));
}
body[data-web] .app-tabbar { z-index: 48; }

/* Tight gap: last main content → footer (~32–48px total) */
body[data-web] main > :last-child {
  margin-bottom: 0 !important;
  padding-bottom: 24px !important;
}
body[data-web] main > .section:last-child,
body[data-web] main > section.section:last-of-type {
  padding-bottom: 24px !important;
}
body[data-web] .pdp {
  padding-bottom: 28px !important; /* was ~164px — that created the huge white void before footer */
}
body[data-web] .site-footer {
  margin-top: 16px !important;
  padding-top: 32px !important;
  /* Enough room under footer so last line clears floating nav when scrolled to end */
  padding-bottom: calc(28px + var(--nav-clearance)) !important;
}
body[data-web].has-pdp-actions .site-footer {
  /* tab + CTA + gap above tab (~32) + buffer */
  padding-bottom: calc(28px + var(--tab-h) + var(--cta-h) + 44px + env(safe-area-inset-bottom, 0px)) !important;
}
body[data-web].has-pdp-actions .pdp {
  padding-bottom: calc(24px + var(--cta-h)) !important;
}
body[data-web] .page-404 {
  padding-bottom: calc(48px + var(--nav-clearance)) !important;
}

/* Floating PDP CTA — bare black button, no white glass shell */
body[data-web] .pdp-actions,
body[data-web].has-pdp-actions .pdp-actions {
  position: fixed !important;
  left: max(14px, env(safe-area-inset-left, 0px)) !important;
  right: max(14px, env(safe-area-inset-right, 0px)) !important;
  /* +10px vs prior 22px → ~32px above tab bar */
  bottom: calc(var(--tab-h) + 32px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 49 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  gap: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
body[data-web] .pdp-actions .btn {
  flex: 1 1 100%;
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  padding: 0 16px;
  background: #111 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
body[data-web] .pdp-actions .btn:only-child {
  flex: 1 1 100%;
}
body[data-web] .pdp-actions .btn-ghost {
  display: none !important;
}
body[data-web] .pdp-info .pdp-actions { /* fixed only */ }

/* WA FAB — clears CTA + tab */
body[data-web] .wa-fab {
  width: 44px !important;
  height: 44px !important;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--tab-h) + 32px + env(safe-area-inset-bottom, 0px));
  background: #FFFFFF;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.65);
  z-index: 50;
}
body[data-web] .wa-fab svg { width: 22px; height: 22px; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  body[data-web] .wa-fab { background: #FFFFFF; }
}
body[data-web].has-pdp-actions .wa-fab {
  bottom: calc(var(--tab-h) + 32px + var(--cta-h) + 14px + env(safe-area-inset-bottom, 0px)) !important;
}


/* Floating frosted-glass pill tab bar */
.app-tabbar {
  position: fixed;
  left: max(14px, env(safe-area-inset-left, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  z-index: 48;
  height: var(--tab-h);
  padding: 0 6px;
  background: #FFFFFF; /* solid fallback */
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.10),
    0 2px 8px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.65);
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .app-tabbar { background: #FFFFFF; }
}
.app-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #6E6E73;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.25s var(--app-ease);
  min-height: var(--tab-h);
}
.app-tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--app-ease); }
.app-tab[aria-current="page"], .app-tab.is-active { color: #111; }
.app-tab[aria-current="page"] svg, .app-tab.is-active svg { transform: translateY(-1px); }
.app-tab-indicator {
  position: absolute;
  top: 6px;
  width: 18px; height: 3px;
  border-radius: 999px;
  background: #111;
  transform: scaleX(0);
  transition: transform 0.35s var(--app-ease);
}
.app-tab[aria-current="page"] .app-tab-indicator,
.app-tab.is-active .app-tab-indicator { transform: scaleX(1); }
.app-tab-badge {
  position: absolute;
  top: 10px; right: calc(50% - 22px);
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #111; color: #fff;
  font-size: 9px; font-weight: 600;
  display: none; place-items: center;
  line-height: 1;
}
.app-tab-badge.is-on { display: grid; }
body.nav-open .app-tabbar,
body.onboarding-open .app-tabbar { opacity: 0; pointer-events: none; }

/* ═══ Page transition ═══ */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: var(--app-ease);
}
body.app-fade-out { opacity: 0; transform: translateY(6px); transition: opacity 0.22s ease, transform 0.22s ease; }

/* ═══ Scroll reveals ═══ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--app-ease), transform 0.7s var(--app-ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

/* ═══ Card press — transform img only (never the <a>) ═══ */
a.product-card, a.chapter-card, a.film-card {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  transition: opacity 0.2s ease;
}
a.product-card.is-pressing, a.chapter-card.is-pressing, a.film-card.is-pressing {
  transform: none !important;
  opacity: 0.94;
}
a.product-card.is-pressing img, a.chapter-card.is-pressing img, a.film-card.is-pressing img {
  transform: scale(0.985);
  transition: transform 0.2s var(--app-ease);
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f2 0%, #fafafa 45%, #f0f0f2 90%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: inherit;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
img.is-loading { opacity: 0; }
img.is-loaded { opacity: 1; transition: opacity 0.45s ease; }

/* ═══ Onboarding fancy extras ═══ */
.onboard-slide .reveal-line {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--app-ease), transform 0.55s var(--app-ease);
}
.onboard-slide.is-active .reveal-line {
  opacity: 1; transform: none;
}
.onboard-slide.is-active .reveal-line:nth-child(1) { transition-delay: 0.05s; }
.onboard-slide.is-active .reveal-line:nth-child(2) { transition-delay: 0.15s; }
.onboard-slide.is-active .reveal-line:nth-child(3) { transition-delay: 0.28s; }
.onboard-slide.is-active .reveal-line:nth-child(4) { transition-delay: 0.4s; }
.onboard-visual {
  width: min(78vw, 320px);
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  background: #f5f5f7;
}
.onboard-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  transform: scale(1.08);
  transition: transform 0.9s var(--app-ease);
  aspect-ratio: auto;
}
.onboard-slide.is-active .onboard-visual img { transform: scale(1); }
.onboard-heart-wrap {
  width: min(56vw, 220px);
  height: min(56vw, 220px);
  margin-bottom: 28px;
  display: grid; place-items: center;
}
.onboard-heart-wrap svg { width: 100%; height: 100%; }
.onboard-heart-path {
  fill: #B8954A;
  fill-opacity: 0;
  stroke: #B8954A;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
/* Draw outline (1.4s), then fill solid brand gold (700ms) — matches app icon */
.onboard-slide.is-active .onboard-heart-path {
  animation:
    drawHeart 1.4s var(--app-ease) 0.2s forwards,
    fillHeart 0.7s ease-out 1.6s forwards;
}
@keyframes drawHeart {
  to { stroke-dashoffset: 0; }
}
@keyframes fillHeart {
  from { fill-opacity: 0; }
  to { fill-opacity: 1; }
}
.onboard-dots button {
  transition: width 0.35s var(--app-ease), background 0.35s var(--app-ease);
}

/* ═══ PDP zoom & fly ═══ */
.zoom-lightbox {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(255,255,255,0.97);
  display: none; place-items: center;
  touch-action: none;
}
.zoom-lightbox.is-open { display: grid; }
.zoom-lightbox img {
  max-width: 94vw; max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  transform-origin: center center;
  will-change: transform;
}
.zoom-close {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: 16px;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.08);
  background: #fff; font-size: 22px; cursor: pointer;
}
.fly-img {
  position: fixed; z-index: 95; pointer-events: none;
  border-radius: 10px; object-fit: cover;
  transition: transform 0.65s var(--app-ease), opacity 0.65s var(--app-ease), width 0.65s var(--app-ease), height 0.65s var(--app-ease);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.pdp-gallery figure { transition: opacity 0.35s ease; }
.price-block .price { transition: opacity 0.25s ease, transform 0.25s ease; }
.price-block.is-switching .price { opacity: 0; transform: translateY(4px); }

/* ═══ Bottom sheet cart ═══ */
.cart-sheet-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,0.18);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-sheet-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-height: min(86vh, 720px);
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -16px 48px rgba(0,0,0,0.12);
  transform: translateY(110%);
  transition: transform 0.4s var(--app-ease);
  padding: 0 0 calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
}
.cart-sheet.is-open { transform: translateY(0); }
.cart-sheet-handle {
  width: 40px; height: 4px; border-radius: 999px;
  background: rgba(0,0,0,0.14);
  margin: 10px auto 6px;
  flex-shrink: 0;
}
.cart-sheet-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 20px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.cart-sheet-header h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.cart-sheet-body {
  overflow-y: auto; padding: 12px 20px 20px;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .onboard-heart-path { stroke-dashoffset: 0; fill: #B8954A; fill-opacity: 1; }
}

/* Collections tab — golden ♥ as a 22px SVG, same box as the Home/Bag icons.
   Filled shape spans ~17×16 inside the 24 grid so its visual mass matches the 1.6px outline icons. */
.app-tab svg.app-tab-heart {
  display: block;
  width: 22px; height: 22px;
  fill: #C5A572;
  stroke: none;
  opacity: 0.7;
  transition: transform 0.3s var(--app-ease), fill 0.25s ease, opacity 0.25s ease;
}
.app-tab.is-active svg.app-tab-heart,
.app-tab[aria-current="page"] svg.app-tab-heart {
  opacity: 1;
  fill: #B8954A;
  transform: translateY(-1px);
}

/* Floating back — solid white glass so labels never show through */
.app-back {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  left: max(12px, env(safe-area-inset-left, 0px));
  z-index: 50;
  width: 44px; height: 44px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: #FFFFFF;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.06);
  text-decoration: none;
  color: #111;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .app-back { background: #FFFFFF; }
}
.app-back.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}
.app-back svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-back:active { opacity: 0.85; }

/* SW update toast */
.app-update-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + 28px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(16px);
  z-index: 70;
  border: 1px solid rgba(0,0,0,0.08);
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}
.app-update-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* App manifesto gold (ensure) */
body[data-web] .manifesto-gold,
body[data-web] .manifesto.manifesto-gold p {
  color: #B8954A !important;
  font-weight: 400 !important;
  font-weight: 550;
}
body[data-web] .heart-mark { color: #B8954A; }

/* Hide catalogue numbers if any slip through */
body[data-web] .chapter-meta .num,
body[data-web] .product-meta .num { display: none !important; }

/* ═══ Collections browse (all products) ═══ */
.collections-browse { padding-top: 20px; padding-bottom: 24px !important; }
.collections-browse .collections-lede {
  margin-bottom: 38px !important; /* ~36–40px before first card */
}
.cat-chips, .cat-chip, .cat-heading { display: none !important; }
.collections-browse .product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.collections-browse .product-card {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  scroll-margin-top: 12px;
}
.collections-browse .product-card > img,
.collections-browse .product-grid .product-card > img,
.collections-browse .product-grid:has(> :only-child) .product-card > img {
  width: 100%;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 14px;
  display: block;
  background: #f5f5f7;
  box-shadow: none;
  border: 0;
}
.collections-browse .product-meta {
  padding: 12px 0 0; /* no boxed chrome behind name/price */
  background: transparent;
}
.collections-browse .product-meta > p:not(.product-price):not(.eyebrow) {
  display: none !important;
}

.collections-lede .heart-mark {
  color: #B8954A;
  font-size: 0.95em;
  margin-left: 0.28em;
  vertical-align: baseline;
}

/* ═══ Empty bag ═══ */
body[data-web].bag-is-empty .cart-enquiry,
body[data-web].bag-is-empty [data-cart-enquiry] { display: none !important; }
body[data-web].bag-is-empty .cart-page {
  min-height: calc(100dvh - var(--nav-clearance, 100px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}
.bag-empty {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.bag-empty-heart {
  margin: 0;
  font-size: 48px;
  line-height: 1;
  color: #B8954A;
}
.bag-empty-logo {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #111;
}
.bag-empty-copy {
  margin: 10px 0 0;
  font-size: 15px;
  color: #6E6E73;
}
.bag-empty-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 48px;
  margin-top: 34px;
  text-decoration: none;
}
.bag-empty-enquire {
  margin-top: 16px;
  background: none;
  border: 0;
  padding: 8px 12px;
  font: inherit;
  font-size: 15px;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
body[data-web][data-cart-page] .cart-page:not(:has(.bag-empty)) {
  padding-top: 20px;
}
body[data-web][data-cart-page] .cart-enquiry { margin-top: 28px; }

/* Home after filmstrip removal — tight hero → manifesto */
body[data-web] .hero-v5 { padding-bottom: 12px; }
body[data-web] .home-manifesto { padding-top: 60px; padding-bottom: 60px; }

/* Floating back — only on deep pages; clear content below it */
body[data-web].has-app-back .pdp,
body[data-web].has-app-back main > .section:first-child,
body[data-web].has-app-back main > section.wrap:first-child {
  padding-top: 64px !important;
}

/* ═══ Home landing — manifesto, bleed image, enquire ═══ */
.home-manifesto {
  text-align: center;
  padding: 60px var(--gutter, 20px) !important; /* ~56–64px above/below */
  max-width: none;
  margin: 0;
  background: #fff;
  /* never mid-fade — always full-opacity gold */
  opacity: 1 !important;
  transform: none !important;
}
.home-manifesto[data-reveal],
.home-manifesto[data-reveal].is-in {
  opacity: 1 !important;
  transform: none !important;
}
.home-manifesto p,
.home-manifesto .display,
.home-manifesto.manifesto-gold p,
.manifesto.home-manifesto p.manifesto-gold {
  color: #B8954A !important;
  font-weight: 400 !important;
  font-size: clamp(17px, 4.35vw, 20px) !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em !important;
  max-width: 30ch !important;
  margin: 0 auto !important;
  text-wrap: pretty;
  opacity: 1 !important;
}
.home-manifesto .heart-mark {
  color: #B8954A !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

/* Full-bleed petrified close-up — no card, no grey band */
.home-material {
  background: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
}
.home-material-bleed {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
  width: 100%;
  max-width: none;
}
.home-material-bleed img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important;
}
.home-material-copy {
  padding-top: 28px;
  padding-bottom: 8px;
}
a.text-link {
  display: inline;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.text-link:hover { color: #B8954A; }

.home-enquire {
  background: #fff !important;
  text-align: left !important;
}
/* Keep .wrap gutters (~20–22px) — do NOT zero out margin */
.home-enquire-inner.wrap,
.home-enquire-inner {
  text-align: left !important;
  max-width: 40rem;
  margin-inline: auto !important; /* restore wrap side padding via width + center */
  box-sizing: border-box;
}
.home-enquire-inner .display,
.home-enquire-inner h2 {
  text-align: left !important;
  color: #111 !important; /* full black — override .display muted */
  opacity: 1 !important;
}
.home-enquire[data-reveal],
.home-enquire-inner[data-reveal],
.home-enquire .display[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}
.home-enquire .display.is-in,
.home-enquire-inner .display {
  color: #111 !important;
  opacity: 1 !important;
}

/* ═══ Onboarding: logo heart, tree rings ═══ */
.onboard-logo-heart {
  width: 38px; height: 35px;
  margin: 0 auto 14px;
}
.onboard-logo-heart svg { width: 100%; height: 100%; overflow: visible; }
.onboard-logo-heart .onboard-heart-path { stroke-width: 6; }
.onboard-slide .onboard-logo { color: #111; }
.onboard-slide .onboard-tag { color: #3A3A3C; }
/* Onboarding subtext — keep to 2 lines on narrow phones */
@media (max-width: 374px) {
  .onboard-stage .onboard-slide p { font-size: 15px; letter-spacing: -0.005em; }
}

/* ═══ Onboarding v3 — three auto-advancing screens, crossfade ═══ */
.onboard { transition: opacity 0.8s ease; }
.onboard.is-leaving { opacity: 0; pointer-events: none; }
.onboard-skip {
  position: absolute; top: max(6px, env(safe-area-inset-top, 0px)); right: 10px;
  margin: 0; z-index: 2;
  font-size: 13px; color: #8E8E93;
}
.onboard-stage {
  position: relative;
  flex: 1;
  cursor: pointer;
}
.onboard-stage .onboard-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.onboard-stage .onboard-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0s;
}
.onboard-stage .onboard-slide p { max-width: 32ch; }
.onboard-footer { padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); }
.onboard-dots span {
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(0,0,0,0.14);
  transition: background 0.6s ease;
}
.onboard-dots span.is-on { background: rgba(0,0,0,0.55); }
@media (prefers-reduced-motion: reduce) {
  .onboard-slide .reveal-line { transform: none !important; }
}

/* Onboarding screen 3 CTA */
.onboard-footer .onboard-cta {
  width: min(100%, 360px);
  min-height: 50px;
  border-radius: 999px;
  background: #111; color: #fff; border: 0;
  font-size: 15px; font-weight: 600;
  animation: onboardCtaIn 0.8s ease both;
}
.onboard-footer .onboard-cta[hidden] { display: none !important; }
@keyframes onboardCtaIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══ Home bottom sheets ═══ */
.app-sheet-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,0.18);
  opacity: 0; transition: opacity 0.35s ease;
}
.app-sheet-overlay.is-open { opacity: 1; }
.app-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 81;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.10);
  padding: 8px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  transform: translateY(105%);
  transition: transform 0.38s var(--app-ease);
  max-width: 560px; margin: 0 auto;
  color: #111;
}
.app-sheet.is-open { transform: translateY(0); }
.app-sheet-handle {
  width: 38px; height: 4px; border-radius: 999px;
  background: rgba(0,0,0,0.14);
  margin: 2px auto 10px;
}
.app-sheet-close {
  position: absolute; top: 8px; right: 10px;
  width: 36px; height: 36px; border: 0; background: none;
  font-size: 22px; line-height: 1; color: #8E8E93; cursor: pointer;
}
.app-sheet-body { padding-top: 6px; }
.app-sheet--center { text-align: center; }
.sheet-heart { margin: 0 0 10px; color: #B8954A; font-size: 22px; line-height: 1; }
.sheet-eyebrow {
  margin: 0 0 6px; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #B8954A; font-weight: 600;
}
.app-sheet-title {
  margin: 0 0 8px; font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.2; color: #111;
}
.app-sheet-sub { margin: 0 0 16px; font-size: 15px; line-height: 1.45; color: #6E6E73; }
.app-sheet--diwali .app-sheet-body p:last-child { margin: 0; }
.sheet-shimmer {
  display: block; width: 56px; height: 1px; margin: 4px auto 14px;
  background: linear-gradient(90deg, rgba(184,149,74,0), #B8954A 30%, #E6D2A6 50%, #B8954A 70%, rgba(184,149,74,0));
  background-size: 200% 100%;
  animation: sheetShimmer 2.8s ease-in-out infinite;
}
@keyframes sheetShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.lead-form { display: flex; flex-direction: column; gap: 10px; }
.lead-field {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(0,0,0,0.14); border-radius: 12px;
  padding: 0 14px; min-height: 50px; background: #fff;
}
.lead-field:focus-within { border-color: #111; }
.lead-prefix { font-size: 16px; color: #111; font-weight: 500; }
.lead-field input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; color: #111; min-width: 0; padding: 0;
}
.lead-error { margin: 0; font-size: 13px; color: #B3261E; }
.lead-error[hidden] { display: none; }
.lead-submit { width: 100%; min-height: 50px; border-radius: 999px; background: #111; color: #fff; border: 0; font-weight: 600; font-size: 15px; }
.lead-consent { margin: 2px 0 0; font-size: 12px; color: #8E8E93; text-align: center; }
.lead-thanks { text-align: center; padding: 18px 0 8px; }
.lead-thanks[hidden], [data-lead-form-wrap][hidden] { display: none; }

/* ═══ Onboarding v4 — one type system for all 3 screens ═══ */
.onboard-stage { --ob-h: 26px; }
.onboard-stage .onboard-slide {
  justify-content: flex-start;          /* heart sits at the same y on every screen */
  padding-top: 34vh;
  padding-left: 24px; padding-right: 24px;
}
.onboard-stage .onboard-logo-heart {
  width: 38px; height: 35px;
  margin: 0 auto 14px;
  flex: 0 0 auto;
}
.onboard-stage .onboard-slide h2,
.onboard-stage .onboard-slide h2.onboard-logo {
  font-size: var(--ob-h);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0;
  max-width: none;
  white-space: nowrap;                  /* one line — no forced <br> */
  text-transform: none;
}
.onboard-stage .onboard-slide h2.onboard-logo {
  text-transform: uppercase;
  letter-spacing: 0.12em;               /* wordmark tracking */
}
.onboard-stage .onboard-sep {
  display: block;
  width: 36px; height: 1px;
  background: #B8954A;
  margin: 14px auto;
  flex: 0 0 auto;
}
.onboard-stage .onboard-slide p.onboard-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: #6E6E73;
  text-transform: none;
  margin: 0;
  max-width: 32ch;
}
@media (max-width: 374px) {
  .onboard-stage .onboard-slide p.onboard-sub { font-size: 15px; letter-spacing: -0.005em; }
}

/* v20 wordmark — tighter + bolder, matches the home logo */
.onboard-stage .onboard-slide h2.onboard-logo { letter-spacing: 0.07em; font-weight: 700; }
.bag-empty-logo { letter-spacing: 0.1em; font-weight: 700; }
/* v20: variant selectors are always visible (never wait on scroll-reveal) */
.pdp-info > [data-vx-selectors][data-reveal] { opacity: 1 !important; transform: none !important; }

/* ═══ Web-only (v21): equal gutters + desktop centred pill ═══ */
body[data-web] { --gutter: 20px; }
@media (min-width: 600px) { body[data-web] { --gutter: 32px; } }
@media (min-width: 900px) {
  body[data-web] .app-tabbar {
    left: 50%; right: auto;
    width: min(460px, calc(100vw - 28px));
    transform: translateX(-50%);
    bottom: 20px;
  }
  /* Desktop PDP: CTA sits inline in the info column (no floating CTA over content) */
  body[data-web] .pdp-actions,
  body[data-web].has-pdp-actions .pdp-actions {
    position: static !important;
    left: auto !important; right: auto !important; bottom: auto !important;
    margin: 20px 0 0 !important;
    gap: 12px !important;
  }
  body[data-web] .pdp-actions .btn { flex: 1 1 0; }
  body[data-web] .pdp-actions .btn-ghost {
    display: inline-flex !important;
    background: transparent !important; color: #111 !important;
    border: 1px solid rgba(0,0,0,0.16) !important;
  }
  body[data-web].has-pdp-actions .pdp { padding-bottom: 28px !important; }
  body[data-web].has-pdp-actions .site-footer { padding-bottom: calc(28px + var(--nav-clearance)) !important; }
  body[data-web] .wa-fab,
  body[data-web].has-pdp-actions .wa-fab {
    right: 24px;
    bottom: 26px !important;
  }
  body[data-web]::after { height: calc(var(--tab-h) + 30px); }
}
@media (max-width: 899px) {
  body[data-web] .pdp-actions,
  body[data-web].has-pdp-actions .pdp-actions {
    left: max(var(--gutter), env(safe-area-inset-left, 0px)) !important;
    right: max(var(--gutter), env(safe-area-inset-right, 0px)) !important;
  }
}
@media (min-width: 700px) {
  body[data-web] .collections-browse .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
}
@media (min-width: 1100px) {
  body[data-web] .collections-browse .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ═══ v22 (web): home text gutters, two-line quote, right-aligned footer links, phone-width menus ═══ */
body[data-web] { --home-gutter: 38px; }
@media (min-width: 600px) { body[data-web] { --home-gutter: 48px; } }
@media (min-width: 900px) { body[data-web] { --home-gutter: 64px; } }
/* Home text blocks: larger, equal gutters both sides; inside the centred column on desktop */
body[data-web] .home-material-copy.wrap,
body[data-web] .home-spiritual-inner.wrap,
body[data-web] .home-newrange .wrap,
body[data-web] .home-enquire-inner.wrap,
body[data-web] .home-saga .wrap {
  width: min(100% - 2 * var(--home-gutter), var(--max) - 2 * (var(--home-gutter) - var(--gutter))) !important;
  margin-left: auto !important; margin-right: auto !important;
  padding-left: 0 !important; padding-right: 0 !important;
  max-width: none !important;
}
/* Subtexts run the full width up to the right gutter (no narrow measure) */
body[data-web] .home-material-copy,
body[data-web] .home-material-copy p,
body[data-web] .home-spiritual-inner p,
body[data-web] .home-spiritual-inner p:last-child,
body[data-web] .home-newrange-sub,
body[data-web] .home-newrange-stones,
body[data-web] .home-saga .prose,
body[data-web] .home-saga .prose p,
body[data-web] .home-enquire-inner p {
  max-width: none !important;
}
/* Golden heart quote: exactly two lines, each line never wraps */
body[data-web] .home-manifesto { padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
body[data-web] .home-manifesto p.manifesto-2l {
  max-width: none !important;
  font-size: min(24px, calc((100vw - 2 * var(--gutter)) / 28.2)) !important;
  padding-inline: 0 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.45 !important;
  text-wrap: nowrap;
}
body[data-web] .home-manifesto .m-line { white-space: nowrap; }
/* Footer: link group right-aligned */
body[data-web] .footer-grid > div:nth-child(2) { text-align: right; justify-self: end; order: 3; }
body[data-web] .footer-grid > div:nth-child(2) ul { justify-items: end; }
/* Menus: phone width on every screen, centred */
body[data-web] .app-tabbar {
  left: 50% !important; right: auto !important;
  width: min(362px, calc(100vw - 28px)) !important;
  transform: translateX(-50%);
}
body[data-web] .ss-sheet,
body[data-web] .app-sheet { max-width: 420px !important; }
