/* ============================================================================
   SOHRAAZ — PREMIUM EDITORIAL LAYER  (premium.css)
   ----------------------------------------------------------------------------
   A FINAL overlay, not a rewrite. It refines the existing storefront without
   changing markup, layout architecture or content. It is intentionally flat:
   warm neutral grounds, one restrained accent, crisp 1px borders, honest
   typography. No glassmorphism, no random gradients, no multicolour decoration.

   Load order: components/*, pages/*, base/shared.css, base/luxury.css,
   base/theme.css, [variant2/glass.css], THIS FILE. Critical globals use a
   doubled selector or an `html ...` prefix so they win even if a later
   variant layer is appended after this file, without leaning on !important.

   Colour discipline: every accent is var(--p-accent) (default = var(--gold)).
   The light ivory / wine house theme overrides --p-accent to --p-wine
   externally; NO wine value is applied globally by this layer. Dark themes
   keep using their own gold. Wine hexes below are named tokens only.
   ========================================================================== */

/* ============================================================================
   1. DESIGN TOKENS
   ========================================================================= */
:root{
  /* ---- spacing scale, 4 → 96px ---- */
  --p-s1:4px;   --p-s2:8px;   --p-s3:12px;  --p-s4:16px;
  --p-s5:24px;  --p-s6:32px;  --p-s7:40px;  --p-s8:48px;
  --p-s9:64px;  --p-s10:80px; --p-s11:96px;

  /* ---- radius scale: squared editorial corners ---- */
  --p-r1:2px;  --p-r2:4px;  --p-r3:8px;  --p-r4:12px;
  --p-card-r:var(--p-r3);
  --p-ctl-r:var(--p-r2);

  /* ---- elevation: quiet, never a drop-shadow party ---- */
  --p-sh1:0 1px 2px color-mix(in srgb, var(--theme-scrim) 5%, transparent), 0 6px 18px color-mix(in srgb, var(--theme-scrim) 6%, transparent);
  --p-sh2:0 12px 34px color-mix(in srgb, var(--theme-scrim) 10%, transparent);
  --p-sh3:0 22px 56px color-mix(in srgb, var(--theme-scrim) 16%, transparent);

  /* ---- containers & gutters ---- */
  --p-container:1320px;
  --p-container-n:1180px;
  --p-gutter:clamp(16px,3.2vw,40px);

  /* ---- motion: 120 / 180 / 240ms ---- */
  --p-t1:120ms;
  --p-t2:180ms;
  --p-t3:240ms;
  --p-ease:cubic-bezier(.2,.7,.3,1);

  /* ---- control metrics (touch-friendly) ---- */
  --p-btn-h:46px;
  --p-btn-lg-h:54px;
  --p-ctl-h:46px;
  --p-tap:44px;

  /* ---- type scale, fluid ---- */
  --p-fs-xxs:clamp(10px,.70rem,11px);
  --p-fs-xs:clamp(11px,.78rem,12px);
  --p-fs-sm:clamp(12px,.86rem,13px);
  --p-fs-body:clamp(14px,.98rem,15px);
  --p-fs-lead:clamp(16px,1.2vw,18px);
  --p-fs-h3:clamp(19px,1.6vw,23px);
  --p-fs-h2:clamp(28px,3.2vw,42px);
  --p-fs-h1:clamp(38px,5vw,64px);
  --p-fs-display:clamp(52px,8vw,104px);

  /* ---- colour ROLES, derived from the active Theme Plate ----
     These are the ONLY accent hooks the rest of the file uses. ---- */
  --p-accent:var(--gold);           /* overridable by the house theme      */
  --p-on-accent:var(--on);          /* legible ink on the accent ground    */
  --p-surface:var(--bg2);           /* soft neutral surface                */
  --p-surface-2:var(--d1);          /* raised / inset surface              */
  --p-line:var(--line);             /* hairline borders                    */
  --p-line-strong:var(--gold);      /* accent rule / active underline      */

  /* named wine tokens — declared, not applied globally */
  --p-wine:#6b2233;
  --p-wine-2:#8c2f45;
  --p-ink-deep:#241c17;

  /* accent tints: solid fallback, then blended when color-mix() is present */
  --p-accent-soft:rgba(var(--gold-rgb),.08);
  --p-accent-soft:color-mix(in srgb,var(--p-accent) 8%,transparent);
  --p-accent-wash:rgba(var(--gold-rgb),.14);
  --p-accent-wash:color-mix(in srgb,var(--p-accent) 14%,transparent);

  /* ---- z-index map (single source of truth for overlays) ---- */
  --p-z-header:50;
  --p-z-drawer:940;
  --p-z-modal:960;
  --p-z-toast:980;
}

/* House-style hook: the light ivory / wine theme sets --p-accent:var(--p-wine)
   here (or in theme.css). var(--theme-on-dark) ink is correct on the deep wine ground only. */
html[data-theme="ivory"]{
  --p-on-accent:var(--theme-on-dark);
  /* --p-accent:var(--p-wine);  <- enabled by the house theme */
}

/* ============================================================================
   2. GLOBAL REFINEMENT
   ========================================================================= */
html{max-width:100%;overflow-x:clip;scroll-behavior:smooth}
html body{
  max-width:100%;
  overflow-x:clip;
  font-family:var(--fb);
  font-size:var(--p-fs-body);
  font-weight:var(--fw-regular);
  line-height:var(--lh-wide);
  letter-spacing:.005em;
  -webkit-text-size-adjust:100%;
  color:var(--ink);
  background:var(--bg);
}
html::selection{background:var(--p-accent);color:var(--p-on-accent)}

/* one visible focus language across the whole storefront */
html :focus-visible{
  outline:2px solid var(--p-accent);
  outline-offset:3px;
}
html .btn.btn:focus-visible,
html .btn-gold:focus-visible,
html .btn-dark:focus-visible,
html .btn-outline:focus-visible,
html .btn-ghost:focus-visible,
html input:focus-visible,
html select:focus-visible,
html textarea:focus-visible,
html button:focus-visible,
html a:focus-visible,
html [tabindex]:focus-visible{
  outline:2px solid var(--p-accent);
  outline-offset:3px;
}

/* headings: controlled rhythm, balanced wrap */
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6{
  font-family:var(--fd);
  font-weight:var(--fw-medium);
  color:var(--ink);
  line-height:1.10;
  letter-spacing:-.01em;
  text-wrap:balance;
}
html body h1{font-size:var(--p-fs-h1);line-height:1.02}
html body h2{font-size:var(--p-fs-h2)}
html body h3{font-size:var(--p-fs-h3);line-height:1.25}

/* long-form paragraphs keep a comfortable measure */
.rich-text p,
.policy-body p,
.pdp-desc p,
.about-wrap p,
.cms-rich p,
.pb-rich p{
  max-width:68ch;
  line-height:1.78;
}
p{orphans:2;widows:2}

/* container: balanced gutters, capped editorial measure */
.container.container{
  width:100%;
  max-width:var(--p-container);
  margin-inline:auto;
  padding-inline:var(--p-gutter);
}
.narrow.narrow{max-width:var(--p-container-n)}

/* section rhythm + editorial labels */
.section,.pb-section{padding-block:var(--p-s9)}
.section-tight,.section.tight{padding-block:var(--p-s7)}
.sec-head{margin-bottom:var(--p-s7);max-width:62ch}
.sec-head h2{margin:0 0 var(--p-s2)}
.sec-head p{margin:0;color:var(--mute);font-size:var(--p-fs-lead)}
.overline,.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:var(--p-s2);
  font-family:var(--fb);
  font-size:var(--p-fs-xxs);
  font-weight:var(--fw-semibold);
  letter-spacing:var(--ls-11xl);
  line-height:var(--lh-read);
  text-transform:uppercase;
  color:var(--p-accent);
}
.overline .mark,.eyebrow .mark{font-size:1.1em;line-height:var(--lh-none)}
.section-rule,.suggest-rule{
  width:64px;height:1px;border:0;
  background:var(--p-line-strong);
  margin-block:var(--p-s3);
}
.divider{height:var(--gap-p1);background:var(--p-line);border:0;margin-block:var(--p-s6)}

/* links & small type */
a{text-decoration-thickness:1px;text-underline-offset:3px}
small,.fine{font-size:var(--p-fs-xs);color:var(--mute)}
.muted,.muted *{color:var(--mute)}
.tabular,.price,.total,.qty span,.count{font-variant-numeric:tabular-nums}

/* grid children never force horizontal scroll */
.prod-grid>*,
.suggest-grid>*,
.foot-grid>*,
.acct-body>*,
.cart-bench>*,
.wb-grid>*,
.occ-grid>*{min-width:0}

/* ============================================================================
   3. HEADER / NAV / MEGA / MOBILE DRAWER
   ========================================================================= */
html body .header{
  position:sticky;
  top:0;
  z-index:var(--p-z-header);
  background:var(--hdr);
  border-bottom:1px solid var(--p-line);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
html body .header.scrolled{box-shadow:var(--p-sh1)}
html body .header-in{
  height:76px;
  gap:var(--p-s4);
  align-items:center;
}
html body .logo img{height:44px;width:auto;object-fit:contain}

/* nav links: 44px hit area without inflating the bar */
html body .nav ul{gap:clamp(14px,1.5vw,22px)}
html body .nav a{
  display:inline-flex;
  align-items:center;
  min-height:var(--p-tap);
  padding:var(--gap-md) 0;
  font-size:var(--p-fs-xs);
  font-weight:var(--fw-medium);
  letter-spacing:var(--ls-4xl);
  color:var(--mute);
  border-bottom:1px solid transparent;
  transition:color var(--p-t2) var(--p-ease),border-color var(--p-t2) var(--p-ease);
}
html body .nav a:hover,
html body .nav a[aria-current="page"],
html body .nav a.active{
  color:var(--p-accent);
  border-bottom-color:var(--p-line-strong);
}

/* mega panel: crisp border, consistent padding, no glow */
html body .nav .mega{
  top:calc(100% + 8px);
  min-width:min(560px,86vw);
  padding:var(--p-s5) var(--p-s6);
  background:var(--p-surface);
  border:1px solid var(--p-line);
  border-top:2px solid var(--p-accent);
  border-radius:var(--p-r3);
  box-shadow:var(--p-sh2);
  gap:var(--p-s6);
}
html body .mega-h{
  font-size:var(--p-fs-xxs);
  letter-spacing:var(--ls-9xl);
  text-transform:uppercase;
  color:var(--p-accent);
  margin-bottom:var(--p-s3);
}
html body .mega-col{gap:var(--p-s2)}
html body .mega-col a{
  display:flex;
  align-items:center;
  min-height:36px;
  padding:var(--gap-xs) 0;
  font-size:var(--p-fs-sm);
  letter-spacing:var(--ls-lg);
  color:var(--ink);
  border-bottom:1px solid transparent;
}
html body .mega-col a:hover{
  color:var(--p-accent);
  border-bottom-color:var(--p-line);
}

/* icon actions: real 44px touch targets */
html body .actions{gap:var(--p-s3)}
html body .actions button,
html body .actions a,
html body .actions .act{
  min-width:var(--p-tap);
  min-height:var(--p-tap);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:var(--gap-xl);
  color:var(--mute);
  border-radius:var(--p-r2);
  transition:color var(--p-t2) var(--p-ease);
}
/* The burger shares the action sizing but MUST stay hidden on desktop: the
   canonical .burger{display:none} only wins below the nav-takeover breakpoint.
   Keeping display out of this base rule lets header.css control visibility. */
html body .burger{
  min-width:var(--p-tap);
  min-height:var(--p-tap);
  align-items:center;
  justify-content:center;
  padding:var(--gap-xl);
  border-radius:var(--p-r2);
}
@media (max-width:1320px){
  html body .burger{display:inline-flex !important}
}
html body .actions button:hover,
html body .actions a:hover,
html body .actions .act:hover,
html body .burger:hover{color:var(--p-accent)}
html body .actions .icon,
html body .actions svg{width:20px;height:20px;stroke-width:1.5}
html body .count{
  background:var(--p-accent);
  color:var(--p-on-accent);
  font-variant-numeric:tabular-nums;
  border-radius:var(--radius-pill);
}

/* mobile panel: edge-to-edge safe at 320px, no content hidden */
html body .mnav{
  width:100%;
  max-width:100vw;
  background:var(--p-surface);
  border-bottom:1px solid var(--p-line);
  box-shadow:var(--p-sh2);
  border-radius:0 0 var(--p-r3) var(--p-r3);
  -webkit-overflow-scrolling:touch;
}
html body .mnav a{
  min-height:48px;
  padding:var(--gap-5xl) var(--gap-11xl);
  font-size:var(--p-fs-xs);
  letter-spacing:var(--ls-5xl);
  color:var(--ink);
  border-top:1px solid var(--p-line);
}
html body .mnav a:hover{color:var(--p-accent);background:var(--p-accent-soft)}
html body .mnav a svg{stroke:var(--p-accent)}
html body .mnav a small{color:var(--mute)}
html body .burger.open{transform:rotate(90deg)}
html body .mnav-scrim{background:color-mix(in srgb, var(--theme-scrim) 50%, transparent)}

/* ============================================================================
   4. BUTTONS — flat, squared, one accent, 44px minimum
   ========================================================================= */
.btn.btn,
.buy-button.buy-button,
.secondary-button.secondary-button,
.btn-dark.btn-dark,
.btn-solid.btn-solid,
.btn-outline.btn-outline,
.btn-ghost.btn-ghost,
.btn-gold.btn-gold,
.btn-cream.btn-cream,
.btn-primary.btn-primary,
.coupon-apply.coupon-apply,
.view-link.view-link,
.chat-send.chat-send,
.auth-cta.auth-cta,
.bill-cta.bill-cta,
.restock-btn.restock-btn,
.rev-submit.rev-submit,
.rev-cta.rev-cta,
.search-form button.search-form button,
.nl button.nl button{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--gap-xl);
  min-height:var(--p-btn-h);
  padding:0 var(--gap-13xl);
  background:var(--p-accent);
  color:var(--p-on-accent);
  border:1px solid var(--p-accent);
  border-radius:var(--p-ctl-r);
  box-shadow:none;
  text-shadow:none;
  font-family:var(--fb);
  font-size:var(--p-fs-xs);
  font-weight:var(--fw-semibold);
  letter-spacing:var(--ls-5xl);
  line-height:var(--lh-none);
  text-transform:uppercase;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
  transition:background-color var(--p-t2) var(--p-ease),
             color var(--p-t2) var(--p-ease),
             border-color var(--p-t2) var(--p-ease),
             box-shadow var(--p-t2) var(--p-ease);
}
/* Keep the glass sheen on buttons — it is the specular top light that makes
   the 3D finish read. Only the redundant drop shadow on the pseudo is removed;
   the sheen itself now comes from the shared 3D button layer. */
.btn.btn::after,
.btn-gold::after,
.btn-dark::after,
.btn-outline::after,
.btn-ghost::after,
.btn-primary::after,
.coupon-apply::after,
.chat-send::after,
.auth-cta::after{box-shadow:none}

.btn.btn svg,
.btn-gold svg,
.btn-outline svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7}

/* variants */
.btn.btn-primary,
.btn.btn-gold{background:var(--p-accent);color:var(--p-on-accent);border-color:var(--p-accent)}
.btn.btn-secondary{background:var(--p-surface-2);color:var(--ink);border-color:var(--p-line)}
.btn.btn-outline{
  background:transparent;color:var(--ink);border-color:var(--p-line-strong);
}
.btn.btn-ghost{background:transparent;color:var(--ink);border-color:transparent}
.btn.btn-dark{background:var(--p-ink-deep);color:var(--theme-on-dark);border-color:var(--p-ink-deep)}
.btn.btn-cream{background:var(--p-surface);color:var(--ink);border-color:var(--p-line)}

/* states */
.btn.btn:hover,
.btn-gold:hover,
.btn-primary:hover{filter:brightness(.94)}
.btn.btn-outline:hover,
.btn.btn-ghost:hover,
.btn.btn-secondary:hover{
  background:var(--p-accent-soft);
  border-color:var(--p-accent);
  color:var(--p-accent);
}
.btn.btn:active,
.btn-gold:active{filter:brightness(.88)}
.btn.btn:disabled,
.btn.btn[aria-disabled="true"],
.btn.btn.is-disabled,
.btn.btn-primary:disabled,
.btn-gold:disabled{
  opacity:.5;cursor:not-allowed;box-shadow:none;filter:none;
}
.btn.btn.is-loading{opacity:.72;cursor:progress;pointer-events:none}

/* sizes */
.btn.btn-sm{min-height:var(--gap-20xl);padding:0 var(--gap-9xl);font-size:var(--p-fs-xxs)}
.btn.btn-lg{min-height:var(--p-btn-lg-h);padding:0 var(--gap-p32);font-size:var(--p-fs-sm)}
.btn.btn-block,.buy-button.buy-button,.secondary-button.secondary-button{width:100%}
.view-link.view-link{
  min-height:var(--gap-20xl);padding:0 var(--gap-11xl);background:transparent;color:var(--p-accent);
  border-color:var(--p-line-strong);
}
.view-link.view-link:hover{background:var(--p-accent-soft);color:var(--p-accent)}

/* hero outline reads on both dark film and light panels */
.hero-ctas .btn.btn-outline,
.hero-cta .btn.btn-outline,
.hero .btn.btn-outline{
  background:transparent;color:var(--ink);border-color:var(--p-line-strong);
}

/* ============================================================================
   5. PRODUCT CARDS / CATEGORY TILES / RAILS
   ========================================================================= */
.prod.prod{
  display:flex;
  flex-direction:column;
  height:100%;
  overflow:hidden;
  background:var(--p-surface);
  border:1px solid var(--p-line);
  border-radius:var(--p-card-r);
  transition:border-color var(--p-t2) var(--p-ease),box-shadow var(--p-t2) var(--p-ease);
}
.prod.prod:hover{border-color:var(--p-line-strong);box-shadow:var(--p-sh1)}
.prod-img{
  position:relative;
  aspect-ratio:4/5;
  overflow:hidden;
  background:var(--p-surface-2);
}
.prod-img img{width:100%;height:100%;object-fit:cover;display:block}
.prod-meta{
  display:flex;
  flex:1;
  flex-direction:column;
  gap:var(--gap-md);
  padding:var(--p-s4);
}
.prod-name{
  font-family:var(--fd);
  font-size:var(--p-fs-h3);
  line-height:var(--lh-relaxed);
  color:var(--ink);
  margin:0;
}
.prod-prices{display:flex;align-items:baseline;gap:var(--p-s2);flex-wrap:wrap}
.prod-prices .price{color:var(--p-accent);font-size:var(--p-fs-body);font-weight:600}
.prod-prices .mrp{color:var(--mute);text-decoration:line-through;font-size:var(--p-fs-sm)}
.prod-prices .pct-off{
  color:var(--p-accent);
  border:1px solid var(--p-line);
  border-radius:var(--p-r1);
  padding:var(--gap-3xs) var(--gap-md);
  font-size:var(--p-fs-xxs);
  background:var(--p-surface-2);
}
.prepaid-tag{font-size:var(--p-fs-xxs);color:var(--mute)}
.prod-rating{font-size:var(--p-fs-xs);color:var(--mute)}
.prod-rating .stars{color:var(--p-accent)}
.swatches i{border-color:var(--p-line)}
.prod-stock{font-size:var(--p-fs-xs);margin-top:auto}
.prod-stock.low::before{content:"●  ";font-size:.7em}
.prod-stock.out::before{content:"○  ";font-size:.7em}

/* wishlist heart: 40px visual, 46px hit area */
.prod .wish{
  top:var(--p-s3);right:var(--p-s3);
  width:40px;height:40px;
  background:var(--p-surface);
  border:1px solid var(--p-line);
  border-radius:var(--radius-round);
  color:var(--ink);
  transition:color var(--p-t2) var(--p-ease),border-color var(--p-t2) var(--p-ease);
}
.prod .wish::after{content:"";position:absolute;inset:-3px;border-radius:var(--radius-round)}
.prod .wish:hover,
.prod .wish.on{border-color:var(--p-accent);color:var(--p-accent)}
.prod .wish.on .icon{fill:var(--p-accent);stroke:var(--p-accent)}

/* badges: shape + text, never colour alone */
.badge,.prod-badge,.wb-badge{
  display:inline-flex;align-items:center;
  padding:var(--gap-xs) var(--gap-xl);
  font-family:var(--fb);
  font-size:var(--p-fs-xxs);
  font-weight:var(--fw-semibold);
  letter-spacing:var(--ls-3xl);
  text-transform:uppercase;
  color:var(--ink);
  background:var(--p-surface);
  border:1px solid var(--p-line);
  border-radius:var(--p-r1);
}

/* category tiles */
.occ-grid,.cat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:var(--p-s4);
}
.occ,.cat-tile{
  display:block;
  position:relative;
  overflow:hidden;
  border:1px solid var(--p-line);
  border-radius:var(--p-card-r);
  aspect-ratio:4/5;
  background:var(--p-surface-2);
}
.occ img,.cat-tile img{width:100%;height:100%;object-fit:cover;display:block}
.occ span,.occ b{letter-spacing:var(--ls-3xl)}
.occ-tile span{color:var(--p-accent)}

/* shoppable stories strip */
.stories-track{display:flex;gap:var(--p-s4);overflow-x:auto;scrollbar-width:none}
.stories-track::-webkit-scrollbar{display:none}
.stories-track>*{flex:none}

/* rails */
.suggest-rail,.recent-rail{padding-block:var(--p-s9)}
.suggest-head{margin-bottom:var(--p-s6)}
.suggest-title{
  font-family:var(--fd);font-size:var(--p-fs-h2);color:var(--ink);margin:0;text-wrap:balance;
}
.suggest-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:var(--p-s5);
  align-items:stretch;
}
.suggest-grid .prod{height:100%}
.suggest-cta{margin-top:var(--p-s6)}
.sr-track,.recent-rail .sr-track{
  display:flex;gap:var(--p-s4);overflow-x:auto;scroll-snap-type:x mandatory;
}
.sr-track>*{scroll-snap-align:start;flex:0 0 clamp(180px,22vw,240px)}

/* product grid (phones get two columns — see §13) */
.prod-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--p-s5)}

/* ============================================================================
   6. INPUTS / FORMS
   ========================================================================= */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="file"]),
select,
textarea{
  width:100%;
  min-height:var(--p-ctl-h);
  padding:var(--gap-3xl) var(--gap-7xl);
  background:var(--p-surface);
  color:var(--ink);
  border:1px solid var(--p-line);
  border-radius:var(--p-ctl-r);
  font-family:var(--fb);
  font-size:var(--p-fs-body);
  line-height:var(--lh-read);
  transition:border-color var(--p-t2) var(--p-ease),box-shadow var(--p-t2) var(--p-ease);
}
textarea{resize:vertical;min-height:96px}
select{appearance:none;padding-right:var(--gap-19xl)}
input::placeholder,textarea::placeholder{color:var(--mute);opacity:.85}
input:focus,select:focus,textarea:focus{
  border-color:var(--p-accent);
  box-shadow:0 0 0 3px var(--p-accent-soft);
  outline:none;
}
select option{background:var(--p-surface);color:var(--ink)}

label,.field-label,.form-label{
  display:block;
  margin-bottom:var(--p-s2);
  font-family:var(--fb);
  font-size:var(--p-fs-xs);
  font-weight:var(--fw-semibold);
  letter-spacing:var(--ls-3xl);
  text-transform:uppercase;
  color:var(--mute);
}
.field{margin-bottom:var(--p-s4)}
.field-hint{font-size:var(--p-fs-xs);color:var(--mute);margin-top:var(--p-s1)}
.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--p-s4)}

/* error / success: thicker left rule is the non-colour cue */
.is-error,[aria-invalid="true"]{
  border-color:var(--err);border-left-width:3px;
}
.is-success{
  border-color:var(--ok);border-left-width:3px;
}
.field-error,.field-success{
  font-size:var(--p-fs-xs);margin-top:var(--p-s1);
}
.field-error{color:var(--err)}
.field-success{color:var(--ok)}

/* search */
.search-form{display:flex;gap:var(--p-s2)}
.search-form input{flex:1;min-width:0}
.search-count{font-size:var(--p-fs-sm);color:var(--mute)}
.search-empty{padding:var(--p-s8) 0;text-align:center;color:var(--mute)}

/* newsletter */
.news{display:flex;align-items:stretch;gap:var(--p-s2)}
.news input{flex:1;min-width:0}
.news button{flex:none}
.news label{color:var(--p-accent)}

/* auth forms */
.auth-card,.form-card{
  background:var(--p-surface);
  border:1px solid var(--p-line);
  border-radius:var(--p-card-r);
  padding:var(--p-s6);
  box-shadow:var(--p-sh1);
}
.auth-card h1,.auth-card h2{margin-top:0}

/* ============================================================================
   7. PRODUCT DETAIL PAGE — refinement only, no restructuring
   ========================================================================= */
.pdp{gap:var(--p-s7)}
.pdp-gallery{gap:var(--p-s2)}
.pdp-gallery img,
.pdp-thumb img{border-radius:var(--p-r1)}
.pdp-thumb,.pdp-film-thumb{
  border:1px solid var(--p-line);
  border-radius:var(--p-r1);
  overflow:hidden;
  background:var(--p-surface-2);
}
.pdp-thumb:hover,.pdp-thumb.on{border-color:var(--p-accent)}
.pdp-sub{
  font-size:var(--p-fs-xxs);
  letter-spacing:var(--ls-9xl);
  text-transform:uppercase;
  color:var(--p-accent);
}
.pdp-price{font-family:var(--fd);color:var(--ink)}
.pdp-price .price{color:var(--p-accent);font-variant-numeric:tabular-nums}
.pdp-price .mrp{color:var(--mute)}
.pdp-price-from{color:var(--mute);font-size:var(--p-fs-sm)}
.pdp-stock{font-size:var(--p-fs-sm);color:var(--mute)}
.pdp-stock.low{color:var(--p-accent)}

/* offer strip: a left rule (shape), not a colour-only badge */
.pdp-offer{
  padding:var(--p-s3) var(--p-s4);
  border:1px solid var(--p-line);
  border-left:3px solid var(--p-accent);
  border-radius:var(--p-r2);
  background:var(--p-surface);
  color:var(--ink);
}
.pdp-offer b{color:var(--p-accent)}
.offer-list{list-style:none;margin:var(--p-s3) 0 0;padding:0;display:grid;gap:var(--p-s2)}
.offer-list li{
  display:flex;align-items:flex-start;gap:var(--p-s2);
  font-size:var(--p-fs-sm);color:var(--ink);line-height:1.5;
}
.offer-list .icon,.offer-list svg{width:15px;height:15px;flex:none;color:var(--p-accent)}
.offer-list .coupon-li{flex-wrap:wrap}
.pdp-coupon-input{min-width:0;flex:1 1 180px;min-height:44px}
.pdp-coupon-status{font-size:var(--p-fs-xs);padding:var(--p-s2)}
.pdp-coupon-status.ok{color:var(--ok)}
.pdp-coupon-status.bad{color:var(--err)}
.js-cd b,.pdp-cd b,.ob-timer b{
  background:var(--p-surface-2);color:var(--ink);border:1px solid var(--p-line);
  border-radius:var(--p-r1);font-variant-numeric:tabular-nums;
}
.breakdown{
  background:var(--p-surface-2);
  border:1px dashed var(--p-line);
  border-radius:var(--p-r2);
  color:var(--ink);
}
.breakdown b{color:var(--p-accent)}

/* size links, size grid, quantity */
.size-link{
  display:inline-flex;align-items:center;gap:var(--gap-md);
  min-height:44px;
  color:var(--p-accent);
  font-size:var(--p-fs-sm);
  border-bottom:1px solid transparent;
}
.size-link:hover{border-bottom-color:var(--p-accent)}
.size-link svg{width:16px;height:16px;stroke:currentColor;fill:none}
.sizes,.wait-sizes{display:flex;flex-wrap:wrap;gap:var(--p-s2)}
.sizes .size,
.wait-sizes .wait-size{
  min-width:50px;min-height:44px;
  padding:0 var(--gap-3xl);
  background:var(--p-surface);
  color:var(--ink);
  border:1px solid var(--p-line);
  border-radius:var(--p-r2);
  font-family:var(--fb);
  font-size:var(--p-fs-sm);
  cursor:pointer;
  transition:border-color var(--p-t1) var(--p-ease),background-color var(--p-t1) var(--p-ease);
}
.sizes .size:hover{border-color:var(--p-accent)}
.sizes .size.on{
  border-color:var(--p-accent);
  background:var(--p-accent-wash);
  box-shadow:inset 0 0 0 1px var(--p-accent);   /* shape cue, not just colour */
}
.sizes .size.out,
.wait-size.out{
  text-decoration:line-through;opacity:.6;      /* non-colour cue */
}
.qty{
  display:inline-flex;align-items:stretch;
  border:1px solid var(--p-line);
  border-radius:var(--p-r2);
  overflow:hidden;
}
.qty button{
  min-width:44px;min-height:44px;
  background:transparent;color:var(--ink);border:0;cursor:pointer;
  transition:background-color var(--p-t1) var(--p-ease);
}
.qty button:hover{background:var(--p-accent-soft);color:var(--p-accent)}
.qty span,.qty #pdpQty{
  min-width:40px;display:inline-flex;align-items:center;justify-content:center;
  font-weight:var(--fw-semibold);font-variant-numeric:tabular-nums;
  border-inline:1px solid var(--p-line);
}
.pdp-ctas{display:flex;flex-wrap:wrap;gap:var(--p-s2)}
.pdp-ctas .btn{flex:1 1 180px}
.pdp-wishlist{
  display:inline-flex;align-items:center;justify-content:center;gap:var(--gap-xl);
  min-height:var(--gap-20xl);padding:0 var(--p-s4);
  background:transparent;color:var(--ink);
  border:1px solid var(--p-line);border-radius:var(--p-r2);
  font-size:var(--p-fs-xs);letter-spacing:.12em;text-transform:uppercase;
  cursor:pointer;
}
.pdp-wishlist svg{width:17px;height:17px;stroke:currentColor;fill:none}
.pdp-wishlist:hover,.pdp-wishlist.on{border-color:var(--p-accent);color:var(--p-accent)}
.pdp-wishlist.on svg{fill:var(--p-accent)}

/* shipping / trust rows */
.delivery-line{font-size:var(--p-fs-sm);color:var(--ink)}
.trust-row{
  display:flex;flex-wrap:wrap;gap:var(--p-s3);
  padding:var(--p-s4) 0;
  /* Owner: no extra border/background — the icons carry the message. */
  border-top:0;border-bottom:0;background:transparent;
}
.trust{display:inline-flex;align-items:center;gap:8px;font-size:var(--p-fs-xs);color:var(--mute)}
.trust .icon,.trust svg{width:17px;height:17px;stroke:var(--p-accent);fill:none;flex:none}

/* description, specs, accordions */
.pdp-desc{line-height:1.78}
.pdp-specs,.spec-table{border-top:1px solid var(--p-line)}
.pdp-specs tr,.spec-table tr{border-bottom:1px solid var(--p-line)}
.pdp-specs th,.spec-table th{
  width:40%;text-align:left;font-weight:500;color:var(--mute);
  font-size:var(--p-fs-sm);padding:var(--p-s3) 0;
}
.pdp-specs td,.spec-table td{font-size:var(--p-fs-sm);padding:var(--p-s3) 0}
details.acc,details.accordion,.pdp-acc details{border-bottom:1px solid var(--p-line)}
details.acc summary,details.accordion summary,.pdp-acc summary{
  min-height:48px;display:flex;align-items:center;
  font-family:var(--fb);font-size:var(--p-fs-sm);font-weight:600;
  letter-spacing:var(--ls-lg);cursor:pointer;list-style:none;
}
details.acc summary::-webkit-details-marker,
details.accordion summary::-webkit-details-marker{display:none}
details.acc[open] summary,details.accordion[open] summary{color:var(--p-accent)}
details.acc p,details.accordion p{color:var(--mute);padding-bottom:var(--p-s4)}

/* complete-the-look & related rails */
.complete-look,.like-section{padding-block:var(--p-s8)}
.like-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--p-s4)}
/* Complete-the-Look is kurta | plus | pair options — 3 tracks, not 4.
   (It shares no layout with the 4-up related-products rail.) */
.cl-grid{display:grid;grid-template-columns:minmax(0,1.05fr) auto minmax(0,1.5fr);gap:var(--p-s4);align-items:stretch}
.cl-option{
  border:1px solid var(--p-line);border-radius:var(--p-card-r);
  padding:var(--p-s3);background:var(--p-surface);cursor:pointer;
  transition:border-color var(--p-t2) var(--p-ease);
}
.cl-option.on{border-color:var(--p-accent);box-shadow:inset 0 0 0 1px var(--p-accent)}
.cl-option.is-oos{opacity:.6;text-decoration:line-through}

/* sticky mobile purchase bar */
.pdp-sticky{
  background:var(--hdr);
  border-top:1px solid var(--p-line);
  box-shadow:0 -6px 20px color-mix(in srgb, var(--theme-scrim) 10%, transparent);
  padding:var(--p-s3) var(--p-gutter) calc(var(--p-s3) + env(safe-area-inset-bottom));
}
.pdp-sticky .btn{min-height:46px}

/* floating product film */
.pdp-float{
  border:1px solid var(--p-line);
  border-radius:var(--p-r3);
  overflow:hidden;
  box-shadow:var(--p-sh2);
  background:var(--p-surface);
}
.pdp-float .pdp-float-close,
.pdp-float .pdp-float-open{
  min-width:44px;min-height:44px;
  background:var(--p-surface);color:var(--ink);border:1px solid var(--p-line);
  border-radius:var(--p-r2);cursor:pointer;
}
.pdp-fm-card{
  background:var(--p-surface);
  border:1px solid var(--p-line);
  border-radius:var(--p-card-r);
  box-shadow:var(--p-sh3);
}
.pdp-fm-close,.pdp-fm-backdrop{cursor:pointer}

/* ============================================================================
   8. CART / DRAWER / CHECKOUT
   ========================================================================= */
.cart-page,.checkout-page{padding-block:var(--p-s8)}
.cart-mast{margin-bottom:var(--p-s6)}
.cart-bench{align-items:start}
.cart-line,.dw-row{
  padding-block:var(--p-s4);
  border-bottom:1px solid var(--p-line);
}
.cart-line img{width:72px;aspect-ratio:3/4;object-fit:cover;border-radius:var(--p-r1)}
.cl-name,.dw-name{font-family:var(--fd);font-size:var(--p-fs-h3);line-height:1.25;color:var(--ink)}
.cl-name a:hover,.dw-name a:hover{color:var(--p-accent)}
.cart-line>*,.dw-row>*{min-width:0}
.cl-name,.dw-name{overflow-wrap:anywhere}

.summary-card,.sum-card{
  background:var(--p-surface);
  border:1px solid var(--p-line);
  border-radius:var(--p-card-r);
  padding:var(--p-s5);
  box-shadow:var(--p-sh1);
}
.summary-card h3{margin-top:0}
.sumrow{
  display:flex;align-items:baseline;justify-content:space-between;gap:var(--p-s3);
  padding:var(--p-s2) 0;font-size:var(--p-fs-sm);color:var(--mute);
}
.sumrow span:last-child,.sumrow b{color:var(--ink);font-variant-numeric:tabular-nums}
.sumrow.cut b,.sumrow.save b{color:var(--p-accent)}
.summary-card .sum-total{
  display:flex;align-items:baseline;justify-content:space-between;
  padding-top:var(--p-s4);margin-top:var(--p-s2);
  border-top:1px solid var(--p-line);
  font-family:var(--fd);font-size:var(--p-fs-h3);color:var(--ink);
}

/* coupon row */
.coupon-form{display:flex;gap:var(--p-s2)}
.coupon-form input{flex:1;min-width:0;text-transform:uppercase;letter-spacing:var(--ls-2xl)}
.coupon-note{font-size:var(--p-fs-xs);color:var(--mute)}
.coupon-note.ok{color:var(--ok)}
.coupon-note.bad{color:var(--err)}

/* prepaid / COD tiles — selected state uses a border + inset ring */
.pay-split,.payopts,.dw-pay{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--p-s3);
}
.pay-tile,.paycard,.dw-pay label,.payopt{
  position:relative;
  display:block;
  min-height:72px;
  padding:var(--p-s3) var(--p-s4);
  background:var(--p-surface);
  border:1px solid var(--p-line);
  border-radius:var(--p-r3);
  color:var(--ink);
  cursor:pointer;
  transition:border-color var(--p-t2) var(--p-ease);
}
.pay-tile:hover,.paycard:hover,.payopt:hover{border-color:var(--p-line-strong)}
.pay-tile.on,.paycard.best,.payopt.on,.dw-pay label.on{
  border-color:var(--p-accent);
  box-shadow:inset 0 0 0 1px var(--p-accent);   /* shape cue */
  background:var(--p-accent-soft);
}
.pay-tile .dpn,.payopt .dpn{color:var(--mute);font-size:var(--p-fs-xxs);letter-spacing:.18em;text-transform:uppercase}
.pay-tile .dpv,.payopt .dpv{font-size:var(--p-fs-sm);line-height:1.4}
.paycard.best::before,.pay-tile.on::before{
  content:"";position:absolute;top:-1px;left:var(--p-s4);width:32px;height:2px;background:var(--p-accent);
}
/* Owner: remove the unnecessary borders on the prepaid/COD cards. The chosen
   card still reads clearly from its tinted surface + the gold top rule above. */
html body .paycard,html body .pay-tile,html body .payopt,html body .dw-pay label{
  border-color:transparent;
  box-shadow:none;
}
html body .paycard.best,html body .pay-tile.on,html body .payopt.on,html body .dw-pay label.on{
  border-color:transparent;
  box-shadow:none;
  background:var(--p-accent-soft);
}
html body .paycard:hover,html body .pay-tile:hover,html body .payopt:hover{border-color:transparent}
.dot{border-color:var(--p-line)}
.pay-tile.on .dot,.dw-pay label.on .dot{border-color:var(--p-accent);background:var(--p-accent)}

/* empty states */
.cart-empty,.wl-empty,.acct-empty,.track-empty,.dw-empty{
  display:grid;justify-items:center;gap:var(--p-s3);
  padding:var(--p-s9) var(--p-s4);
  text-align:center;
  border:1px dashed var(--p-line);
  border-radius:var(--p-card-r);
  color:var(--mute);
}
.cart-empty h2,.wl-empty h2,.acct-empty h4,.dw-empty h4{color:var(--ink);margin:0}
.cart-empty p,.wl-empty p,.acct-empty p,.dw-empty p{max-width:46ch;margin:0}

/* trust rail under the cart */
.trust-rail,.drawer-trust{
  display:flex;flex-wrap:wrap;justify-content:center;gap:var(--p-s4);
  font-size:var(--p-fs-xs);color:var(--mute);
}
.trust-rail span,.drawer-trust span{display:inline-flex;align-items:center;gap:var(--gap-md)}
.trust-rail svg,.drawer-trust svg{width:14px;height:14px;stroke:var(--p-accent);fill:none}

/* mini-cart drawer */
html body .drawer{
  border-left:1px solid var(--p-line);
  box-shadow:var(--p-sh2);
  z-index:var(--p-z-drawer);
}
html body .drawer-head{
  padding:var(--p-s5) var(--p-s5) var(--p-s4);
  border-bottom:1px solid var(--p-line);
}
html body .drawer-head h3{font-family:var(--fd);font-size:var(--p-fs-h3);color:var(--ink)}
html body .drawer-close{
  min-width:44px;min-height:44px;border-radius:var(--radius-round);
  border:1px solid var(--p-line);background:transparent;color:var(--ink);
  display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
}
html body .drawer-close:hover{border-color:var(--p-accent);color:var(--p-accent)}
html body .drawer-body{padding-inline:var(--p-s5)}
html body .drawer-foot{
  padding:var(--p-s4) var(--p-s5) calc(var(--p-s4) + env(safe-area-inset-bottom));
  border-top:1px solid var(--p-line);
  box-shadow:0 -8px 24px color-mix(in srgb, var(--theme-scrim) 8%, transparent);
}
.dw-shot{border-radius:var(--p-r1)}
.dw-size{
  border:1px solid var(--p-line);border-radius:var(--p-r1);
  color:var(--p-accent);
}
.dw-qty button{min-width:32px;min-height:32px}
.dw-price{font-family:var(--fd);font-size:var(--p-fs-h3);color:var(--ink)}
.dw-price s{color:var(--mute)}
.dw-hr{background:var(--p-line)}

/* ============================================================================
   9. ACCOUNT / AUTH / ORDERS / TRACK / WISHLIST
   ========================================================================= */
.acct{padding-block:var(--p-s8)}
.acct-hero{margin-bottom:var(--p-s6)}
.acct-hero-card,.acct-card,.order-card,.tr-card{
  background:var(--p-surface);
  border:1px solid var(--p-line);
  border-radius:var(--p-card-r);
  box-shadow:var(--p-sh1);
}
.acct-card{padding:var(--p-s5)}
.acct-body{display:grid;gap:var(--p-s5)}
.acct-orders-head,.acct-order-top{
  display:flex;align-items:center;justify-content:space-between;gap:var(--p-s3);
}
.acct-order-row{
  display:flex;align-items:center;gap:var(--p-s4);
  min-height:72px;padding:var(--p-s3) 0;
  border-top:1px solid var(--p-line);
}
.acct-order-row:hover .acct-order-info{color:var(--p-accent)}
.acct-order-ic{
  width:44px;height:44px;flex:none;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--p-accent-soft);border:1px solid var(--p-line);
  border-radius:var(--p-r2);color:var(--p-accent);
}
.acct-order-info{flex:1;min-width:0}
.acct-order-sub{font-size:var(--p-fs-xs);color:var(--mute)}
.acct-order-total{font-family:var(--fd);font-size:var(--p-fs-h3);font-variant-numeric:tabular-nums;color:var(--ink)}
.acct-order-chev{width:18px;height:18px;color:var(--mute);flex:none}

.acct-pill,.pill,.status-pill{
  display:inline-flex;align-items:center;gap:var(--gap-md);
  padding:var(--gap-xs) var(--gap-3xl);
  font-family:var(--fb);font-size:var(--p-fs-xxs);font-weight:600;
  letter-spacing:var(--ls-2xl);text-transform:uppercase;
  color:var(--ink);
  background:var(--p-surface-2);
  border:1px solid var(--p-line);
  border-radius:var(--radius-pill);
}
.acct-pill::before,.pill::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--p-accent)}
.acct-viewall{color:var(--p-accent);font-size:var(--p-fs-xs);letter-spacing:.12em;text-transform:uppercase}

/* wishlist */
.wl-wrap{display:grid;gap:var(--p-s5)}
.wl-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--p-s4)}
.wl-head h1,.wl-head h2{margin:0}
.wl-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--p-s5)}

/* order detail / tracking */
.order-meta-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:var(--p-s4)}
.order-meta-label{
  font-size:var(--p-fs-xxs);font-weight:600;letter-spacing:.16em;
  text-transform:uppercase;color:var(--mute);margin-bottom:var(--gap-xs);
}
.order-meta-value{font-size:var(--p-fs-sm);color:var(--ink)}
.track-grid,.track-grid-wrap{display:grid;gap:var(--p-s5)}
.track-alert{
  padding:var(--p-s3) var(--p-s4);
  font-size:var(--p-fs-sm);
  color:var(--ink);
  background:var(--p-accent-soft);
  border:1px solid var(--p-line);
  border-left:3px solid var(--p-accent);
  border-radius:var(--p-r2);
}
.track-alert-red{border-left-color:var(--err)}
.track-shipping-row{
  display:flex;justify-content:space-between;gap:var(--p-s3);
  padding:var(--p-s2) 0;border-bottom:var(--gap-p1) solid var(--p-line);
  font-size:var(--p-fs-sm);
}
.track-live{
  background:var(--p-surface);
  border:1px solid var(--p-line);
  border-radius:var(--p-card-r);
  padding:var(--p-s5);
}
.track-live-head{display:flex;flex-wrap:wrap;gap:var(--p-s3);align-items:center;margin-bottom:var(--p-s4)}
.track-live-pill{
  display:inline-flex;align-items:center;padding:var(--gap-sm) var(--gap-5xl);
  border:1px solid var(--p-line);border-radius:999px;
  font-size:var(--p-fs-xxs);font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--p-accent);background:var(--p-accent-soft);
}
.track-live-pill.is-delivered{border-color:var(--ok);color:var(--ok);background:var(--ok-bg)}
.track-live-edd{display:inline-flex;gap:var(--p-s2);font-size:var(--p-fs-sm);color:var(--mute)}
.track-live-edd strong{color:var(--ink)}
.track-live-log{
  list-style:none;margin:0;padding:0 0 0 var(--p-s5);
  border-left:1px solid var(--p-line);
}
.track-live-log li{position:relative;padding:0 0 var(--p-s4)}
.track-live-log li::before{
  content:"";position:absolute;left:calc(-1 * var(--p-s5) - 4px);top:5px;
  width:8px;height:8px;border-radius:var(--radius-round);
  border:1px solid var(--p-accent);background:var(--p-surface);
}
.track-note{font-size:var(--p-fs-xs);color:var(--mute)}
.track-actions{display:flex;flex-wrap:wrap;gap:var(--p-s2)}

/* tables in account / orders */
table{width:100%;border-collapse:collapse;font-size:var(--p-fs-sm)}
th,td{padding:var(--p-s3);text-align:left;border-bottom:var(--gap-p1) solid var(--p-line)}
th{font-size:var(--p-fs-xxs);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
tbody tr:hover{background:var(--p-accent-soft)}

/* ============================================================================
   10. EDITORIAL SECTIONS
   ========================================================================= */

/* hero — balanced, no dead space */
.hero.hero{position:relative;overflow:hidden}
.hero-inner{
  min-height:clamp(420px,62vh,660px);
  padding-block:var(--p-s8);
  display:flex;
  align-items:center;
}
.hero-copy{max-width:52ch;position:relative;z-index:2}
.hero-copy h1{max-width:16ch;margin:var(--p-s3) 0 var(--p-s4)}
.hero-copy .overline,.hero .overline{letter-spacing:var(--ls-12xl)}
.hero-copy .tag,.hero-note{color:var(--mute);font-size:var(--p-fs-sm)}
.hero-note{max-width:56ch;margin-top:var(--p-s5)}
.hero-note b{color:var(--p-accent)}
.hero-cta,.hero-ctas{display:flex;flex-wrap:wrap;gap:var(--p-s3);margin-top:var(--p-s5)}
.hero-media{overflow:hidden}
.scroll-hint,.scroll-cue{font-size:var(--p-fs-xxs);letter-spacing:.2em;text-transform:uppercase}

/* occasion banner / small banners */
.wedding-banner,.occ-banner,.regal-banner,.cta-band{
  position:relative;overflow:hidden;
  border-block:1px solid var(--p-line);
}
.party-eyebrow{
  font-size:var(--p-fs-xxs);font-weight:600;letter-spacing:.28em;
  text-transform:uppercase;color:var(--p-accent);
}

/* watch & buy — portrait tiles, restrained cards */
.wb-tile{
  aspect-ratio:9/16;
  border:1px solid var(--p-line);
  border-radius:var(--p-card-r);
  overflow:hidden;
  background:var(--p-surface-2);
}
.wb-tile video,.wb-tile img{width:100%;height:100%;object-fit:cover;display:block}
.wb-cap,.wb-name,.wb-price{font-variant-numeric:tabular-nums}
.wb-seeall{white-space:nowrap}
.wbpage{padding-block:var(--p-s8)}
.wb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--p-s4)}

/* testimonials / reviews */
.trust-reviews,.testimonials{padding-block:var(--p-s9)}
.rev-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--p-s5)}
.rev-card,.t-card{
  padding:var(--p-s5);
  background:var(--p-surface);
  border:1px solid var(--p-line);
  border-radius:var(--p-card-r);
  box-shadow:var(--p-sh1);
}
.rev-card p,.t-card p{font-size:var(--p-fs-sm);line-height:1.7;color:var(--ink)}
.rev-author,.rev-name{font-size:var(--p-fs-xs);letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.rev-stars{color:var(--p-accent);letter-spacing:.16em}
.rev-avatar{border-radius:50%;border:1px solid var(--p-line)}
.rev-submit,.rev-cta{min-height:44px}

/* trust strip */
.trust-strip{border-block:1px solid var(--p-line);background:var(--p-surface)}
.trust-strip-in{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(168px,1fr));
  gap:var(--p-s4);
}
.ts-item{padding:var(--p-s5) var(--p-s3);text-align:center}
.ts-item svg{width:var(--gap-12xl);height:var(--gap-12xl);stroke:var(--p-accent);fill:none;display:block;margin:0 auto var(--p-s2)}
.ts-item span{font-size:var(--p-fs-xs);color:var(--mute);white-space:normal;line-height:1.35}
.ts-item b{display:block;font-size:var(--p-fs-sm);color:var(--ink);margin-top:var(--gap-3xs)}

/* brand story */
.story{padding-block:var(--p-s9)}
.story-grid{align-items:center;gap:var(--p-s8)}
.story-media img,.story-media video{border-radius:var(--p-card-r);border:1px solid var(--p-line)}
.story-panel{max-width:54ch}
.story-copy h2{margin:var(--p-s3) 0}
.story-hindi{
  font-family:var(--fd);font-style:italic;
  font-size:var(--p-fs-h3);color:var(--p-accent);margin-top:var(--p-s4);
}

/* wedding page sections */
.ws{padding-block:var(--p-s8);border-bottom:var(--gap-p1) solid var(--p-line)}
.ws:last-child{border-bottom:0}
.ws .sec-head{margin-bottom:var(--p-s6)}
.ws-occasions .occ-grid,.occ-tile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.ws .overcastle,.ws .ws-hero{min-height:min(70vh,680px)}

/* comparison slider */
.comparison-section{padding-block:var(--p-s9)}
.compare-head{text-align:center;margin-bottom:var(--p-s6)}
.compare-head h1{margin:var(--p-s2) 0}
.slider-line{height:2px;background:var(--p-line-strong);position:relative}
.slider-handle{
  width:var(--p-tap);height:var(--p-tap);
  border:1px solid var(--p-accent);
  border-radius:var(--radius-round);
  background:var(--p-surface);
  box-shadow:var(--p-sh1);
  display:flex;align-items:center;justify-content:center;
  color:var(--p-accent);
}
.slider-control{
  min-width:var(--p-tap);min-height:var(--p-tap);
  border-radius:var(--radius-round);
}
.slider-control:focus-visible{outline:2px solid var(--p-accent);outline-offset:3px}

/* lookbook */
.lbk-hero{min-height:min(72vh,660px);position:relative;overflow:hidden}
.lbk-hero-overlay{background:color-mix(in srgb, var(--theme-scrim) 45%, transparent)}
.lbk-hero-copy,.lbk-ctas{position:relative;z-index:2}
.lbk-kit{
  display:grid;grid-template-columns:1fr 1fr;gap:var(--p-s6);
  padding:var(--p-s6);
  background:var(--p-surface);
  border:1px solid var(--p-line);
  border-radius:var(--p-card-r);
  margin-block:var(--p-s8);
}
.lbk-kit-card{
  background:var(--p-surface-2);
  border:1px solid var(--p-line);
  border-radius:var(--p-r3);
  padding:var(--p-s5);
}
.lbk-kit-card-row{
  display:flex;justify-content:space-between;gap:var(--p-s3);
  padding:var(--p-s2) 0;border-bottom:var(--gap-p1) solid var(--p-line);
  font-size:var(--p-fs-sm);
}
.lbk-kit-card-row:last-child{border-bottom:0}
.lbk-proof b{color:var(--p-accent)}
.lbk-faq{max-width:var(--p-container-n);margin-inline:auto}

/* about / contact / b2b / policy / faq / guides */
.about-wrap,.policy-body,.faq-wrap,.guide-wrap{
  max-width:var(--p-container-n);
  margin-inline:auto;
  padding-block:var(--p-s8);
  display:grid;
  gap:var(--p-s5);
}
.about-addr,.contact-card,.b2b-card{
  background:var(--p-surface);
  border:1px solid var(--p-line);
  border-radius:var(--p-card-r);
  padding:var(--p-s5);
  display:grid;gap:var(--p-s2);
}
.policy-body h2,.about-wrap h2,.faq-wrap h2{margin-top:var(--p-s6)}
.policy-body ul,.about-wrap ul{padding-left:1.2em}

/* story-page specific editorial blocks */
.film,.chapters,.pillars,.pullquote,.love,.visit{padding-block:var(--p-s8)}
.pullquote blockquote{
  margin:0 auto;max-width:24ch;text-align:center;
  font-family:var(--fd);font-style:italic;
  font-size:var(--p-fs-h2);line-height:1.15;color:var(--ink);
}
.pillars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--p-s4)}

/* ============================================================================
   11. FOOTER
   ========================================================================= */
html body .footer{
  /* Independent footer surface from the JSON theme — never the page ground. */
  background:var(--footer, var(--p-surface));
  border-top:1px solid var(--p-line);
  color:var(--theme-footer-text, var(--ink));
}
.foot-grid{gap:var(--p-s6);padding-block:var(--p-s8) var(--p-s6)}
.flogo{font-family:var(--fd);letter-spacing:.24em;color:var(--ink)}
.f-col h4{letter-spacing:.22em;font-size:var(--p-fs-xxs);color:var(--p-accent)}
.f-col a,.foot-contact a{font-size:var(--p-fs-sm);color:var(--mute)}
.f-col a:hover,.foot-contact a:hover{color:var(--p-accent)}
.socials a{
  width:40px;height:40px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--p-line);border-radius:var(--p-r2);
  color:var(--mute);
  transition:border-color var(--p-t2) var(--p-ease),color var(--p-t2) var(--p-ease);
}
.socials a:hover{border-color:var(--p-accent);color:var(--p-accent)}
.socials .icon{width:16px;height:16px}
.foot-bottom{
  border-top:1px solid var(--p-line);
  padding-block:var(--p-s4) var(--p-s6);
  font-size:var(--p-fs-xs);color:var(--mute);
}

/* ============================================================================
   12. MODALS / DRAWERS / TOASTS / CHAT / FLOATING HELPERS
   ========================================================================= */
/* z-order: header 50 < scrim 930 < drawer 940 < modal 960 < toast 980 */
html body .overlay,
html body .modal-overlay,
html body .drawer-overlay,
html body .scrim,
html body .modal-scrim{background:color-mix(in srgb, var(--theme-scrim) 55%, transparent)}

.modal,.modal-box,.rev-modal,.popup-card,.chat-panel,.sz-tp{
  background:var(--p-surface);
  color:var(--ink);
  border:1px solid var(--p-line);
  border-radius:var(--p-card-r);
  box-shadow:var(--p-sh3);
}
.modal-box{max-width:min(560px,calc(100vw - 32px))}
.modal-close,.modal-box .modal-close{
  min-width:44px;min-height:44px;
  display:inline-flex;align-items:center;justify-content:center;
  background:transparent;border:1px solid var(--p-line);
  border-radius:var(--p-r2);color:var(--ink);cursor:pointer;
}
.modal-close:hover{border-color:var(--p-accent);color:var(--p-accent)}
.modal h3,.modal-box h3{font-family:var(--fd);font-size:var(--p-fs-h3);margin-top:0}

html body .toast{
  background:var(--p-surface);
  color:var(--ink);
  border:1px solid var(--p-line);
  border-left:3px solid var(--p-accent);
  border-radius:var(--p-r2);
  box-shadow:var(--p-sh2);
  z-index:var(--p-z-toast);
}

/* assistant / concierge */
html body .chat-panel{z-index:var(--p-z-drawer)}
html body .chat-header,.chat-head{
  background:var(--p-surface-2);
  color:var(--ink);
  border-bottom:1px solid var(--p-line);
}
html body .chat-msg.bot{
  background:var(--p-surface);
  color:var(--ink);
  border:1px solid var(--p-line);
  border-radius:var(--p-r3);
}
html body .chat-msg.user{
  background:var(--p-accent-soft);
  color:var(--ink);
  border:1px solid var(--p-line);
  border-radius:var(--p-r3);
}
html body .chat-chip{
  min-height:44px;
  padding:var(--gap-xl) var(--gap-7xl);
  background:var(--p-surface);
  color:var(--ink);
  border:1px solid var(--p-line);
  border-radius:var(--radius-pill);
  font-size:var(--p-fs-xs);
}
html body .chat-chip:hover{border-color:var(--p-accent);color:var(--p-accent)}
html body .chat-input,
html body .chat-inputrow input{
  min-height:44px;background:var(--p-surface);color:var(--ink);border:1px solid var(--p-line);
}
html body .chat-send,
html body .chat-inputrow button{
  min-height:var(--gap-20xl);padding:0 var(--gap-9xl);background:var(--p-accent);color:var(--p-on-accent);
  border:1px solid var(--p-accent);border-radius:var(--p-r2);
}
html body .chat-pill,.float-handle,.float-min{
  background:var(--p-surface);
  color:var(--p-accent);
  border:1px solid var(--p-line);
  min-width:44px;min-height:44px;
  box-shadow:var(--p-sh1);
}
html body .float-tip{
  background:var(--p-surface);color:var(--ink);
  border:1px solid var(--p-line);border-radius:var(--p-r2);box-shadow:var(--p-sh1);
}
html body .chat-dock{z-index:calc(var(--p-z-drawer) - 1)}

/* theme switcher stays a quiet edge affordance */
html body .tsw{z-index:calc(var(--p-z-header) - 1)}
html body .tsw .tb{
  background:var(--p-surface);color:var(--p-accent);
  border:1px solid var(--p-line);border-left:0;border-radius:0 999px 999px 0;
  box-shadow:var(--p-sh1);
}

/* skip link & screen-reader utility */
.skip-link{
  position:fixed;top:8px;left:8px;z-index:var(--p-z-toast);
  transform:translateY(-160%);
  background:var(--p-accent);color:var(--p-on-accent);
  padding:var(--gap-3xl) var(--gap-9xl);border-radius:var(--p-r2);
}
.skip-link:focus{transform:none}
.sr-only{
  position:absolute!important;width:var(--gap-p1);height:var(--gap-p1);padding:0;margin:-var(--gap-p1);
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ============================================================================
   13. RESPONSIVE — 360 / 414 / 768 / 1024 / 1280 / 1440 / 1600
   ========================================================================= */

/* ---- 1600+: keep the editorial measure, widen the breathing room ---- */
@media (min-width:1600px){
  :root{--p-gutter:48px}
  .hero-inner{min-height:min(68vh,720px)}
}

/* ---- 1440: default cap holds; slightly larger gutters ---- */
@media (min-width:1280px) and (max-width:1599px){
  :root{--p-gutter:clamp(24px,3vw,40px)}
}

/* ---- 1280 and below: narrow container, 3-up product grids ---- */
@media (max-width:1280px){
  .container.container{max-width:var(--p-container-n)}
  .prod-grid,.suggest-grid,.cl-grid,.like-grid,.wl-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .foot-grid{gap:var(--p-s5)}
}

/* ---- 1024: tablet, mobile bar territory, 2-up grids ---- */
@media (max-width:1024px){
  .prod-grid,.suggest-grid,.cl-grid,.like-grid,.wl-grid,
  .rev-grid,.pillars{grid-template-columns:repeat(2,minmax(0,1fr))}
  .occ-grid,.cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ws-occasions .occ-grid,.occ-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .section,.pb-section,.suggest-rail,.recent-rail,
  .trust-reviews,.story,.comparison-section{padding-block:var(--p-s7)}
  .hero-inner{min-height:clamp(380px,56vh,560px);padding-block:var(--p-s6)}
  .hero-copy h1{max-width:18ch}
  .foot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lbk-kit{grid-template-columns:1fr}
  .cart-bench{grid-template-columns:1fr}
  .sr-track>*{flex-basis:clamp(170px,40vw,220px)}
  .mbar a,.mbar button{min-height:44px}
}

/* ---- 768: tablet portrait ---- */
@media (max-width:768px){
  :root{--p-gutter:20px}
  .form-row{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ws .occ-grid,.ws-occasions .occ-grid,.occ-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .track-live{padding:var(--p-s4)}
  .lbk-hero{min-height:clamp(360px,58vh,520px)}
  .skip-link{transform:none;position:static;display:inline-block}
}

/* ---- 414: phones, two-column product grid ---- */
@media (max-width:414px){
  :root{--p-gutter:16px}
  .prod-grid,.suggest-grid,.like-grid,.wl-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--p-s2);
  }
  /* Complete-the-Look stacks on phones so product names stay readable. */
  .cl-grid{grid-template-columns:1fr;gap:var(--gap-3xl)}
  .prod-meta{padding:var(--p-s3)}
  .prod-name{font-size:var(--p-fs-sm)}
  .prod-prices{gap:var(--gap-md)}
  .prod-prices .price{font-size:var(--p-fs-sm)}
  .prod .wish{top:8px;right:8px;width:36px;height:36px}
  .occ-grid,.cat-grid{gap:var(--p-s2)}
  .sec-head{margin-bottom:var(--p-s5)}
  .section,.pb-section{padding-block:var(--p-s6)}
  .hero-inner{min-height:0;padding-block:var(--p-s5)}
  .hero-copy h1{max-width:none}
  .hero-cta .btn,.hero-ctas .btn{flex:1 1 140px}
  .pay-split,.payopts,.dw-pay{grid-template-columns:1fr}
  .pdp-ctas .btn{flex:1 1 100%}
  .track-live-log{padding-left:var(--p-s4)}
  .track-live-log li::before{left:calc(-1 * var(--p-s4) - 4px)}
}

/* ---- 360: smallest supported phone — still two columns, tighter type ---- */
@media (max-width:360px){
  :root{--p-gutter:12px;--p-btn-h:44px}
  .prod-grid,.suggest-grid{gap:var(--gap-xl)}
  .prod-meta{padding:var(--gap-3xl)}
  .prod-name{font-size:var(--fs-base);line-height:var(--lh-cosy)}
  .prod-prices .price{font-size:var(--fs-base)}
  .prod-prices .pct-off{font-size:var(--fs-2xs);padding:var(--gap-p1) var(--gap-xs);letter-spacing:var(--ls-none)}
  .mnav a{padding:var(--gap-3xl) var(--gap-7xl);font-size:var(--fs-sm)}
  .mbar a,.mbar button{padding:var(--gap-3xs) 0}
  .mbar-list a .mbar-tx{font-size:var(--fs-3xs)}
  .foot-grid{grid-template-columns:1fr}
  .sumrow{font-size:var(--fs-base)}
}

/* no element may push the page sideways at any width */
html,body,.container,.prod-grid,.foot-grid,.wb-grid{max-width:100%}
img,svg,video{max-width:100%}

/* ============================================================================
   14. MICRO-INTERACTIONS — decorative motion only with consent
   ========================================================================= */
@media (prefers-reduced-motion:no-preference){
  .prod:hover .prod-img img{transform:scale(1.045)}
  .occ:hover img,.cat-tile:hover img,.wb-tile:hover img{transform:scale(1.03)}
  .btn.btn:hover,.btn-gold:hover,.btn-outline:hover{transform:translateY(-1px)}
  .prod-img img,.occ img,.cat-tile img,.wb-tile img{
    transition:transform var(--p-t3) var(--p-ease);
  }

  /* reveal-on-scroll is an enhancement: content is visible by default and
     only animates when the existing JS adds .is-visible. */
  .reveal{transition:opacity var(--p-t3) var(--p-ease),transform var(--p-t3) var(--p-ease)}
  .reveal.is-visible{opacity:1;transform:none}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal,.reveal.is-visible{opacity:1;transform:none;transition:none}
  .prod:hover .prod-img img,
  .occ:hover img,.cat-tile:hover img,.wb-tile:hover img{transform:none}
  .btn.btn:hover,.btn-gold:hover,.btn-outline:hover{transform:none}
}

/* ============================================================================
   15. ACCESSIBILITY — visible focus, real targets, state beyond colour
   ========================================================================= */
[aria-pressed="true"],
[aria-expanded="true"],
[aria-current="page"]{
  border-bottom-color:var(--p-line-strong);
}
[aria-pressed="true"]{
  box-shadow:inset 0 0 0 1px var(--p-accent);
}
button,a,input,select,textarea,summary,[role="button"],[role="slider"],[tabindex]{
  -webkit-tap-highlight-color:transparent;
}
button:focus-visible,a:focus-visible,summary:focus-visible,
[role="button"]:focus-visible,[role="slider"]:focus-visible{
  outline:2px solid var(--p-accent);
  outline-offset:3px;
}
[disabled],[aria-disabled="true"]{cursor:not-allowed}
[hidden]{display:none}

/* enforced minimum hit area for the small utility controls */
.act,.burger,.drawer-close,.modal-close,.wish,.chat-pill,
.float-handle,.float-min,.size,.size-link,.qty button,
.dw-qty button,.socials a,.slider-handle,.slider-control{
  min-width:var(--p-tap);
  min-height:var(--p-tap);
}

/* status text always accompanies colour on pills/badges */
.acct-pill,.pill,.status-pill,.badge,.prod-badge{white-space:nowrap}

/* ============================================================================
   16. HOUSE THEME FINISH
   The orchestrator's light ivory / wine Theme Plate sets --p-accent to wine.
   These two scoped rules keep text legible on that accent ground only; every
   other theme continues to use its own gold with --on ink. No wine hue is
   applied here — the value comes from the theme token.
   ========================================================================= */
html[data-theme="ivory"] :is(
  .btn.btn-primary,.btn.btn-gold,.btn.btn-dark,
  .count,.mnav .count,.chat-send,.ob-name,.skip-link,
  .coupon-apply,.float-handle,.ref-btn,.lbk-btn-gold
){color:var(--p-on-accent)}

/* keep accent text on light neutral surfaces readable in every theme */
.btn.btn-outline,
.btn.btn-ghost,
.view-link.view-link,
.size-link,
.pay-tile.on .dpn,
.acct-pill::before{color:var(--p-accent)}

/* ============================================================================
    16. OWNER FEEDBACK PASS — tighter rhythm, rounded compact controls,
    editorial detail in otherwise empty section heads.
    ========================================================================= */
:root{
  /* softer, rounded corners */
  --p-r1:6px; --p-r2:10px; --p-r3:14px; --p-r4:20px;
  --p-card-r:var(--p-r3); --p-ctl-r:var(--p-r2);
  /* compact but still comfortable */
  --p-btn-h:40px; --p-btn-lg-h:46px; --p-ctl-h:42px;
  /* shorter section rhythm */
  --p-s6:24px; --p-s7:28px; --p-s8:32px; --p-s9:40px;
  --p-s10:48px; --p-s11:56px;
}

/* header bands: remove the tall empty strip above the nav */
html body .announce,
html body .announce-track{min-height:26px;font-size:var(--fs-xs);line-height:var(--lh-cosy)}
html body .offer-bar{min-height:var(--gap-p32);font-size:var(--fs-sm);padding-block:var(--gap-xs);
  display:flex;align-items:center;justify-content:center;gap:var(--gap-7xl);flex-wrap:wrap;text-align:center}
html body .header-in{height:64px}
html body .logo img{height:38px}

/* compact rounded buttons with a quiet, tactile surface */
html body .btn,
html body .buy-button,
html body .btn.btn-dark,
html body .btn.btn-solid,
html body .btn.btn-gold,
html body .btn.btn-cream{
  min-height:var(--p-btn-h);
  padding:0 var(--gap-11xl);
  border-radius:var(--p-r3);
  box-shadow:inset 0 1px 0 color-mix(in srgb, var(--theme-on-dark) 22%, transparent),0 1px 2px color-mix(in srgb, var(--theme-scrim) 8%, transparent);
  transition:transform var(--p-t1) var(--p-ease),box-shadow var(--p-t2) var(--p-ease),background-color var(--p-t2) var(--p-ease);
}
html body .btn.btn-sm{min-height:var(--gap-18xl);padding:0 var(--gap-7xl);border-radius:var(--p-r2)}
html body .btn.btn-lg{min-height:var(--p-btn-lg-h);padding:0 var(--gap-15xl);border-radius:var(--p-r4)}
html body .btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:inset 0 1px 0 color-mix(in srgb, var(--theme-on-dark) 28%, transparent),0 4px 12px color-mix(in srgb, var(--theme-scrim) 10%, transparent)}
html body .btn:active:not(:disabled){transform:translateY(0)}
html body input,
html body select,
html body textarea{border-radius:var(--p-ctl-r)}
html body .prod,
html body .rev-card,
html body .t-card,
html body .occ,
html body .cat-tile{border-radius:var(--p-card-r)}

/* section rhythm: less dead air, still luxurious */
html body .section,
html body .pb-section,
html body .trust-reviews,
html body .testimonials,
html body .complete-look,
html body .like-section,
html body .suggest-rail,
html body .recent-rail,
html body .wbpage,
html body .cart-page,
html body .checkout-page,
html body .acct{padding-block:var(--p-s7)}
html body .sec-head{margin-bottom:var(--p-s5);max-width:70ch}
html body .sec-sub{margin-top:calc(-1 * var(--p-s3));margin-bottom:var(--p-s5)}
html body .hero-inner{min-height:clamp(420px,56vh,600px);padding-block:var(--p-s6)}
html body .hero-note,
html body .hero-cta,
html body .hero-ctas{margin-top:var(--p-s4)}

/* editorial ornament in the empty right side of section heads — CSS only,
   no invented content, screen-reader-neutral decorative geometry */
html body .sec-head{position:relative}
html body .sec-head::after{
  content:"";position:absolute;right:0;top:50%;width:min(26%,220px);height:1px;
  background:var(--p-line);
  transform:translateY(-50%);pointer-events:none;opacity:.8;
}
html body .sec-head::before{
  content:"";position:absolute;right:min(26%,220px);top:50%;width:7px;height:7px;
  border:1px solid var(--p-accent);transform:translate(50%,-50%) rotate(45deg);
  background:var(--bg);pointer-events:none;
}
html body .watchbuy .sec-head::after,
html body .watchbuy .sec-head::before,
html body #occasions .sec-head::after,
html body #occasions .sec-head::before{display:none}

/* Watch & Buy: compact, evenly spaced portrait tiles */
html body .watchbuy{padding-block:var(--p-s7)}
html body .wb-strip{gap:var(--p-s3)}
html body .wb-grid{gap:var(--p-s3)}
html body .wb-tile{border-radius:var(--p-r3)}
html body .wb-tile:hover{box-shadow:var(--p-sh1)}

@media (max-width:760px){
  html body .announce-track{min-height:24px;font-size:var(--fs-2xs)}
  html body .offer-bar{min-height:30px;font-size:var(--fs-xs)}
  html body .header-in{height:58px}
  html body .logo img{height:34px}
  html body .section,
  html body .pb-section,
  html body .trust-reviews,
  html body .testimonials,
  html body .suggest-rail,
  html body .recent-rail{padding-block:var(--p-s6)}
  html body .sec-head::after,
  html body .sec-head::before{display:none}
}
/* Category story circles must show their poster even before the clip decodes.
   The old opacity:0 gate hid the poster itself, leaving empty rings. */
html body .stry-video,
html body .stry.playing .stry-video{opacity:1}
html body .stry-thumb{background:var(--p-surface-2)}

/* Shoppable stories: two thin antique-gold rules flank the centred row and
   dissolve into the ground. The pseudo-lines flex to fill whatever space is
   left, so the circles stay centred at 768/1440 and the lines vanish on a
   phone where the track must scroll instead. */
html body .stories-inner{
  display:flex;
  align-items:center;
  gap:var(--p-s4);
}
html body .stories-inner::before,
html body .stories-inner::after{
  content:"";
  flex:1 1 0;
  min-width:0;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--p-accent));
  opacity:.55;
  pointer-events:none;
}
html body .stories-inner::after{background:linear-gradient(90deg,var(--p-accent),transparent)}
html body .stories-track{
  flex:0 1 auto;
  min-width:0;
  justify-content:center;
}
@media (max-width:760px){
  html body .stories-inner{gap:var(--gap-xl)}
  html body .stories-inner::before,
  html body .stories-inner::after{flex:0 0 12px;opacity:.45}
  html body .stories-track{justify-content:flex-start;flex:1 1 auto}
}

/* ==========================================================================
   OWNER REVIEW PASS — one centred editorial voice, tighter spacing,
   and the edge controls brought back inside the viewport.
   ========================================================================== */

/* Brand-story media: the photo is absolutely positioned inside .story-media,
   so `align-items:center` on the grid collapsed the media to 0 height and the
   left half rendered blank. Stretch just the media; the panel keeps its own
   vertical centring. */
html body .story-grid{align-items:stretch}
html body .story-media{min-height:420px;align-self:stretch}
html body .story-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* the panel's 54ch cap left dead cream space on the right — fill the column */
html body .story-panel{max-width:none}
html body .story-media-link{display:block;width:100%;height:100%}
html body .banner-media-link{display:block;width:100%}
/* The artwork wrapper must stay OUT of the banner's flex flow — otherwise it
   becomes a 100%-wide flex item and pushes .party-arch to the right edge. */
html body .party-media-link{position:absolute;inset:0;display:block;width:100%;line-height:0}
/* clickable image halves of the comparison slider */
html body .image-side{text-decoration:none;cursor:pointer}
html body .image-side:hover{filter:brightness(1.04)}

/* Floating helper controls stick to their screen edges on phones instead of
   drifting inward — the owner explicitly asked for them to be pinned. */
@media (max-width:640px){
  html body .float-left{left:0}
  html body .chat-pill{border-left:none;border-radius:var(--radius-none) 999px 999px 0}
  html body .tsw{right:0}
  html body .tsw .tb{border-right:none;border-radius:var(--radius-pill) 0 0 999px}
  html body .tsw .sz-tp{right:0}
}

/* Announcement band: ONE rotating row on every viewport, exactly like the
   desktop site. Only the first message is visible (JS adds .on in turn); the
   rest are absolutely stacked and hidden. On phones we shrink the type and
   letter-spacing so even the longest line fits on one row — no stacking,
   no stray "+" bullets, no extra height. */
@media (max-width:640px){
  html body .announce{overflow:hidden}
  html body .announce-track{height:30px;min-height:30px}
  html body .announce-track span{
    position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
    white-space:nowrap;overflow-wrap:normal;
    font-size:var(--fs-2xs);letter-spacing:var(--ls-lg);line-height:var(--lh-base);
    padding:0 var(--gap-xl);text-align:center;
  }
  html body .announce-track span.on{opacity:1}
  /* the leading decorative marker on the first message is redundant here */
  html body .announce-track span::first-letter{letter-spacing:var(--ls-none)}
}

/* Wedding Party panel (mobile): the admin colour was a fixed beige that fought
   the active theme. Use theme surfaces so it always belongs to the palette. */
html body .party-panel{
  background:var(--p-surface,var(--bg2));
  color:var(--ink);
  border-top:1px solid var(--p-line);
}
html body .party-panel .party-title{color:var(--ink)}
html body .party-panel .party-sub{color:var(--mute)}

/* Editorial photos and banners: keep the whole subject in frame instead of
   cropping heads/embroidery off at narrow widths. */
html body .party-media img,
html body .story-media img,
html body .gal img,
html body .occ img,
html body .strat-media img{object-position:center center}
html body .wb-thumb,html body .reel-img{object-position:center top}

/* Section heads: one centred voice on the homepage. The watch & buy head had
   its own flex/space-between rule that pinned the title left and left a dead
   empty right column; collapse it into the canonical centred stack. */
html body .watchbuy .sec-head{
  display:block;
  text-align:center;
  max-width:none;
  margin:0 auto var(--p-s4);
}
html body .watchbuy .sec-head > div{margin:0 auto}
html body .watchbuy .sec-head h2{text-align:center}
html body .watchbuy .sec-head > p{
  margin:var(--p-s2) auto 0;
  text-align:center;
  max-width:56ch;
}
html body .watchbuy .sec-head > p,
html body .watchbuy .sec-head > p:last-of-type{margin-inline:auto}
/* the "See all ... reels" link sits under the copy, centred, with readable
   ink-on-surface contrast (it was inheriting a dark-on-dark colour). */
html body .wb-seeall{
  display:inline-flex;
  margin:var(--p-s3) auto 0;
  color:var(--ink);
  background:var(--p-surface);
  border:1px solid var(--p-line);
  border-radius:var(--p-r3);
}
html body .wb-seeall:hover{color:var(--p-on-accent);background:var(--p-accent);border-color:var(--p-accent)}

/* Every homepage editorial section head centres overline + title + rule +
   subtitle. Scoped to #main so shop/PDP/cart heads keep their own layout. */
html body #main .sec-head,
html body #main .sec-head h2,
html body #main .sec-head .overline,
html body #main .sec-sub{text-align:center}
html body #main .sec-head{margin-inline:auto}
html body #main .sec-head .rule{margin-inline:auto}

/* Kill the right-side decorative hairline/diamond on centred heads — with a
   centred title it reads as a stray mark hanging in the empty right gutter. */
html body #main .sec-head::after,
html body #main .sec-head::before{display:none}

/* Tighter vertical rhythm: less dead air above and below section blocks. */
html body #main section{padding-block:var(--p-s6)}
html body #latest{padding-bottom:var(--p-s6)}
html body #occasions{padding-bottom:var(--p-s6)}
html body .trust-reviews{padding-block:var(--p-s6)}
html body .watchbuy{padding-block:var(--p-s6)}

/* Wedding Party banner: the poster is a photograph + a scrim. A fixed 620px
   min-height left a pale empty band when the photo was slow to decode. Make
   the media actually cover the section and drop the forced height. */
html body .party-banner{min-height:0;padding-block:var(--p-s7)}
html body .party-media img{object-fit:cover;object-position:center center}
/* On phones the poster is a normal block ABOVE the copy panel, not a full-bleed
   layer. The anchor stays absolute on desktop (copy sits inside the artwork);
   here it must go in-flow or its 100%-height hit area paints over the panel. */
@media (max-width:1024px){
  html body .party-media-link{position:relative;inset:auto;display:block;width:100%;height:auto;z-index:1}
  html body .party-panel{position:relative;z-index:2;background:var(--p-surface,var(--bg2))}
}

/* Theme switcher: the previous rule parked it flush on the right edge where
   half of the pill read as "outside". Keep the right-edge affordance but inset
   it so the whole control is visible and its panel opens toward the viewport. */
html body .tsw{right:10px;left:auto;top:50%;transform:translateY(-50%)}
html body .tsw .tb{
  width:40px;height:40px;
  border-radius:var(--radius-pill);
  border:1px solid var(--p-line);
  border-right:1px solid var(--p-line);
  box-shadow:var(--p-sh1);
}
html body .tsw .sz-tp{right:10px;left:auto}

/* FINAL EDGE PIN — owner: "chipkao" both helper tabs on phones. This block is
   deliberately last so it wins the cascade; !important also beats the inline
   left/top that the drag handlers write, keeping the controls flush. */
@media (max-width:640px){
  html body .tsw,
  html body .tsw .sz-tp{right:0 !important}
  html body .tsw .tb{border-right:0 !important;border-radius:var(--radius-pill) 0 0 999px !important}
  html body .float-left,
  html body .chat-dock{left:0 !important}
  html body .chat-pill{border-left:0 !important;border-radius:var(--radius-none) 999px 999px 0 !important}
}

/* One glossy, rounded recipe for EVERY button — the same three-layer studio
   finish the Watch & Buy "See all reels" pill uses. Only the surface treatment
   (shadow + radius) is shared; each button keeps its own colour/background. */
html body .btn,
html body .btn.btn-dark,
html body .btn.btn-solid,
html body .btn.btn-gold,
html body .btn.btn-cream,
html body .buy-button,
html body .wb-seeall,
html body .party-cta,
html body .cta-big,
html body .success-ctas a,
html body .acct-viewall,
html body .restock-btn{
  border-radius:var(--p-r3);
  box-shadow:
    0 8px 22px color-mix(in srgb, var(--btn-studio-base, var(--gold)) 34%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--theme-on-dark) 55%, transparent),
    inset 0 -2px 0 color-mix(in srgb, var(--btn-studio-deep, var(--gold3)) 42%, transparent);
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
html body .btn:hover:not(:disabled),
html body .buy-button:hover,
html body .wb-seeall:hover,
html body .party-cta:hover,
html body .cta-big:hover{
  transform:translateY(-1px);
  box-shadow:
    0 12px 28px color-mix(in srgb, var(--btn-studio-base, var(--gold)) 46%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--theme-on-dark) 62%, transparent),
    inset 0 -2px 0 color-mix(in srgb, var(--btn-studio-deep, var(--gold3)) 52%, transparent);
}

/* last-word override: every real button, including nested/ID-scoped ones such
   as the collection "See More", gets the same glossy rounded finish. */
html body .btn,
html body a.btn,
html body button.btn{
  border-radius:var(--p-r3) !important;
  /* The 3D finish is defined once in --pl-btn-glow (Component Studio tokens).
     Keep the !important so nested/ID-scoped buttons cannot fall back to the
     old flat shadow — but read the SAME token every other CTA uses. */
  box-shadow:var(--pl-btn-glow,
    0 5px 0 color-mix(in srgb, var(--btn-studio-deep, var(--gold3)) 82%, #000 18%),
    0 15px 26px rgba(var(--gold-rgb, 181, 139, 80), .42),
    inset 0 1px 0 color-mix(in srgb, var(--btn-studio-light, var(--gold2)) 85%, transparent),
    inset 0 -2px 0 color-mix(in srgb, var(--btn-studio-deep, var(--gold3)) 60%, transparent)) !important;
}

@media (prefers-reduced-motion:reduce){
  html body .btn:hover:not(:disabled){transform:none}
}
