/* Kadam: shared styles for the storefront and admin panel. Mobile first.
   One house look everywhere: ivory paper, warm ink, a deep maroon and a little champagne gold, with a
   serif for display type. Every colour below is a token, so the whole store changes from here. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/cormorant-500.woff2) format("woff2"); 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: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/cormorant-600.woff2) format("woff2"); 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: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(/assets/fonts/cormorant-500-italic.woff2) format("woff2"); 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; }
:root {
  color-scheme: light;
  --ink: #221a16; --ink-2: #6b5d55; --ink-3: #857568; --line: #dcd1c1; --line-2: #ebe3d6;
  --bg: #fffcf7; --bg-2: #f3ece1; --bg-3: #fbf8f2;
  --accent: #6d1f2b; --accent-2: #7a2633; --accent-deep: #521520; --gold: #b4935e; --gold-2: #d9c49c; --tint: #f6ebe7;
  --sale: #8b2534; --ok: #3d6b47; --ok-bg: #e9f0e5; --warn: #8a5a12; --warn-bg: #f8eedb; --err: #a3242f; --err-bg: #f9e8e7;
  --info: #4d4038; --info-bg: #f1ebe2; --sale-bg: #f7e8e5; --blue-bg: #f3ead9; --on-ink: #fffaf3;
  --radius: 6px; --radius-s: 4px; --r-ctl: 2px; --shadow: 0 18px 40px -24px rgba(60,38,24,.3); --header: 58px; --marquee: 34px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Hoefler Text", "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; scroll-padding-top: calc(var(--header) + 8px); } /* things scrolled to (focus, links) stay clear of the sticky top bar */
#app { display: block; min-height: 100vh; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.47; -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
p a, nav[aria-label="Breadcrumb"] a, .hint a, .small a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(38px, 7.6vw, 64px); }
h2 { font-size: clamp(30px, 5vw, 44px); }
h3 { font-size: 22px; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid rgba(109,31,43,.65); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.grow { flex: 1 1 auto; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-line; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: var(--r-ctl); border: 1px solid transparent;
  background: var(--accent); color: var(--on-ink); font-weight: 500; font-size: 15px; letter-spacing: .03em; cursor: pointer; text-decoration: none !important; transition: background .15s, opacity .15s; }
.btn:hover { background: var(--accent-deep); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: var(--on-ink); } .btn-dark:hover { background: #120d0b; }
.btn-light { background: var(--bg-2); color: var(--ink); } .btn-light:hover { background: var(--line-2); }
.btn-ghost { background: transparent; color: var(--accent-2); padding-inline: 10px; } .btn-ghost:hover { background: var(--tint); }
.btn-danger { background: var(--err); } .btn-danger:hover { background: #821b25; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); } .btn-outline:hover { background: var(--ink); color: var(--on-ink); }
.btn-s { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--ink); position: relative; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 22px; height: 22px; }
.count-dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-ink); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.link { background: none; border: 0; padding: 0; color: var(--accent-2); cursor: pointer; font-size: inherit; }
.link:hover { text-decoration: underline; }

/* forms */
.field { display: block; margin-bottom: 14px; }
.field > span, .label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.input, .select, textarea.input { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg); font-size: 16px; }
textarea.input { min-height: 110px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(109,31,43,.12); }
.input[aria-invalid="true"] { border-color: var(--err); }
.hint { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.err-text { color: var(--err); font-size: 14px; margin-top: 6px; }
.grid-2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.pw-wrap { position: relative; }
.pw-wrap .link { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; }

/* messages */
.alert { padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 14px; font-size: 15px; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-err { background: var(--err-bg); color: var(--err); }
.alert-info { background: var(--info-bg); color: var(--info); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-ctl); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge-sale { background: var(--sale-bg); color: var(--sale); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-blue { background: var(--blue-bg); color: var(--accent-2); }
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: rgba(34,26,22,.96); color: var(--on-ink); padding: 12px 16px; border-radius: var(--radius-s); font-size: 15px; box-shadow: var(--shadow); animation: toast-in .2s ease-out; pointer-events: auto; }
.toast.err { background: var(--err); }
.toast a { color: var(--gold-2); }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248,244,237,.9); border-bottom: 1px solid var(--line-2); }
.site-header .wrap { height: var(--header); display: flex; align-items: center; gap: 4px; }
.logo { font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); margin-right: auto; padding: 6px 4px; text-decoration: none !important; }
.main-nav { display: none; gap: 28px; margin-right: auto; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.main-nav a { color: var(--ink); opacity: .85; }
.main-nav a:hover { opacity: 1; text-decoration: none; }
@media (min-width: 900px) { .main-nav { display: flex; } .menu-btn { display: none !important; } .logo { margin-right: 28px; } }
.marquee { height: var(--marquee); background: var(--accent); color: #f7ebe2; font-size: 11px; line-height: 20px; letter-spacing: .2em; text-transform: uppercase; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; padding: 7px 0; animation: marquee 38s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } html { scroll-behavior: auto; } }

/* drawer and modal */
.overlay { position: fixed; inset: 0; background: rgba(34,22,18,.38); z-index: 200; display: flex; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: relative; background: var(--sheet); width: min(88vw, 380px); height: 100%; overflow-y: auto; padding: 16px; box-shadow: var(--shadow); }
.drawer.right { margin-left: auto; }
.drawer nav a { display: block; padding: 14px 4px; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.modal { background: var(--sheet); margin: auto; width: min(94vw, 640px); max-height: 92vh; overflow-y: auto; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: relative; }
.modal.wide { width: min(96vw, 980px); }
@media (max-width: 600px) { .modal, .modal.wide { width: 100%; max-height: 94vh; margin: auto 0 0; border-radius: var(--radius) var(--radius) 0 0; } }
.modal-close { position: absolute; top: 10px; right: 10px; }

/* hero and sections */
.hero { text-align: center; padding: 48px 16px 40px; background: var(--bg-2); }
.hero p.lead { font-size: clamp(19px, 3.6vw, 26px); color: var(--ink); margin-bottom: 22px; }
.hero .row { justify-content: center; }
.hero .btn-light { background: var(--bg); }
.summary .btn-light { background: var(--bg); border-color: var(--line); }
.section { padding-block: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .cat-tiles { grid-template-columns: repeat(4, 1fr); } }
.cat-tile { background: var(--bg-2); border-radius: var(--radius); padding: 18px; color: var(--ink); display: flex; flex-direction: column; gap: 10px; min-height: 150px; text-decoration: none !important; transition: transform .15s; }
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile svg { width: 72px; height: 48px; margin-top: auto; }
.trust { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.why-ico { font-size: 30px; display: inline-block; margin-bottom: 8px; }
.lead-why { font-size: clamp(17px, 2.6vw, 21px); margin: -4px 0 20px; }
.trust .card { background: var(--bg-2); border-radius: var(--radius); padding: 24px; }
.site-footer { background: var(--bg-2); color: var(--ink-2); font-size: 13px; padding: 28px 0 40px; margin-top: 40px; border-top: 1px solid var(--line-2); }
.site-footer a { color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }

/* product grid and cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--bg-3); color: var(--ink); overflow: hidden; text-decoration: none !important; -webkit-touch-callout: none; user-select: none; transition: box-shadow .2s; }
.pcard:hover { box-shadow: var(--shadow); }
.pcard .pimg { aspect-ratio: 1 / 1; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: cover; }
.pcard .pimg svg { width: 78%; height: auto; }
.pcard .pbody { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.pcard .brand { font-size: 10.5px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; }
.pcard .pname { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.15; }
.price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-top: 4px; }
.price b { font-size: 15.5px; font-weight: 600; letter-spacing: .01em; }
.price s { color: var(--ink-3); font-size: 13px; }
.price .off { color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.pcard .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 70%; }
.pcard .wish { position: absolute; top: 6px; right: 6px; background: rgba(255,252,247,.88); }
.wish[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); }
.skeleton { background: linear-gradient(90deg, var(--bg-2) 25%, #f8f2e9 37%, var(--bg-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { aspect-ratio: 3 / 4; }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-2); }
.empty h3 { color: var(--ink); }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 44%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.hscroll > * { scroll-snap-align: start; }
@media (min-width: 760px) { .hscroll { grid-auto-columns: minmax(200px, 23%); } }

/* shop layout and filters */
.shop { display: grid; gap: 20px; grid-template-columns: 1fr; padding-top: 20px; }
@media (min-width: 900px) { .shop { grid-template-columns: 250px 1fr; } .filters-toggle { display: none !important; } .filters-panel { display: block !important; position: static !important; } }
.filters-panel { display: none; }
.filters-panel h4 { font-size: 14px; margin: 18px 0 8px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .select { width: auto; min-height: 40px; padding: 6px 12px; border-radius: var(--r-ctl); font-size: 14px; }
.search-box { position: relative; flex: 1 1 220px; }
.search-box .input { padding-left: 40px; border-radius: var(--r-ctl); min-height: 42px; background: var(--bg-2); border-color: transparent; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; min-width: 48px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--bg); cursor: pointer; font-size: 15px; }
.chip[aria-pressed="true"], .chip.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.chip:disabled { color: var(--ink-3); background: var(--bg-2); text-decoration: line-through; cursor: not-allowed; border-style: dashed; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(34,26,22,.16); cursor: pointer; padding: 0; position: relative; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }

/* product page */
.pdp { display: grid; gap: 24px; padding: 20px 0 10px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.15fr 1fr; gap: 48px; } }
@media (min-width: 600px) and (max-width: 899px) and (orientation: landscape) { .pdp { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; } }
@media (orientation: landscape) and (max-height: 540px) { .gallery > * { max-height: calc(100svh - var(--header) - 48px); } .pdp > :first-child { position: sticky; top: calc(var(--header) + 8px); } }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: var(--bg-2); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { scroll-snap-align: center; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.gallery svg { width: 70%; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.dots button.on { background: var(--ink); }
.thumbs { display: none; gap: 10px; margin-top: 12px; }
@media (min-width: 900px) { .thumbs { display: flex; } }
.thumbs button { width: 64px; height: 64px; border-radius: var(--radius-s); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg-2); cursor: pointer; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; cursor: pointer; border-radius: 50%; }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.sticky-buy { position: sticky; bottom: 0; z-index: 5; background: var(--bg); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); box-shadow: 0 -10px 24px -18px rgba(60,38,24,.3); margin-top: 16px; }
@media (min-width: 900px) { .sticky-buy { position: static; border: 0; padding: 0; background: none; box-shadow: none; } }

/* bag and checkout */
.two-col { display: grid; gap: 24px; padding-top: 20px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 380px; align-items: start; } .summary { position: sticky; top: calc(var(--header) + 16px); } }
.line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.line .limg { width: 84px; height: 84px; border-radius: var(--radius-s); overflow: hidden; background: var(--bg-2); display: grid; place-items: center; }
.line .limg img { width: 100%; height: 100%; object-fit: cover; }
.line .limg svg { width: 80%; }
/* cart drawer (the cart icon) and the free delivery bar */
.bag-drawer { display: flex; flex-direction: column; width: min(92vw, 420px); padding: 0; }
.bd-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--line-2); }
.bd-head h3 { margin: 0; font-size: 26px; font-weight: 500; }
#bd-body { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0 20px; }
#bd-body > .free-ship { margin: 14px 0 4px; }
.bd-lines { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.bd-line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.bd-line .limg { width: 72px; height: 72px; border-radius: var(--radius-s); overflow: hidden; background: var(--bg-2); display: grid; place-items: center; }
.bd-line .limg img { width: 100%; height: 100%; object-fit: cover; }
.bd-line .limg svg { width: 80%; }
.bd-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.qty-s button { width: 32px; height: 32px; font-size: 17px; }
.qty-s span { min-width: 22px; font-size: 14px; }
.bd-foot { display: grid; gap: 8px; padding: 14px 0 calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); }
.bd-foot p { margin: -4px 0 4px; }
.bd-empty { display: grid; justify-items: center; gap: 6px; padding: 56px 0; text-align: center; }
.bd-empty .serif-l { margin: 0; font-family: var(--serif); font-size: 26px; }
.free-ship { margin: 10px 0 6px; }
.free-ship p { margin: 0 0 7px; color: var(--ink-2); }
.free-ship.done p { color: var(--accent); }
.free-bar { position: relative; height: 3px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.free-bar i { position: absolute; inset: 0; transform-origin: 0 50%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #8b2534); transition: transform .9s cubic-bezier(.16,1,.3,1); }
.free-ship.done .free-bar i { background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); }
.summary { background: var(--bg-2); border-radius: var(--radius); padding: 20px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; margin-bottom: 10px; background: var(--bg); }
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ink); }
.coupon-chip { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--gold); border-radius: var(--radius-s); margin-top: 8px; background: var(--bg); }
.coupon-chip code { font-weight: 700; letter-spacing: .04em; }

/* account */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-block: 4px 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; padding: 8px 16px; border-radius: var(--r-ctl); background: var(--bg-2); color: var(--ink); font-size: 14px; font-weight: 500; }
.tabs a.on { background: var(--ink); color: var(--on-ink); }
.tabs a:hover { text-decoration: none; }
.panel { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.panel h3 { margin-bottom: 12px; }
.order-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--radius-s); color: var(--ink); margin-bottom: 10px; }
.order-card:hover { text-decoration: none; background: var(--bg-3); }
.order-card .limg { width: 64px; height: 64px; border-radius: var(--radius-s); overflow: hidden; background: var(--bg-2); display: grid; place-items: center; }
.order-card .limg img { width: 100%; height: 100%; object-fit: cover; }
.order-card .limg svg { width: 80%; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 16px 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); border: 2px solid var(--bg); }
.timeline li.done::before { background: var(--ok); }
.timeline li.bad::before { background: var(--err); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0 16px; }
.steps div { height: 6px; border-radius: 3px; background: var(--line-2); }
.steps div.on { background: var(--ok); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger td, .ledger th { padding: 10px 6px; border-bottom: 1px solid var(--line-2); text-align: left; }
.plus { color: var(--ok); font-weight: 600; } .minus { color: var(--err); font-weight: 600; }
.auth-box { max-width: 440px; margin: 32px auto; padding: 0 4px; }
.coin-hero { background: linear-gradient(135deg, #6d1f2b, #3d0f17); color: var(--on-ink); border-radius: var(--radius); padding: 22px; }
.coin-hero .big { font-family: var(--serif); font-size: 46px; font-weight: 600; letter-spacing: -.01em; }

/* tables (admin) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--bg); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-weight: 600; color: var(--ink-2); background: var(--bg-3); position: sticky; top: 0; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover td { background: var(--bg-3); }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
.thumb-s { width: 44px; height: 44px; border-radius: var(--radius-s); overflow: hidden; background: var(--bg-2); display: grid; place-items: center; }
.thumb-s img { width: 100%; height: 100%; object-fit: cover; }
.thumb-s svg { width: 85%; }

/* admin layout */
.admin body, body.admin { background: var(--bg-2); }
.admin-top { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-ink); }
.admin-top .wrap { height: 52px; display: flex; align-items: center; gap: 10px; }
.admin-top .logo { color: var(--on-ink); font-size: 21px; letter-spacing: .14em; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--bg); border-radius: var(--radius-s); padding: 16px; border: 1px solid var(--line-2); }
.kpi .v { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; }
.kpi .l { font-size: 13px; color: var(--ink-2); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 10px; }
.bars div { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars-labels { display: flex; gap: 4px; font-size: 10px; color: var(--ink-3); }
.bars-labels span { flex: 1; text-align: center; overflow: hidden; }
.admin-main { padding-block: 18px 60px; }
.filters-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filters-bar .input, .filters-bar .select { width: auto; min-height: 40px; padding: 7px 12px; font-size: 15px; }
.filters-bar .input.grow { flex: 1 1 200px; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.img-tile { border: 1px solid var(--line-2); border-radius: var(--radius-s); overflow: hidden; background: var(--bg); }
.img-tile .ph { aspect-ratio: 1 / 1; background: var(--bg-2); display: grid; place-items: center; }
.img-tile .ph img { width: 100%; height: 100%; object-fit: cover; }
.img-tile .meta { padding: 8px; font-size: 12px; display: grid; gap: 6px; }
.progress { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.progress div { height: 100%; background: var(--accent); width: 0; transition: width .15s; }
.dropzone { display: block; margin-bottom: 10px; border: 2px dashed var(--line); border-radius: var(--radius-s); padding: 22px; text-align: center; background: var(--bg-3); cursor: pointer; }
.dropzone.over { border-color: var(--accent); background: var(--tint); }
.size-row, .color-row { display: grid; gap: 8px; align-items: center; margin-bottom: 8px; }
.size-row { grid-template-columns: 1fr 1fr 44px; }
.color-row { grid-template-columns: 52px 1fr 1fr 44px; }
.color-row input[type="color"] { width: 48px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 2px; background: var(--bg); }
@media print { .site-header, .marquee, .site-footer, .admin-top, .admin-side, .admin-bottom { display: none; } }


/* =====================================================================
   Surfaces: paper-white panels with hairline borders and soft warm shadows,
   over an ivory page lit by a little still, warm daylight.
   ===================================================================== */
:root {
  /* motion: one calm deceleration curve everywhere (no bounce or overshoot) */
  --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.22,1,.36,1); --dur: .3s;
  /* the page */
  --base-1: #f8f4ed; --base-2: #f1e9dc;
  --l1: rgba(228,206,168,.5); --l2: rgba(196,128,128,.14); --l3: rgba(255,255,255,.8);
  /* surfaces */
  --glass: var(--bg); --glass-strong: #fffdf9; --glass-soft: rgba(109,31,43,.035); --glass-line: var(--line-2); --glass-edge: rgba(34,26,22,.06);
  --glass-shadow: 0 1px 0 rgba(34,26,22,.02), 0 16px 36px -26px rgba(60,38,24,.34);
  --field: #fffdf9; --field-focus: #fff; --bar: rgba(249,246,240,.97); --sheet: #fffaf3;
  --tile: var(--bg-2); --sk: #efe7da; --sk-2: #f8f2e9;
  --title: linear-gradient(180deg, #2b201b 45%, #6d1f2b 150%); --marquee-bg: #5e1a25;
  --blur: saturate(140%) blur(18px);
}
html { background: var(--base-1); }
body { background: transparent; position: relative; min-height: 100vh; }
body.admin { background: transparent; }

/* ---- background light: still, warm daylight (nothing behind the page moves, so it never redraws) */
/* Every moving layer below animates only transform or opacity, which the graphics chip plays by itself. */
.bg-light { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; pointer-events: none; overflow: hidden; contain: strict; }
.bg-light { z-index: -2; background: radial-gradient(64vmax 64vmax at 6% 0%, var(--l1), transparent 70%), radial-gradient(58vmax 58vmax at 100% 10%, var(--l2), transparent 70%),
  radial-gradient(64vmax 64vmax at 92% 100%, var(--l3), transparent 70%), linear-gradient(160deg, var(--base-1) 0%, var(--base-2) 100%); }

/* one-off celebrations (sparks and confetti, moved by fx.js with the Web Animations API) */
.fx-pop { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.fx-pop i, .fx-pop b { position: absolute; display: block; will-change: transform, opacity; }
.fx-pop i { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: radial-gradient(closest-side, #fff, var(--c) 55%, transparent); }
.fx-pop b { width: 9px; height: 5px; margin: -2px 0 0 -4px; border-radius: 1px; background: var(--c); }
/* ---- glass surfaces */
.glass, .pcard, .panel, .summary, .cat-tile, .trust .card, .kpi, .table-wrap, .radio-card, .coupon-chip, .order-card, .img-tile, .site-footer {
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
.summary { background: var(--glass-strong); }
.site-footer { border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.pcard, .cat-tile, .trust .card, .btn, .cart-link, .fest-badge { position: relative; isolation: isolate; }
.pcard > *, .cat-tile > * { position: relative; z-index: 3; }
.pcard > .tags, .pcard > .wish { position: absolute; }
/* No live blur behind cards: the background is already soft, and re-blurring it behind every card on
   each frame of the moving light was the main cost on computers. Only the header and dialogs blur. */

/* ---- buttons: flat maroon or ink, square-cut, with a quiet press */
.btn { overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s, opacity .15s; }
.btn:not(.btn-light):not(.btn-ghost):not(.btn-outline):not(.btn-dark):not(.btn-danger) { background: var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.btn:not(.btn-light):not(.btn-ghost):not(.btn-outline):not(.btn-dark):not(.btn-danger):hover:not(:disabled) { background: var(--accent-deep); }
.btn:active:not(:disabled), .icon-btn:active, .chip:active, .cart-link:active, .cat-tile:active { transform: scale(.97); transition-duration: .1s; }
.btn-light, .hero .btn-light { background: var(--bg); border: 1px solid var(--line); box-shadow: none; color: var(--ink); }
.btn-light:hover, .summary .btn-light:hover { background: var(--bg); border-color: var(--ink); }
.summary .btn-light { background: var(--field); border-color: var(--line); }
.icon-btn { transition: transform .25s var(--ease), background .2s; }
.icon-btn:hover { background: var(--glass-soft); }

/* ---- header, banner */
/* a solid ivory bar: no live blur behind it (re-blurring the page on every frame was the main cost on computers) */
.site-header { background: var(--bar); border-bottom: 1px solid var(--line-2); transition: box-shadow .4s var(--ease); }
.scrolled .site-header { box-shadow: 0 12px 30px -24px rgba(60,38,24,.45); }
/* the bag: an outline bag with the count on a maroon seal (it catches products added to it, see fx.js) */
.cart-link { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; padding: 6px 8px 6px 10px; border-radius: var(--r-ctl); color: var(--ink); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transition: transform .25s var(--ease); }
.cart-link:hover { text-decoration: none; }
.cart-link .bag-ico { display: block; width: 22px; height: 22px; transform-origin: 50% 90%; }
.cart-link .bag-num { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--on-ink);
  font-size: 11px; letter-spacing: 0; line-height: 1; overflow: hidden; transition: background .3s, color .3s; }
.bag-num.zero { background: transparent !important; color: var(--ink-2) !important; box-shadow: inset 0 0 0 1px var(--line); }
.bag-num > span { display: block; }
@media (max-width: 559px) { .cart-link .bag-word { display: none; } .cart-link { padding-inline: 6px; } }
.marquee { background: var(--marquee-bg); }

/* ---- hero: animated headline */
.hero { background: transparent; padding: 56px 16px 8px; }
.hero > * { position: relative; }
.hero h1 { margin-bottom: .3em; }
.hero h1 .w { display: inline-block; background: var(--title); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em;
  animation: rise .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
.hero p.lead { animation: rise .8s var(--ease) .25s backwards; }
.hero .row { animation: rise .8s var(--ease) .35s backwards; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
.fest-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 16px; border-radius: var(--r-ctl); font-size: 13.5px; font-weight: 500;
  color: var(--ink); background: var(--bg); border: 1px solid var(--gold-2); text-decoration: none !important; overflow: hidden;
  animation: rise .8s var(--ease) backwards; max-width: 100%; }
.fest-badge .e { font-size: 18px; }
@media (max-width: 599px) { .fest-badge { flex-wrap: wrap; justify-content: center; text-align: center; gap: 2px 8px; padding: 10px 18px; border-radius: var(--radius); font-size: 13.5px; } .fest-badge .go { flex-basis: 100%; } }
.fest-badge .go { color: var(--accent); font-weight: 600; white-space: nowrap; }
.fest-badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(217,196,156,.4) 50%, transparent 65%); transform: translateX(-100%); animation: sheen 6s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes sheen { 30%, 100% { transform: translateX(100%); } }

/* ---- sections and cards */
.cat-tile { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cat-tile:hover { text-decoration: none; }
.pcard { border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pcard .pimg { background: var(--tile); }
.pcard .pimg img { animation: img-in .5s var(--ease) backwards; transition: transform .5s var(--ease); }
.pcard .pimg svg { transition: transform .5s var(--ease); }
@media (hover: hover) {
  .cat-tile:hover, .pcard:hover { transform: translate3d(0, -3px, 0); }
  .pcard:hover { box-shadow: 0 26px 48px -30px rgba(60,38,24,.45); }
  .pcard:hover .pimg img, .pcard:hover .pimg svg { transform: scale(1.04); }
}
@keyframes img-in { from { opacity: 0; } }
.pcard .wish, .icon-btn.wish { background: var(--glass-strong); }
.wish[aria-pressed="true"] svg { animation: heart .35s var(--ease); }
@keyframes heart { 50% { transform: scale(1.25); } }

/* scroll reveal (added by fx.js; never hides content when scripts or motion are off) */
.rv { opacity: 0; translate: 0 18px; transition: opacity .55s var(--ease) var(--d, 0ms), translate .65s var(--ease) var(--d, 0ms); }
.rv.in { opacity: 1; translate: none; }
.ws .wm { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.ws .wi { display: inline-block; transform: translate3d(0, 108%, 0); transition: transform .9s cubic-bezier(.16,1,.3,1) calc(var(--wd, 0ms) + 80ms); }
.ws.in .wi { transform: none; }

/* ---- inputs and chips */
.input, .select, textarea.input { background: var(--field); border-color: var(--line); transition: border-color .2s, box-shadow .3s var(--ease), background .2s; }
.input:focus, .select:focus { background: var(--field-focus); }
.search-box .input { background: var(--field); border: 1px solid var(--line); box-shadow: none; }
.chip { background: var(--field); border-color: var(--line); transition: transform .2s var(--ease), border-color .2s, background .2s; }
.chip:disabled { background: var(--glass-soft); }
.qty { background: var(--field); border-color: var(--line); }
.tabs a { background: var(--bg); border: 1px solid var(--line-2); transition: background .2s, color .2s, transform .2s var(--ease); }
.tabs a.on { background: var(--ink); border-color: var(--ink); }

/* ---- product page, bag, account */
.gallery { background: var(--tile); border: 1px solid var(--line-2); }
.thumbs button { background: var(--tile); }
.sticky-buy { background: var(--bar); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-top: 1px solid var(--line-2); }
@media (min-width: 900px) { .sticky-buy { backdrop-filter: none; -webkit-backdrop-filter: none; background: none; } }
.line { border-bottom-color: var(--line-2); }
.line .limg, .order-card .limg, .thumb-s { background: var(--tile); }
.radio-card { transition: border-color .2s, box-shadow .2s; }

/* ---- dialogs and drawers */
.overlay { background: rgba(34,22,18,.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal, .drawer { background: var(--sheet); border: 1px solid var(--line-2); box-shadow: 0 40px 90px -40px rgba(40,24,16,.5); }
.modal { animation: pop-in .3s var(--ease); }
.drawer { animation: slide-in .32s var(--ease); }
.drawer.right { animation-name: slide-in-r; }
@keyframes pop-in { from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.98); } }
@media (max-width: 600px) { .modal { animation-name: sheet-up; } }
@keyframes sheet-up { from { transform: translate3d(0, 40px, 0); opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-100%); } }
@keyframes slide-in-r { from { transform: translateX(100%); } }
.toast { animation: toast-in .3s var(--ease); }
@keyframes toast-in { from { transform: translate3d(0, 12px, 0); opacity: 0; } }
.skeleton { background: linear-gradient(90deg, var(--sk) 25%, var(--sk-2) 37%, var(--sk) 63%); background-size: 400% 100%; }

/* ---- admin */
table.data th { background: var(--bg-3); }
table.data tr.click:hover td { background: var(--bg-3); }
.dropzone { background: var(--glass-soft); border-color: rgba(34,26,22,.18); }

/* ---- tap ripples */
.cat-tile, .chip, .tabs a, .trust .card, .icon-btn { overflow: hidden; }
.chip, .tabs a { position: relative; flex-shrink: 0; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; z-index: 4; background: radial-gradient(closest-side, color-mix(in srgb, currentColor 22%, transparent), color-mix(in srgb, currentColor 8%, transparent) 60%, transparent);
  transform: scale(0); animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.pcard:active { transform: scale(.98); transition-duration: .12s; }

/* ---- social media buttons, floating WhatsApp chat */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px; }
.social-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); background: var(--bg); border: 1px solid var(--line); }
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { text-decoration: none; transform: translateY(-2px); }
.wa-chat { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-ink); box-shadow: 0 14px 30px -12px rgba(60,20,25,.6); transition: transform .25s var(--ease); }
.wa-chat svg { width: 30px; height: 30px; }
.wa-chat:hover { transform: scale(1.08); text-decoration: none; }
body:has(.sticky-buy) .wa-chat { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media print { .wa-chat { display: none; } }

/* ---- admin: delivery partners, orders-to-ship count */
.tab-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--accent); color: var(--on-ink); font-size: 12px; line-height: 20px; text-align: center; }
.couriers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.couriers .panel { margin: 0; }
.courier.off { opacity: .72; }
/* admin: the shoe wheel list */
.wheel-list { display: grid; gap: 10px; }
.wheel-row { display: grid; grid-template-columns: 28px 84px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 0; padding: 10px 14px; }
.wheel-row.off { opacity: .6; }
.wheel-pos { font-family: var(--serif); font-size: 20px; color: var(--ink-2); }
.wheel-pic { width: 84px; height: 64px; display: grid; place-items: center; border-radius: var(--radius-s); background: var(--bg-2); overflow: hidden; }
.wheel-pic.cut { background: repeating-conic-gradient(#ece4d8 0 25%, #fffdf9 0 50%) 0 0 / 14px 14px; }
.wheel-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wheel-txt { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.wheel-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wheel-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.wheel-up { cursor: pointer; }
@media (max-width: 760px) {
  .wheel-row { grid-template-columns: 24px 72px minmax(0, 1fr); }
  .wheel-act { grid-column: 1 / -1; justify-content: flex-start; }
}
.courier .contact-row { margin-top: 10px; }

/* ---- refinements: tidy rows, tiles and bars */
/* Home rows never end with a half-empty line: cards that would start an incomplete last row are left out. */
@media (max-width: 759px) { .grid.trim > :nth-child(odd):last-child:not(:first-child) { display: none; } }
@media (min-width: 760px) and (max-width: 1099px) {
  .grid.trim > :nth-child(3n+4):last-child, .grid.trim > :nth-child(3n+4):nth-last-child(2), .grid.trim > :nth-child(3n+4):nth-last-child(2) ~ * { display: none; } }
@media (min-width: 1100px) {
  .grid.g4.trim > :nth-child(4n+5):last-child, .grid.g4.trim > :nth-child(4n+5):nth-last-child(2), .grid.g4.trim > :nth-child(4n+5):nth-last-child(2) ~ *,
  .grid.g4.trim > :nth-child(4n+5):nth-last-child(3), .grid.g4.trim > :nth-child(4n+5):nth-last-child(3) ~ * { display: none; } }
/* Sideways rows use the same card width as the grids (with a peek of the next card on phones). */
.hscroll { grid-auto-columns: calc((100% - 14px) / 2.15); scrollbar-width: thin; }
@media (min-width: 760px) { .hscroll { gap: 20px; grid-auto-columns: calc((100% - 40px) / 3); } }
@media (min-width: 1100px) { .hscroll { grid-auto-columns: calc((100% - 60px) / 4); } }
@media (hover: hover) { .hscroll { scroll-snap-type: x proximity; } }
/* Product cards: names up to two lines, prices lined up along the bottom of each row. */
.pcard .pbody { flex: 1; }
.pcard .pname { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .price { margin-top: auto; padding-top: 4px; }
/* Category tiles: name and link on top, a large picture tucked into the corner. */
.cat-tile { min-height: 140px; padding: 18px; justify-content: flex-start; gap: 4px; }
.cat-tile b { font-size: 19px; letter-spacing: -.01em; }
.cat-tile svg { position: absolute; right: 2px; bottom: 0; width: 46%; max-width: 116px; height: auto; margin: 0; z-index: 0; opacity: .85; transition: transform .4s var(--ease); }
@media (hover: hover) { .cat-tile:hover svg { transform: translate3d(-4px, -3px, 0); } }
/* Why Kadam: icons sit in a soft glass square. */
.why-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 24px; margin-bottom: 14px; background: var(--tint); border: 1px solid var(--gold-2); }
.why-ico svg { width: 24px; height: 24px; color: var(--accent); }
/* Phone buy bar: solid, so the page does not show through it. */
@media (max-width: 899px) { .sticky-buy { background: rgba(248,244,237,.98); } }

/* ---- home: brand links, search with suggestions, brand row */
/* headline brand names: square-cut labels in the display serif */
.brand-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 14px; }
.lead-text { display: block; }
.brand-link { position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 42px; padding: 6px 18px; border-radius: var(--r-ctl); cursor: pointer;
  font: inherit; font-family: var(--serif); font-size: clamp(18px, 2.7vw, 21px); font-weight: 600; letter-spacing: .01em; color: var(--ink); text-decoration: none !important;
  background: var(--bg); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .2s, color .2s; }
.brand-link.more { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .brand-link:hover { border-color: var(--accent); color: var(--accent); } }
.brand-link:active { transform: scale(.96); }
@media (max-width: 480px) { .brand-pills { gap: 7px; } .brand-link { min-height: 38px; padding: 6px 13px; font-size: 15.5px; } }
.hero-search { position: relative; display: flex; gap: 8px; max-width: 580px; margin: 22px auto 0; text-align: left; animation: rise .8s var(--ease) .55s backwards; }
.hero-search .search-box { flex: 1 1 auto; }
.hero-search .search-box .input { min-height: 52px; font-size: 17px; }
.hero-search .btn { min-height: 52px; padding-inline: 22px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; max-height: min(60vh, 460px); overflow-y: auto; padding: 6px;
  border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line-2); box-shadow: 0 28px 60px -28px rgba(60,38,24,.45); }
.sg { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none !important; }
.sg:hover, .sg:focus-visible { background: var(--tint); outline: none; }
.sg small { display: block; color: var(--ink-2); font-size: 12.5px; }
.sg-ico, .sg-img { width: 40px; height: 40px; flex: none; border-radius: var(--radius-s); display: grid; place-items: center; overflow: hidden; background: var(--glass-soft); }
.sg-ico svg { width: 18px; height: 18px; color: var(--ink-2); }
.sg-img { background: var(--tile); }
.sg-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-img svg { width: 86%; }
.sg-all { justify-content: center; color: var(--accent); font-weight: 600; font-size: 14px; border-top: 1px solid var(--line-2); border-radius: 0 0 var(--radius-s) var(--radius-s); margin-top: 4px; }
.sg-none { margin: 0; padding: 14px; color: var(--ink-2); font-size: 14px; }
.mono { display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: var(--on-ink); background: linear-gradient(150deg, #7d2834, #4a121b); }
.brand-row { display: grid; gap: 12px; grid-auto-flow: column; grid-auto-columns: minmax(148px, 42%); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
.brand-row > * { scroll-snap-align: start; }
@media (min-width: 760px) { .brand-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); overflow: visible; } }
.brand-tile { position: relative; isolation: isolate; display: grid; gap: 4px; justify-items: start; padding: 16px; border-radius: var(--radius); color: var(--ink); text-decoration: none !important;
  background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--glass-shadow); transition: transform .3s var(--ease), border-color .2s; }
.brand-tile .mono { width: 44px; height: 44px; border-radius: 50%; font-size: 22px; margin-bottom: 8px; }
.brand-tile b { font-family: var(--serif); font-size: 21px; font-weight: 600; }
@media (hover: hover) { .brand-tile:hover { transform: translate3d(0, -3px, 0); border-color: var(--gold-2); } }
.brand-tile:active { transform: scale(.97); }
#why, #brands { scroll-margin-top: calc(var(--header) + 16px); }
/* shared suggestion lists (search boxes, city box) */
.has-suggest { position: relative; }
.search-wrap { flex: 1 1 220px; }
.search-wrap .search-box { display: block; }
.has-suggest .suggest { z-index: 40; }
.field.has-suggest .suggest { top: calc(100% - 6px); }
button.sg { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.menu-search { margin: 6px 0 10px; }
.menu-search .search-box .input { padding-left: 40px; }

/* ---- welcome animation: "KADAM" rises out of a mask letter by letter, a gold hairline draws under it,
   then two ivory curtains part to show the store. Shown once per visit (boot.js adds .intro to <html>);
   only transform and opacity are animated. */
#intro { display: none; }
.intro #intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; text-align: center; cursor: pointer; overflow: hidden;
  animation: intro-end .01s linear 2.75s forwards; }
#intro .cur { position: absolute; top: 0; bottom: 0; width: 50.5%; background: radial-gradient(120% 70% at 100% 46%, #fffaf2 0%, #f6efe4 60%, #ece2d3 100%);
  animation: cur-l .9s cubic-bezier(.76,0,.24,1) 1.85s forwards; will-change: transform; }
#intro .cur.l { left: 0; }
#intro .cur.r { right: 0; transform: scaleX(-1); animation-name: cur-r; }
@keyframes cur-l { to { transform: translate3d(-101%, 0, 0); } }
@keyframes cur-r { from { transform: scaleX(-1); } to { transform: translate3d(101%, 0, 0) scaleX(-1); } }
.intro-c { position: relative; display: grid; justify-items: center; animation: intro-c .55s cubic-bezier(.4,0,.2,1) 1.7s forwards; }
@keyframes intro-c { to { opacity: 0; transform: translate3d(0, -14px, 0); } }
.intro-logo { display: flex; margin-right: -.16em; overflow: hidden; padding: .04em 0; font-family: var(--serif); font-size: clamp(64px, 18vw, 124px); font-weight: 600; letter-spacing: .16em; line-height: 1; }
.intro-logo span { display: inline-block; transform: translate3d(0, 105%, 0); background: linear-gradient(180deg, #2b201b 30%, #6d1f2b); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: letter .8s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(.15s + var(--n) * 70ms); }
@keyframes letter { to { transform: none; } }
.intro-line { display: block; width: min(240px, 52vw); height: 1px; margin: 14px 0 4px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-2) 50%, var(--gold) 80%, transparent);
  transform: scaleX(0); animation: line-in .9s cubic-bezier(.65,0,.35,1) .55s forwards; }
@keyframes line-in { to { transform: none; } }
.intro-tag { margin: 8px 0 0; color: var(--ink-2); font-size: clamp(11px, 2.6vw, 13px); font-weight: 500; letter-spacing: .32em; text-transform: uppercase; opacity: 0; animation: fade-up .6s ease 1.05s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes intro-end { to { visibility: hidden; } }
@keyframes intro-out { to { opacity: 0; transform: scale(1.04); visibility: hidden; } }
#intro.skip, #intro.skip .cur, #intro.skip .intro-c { animation: intro-out .22s ease forwards; }
/* while the welcome plays, the hero waits and then rises in after it */
.intro .hero h1 .w { animation-delay: calc(var(--i, 0) * 90ms + 2.15s); }
.intro .fest-badge { animation-delay: 2.1s; }
.intro .hero p.lead { animation-delay: 2.35s; }
.intro .hero .row { animation-delay: 2.45s; }
.intro .hero-search { animation-delay: 2.65s; }

/* ---- quick look pop-up (touch and hold a product) */
.pcard.pressing { transform: scale(.96); transition: transform .4s var(--ease); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent), var(--glass-shadow); }
.pcard img { -webkit-user-drag: none; -webkit-touch-callout: none; }
.modal.quick { width: min(96vw, 900px); padding: 18px; animation: quick-in .32s var(--ease); }
.modal.quick .modal-close { z-index: 5; background: var(--bg); border: 1px solid var(--line-2); }
@keyframes quick-in { from { opacity: 0; transform: scale(.92); } }
.q-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .q-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.q-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: var(--tile); scrollbar-width: none; max-height: 52vh; }
.q-gallery::-webkit-scrollbar { display: none; }
.q-gallery > * { scroll-snap-align: center; aspect-ratio: 1 / 1; display: grid; place-items: center; max-height: 52vh; }
.q-gallery img { width: 100%; height: 100%; object-fit: contain; }
.q-gallery svg { width: 72%; }
.q-brand { color: var(--accent); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .18em; }
.q-name { font-size: clamp(28px, 4.6vw, 38px); margin: 6px 0 4px; padding-right: 36px; }
.q-info .price b { font-size: 24px; }
.q-block { margin-top: 14px; }
.q-block .chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.q-left { font-style: normal; font-size: 10px; color: var(--warn); font-weight: 600; }
.q-buy { margin-top: 16px; flex-wrap: nowrap; }
.q-desc { margin: 14px 0 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.q-facts { list-style: none; padding: 12px 14px; margin: 14px 0 10px; border-radius: var(--radius-s); background: var(--bg-3); border: 1px solid var(--line-2); display: grid; gap: 4px; }
.q-facts li::before { content: '✦'; margin-right: 8px; color: var(--gold); font-size: 10px; vertical-align: 1px; }
.done-seal { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; color: var(--on-ink); font-size: 26px;
  background: radial-gradient(circle at 35% 30%, #8b2a38, #561722 70%); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--gold-2), 0 20px 40px -18px rgba(86,23,34,.6); }
.done-seal svg { width: 38px; height: 38px; }
.rev-ico { color: var(--star); }
.fb-ico { color: var(--accent); }

/* ---- store information pages */
.info-page { padding-top: 24px; max-width: 820px; }
.info-page h1 { font-size: clamp(28px, 5vw, 40px); }
.info-page .panel { padding: 22px; line-height: 1.6; }
.info-page h3 { margin-top: 18px; } .info-page h3:first-child { margin-top: 0; }
.info-list { padding-left: 20px; margin: 0 0 12px; display: grid; gap: 6px; }

/* =====================================================================
   Admin panel: a calm, solid work surface in the store's colours. No moving light behind it,
   paper panels with clear borders, and buttons that are easy to see and tap.
   ===================================================================== */
body.admin { --base-1: #f6f1e9; --base-2: #f6f1e9; }
body.admin .bg-light { background: var(--base-1); }
body.admin .panel, body.admin .kpi, body.admin .table-wrap, body.admin .img-tile, body.admin .glass, body.admin .radio-card {
  background: #fffdf9; border: 1px solid #e5dccf; box-shadow: 0 1px 2px rgba(60,38,24,.05); backdrop-filter: none; -webkit-backdrop-filter: none; }
body.admin .modal { background: #faf6f0; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: #e5dccf; }
body.admin .overlay { background: rgba(34,22,18,.5); backdrop-filter: none; -webkit-backdrop-filter: none; }
body.admin .btn::before, body.admin .btn::after, body.admin .cart-link::before { display: none; }
body.admin .btn { box-shadow: none !important; }
body.admin .btn:not(.btn-light):not(.btn-ghost):not(.btn-outline):not(.btn-dark):not(.btn-danger) { background: var(--accent); }
body.admin .btn:not(.btn-light):not(.btn-ghost):not(.btn-outline):not(.btn-dark):not(.btn-danger):hover { background: var(--accent-deep); }
body.admin .btn-light, body.admin .summary .btn-light { background: #fffdf9; color: var(--ink); border: 1.5px solid #cbbfae; }
body.admin .btn-light:hover { background: #f5efe6; border-color: #a8998a; }
body.admin .btn-outline { background: #fffdf9; border: 1.5px solid currentColor; }
body.admin .btn-outline:hover { background: var(--ink); color: var(--on-ink); }
body.admin .btn-ghost { color: var(--accent); font-weight: 600; }
body.admin .btn-danger { background: var(--err); }
body.admin .input, body.admin .select { background: #fffdf9; border-color: #cbbfae; }
body.admin .admin-top { background: var(--ink); }
body.admin .admin-top .btn-light { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); font-weight: 600; }
body.admin .admin-top .btn-ghost { color: #fff !important; }
body.admin .tabs a { background: #f3ede4; border: 1px solid #e5dccf; color: var(--ink); font-weight: 600; }
body.admin .tabs a.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
body.admin table.data th { background: #f8f3ec; color: #5e5048; }
body.admin table.data tr.click:hover td { background: #f7f0e6; }
body.admin .dropzone { background: #faf6f0; border-color: #cbbfae; }
/* layout: side menu on computers, bottom bar on phones and tablets */
.admin-layout { max-width: 1340px; margin: 0 auto; }
.admin-main { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); min-width: 0; }
.admin-side { display: none; }
.admin-side a, .more-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius-s); color: #3f332c; font-weight: 600; font-size: 14.5px; text-decoration: none !important; transition: background .15s, color .15s; }
.admin-side a svg, .more-link svg { width: 20px; height: 20px; flex: none; }
.admin-side a:hover { background: rgba(34,26,22,.05); }
.admin-side a.on { background: #fffdf9; color: var(--accent); box-shadow: 0 1px 2px rgba(60,38,24,.08), 0 0 0 1px #e5dccf; }
.side-group { display: grid; gap: 2px; margin-bottom: 18px; }
.side-title { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #968779; padding: 0 12px 4px; }
.admin-side .tab-count, .admin-bottom .tab-count { margin-left: auto; }
@media (min-width: 1000px) {
  .admin-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 28px; padding: 0 24px; }
  .admin-side { display: block; position: sticky; top: 52px; align-self: start; height: calc(100vh - 52px); overflow-y: auto; padding: 22px 0; }
  .admin-main { padding: 22px 0 60px; }
  .admin-bottom { display: none !important; }
  body.admin .admin-top .wrap { max-width: 1340px; padding: 0 24px 0 36px; }
}
.admin-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); background: #fffdf9; border-top: 1px solid #e5dccf;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px -12px rgba(60,38,24,.25); }
.admin-bottom a, .admin-bottom button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; border-radius: 12px;
  color: #6b5d55; font: inherit; font-size: 11px; font-weight: 600; text-decoration: none !important; cursor: pointer; }
.admin-bottom svg { width: 24px; height: 24px; }
.admin-bottom .on { color: var(--accent); }
.admin-bottom .on svg { stroke-width: 2.1; }
.admin-bottom .tab-count { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; min-width: 18px; line-height: 18px; font-size: 11px; }
.more-group { display: grid; gap: 2px; margin-top: 14px; }
.more-link { padding: 13px 12px; font-size: 16px; border-bottom: 1px solid #e9e1d5; border-radius: 0; }
.more-link span:nth-child(2) { flex: 1; }
@media (max-width: 999px) { body.admin #toasts { bottom: calc(86px + env(safe-area-inset-bottom)); } }
/* dashboard setup checklist (folds away; closed by default on phones) */
.tab-count[hidden] { display: none !important; }
.setup summary { list-style: none; cursor: pointer; display: grid; gap: 10px; }
.setup summary::-webkit-details-marker { display: none; }
.setup summary b { font-size: 17px; }
.setup summary b::after { content: " ▾"; color: #968779; font-size: 13px; }
.setup:not([open]) summary b::after { content: " ▸"; }
.setup .progress { display: block; }
.setup .progress span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.checklist .btn { white-space: nowrap; }
@media (max-width: 600px) { .checklist li { flex-wrap: wrap; align-items: flex-start; } .checklist li .grow { flex: 1 1 calc(100% - 40px); } .checklist li .btn { margin-left: 36px; } }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #efe8de; }
.checklist .tick { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid #cbbfae; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.checklist li.ok .tick { background: var(--ok); border-color: var(--ok); }
.checklist li.ok b { color: #6b5d55; font-weight: 500; }
.contact-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.row-go { display: none; }
/* phones: long tables become one card per row, each value labelled */
@media (max-width: 760px) {
  body.admin table.data.cards thead { display: none; }
  body.admin table.data.cards, body.admin table.data.cards tbody, body.admin table.data.cards tr, body.admin table.data.cards td { display: block; width: 100%; }
  body.admin table.data.cards tr { position: relative; padding: 12px 14px; border-bottom: 1px solid #e5dccf; }
  body.admin table.data.cards td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  body.admin table.data.cards td::before { content: attr(data-label); color: #6b5d55; font-weight: 600; font-size: 13px; text-align: left; flex: none; }
  body.admin table.data.cards td:first-of-type:not(.cell-thumb), body.admin table.data.cards td.cell-thumb + td { display: block; text-align: left; font-size: 16px; padding-bottom: 6px; }
  body.admin table.data.cards td:first-of-type:not(.cell-thumb)::before, body.admin table.data.cards td.cell-thumb + td::before { display: none; }
  body.admin table.data.cards td.cell-thumb { position: absolute; right: 14px; top: 12px; width: auto; padding: 0; }
  body.admin table.data.cards td.cell-thumb::before { display: none; }
  body.admin table.data.cards td.cell-thumb + td { padding-right: 56px; }
  body.admin .row-go { display: block; margin-top: 6px; color: var(--accent); font-weight: 600; font-size: 14px; }
  body.admin table.data.cards td:has(.row-go) { flex-wrap: wrap; }
}

/* ---- ratings, reviews and feedback (from real buyers only; lib/reviews.js) */
:root { --star: #b08a45; --star-off: rgba(34,26,22,.14); }
/* Five stars filled to the average: one gradient clipped to the star glyphs. */
.stars { display: inline-block; width: max-content; flex: none; line-height: 1; font-size: 14px; letter-spacing: 1px; white-space: nowrap; vertical-align: -1px;
  background: linear-gradient(90deg, var(--star) calc(var(--r, 0) * 20%), var(--star-off) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; line-height: 1.2; }
.rating b { font-weight: 600; }
.rating.none, .rating.none .muted { color: var(--ink-3); }
.pcard .rating { margin-top: 5px; font-size: 12px; white-space: nowrap; }
.pcard .rating .stars { font-size: 12px; }
.rating-link { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px; padding: 4px 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; }
.rating-link .rating { font-size: 14px; }
.rating-link .stars { font-size: 17px; }
.rating-link > .small { color: var(--accent-2); }
@media (hover: hover) { .rating-link:hover > .small { text-decoration: underline; } }
.q-rating { margin: 2px 0 6px; }
/* product page */
.reviews { scroll-margin-top: calc(var(--header) + 20px); }
.rev-empty { display: flex; gap: 14px; align-items: flex-start; }
.rev-empty p { margin: 0; }
.rev-ico { font-size: 24px; line-height: 1.2; }
.rev-summary { display: grid; gap: 20px 32px; align-items: center; }
@media (min-width: 760px) { .rev-summary { grid-template-columns: auto minmax(0, 1fr) auto; } }
.rev-score { display: grid; justify-items: start; gap: 6px; }
.rev-score b { font-family: var(--serif); font-size: 56px; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.rev-score .stars { font-size: 20px; }
.rev-bars { display: grid; gap: 6px; }
.rev-bar { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 8px; font-size: 13px; }
.rev-bar i { height: 8px; border-radius: 4px; background: var(--star-off); overflow: hidden; }
.rev-bar b { display: block; height: 100%; border-radius: inherit; background: var(--star); transform-origin: left; transform: scaleX(var(--w, 0)); }
.rev-bar span:last-child { text-align: right; }
.rev-facts { display: flex; gap: 24px; flex-wrap: wrap; }
.rev-facts div { display: grid; gap: 2px; }
.rev-facts b { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.rev-list { display: grid; gap: 14px; align-items: start; }
@media (min-width: 760px) { .rev-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review { margin: 0; }
.review .stars { font-size: 16px; }
.review p { margin: 10px 0 0; }
.rev-by { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; font-size: 14px; }
/* home testimonials */
.t-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.t-stat { display: grid; grid-template-columns: auto auto; column-gap: 14px; row-gap: 4px; align-items: center; justify-content: start; padding: 14px 20px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
.t-stat b { grid-row: span 2; font-family: var(--serif); font-size: 42px; font-weight: 600; line-height: 1; }
.t-stat b small { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.t-stat .stars { font-size: 16px; }
.t-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.t-card { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
.t-card .stars { font-size: 18px; }
.t-card blockquote { margin: 0; flex: 1; font-family: var(--serif); font-size: 20px; font-style: italic; line-height: 1.35; }
.t-card figcaption { display: grid; gap: 6px; font-size: 14px; }
/* one-tap answers: radio buttons shown as chips */
.feedback fieldset, .rate-item fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.feedback legend, .rate-item legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label, .star-pick label { position: relative; }
.pick input, .star-pick input { position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.pick span { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border-radius: var(--r-ctl);
  border: 1px solid var(--line); background: var(--field); color: var(--ink); font-size: 15px; cursor: pointer; user-select: none; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s; }
.pick span small { font-size: 12px; color: var(--ink-2); }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); font-weight: 600; }
.pick input:checked + span small { color: inherit; opacity: .85; }
.pick input:focus-visible + span, .star-pick input:focus-visible + span { outline: 2px solid rgba(109,31,43,.65); outline-offset: 3px; }
.pick label:active span { transform: scale(.96); }
@media (hover: hover) { .pick span:hover { border-color: var(--ink-3); } }
.pick.faces { gap: 6px; }
.pick.faces label { flex: 1 1 0; min-width: 56px; }
.pick.faces span { width: 100%; padding: 8px 2px; border-radius: var(--radius); font-size: 26px; line-height: 1.15; }
.pick.faces span small { margin-top: 3px; font-size: 11.5px; white-space: nowrap; }
.star-pick { display: flex; align-items: center; flex-wrap: wrap; }
.star-pick label { cursor: pointer; }
.star-pick label > span[aria-hidden] { display: block; padding: 0 3px; font-size: 40px; line-height: 1.1; color: var(--star-off); transition: color .15s, transform .3s var(--spring); }
.star-pick[data-v="1"] label:nth-of-type(-n+1) > span[aria-hidden], .star-pick[data-v="2"] label:nth-of-type(-n+2) > span[aria-hidden],
.star-pick[data-v="3"] label:nth-of-type(-n+3) > span[aria-hidden], .star-pick[data-v="4"] label:nth-of-type(-n+4) > span[aria-hidden],
.star-pick[data-v="5"] label > span[aria-hidden] { color: var(--star); }
.star-pick input:checked + span { transform: scale(1.18); }
.star-word { margin-left: 10px; }
/* thank-you page feedback and the rating page */
.feedback { max-width: 580px; margin: 30px auto 0; text-align: left; color: var(--ink); }
.feedback h2 { font-size: 24px; margin-bottom: 2px; }
.feedback.sent { text-align: center; }
.fb-ico { display: block; margin-bottom: 6px; font-size: 36px; }
.rate-page { max-width: 760px; padding-top: 20px; }
.rate-page h1 { font-size: clamp(28px, 5vw, 40px); }
.rate-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.rate-head .limg { flex: none; width: 64px; height: 64px; border-radius: var(--radius-s); overflow: hidden; background: var(--bg-2); display: grid; place-items: center; }
.rate-head .limg img { width: 100%; height: 100%; object-fit: cover; }
.rate-head .limg svg { width: 80%; }
/* admin */
.fb-bar { display: grid; grid-template-columns: minmax(80px, auto) 1fr 32px; gap: 10px; align-items: center; margin: 7px 0; font-size: 14px; }
.fb-bar i { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.fb-bar b { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.fb-bar span:last-child { text-align: right; }
.star-text { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
tr.dim > td { opacity: .5; }

/* =====================================================================
   KADAM showcase: shoe wheel, spotlight, story, clothing rack, product sheet
   (motion engines in showcase.js; every moving part animates transform or opacity)
   ===================================================================== */
.kicker { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.logo { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: .3em; line-height: 1; }
@media (max-width: 420px) { .logo { font-size: 23px; letter-spacing: .2em; } .site-header .icon-btn { width: 40px; } }
.btn-xl { min-height: 52px; padding: 12px 28px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.btn { transition: background .15s, opacity .15s, transform .2s var(--ease); }
.btn:active:not(:disabled) { transform: scale(.97); }

/* header: sliding underline and the Collections menu */
.main-nav { align-items: center; }
.main-nav a, .nav-link { position: relative; }
.main-nav > a::after, .nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
@media (hover: hover) { .main-nav > a:hover::after, .nav-link:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav-drop { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink); opacity: .85; cursor: pointer; }
.nav-link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.drop-panel { position: absolute; top: calc(100% + 16px); left: -14px; z-index: 60; display: grid; min-width: 230px; padding: 8px; border-radius: var(--radius);
  background: var(--sheet); border: 1px solid var(--line-2); box-shadow: 0 28px 60px -28px rgba(60,38,24,.45); letter-spacing: .04em; text-transform: none; font-size: 15px;
  opacity: 0; visibility: hidden; transform: translate3d(0, -6px, 0); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
.drop-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.drop-panel a { padding: 9px 12px; border-radius: var(--radius-s); opacity: 1; }
.drop-panel a:hover, .drop-panel a:focus-visible { background: var(--tint); color: var(--accent); }
.nav-drop.open .drop-panel, .nav-drop:focus-within .drop-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
.nav-drop.open .nav-link svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .nav-drop:hover .drop-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
  .nav-drop:hover .nav-link svg { transform: rotate(180deg); }
}

/* headline band under the wheel: the headline on the left, brands, links and search on the right */
.hero.hx { display: grid; gap: 22px 56px; max-width: 1240px; margin: 0 auto; padding: clamp(44px, 7vw, 88px) 16px clamp(8px, 2vw, 20px); text-align: left; }
@media (min-width: 960px) { .hero.hx { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; padding-inline: 24px; } }
.hx-copy, .hx-side { position: relative; min-width: 0; }
.hero.hx h1 { margin: 0; font-size: clamp(54px, 13.4vw, 118px); font-weight: 500; line-height: .9; letter-spacing: -.02em; }
.hero.hx h1 .w { display: block; width: fit-content; }
.hero.hx h1 .w:nth-child(2) { font-style: italic; padding-left: .5em; }
.hero.hx :is(h1 .w, p.lead, .row, .hero-search) { animation: none; }
.hero.hx p.lead { margin: 0 0 20px; font-size: clamp(18px, 2.3vw, 22px); }
.hx .lead-text { margin-bottom: 14px; color: var(--ink-2); }
.hx .brand-pills { justify-content: flex-start; margin-bottom: 0; }
.hero.hx .row { justify-content: flex-start; gap: 10px; }
.hx .hero-search { margin: 22px 0 0; max-width: none; }
@media (max-width: 420px) { .hx-cta .btn-xl { flex: 1 1 100%; } }

/* product photos in the moving scenes */
.u-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 30px 50px -30px rgba(60,38,24,.5); background: var(--tile); }
/* photos with the background removed: whole, floating, with a soft shadow like the drawings */
.u-cut img { display: block; width: 100%; height: auto; }
.spot-shoe.u-cut img, .sh-art.u-cut img { filter: drop-shadow(0 30px 26px rgba(60,38,24,.22)); }
img.cut { object-fit: contain !important; }
.pcard .pimg > img.cut, .thumbs img.cut, .gallery img.cut, .q-gallery img.cut { padding: 7%; box-sizing: border-box; }
.pcard .pimg img.alt.cut { background: var(--tile); } /* covers the main photo while it shows */

/* round arrow buttons (orbit, product sheet) */
.orb-btn { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s; }
.orb-btn svg { width: 20px; height: 20px; }
.orb-btn:active { transform: scale(.9); }
@media (hover: hover) { .orb-btn:hover { border-color: var(--accent); color: var(--accent); } }
.swatch.sm { width: 26px; height: 26px; }

/* spotlight: pinned while you scroll; --p goes from 0 to 1 */
.spot { --p: 0; position: relative; height: 330vh; }
.spot-pin { position: sticky; top: var(--header); height: calc(100vh - var(--header)); height: calc(100svh - var(--header)); overflow: hidden; display: flex; align-items: center; }
.spot-flip { position: absolute; inset: 0; background: var(--flip-bg); opacity: 0; transition: opacity .7s var(--ease); pointer-events: none; }
.spot.flip .spot-flip { opacity: 1; }
.spot.flip { --ink: var(--flip-ink); --ink-2: var(--flip-ink-2); --ink-3: var(--flip-ink-2); --on-ink: var(--flip-on-ink); --line: var(--flip-line); --glass-line: var(--flip-line); }
.spot-copy, .spot-title, .spot-steps { transition: color .5s; color: var(--ink); }
.spot-grid { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 4px; width: 100%; height: 100%; padding-top: 22px; padding-bottom: 18px; }
@media (min-width: 900px) { .spot-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: none; align-items: center; } }
.spot-title { margin: 0; font-size: clamp(42px, 9.4vw, 100px); font-weight: 500; line-height: .92; letter-spacing: -.02em; }
.mask { display: block; overflow: hidden; padding-bottom: .04em; }
.mask > span { display: block; transform: translate3d(0, calc((1 - var(--e, 1)) * 106%), 0); }
.spot-steps { position: relative; min-height: 150px; margin: 18px 0 0; padding: 0; list-style: none; }
.spot-steps li { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translate3d(0, 18px, 0); pointer-events: none; transition: opacity .45s var(--ease), transform .55s var(--ease); }
.spot[data-step="0"] [data-s="0"], .spot[data-step="1"] [data-s="1"], .spot[data-step="2"] [data-s="2"], .spot[data-step="3"] [data-s="3"] { opacity: 1; transform: none; pointer-events: auto; }
.spot-k { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.spot-steps b { display: block; font-family: var(--serif); font-size: clamp(26px, 3.6vw, 36px); font-weight: 600; letter-spacing: -.005em; }
.spot-steps .price b { display: inline; }
.spot-steps .btn { margin-top: 14px; }
.spot-cols { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 15px; }
.spot-cols span { display: inline-flex; align-items: center; gap: 6px; }
.spot-cols i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); }
.spot-stage { position: relative; display: grid; place-items: center; min-height: 0; height: 100%; perspective: 900px; }
.spot-shoe { width: min(88%, 640px); will-change: transform;
  transform: translate3d(0, calc((1 - var(--p)) * 36px), 0) rotateY(calc(-26deg + var(--p) * 40deg)) rotate(calc(-16deg + var(--p) * 22deg)) scale(calc(.6 + var(--p) * .5)); }
.spot-shoe svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 34px 30px rgba(40,20,15,.3)); }
.spot-shoe.u-photo { width: min(70%, 460px); }
.spot-shadow { position: absolute; bottom: 12%; width: 48%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40,20,15,.32), transparent); transform: scaleX(calc(.55 + var(--p) * .55)); }
.spot-dots { position: absolute; right: 14px; top: 50%; display: grid; gap: 9px; translate: 0 -50%; }
.spot-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: .5; transition: transform .3s var(--ease), opacity .3s, background .3s; }
.spot[data-step="0"] .spot-dots i:nth-child(1), .spot[data-step="1"] .spot-dots i:nth-child(2), .spot[data-step="2"] .spot-dots i:nth-child(3), .spot[data-step="3"] .spot-dots i:nth-child(4) { opacity: 1; background: var(--ink); transform: scale(1.5); }
.spot.static { height: auto; }
.spot.static .spot-pin { position: relative; top: 0; height: auto; padding: 40px 0; }
.spot.static .spot-grid { grid-template-rows: none; }
.spot.static .mask > span, .spot.static .spot-shoe { transform: none; }
.spot.static .spot-steps { min-height: 0; }
.spot.static .spot-steps li { position: static; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 16px; }
.spot.static .spot-dots, .spot.static .spot-shadow { display: none; }
.spot.static.live .spot-shoe { transform: translate3d(0, calc((.5 - var(--p)) * 70px), 0) rotate(calc((var(--p) - .5) * -10deg)); }
.spot.static .spot-copy .btn { margin-top: 4px; }
@media (max-width: 899px) { /* phones: the details side by side, so the whole pair fits one screen */
  .spot.static .spot-pin { padding: 24px 0; }
  .spot.static .spot-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 12px; }
  .spot.static .spot-steps li { margin: 0; }
  .spot.static .spot-steps li[data-s="3"] { grid-column: 1 / -1; }
  .spot.static .spot-steps b { font-size: 22px; }
  .spot.static .spot-shoe { width: min(70%, 320px); }
}

/* story: the motto lights up word by word */
.story { padding-block: clamp(56px, 12vw, 140px); }
.story-text { max-width: 22ch; margin: 0 0 34px; font-family: var(--serif); font-size: clamp(36px, 7.4vw, 86px); font-weight: 500; line-height: 1.02; letter-spacing: -.015em; color: var(--ink); }
.story-text span { opacity: clamp(.16, calc(var(--p, 1) * (var(--n) + 4) - var(--i)), 1); transition: opacity .25s linear; }
.story-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.fact b { display: block; font-family: var(--serif); font-size: clamp(44px, 6.8vw, 70px); font-weight: 500; line-height: 1; color: var(--accent); }

/* studio sections (orbit, product sheet): the house colours on a softly lit paper backdrop */
.light-zone { --tile: #f4ede2; color: var(--ink); background: radial-gradient(120% 90% at 55% 45%, #fffdf8 0%, #f7f1e7 58%, #ede4d6 100%); }
.light-zone .chip { background: var(--bg); border-color: var(--line); color: var(--ink); }
.light-zone .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); box-shadow: none; }
.light-zone .chip:disabled { background: #f1ebe2; color: #a99c90; }

/* the Kadam orbit: the first screen of the home page, shoes on a giant tilted wheel (positions set by
   showcase.js, which keeps them clear of everything marked data-keep). On phones and tall screens the
   name sits on top, the controls at the bottom and the wheel in between. */
.wheel { position: relative; height: clamp(600px, calc(100vh - var(--header) - var(--marquee)), 980px); height: clamp(600px, calc(100svh - var(--header) - var(--marquee)), 980px); overflow: hidden; touch-action: pan-y; }
.wh-head { position: relative; z-index: 30; padding-top: clamp(20px, 4.5vh, 48px); pointer-events: none; }
.wh-head a, .wh-head button { pointer-events: auto; }
.wh-head .kicker { width: fit-content; margin-bottom: 8px; }
.wh-titles { width: min(600px, 48%); overflow: hidden; }
.wh-track { display: flex; align-items: flex-end; will-change: transform; }
.wh-track b { flex: 1 1 0; min-width: 0; padding-right: min(36px, 3vw); font-family: var(--serif); font-size: clamp(46px, 7.4vw, 108px); font-weight: 500; line-height: .9; letter-spacing: -.02em; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.wh-track b.l { font-size: clamp(42px, 6.2vw, 90px); }
.wh-track b.xl { font-size: clamp(36px, 5.2vw, 74px); }
.wh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; width: min(600px, 48%); min-height: 58px; margin-top: 12px; }
.wh-meta .price { margin: 0; }
.wh-brand { display: block; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.wh-meta .wh-brand { flex-basis: 100%; }
.wh-more { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none !important; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.wh-sk { display: block; width: 86%; height: clamp(40px, 6.6vw, 96px); margin-bottom: 10px; border-radius: var(--radius-s); }
.wh-sk2 { width: 58%; }
.wh-stage { position: absolute; inset: 0; z-index: 1; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; perspective: 1400px; }
.wheel.grabbing .wh-stage, .wheel.grabbing .wh-grip { cursor: grabbing; }
.wh-stage:focus-visible { outline-offset: -6px; }
.wh-item { position: absolute; left: 0; top: 0; width: clamp(260px, 32vw, 560px); will-change: transform, opacity; -webkit-tap-highlight-color: transparent; }
.wh-vis { display: block; }
.wh-vis svg { display: block; width: 100%; height: auto; }
.wh-item img { -webkit-user-drag: none; }
.wh-item.front .wh-vis { filter: drop-shadow(0 28px 26px rgba(60,38,24,.2)); }
.wh-shadow { display: block; width: 62%; height: 18px; margin: 4px auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(60,38,24,.24), transparent); }
.wh-bar { position: absolute; left: 0; right: 0; bottom: clamp(14px, 3vh, 30px); z-index: 30; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; pointer-events: none; }
.wh-bar > * { pointer-events: auto; }
.wh-ctrl { display: flex; align-items: center; gap: 12px; flex: 0 1 520px; }
.wh-wheel { flex: 1 1 auto; display: grid; justify-items: center; gap: 6px; }
.wh-grip { position: relative; width: 100%; height: 30px; border-radius: 999px; overflow: hidden; cursor: grab; touch-action: none;
  background: linear-gradient(180deg, #4a3826, #b39a6e 22%, #f6ecd6 50%, #b39a6e 78%, #4a3826); box-shadow: 0 6px 16px -8px rgba(60,38,24,.55), inset 0 0 0 1px rgba(60,38,24,.3); }
.wh-knurl { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 24px); will-change: transform;
  background: repeating-linear-gradient(90deg, rgba(60,38,20,.45) 0 2px, rgba(255,250,235,.3) 2px 4px, transparent 4px 12px); }
.wh-grip::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(50,32,18,.55), transparent 18%, transparent 82%, rgba(50,32,18,.55)); pointer-events: none; }
.wh-hint { font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.wh-sizes { flex: 0 1 380px; min-height: 66px; }
.wh-k { margin: 0 0 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.wh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.wh-grid .chip { min-width: 0; padding: 6px 4px; border-radius: var(--r-ctl); transition: background .2s, color .2s, transform .15s; }
.wh-grid .chip:active:not(:disabled) { transform: scale(.94); }
.chip.busy { color: transparent !important; position: relative; }
.chip.busy::after, .sh-add.busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.chip.busy::after { border-color: var(--accent); border-right-color: transparent; }
.chip.done { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--on-ink) !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (orientation: portrait), (max-width: 699px) and (min-height: 541px) {
  .wheel { height: clamp(560px, calc(100vh - var(--header) - var(--marquee)), 1100px); height: clamp(560px, calc(100svh - var(--header) - var(--marquee)), 1100px); }
  .wh-titles, .wh-meta { width: 100%; }
  .wh-track b { font-size: clamp(38px, 11vw, 80px); }
  .wh-track b.l { font-size: clamp(34px, 9.6vw, 68px); }
  .wh-track b.xl { font-size: clamp(30px, 8.2vw, 58px); }
  .wh-meta { min-height: 0; }
  .wh-item { width: clamp(240px, 76vw, 440px); }
  .wh-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .wh-ctrl, .wh-sizes { flex: none; max-width: none; }
  .wh-sizes { min-height: 62px; }
  .wh-grid { grid-template-columns: repeat(auto-fit, minmax(42px, 1fr)); gap: 6px; }
}
/* phones on their side: everything smaller so the name, a pair and the controls share a short screen */
@media (orientation: landscape) and (max-height: 540px) {
  .wheel { height: max(280px, calc(100vh - var(--header) - var(--marquee))); height: max(280px, calc(100svh - var(--header) - var(--marquee))); }
  .wh-head { padding-top: 10px; }
  .wh-head .kicker { margin-bottom: 4px; font-size: 10px; }
  .wh-titles, .wh-meta { width: min(420px, 44%); }
  .wh-track b, .wh-track b.l, .wh-track b.xl { font-size: clamp(22px, 8.5vh, 40px); -webkit-line-clamp: 2; }
  .wh-meta { min-height: 0; margin-top: 6px; gap: 2px 10px; font-size: 13px; }
  .wh-meta .rating { display: none; }
  .wh-bar { bottom: max(8px, env(safe-area-inset-bottom)); flex-wrap: nowrap; align-items: center; gap: 12px; }
  .wh-ctrl { flex: 0 1 300px; gap: 8px; }
  .wh-ctrl .orb-btn { width: 38px; height: 38px; }
  .wh-grip { height: 24px; }
  .wh-hint { display: none; }
  .wh-sizes { flex: 0 1 340px; min-height: 0; }
  .wh-k { display: none; }
  .wh-grid { grid-template-columns: repeat(auto-fit, minmax(38px, 1fr)); gap: 5px; }
  .wh-grid .chip { padding: 5px 2px; font-size: 13px; }
}
/* the wheel rises in as the page opens (after the welcome animation on a first visit) */
.wh-head, .wh-bar { animation: rise .8s var(--ease) .15s backwards; }
.wh-stage { animation: wh-in 1.1s var(--ease) backwards; }
@keyframes wh-in { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
.intro .wh-head, .intro .wh-bar { animation-delay: 2.2s; }
.intro .wh-stage { animation-delay: 2.05s; }

/* clothing studio: an ivory atelier with a dotted wall and a polished brass rail; garments hang side-on
   and the one in focus turns to face you (positions and turns set by showcase.js). */
.studio, .st-ov { --st-bg: #f2eadf; --st-ink: #221a16; --st-ink-2: #75665c; --st-line: rgba(34,26,22,.14); --st-accent: #6d1f2b; --st-paper: #fffaf3; }
.studio { position: relative; overflow: hidden; padding: clamp(18px, 3vw, 30px) 0 0; color: var(--st-ink); background-color: var(--st-bg);
  background-image: radial-gradient(rgba(90,60,35,.12) 1px, transparent 1.4px); background-size: 22px 22px; border-block: 1px solid var(--line-2); }
.studio::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at 50% 42%, rgba(255,252,246,.85), rgba(255,252,246,0) 70%), radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(120,88,58,.14)); }
.studio > * { position: relative; }
.st-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.st-link { justify-self: start; padding: 8px 0; border: 0; background: none; font: inherit; font-size: 11.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--st-ink); cursor: pointer;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.st-link:last-child { justify-self: end; }
.st-link:hover { color: var(--st-accent); border-bottom-color: var(--st-accent); }
.st-brand { text-align: center; }
.st-mark { display: block; font-family: var(--serif); font-size: clamp(32px, 4.8vw, 52px); font-weight: 600; letter-spacing: .26em; line-height: 1; margin-right: -.26em; }
.st-title { margin: 8px 0 0; font-family: var(--font); font-size: 10.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--st-accent); }
.st-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; margin-top: clamp(10px, 2vw, 22px); touch-action: pan-x pan-y; }
.st-scroll::-webkit-scrollbar { display: none; }
.st-rack { --gw: clamp(150px, 40vw, 230px); position: relative; height: calc(var(--gw) * 1.1 + 40px); min-width: 100%; transition: transform .6s var(--ease); }
@media (min-width: 700px) { .st-rack { --gw: clamp(200px, 22vw, 340px); } }
/* the brass rail: a post on the left bending into the bar */
.st-rail { position: absolute; left: 14px; right: -8px; top: 14px; height: 7px; border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, #7a5d33, #f6e7c4 35%, #c2a370 60%, #5c4425); box-shadow: 0 6px 12px -4px rgba(70,45,20,.45); }
.st-rail::before { content: ''; position: absolute; left: 0; top: 0; width: 7px; height: calc(var(--rh, 300px) - 14px); border-radius: 4px;
  background: linear-gradient(90deg, #7a5d33, #f6e7c4 35%, #c2a370 60%, #5c4425); }
/* light on the garment facing you */
.st-glow { position: absolute; top: 0; left: 0; width: calc(var(--gw) * 1.6); height: 100%; pointer-events: none; transition: transform .75s cubic-bezier(.22,1,.36,1);
  background: radial-gradient(50% 45% at 50% 45%, rgba(255,255,255,.75), transparent 70%); }
.st-item { position: absolute; left: 0; top: 0; width: var(--gw); padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer;
  transition: transform .75s cubic-bezier(.22,1,.36,1); perspective: 900px; -webkit-tap-highlight-color: transparent; z-index: 1; }
.st-item.on { z-index: 3; }
.st-item:focus-visible { outline: none; }
.st-item:focus-visible .st-vis { outline: 2px solid var(--st-accent); outline-offset: 6px; border-radius: 4px; }
.st-in { display: block; }
.st-swing { display: block; transform-origin: 50% 12px; }
.st-hook { display: block; width: 18px; height: 26px; margin: 2px auto -2px; }
.st-turn { position: relative; display: block; transform: rotateY(76deg) scale(.94); transform-origin: 50% 0; transition: transform 1.1s cubic-bezier(.25,1,.3,1), opacity .6s; opacity: .86; }
.st-item.on .st-turn { transform: none; opacity: 1; }
.st-hanger { position: absolute; left: 14%; top: 0; width: 72%; height: auto; z-index: 0; }
.st-vis { position: relative; z-index: 1; display: block; padding-top: 6%; }
.st-vis svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 18px rgba(70,45,25,.28)); }
.st-vis img { display: block; width: 100%; height: auto; max-height: calc(var(--gw) * 1.1); object-fit: contain; }
.st-vis.u-photo img { border-radius: var(--radius); aspect-ratio: auto; }
.st-vis.u-cut img { filter: drop-shadow(0 22px 18px rgba(70,45,25,.3)); }
/* a recorded turn: the frames are drawn on the canvas instead of turning the picture */
.st-frames { display: none; width: 100%; height: auto; position: relative; z-index: 1; }
.st-item.has-frames .st-turn { transform: none; opacity: 1; }
.st-item.has-frames .st-vis, .st-item.has-frames .st-hanger { display: none; }
.st-item.has-frames .st-frames { display: block; }
/* the hang-tag, on a short gold thread from the hanger (it swings by itself, see showcase.js) */
.st-tag { position: absolute; top: 46px; left: 57%; z-index: 4; padding: 4px 7px 3px; border-radius: 1px; font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-ink); background: var(--st-accent); transform: rotate(-6deg); transform-origin: 50% -16px; transition: opacity .3s; box-shadow: 0 6px 12px -6px rgba(60,20,25,.5); }
.st-tag::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 16px; background: linear-gradient(var(--gold-2), var(--gold)); }
.st-tag::after { content: ''; position: absolute; left: calc(50% - 1.5px); top: 2px; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,250,240,.75); }
.st-item:not(.on) .st-tag { opacity: 0; }
.st-item.away .st-in { opacity: 0; transition: opacity .12s; } /* lifted off into the detail panel */
.st-lifted .st-item:not(.away) .st-in { opacity: .22; transition: opacity .5s ease; } /* the rest of the rail steps back */
/* entrance: the garments slide onto the rail one after another */
.st-wait .st-in { opacity: 0; transform: translate3d(60vw, 0, 0); }
.st-entered .st-in { animation: st-in .95s cubic-bezier(.22,1,.36,1) var(--d, 0ms) backwards; }
@keyframes st-in { from { opacity: 0; transform: translate3d(60vw, 0, 0); } }
.st-info { display: grid; justify-items: center; gap: 4px; min-height: 96px; margin-top: 4px; text-align: center; }
.st-name { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: .06em; }
.st-price { margin: 0; font-size: 14px; letter-spacing: .12em; color: var(--st-ink); }
.st-price s { color: var(--st-ink-2); font-size: 13px; }
.st-view { margin-top: 6px; padding: 8px 18px; border-radius: var(--r-ctl); border: 1px solid var(--st-ink); background: transparent; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--st-ink); cursor: pointer; transition: background .2s, color .2s; }
.st-view:hover { background: var(--st-ink); color: var(--on-ink); }
.st-thumbs { display: flex; justify-content: safe center; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 14px; }
.st-thumbs::-webkit-scrollbar { display: none; }
.st-thumb { position: relative; flex: 0 0 64px; height: 64px; padding: 6px; border-radius: var(--radius-s); border: 1px solid var(--st-line); background: var(--st-paper); cursor: pointer; transition: border-color .2s; }
.st-thumb span, .st-thumb svg, .st-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.st-thumb .u-photo img { border-radius: 2px; object-fit: cover; }
.st-thumb[aria-current="true"] { border-color: var(--st-accent); }
.st-thumb[aria-current="true"]::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: -9px; height: 1px; background: var(--st-accent); }
.st-foot { display: flex; justify-content: center; padding-bottom: 16px; }
.st-all { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--st-ink-2); text-decoration: none !important; }
.st-all:hover { color: var(--st-accent); }
.st-ticker { overflow: hidden; background: var(--st-accent); color: #f7ebe2; white-space: nowrap; }
.st-tick { display: inline-flex; align-items: center; gap: 26px; padding: 11px 0; font-size: 11px; font-weight: 500; letter-spacing: .3em;
  animation: st-tick 40s linear infinite; }
.st-tick b { font-weight: 400; color: var(--gold-2); }
@keyframes st-tick { to { transform: translate3d(-50%, 0, 0); } }
.st-off .st-tick { animation-play-state: paused; }
@media (orientation: landscape) and (max-height: 540px) { .st-rack { --gw: clamp(130px, 17vw, 190px); } .st-info { min-height: 0; } }

/* the detail panel: docked on the right on wide screens, full screen on phones */
.overlay.st-ov { display: block; padding: 0; background: rgba(60,40,28,.26); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.st-panel { position: fixed; z-index: 2; right: 24px; top: calc(var(--header) + 14px); bottom: 24px; width: min(440px, 44vw); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 22px 24px; border-radius: var(--radius); color: var(--st-ink); background: var(--st-paper); border: 1px solid var(--line-2); box-shadow: 0 40px 90px -40px rgba(40,24,16,.55);
  animation: sp-in .5s cubic-bezier(.22,1,.36,1) both; }
@keyframes sp-in { from { opacity: 0; transform: translate3d(32px, 0, 0) scale(.97); } }
/* while a garment is lifted in, the panel only fades (its picture arrives as a flying copy) */
.st-panel.lifting { animation: sp-fade .32s ease both; }
.st-panel.lifting .sp-art { animation: none; }
@keyframes sp-fade { from { opacity: 0; } }
.sp-art.lift-ghost { position: fixed; z-index: 260; margin: 0; pointer-events: none; animation: none; transform-origin: 50% 0; will-change: transform; }
.st-note { top: auto; bottom: 24px; max-height: calc(100% - var(--header) - 38px); }
@media (max-width: 699px) {
  .st-panel { inset: 0; width: auto; border-radius: 0; border: 0; padding: calc(12px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left)); }
  .st-note { inset: auto 0 0 0; max-height: 80vh; border-radius: var(--radius) var(--radius) 0 0; }
}
.sp-top { display: flex; align-items: center; justify-content: space-between; }
.sp-count { font-size: 12px; letter-spacing: .2em; color: var(--st-ink-2); }
.sp-close { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--st-line); background: var(--bg); color: var(--st-ink); cursor: pointer; transition: border-color .2s; }
.sp-close svg { width: 18px; height: 18px; }
.sp-close:hover { border-color: var(--st-ink); }
.sp-stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; margin: 6px -8px 0; padding: 8px 0 4px; border-radius: var(--radius);
  background: radial-gradient(70% 70% at 50% 45%, #fffdf8, #f3ebdf); touch-action: pan-y; }
.sp-art { grid-column: 2; position: relative; display: block; width: min(100%, 360px); margin: 0 auto; transform-origin: 50% 0; animation: sp-swing 1.15s cubic-bezier(.3,.7,.3,1) both; }
@keyframes sp-swing { 0% { transform: rotate(-7deg); opacity: 0; } 35% { transform: rotate(4deg); opacity: 1; } 65% { transform: rotate(-1.6deg); } 100% { transform: none; } }
.sp-art .st-hanger { left: 15%; width: 70%; }
.sp-art svg:not(.st-hanger), .sp-art img { position: relative; z-index: 1; display: block; width: 100%; height: auto; max-height: min(44vh, 400px); object-fit: contain; margin-top: 6%;
  filter: drop-shadow(0 26px 22px rgba(70,45,25,.3)); }
.sp-art.u-photo img { border-radius: var(--radius-s); filter: none; }
/* the garment up close: it lifts out of the panel and floats (app.js floatGarment) */
.sp-art[data-float] { cursor: zoom-in; }
.tap-close { margin: 10px 0 0; text-align: center; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.sh-tap { position: absolute; left: 0; right: 0; bottom: 6px; margin: 0; pointer-events: none; }
.sh-art img, .q-gallery img { cursor: zoom-in; }
.float-ov.photo .fg-bob img { border-radius: var(--radius); filter: none; box-shadow: 0 40px 70px -30px rgba(60,38,24,.45); }
.sp-turn { position: absolute; top: 2px; right: 2px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--st-line, var(--line)); border-radius: 999px; background: var(--bg); color: var(--ink-2); font: 600 10.5px/1 inherit; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; z-index: 2; }
.sp-turn svg { width: 14px; height: 14px; }
.sp-turn:hover { border-color: var(--gold); color: var(--ink); }
.sp-art[data-float]::after { content: 'Tap to see it up close'; display: block; margin-top: 10px; text-align: center; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.sp-art[data-float]:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; border-radius: 4px; }
.float-ov { position: fixed; inset: 0; z-index: 320; cursor: zoom-out; background: radial-gradient(70% 60% at 50% 45%, rgba(255,252,247,.97), rgba(243,236,225,.97) 60%, rgba(232,221,205,.98)); }
.float-ov.closing { animation: fade-out .5s ease forwards; }
@keyframes fade-out { to { opacity: 0; } }
.fg { position: fixed; perspective: 1200px; transform-origin: 50% 50%; will-change: transform; }
.fg-tilt { width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.fg-bob { width: 100%; height: 100%; display: grid; place-items: center; animation: fg-bob 6.5s ease-in-out .7s infinite; }
.fg-bob img { display: block; width: auto; max-width: 100%; object-fit: contain; user-select: none; filter: drop-shadow(0 34px 30px rgba(60,38,24,.22)); }
@keyframes fg-bob { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 30% { transform: translate3d(0, -14px, 0) rotate(-1.2deg); } 65% { transform: translate3d(0, 6px, 0) rotate(.9deg); } }
.fg-shadow { position: absolute; left: 22%; right: 22%; bottom: -34px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60,38,24,.28), transparent); animation: fg-shade 6.5s ease-in-out .7s infinite; }
@keyframes fg-shade { 0%, 100% { transform: scale(1); opacity: 1; } 30% { transform: scale(.82); opacity: .7; } 65% { transform: scale(1.06); opacity: 1; } }
.fg-cap { position: fixed; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom)); margin: 0; display: grid; gap: 6px; justify-items: center; text-align: center; pointer-events: none; animation: fade-up .6s ease .35s both; }
.fg-name { font-family: var(--serif); font-size: clamp(20px, 3.4vw, 28px); color: var(--ink); }
.fg-hint { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.fg-close { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.float-ov.closing .fg-cap { animation: fade-out .25s ease forwards; }
.sp-nav { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--st-line); background: var(--bg); color: var(--st-ink); cursor: pointer; z-index: 2; transition: border-color .2s, color .2s; }
.sp-nav.next { grid-column: 3; }
.sp-nav svg { width: 18px; height: 18px; }
.sp-nav:hover { border-color: var(--st-accent); color: var(--st-accent); }
.sp-body { margin-top: 14px; }
.sp-brand { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--st-accent); }
.sp-title { margin: 6px 0 4px; font-family: var(--serif); font-size: clamp(26px, 3vw, 32px); font-weight: 600; letter-spacing: .04em; line-height: 1.12; }
.sp-price { margin: 0; font-size: 18px; letter-spacing: .04em; }
.sp-price s { font-size: 14px; color: var(--st-ink-2); }
.sp-off { font-size: 13px; color: var(--st-accent); }
.sp-desc { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--st-ink-2); }
.sp-rule { margin: 18px 0 14px; border: 0; border-top: 1px solid var(--st-line); }
.sp-label { margin: 0 0 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .24em; color: var(--st-ink-2); text-transform: uppercase; }
.sp-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-size { min-width: 56px; height: 40px; padding: 0 10px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--bg); color: var(--st-ink); font: inherit; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sp-size:hover:not(:disabled) { border-color: var(--st-ink); }
.sp-size[aria-pressed="true"] { background: var(--st-ink); color: var(--on-ink); border-color: var(--st-ink); }
.sp-size:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.sp-note { min-height: 20px; margin: 8px 0 0; font-size: 13px; color: var(--st-accent); }
.sp-add { position: relative; width: 100%; min-height: 52px; margin-top: 8px; border: 0; border-radius: var(--r-ctl); background: var(--st-accent); color: var(--on-ink); font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: background .25s, color .25s; }
.sp-add:hover:not(:disabled) { background: var(--accent-deep); }
.sp-add:disabled { background: rgba(34,26,22,.08); color: var(--st-ink-2); cursor: not-allowed; }
.sp-add.busy { color: transparent; }
.sp-add.busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid var(--on-ink); border-right-color: transparent; animation: spin .7s linear infinite; }
.sp-add.done { background: var(--st-ink); color: var(--on-ink); }
.sp-full { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--st-ink); text-decoration: none !important; border-bottom: 1px solid var(--st-accent); padding-bottom: 2px; }
.sp-full:hover { color: var(--st-accent); }
.sp-demo { margin: 10px 0 0; font-size: 12px; color: var(--st-ink-2); }
.sp-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.sp-list a { color: var(--st-accent); }
.st-ov .social { margin-top: 14px; }
@media (orientation: landscape) and (max-height: 540px) {
  .st-panel { top: 10px; bottom: 10px; right: calc(12px + env(safe-area-inset-right)); width: min(420px, 52vw); }
  .sp-art svg:not(.st-hanger), .sp-art img { max-height: 36vh; }
}

/* product sheet (opened from the orbit and the rack) */
.overlay.sheet-ov { padding: 0; display: block; background: rgba(60,40,28,.3); backdrop-filter: none; -webkit-backdrop-filter: none; }
.sheet { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(min(56vh, 520px), 1fr) auto auto; overflow-y: auto; overscroll-behavior: contain;
  animation: sheet-in .35s var(--ease) both; }
@keyframes sheet-in { from { opacity: 0; } }
@media (min-width: 900px) { .sheet { grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); grid-template-rows: minmax(0, 1fr) auto; } }
.sh-close { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 16px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  font: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); background: rgba(255,252,247,.92); cursor: pointer; }
.sh-close svg { width: 16px; height: 16px; }
.sh-stage { position: relative; display: grid; place-items: center; min-height: min(56vh, 520px); padding: 56px 16px 0; overflow: hidden; touch-action: pan-y; }
.sh-art { width: min(92%, 680px); will-change: transform; }
.sh-art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 34px 30px rgba(60,38,24,.22)); }
.sh-art.u-photo { width: min(80%, 560px); }
.sh-art.u-cut { width: min(86%, 640px); }
.sh-art.u-cut img { max-height: 62vh; width: auto; max-width: 100%; margin: 0 auto; }
.sh-shadow { position: absolute; bottom: 12%; width: 44%; height: 24px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60,38,24,.22), transparent); pointer-events: none; }
.sh-panel { padding: 8px 20px 20px; max-width: 520px; }
@media (min-width: 900px) { .sh-panel { align-self: center; max-height: 100%; overflow-y: auto; padding: 72px 40px 24px 8px; } }
.sh-panel h2 { margin: 2px 0 6px; font-size: clamp(36px, 5vw, 60px); font-weight: 500; line-height: .95; letter-spacing: -.015em; }
.sh-panel .label { margin-top: 16px; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.sh-sizes .chip { min-width: 56px; }
.sh-cols { margin-top: 12px; gap: 10px; }
.sh-add { margin-top: 16px; position: relative; min-height: 52px; font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; transition: background .25s, color .25s; }
.sh-add:disabled { background: #e8dfd2 !important; color: #85766b !important; box-shadow: none; opacity: 1; }
.sh-add.busy { color: transparent !important; }
.sh-add.busy::after { border-color: var(--on-ink); border-right-color: transparent; }
.sh-add.done { background: var(--ink) !important; color: var(--on-ink) !important; }
.sh-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.sh-links a { color: var(--ink); text-decoration: none !important; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.sh-desc { margin-top: 16px; }
.seg { display: inline-flex; gap: 4px; margin-top: 12px; padding: 4px; border-radius: var(--r-ctl); background: var(--bg-2); }
.seg button { padding: 6px 14px; border: 0; border-radius: var(--r-ctl); background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(60,38,24,.14); }
.sh-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .sh-foot { grid-column: 1 / -1; padding: 0 28px 22px; } }
.sh-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.sh-thumb { flex: 0 0 64px; height: 52px; display: grid; place-items: center; padding: 4px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg); cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.sh-thumb svg, .sh-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sh-thumb[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.sh-pager { display: flex; align-items: center; gap: 10px; flex: none; font-size: 12px; font-weight: 600; letter-spacing: .16em; }
@media (max-width: 599px) { .sh-thumbs { display: none; } .sh-foot { justify-content: center; } }
/* phones on their side: picture on the left, details on the right (scrolling by themselves), pager below */
@media (orientation: landscape) and (max-height: 540px) {
  .sheet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
  .sh-stage { min-height: 0; padding: 12px 8px 0 calc(12px + env(safe-area-inset-left)); }
  .sh-art { width: min(96%, 520px); }
  .sh-art svg, .sh-art img, .sh-art.u-cut img { max-height: calc(100svh - 96px); width: auto; max-width: 100%; margin: 0 auto; }
  .sh-panel { align-self: stretch; max-width: none; max-height: 100%; overflow-y: auto; padding: 54px calc(20px + env(safe-area-inset-right)) 14px 8px; }
  .sh-panel h2 { font-size: clamp(26px, 8vh, 38px); }
  .sh-panel .label { margin-top: 10px; }
  .sh-add { margin-top: 12px; }
  .sh-foot { grid-column: 1 / -1; padding: 6px calc(16px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); }
  .sh-thumbs { display: flex; }
  .sh-thumb { flex-basis: 52px; height: 42px; }
  .sh-pager .orb-btn { width: 38px; height: 38px; }
  .sh-close { top: 8px; }
}

/* newsletter */
.news { display: grid; gap: 18px; padding: clamp(24px, 5vw, 52px); border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
@media (min-width: 900px) { .news { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; } }
.news h2 { font-size: clamp(38px, 5.6vw, 62px); line-height: .95; letter-spacing: -.015em; }
.news-form { display: flex; flex-wrap: wrap; gap: 10px; }
.news-form .input, .news-form .btn { min-height: 52px; }
.news-form #form-error, .news-form p { flex-basis: 100%; margin: 0; }
.news-done { margin: 0; font-size: 18px; }

/* product cards: second photo on hover, quick view button */
.pcard .pimg { position: relative; }
.pcard .pimg img.alt { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease); }
.qv-btn { display: none; }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover .pimg img.alt { opacity: 1; }
  .qv-btn { position: absolute; left: 50%; bottom: 12px; z-index: 2; display: block; padding: 8px 16px; border-radius: var(--r-ctl); border: 1px solid var(--line); cursor: pointer;
    font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); background: var(--sheet); opacity: 0; translate: -50% 8px; transition: opacity .25s, translate .3s var(--ease); }
  .pcard:hover .qv-btn, .qv-btn:focus-visible { opacity: 1; translate: -50% 0; }
}
.hscroll.dragging { cursor: grabbing; }
.hscroll.dragging .pcard { transform: scale(.985); }

/* product page */
.buy-now { margin-top: 10px; }
.stylist { display: block; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-s); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none !important; transition: border-color .2s, background .2s; }
.stylist span[aria-hidden] { color: var(--gold); margin-right: 4px; }
.stylist .muted { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; }
.stylist:hover { border-color: var(--gold); background: var(--tint); }
.size-find { margin-left: 8px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.size-modal { max-width: 420px; }
.sf-steps { margin: 0 0 14px; padding-left: 18px; color: var(--ink-2); line-height: 1.6; }
.sf-res { display: grid; gap: 4px; margin: 16px 0 10px; padding: 14px; border-radius: var(--radius-s); background: var(--tint); }
.sf-uk { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--accent); }
.gift-box { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: linear-gradient(135deg, rgba(217,196,156,.16), transparent 60%); }
.gift-box .check { align-items: flex-start; }
.gift-box .check input { margin-top: 2px; }
.gift-box #gift-note { margin: 10px 0 0; }
.gift-box textarea { resize: vertical; min-height: 60px; }
/* welcome back card */
.wb-card { position: fixed; z-index: 80; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: min(340px, calc(100vw - 100px)); display: flex; align-items: center; gap: 4px;
  padding: 10px 6px 10px 10px; background: var(--sheet); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 24px 60px -28px rgba(40,24,16,.45); }
.wb-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--ink); text-decoration: none !important; }
.wb-img { flex: none; width: 56px; height: 56px; border-radius: var(--radius-s); overflow: hidden; background: var(--bg-2); display: grid; place-items: center; }
.wb-img img { width: 100%; height: 100%; object-fit: cover; }
.wb-img svg { width: 84%; }
.wb-link > span:last-child { display: grid; min-width: 0; }
.wb-k { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.wb-t { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.wb-s { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-x { flex: none; width: 36px; height: 36px; }
/* cursor ring and magnifier (computers only; fx.js adds them) */
.cur-ring { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .25s; will-change: transform; }
.cur-ring.on { opacity: 1; }
.cur-ring span { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(180,147,94,.9);
  transform: scale(.5); transition: transform .35s cubic-bezier(.16,1,.3,1), background-color .25s, border-color .25s; }
.cur-ring b { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff7ea; opacity: 0; transition: opacity .2s; }
.cur-ring.big span { transform: scale(1); background-color: rgba(109,31,43,.88); border-color: transparent; }
.cur-ring.big b { opacity: 1; transition-delay: .08s; }
.cur-ring.down span { transform: scale(.38); }
.cur-ring.big.down span { transform: scale(.88); }
.loupe { position: fixed; left: 0; top: 0; z-index: 95; width: 170px; height: 170px; border-radius: 50%; pointer-events: none; background: var(--bg) no-repeat;
  border: 1px solid rgba(180,147,94,.7); box-shadow: 0 18px 40px -16px rgba(40,24,16,.45), inset 0 0 0 4px rgba(255,252,247,.6); opacity: 0; transition: opacity .2s; }
.loupe.on { opacity: 1; }
.gallery:hover { cursor: zoom-in; }
/* the product photo drifts a little as the page scrolls */
.gallery > div > img { translate: 0 calc((var(--p, .5) - .5) * -14px); }
.pdp-note { margin-top: 8px; }
.pdp-more { margin-top: 22px; border-top: 1px solid var(--line-2); }
.pdp-more details { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.pdp-more summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; list-style: none; }
.pdp-more summary::-webkit-details-marker { display: none; }
.pdp-more summary::after { content: '+'; font-size: 20px; font-weight: 400; transition: transform .25s var(--ease); }
.pdp-more details[open] summary::after { transform: rotate(45deg); }
.pdp-more p { margin: 10px 0 0; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .gallery > div > svg { transition: transform .5s var(--ease); transform: translate3d(calc(var(--gx, 0) * 12px), calc(var(--gy, 0) * 8px), 0) rotate(calc(var(--gx, 0) * -2deg)); }
  .gallery > div > img { transition: transform .5s var(--ease); transform: scale(1.04) translate3d(calc(var(--gx, 0) * -8px), calc(var(--gy, 0) * -6px), 0); }
}

/* the shoe flying into the product page (View Transitions) */
::view-transition-group(kd-shoe) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

/* the spotlight turns maroon as you scroll through it */
:root { --flip-bg: #5a1823; --flip-ink: #fbf1e8; --flip-ink-2: #e3cbc2; --flip-on-ink: #5a1823; --flip-line: rgba(251,241,232,.26); --u-shadow: rgba(60,38,24,.28); }
.spot.flip .btn-dark { background: var(--flip-ink); color: var(--flip-bg); }
.spot.flip .kicker, .spot.flip .price .off { color: var(--gold-2); }
.spot.flip .spot-shoe svg { filter: drop-shadow(0 34px 30px rgba(20,5,8,.45)); }

/* ---- adding to the bag (fx.js): the product lifts, flies on an arc into the bag and the bag catches it.
   Only transform and opacity move. Over a full-screen panel the header is hidden, so a small bag
   appears in its place to catch the product. */
.fly-ghost { position: fixed; left: 0; top: 0; z-index: 320; margin: 0; pointer-events: none; will-change: transform, opacity; }
.fly-ghost > img, .fly-ghost > svg, .fly-ghost > canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.fly-ghost.card { padding: 6px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 24px 44px -20px rgba(60,38,24,.55); }
.fly-ghost.card > img { object-fit: cover; border-radius: 2px; }
.fly-ghost.cut { filter: drop-shadow(0 18px 16px rgba(60,38,24,.3)); }
.fly-dust { position: fixed; left: 0; top: 0; z-index: 319; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, #fffaf0, var(--gold) 55%, transparent); }
.bag-ring { position: fixed; z-index: 321; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 1.5px solid var(--accent); pointer-events: none; opacity: 0; }
.bag-float { position: fixed; z-index: 318; display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-radius: var(--radius); color: var(--ink); pointer-events: none;
  background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -18px rgba(60,38,24,.55); }
.bag-float .bag-ico { display: block; width: 22px; height: 22px; transform-origin: 50% 90%; }
.bag-float .bag-num { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--on-ink); font-size: 11px; font-weight: 600; line-height: 1; overflow: hidden; }
/* the note under the bag: what was just added, with the way to the bag */
.bag-note { position: fixed; z-index: 90; top: calc(var(--header) + 12px); right: 16px; width: min(360px, calc(100vw - 32px)); display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 14px; align-items: center;
  padding: 14px 14px 16px; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(60,38,24,.6); }
.bag-note::before { content: ''; position: absolute; top: -6px; right: var(--tip, 30px); width: 11px; height: 11px; margin-right: -5.5px; background: var(--sheet); border: 1px solid var(--line-2); border-width: 1px 0 0 1px; transform: rotate(45deg); }
.bn-img { width: 64px; height: 64px; display: grid; place-items: center; border-radius: var(--radius-s); background: var(--tile); overflow: hidden; }
.bn-img img, .bn-img svg, .bn-img canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.bn-k { margin: 0; padding-right: 26px; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.bn-name { margin: 3px 0 0; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-sub { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.bn-act { grid-column: 1 / -1; display: flex; gap: 8px; }
.bn-act .btn { flex: 1; min-height: 42px; padding-inline: 10px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.bn-close { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; }
.bn-close svg { width: 16px; height: 16px; }
.bn-timer { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: var(--accent); transform-origin: left; opacity: .55; }
@media (orientation: landscape) and (max-height: 540px) { .bag-note { top: calc(var(--header) + 6px); grid-template-columns: 52px minmax(0, 1fr); padding: 10px 12px 12px; } .bn-img { width: 52px; height: 52px; } .bn-act .btn { min-height: 36px; } }

/* ---- phones and tablets: live blur is the main cause of stutter there, so touch screens get solid bars */
@media (pointer: coarse) {
  .site-header, .sticky-buy, .modal, .drawer, .overlay, .toast, .admin-top { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .site-header, .sticky-buy { background: rgba(248,244,237,.97); }
  .overlay { background: rgba(34,22,18,.45); }
}

/* ---- fallbacks and preferences */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .sticky-buy { background: rgba(248,244,237,.98); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: #fffcf7; --glass-strong: #fffcf7; --bar: #f8f4ed; --sheet: #fffaf3; --field: #fffdf9; }
  .pcard, .panel, .summary, .cat-tile, .modal, .drawer, .site-header, .sticky-buy { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ripple, .fx-pop, .fly-ghost, .fly-dust, .bag-ring, .lift-ghost, #intro, .cur-ring, .loupe { display: none !important; }
  .gallery > div > img { translate: none; }
  .free-bar i { transition: none; }
  .modal.quick { animation: none; }
  .rv { opacity: 1; translate: none; }
  .ws .wi { transform: none; transition: none; }
  .fg-bob, .fg-shadow { animation: none; }
  .pcard { transform: none; }
  .st-wait .st-in { opacity: 1; transform: none; }
  .st-tick { animation: none; }
}

/* admin: turning animation preview (the chequered background shows what is see-through) */
.turn-section { margin-top: 22px; }
.turn-help ol { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.turn-prev { display: block; width: min(260px, 100%); aspect-ratio: 1; margin: 10px 0 8px; border-radius: var(--radius-s); border: 1px solid var(--line);
  background: repeating-conic-gradient(#ece4d8 0 25%, #fffdf9 0 50%) 0 0 / 20px 20px; }
.turn-now { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-bottom: 10px; }
.turn-now .turn-prev { width: 140px; }
#turn-scrub { width: min(260px, 100%); }
/* product page: the turning animation, dragged by hand */
.pdp-turn { display: grid; justify-items: center; gap: 6px; margin-top: 16px; }
.pdp-turn canvas { width: min(320px, 80%); aspect-ratio: 1; border-radius: var(--radius); background: var(--tile); cursor: ew-resize; touch-action: pan-y; opacity: 0; transition: opacity .4s; }
.pdp-turn canvas.ready { opacity: 1; }
.pdp-turn canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
