/* =====================================================================================================
   SAR Atelier — storefront design system
   Ink indigo + pearl, with rani pink and peacock teal taken from Indian textile dyes. Glass surfaces are
   used for things that float above content (header, drawers, studio panels); content itself sits on
   calm, opaque surfaces so product imagery stays the hero. Display type: Bodoni Moda; UI type: Figtree.
   ===================================================================================================== */

@font-face { font-family: "Bodoni Moda"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/lib/fonts/bodoni-moda-latin-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/lib/fonts/bodoni-moda-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url(/lib/fonts/figtree-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url(/lib/fonts/figtree-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #1b1d3a;
  --ink-2: #2b2e55;
  --pearl: #f6f5fb;
  --paper: #ffffff;
  --mist: #e6e4f1;
  --mist-2: #d6d3e6;
  --muted: #5c5e78;
  --faint: #8a8ca3;
  --rani: #b4235b;
  --rani-soft: #f7e3ec;
  --peacock: #0f6e74;
  --peacock-soft: #def0f0;
  --zari: #a8864f;
  --ok: #1d7a4f;
  --warn: #9a6400;
  --danger: #b3261e;

  --bg: var(--pearl);
  --surface: var(--paper);
  --surface-2: #faf9fd;
  --text: var(--ink);
  --text-2: var(--muted);
  --line: var(--mist);
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-line: rgba(255, 255, 255, .75);
  --shade: 27 29 58;
  --shadow-1: 0 1px 2px rgb(var(--shade) / .06), 0 2px 8px rgb(var(--shade) / .05);
  --shadow-2: 0 10px 30px -12px rgb(var(--shade) / .28), 0 2px 6px rgb(var(--shade) / .06);
  --shadow-3: 0 30px 70px -24px rgb(var(--shade) / .45);
  --iris: linear-gradient(120deg, #b4235b 0%, #6d3ea8 48%, #0f6e74 100%);

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-ui: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --arch: 999px 999px var(--r-md) var(--r-md);

  --wrap: 1320px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d0e1f;
  --surface: #15172e;
  --surface-2: #1a1c37;
  --text: #ecebf7;
  --text-2: #b3b2cb;
  --faint: #8786a3;
  --line: #2a2c4b;
  --mist: #24264a;
  --mist-2: #34365c;
  --rani: #e05a8e;
  --rani-soft: #3a1a2b;
  --peacock: #3bb5b9;
  --peacock-soft: #12302f;
  --glass: rgba(21, 23, 46, .62);
  --glass-strong: rgba(21, 23, 46, .86);
  --glass-line: rgba(255, 255, 255, .08);
  --shade: 0 0 0;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font-ui); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rani); }
:focus-visible { outline: 2px solid var(--rani); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--rani); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 600; }
.display, h1.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; font-optical-sizing: auto; }
h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.1rem, 3.6vw + 1rem, 3.6rem); letter-spacing: -.015em; }
h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 1.6vw + 1rem, 2.35rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 650; }
h4 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--text-2); }
.faint { color: var(--faint); }
.lead { font-size: 1.125rem; color: var(--text-2); max-width: 62ch; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.stack > * + * { margin-top: var(--stack, 16px); }
.stack > .switch, .stack > .check { display: flex; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap-row { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --b-bg: var(--ink); --b-fg: #fff; --b-line: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid var(--b-line);
  background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
}
.btn:hover { color: var(--b-fg); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
:root[data-theme="dark"] .btn { --b-bg: #ecebf7; --b-fg: #15172e; }
.btn.accent { --b-bg: var(--rani); --b-fg: #fff; }
.btn.teal { --b-bg: var(--peacock); --b-fg: #fff; }
.btn.ghost { --b-bg: transparent; --b-fg: var(--text); --b-line: var(--mist-2); }
.btn.ghost:hover { --b-line: var(--text); box-shadow: none; }
.btn.glass { --b-bg: var(--glass-strong); --b-fg: var(--text); --b-line: var(--glass-line); backdrop-filter: blur(14px); }
.btn.link { --b-bg: transparent; --b-fg: var(--text); min-height: 0; padding: 0; border-radius: 0; text-decoration: underline; }
.btn.link:hover { box-shadow: none; transform: none; color: var(--rani); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.btn.lg { min-height: 54px; padding: 0 30px; font-size: 1rem; }
.btn.block { width: 100%; }
.btn.danger { --b-bg: transparent; --b-fg: var(--danger); --b-line: color-mix(in srgb, var(--danger) 35%, transparent); }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; position: relative;
  background: transparent; color: var(--text); transition: background .2s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.icon-btn .icon { width: 22px; height: 22px; }
.count-dot {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--rani); color: #fff; font: 700 11px/18px var(--font-ui); text-align: center;
}

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .label { font-size: .85rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: .8rem; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--mist-2);
  background: var(--surface); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235c5e78' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rani) 18%, transparent); }
:root[data-theme="dark"] .input:focus, :root[data-theme="dark"] .select:focus, :root[data-theme="dark"] .textarea:focus { border-color: var(--text); }
.input.is-invalid, .input-validation-error { border-color: var(--danger) !important; }
.field-error, .field-validation-error { color: var(--danger); font-size: .82rem; }
.validation-summary-errors ul, .form-error { margin: 0; padding: 12px 14px; list-style: none; border-radius: var(--r-sm); background: color-mix(in srgb, var(--danger) 9%, transparent); color: var(--danger); font-size: .9rem; }
.validation-summary-valid { display: none; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--rani); flex: none; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* toggle switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 40px; height: 24px; border-radius: 12px; background: var(--mist-2); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .25s var(--ease); }
.switch input:checked + .track { background: var(--peacock); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--rani); outline-offset: 2px; }

/* segmented control & chips */
.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--text) 6%, transparent); }
.segmented button, .segmented a { border: 0; background: transparent; padding: 8px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: .88rem; color: var(--text-2); text-decoration: none; }
.segmented [aria-pressed="true"], .segmented [aria-current="page"], .segmented .is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--mist-2); background: var(--surface); font-size: .88rem; font-weight: 500; text-decoration: none; color: var(--text);
  transition: border-color .2s, background .2s;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
:root[data-theme="dark"] .chip.is-active { background: #ecebf7; color: #15172e; }
.chip .x { opacity: .6; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-pill); font-size: .72rem; font-weight: 700; letter-spacing: .02em; background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.badge.rani { background: var(--rani); color: #fff; }
.badge.teal { background: var(--peacock); color: #fff; }
.badge.soft { background: color-mix(in srgb, var(--text) 7%, transparent); box-shadow: none; }
.badge.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); box-shadow: none; }
.badge.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); box-shadow: none; }
.badge.danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); box-shadow: none; }
.illustration-tag { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 2px 8px; border-radius: var(--r-pill); font-size: .68rem; font-weight: 600; letter-spacing: .02em; background: rgb(255 255 255 / .72); color: #4d4f69; backdrop-filter: blur(6px); }

/* ------------------------------------------------------------------ surfaces */
.glass {
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 28px); }
.card.flat { box-shadow: none; }
.panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-title h2, .panel-title h3 { margin: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }

/* ------------------------------------------------------------------ header */
.announce { background: var(--ink); color: #e9e7f7; font-size: .82rem; text-align: center; padding: 8px var(--gutter); }
.announce a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 60; }
.site-header .bar {
  height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 0 var(--gutter); border-bottom: 1px solid var(--glass-line);
}
.site-header .bar.glass { background: var(--glass-strong); }
.logo { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--text); }
.logo .mark { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; letter-spacing: .01em; }
.logo .sub { font-size: .7rem; font-weight: 600; letter-spacing: .14em; color: var(--text-2); text-transform: uppercase; }
.logo:hover { color: var(--text); }
.main-nav { display: flex; justify-content: center; gap: 2px; }
.main-nav > .nav-item { position: relative; }
.main-nav a.top { display: inline-flex; align-items: center; height: var(--header-h); padding: 0 14px; font-weight: 600; font-size: .93rem; text-decoration: none; color: var(--text); position: relative; }
.main-nav a.top::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 18px; height: 2px; background: var(--rani); transform: scaleX(0); transition: transform .3s var(--ease); transform-origin: left; }
.main-nav a.top:hover::after, .main-nav a.top[aria-current="page"]::after, .nav-item:focus-within a.top::after { transform: scaleX(1); }
.main-nav a.top.special { color: var(--peacock); }
.mega {
  position: absolute; left: 50%; top: calc(var(--header-h) - 6px); transform: translate(-50%, 8px); width: min(640px, 92vw);
  display: grid; grid-template-columns: 1fr 200px; gap: 22px; padding: 22px; border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 18px; }
.mega li { break-inside: avoid; }
.mega li a { display: block; padding: 7px 0; text-decoration: none; font-size: .93rem; }
.mega .mega-feature { border-radius: var(--arch); overflow: hidden; background: linear-gradient(180deg, var(--peacock-soft), var(--rani-soft)); aspect-ratio: 3/4; display: grid; place-items: end center; text-decoration: none; position: relative; }
.mega .mega-feature img { height: 92%; width: auto; object-fit: contain; }
.mega .mega-feature span { position: absolute; left: 12px; bottom: 12px; right: 12px; text-align: center; font-weight: 700; font-size: .85rem; padding: 6px; border-radius: var(--r-pill); background: var(--glass-strong); }
.header-tools { display: flex; align-items: center; gap: 4px; }
.search-box { position: relative; }
.search-box .input { width: 240px; min-height: 40px; padding-left: 38px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.search-box .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-2); width: 18px; height: 18px; pointer-events: none; }
.suggest { position: absolute; top: calc(100% + 8px); right: 0; width: min(420px, 92vw); border-radius: var(--r-md); padding: 8px; box-shadow: var(--shadow-3); }
.suggest a, .suggest button.recent { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; width: 100%; border: 0; background: transparent; text-align: left; }
.suggest a:hover, .suggest a.is-active, .suggest button.recent:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.suggest img { width: 40px; height: 50px; object-fit: contain; border-radius: 6px; background: var(--surface-2); }
.suggest .group { font-size: .75rem; font-weight: 700; color: var(--text-2); padding: 8px 10px 4px; }
.nav-toggle { display: none; }
.account-menu { position: relative; }
.account-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px; border-radius: var(--r-md); box-shadow: var(--shadow-3); }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; border: 0; background: transparent; font-size: .93rem; text-align: left; }
.menu a:hover, .menu button:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.menu .who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: .85rem; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .search-box .input { width: 170px; }
  .site-header .bar { grid-template-columns: auto auto 1fr auto; }
}
@media (max-width: 640px) {
  .search-box { display: none; }
  .logo .sub { display: none; }
  .site-header .bar { gap: 8px; }
}

/* mobile nav drawer & generic drawer */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgb(13 14 31 / .42); opacity: 0; transition: opacity .3s; }
.scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 90; width: min(440px, 100vw); display: flex; flex-direction: column;
  transform: translateX(104%); transition: transform .38s var(--ease); box-shadow: var(--shadow-3);
  background: var(--glass-strong);
}
.drawer.left { right: auto; left: 0; transform: translateX(-104%); }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.45rem; margin: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 18px 22px; overscroll-behavior: contain; }
.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.mobile-nav a { display: block; padding: 12px 0; font-size: 1.05rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav details summary { list-style: none; display: flex; justify-content: space-between; padding: 12px 0; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--line); cursor: pointer; }
.mobile-nav details a { font-weight: 500; font-size: .98rem; padding-left: 14px; }
.mobile-nav .mobile-search { margin-bottom: 14px; }

/* modal */
dialog.modal {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--glass-line); border-radius: var(--r-lg);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-3);
}
dialog.modal.wide { width: min(920px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgb(13 14 31 / .5); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: modal-in .32s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.4rem; }
.modal-body { padding: 20px 22px; overflow: auto; max-height: calc(100vh - 220px); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }

/* toasts */
.toasts { position: fixed; z-index: 120; right: 18px; bottom: 18px; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); }
.toast {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-3);
  background: var(--ink); color: #f1f0fb; font-size: .93rem; animation: toast-in .36s var(--ease);
}
.toast.is-leaving { animation: toast-out .25s var(--ease-in) forwards; }
.toast .icon { margin-top: 1px; color: #fff; }
.toast.success .icon { color: #6fd6a6; }
.toast.error { background: #5d1420; }
.toast a { color: #fff; font-weight: 600; }
.toast .t-close { margin-left: auto; background: none; border: 0; color: #cfcde4; padding: 0 2px; }
.toast .t-action { margin-left: auto; flex: none; align-self: center; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .28); color: #fff;
  font: 700 .82rem/1 var(--font-ui); padding: 7px 12px; border-radius: var(--r-pill); cursor: pointer; }
.toast .t-action:hover { background: rgb(255 255 255 / .22); }
.toast .t-action + .t-close { margin-left: 0; }

/* skeletons & empty states */
.skeleton { position: relative; overflow: hidden; background: color-mix(in srgb, var(--text) 7%, transparent); border-radius: var(--r-sm); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / .45), transparent); animation: shimmer 1.4s infinite; }
:root[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgb(255 255 255 / .06), transparent); }
.sk-line { height: 12px; margin: 8px 0; }
.sk-card { aspect-ratio: 4/5; border-radius: var(--r-md); }
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: clamp(32px, 6vw, 72px) 20px; }
.empty .empty-art { width: 132px; height: 132px; border-radius: var(--arch); background: linear-gradient(180deg, var(--peacock-soft), var(--rani-soft)); display: grid; place-items: center; margin-bottom: 6px; }
.empty .empty-art .icon { width: 46px; height: 46px; color: var(--ink); stroke-width: 1.2; }
:root[data-theme="dark"] .empty .empty-art .icon { color: var(--text); }
.empty h2, .empty h3 { margin: 0; }
.empty p { max-width: 44ch; color: var(--text-2); margin: 0; }

/* ------------------------------------------------------------------ product cards */
.grid-products { display: grid; gap: clamp(14px, 2vw, 26px) clamp(12px, 1.6vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(210px, 44vw), 1fr)); }
.p-card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.p-card .media {
  position: relative; display: block; aspect-ratio: 4/5; border-radius: var(--r-md); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, var(--surface) 0%, var(--surface-2) 60%, color-mix(in srgb, var(--mist) 70%, var(--surface)) 100%);
  isolation: isolate;
}
.p-card .media img { position: absolute; inset: 6% 6% 4%; width: 88%; height: 90%; object-fit: contain; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.p-card .media img.alt { opacity: 0; }
.p-card:hover .media img.main { opacity: 0; transform: scale(1.02); }
.p-card:hover .media img.alt { opacity: 1; transform: scale(1.02); }
.p-card .media:not(:has(img.alt)) img.main { opacity: 1 !important; }
.p-card .flags { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 60px); }
.p-card .wish { position: absolute; right: 8px; top: 8px; z-index: 3; background: var(--glass-strong); backdrop-filter: blur(8px); box-shadow: var(--shadow-1); }
.wish[aria-pressed="true"] .icon { fill: var(--rani); stroke: var(--rani); }
.wish.pop .icon { animation: pop .4s var(--ease); }
.p-card .meta { display: grid; gap: 2px; padding: 0 2px; }
.p-card .brand { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--text-2); }
.p-card .name { font-size: .95rem; font-weight: 500; text-decoration: none; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card .name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p-card .media, .p-card .wish { z-index: 2; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-variant-numeric: tabular-nums; }
.price .now { font-weight: 700; }
.price .was { color: var(--faint); text-decoration: line-through; font-size: .88em; }
.price .off { color: var(--peacock); font-weight: 700; font-size: .85em; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--text-2); }
.rating .star { color: var(--zari); }
.swatches { display: flex; gap: 5px; margin-top: 4px; }
.swatches span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .14); }
.oos .media img { filter: grayscale(.6); opacity: .6; }

.rail { position: relative; }
.rail .track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; }
.rail .track > * { scroll-snap-align: start; }
@media (min-width: 900px) { .rail .track { grid-auto-columns: calc((100% - 4 * 20px) / 5); } }
.rail-nav { display: flex; gap: 8px; }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(40px, 6vw, 88px) 0; }
.section.tight { padding: clamp(28px, 4vw, 52px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: clamp(18px, 2.6vw, 30px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--text-2); max-width: 56ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: .85rem; color: var(--text-2); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.breadcrumbs a { text-decoration: none; }

/* home: hero */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 5vw, 70px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--rani) 16%, transparent), transparent); filter: blur(10px); z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto auto -30% -15%; width: 55vw; height: 55vw; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--peacock) 15%, transparent), transparent); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw + .6rem, 5.4rem); line-height: 1.02; margin-bottom: 22px; }
.hero .lead { font-size: clamp(1.05rem, .5vw + .9rem, 1.25rem); margin-bottom: 30px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .proof { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; color: var(--text-2); font-size: .9rem; }
.hero .proof strong { display: block; color: var(--text); font-size: 1.05rem; }
.stage-arch {
  position: relative; margin-inline: auto; width: min(440px, 100%); aspect-ratio: 5/7; border-radius: var(--arch);
  background: linear-gradient(180deg, color-mix(in srgb, var(--peacock-soft) 90%, var(--surface)) 0%, color-mix(in srgb, var(--rani-soft) 85%, var(--surface)) 100%);
  box-shadow: var(--shadow-3), inset 0 0 0 1px var(--glass-line);
}
.stage-arch::before { content: ""; position: absolute; inset: 12px; border-radius: var(--arch); border: 1px solid color-mix(in srgb, var(--zari) 55%, transparent); pointer-events: none; z-index: 3; }
.stage-arch .floor { position: absolute; left: 12%; right: 12%; bottom: 6%; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--shade) / .22), transparent); }
.hero-stage { position: absolute; inset: 7% 10% 5%; }
.hero-stage canvas, .hero-stage img { width: 100%; height: 100%; object-fit: contain; }
.hero-tag {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md);
  box-shadow: var(--shadow-2); font-size: .85rem; max-width: 220px;
}
.hero-tag img { width: 38px; height: 46px; object-fit: contain; }
.hero-tag strong { display: block; font-size: .9rem; }
.hero-tag { transition: opacity .5s var(--ease), transform .5s var(--ease); text-decoration: none; color: var(--text); }
.hero-tag:hover { color: var(--text); transform: translateY(-2px); }
[data-hero].is-ready .hero-tag:not(.is-in) { opacity: 0; transform: translateY(10px); }
.hero-tag.t1 { left: -6%; top: 22%; }
.hero-tag.t2 { right: -8%; bottom: 20%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-tag.t1 { left: 0; } .hero-tag.t2 { right: 0; }
  .stage-arch { width: min(360px, 88%); }
}

/* sections as arched windows */
.arches { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .arches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.arch-card { position: relative; display: block; text-decoration: none; color: var(--text); }
.arch-card .window {
  position: relative; aspect-ratio: 3/4.1; border-radius: var(--arch); overflow: hidden;
  background: linear-gradient(180deg, var(--peacock-soft), var(--rani-soft)); box-shadow: inset 0 0 0 1px var(--glass-line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.arch-card:nth-child(2) .window { background: linear-gradient(180deg, var(--rani-soft), #efe8f8); }
.arch-card:nth-child(3) .window { background: linear-gradient(180deg, #fff1d6, var(--peacock-soft)); }
.arch-card:nth-child(4) .window { background: linear-gradient(180deg, #ece9f6, #f6efe4); }
:root[data-theme="dark"] .arch-card .window { background: linear-gradient(180deg, #1c2a44, #2a1b33) !important; }
.arch-card .window::before { content: ""; position: absolute; inset: 10px; border-radius: var(--arch); border: 1px solid color-mix(in srgb, var(--zari) 45%, transparent); z-index: 2; pointer-events: none; }
.arch-card img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 90%; width: auto; max-width: 92%; object-fit: contain; transition: transform .6s var(--ease); }
.arch-card:hover { color: var(--text); }
.arch-card:hover .window { transform: translateY(-4px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--glass-line); }
.arch-card:hover img { transform: translateX(-50%) scale(1.03); }
.arch-card .label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.arch-card .label strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.arch-card .label span { font-size: .85rem; color: var(--text-2); }

/* feature bands (studio & fitting room) */
.band { border-radius: calc(var(--r-lg) + 6px); overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; background: var(--ink); color: #eceaf9; }
.band.light { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.band .copy { padding: clamp(28px, 5vw, 64px); display: grid; align-content: center; gap: 14px; }
.band h2 { color: inherit; font-size: clamp(1.9rem, 2.4vw + 1rem, 3rem); }
.band .copy p { color: color-mix(in srgb, currentColor 78%, transparent); max-width: 50ch; }
.band .visual { position: relative; min-height: 340px; background: radial-gradient(80% 70% at 50% 40%, rgb(255 255 255 / .12), transparent 70%), var(--iris); display: grid; place-items: center; }
.band.light .visual { background: linear-gradient(160deg, var(--peacock-soft), var(--rani-soft)); }
.band .visual img { max-height: 400px; width: auto; max-width: 88%; object-fit: contain; filter: drop-shadow(0 26px 30px rgb(0 0 0 / .25)); }
.band .steps { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.band .steps li { display: flex; gap: 12px; align-items: baseline; }
.band .steps li::before { counter-increment: s; content: counter(s); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; font-size: .75rem; font-weight: 700; opacity: .8; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } .band .visual { min-height: 260px; } }

.promo-strip { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.promo-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .35s var(--ease); }
.promo-card .art { display: grid; place-items: center; height: 170px; padding: 16px; background: linear-gradient(160deg, var(--peacock-soft), var(--rani-soft)); }
.promo-card:nth-child(3n+2) .art { background: linear-gradient(160deg, var(--rani-soft), #efe8f8); }
.promo-card:nth-child(3n) .art { background: linear-gradient(160deg, #fff1d6, var(--peacock-soft)); }
:root[data-theme="dark"] .promo-card .art { background: linear-gradient(160deg, #1c2a44, #2a1b33); }
.promo-card .art img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; transition: transform .5s var(--ease); }
.promo-card .body { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; flex: 1; }
.promo-card:hover { color: var(--text); border-color: var(--text); }
.promo-card:hover .art img { transform: translateY(-4px); }
.promo-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; margin: 0; }
.promo-card p { color: var(--text-2); font-size: .9rem; margin: 0; }
.promo-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.code { font: 700 .8rem/1 var(--font-ui); letter-spacing: .08em; padding: 6px 10px; border-radius: 6px; border: 1px dashed var(--rani); color: var(--rani); background: var(--rani-soft); }

.brand-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.brand-tile { display: grid; place-items: center; gap: 8px; padding: 18px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; text-align: center; min-height: 112px; }
.brand-tile img { height: 34px; width: auto; }
.brand-tile span { font-size: .82rem; color: var(--text-2); }

.value-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.value { display: flex; gap: 14px; align-items: flex-start; }
.value .icon { width: 28px; height: 28px; color: var(--peacock); stroke-width: 1.4; }
.value strong { display: block; }
.value span { color: var(--text-2); font-size: .9rem; }

/* newsletter + footer */
.site-footer { margin-top: clamp(40px, 6vw, 80px); background: var(--ink); color: #c9c7e0; }
.site-footer a { color: #e8e6f7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); padding: 56px 0 36px; }
.footer-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .93rem; }
.footer-brand .mark { font-family: var(--font-display); font-size: 2rem; color: #fff; }
.footer-brand p { font-size: .92rem; max-width: 38ch; margin-top: 10px; }
.newsletter { display: flex; gap: 8px; margin-top: 16px; max-width: 380px; }
.newsletter .input { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .16); color: #fff; }
.newsletter .input::placeholder { color: #a9a7c6; }
.push-optin { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.footer-social { margin-top: 22px; display: grid; gap: 10px; }
.footer-social-label { font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: #fff; }
.footer-social ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #e9e8f6; background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .16); transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease); }
.footer-social a:hover, .footer-social a:focus-visible { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .footer-social a { transition: none; } .footer-social a:hover { transform: none; } }
.footer-base { border-top: 1px solid rgb(255 255 255 / .1); padding: 18px 0 26px; font-size: .82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ listing */
.listing-hero { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding: clamp(18px, 3vw, 36px) 0 clamp(14px, 2vw, 22px); }
.listing-hero h1 { margin-bottom: 6px; }
.listing-hero .art { height: clamp(120px, 16vw, 210px); width: auto; border-radius: var(--arch); background: linear-gradient(180deg, var(--peacock-soft), var(--rani-soft)); padding: 10px 14px 0; }
@media (max-width: 700px) { .listing-hero { grid-template-columns: 1fr; } .listing-hero .art { display: none; } }
.subnav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.listing { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.filters details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.filters summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; font-size: .9rem; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; font-weight: 400; color: var(--text-2); font-size: 1.2rem; line-height: 1; }
.filters details[open] summary::after { content: "−"; }
.filters .opts { display: grid; gap: 8px; margin-top: 12px; max-height: 240px; overflow: auto; }
.filters .opts .check { font-size: .9rem; }
.filters .opts .count { color: var(--faint); font-size: .8rem; margin-left: auto; }
.filters .opts label { display: flex; width: 100%; }
.size-opts { display: flex !important; flex-wrap: wrap; gap: 6px !important; }
.size-opts label { width: auto !important; }
.size-opts input { position: absolute; opacity: 0; }
.size-opts span { display: inline-grid; place-items: center; min-width: 44px; height: 36px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--mist-2); font-size: .82rem; font-weight: 600; cursor: pointer; }
.size-opts input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-opts input:focus-visible + span { outline: 2px solid var(--rani); outline-offset: 2px; }
.color-opts { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.color-opts label { width: auto !important; position: relative; }
.color-opts input { position: absolute; opacity: 0; }
.color-opts span { display: block; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .15); cursor: pointer; box-shadow: inset 0 0 0 2px var(--surface); }
.color-opts input:checked + span { outline: 2px solid var(--ink); outline-offset: 2px; }
:root[data-theme="dark"] .color-opts input:checked + span { outline-color: #fff; }
.price-range { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.price-range .input { min-height: 38px; padding: 6px 10px; }
.listing-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.listing-tools .select { width: auto; min-height: 40px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; z-index: 90; width: min(360px, 90vw); max-height: none; padding: 20px; background: var(--surface); transform: translateX(-104%); transition: transform .35s var(--ease); box-shadow: var(--shadow-3); }
  .filters.is-open { transform: none; }
  .filter-toggle { display: inline-flex; }
}
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--r-pill); text-decoration: none; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.pager [aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .gap { border: 0; }

/* ------------------------------------------------------------------ product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(20px, 4vw, 60px); align-items: start; padding-top: 10px; }
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; position: sticky; top: calc(var(--header-h) + 14px); }
.gallery .thumbs { display: grid; gap: 10px; align-content: start; }
.gallery .thumbs button { padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); aspect-ratio: 4/5; overflow: hidden; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
:root[data-theme="dark"] .gallery .thumbs button[aria-current="true"] { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery .main-view { position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, var(--surface) 0%, var(--surface-2) 60%, color-mix(in srgb, var(--mist) 70%, var(--surface)) 100%); cursor: zoom-in; }
.gallery .main-view img { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; transition: opacity .35s var(--ease), transform .2s; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gallery .main-view.zoomed img { transform: scale(1.9); }
.gallery .view-switch { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; }
@media (max-width: 960px) { .gallery { position: static; grid-template-columns: 1fr; } .gallery .thumbs { grid-auto-flow: column; grid-auto-columns: 64px; order: 2; overflow-x: auto; } }
.pdp-info .brand-link { font-weight: 700; font-size: .85rem; letter-spacing: .04em; color: var(--peacock); text-decoration: none; }
.pdp-info h1 { font-size: clamp(1.9rem, 2vw + 1rem, 2.7rem); margin: 8px 0 12px; }
.pdp-info .price { font-size: 1.45rem; margin: 10px 0 2px; }
.pdp-info .tax-note { font-size: .82rem; color: var(--text-2); }
.opt-group { margin-top: 22px; }
.opt-group .opt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: .9rem; }
.color-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.color-picker button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .15); box-shadow: inset 0 0 0 3px var(--surface); padding: 0; }
.color-picker button[aria-pressed="true"] { outline: 2px solid var(--text); outline-offset: 2px; }
.size-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.size-picker button { min-width: 54px; height: 46px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--mist-2); background: var(--surface); font-weight: 600; position: relative; }
.size-picker button:hover { border-color: var(--text); }
.size-picker button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
:root[data-theme="dark"] .size-picker button[aria-pressed="true"] { background: #fff; color: #15172e; }
.size-picker button:disabled { color: var(--faint); background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--text) 6%, transparent) 6px 7px); cursor: not-allowed; }
.size-picker button .left { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); font-size: .64rem; font-weight: 700; color: var(--warn); background: var(--surface); padding: 0 4px; white-space: nowrap; }
.buy-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 26px; }
.feature-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.feature-cta { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: .9rem; }
.feature-cta .icon { width: 26px; height: 26px; color: var(--rani); }
.feature-cta strong { display: block; font-size: .95rem; }
.feature-cta span { color: var(--text-2); font-size: .8rem; }
.feature-cta:hover { border-color: var(--text); color: var(--text); }
.feature-cta.off { opacity: .6; pointer-events: none; }
.delivery-check { display: flex; gap: 8px; margin-top: 10px; }
.delivery-check .input { max-width: 180px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; display: flex; justify-content: space-between; padding: 16px 0; font-weight: 650; cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--text-2); }
.accordion details[open] summary::after { content: "−"; }
.accordion .acc-body { padding: 0 0 18px; color: var(--text-2); font-size: .95rem; }
.spec-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.spec-list dt { color: var(--text-2); }
.spec-list dd { margin: 0; color: var(--text); }
.reviews { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); }
@media (max-width: 800px) { .reviews { grid-template-columns: 1fr; } }
.review-summary .big { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; }
.dist { display: grid; gap: 6px; margin-top: 14px; }
.dist div { display: grid; grid-template-columns: 22px 1fr 34px; gap: 8px; align-items: center; font-size: .8rem; color: var(--text-2); }
.dist i { display: block; height: 6px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.dist i b { display: block; height: 100%; background: var(--zari); border-radius: 3px; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review h4 { margin: 4px 0; }
.review .by { font-size: .82rem; color: var(--text-2); }
.stars { color: var(--zari); letter-spacing: 2px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 1.8rem; color: var(--mist-2); cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--zari); }
.star-input input:focus-visible + label { outline: 2px solid var(--rani); }

/* ------------------------------------------------------------------ bag & checkout */
.bag-lines { display: grid; gap: 14px; }
.bag-line { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bag-line .thumb { aspect-ratio: 4/5; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); display: block; }
.bag-line .thumb img { width: 100%; height: 100%; object-fit: contain; }
.bag-line .title { font-weight: 600; text-decoration: none; display: block; line-height: 1.3; }
.bag-line .opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.bag-line .opts .select { width: auto; min-height: 34px; padding: 4px 30px 4px 10px; font-size: .85rem; background-position: right 10px center; }
.bag-line .line-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bag-line .design-tag { font-size: .78rem; color: var(--peacock); font-weight: 600; }
.bag-line .warn { font-size: .8rem; color: var(--warn); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--mist-2); border-radius: var(--r-pill); }
.qty button { width: 32px; height: 32px; border: 0; background: transparent; border-radius: 50%; font-size: 1.05rem; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: .9rem; }
.totals { display: grid; gap: 8px; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-size: 1.15rem; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.totals .save { color: var(--peacock); }
.ship-meter { margin: 6px 0 14px; font-size: .85rem; }
.ship-meter i { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.ship-meter i b { display: block; height: 100%; background: var(--iris); border-radius: 3px; transition: width .5s var(--ease); }
.coupon-row { display: flex; gap: 8px; }
.bag-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(20px, 4vw, 48px); align-items: start; }
.summary-card { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 900px) { .bag-page { grid-template-columns: 1fr; } .summary-card { position: static; } }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } }
.step-card { margin-bottom: 18px; }
.step-card h2 { font-size: 1.45rem; display: flex; align-items: center; gap: 12px; }
.step-card h2 .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 .85rem/1 var(--font-ui); }
:root[data-theme="dark"] .step-card h2 .n { background: #fff; color: #15172e; }
.choice-list { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--mist-2); border-radius: var(--r-md); cursor: pointer; transition: border-color .2s, background .2s; }
.choice input { margin-top: 3px; accent-color: var(--rani); width: 18px; height: 18px; flex: none; }
.choice:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--rani-soft) 40%, var(--surface)); }
:root[data-theme="dark"] .choice:has(input:checked) { border-color: #fff; }
.choice .right { margin-left: auto; font-weight: 700; }
.choice.disabled { opacity: .5; cursor: not-allowed; }
.demo-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--peacock-soft); color: var(--text); font-size: .88rem; }
.demo-note .icon { color: var(--peacock); margin-top: 1px; }
.mini-lines { display: grid; gap: 12px; max-height: 320px; overflow: auto; margin-bottom: 16px; }
.mini-line { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.mini-line img { width: 54px; height: 66px; object-fit: contain; border-radius: 6px; background: var(--surface-2); }

/* ------------------------------------------------------------------ account */
.account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; padding-top: 12px; }
@media (max-width: 860px) { .account { grid-template-columns: 1fr; } }
.account-nav { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 2px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.account-nav a[aria-current="page"] { background: var(--surface); box-shadow: var(--shadow-1); font-weight: 700; }
.account-nav a:hover { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); }
@media (max-width: 860px) { .account-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .account-nav a { white-space: nowrap; } }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat-tile { padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.stat-tile strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 500; }
.stat-tile span { color: var(--text-2); font-size: .88rem; }
.order-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-decoration: none; }
.order-row img { width: 64px; height: 78px; object-fit: contain; background: var(--surface-2); border-radius: 8px; }
.order-row:hover { border-color: var(--text); color: var(--text); }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .8rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.s-good { color: var(--ok); } .status.s-mid { color: var(--peacock); } .status.s-bad { color: var(--danger); } .status.s-wait { color: var(--warn); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 22px 30px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--mist-2); }
.timeline li::after { content: ""; position: absolute; left: 12px; top: 22px; bottom: 0; width: 2px; background: var(--mist); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--peacock); border-color: var(--peacock); }
.timeline li.current::before { background: var(--rani); border-color: var(--rani); box-shadow: 0 0 0 5px color-mix(in srgb, var(--rani) 20%, transparent); }
.timeline .when { font-size: .8rem; color: var(--text-2); }
.track-map { position: relative; height: 220px; border-radius: var(--r-md); background: linear-gradient(160deg, var(--peacock-soft), var(--rani-soft)); overflow: hidden; }
.track-map svg { width: 100%; height: 100%; }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.address-card { position: relative; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); font-size: .93rem; }
.address-card .actions { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h) - 120px); }
.auth-art { position: relative; background: var(--iris); overflow: hidden; display: grid; place-items: center; }
.auth-art img { height: 86%; width: auto; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .3)); }
.auth-art .quote { position: absolute; left: 32px; right: 32px; bottom: 30px; color: #fff; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; }
.auth-form { display: grid; align-content: center; padding: clamp(24px, 6vw, 80px); }
.auth-form form { width: min(420px, 100%); display: grid; gap: 16px; }
.auth-form h1 { font-size: clamp(2rem, 2.4vw + 1rem, 2.9rem); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* Sign-in page: one compact column with an animated brand mark instead of the side picture. */
.auth-wrap.auth-compact { grid-template-columns: 1fr; min-height: calc(100vh - var(--header-h) - 60px); }
.auth-compact .auth-form { justify-items: center; padding: clamp(16px, 4vh, 40px) var(--gutter); }
.auth-compact .auth-form form { gap: 13px; padding: clamp(20px, 3.2vh, 30px) clamp(20px, 4vw, 34px); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.auth-compact .auth-form h1 { font-size: clamp(1.65rem, 1.2vw + 1.1rem, 2.1rem); }
.auth-compact .auth-form h1 + p { margin: 4px 0 0; }
.auth-compact .btn.lg { min-height: 48px; }
.auth-brand { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.auth-arch { width: 54px; height: 54px; flex: none; overflow: visible; }
.auth-arch .arch-body { fill: #1b1d3a; transform-origin: 50% 100%; }
:root[data-theme="dark"] .auth-arch .arch-body { fill: #2b2e55; }
.auth-arch .arch-seam { fill: none; stroke-width: 3; stroke-linecap: round; }
.auth-arch .arch-stitch { fill: none; stroke: #fff; stroke-width: .9; stroke-dasharray: 2.2 2.4; opacity: .55; }
.auth-arch .arch-letter { font: 700 22px Georgia, "Bodoni Moda", serif; fill: #fff; }
.auth-wordmark { position: relative; display: grid; gap: 2px; padding-bottom: 7px; }
.auth-wordmark .mark { display: inline-flex; font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; line-height: 1; letter-spacing: .02em; color: var(--text); }
.auth-wordmark .mark span { display: inline-block; }
.auth-wordmark .sub { font-size: .72rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--text-2); }
.auth-thread { position: absolute; left: 0; right: -6px; bottom: 0; height: 2px; border-radius: 2px; background: var(--iris); }
.auth-thread::after { content: ""; position: absolute; right: -2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #0f6e74; }
@media (prefers-reduced-motion: no-preference) {
  .auth-arch .arch-body { animation: arch-rise .55s var(--ease) both; }
  .auth-arch .arch-seam { stroke-dasharray: 100; animation: seam-draw 1s .25s var(--ease) both; }
  .auth-arch .arch-stitch { animation: stitch-in .4s 1.15s ease-out both; }
  .auth-arch .arch-letter { animation: letter-up .5s .7s var(--ease) both; }
  .auth-wordmark .mark span { animation: letter-up .5s var(--ease) both; }
  .auth-wordmark .mark span:nth-child(1) { animation-delay: .45s; }
  .auth-wordmark .mark span:nth-child(2) { animation-delay: .55s; }
  .auth-wordmark .mark span:nth-child(3) { animation-delay: .65s; }
  .auth-wordmark .sub { animation: sub-in .7s .85s var(--ease) both; }
  .auth-thread { animation: thread-run .8s 1s var(--ease) both; }
}
@keyframes arch-rise { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes seam-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes stitch-in { from { opacity: 0; } to { opacity: .55; } }
@keyframes letter-up { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes sub-in { from { opacity: 0; letter-spacing: .5em; } to { opacity: 1; letter-spacing: .26em; } }
@keyframes thread-run { from { clip-path: inset(-4px 100% -4px 0); } to { clip-path: inset(-4px -6px -4px 0); } }
@media (max-height: 760px) and (min-width: 861px) { .auth-compact .auth-form form { gap: 11px; } .auth-brand { padding-bottom: 10px; } }
.demo-creds { font-size: .85rem; padding: 12px 14px; border-radius: var(--r-md); background: color-mix(in srgb, var(--zari) 12%, transparent); }

/* ------------------------------------------------------------------ prose pages */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 0; font-weight: 650; cursor: pointer; }
.faq p { color: var(--text-2); }
.size-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.size-table th, .size-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.size-table th { font-weight: 700; background: var(--surface-2); }

/* ------------------------------------------------------------------ error pages */
.error-page { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; padding: clamp(40px, 8vw, 110px) 0; }
.error-page .code-art { font-family: var(--font-display); font-size: clamp(6rem, 14vw, 12rem); line-height: .9; background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 700px) { .error-page { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
@keyframes pop { 40% { transform: scale(1.3); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-26px); } }
.hero .copy > * { animation: rise .9s var(--ease) both; }
.hero .copy > :nth-child(2) { animation-delay: .08s; }
.hero .copy > :nth-child(3) { animation-delay: .16s; }
.hero .copy > :nth-child(4) { animation-delay: .24s; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
@media print {
  .site-header, .site-footer, .announce, .toasts, .no-print { display: none !important; }
  body { background: #fff; }
}

.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(18px, 3vw, 32px); align-items: start; }
@media (max-width: 960px) { .order-grid { grid-template-columns: 1fr; } }

/* Studio product list (/studio) */
.studio-picker .grid-products { grid-template-columns: repeat(auto-fill, minmax(min(220px, 44vw), 1fr)); }
.studio-unavailable { margin: 0 0 22px; padding: 12px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--zari) 45%, transparent);
  background: color-mix(in srgb, var(--zari) 10%, var(--surface)); color: var(--text); font-size: .92rem; }
