/* ==========================================================================
   MOON storefront, v2: the lululemon Women's page structure, in MOON's brand.

   Taken from the reference (measured, see TEARDOWN.md): one grotesk at weight
   400 set very large and tight, a near-black ink, a white page, a floating
   glass bar on desktop, capsule buttons, product photographs on a grey ground
   at 5:6 with the name left and the price right, carousels that end in a
   "Shop" capsule and an arrow pair, edge-to-edge category tiles, a pale band
   before a dark footer.

   Kept from MOON: the logo and its slate (#374e54), which carries the
   announcement bar and the footer, the teal accent for reductions, and every
   product, photograph, price and sentence.

   Breakpoints. Two families, written once each:
     layout   phone < 768px, tablet 768-1199px, desktop >= 1200px
     menu     "compact" = (max-width: 1024px), (pointer: coarse) and (max-width: 1366px)
              (hamburger and full menu). Everything else gets the inline bar.
              The desktop bar is the BASE and the compact query only overrides
              it, so the two can never both apply or both miss. site.js reads
              the same string (COMPACT).
   ========================================================================== */

@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/geist-latin.woff2?v=a147f99c') 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 {
  /* ---- colour ---- */
  --ink: #12181a;           /* MOON's graphite: a black with the logo's hue in it, 17.9:1 on white */
  --grey: #5f6669;          /* secondary text, 5.85:1 on white, 5.03:1 on the photo grey */
  --brand: #374e54;         /* the logo's own colour, exactly */
  --accent: #0e718b;        /* the logo's hue, saturated: reduced prices */
  --paper: #ffffff;
  --band: #f9f9f8;          /* the "New to" band, as measured on the reference */
  --photo: #efefed;         /* the ground under every product photograph */
  --chip: #efefed;          /* grey capsules ("Clear all", jump links, close buttons) */
  --chip-hover: #e3e4e2;
  --line: #e1e3e3;          /* hairlines */
  --line-strong: #c3c7c8;   /* size boxes, inputs */
  --glass: rgba(238, 238, 236, .8);
  --glass-solid: #eeeeec;   /* the same colour without the blur, for the fallbacks */

  /* ---- type ---- */
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* ---- geometry (concentric: inner radius = outer radius - inset) ---- */
  --r-screen: 44px;                              /* assumed device corner */
  --r-float: calc(var(--r-screen) - 12px);       /* a bar floating 12px in from that corner: 32px */
  --r-bar: 8px;                                  /* the desktop header bar, as measured */
  --r-in-bar: calc(var(--r-bar) - 4px);          /* anything rounded 4px inside it */
  --r-box: 4px;                                  /* size boxes, checkboxes: no rounded parent */

  /* ---- rhythm ---- */
  --pad: 16px;              /* page margin: 16 phone, 24 tablet, 40 desktop */
  --pad-rail: 16px;         /* carousels sit closer to the edge: 16 / 20 */
  --gap-grid: 8px;
  --hdr-h: 57px;            /* compact header incl. its hairline; desktop below */
  --promo-h: 44px;          /* the promo line above the compact header (36px from 768px, none on desktop) */
  --section: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) {
  :root { --pad: 24px; --pad-rail: 20px; --gap-grid: 16px; --section: 88px; }
}
@media (min-width: 992px) {
  :root { --pad: 40px; --gap-grid: 20px; --section: 112px; }
}

/* ---------- base (inside :where so any component rule wins) ---------- */
:where(*, *::before, *::after) { box-sizing: border-box; }
[hidden] { display: none !important; }
:where(html) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
:where(body) {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
:where(h1, h2, h3, h4, p, ul, ol, figure, dl, dd, fieldset) { margin: 0; }
:where(h1, h2, h3, h4) { font-weight: 400; }
:where(ul, ol) { padding: 0; }
:where(fieldset) { border: 0; padding: 0; min-width: 0; }
:where(img) { max-width: 100%; display: block; }
:where(a) { color: inherit; text-decoration: none; }
:where(button, input, select) { font: inherit; color: inherit; }
:where(button) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: #fff; }

.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;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.skip:focus { top: 12px; }

/* ---------- type scale (measured on the reference: 100 / 64 / 40 / 24 / 18) ---------- */
.t-section { font-size: clamp(34px, 4.25vw, 64px);  line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.t-hero    { font-size: clamp(30px, 4.25vw, 64px);  line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.t-tile    { font-size: clamp(28px, 2.65vw, 40px);  line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.t-sub     { font-size: clamp(20px, 1.6vw, 24px);   line-height: 1.3;  letter-spacing: -0.01em; }
.t-lede    { font-size: 18px; line-height: 1.45; }
.muted     { color: var(--grey); }
.price     { font-variant-numeric: tabular-nums; }

/* ---------- capsules ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font); font-size: 14px; font-weight: 500; line-height: 1.2;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pill-ink { background: var(--ink); color: #fff; }
.pill-ink:hover { background: var(--brand); }
.pill-grey { background: var(--chip); color: var(--ink); }
.pill-grey:hover { background: var(--chip-hover); }
.pill-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.pill-line:hover { background: var(--ink); color: #fff; }
.pill-glass {
  background: var(--glass); color: var(--ink);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
}
.pill-glass:hover { background: var(--paper); }
.pill-paper { background: var(--paper); color: var(--ink); }
.pill-paper:hover { background: var(--chip); }
.pill-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.pill-block { width: 100%; }
.pill[disabled], .pill[aria-disabled="true"] { background: #c9cdce; color: #fff; border-color: transparent; cursor: not-allowed; }

.tlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.tlink:hover { color: var(--brand); }

.round-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0;
  display: inline-grid; place-items: center; cursor: pointer;
  background: var(--chip); color: var(--ink);
  transition: background-color .2s var(--ease);
}
.round-btn:hover { background: var(--chip-hover); }
.round-btn svg, .hdr-bag svg, .hdr-search svg, .hdr-burger svg, .arrow svg, .stage-btn svg, .promo svg { width: 20px; height: 20px; flex: none; }

/* ---------- announcement bar ----------
   Phones and tablets only, above the compact header, as on the reference's
   phone layout; the desktop page opens on the hero under its floating bar. */
.promo {
  background: var(--brand); color: #fff;
  font-size: 13px; line-height: 1.4; min-height: 44px;
  display: none; align-items: center; justify-content: center; text-align: center; padding: 8px var(--pad);
}
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1366px) { .promo { display: flex; } }
.promo a { text-decoration: underline; text-underline-offset: 2px; }
.promo p { margin: 0; }
/* The same-day clause fits one line only from tablet up, with "Same-day" as the link to the terms; the phone's
   short line keeps its "Delivery details" link (2026-10-16: "Make the delivery banner match checkout"). */
.promo-more { display: none; }
@media (min-width: 768px) { :root { --promo-h: 36px; } .promo { font-size: 12px; min-height: 36px; } .promo-more { display: inline; } .promo-link { display: none; } }

/* ---------- header ----------
   Desktop: one glass capsule floating 16px under the top of the window and
   20px in from each side (1472 x 48 at 1512, padding 4px 4px 4px 16px,
   rgba(239,238,236,.8) with blur(40px), as measured on the reference's bar)
   with the full radius and the line icons of the floating capsule Giorgio
   sent (18px icons, the label beside the search icon, 40px hover pills
   inside, concentric with the bar's 24px ends). Three separate capsules were
   tried and refused the same evening: "one section, not separate bubbles".
   The shell around the bar is transparent and lets taps through, so the 16px
   above it never swallows a click meant for the page under it. */
.hdr { position: sticky; top: 0; z-index: 50; padding: 16px 20px 0; pointer-events: none; }
.hdr-bar {
  pointer-events: auto; height: 48px; border-radius: 999px;
  padding: 4px 4px 4px 16px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  background: var(--glass); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 2px 14px rgba(18, 24, 26, .06);
  -webkit-backdrop-filter: blur(40px) saturate(160%); backdrop-filter: blur(40px) saturate(160%);
}
.hdr-burger { display: none; }
.hdr-logo { justify-self: start; display: inline-flex; align-items: center; height: 40px; }
.hdr-logo img { height: 26px; width: auto; }
.hdr-nav { display: flex; align-items: center; }
.hdr-nav a {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 12px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.hdr-nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .2s var(--ease);
}
.hdr-nav a:hover::after, .hdr-nav a[aria-current="page"]::after { transform: scaleX(1); }
.hdr-tools { justify-self: end; display: flex; align-items: center; gap: 2px; }
.hdr-search {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: background-color .2s var(--ease);
}
.hdr-search:hover, .hdr-bag:hover { background: rgba(18, 24, 26, .07); }
.hdr-bag {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: transparent; display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.hdr-search svg, .hdr-bag svg { width: 18px; height: 18px; }
.bag-count {
  position: absolute; top: -7px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px;  /* clear of the bag's top right corner */
  border-radius: 999px; background: var(--ink); color: #fff;
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 500; line-height: 1; text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Compact: phone, tablet, and any touch screen up to an iPad Pro in landscape.
   A plain white bar, flush with the edges: hamburger (left, client direction),
   logo, then Search and the bag. */
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1366px) {
  .hdr {
    padding: 0; pointer-events: auto;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .hdr .hdr-bar {
    height: 56px; border-radius: 0; background: none; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    padding: 0 calc(var(--pad) - 12px);
    grid-template-columns: auto auto 1fr; gap: 0;
  }
  .hdr-burger {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 0; background: none; cursor: pointer; border-radius: 50%;
  }
  .hdr-nav { display: none; }
  .hdr-logo { height: 44px; margin-left: 2px; }
  .hdr-logo img { height: 24px; }
  .hdr-search { height: 44px; padding: 0 10px; }
  .hdr-bag { width: 44px; height: 44px; }
  .hdr-search svg, .hdr-bag svg { width: 20px; height: 20px; }
  .bag-count { right: -2px; }  /* the bag sits 4px from the screen's edge: the badge stays inside it */
}
@media (max-width: 767px) {
  /* phones: the logo centred between the burger and the tools, 15% larger than the compact size; the search is its icon */
  .hdr .hdr-bar { grid-template-columns: 1fr auto 1fr; }
  .hdr-logo { justify-self: center; margin-left: 0; }
  .hdr-logo img { height: 27.6px; }
  .hdr-search { width: 44px; padding: 0; justify-content: center; gap: 0; }
  .hdr-search span { display: none; }
}
@media (min-width: 1025px) {
  :root { --hdr-h: 64px; }
}
@media (pointer: coarse) and (max-width: 1366px) {
  :root { --hdr-h: 57px; }
}

/* ---------- the compact menu ----------
   A drawer from the left at every compact width (wave 4): white, the close
   button, the logo centred at the header's size, the shop links; the page is
   dimmed beside it, so a tap outside has somewhere to land. Opaque: a menu is
   read, not looked through. The help pages are in the footer's groups. */
.menu {
  position: fixed; inset: 0 auto 0 0; width: min(86vw, 420px); z-index: 100; background: var(--paper);
  display: flex; flex-direction: column; gap: 28px;
  padding: 0 var(--pad) calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  border-right: 1px solid var(--line); box-shadow: 0 0 48px rgba(18, 24, 26, .12);
  transform: translateX(-100%); visibility: hidden;
  transition: transform .28s var(--ease), visibility 0s linear .28s;
}
.menu.open { transform: none; visibility: visible; transition: transform .28s var(--ease); }
.menu-top { height: 56px; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.menu-top .round-btn { justify-self: start; margin-left: -12px; }
.menu-logo { display: inline-flex; align-items: center; height: 44px; }
.menu-top img { height: 27.6px; width: auto; }
.menu-main { display: grid; }
.menu-main a {
  display: flex; align-items: center; min-height: 48px;
  font-size: 28px; line-height: 1.2; letter-spacing: -0.02em;
}
.menu-main a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.menu-main a:hover { color: var(--brand); }

.scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(18, 24, 26, .42);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility 0s linear .25s;
}
.scrim.open { opacity: 1; visibility: visible; transition: opacity .25s var(--ease); }

/* ---------- page furniture ---------- */
.wrap { padding-inline: var(--pad); }
main { display: block; padding-bottom: var(--section); }
main.flush { padding-bottom: 0; }
.crumbs-wrap { padding: 20px var(--pad) 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; list-style: none; font-size: 13px; color: var(--grey); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- home: hero ----------
   The reference's slider: one full-bleed photograph per slide, the copy and a
   white capsule on its bottom left over a wash that is measured, not guessed
   (scripts/gate_contrast.py, every slide), a glass arrow pair bottom right.
   On a wide screen the photograph runs under the floating header bar; in the
   compact layout it starts under the opaque header and the promo line. The
   height is a fixed ratio per width, never the viewport's height (a block sized
   by vh renders at sizes nothing in the CSS set; see docs/LESSONS.md): 9:16 on
   phones, 1:1 on tablets, 21:10 on a wide screen between 520 and 980px, each
   chosen so the capsule at the foot is on the first screen at every sweep
   size, a 1512 x 720 window included (gate_served, PRIMARY). */
.hero { position: relative; background: #1b2123; }
@media (min-width: 1025px) { .hero { margin-top: calc(-1 * var(--hdr-h)); } }
@media (pointer: coarse) and (min-width: 1025px) and (max-width: 1366px) { .hero { margin-top: 0; } }
.hero-track {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-track:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.hero-slide { position: relative; flex: 0 0 100%; width: 100%; aspect-ratio: 9 / 16; scroll-snap-align: start; scroll-snap-stop: always; }
@media (min-width: 768px) { .hero-slide { aspect-ratio: 1 / 1; } }
@media (max-width: 1024px) {
  /* The ratio is the preferred height; the cap is the first screen with the browser's bars shown
     (svh), less the promo line and the header, so the capsule is never under the fold on a phone. */
  .hero-slide { max-height: calc(100vh - var(--hdr-h) - var(--promo-h)); max-height: calc(100svh - var(--hdr-h) - var(--promo-h)); }
}
@media (min-width: 1025px) { .hero-slide { aspect-ratio: 21 / 10; min-height: 520px; max-height: 980px; } }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-media img.pos-top { object-position: 50% 12%; }
.hero-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(12, 16, 17, .82) 0%, rgba(12, 16, 17, .7) 38%, rgba(12, 16, 17, 0) 66%);
}
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: grid; gap: 14px; justify-items: start;
  padding: 0 var(--pad) clamp(28px, 3.2vw, 44px); color: #fff;
}
.hero-copy .t-hero { font-size: clamp(36px, 4.6vw, 72px); max-width: 14ch; }
.hero-copy p { font-size: 18px; line-height: 1.45; max-width: 36ch; text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.hero-copy .pill { margin-top: 10px; }
@media (max-height: 520px) { .hero-copy .t-hero { font-size: 28px; } }
/* The arrow pair shares the capsule's row, on the right, as a glass surface
   (navigation on the content layer); the copy above it keeps clear of it. */
.arrows-hero {
  position: absolute; right: var(--pad); bottom: clamp(28px, 3.2vw, 44px); z-index: 2;
  border-color: transparent; background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
}
.arrows-hero .arrow { width: 48px; height: 44px; }
/* On a phone the slider is three portrait photographs with the same arrows; the wide
   screens' second slide is not shown there, and the phone slides are not shown on a
   wide screen. Each hidden slide's photograph is lazy, so a hidden one is never fetched
   (assets/site.js). */
.hero-slide-m { display: none; }
@media (max-width: 767px) {
  .hero-slide-m { display: block; }
  .hero-slide-d { display: none; }
}

/* ---------- sections ---------- */
.sec { padding-top: var(--section); }
.sec-head { padding: 0 var(--pad); margin-bottom: clamp(24px, 3.2vw, 48px); }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.sec-head p { margin-top: 12px; color: var(--grey); font-size: 18px; max-width: 60ch; }

/* ---------- carousels ----------
   The row that scrolls is the element that snaps (scroll-snap and overflow on
   the same box) and its side padding is repeated as scroll padding, so a card
   comes to rest on the page margin, not under it. Card width is worked out
   from the section's own width (container query), so a peek of the next card
   always shows: 4 and a half on desktop, 2 and a bit on a tablet, 1 and most
   of another on a phone. */
.rail { container-type: inline-size; }
.rail .sec-head { padding-inline: var(--pad-rail); }
.rail-track {
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad-rail);
  padding: 0 var(--pad-rail); scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-list { display: flex; gap: var(--rail-gap); list-style: none; width: max-content; }
.rail-item { flex: 0 0 auto; width: var(--rail-w); scroll-snap-align: start; position: relative; }
.rail { --rail-gap: 12px; --rail-w: calc((100cqi - var(--pad-rail) - var(--rail-gap)) / 1.7); }
@media (min-width: 768px) { .rail { --rail-gap: 20px; --rail-w: calc((100cqi - var(--pad-rail) - 2 * var(--rail-gap)) / 2.4); } }
@media (min-width: 1200px) { .rail { --rail-w: calc((100cqi - var(--pad-rail) - 4 * var(--rail-gap)) / 4.5); } }
.rail-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(28px, 3vw, 44px) var(--pad-rail) 0;
}
.arrows { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; }
.arrow {
  width: 48px; height: 42px; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; border-radius: 999px; color: var(--ink);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.arrow:hover:not(:disabled) { background: rgba(18, 24, 26, .07); }
.arrow:disabled { color: #a9aeb0; cursor: default; }

/* ---------- product card ----------
   MOON's photographs are opaque: most are shot on white, some on grey. Laid
   on the grey ground with multiply, white becomes the ground and the garment
   is untouched, which gives every card the reference's grey studio look
   without editing a single file. */
.card { display: flex; flex-direction: column; height: 100%; }
.card-link { display: flex; flex-direction: column; gap: 12px; color: inherit; }
.card-media { position: relative; aspect-ratio: 5 / 6; background: var(--photo); overflow: hidden; isolation: isolate; }
.card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%; mix-blend-mode: multiply;
  transition: opacity .35s var(--ease);
}
/* The second photo is fetched on the first hover (site.js) and swaps in only
   once it has loaded, so the card never goes blank in between. */
.card-alt { opacity: 0; }
@media (hover: hover) {
  /* once a colour is chosen the hover photograph (of the first colour) stays out */
  .card:not(.chosen):hover .card-alt.ready { opacity: 1; }
  .card:not(.chosen):hover .card-img:not(.card-alt):has(+ .card-alt.ready) { opacity: 0; }
}
.card-flag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font-size: 12px; font-weight: 500; line-height: 1.5;
}
.card-flag.sale { background: var(--accent); color: #fff; }
.card-meta {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 6px 16px;
  padding: 0 20px;
}
.card-title { font-size: 16px; font-weight: 500; line-height: 1.35; min-width: 0; }
.card-price {
  font-size: 14px; line-height: 1.6; text-align: right; white-space: nowrap; flex: none;
  display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums;
}
.card-price .now { color: var(--accent); }
.card-price del { color: var(--grey); font-size: 13px; }
.card-note { font-size: 12px; color: var(--grey); }
/* The colour row: buttons drawn as 16px dots, a hit area of 24px with a mouse
   and 44px under a finger (the row then scrolls sideways inside the card
   instead of wrapping). The first dot lines up with the title: the row's
   padding is the words' padding less the dot's inset in its button. */
.card-swatches { display: flex; align-items: center; gap: 2px; padding: 0 16px; margin-top: 10px; }
.sw { width: 24px; height: 24px; padding: 0; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.sw::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(18, 24, 26, .16); }
.sw[aria-checked="true"]::before { box-shadow: 0 0 0 1px var(--paper), 0 0 0 2px var(--ink); }
.sw:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.sw-more { font-size: 12px; color: var(--grey); padding-left: 4px; }
@media (pointer: coarse) {
  .sw { width: 44px; height: 44px; }
  .card-swatches { gap: 0; padding: 0 6px; margin-top: 0; overflow-x: auto; scrollbar-width: none; }
  .card-swatches::-webkit-scrollbar { display: none; }
}
@media (max-width: 767px) {
  .card-link { gap: 10px; }
  .card-meta { flex-direction: column; padding: 0 4px; }
  .card-title { font-size: 14px; }
  .card-price { font-size: 13px; text-align: left; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 0 8px; }
  .card-swatches { padding: 0; margin-top: 6px; }
}
@media (max-width: 767px) and (pointer: coarse) {
  .card-meta { padding: 0 14px; }     /* the title over the first dot, which sits 14px into its 44px button */
  .card-swatches { margin-top: 0; }
}

/* ---------- product grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px var(--gap-grid); list-style: none; padding: 0 var(--pad);
}
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px var(--gap-grid); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid > li { min-width: 0; }
.grid[aria-busy="true"] > li { opacity: .5; }

/* ---------- home: two-up feature ---------- */

/* ---------- home: categories ---------- */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; list-style: none; padding: 0 var(--pad); }
@media (min-width: 768px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 0; } }
@media (min-width: 1200px) { .cats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cat { display: block; }
.cat-media { display: block; aspect-ratio: 5 / 6; background: var(--photo); overflow: hidden; isolation: isolate; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.cat:hover .cat-media img { transform: scale(1.03); }
.cat-label { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 8px 0; text-align: center; font-size: 16px; font-weight: 500; }
.cat:hover .cat-label { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- band ---------- */
.band {
  background: var(--band); margin-top: var(--section);
  padding: clamp(32px, 4vw, 56px) var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
}
.band p { margin-top: 16px; font-size: 18px; line-height: 1.45; max-width: 52ch; }

/* ---------- footer ---------- */
.ft { background: var(--brand); color: #fff; padding: 48px var(--pad) calc(32px + env(safe-area-inset-bottom)); }
.ft-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.ft h2 { font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.ft ul { list-style: none; display: grid; gap: 4px; }
.ft a { color: rgba(255, 255, 255, .86); }
.ft a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ft-col ul a, .ft address a { display: inline-flex; align-items: center; min-height: 30px; font-size: 15px; }
.ft address a { display: flex; }  /* each on its own row without a <br>, which added an empty line after a 30px box */
.ft address { font-style: normal; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.ft-hours { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .86); margin-top: 10px; }
.ft-logo { display: inline-flex; margin-bottom: 16px; }
.ft-logo img { height: 28px; width: auto; }
.ft-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 56px; font-size: 14px; color: rgba(255, 255, 255, .86);
}
.ft-bottom p { max-width: calc(100% - 80px); }   /* clear of the WhatsApp disc at the page's end */
.ft-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; }
@media (max-width: 1023px) { .ft-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  /* one column of four folded groups (site.js opens one on a tap), the address above, the legal line below:
     two columns of seventeen links ran a screen and a half (Giorgio, wave 2: "footer on mobile is too long") */
  .ft { padding-top: 32px; }
  .ft-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ft-col { border-top: 1px solid rgba(255, 255, 255, .22); }
  .ft-col:first-child { border-top: 0; padding-bottom: 20px; }
  .ft-col h2 { margin-bottom: 0; }
  .ft-col > h2:not(:has(.ft-toggle)) { padding: 14px 0 8px; }   /* without scripts: a plain heading over its open list */
  .ft-col ul { padding-bottom: 12px; }
  .ft-toggle {
    width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer;
  }
  .ft-toggle svg { width: 20px; height: 20px; flex: none; transition: transform .2s var(--ease); }
  .ft-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .ft-bottom { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); flex-direction: column; gap: 6px; }
}

/* ---------- collection pages ---------- */
.plp-head { padding: clamp(24px, 3vw, 44px) var(--pad) 0; display: grid; gap: 16px; }
/* From 1200 the head is two columns, title and facts beside the lede and note,
   so the first product row starts above the fold on a 720px-tall window. */
@media (min-width: 1200px) {
  .plp-head { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-auto-flow: row dense; gap: 12px 64px; align-items: end; }
  .jump + .garment { padding-top: 48px; }
  .plp-head h1, .plp-facts { grid-column: 1; }
  .plp-lede, .plp-note { grid-column: 2; }
}
.plp-facts { font-size: 18px; color: var(--grey); }
.plp-lede { font-size: 18px; line-height: 1.5; max-width: 64ch; }
.plp-lede + .plp-lede { margin-top: -4px; }
.plp-note { font-size: 14px; color: var(--grey); max-width: 70ch; }
.plp-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; padding: 28px var(--pad) 0; }
/* On a phone the head keeps the title, the facts and one line of lede; the
   second paragraph waits for a wider screen so the first row of products
   starts on the first screen. */
@media (max-width: 767px) {
  .plp-lede + .plp-lede, .plp-note { display: none; }
  .jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .jump::-webkit-scrollbar { display: none; }
  .jump .pill { flex: none; }
  .garment-head > div { display: flex; align-items: baseline; gap: 10px; }
  .garment-head p { margin-top: 0; }
  .garment-head { margin-bottom: 16px; }
}
.jump .pill { padding-inline: 18px; }
.jump .pill span { color: var(--grey); font-weight: 400; }
.garment { padding-top: clamp(44px, 5vw, 72px); scroll-margin-top: calc(var(--hdr-h) + 8px); }
.garment-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px;
  padding: 0 var(--pad); margin-bottom: 28px;
}
.garment-head p { color: var(--grey); margin-top: 6px; }
.garment.single { padding-top: 24px; }
.garment.single .garment-head { align-items: center; margin-bottom: 16px; }
.garment.single .garment-head p { margin-top: 0; }

/* ---------- shop (filters) ---------- */
.shop-head { padding: clamp(24px, 3vw, 44px) var(--pad) 0; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.shop-count { color: var(--grey); font-size: 16px; }
.shop-bar { display: flex; gap: 8px; align-items: center; padding: 24px var(--pad) 0; }
.search {
  flex: 1; min-width: 0; max-width: 520px; display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--chip);
  cursor: text;
}
.search svg { width: 18px; height: 18px; flex: none; color: var(--grey); }
.search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: 16px; padding: 12px 0;
}
.search input::placeholder { color: var(--grey); opacity: 1; }
.search:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.filter-btn { display: none; }
.filter-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums;
}
.pill-line:hover .filter-count { background: #fff; color: var(--ink); }
.results { min-width: 0; }
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0 32px; padding: 32px var(--pad) 0; align-items: start; }
.shop-layout .grid { padding: 0; }
@media (min-width: 1200px) { .shop-layout .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fpanel {
  position: sticky; top: calc(var(--hdr-h) + 16px);
  max-height: calc(100vh - var(--hdr-h) - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding-right: 18px; scrollbar-gutter: stable;   /* the scrollbar keeps clear of "Clear all" and the option labels */
  scrollbar-width: thin; scrollbar-color: #c9cdce transparent;
}
.fpanel::-webkit-scrollbar { width: 6px; }
.fpanel::-webkit-scrollbar-thumb { background: #c9cdce; border-radius: 999px; }
/* The sidebar's head is a small title with "Clear all" beside it; the close
   button and the foot belong to the sheet only. */
.fpanel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
/* a button styled as the text link it is: no box, the only boxy control on the page otherwise */
.fpanel-clear { border: 0; background: none; padding: 0; color: inherit; font-family: inherit; cursor: pointer; }
.fpanel-head .t-section { font-size: 18px; letter-spacing: -0.01em; }
.fpanel-head .round-btn, .fpanel-foot { display: none; }
.opts-list { display: grid; gap: 0; padding-bottom: 16px; }
.radio, .check { display: flex; align-items: center; gap: 12px; min-height: 40px; cursor: pointer; font-size: 15px; }
.radio input, .check input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 22px; height: 22px; border: 1px solid #8a9093; background: var(--paper);
  display: grid; place-items: center; cursor: pointer;
}
.radio input { border-radius: 50%; }
.radio input:checked { border-color: var(--ink); }
.radio input:checked::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.check input { border-radius: var(--r-box); }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after {
  content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
.radio input:focus-visible, .check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt-count { color: var(--grey); font-variant-numeric: tabular-nums; }
.more { display: flex; justify-content: center; padding-top: 56px; }

/* Below the desktop layout the panel becomes the reference's full-screen
   sheet: a large "Filters" title and a round close button, the groups as
   accordions, and a bar that stays at the bottom with "Clear all" and
   "View N products". */
@media (max-width: 1023px) {
  .shop-layout { display: block; padding-top: 24px; }
  .filter-btn { display: inline-flex; }
  .fpanel {
    position: fixed; inset: 0; z-index: 100; max-height: none;
    background: var(--paper); display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; overflow: hidden;
    transition: opacity .2s var(--ease), visibility 0s linear .2s;
  }
  .fpanel.open { opacity: 1; visibility: visible; transition: opacity .2s var(--ease); }
  .fpanel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px var(--pad) 8px; flex: none; border-bottom: 0; margin-bottom: 0;
  }
  .fpanel-head .t-section { font-size: clamp(28px, 4vw, 40px); }
  .fpanel-head .round-btn { display: inline-flex; }
  .fpanel-head .fpanel-clear { display: none; }   /* the sheet's foot carries Clear all */
  .fpanel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--pad) 24px; }
  .fpanel-foot {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: none;
    padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line); background: var(--paper);
  }
  .fpanel-foot .pill { min-height: 48px; }
  .fpanel .acc > summary { font-size: 24px; letter-spacing: -0.01em; font-weight: 400; min-height: 64px; }
  .radio, .check { font-size: 16px; min-height: 44px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .fpanel { right: auto; width: min(440px, 100%); border-right: 1px solid var(--line); box-shadow: 0 0 48px rgba(18, 24, 26, .12); }
}

/* ---------- accordions: one style for every disclosure on the site ---------- */
.acc { border-bottom: 1px solid var(--line); }
.acc > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; cursor: pointer; font-size: 16px; font-weight: 500;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after {
  content: ''; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--ease);
}
.acc[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.acc-body { padding: 0 0 20px; color: var(--ink); font-size: 16px; line-height: 1.6; }
/* the activities a listing is made for (its own description's words, or MOON's content file) */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.tags li { font-size: 13px; line-height: 1; padding: 8px 12px; border-radius: 999px; background: var(--chip); color: var(--ink); }
.acc-body a { text-decoration: underline; text-underline-offset: 3px; }
.accs { border-top: 1px solid var(--line); }
.acc-lg > summary { font-size: clamp(18px, 1.6vw, 22px); font-weight: 400; letter-spacing: -0.01em; min-height: 72px; }
.acc-lg .acc-body { font-size: 17px; max-width: 68ch; }

/* ---------- product page ---------- */
.pdp {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr);
  grid-template-areas: "gallery buy" "info buy";
  gap: 0 clamp(32px, 4vw, 72px); align-items: start; padding: 20px var(--pad) 0;
}
.gallery { grid-area: gallery; container-type: inline-size; min-width: 0; position: relative; }
.buy { grid-area: buy; }
.stage {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  height: min(120cqi, calc(100vh - var(--hdr-h) - 56px)); min-height: 360px;
  background: var(--photo); isolation: isolate;
}
.stage::-webkit-scrollbar { display: none; }
.stage-img {
  flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
  scroll-snap-align: center; scroll-snap-stop: always;
}
.stage-btn {
  position: absolute; top: calc(min(120cqi, calc(100vh - var(--hdr-h) - 56px)) / 2); z-index: 2;
  translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
  background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  transition: background-color .2s var(--ease);
}
.stage-btn:hover { background: var(--paper); }
.stage-btn:disabled { visibility: hidden; }
.stage-prev { left: 16px; } .stage-next { right: 16px; }
@media (hover: none) { .stage-btn { display: none; } }
.stage-bar { position: relative; height: 2px; background: var(--line); display: none; }
.stage-bar span {
  position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink);
  width: calc(100% / var(--n, 1)); transform: translateX(calc(100% * var(--i, 0)));
  transition: transform .25s var(--ease);
}
.thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
  flex: 0 0 72px; aspect-ratio: 5 / 6; padding: 0; border: 0; cursor: pointer;
  background: var(--photo); position: relative; isolation: isolate; opacity: .7;
  transition: opacity .2s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.thumb:hover, .thumb[aria-current="true"] { opacity: 1; }
.thumb[aria-current="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--ink); }

.buy { position: sticky; top: calc(var(--hdr-h) + 24px); padding-bottom: 8px; min-width: 0; }
.buy-kind { font-size: 14px; color: var(--grey); }
.buy-title { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin-top: 8px; text-wrap: balance; }
.buy-price { font-size: 18px; margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.buy-price .now { color: var(--accent); }
.buy-price del { color: var(--grey); font-size: 16px; }
.buy-price .for { color: var(--grey); font-size: 15px; }
.buy-facts { font-size: 14px; color: var(--grey); margin-top: 6px; }
.buy-note { margin-top: 12px; font-size: 14px; color: var(--grey); }
.buy-need { color: var(--ink); font-weight: 500; }   /* the ask after a press with no size chosen */
.sold-note { margin-top: 16px; font-size: 15px; font-weight: 500; }
.opt { margin-top: 28px; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; min-height: 24px; }
.opt-label { font-size: 14px; font-weight: 500; }
.opt-label .opt-val { font-weight: 400; color: var(--grey); margin-left: 6px; }
.opt-row .tlink { min-height: 24px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-left: -4px; }
.swatch-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
  background: none; display: grid; place-items: center; cursor: pointer;
}
.swatch-btn::before {
  content: ''; width: 34px; height: 34px; border-radius: 50%; background: var(--sw, var(--photo));
  box-shadow: inset 0 0 0 1px rgba(18, 24, 26, .16);
}
.swatch-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.swatch-btn:disabled { cursor: not-allowed; }
.swatch-btn:disabled::before { opacity: .35; }
.swatch-btn:disabled::after {
  content: ''; position: absolute; width: 34px; height: 1.5px; background: var(--ink);
  transform: rotate(-45deg); opacity: .6;
}
.swatch-txt {
  min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--paper); font-size: 14px; cursor: pointer;
}
.swatch-txt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 500; }
.swatch-txt:disabled { color: #8c9294; text-decoration: line-through; cursor: not-allowed; }
.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.size-btn {
  min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r-box);
  background: var(--paper); font-size: 15px; cursor: pointer; padding: 6px;
  transition: border-color .15s var(--ease);
}
.size-btn:hover:not(:disabled) { border-color: var(--ink); }
.size-btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 500; }
.size-btn:disabled {
  color: #8c9294; cursor: not-allowed;
  background: linear-gradient(to top right, transparent calc(50% - .6px), #c3c7c8 calc(50% - .6px), #c3c7c8 calc(50% + .6px), transparent calc(50% + .6px));
}
.buy-add { margin-top: 32px; }
.buy .accs { margin-top: 36px; }
.buy-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 4px; }
.buy-links .tlink { min-height: 44px; }

@media (max-width: 899px) {
  .pdp { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "buy" "info"; padding-top: 12px; }
  .gallery { margin-inline: calc(-1 * var(--pad)); }
  .stage { height: min(120cqi, 82vh); min-height: 0; }
  .stage-bar { display: block; }
  .thumbs { display: none; }
  .buy { position: static; padding-top: 20px; }
  .pdp-page .crumbs-wrap { padding-top: 14px; }
}

/* ---------- sticky buy bar (phone and tablet portrait) ----------
   A floating glass action bar, inset 12px from the screen edges, so its
   radius is the screen's less the inset; the capsule inside it is concentric
   at any inset. Shown only while the page's own button is off screen and
   the footer is not in view: one buy action on screen at a time. */
.buybar { display: none; }
@media (max-width: 899px) {
  /* Focus and anchors land above the floating bar, never under it. */
  :root:has(.has-buybar) { scroll-padding-bottom: 100px; }
  .buybar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70;
    display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px;
    border-radius: var(--r-float); background: var(--glass);
    -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 10px 30px rgba(18, 24, 26, .14), inset 0 0 0 1px rgba(255, 255, 255, .7);
    transform: translateY(calc(100% + 32px)); visibility: hidden;
    transition: transform .25s var(--ease), visibility 0s linear .25s;
  }
  .buybar.show { transform: none; visibility: visible; transition: transform .25s var(--ease); }
  .buybar-price { font-size: 16px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .buybar .pill { flex: 1; min-height: 48px; }
  body.has-buybar main { padding-bottom: calc(var(--section) + 72px); }
}

/* ---------- WhatsApp ---------- */
/* One floating disc, bottom right on every page, to MOON's WhatsApp line (Giorgio, 2026-10-16).
   Solid brand green, not glass: a third party's mark on the content layer. Under the scrim (90)
   and the layers (100); while a floating bar shows (buy bar, view bar, order bar) it climbs
   above the bar, and drops back when the bar leaves. */
.wa {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 24px rgba(18, 24, 26, .22), inset 0 0 0 1px rgba(255, 255, 255, .35);
  transition: bottom .25s var(--ease), transform .15s var(--ease);
}
.wa svg { width: 30px; height: 30px; }
.wa:hover { transform: scale(1.06); }
.wa:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
body:has(.buybar.show) .wa, body:has(.vbar.show) .wa { bottom: calc(16px + 64px + 12px + env(safe-area-inset-bottom)); }
/* On a phone the hero's arrows sit at the screen's foot at rest, where the disc is: they step left of it. */
@media (max-width: 767px) { .hero .arrows-hero { right: calc(var(--pad) + 56px + 12px); } }
/* Focus and anchors land above the disc, never under it (the floating bars' own rules below raise this further). */
:root { scroll-padding-bottom: 88px; }
@media print { .wa { display: none; } }

/* ---------- bag ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(440px, 100%); background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px 12px 24px; border-bottom: 1px solid var(--line); min-height: 68px;
}
.drawer-head h2 { font-size: 24px; letter-spacing: -0.02em; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px; }
.drawer-foot { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer-foot p { margin-top: 12px; font-size: 12px; color: var(--grey); text-align: center; }
.totals { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin-bottom: 16px; }
.line { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-media { width: 80px; aspect-ratio: 5 / 6; background: var(--photo); isolation: isolate; overflow: hidden; }
.line-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.line-title { font-size: 15px; font-weight: 500; line-height: 1.35; }
.line-opts { font-size: 14px; color: var(--grey); margin: 2px 0 10px; }
.line-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; cursor: pointer; font-size: 18px; }
.qty button:hover { background: var(--chip); }
.qty span { min-width: 24px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.linkish {
  border: 0; background: none; padding: 0; cursor: pointer; color: var(--grey);
  font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
  display: inline-flex; align-items: center; min-height: 32px;
}
.linkish:hover { color: var(--ink); }
.empty { text-align: center; padding: 64px 20px; display: grid; gap: 20px; justify-items: center; }
.empty p { font-size: 18px; }
.empty .empty-try { font-size: 15px; color: var(--grey); margin-top: -8px; }
.empty-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- prose pages ---------- */
.doc-head { padding: clamp(32px, 5vw, 80px) var(--pad) 0; display: grid; gap: 20px; }
.doc-head .t-lede { color: var(--grey); max-width: 60ch; }
.doc-body { padding: clamp(32px, 4vw, 56px) var(--pad) 0; }
.prose { max-width: 70ch; font-size: 17px; line-height: 1.65; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.2; letter-spacing: -0.02em; margin-top: 48px; }
.prose h3 { font-size: 20px; font-weight: 500; line-height: 1.3; margin-top: 32px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose .muted { font-size: 15px; }
.doc-note { margin-top: 8px; padding: 16px 20px; background: var(--band); border-left: 2px solid var(--brand); font-size: 15px; max-width: 70ch; }
.doc-photo { margin-top: clamp(32px, 4vw, 56px); }
.doc-photo img { width: 100%; height: clamp(280px, 42vw, 640px); object-fit: cover; object-position: 50% 38%; }
.facts-list { list-style: none; border-top: 1px solid var(--ink); max-width: 70ch; }
.facts-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts-list strong { font-weight: 500; }
.facts-list span { color: var(--grey); }
@media (max-width: 599px) { .facts-list li { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--ink); max-width: 1040px; }
.contact-list li { padding: 18px 24px 18px 0; border-bottom: 1px solid var(--line); }
.contact-list p:first-child { font-size: 14px; color: var(--grey); }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }
.tbl-wrap { overflow-x: auto; max-width: 900px; border-top: 1px solid var(--ink); }
.tbl { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; }
.tbl caption { text-align: left; font-size: 14px; font-weight: 500; padding: 0 0 12px; caption-side: top; }
.tbl th, .tbl td { padding: 14px 16px 14px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-size: 14px; font-weight: 500; color: var(--grey); }
.tbl tbody th { font-weight: 500; }
.tbl td { font-variant-numeric: tabular-nums; }
.doc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.nf { padding: clamp(48px, 9vw, 140px) var(--pad) 0; display: grid; gap: 24px; justify-items: start; }
.nf p { font-size: 18px; max-width: 46ch; color: var(--grey); }

/* ---------- touch: every control a finger can reach is at least 44px ---------- */
@media (pointer: coarse) {
  .crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: 4px; margin-inline: -4px; }
  /* list links fill their row, so the whole line is the target, not only the word */
  .ft-col ul a, .ft address a, .ft-legal a { display: flex; align-items: center; min-height: 44px; }
  .ft-logo { min-height: 44px; align-items: center; margin: -8px 0 8px; }
  .qty button { width: 44px; height: 44px; }
  .linkish { min-height: 44px; }
  .opt-row .tlink { min-height: 44px; }
  .tlink { min-height: 44px; }
  .arrow { height: 44px; }
  .radio, .check { min-height: 44px; }
  /* Links inside a sentence keep their line box (a 44px inline-flex box opened
     gaps between lines) and grow their hit area with a pseudo-element instead:
     WCAG 2.5.8 exempts inline links, Apple's 44pt is met by the extended area. */
  .plp-note a, .promo a, .acc-body a, .prose a, .contact-list a, .doc-note a, .form-note a, .co-note a, .sec-head a, .story-also a { position: relative; white-space: nowrap; }   /* one fragment, one hit area */
  .plp-note a::after, .promo a::after, .acc-body a::after, .prose a::after, .contact-list a::after, .doc-note a::after, .form-note a::after, .co-note a::after, .sec-head a::after, .story-also a::after {
    content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%);
  }
}

/* ---------- compact rails: the product page's rows, cards less than half the size ---------- */
.rail-sm { padding-top: 48px; --rail-gap: 10px; --rail-w: calc((100cqi - var(--pad-rail) - 2 * var(--rail-gap)) / 2.6); }
@media (min-width: 768px) { .rail-sm { --rail-gap: 14px; --rail-w: calc((100cqi - var(--pad-rail) - 4 * var(--rail-gap)) / 4.5); } }
@media (min-width: 1200px) { .rail-sm { --rail-w: calc((100cqi - var(--pad-rail) - 6 * var(--rail-gap)) / 6.5); } }
.rail-sm .sec-head { margin-bottom: 20px; }
.rail-sm .card-link { gap: 8px; }
.rail-sm .card-meta { flex-direction: column; gap: 2px; padding: 0 8px; }
.rail-sm .card-title { font-size: 14px; }
.rail-sm .card-price { font-size: 13px; text-align: left; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 0 8px; }
.rail-sm .card-swatches { padding: 0 4px; margin-top: 6px; }
.rail-sm .rail-foot { padding-top: 20px; }
@media (pointer: coarse) { .rail-sm .card-meta { padding: 0 14px; } .rail-sm .card-swatches { padding: 0; margin-top: 0; } }

/* ---------- product page: context under the photographs, and a review ---------- */
.pdp-info { grid-area: info; padding-top: 48px; max-width: 72ch; }
.pdp-info .lede { font-size: 17px; line-height: 1.6; margin-top: 14px; }
.pdp-info .accs { margin-top: 28px; }
.pdp-info .accs-first { margin-top: 0; }
.pdp-info .acc-body a, .pdp-info .lede a { text-decoration: underline; text-underline-offset: 3px; }
.reviews { margin-top: 56px; }
.reviews .pill { margin-top: 20px; }
.review-form { display: grid; gap: 18px; margin-top: 24px; max-width: 520px; }
.review-form .field { margin: 0; padding: 0; border: 0; min-width: 0; }
.review-form label, .review-form legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.review-form input[type="text"], .review-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-box);
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
}
.review-form input:focus-visible, .review-form textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.review-form [aria-invalid="true"] { border-color: #a4232b; }
.review-form .err { color: #a4232b; font-size: 14px; margin-top: 6px; }
.review-form .err:empty { display: none; }
.form-note { font-size: 14px; color: var(--grey); }
.stars { display: flex; width: max-content; border-radius: 4px; }
.star { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--ink); margin: 0; }
.star svg { width: 28px; height: 28px; }
.stars:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.stars:has(input[value="1"]:checked) .star:nth-child(-n+1) svg, .stars:has(input[value="2"]:checked) .star:nth-child(-n+2) svg,
.stars:has(input[value="3"]:checked) .star:nth-child(-n+3) svg, .stars:has(input[value="4"]:checked) .star:nth-child(-n+4) svg,
.stars:has(input[value="5"]:checked) .star:nth-child(-n+5) svg { fill: currentColor; }
@media (max-width: 899px) { .pdp-info { padding-top: 40px; } }

/* ---------- phone listings: the reference's denser page and its bottom bar ----------
   A bigger title, no lede, tighter rows, two columns; a floating glass bar inset
   12px from the screen edges (radius: the screen's less the inset; its capsule
   buttons are concentric at any inset) with Filter and sort and three views. */
.vbar { display: none; }
@media (max-width: 767px) {
  .plp-head { padding-top: 12px; gap: 6px; }
  .plp-head h1 { font-size: 38px; }
  .plp-facts { font-size: 15px; }
  .plp-lede { display: none; }
  .jump { padding-top: 14px; }
  .garment { padding-top: 32px; }
  .garment-head { margin-bottom: 12px; }
  .garment-head .tlink { display: none; }   /* the bottom bar carries Filter and sort */
  .garment.single { padding-top: 16px; }
  .grid { gap: 22px var(--gap-grid); }
  .filter-btn { display: none; }            /* the bottom bar's button opens the sheet */
  :root:has(.has-vbar) { scroll-padding-bottom: 92px; }
  .vbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70;
    display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px;
    border-radius: var(--r-float); background: var(--glass);
    -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 10px 30px rgba(18, 24, 26, .14), inset 0 0 0 1px rgba(255, 255, 255, .7);
    transform: translateY(calc(100% + 32px)); visibility: hidden;
    transition: transform .25s var(--ease), visibility 0s linear .25s;
  }
  .vbar.show { transform: none; visibility: visible; transition: transform .25s var(--ease); }
  .vbar-filter {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border: 0;
    border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  }
  .vbar-filter svg { width: 20px; height: 20px; }
  .vbar-filter .filter-count { background: #fff; color: var(--ink); }
  .vbar-views { display: inline-flex; gap: 2px; }
  .vbar-view { width: 44px; height: 44px; border: 0; background: none; border-radius: 999px; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
  .vbar-view svg { width: 22px; height: 22px; }
  .vbar-view[aria-pressed="true"] { background: var(--paper); box-shadow: 0 1px 3px rgba(18, 24, 26, .14); }
  html[data-grid-view="1"] .grid { grid-template-columns: minmax(0, 1fr); }
  html[data-grid-view="dense"] .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 0 3px; }
  html[data-grid-view="dense"] .grid .card-meta, html[data-grid-view="dense"] .grid .card-swatches, html[data-grid-view="dense"] .grid .card-flag { display: none; }
}

/* ---------- glass fallbacks: every glass surface, named in both ---------- */
/* ---------- shop by colour: the category tile on a ground tinted from the colour's own swatch ---------- */
.colour-tile .cat-media { background: var(--photo); background: color-mix(in srgb, var(--c) 28%, var(--photo)); }
@media (max-width: 767px) {  /* phones: a rail of 2.4 tiles, not a second grid under the category grid */
  .cats.colours { display: flex; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cats.colours::-webkit-scrollbar { display: none; }
  .cats.colours li { flex: 0 0 42%; scroll-snap-align: start; }
}
.colour-tile .cat-media img { object-position: 50% 0; height: 102%; }  /* the colour shows anywhere; keep the head in frame; the last 2% hides a photograph's dark bottom row */

/* ---------- footer: the social icon beside the address ---------- */
.ft-social { list-style: none; display: flex; gap: 8px; margin-top: 16px; }
.ft .ft-social a {  /* outranks .ft-col ul a, which lays the glyph at the box's left edge */
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0;
  margin-left: -11px;  /* a 44px target; the 22px glyph sits on the text's left edge */
  color: #fff; transition: color .2s var(--ease);
}
.ft .ft-social a:hover { color: rgba(255, 255, 255, .72); text-decoration: none; }
.ft-social svg { width: 22px; height: 22px; }

/* ---------- about page ----------
   The brand story as a page (redesigned 2026-10-16): a split hero with the figures as a
   full-width strip under it, a photo beside a brand-coloured panel, what MOON makes as four
   tiles with their counts, the published terms a buyer needs as three blocks, a closing
   band, the contact details as cards. Text sits on solid grounds only, so nothing here is
   measured over a photograph. Section heads are one step under the h1 (.t-story). */
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.t-story { font-size: clamp(28px, 3vw, 44px); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.story-hero { display: grid; gap: 28px; padding: clamp(12px, 2vw, 32px) var(--pad) 0; align-items: center; }
.story-copy { display: grid; gap: 18px; align-content: start; }
.story-copy .t-lede { color: var(--grey); max-width: 44ch; font-size: clamp(18px, 1.5vw, 22px); }
.story-copy > p:not(.t-lede):not(.eyebrow) { font-size: 17px; line-height: 1.6; max-width: 56ch; }
.story-copy .doc-cta { margin-top: 6px; }
.story-photo { margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--photo); order: -1; }  /* phone: the photograph first, square, so the title stays on the first screen at 360 */
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
/* The figures: one strip under the copy and the photograph, a rule above it */
.facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 8px; border-top: 1px solid var(--ink); }
.facts li { display: grid; gap: 6px; align-content: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts strong { font-size: clamp(28px, 2.6vw, 40px); font-weight: 500; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { font-size: 15px; color: var(--grey); }
@media (min-width: 768px) {
  .story-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
  .story-copy { padding-right: 16px; }
  .story-photo { order: 0; aspect-ratio: 4 / 5; }
  .facts { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-top: 16px; }
  .facts li { border-bottom: 0; padding: 24px 0 8px; }
}
@media (min-width: 1025px) { .story-hero { gap: 40px 80px; } .story-photo { aspect-ratio: 1; } }  /* a square: the copy is centred against it, so the column above it stays short */
.story-band { display: grid; margin-top: var(--section); }
.story-band-photo { margin: 0; aspect-ratio: 4 / 3; background: var(--photo); overflow: hidden; }
.story-band-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.story-band-panel { background: var(--brand); color: #fff; padding: clamp(32px, 4vw, 64px) var(--pad); display: grid; gap: 18px; align-content: center; }
.story-band-panel p { font-size: 17px; line-height: 1.6; max-width: 52ch; color: rgba(255, 255, 255, .92); }
.story-band-panel .story-quote { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; color: #fff; }
@media (min-width: 900px) {
  .story-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .story-band-photo { aspect-ratio: auto; min-height: 520px; }
  .story-band-panel { padding-left: clamp(40px, 5vw, 80px); padding-right: clamp(40px, 5vw, 80px); }
}
/* What MOON makes: four tiles, two per row on a phone (the sentence waits for a wider screen), four from 900px */
.story-tiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; padding: 0 var(--pad); }
.story-tile { display: grid; gap: 12px; color: inherit; }
.story-tile .cat-media { aspect-ratio: 4 / 5; }
.story-tile .cat-media img { object-position: 50% 0; }
.story-tile-body { display: grid; gap: 4px; }
.story-tile-body strong { font-size: clamp(17px, 1.4vw, 21px); font-weight: 500; letter-spacing: -0.01em; }
.story-tile-count { font-size: 14px; color: var(--grey); }
.story-tile-body > span:last-child { font-size: 15px; line-height: 1.5; color: var(--grey); margin-top: 2px; }
.story-tile:hover strong { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 599px) { .story-tile-body > span:last-child { display: none; } }
@media (min-width: 900px) { .story-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; } }
.story-also { padding: 0 var(--pad); margin-top: 24px; font-size: 16px; color: var(--grey); }
.story-also a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* The terms a buyer needs: three blocks on the band ground, one per row on a phone */
.story-terms { list-style: none; display: grid; gap: 12px; padding: 0 var(--pad); }
.story-term { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 24px; background: var(--band); border: 1px solid var(--line); }
.story-term .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--chip); background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand); display: grid; place-items: center; }
.story-term svg { width: 22px; height: 22px; }
.story-term h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.story-term p { margin-top: 8px; font-size: 16px; line-height: 1.55; }
.story-term a { display: inline-flex; align-items: center; min-height: 30px; margin-top: 8px; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .story-terms { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
/* The closing band: the copy on a tint of the brand colour beside one of the shop's own photographs */
.story-close { margin-top: var(--section); background: var(--band); background: color-mix(in srgb, var(--brand) 7%, #fff); display: grid; }
.story-close-panel { padding: clamp(40px, 5vw, 80px) var(--pad); display: grid; gap: 18px; justify-items: start; align-content: center; }
.story-close p { font-size: 17px; line-height: 1.6; max-width: 60ch; }
.story-close .doc-cta { margin-top: 8px; }
.story-close-photo { margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--photo); order: -1; }  /* phone: the photograph first, a square crop of the portrait */
.story-close-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
@media (min-width: 900px) {
  .story-close { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .story-close-photo { order: 0; aspect-ratio: 5 / 4; }  /* a window on the portrait, not its full height */
  .story-close-panel { padding-left: clamp(40px, 5vw, 80px); padding-right: clamp(40px, 5vw, 80px); }
}
.story-tags { font-weight: 600; color: var(--brand); }
.contact-cards { list-style: none; display: grid; gap: 12px; padding: 0 var(--pad); }
.contact-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 20px; background: var(--band); border: 1px solid var(--line); }
.contact-card .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--chip); background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand); display: grid; place-items: center; }
.contact-card svg { width: 20px; height: 20px; }
.contact-card p:first-child { font-size: 14px; color: var(--grey); padding-top: 2px; }
.contact-card p + p { margin-top: 4px; font-size: 17px; line-height: 1.5; }
.contact-card a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1025px) {  /* the heading and hours beside a 2 x 2 of cards: no card stretched to the address's height */
  .contact-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 48px; align-items: start; }
  .contact-sec .sec-head { margin-bottom: 0; padding-right: 0; }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hdr-bar, .pill-glass, .stage-btn, .buybar, .arrows-hero, .vbar { background: var(--glass-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .hdr-bar, .pill-glass, .stage-btn, .buybar, .arrows-hero, .vbar {
    background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}

/* ---------- reduced motion: nothing moves, everything is shown ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------------- checkout ----------------
   The form on the left, the order on the right (a grey panel, sticky from
   1025px with the Place order button in it); under 1025px the order folds to
   one line above the fields and the form's own button closes it, with the
   product page's floating bar while that is off screen. Inputs and option
   cards share the size box's corner (nothing rounded wraps them). Errors are
   the one red on the site (6.5:1 on white), and a field's hint steps aside
   while its error shows. */
.co { --err: #b4271f; padding: 28px var(--pad) var(--section); }
.co-grid { display: grid; gap: 32px; }
.co-done[hidden], .co [data-order-empty][hidden], .co-form[hidden] { display: none; }
.co-main { min-width: 0; }
@media (min-width: 1025px) {
  .co-grid { grid-template-columns: minmax(0, 760px) minmax(380px, 440px); gap: clamp(48px, 6vw, 88px); justify-content: space-between; align-items: start; }
  .co-summary { position: sticky; top: calc(var(--hdr-h) + 24px); }
}
@media (max-width: 1024px) {   /* the folded order line above the fields (lululemon's order); the confirmation first once placed */
  .co-summary { order: -1; }
  .co.is-done .co-summary { order: 1; }
}
.co-form { display: grid; gap: 40px; }
.co-sec { display: grid; gap: 18px; }
.co-sec h2, .co-fold-line h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.co-form .field { margin: 0; padding: 0; border: 0; min-width: 0; }
.co-form label:not(.radio), .co-form legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.co-form .opt { font-weight: 400; color: var(--grey); }
.co-form input:not([type="radio"]), .co-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-box);
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
}
.co-form textarea { resize: vertical; }
.co-form input:focus-visible, .co-form textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.co-form [aria-invalid="true"] { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
.co-form [aria-invalid="true"]:focus-visible { outline-color: var(--err); }   /* one ring on an invalid field, in its colour */
.hint { margin-top: 6px; font-size: 13px; color: var(--grey); }
.co-form .err { margin-top: 6px; font-size: 14px; color: var(--err); }
.co-form .err:empty { display: none; }
.co-form .field:has(.err:not(:empty)) .hint { display: none; }   /* the error says it; no two lines under one field */
.co-opts { display: grid; gap: 10px; }
.co-opt { align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-box); }
.co-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.co-opt input { margin-top: 1px; }
.co-opt span { display: grid; gap: 2px; }
.co-opt b { font-weight: 500; }
.co-opt small { font-size: 13px; color: var(--grey); }
.co-err { font-size: 15px; color: var(--err); }
.co-err:empty { display: none; }
.co-narrow-only, .co-summary-act { display: grid; gap: 14px; }
.form-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.co-summary { background: var(--chip); padding: 20px 24px 24px; border-radius: var(--r-box); display: grid; gap: 16px; }
.co-fold summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: default; }
.co-fold summary::-webkit-details-marker { display: none; }
.co-fold summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.co-fold-meta { margin-left: auto; display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: var(--grey); font-variant-numeric: tabular-nums; }
.co-fold-meta b { font-weight: 500; color: var(--ink); font-size: 16px; }
.co-fold summary svg { width: 18px; height: 18px; flex: none; transform: rotate(90deg); transition: transform .2s var(--ease); }
.co-fold[open] summary svg { transform: rotate(-90deg); }
.co-fold-body { padding-top: 4px; }
@media (min-width: 1025px) {   /* always open beside the form: the line is the heading alone */
  .co-fold summary { pointer-events: none; }
  .co-fold-meta, .co-fold summary svg { display: none; }
}
.co-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-strong); }
.co-line:last-child { border-bottom: 0; }
.co-line-media { width: 64px; aspect-ratio: 5 / 6; background: var(--photo); isolation: isolate; overflow: hidden; }
.co-line-media img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.co-line .line-opts { margin-bottom: 0; }
.co-line.is-gone .line-title, .co-line.is-gone .price { color: var(--grey); text-decoration: line-through; }
.co-gone { font-size: 14px; margin: 4px 0 0; }
.co-gone .linkish { margin-left: 6px; }
.co-edit { margin-top: 10px; }
.co-totals { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-strong); font-variant-numeric: tabular-nums; }
.co-totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.co-totals .co-total { font-size: 18px; font-weight: 500; padding-top: 8px; border-top: 1px solid var(--line-strong); }
.co-note { font-size: 13px; color: var(--grey); }
.co-done { display: grid; gap: 20px; max-width: 640px; }
.co-done:focus { outline: 0; }   /* focus lands here for screen readers; it is not a control, so no ring */
.co-done .lede { font-size: 18px; line-height: 1.5; }
.co-done-facts { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.co-done-facts > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
.co-done-facts dt { color: var(--grey); }
.co-done .pill { justify-self: start; }
.co.is-done .co-summary-act, .co.is-done .co-edit { display: none; }
.co-noscript { margin-top: 24px; font-size: 15px; }
/* One Place order button per screen: the form's own up to 1024px (with the floating bar while it is off
   screen), the summary's from 1025px, where the summary is sticky beside the form. */
.co-desk-only { display: none; }
@media (min-width: 1025px) {
  .co-desk-only { display: grid; }
  .co-narrow-only { display: none; }
}
