/*
  Asco design decisions (antislop R-31, one line each)
  Colour: bone paper + ink keep garment colours reading true; oxblood is the single accent, used for the hero's italic word and the bag count only.
  Purchase-type hues (green / amber / indigo) are a functional code, always paired with the type's name.
  Type: Fraunces gives the editorial fashion-magazine voice (its italic carries the mood); Manrope stays legible at filter and price sizes.
  Identity motif: the garment hang tag (notched edge + punched hole). It marks who ships each item, everywhere that matters.
  Radius: 4px for buttons and inputs, 10px for cards, 14px for dialogs, full pill only for filter chips.
  Shadow: only on lifted layers (dialog, drawer) and on a card under the pointer.
  Theme: light only, because product photos are shot on light backdrops and colours must match them.
  Motion: dial 1. Hover and state transitions only; no scroll or entrance animation.
*/
:root {
  --bg: #f4f1ec;
  --paper: #fbfaf7;
  --ink: #17140f;
  --ink-2: #463f37;
  --muted: #665f55;
  --line: #ddd6cb;
  --edge: #8a8276;
  --accent: #7a2e3a;
  --drop: #2b5447; --drop-bg: #dceae3;
  --aff: #6e470c; --aff-bg: #f2e3c8;
  --part: #33437a; --part-bg: #dfe4f3;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); }
a { color: inherit; text-underline-offset: 3px; }
svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a[href], button:not([disabled]), summary, select, label[for], label:has(> input[type="checkbox"]), input[type="checkbox"] { cursor: pointer; }
button[disabled], .btn[disabled] { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------- hang tag: the identity motif ---------- */
.tag {
  --t: var(--ink-2); --tb: var(--line);
  display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px 3px 20px;
  font-size: 12.5px; font-weight: 700; color: var(--t); white-space: nowrap;
  background: radial-gradient(circle at 10px 50%, transparent 3px, var(--tb) 3.5px);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
}
.tag.dropship { --t: var(--drop); --tb: var(--drop-bg); }
.tag.affiliate { --t: var(--aff); --tb: var(--aff-bg); }
.tag.partner { --t: var(--part); --tb: var(--part-bg); }
.tag.plain { --t: var(--ink); --tb: var(--paper); }

/* ---------- header ---------- */
.demo-bar { background: var(--ink); color: #ece7df; font-size: 13px; text-align: center; padding: 8px 16px; }
.demo-bar a { color: #fff; }
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .16em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.logo img { display: block; width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--ink); border-color: var(--edge); }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.shipto { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.cart-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
.btn.menu-toggle { display: none; }

/* ---------- controls ---------- */
select, input[type="text"], input[type="email"], input[type="number"], input[type="search"], textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--edge); border-radius: 4px; padding: 8px 10px; min-height: 44px;
}
input::placeholder { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 4px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; text-decoration: none; transition: background .15s, color .15s; }
.btn:hover { background: #3a332b; border-color: #3a332b; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: #5e212b; }
.btn[disabled], .btn[disabled]:hover { background: var(--line); border-color: var(--line); color: var(--ink-2); transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--edge); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 13px; min-height: 36px; transition: background .15s; }
.chip:hover { background: #ece6dc; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"]::before { content: '✓ '; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--edge); padding: 0; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; min-height: 36px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.field-label { display: block; font-weight: 700; font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }

/* ---------- hero: mood board ---------- */
.hero { padding: 52px 0 40px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 6vw, 80px); line-height: 1; letter-spacing: -.02em; margin: 0 0 20px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { font-size: 17px; color: var(--ink-2); max-width: 46ch; margin: 0 0 26px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
/* Mood board in 3D (MOTION raised to 2 at the owner's request): pins sit at different depths
   (--z) and the board tilts toward the pointer (--tx/--ty set by js/motion.js). Pointer-driven
   only: nothing loops, and reduced-motion users get the flat board. */
.board { position: relative; height: 470px; perspective: 1400px; }
.board-3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.pin { --r: 0deg; --z: 0px; position: absolute; width: 38%; padding: 0; border: none; background: var(--paper); border-radius: 10px; overflow: hidden; text-align: left;
  transform: translateZ(var(--z)) rotate(var(--r)); box-shadow: 0 2px 0 var(--line), 0 calc(var(--z) / 3) calc(var(--z) / 1.5) rgba(30,20,10,.14);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.pin:hover, .pin:focus-visible { transform: translateZ(calc(var(--z) + 70px)) rotate(0deg); box-shadow: 0 30px 50px rgba(30,20,10,.22); z-index: 5; }
.pin .cap { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: 12.5px; gap: 6px; }
.pin .cap b { font-weight: 700; }
.pin:nth-child(1) { left: 0; top: 18px; --r: -4deg; --z: 10px; }
.pin:nth-child(2) { left: 31%; top: 0; --r: 2deg; --z: 60px; z-index: 2; }
.pin:nth-child(3) { right: 0; top: 40px; --r: 5deg; --z: 25px; }
.pin:nth-child(4) { left: 10%; top: 250px; --r: 3deg; --z: 90px; z-index: 3; }
.pin:nth-child(5) { right: 8%; top: 262px; --r: -3deg; --z: 45px; z-index: 3; }
/* one-time entrance: pins drop onto the board, staggered (under 1.2s total) */
@keyframes pin-drop { from { opacity: 0; transform: translateZ(380px) translateY(-30px) rotate(calc(var(--r) * 3)); } }
.board.enter .pin { animation: pin-drop .75s cubic-bezier(.2,.8,.25,1) backwards; }
.board.enter .pin:nth-child(2) { animation-delay: .08s; } .board.enter .pin:nth-child(3) { animation-delay: .16s; }
.board.enter .pin:nth-child(4) { animation-delay: .24s; } .board.enter .pin:nth-child(5) { animation-delay: .32s; }

/* product cards: 3D tilt + soft light under the pointer (fine pointers only, set by js/motion.js) */
.card.tilt, .card.tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .12s ease-out, box-shadow .2s; position: relative; }
.card.tilt::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .2s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.38), transparent 55%); }
.card.tilt:hover::after { opacity: 1; }

/* ---- more motion (owner request). Each one has a job; none loops. ---- */
/* 1. hang tag swings from its punched hole when the product is hovered (identity motif) */
@keyframes tag-swing { 0% { rotate: 0deg; } 25% { rotate: -9deg; } 50% { rotate: 6deg; } 72% { rotate: -3deg; } 100% { rotate: 0deg; } }
.tag { transform-origin: 10px 50%; }
.card:hover .tag, .card:focus-visible .tag { animation: tag-swing .8s cubic-bezier(.3,.6,.3,1); }

/* 2. bag count pops when something lands in it (confirms the add) */
@keyframes bag-pop { 0% { scale: 1; } 35% { scale: 1.45; } 70% { scale: .9; } 100% { scale: 1; } }
.cart-count.pop { animation: bag-pop .5s cubic-bezier(.3,.7,.3,1.4); }
.fly { position: fixed; z-index: 90; pointer-events: none; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px rgba(30,20,10,.25); }
.fly img, .fly svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 3. catalogue cards get pinned onto the board as they scroll in (individual translate/rotate,
   so the pointer tilt on transform still works) */
.card.reveal { opacity: 0; translate: 0 22px; rotate: -2deg; }
.card.reveal.in { opacity: 1; translate: 0 0; rotate: 0deg; transition: opacity .45s ease-out, translate .55s cubic-bezier(.2,.8,.25,1), rotate .55s cubic-bezier(.2,.8,.25,1); transition-delay: var(--d, 0s); }

/* 4. "One place" inks itself in once */
@keyframes ink-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero h1 em { display: inline-block; animation: ink-in 1s cubic-bezier(.6,.1,.2,1) .25s backwards; }

/* 5. scrolling past the hero tips the board back in 3D (works on phones; scroll-driven, no JS) */
@supports (animation-timeline: view()) {
  @keyframes board-away { to { rotate: x 26deg; translate: 0 -40px; opacity: .55; } }
  .board-3d { animation: board-away linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
}

/* 6. aesthetic tiles lift and their colours drift on hover */
.aes { transition: border-color .15s, translate .25s cubic-bezier(.2,.8,.25,1), box-shadow .25s; }
/* real CJ product photo on each aesthetic tile (only once live products have loaded) */
.aes .aes-photo { display: none; }
.aes.has-photo { padding: 0; overflow: hidden; }
.aes.has-photo .aes-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.aes.has-photo .aes-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .5s cubic-bezier(.2,.8,.25,1); }
.aes.has-photo:hover .aes-photo img { scale: 1.08; }
.aes.has-photo .sw { height: 6px; margin: 0; border-radius: 0; }
.aes.has-photo:hover .sw { height: 6px; }
.aes.has-photo > span:last-child { padding: 8px 10px 10px; }
@media (prefers-reduced-motion: reduce) { .aes.has-photo:hover .aes-photo img { scale: 1; } }
/* !important: the swatch gradient is an inline style, and its shorthand resets size/position */
.aes .sw { background-size: 200% 200% !important; background-position: 0% 50% !important; transition: background-position .6s ease, height .25s; }
.aes:hover { translate: 0 -4px; box-shadow: 0 10px 22px rgba(30,20,10,.12); }
.aes:hover .sw { background-position: 100% 50% !important; height: 44px; }

@media (prefers-reduced-motion: reduce) {
  .board-3d, .card.tilt { transform: none !important; }
  .board.enter .pin { animation: none; }
  .pin, .pin:hover, .pin:focus-visible { transform: rotate(var(--r)); }
  .card:hover .tag, .cart-count.pop, .hero h1 em, .board-3d { animation: none !important; }
  .card.reveal { opacity: 1; translate: none; rotate: none; }
  .aes:hover { translate: none; } .aes:hover .sw { height: 34px; }
}

.ways { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 0 28px; align-items: start; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 18px 0; margin-bottom: 40px; }
.ways h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0; line-height: 1.15; max-width: 9ch; }
.ways div { font-size: 14px; color: var(--ink-2); }
.ways div p { margin: 8px 0 0; }

/* ---------- aesthetics rail ---------- */
.rail-head { display: flex; justify-content: space-between; align-items: end; margin: 0 0 14px; gap: 12px; }
.rail-head h2, .shop-head h2 { font-family: var(--serif); font-weight: 500; font-size: 34px; margin: 0; line-height: 1.1; }
.rail { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.aes { border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: left; background: var(--paper); min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; transition: border-color .15s; }
.aes:hover { border-color: var(--edge); }
.aes .sw { height: 34px; border-radius: 6px; margin-bottom: 10px; }
.aes span { font-weight: 700; font-size: 13.5px; }
.aes[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.aes[aria-pressed="true"] span::after { content: ' ✓'; }

/* ---------- shop ---------- */
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 56px 0 96px; }
.shop > div { min-width: 0; }
.filters { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; overflow-x: hidden; padding: 0 6px 12px 0; }
.filters h3 { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 22px 0 8px; }
.filters .fhead { display: flex; justify-content: space-between; align-items: center; }
.filters .fhead h3 { margin-top: 0; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range label { font-size: 12.5px; color: var(--muted); display: grid; gap: 4px; }
.range input { width: 100%; }
.filters select { width: 100%; }
.reset { margin-top: 20px; width: 100%; }
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
/* ---- product page ---- */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); padding: 18px 0 14px; }
.crumbs a { color: var(--ink-2); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.pdp > .state { grid-column: 1 / -1; }
.pdp-gallery { position: sticky; top: 84px; display: grid; gap: 10px; }
.pdp-main { border-radius: 12px; overflow: hidden; background: var(--line); aspect-ratio: 1 / 1; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pdp-thumbs .thumb-btn { width: 72px; height: 72px; }
.pdp-info { display: grid; gap: 14px; align-content: start; }
.pdp-info .tag { justify-self: start; }
.pdp-info h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; margin: 0; }
.pdp-meta { margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.pdp-price { font-size: 28px; font-weight: 800; }
.opt { display: grid; gap: 6px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--edge); border-radius: 6px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: var(--paper); font-size: 20px; font-weight: 700; }
.stepper button:hover:not([disabled]) { background: #ece6dc; }
.stepper output { min-width: 44px; text-align: center; font-weight: 800; }
.pdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: sticky; bottom: 0; z-index: 3; background: var(--bg); padding: 10px 0; }
.pdp-actions .btn { min-height: 52px; font-size: 15px; }
.pdp-points { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.pdp-more { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding-top: 36px; }
/* Details: label and value side by side */
.pdp-more .facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 12px 0 0; font-size: 14.5px; }
.pdp-more .facts dt { color: var(--muted); font-weight: 600; }
.pdp-more .facts dd { margin: 0; color: var(--ink); }
.pdp-section { border-top: 1px solid var(--ink); padding-top: 6px; }
.pdp-section summary { list-style: none; cursor: pointer; }
.pdp-section summary::-webkit-details-marker { display: none; }
.pdp-section summary h2 { display: inline; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.pdp-section summary::after { content: ' −'; color: var(--muted); }
.pdp-section:not([open]) summary::after { content: ' +'; }
.pdp-desc { color: var(--ink-2); line-height: 1.6; font-size: 14.5px; max-height: 420px; overflow: auto; margin-top: 10px; }
.related { padding: 40px 0 80px; }
.related h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0 0 14px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rel-card { display: grid; gap: 6px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; padding-bottom: 10px; transition: box-shadow .2s, translate .2s; }
.rel-card:hover { box-shadow: 0 12px 28px rgba(30,20,10,.13); translate: 0 -2px; }
.rel-card img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; display: block; background: var(--line); }
.rel-card .rel-name { padding: 0 10px; font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-card b { padding: 0 10px; }
body:has(.pdp-actions) .chat-bubble { bottom: 96px; } /* keep the chat button above Add to bag / Buy now */
@media (max-width: 860px) {
  /* on phones the product page gets just the round chat icon, so it doesn't cover the title */
  body:has(.pdp-actions) .chat-bubble { padding: 0; width: 52px; min-height: 52px; justify-content: center; right: 12px; }
  body:has(.pdp-actions) .chat-bubble-label { display: none; }
}
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 18px; }
  .pdp-gallery { position: static; }
  .pdp-more { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-actions { margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { .rel-card:hover { translate: none; } }

/* ---- track your order ---- */
.track-grid { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 24px; align-items: start; margin-bottom: 64px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 18px 30px; color: var(--muted); }
.steps li::before { content: ''; position: absolute; left: 6px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--edge); background: var(--paper); }
.steps li::after { content: ''; position: absolute; left: 12px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li b { display: block; color: inherit; }
.steps li span { font-size: 13.5px; }
.steps li.done, .steps li.now { color: var(--ink); }
.steps li.done::before { background: var(--drop); border-color: var(--drop); }
.steps li.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(122,46,58,.15); }
.steps li.done::after { background: var(--drop); }
@media (max-width: 860px) { .track-grid { grid-template-columns: 1fr; } }

/* ---- store chat: bubble bottom right + panel ---- */
.chat-bubble { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 20px 0 16px;
  border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 10px 28px rgba(122,46,58,.35); transition: translate .2s, box-shadow .2s; }
.chat-bubble:hover { translate: 0 -2px; box-shadow: 0 14px 34px rgba(122,46,58,.42); }
.chat-bubble.is-open .chat-bubble-label { display: none; }
.chat-bubble.is-open { padding: 0 16px; }
.chat-panel { position: fixed; right: 20px; bottom: 88px; z-index: 70; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(20,15,10,.25); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; background: var(--ink); color: var(--paper); }
.chat-head h2 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 0; }
.chat-head p { margin: 0; font-size: 12.5px; color: #d9d2c7; }
.chat-head .icon-btn { background: transparent; color: var(--paper); border-color: #6e675d; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 86%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.chat-msg.bot { align-self: flex-start; background: var(--bg); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.chat-msg a { color: inherit; }
.chat-starters { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-starters .chip { font-size: 12.5px; min-height: 36px; }
.chat-cards { display: grid; gap: 6px; align-self: stretch; }
.chat-card { display: flex; gap: 10px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--paper); }
.chat-card:hover { border-color: var(--edge); }
.chat-card img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; background: var(--line); }
.chat-card b { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; }
.chat-card small { color: var(--accent); font-weight: 800; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; }
.chat-note { margin: 0; padding: 0 12px 10px; font-size: 11.5px; color: var(--muted); }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing span:not(.sr-only) { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing-dot 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 80%, 100% { opacity: .3; translate: 0 0; } 40% { opacity: 1; translate: 0 -3px; } }
@media (max-width: 560px) {
  .chat-bubble { right: 14px; bottom: 14px; }
  .chat-panel { right: 8px; left: 8px; bottom: 80px; width: auto; height: calc(100vh - 110px); }
}
@media (prefers-reduced-motion: reduce) { .typing span:not(.sr-only) { animation: none; opacity: .6; } .chat-bubble:hover { translate: none; } }

/* Women / Men / Everyone switch */
.seg { display: inline-flex; border: 1px solid var(--edge); border-radius: 999px; padding: 3px; background: var(--paper); margin: 0 0 16px; }
.seg button { min-height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s; }
.seg button:hover { color: var(--ink); background: #ece6dc; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (pointer: coarse) { .seg button { min-height: 44px; } }
.toolbar { display: flex; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.toolbar .search { flex: 1; min-width: 200px; max-width: 380px; }
.toolbar .search input { width: 100%; }
.count { color: var(--muted); font-size: 14px; }
.filter-open { display: none; }

.masonry { columns: 4 210px; column-gap: 16px; }
.card { break-inside: avoid; margin-bottom: 16px; background: var(--paper); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); text-align: left; width: 100%; padding: 0; display: block; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 12px 28px rgba(30,20,10,.13); transform: translateY(-2px); }
.card .art { position: relative; }
.photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--line); }
.pd .art .photo { height: 100%; }
/* product photo gallery: big photo + CJ's other photos as thumbnails */
.gallery { display: flex; flex-direction: column; min-width: 0; }
.gallery .main-photo { aspect-ratio: 1 / 1; height: auto; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.thumb-btn { flex: 0 0 auto; width: 60px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--line); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-btn:hover { border-color: var(--edge); }
.thumb-btn[aria-pressed="true"] { border-color: var(--ink); }
@media (max-width: 860px) { .thumb-btn { width: 52px; height: 52px; } .pd .art { max-height: none; } }
.status.syncing { color: var(--aff); }
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; margin-bottom: 64px; }
.checkout .form { max-width: none; }
.co-h { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0; }
.summary { position: sticky; top: 84px; }
.field-error { display: block; margin-top: -8px; }
.orders-table td { font-size: 13.5px; }
.orders-table small { display: block; color: var(--muted); }
.policy section { max-width: 76ch; padding: 8px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.policy h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0 0 10px; }
.policy p, .policy li { color: var(--ink-2); }
.fill { background: var(--aff-bg); color: var(--aff); padding: 0 4px; border-radius: 3px; font-weight: 700; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; order: -1; } }
.card .art .tag { position: absolute; left: 10px; top: 10px; }
.card .meta { padding: 12px 14px 14px; }
.card .brand { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.card .name { font-weight: 700; font-size: 14.5px; margin: 2px 0 6px; line-height: 1.3; }
.card .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); gap: 8px; }
.card .price { color: var(--ink); font-weight: 800; font-size: 15px; }
.state { padding: 48px 24px; text-align: center; color: var(--ink-2); border: 1px dashed var(--edge); border-radius: 10px; column-span: all; }
.state b { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.state .btn { margin-top: 14px; }
.state.error { border-style: solid; border-color: var(--accent); }

/* ---------- dialog + drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20,15,10,.5); z-index: 50; display: none; }
.scrim.open { display: block; }
.modal { position: fixed; z-index: 60; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; background: var(--paper); border-radius: 14px; display: none; box-shadow: 0 30px 80px rgba(20,15,10,.3); }
.modal.open { display: block; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--edge); background: var(--paper); font-size: 22px; line-height: 1; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--ink); color: var(--paper); }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 2; }
.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd .art svg { width: 100%; height: 100%; }
.pd .info { padding: 32px; display: grid; gap: 14px; align-content: start; }
.pd h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; margin: 0; line-height: 1.1; }
.pd .price { font-size: 24px; font-weight: 800; }
.pd .facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; margin: 0; }
.pd .facts dt { color: var(--muted); }
.pd .facts dd { margin: 0; }
.pd .explain { background: var(--bg); border-radius: 6px; padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); }
.pd .sample { font-size: 12.5px; color: var(--muted); }
.warn { background: #f7e3e1; color: #6d1f22; border-radius: 6px; padding: 12px 14px; font-size: 13.5px; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }

.drawer { position: fixed; z-index: 60; right: 0; top: 0; bottom: 0; width: min(420px, 100vw); background: var(--paper); transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(20,15,10,.2); }
.drawer.open { transform: none; visibility: visible; transition: transform .25s; }
.drawer header { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer header h2 { margin: 0; font-family: var(--serif); font-weight: 500; }
.drawer .items { flex: 1; overflow: auto; padding: 8px 22px 16px; }
.group { margin-top: 16px; }
.group .split { margin-top: 6px; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; font-size: 14px; }
.line-item .thumb { width: 64px; height: 76px; border-radius: 6px; overflow: hidden; }
.line-item .thumb svg { width: 100%; height: 100%; }
.line-item small { color: var(--muted); display: block; }
.link-btn { border: none; background: none; color: var(--ink-2); text-decoration: underline; font-size: 13px; min-height: 44px; padding: 0 4px; }
.link-btn:hover { color: var(--accent); }
.drawer footer { padding: 18px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.split { font-size: 13px; color: var(--muted); }
.total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 16px; }

/* ---------- quiz ---------- */
.quiz { padding: 32px; }
.quiz h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; margin: 0 0 6px; }
.quiz fieldset { border: none; margin: 22px 0; padding: 0; }
.quiz legend { font-weight: 700; margin: 0 0 10px; padding: 0; }
.quiz .opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.quiz .opts .chip { border-radius: 6px; text-align: left; padding: 10px 12px; min-height: 44px; }
.result { background: var(--bg); padding: 20px; border-radius: 10px; margin-top: 16px; }
.result h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 4px 0 6px; }
.result h3 span { color: var(--muted); font-size: 18px; }

/* ---------- inner pages ---------- */
.page-head { padding: 52px 0 28px; max-width: 900px; }
.page-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5vw, 62px); margin: 0 0 14px; letter-spacing: -.01em; line-height: 1.03; }
.page-head p { color: var(--ink-2); max-width: 66ch; font-size: 17px; margin: 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.stats { display: flex; gap: 40px; flex-wrap: wrap; margin: 8px 0 28px; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.stat b { font-size: 40px; font-family: var(--serif); font-weight: 500; line-height: 1; margin-right: 8px; }
.stat span { color: var(--ink-2); font-size: 14px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--ink-2); font-weight: 700; border-bottom-color: var(--ink); }
.table-scroll { overflow-x: auto; }
.status { font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 4px; white-space: nowrap; border: 1px solid currentColor; }
.status.not-applied { color: #5d5446; }
.status.research { color: #6a3a70; }
.status.building { color: var(--drop); }
.status.connected { color: #1f6b33; }
.caps { display: flex; flex-wrap: wrap; gap: 4px; }
.cap { font-size: 12px; border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; color: var(--ink-2); }
.reg-filters { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.reg-filters label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
details.reg { border-top: 1px solid var(--line); }
details.reg summary { padding: 16px 8px; display: grid; grid-template-columns: 1.3fr 1.7fr 1fr 1.6fr .8fr; gap: 12px; align-items: center; list-style: none; border-radius: 6px; }
details.reg summary::-webkit-details-marker { display: none; }
details.reg summary b::before { content: '+ '; color: var(--muted); }
details.reg[open] summary b::before { content: '− '; }
details.reg summary:hover { background: #f1ece4; }
.reg-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; padding: 6px 8px 24px; font-size: 14px; }
.reg-body h3 { margin: 0 0 2px; font-size: 13px; color: var(--ink-2); }
.reg-body p { margin: 0; color: var(--ink-2); }
.reg-head { display: grid; grid-template-columns: 1.3fr 1.7fr 1fr 1.6fr .8fr; gap: 12px; padding: 0 8px 10px; font-size: 13px; color: var(--ink-2); font-weight: 700; }

/* blueprint */
.bp { display: grid; grid-template-columns: 230px 1fr; gap: 48px; padding-bottom: 80px; }
.bp > div { min-width: 0; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 14px; display: grid; gap: 2px; }
.toc a { text-decoration: none; color: var(--ink-2); padding: 5px 0; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.bp section { padding: 8px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.bp h2 { font-family: var(--serif); font-weight: 500; font-size: 36px; margin: 0 0 14px; line-height: 1.1; }
.bp h3 { font-size: 17px; margin: 22px 0 8px; }
.bp p, .bp li { color: var(--ink-2); max-width: 76ch; }
.bp pre { background: #1d1a17; color: #eae4da; padding: 18px; border-radius: 10px; overflow: auto; font-size: 13px; line-height: 1.5; }
.lead-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.lead-grid .lead { grid-row: span 2; }
.lead-grid .lead h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 12px 0 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.markets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.markets div { padding: 14px 16px 6px 0; }
.markets b { font-family: var(--serif); font-weight: 500; font-size: 20px; display: block; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.calc .inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.calc .out { display: grid; gap: 4px; align-content: start; }
.calc .out div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 6px 0; font-size: 14px; }
.calc .out .big { font-size: 22px; font-weight: 800; border: none; padding-top: 10px; }
.neg { color: #8f1f28; }
.pos { color: #1f6b33; }
.legal { columns: 2 320px; column-gap: 32px; }
.legal div { break-inside: avoid; margin-bottom: 22px; }
.legal h3 { margin-top: 0; }
.roadmap { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.roadmap div { padding: 14px 16px 0 0; font-size: 14px; color: var(--ink-2); }
.roadmap b { display: block; color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 19px; margin-bottom: 6px; }
.roadmap small { display: block; color: var(--muted); font-weight: 700; margin-bottom: 4px; }

/* partner */
.form { display: grid; gap: 16px; max-width: 760px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form fieldset { border: none; padding: 0; margin: 0; }
.form legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.form .error-msg { color: #8f1f28; font-size: 13px; font-weight: 600; }
.notice { background: var(--aff-bg); color: var(--aff); border-radius: 6px; padding: 14px 16px; font-size: 14px; }
.terms { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); margin-bottom: 36px; }
.terms div { padding: 16px 20px 0 0; color: var(--ink-2); }
.terms b { display: block; font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--ink); line-height: 1.1; margin-bottom: 6px; }

footer.site { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 13px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* messages slide in at the top, so they never cover checkout or Add to bag buttons at the bottom */
.toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%) translateY(-140%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 6px; font-size: 14px; z-index: 80; transition: transform .25s; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(20,15,10,.25); }
.toast.show { transform: translateX(-50%); }

/* the chat button steps aside while the bag or a product is open (it covered "Go to checkout") */
body:has(.drawer.open) .chat-bubble, body:has(.drawer.open) .chat-panel,
body:has(.modal.open) .chat-bubble, body:has(.modal.open) .chat-panel,
body:has(.filters.open) .chat-bubble { display: none; }
/* checkout page: leave room under the Pay button for the chat button */
main:has(#pay) { padding-bottom: 96px; }

/* product window: Add to bag always reachable; long option lists become dropdowns */
.pd-actions { position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 0; margin: 0 0 -12px; background: var(--paper); border-top: 1px solid var(--line); }
.opt-select { width: 100%; }
.chip[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .btn.menu-toggle { display: inline-flex; }
  .logo { flex: 1; }
  .rail { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; gap: 14px; }
  .ways h2 { max-width: none; }
  .markets, .roadmap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .top .wrap { gap: 10px; }
  .shop { grid-template-columns: 1fr; padding-top: 40px; }
  .filters { position: fixed; inset: 0; z-index: 55; background: var(--bg); padding: 20px; max-height: none; display: none; }
  .filters.open { display: block; }
  .filter-open { display: inline-flex; }
  .pd { grid-template-columns: 1fr; }
  .pd .art { max-height: 340px; overflow: hidden; }
  .pd .info { padding: 22px; }
  .bp { grid-template-columns: 1fr; }
  .toc { display: none; }
  .grid-2, .lead-grid, .calc, .calc .inputs, .form .two, .reg-body, .terms { grid-template-columns: 1fr; }
  details.reg summary, .reg-head { grid-template-columns: 1fr auto; }
  details.reg summary > :nth-child(2), details.reg summary > :nth-child(4), details.reg summary > :nth-child(5),
  .reg-head > :nth-child(2), .reg-head > :nth-child(4), .reg-head > :nth-child(5) { display: none; }
  .chip { min-height: 44px; }
  .swatch { width: 44px; height: 44px; }
  .board { height: 330px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .shipto { display: none; }
  .rail { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .card { margin-bottom: 10px; }
  .card .meta { padding: 10px; }
  .board { height: 300px; }
  .pin { width: 46%; }
  .pin:nth-child(3), .pin:nth-child(5) { display: none; }
  .pin:nth-child(1) { left: 2%; top: 10px; }
  .pin:nth-child(2) { left: auto; right: 2%; top: 0; }
  .pin:nth-child(4) { left: 27%; top: 130px; }
  .markets, .roadmap { grid-template-columns: 1fr; }
  .rail-head h2, .shop-head h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* product cards and hero pins are links to product pages now */
a.card, a.pin { text-decoration: none; color: inherit; display: block; }

/* ---------- more motion: page morphs, ticker, scroll reveals, button shine, photo zoom ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* pages fade into each other, and a product photo grows from its card into the product page */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
  ::view-transition-group(product-photo) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
}
.pdp-main img { view-transition-name: product-photo; }

/* aesthetic names drifting past under the hero */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; margin: 6px 0 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; }
.ticker span { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.6vw, 30px); padding: 0 22px; white-space: nowrap; color: var(--ink); }
.ticker i { font-style: normal; color: var(--accent); font-size: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* sections rise in as they scroll into view (browsers that support scroll-driven animation) */
@keyframes rise { from { opacity: 0; translate: 0 32px; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main > section > h2, .rail-head h2, .ways > div, .aes, .rel-card, .pdp-more > *, .kpi, .dash .panel, footer.site .wrap {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%;
    }
  }
}

/* a light sweep across buttons on hover, and a small press */
.btn:not(#cartBtn) { position: relative; overflow: hidden; isolation: isolate; }
.btn:not(#cartBtn)::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%); translate: -130% 0; transition: translate .7s cubic-bezier(.2, .8, .2, 1); }
.btn.ghost:not(#cartBtn)::after { background: linear-gradient(110deg, transparent 35%, rgba(122, 46, 58, .14) 50%, transparent 65%); }
.btn:not([disabled]):hover::after { translate: 130% 0; }
.btn:not([disabled]):active { scale: .97; }

/* picked size/colour pops; product photo zooms where the pointer is */
.chip[aria-pressed="true"] { animation: chip-pop .28s ease-out; }
@keyframes chip-pop { 45% { scale: 1.1; } }
.thumb-btn { transition: translate .2s; }
.thumb-btn:hover { translate: 0 -3px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pdp-main { cursor: zoom-in; }
  .pdp-main img { transform-origin: var(--zx, 50%) var(--zy, 50%); transition: scale .35s cubic-bezier(.2, .8, .2, 1); }
  .pdp-main:hover img { scale: 1.7; }
}

/* photos fade in as they arrive instead of popping */
@keyframes img-in { from { opacity: 0; } }
.card .art img, .rel-card img, .aes-photo img { animation: img-in .5s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .chip[aria-pressed="true"], .card .art img, .rel-card img, .aes-photo img { animation: none; }
  .btn::after { display: none; }
}

/* server-rendered first view of a product page (replaced by the full view when the script runs) */
.pdp > .ssr-pdp { grid-column: 1 / -1; }
.ssr-pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.ssr-pdp img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: var(--line); }
.ssr-pdp h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin: 0 0 10px; }
.ssr-pdp p { color: var(--muted); }
@media (max-width: 760px) { .ssr-pdp { grid-template-columns: 1fr; } }

/* 404 page */
.notfound { max-width: 560px; padding: 70px 0 90px; }
.notfound .nf-code { font-family: var(--serif); font-style: italic; font-size: clamp(80px, 14vw, 140px); line-height: 1; color: var(--accent); margin: 0; }
.notfound h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 40px); margin: 8px 0 10px; }
.notfound .nf-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* contact form */
.contact-form { max-width: 520px; display: grid; gap: 12px; margin: 14px 0 20px; position: relative; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; }
.contact-form input, .contact-form textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--edge); border-radius: 6px; background: #fff; }
.contact-form [aria-invalid="true"] { border-color: #b3261e; }
.contact-form small { color: var(--muted); font-weight: 400; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button { justify-self: start; }
.form-status { margin: 0; font-weight: 600; }

/* currency picker beside Ship to; on phones both pickers live inside the menu */
.cur-select { max-width: 104px; }
.nav-prefs { display: none; }
@media (max-width: 1280px) {
  .nav-prefs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 6px; }
  .nav-prefs label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
  .nav-prefs select { width: 100%; min-height: 44px; }
}

/* FAQ on the home page */
.faq { padding: 56px 0 24px; max-width: 820px; }
.faq h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 16px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; font-size: 16px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-size: 22px; font-weight: 400; color: var(--accent); transition: rotate .2s; }
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item p { margin: 0 0 18px; color: var(--ink-2); line-height: 1.6; max-width: 70ch; }
.faq-more { color: var(--muted); margin-top: 16px; }

/* About page */
.about { max-width: 720px; padding: 48px 0 72px; }
.about-kicker { color: var(--accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: 0 0 8px; }
.about h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 5vw, 48px); line-height: 1.08; margin: 0 0 18px; }
.about-lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.about h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 34px 0 10px; }
.about p, .about li { line-height: 1.65; }
.about ul { padding-left: 20px; display: grid; gap: 8px; }
.about-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
