/* ===========================================================================
   transplant.css — the theme-owned layer, loaded last.

   reference.css is the reference storefront's own stylesheet and styles every
   lifted surface. This file covers what the reference never had to: the platform
   surfaces (cart page + drawer, quickview, filters, account, search, blog) arrive
   in the base theme's class vocabulary, and the platform's JS toggles state classes
   (.hidden, .loading, .transparent, .price--on-sale) that need a visible half.
   Every rule below is written in the reference's tokens (--c-*, --fs-*, --radius-*),
   so a colour change in the theme editor reaches these surfaces too.

    1. Platform utilities + base-theme variable bridge
    2. Header additions (wrapper, float, announcement, logo, dropdowns, nav overflow)
    3. Drawers (menu accordions, search, cart drawer)
    4. Homepage additions (slideshow, the overlapping panel, rails, tabs, bands)
    5. Product card (add button contract, prices, badges, samples, skeletons, wishlist)
    6. Product page (gallery, price states, option chips + swatches, quantity, loading)
    7. Collection (toolbar, filter drawer, empty state, pagination)
    8. Cart (page + drawer skin of the base cart template)
    9. Quickview modal
   10. Content pages (rte, page, blog, article, search, 404, list-collections, stores)
   11. Platform-rendered controls (.btn aliases, promo UI, challenge, currency picker)
   12. Footer additions
   13. Motion kill-switch + reduced motion
   =========================================================================== */

/* ── 1. Platform utilities + base-theme variable bridge ─────────────────────
   The base component sheets (cart, price, quickview, account) paint from the
   base theme's comma-triplet variables. Mapped here to this theme's palette —
   the white ground, the warm near-black ink and the cocoa accent — so those
   surfaces sit on the same page. A few tokens the vendored account skin reads
   (the deeper accent, the plate, the label type) are derived here too. */
:root {
  --color-foreground: 28, 21, 16;
  --color-background: 255, 255, 255;
  --color-base-text: 28, 21, 16;
  --color-base-background-1: 255, 255, 255;
  --color-base-background-2: 243, 238, 230;
  --color-base-solid-button-labels: 255, 255, 255;
  --color-base-outline-button-labels: 28, 21, 16;
  --color-base-accent-1: 119, 57, 7;
  --color-base-accent-2: 119, 57, 7;
  --color-button: 119, 57, 7;
  --color-button-text: 255, 255, 255;
  --color-link: 119, 57, 7;
  --color-card-hover: 28, 21, 16;
  --alpha-button-background: 1;
  --alpha-button-border: 1;
  --alpha-link: 0.85;
  --duration-short: 100ms;
  --duration-default: 200ms;
  --duration-long: 500ms;
  --page-width: var(--container);
  --c-accent-deep: #5c2b05;
  --c-plate: var(--c-surface-2);
  --fs-label: var(--fs-small);
  --tracking-label: 0.02em;
}

/* author display rules (.btn, .textlink …) would otherwise beat the attribute */
[hidden] { display: none !important; }
.hidden { display: none !important; }
.hide { display: none !important; }
.visibility-hidden { visibility: hidden; }
html.no-js .no-js-hidden { display: none !important; }
.list-unstyled { margin: 0; padding: 0; list-style: none; }
.break { word-break: break-word; }
.right { text-align: right; }
.visually-hidden--inline { margin: 0; height: 1em; }
@media (max-width: 749px) { .small-hide { display: none !important; } }
@media (min-width: 750px) and (max-width: 989px) { .medium-hide { display: none !important; } }
@media (min-width: 990px) { .large-up-hide { display: none !important; } }

html.cocoduckbaby-locked { overflow: hidden; }
html { scroll-padding-top: calc(var(--cocoduckbaby-header-h, 104px) + 1rem); }
body { background-color: var(--c-bg); }
main:focus { outline: none; }
/* skip link: off-screen until it takes focus */
.skip { position: absolute; left: 0.75rem; top: -4rem; z-index: 200; padding: 0.6rem 1rem; border-radius: var(--radius-pill); background-color: var(--c-ink); color: var(--c-white); font-size: var(--fs-small); }
.skip:focus { top: 0.75rem; }
/* storefront apps render their own blocks straight into the page body in the base
   theme's layout vocabulary — the reviews carousel is a .page-width.spaced-section
   whose swiper has -20px side margins that the base page gutter absorbs. Give those
   blocks the reference's container and gutter (cart-template's own .page-width sits
   deeper and is left alone), and clip anything an app still pushes sideways —
   `clip` is not a scroll container, so the sticky header still sticks. */
#MainContent { overflow-x: clip; }
#MainContent > .page-width { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter-lg); }
#MainContent > .spaced-section { margin-block: var(--section-y-tight); }

/* The vendored component-price.css loads after reference.css and styles .price
   (centred, 14px, the base foreground). The product page and the quickview carry
   .price beside the reference's own .pdp__price / .qv__price (global.js finds the
   price by it), so the reference's line is restated here: left, baseline-aligned,
   the amount in ink at the reference's size. */
.pdp__price.price, .qv__price.price {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 0.2rem 0.6rem;
  font-size: var(--fs-h3); line-height: var(--lh-body); letter-spacing: 0; color: var(--c-ink); margin: 0;
}
.price .money, .card__price .money { white-space: nowrap; }
/* .price-item / .price__compare are global.js's handles on the product page's price */
.price-item, .price__compare { font-variant-numeric: lining-nums; }

/* ── 2. Header additions ───────────────────────────────────────────────────── */
/* the section wrapper holds the bar, the header and its drawers; it must not box
   them, or the sticky header could only stick inside this wrapper */
.header-section { display: contents; }
.header[data-sticky="none"] { position: relative; }
.header[data-sticky="none"].is-stuck { padding-top: var(--hdr-pad); background-color: var(--c-bg); }
.header[data-sticky="none"].is-stuck .header__panel { height: var(--hdr-panel); }
.header[data-sticky="none"].is-stuck .header__logo img { height: var(--logo-h); }

/* FLOATING: when the homepage opens on the slideshow ([data-header-overlay] in the
   first section, nothing rendered above it) the header sits transparent on the
   photographs — the reference's .header--float — and the slideshow gives the
   header's height back with its negative margin. The platform wraps every homepage
   section in its own div, so "the first section" is #content_for_index's first
   child. Anywhere else the header is a white bar in flow and the slideshow sits
   under it. */
.hero { margin-top: 0; }
body:has(main > #content_for_index:first-child > :first-child > [data-header-overlay]):has(.header[data-float="on"]) #content_for_index > :first-child > .hero { margin-top: calc(-1 * var(--hdr-h)); }
body:has(main > #content_for_index:first-child > :first-child > [data-header-overlay]) .header[data-float="on"] { background-color: transparent; }
body:has(main > #content_for_index:first-child > :first-child > [data-header-overlay]) .header[data-float="on"] .header__panel { box-shadow: var(--shadow-header); border: 0; }

/* the mark's height follows the header's logo_height setting (--logo-h-set, 64px by
   default like the reference): 78% of it on phones, 69% once stuck (the reference's
   own 64 → 50 / 44 steps). A merchant's upload is placed by height, never cropped. */
.header { --logo-h: var(--logo-h-set, 64px); --logo-h-stuck: calc(var(--logo-h-set, 64px) * 0.6875); }
@media (max-width: 899px) {
  .header { --logo-h: calc(var(--logo-h-set, 64px) * 0.78125); --logo-h-stuck: calc(var(--logo-h-set, 64px) * 0.625); }
}
.header__logo img { max-height: var(--logo-max-height, 64px); width: auto; max-width: min(44vw, 260px); object-fit: contain; }
/* no upload: the store name in type, in the panel's centre */
.header__name { display: block; font-family: var(--font-display); font-size: clamp(1.125rem, 2vw, 1.625rem); letter-spacing: var(--tracking-display); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 44vw; }
.cart-count.hidden, .cart-count-bubble.hidden { display: none !important; }
.cart-count .js-content-cart-count { display: inline; }
a.iconbtn { text-decoration: none; }
.header__nav a[aria-current="page"] { border-bottom-color: currentColor; }
.announce__item a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* dropdowns — the reference nav is flat; a link with children opens a white panel.
   reference.css styles every `.header__nav a` as a nav link with an underline bar,
   which reaches into the panels, so the panels re-assert their own link type. */
.header__navitem { position: relative; display: inline-flex; }
.header__navitem > a { display: inline-flex; align-items: center; gap: 0.3rem; }
.header__navitem > a .icon { width: 0.85rem; height: 0.85rem; transition: transform var(--dur) var(--ease); }
.header__navitem.has-dropdown:hover > a .icon,
.header__navitem.has-dropdown:focus-within > a .icon { transform: rotate(180deg); }
.navdrop {
  position: absolute; top: 100%; left: -1.25rem; z-index: 5;
  min-width: 14rem; padding: 0.9rem 1.25rem 1rem;
  background-color: var(--c-surface); color: var(--c-ink);
  border-radius: 16px; box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(6px); text-align: left;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.header__navitem:hover > .navdrop,
.header__navitem:focus-within > .navdrop {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}
.header__nav .navdrop ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.header__nav .navdrop a {
  display: block; padding: 0.4rem 0; border-bottom: 0; font-size: var(--fs-small);
  line-height: 1.35; white-space: normal; color: var(--c-ink-muted);
}
.header__nav .navdrop a:hover { color: var(--c-accent); border-bottom: 0; }
.header__nav .navdrop .navdrop__link--head { color: var(--c-ink); padding-bottom: 0.55rem; margin-bottom: 0.3rem; border-bottom: 1px solid var(--c-line); }
.header__nav .navdrop__sub--deep { padding-left: 0.75rem; margin: 0.1rem 0 0.45rem; border-left: 1px solid var(--c-line); }
.navdrop--cols { min-width: 26rem; }
/* long or nested menus flow as tight vertical lists across columns — never one grid
   cell per link, which spreads a flat menu into rows with big gaps */
.header__nav .navdrop--cols .navdrop__list,
.header__nav .navdrop--mega .navdrop__list { display: block; column-gap: 2.25rem; }
.header__nav .navdrop--cols .navdrop__list { columns: 2; }
.header__nav .navdrop--mega .navdrop__list { columns: 11rem 5; }
.navdrop--cols .navdrop__item, .navdrop--mega .navdrop__item { break-inside: avoid; }
.navdrop--mega .navdrop__item:has(.navdrop__sub) { margin-block: 0.35rem 0.9rem; }
/* a menu with grandchildren opens as a full-row panel of columns under the panel; a
   tall one scrolls inside itself */
.header__panel { position: relative; }
.header__navitem:has(> .navdrop--mega) { position: static; }
.navdrop--mega { left: 0; right: 0; min-width: 0; padding: 1.5rem 1.75rem 1.75rem; max-height: calc(100vh - var(--cocoduckbaby-header-h, 8.5rem) - 1.5rem); overflow-y: auto; overscroll-behavior: contain; }

/* a menu too long for its row collapses to the menu button + drawer (init.js adds
   .nav-overflow), as on phones */
@media (min-width: 900px) {
  .header-section.nav-overflow .header__nav { display: none; }
  .header-section.nav-overflow .header__burger { display: inline-grid; }
}

/* ── 3. Drawers ─────────────────────────────────────────────────────────────── */
.drawer__head { flex: none; }
.drawer__head .iconbtn { flex: none; }
.drawer__title { margin: 0; }
/* the menu drawer: its list scrolls under a fixed head */
.drawer__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.drawer__nav > details > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 0; cursor: pointer; list-style: none; border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-h3); color: var(--c-ink);
}
.drawer__nav > details > summary::-webkit-details-marker { display: none; }
.drawer__nav > details > summary .icon { width: 1rem; height: 1rem; color: var(--c-ink-subtle); transition: transform var(--dur) var(--ease); }
.drawer__nav > details[open] > summary .icon { transform: rotate(180deg); }
.drawer__nav > details > summary:hover, .drawer__nav a:hover { color: var(--c-accent); }
.drawer__nav > details > summary.is-sale { color: var(--c-sale); }
.drawer__children, .drawer__grandchildren { margin: 0; padding: 0; list-style: none; }
.drawer__children { padding: 0.5rem 0 0.75rem 0.9rem; border-bottom: 1px solid var(--c-line); }
.drawer__nav .drawer__children a { display: block; padding: 0.45rem 0; border-bottom: 0; font-size: var(--fs-body); color: var(--c-ink-muted); }
.drawer__nav .drawer__grandchildren { padding-left: 0.9rem; }
.drawer__nav .drawer__grandchildren a { font-size: var(--fs-small); }
.drawer__utility { display: grid; gap: 0.1rem; margin: 0.75rem 0 0; padding: 0 1.25rem; list-style: none; }
.drawer__utility a { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; font-size: var(--fs-small); color: var(--c-ink-muted); }
.drawer__utility a:hover { color: var(--c-accent); }
.drawer__note { margin: 0; }
.drawer__currency { padding-top: 0.25rem; }

/* search drawer — the reference's linen pill is a real form here */
.drawer--search .drawer__panel { max-height: 100dvh; overscroll-behavior: contain; }
form.search-row { display: flex; flex: 1 1 auto; min-width: 0; margin: 0; }
.search { cursor: text; }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-hits { margin-bottom: 0; padding-top: 1rem; list-style: none; width: 100%; }
.search-hits[aria-busy="true"] { opacity: 0.55; }
.search-hits > li { min-width: 0; }
.search-hit__img { background-color: var(--c-surface-2); }
span.search-hit__img { display: block; }
.search-hit__price .card__was { margin-left: 0.35rem; }
.search-all { margin: 0.9rem 1.25rem 0; }

/* cart drawer — the shared cart template in the reference's right-hand drawer:
   the head stays, the body scrolls, the template's footer sits at the foot */
.drawer--cart .drawer__panel { overflow: hidden; }
.drawer__count { color: var(--c-ink-subtle); font-size: var(--fs-small); }
.drawer--cart .drawer__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 1.25rem 1.25rem; display: flex; flex-direction: column; }
.drawer--cart .drawer__body > #cart-template { flex: 1; display: flex; flex-direction: column; }
.drawer--cart .drawer__body #cart-form { flex: 1; display: flex; flex-direction: column; }
.drawer__loading {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  background-color: rgb(255 255 255 / 0.6);
}
/* the head (title + close) stays above the loading wash — a slow /new_cart must never
   trap the shopper in the drawer */
.drawer--cart .drawer__head { position: relative; z-index: 4; background-color: var(--c-surface); }
.drawer__loading.hidden { display: none !important; }
.drawer__loading .spinner { width: 2.75rem; height: 2.75rem; }
.drawer__loading .path { stroke: var(--c-accent); }

/* ── 4. Homepage additions ─────────────────────────────────────────────────── */
/* slideshow: the track is a list here; one slide needs no pill */
.hero__track { margin: 0; padding: 0; list-style: none; }
.hero__slide { position: relative; }
.hero__dots button { padding-block: 13px; border: 0; cursor: pointer; }
.hero__rail, .rail { min-width: 0; }
.hero__title { text-wrap: balance; }
/* the first body panel rides up over the photographs ONLY when it follows the
   slideshow; anywhere else it sits in flow (the platform wraps each section in its
   own div, so the order is read on those wrappers) */
.panel { margin-top: 0; }
[id^="easystore-section-"]:has(> .hero) + [id^="easystore-section-"] > .panel { margin-top: calc(-1 * var(--panel-lip)); }
/* rail arrows rest at their ends and step aside when every card already fits */
.roundbtn { cursor: pointer; }
.roundbtn:disabled { opacity: 0.35; cursor: default; }
.roundbtn:disabled:hover { border-color: var(--c-line); background-color: var(--c-surface); color: var(--c-ink); }
.rail-fits .rail__arrows, .rail-fits .progress { visibility: hidden; }
.rail__track { margin: 0; padding-block: 0; list-style: none; }
.cat__label { color: var(--c-ink); }
.cat a:hover .cat__label { color: var(--c-accent); }
.progress button { border: 0; cursor: pointer; }
/* tabs: the strip is a real tablist */
.tabs { flex-wrap: wrap; }
.tab { cursor: pointer; }
.ptabs__note { margin: 0; }
.ptabs > .wrap > [data-tab-panel] .ptabs__note { margin-bottom: 1.25rem; }
/* a lazy tab's skeleton: four grey cards until its products land (init.js §6) */
.card--skeleton .card__media { background-color: var(--c-surface-2); }
.card--skeleton .card__title, .card--skeleton .card__price { display: block; height: 0.9em; margin-top: 0.35em; border-radius: 6px; background-color: var(--c-line); }
.card--skeleton .card__title { width: 72%; }
.card--skeleton .card__price { width: 34%; }
.lazy-collection__skeleton { animation: skeleton-pulse 1.4s ease-in-out infinite; }
@keyframes skeleton-pulse { 50% { opacity: 0.55; } }
.lazy-collection__error { display: grid; justify-items: start; gap: 0.75rem; padding: 1rem 0; color: var(--c-ink-muted); font-size: var(--fs-small); }
.lazy-collection__error-text { margin: 0; }
/* feature band: the picture link keeps its frame; a copy-only community band centres */
.feature__media { background-color: var(--c-surface-2); }
.minis { padding: 0; list-style: none; }
.mini__body { min-width: 0; }
.mini__price { margin: 0; }
.community__grid--text { grid-template-columns: minmax(0, 1fr); }
.community__logo { object-fit: contain; }
.rates, .facts, .notes { margin: 0; padding: 0; list-style: none; }
.rates p, .facts p { margin: 0; }
.feature__lede, .community__lede { margin: 0; }

/* ── 5. Product card ───────────────────────────────────────────────────────── */
/* The add control is the platform's <add-to-cart-button> around the reference's
   round .card__qv button: the wrapper takes the button's place in the info row and
   holds the in-flight spinner over it. Anything an app slots into the card
   (wishlist heart, review stars) sits after the info row. */
.card { position: relative; min-width: 0; }
.card__link { min-width: 0; color: inherit; }
.card__price { margin-bottom: 0; }
.card__addwrap { grid-area: qv; position: relative; display: grid; place-items: center; align-self: start; }
.card__qv, .addToClassList { cursor: pointer; }
a.card__qv { text-decoration: none; }
/* while the add is in flight the icon goes invisible and the spinner takes its
   place, centred on the button; it takes the icon's colour in each state (the
   pointer is still on the button, so the :hover fill is the ground it sits on) */
.card__qv.transparent, .card__qv.transparent:hover { opacity: 1; }
.card__qv.transparent > * { visibility: hidden; }
.card__addwrap .loading-overlay {
  position: absolute; inset: 0; top: 0; left: 0; right: 0; z-index: 3; width: auto; height: auto; transform: none;
  display: grid; place-items: center; pointer-events: none; background: none;
}
.card__addwrap .loading-overlay__spinner { width: 1.1rem; display: block; position: static; }
.card__addwrap .loading-overlay .path { stroke: var(--c-ink); }
.card__addwrap:hover .loading-overlay .path { stroke: var(--c-accent-ink); }
.card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.1rem; }
.card__now { white-space: nowrap; }
.card__was { white-space: nowrap; }
.badge { z-index: 1; pointer-events: none; }
.grid, ul.grid { margin: 0; padding: 0; list-style: none; }
.grid.is-loading { opacity: 0.4; pointer-events: none; transition: opacity var(--dur) var(--ease); }
/* the platform's no-matches line lands inside the grid when a filter empties it */
.grid > p { grid-column: 1 / -1; color: var(--c-ink-muted); }
/* the platform wishlist heart (collection/product_top) sits on the picture's corner */
.card > .wishlist-icon-btn {
  position: absolute !important; top: 0.6rem; right: 0.6rem; z-index: 3;
  width: 2.4rem !important; height: 2.4rem; background-color: rgb(255 255 255 / 0.9); box-shadow: none;
}
.card > .wishlist-icon-btn .wishlist-love-icon { font-size: 1rem; }

/* ── 6. Product page ───────────────────────────────────────────────────────── */
/* phones collapse to one column, and a bare 1fr track grows to its widest child:
   platform widgets injected after load (the promotion app's tag strip is ~825px)
   must not widen the page — reference.css already pins the track with minmax(0, 1fr);
   the columns themselves may shrink */
.pdp__grid > * { min-width: 0; }
/* the gallery (init.js §7): a track of slides the shopper drags, steps with the
   arrows or the keys, or picks from the thumbnail row. The reference's 3:4 frame
   stays (one shape for every photo) but each photo is fitted inside it, not cropped:
   the store's photos are 5:6 / square, and cover lost their sides */
.pdp__frame { position: relative; overflow: hidden; border-radius: var(--radius-card); background-color: var(--c-surface-2); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pdp__track { display: flex; transition: transform 360ms var(--ease); will-change: transform; }
.pdp__track.is-dragging { transition: none; cursor: grabbing; }
.pdp__slide { flex: 0 0 100%; min-width: 0; }
.pdp__main { display: block; width: 100%; object-fit: contain; border-radius: 0; -webkit-user-drag: none; cursor: zoom-in; }
.pdp__track.is-dragging .pdp__main { cursor: grabbing; }
/* the lightbox: a <dialog> over the page, the picture fitted to the window */
.pdp__zoom { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--c-ink); }
.pdp__zoom:not([open]) { display: none; }
.pdp__zoom[open] { display: grid; place-items: center; }
.pdp__zoom::backdrop { background-color: rgba(28, 21, 16, 0.86); }
.pdp__zoom-img { display: block; max-width: min(92vw, 1400px); max-height: 92vh; width: auto; height: auto; object-fit: contain; border-radius: 12px; background-color: var(--c-surface-2); cursor: zoom-out; }
.pdp__zoom-close { position: fixed; top: 1rem; right: 1rem; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--c-line); background-color: var(--c-surface); color: var(--c-ink); cursor: pointer; }
.pdp__zoom-close:hover { background-color: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
.pdp__zoom-close .icon { width: 1.1rem; height: 1.1rem; }
.pdp__zoom .pdp__arrow { position: fixed; }
.pdp__zoom .pdp__arrow--prev { left: 1rem; }
.pdp__zoom .pdp__arrow--next { right: 1rem; }
html:has(.pdp__zoom[open]) { overflow: hidden; }
.pdp__main.is-swapping { opacity: 0.35; transition: opacity 240ms var(--ease); } /* the single-picture fallback's swap fade */
@media (prefers-reduced-motion: reduce) { .pdp__track { transition: none; } }
/* a small scrolling row of 64px thumbnails (the reference's six-up row filled the
   column with ~100px tiles — "super too large") */
.thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64px; justify-content: start; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { cursor: pointer; padding: 0; }
.thumb:hover { border-color: var(--c-line); }
.thumb.is-active:hover { border-color: var(--c-ink); }
/* prev / next over the picture (init.js §7 steps with wrap-around) */
.pdp__arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 1px solid var(--c-line); background-color: var(--c-surface); color: var(--c-ink);
  cursor: pointer; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pdp__arrow--prev { left: 12px; }
.pdp__arrow--next { right: 12px; }
.pdp__arrow:hover { background-color: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
.pdp__arrow .icon { width: 1.1rem; height: 1.1rem; }
/* the gallery is the sticky column (merchant's call, 2026-10-16), and the whole of it
   — frame plus thumbnail row — has to fit under the header while pinned: the frame's
   height is capped from the viewport, minus the header, the gaps and the thumb row
   (64px 3:4 tiles = 86px, plus the 12px gap) */
@media (min-width: 900px) {
  .pdp__info { position: static; }
  .pdp__media { position: sticky; top: calc(var(--cocoduckbaby-header-h, 104px) + 1rem); }
  .pdp__main { max-height: max(20rem, calc(100vh - var(--cocoduckbaby-header-h, 104px) - 2.5rem)); }
  .pdp__media:has(.thumbs) .pdp__main { max-height: max(20rem, calc(100vh - var(--cocoduckbaby-header-h, 104px) - 2.5rem - 12px - 86px)); }
}
.pdp__eyebrow a:hover { color: var(--c-accent); }
.pdp__title { margin: 0; }

/* price states: global.js toggles .price--on-sale from the selected variant, which
   shows the struck-through was price and the save tag */
[id^="price-"]:not(.price--on-sale) .price__was,
[id^="price-"]:not(.price--on-sale) .price__save { display: none; }
[id^="price-"].price--on-sale .price__now { color: var(--c-sale); }
.price__was { color: var(--c-ink-subtle); font-size: 0.8em; margin-inline-start: 0; }
.price__save {
  align-self: center; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill);
  background-color: var(--c-accent-soft); color: var(--c-ink);
  font-size: var(--fs-micro); letter-spacing: 0.04em;
}
.price__save:empty { display: none; }
.price--sold-out .price__now { color: var(--c-ink-muted); }

/* variant options — EasyStore.OptionSelectors output, dressed by init.js as the
   reference's .opt group / .opt__label caption / .opt__row / .chip and .swatch */
.variants { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin: 0; min-width: 0; }
.variants .selector-wrapper { padding: 0; border: 0; min-width: 0; }
.variants fieldset, .product-quickview fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.variants .opt__label, .variants legend, .variants .selector-wrapper > label,
.product-quickview .opt__label, .product-quickview legend, .product-quickview .product-form__input > label {
  display: block; padding: 0; margin: 0 0 0.6rem; font-size: var(--fs-micro); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink-muted);
}
.opt__row input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; clip-path: inset(50%); }
/* the base product sheet's `.product-form__input input[type=radio] + label` (square,
   2px, tracked) out-ranks the reference's .chip — restate the reference's pill */
.variants .opt__row input[type="radio"] + label.chip,
.product-quickview .opt__row input[type="radio"] + label.chip {
  display: inline-flex; align-items: center; justify-content: center; margin: 0; width: auto;
  min-width: 52px; min-height: 42px; padding: 0.4rem 0.9rem; cursor: pointer; line-height: 1.2; white-space: nowrap;
  border: 1px solid var(--c-line); border-radius: var(--radius-pill); background-color: var(--c-surface);
  color: var(--c-ink); font-size: var(--fs-small); letter-spacing: 0; text-align: center; text-transform: none; opacity: 1;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.variants .opt__row input[type="radio"] + label.chip:hover,
.product-quickview .opt__row input[type="radio"] + label.chip:hover { border-color: var(--c-ink); }
/* the checked chip is the reference's .chip.is-selected: ink fill, white label */
.variants .opt__row input[type="radio"]:checked + label.chip,
.product-quickview .opt__row input[type="radio"]:checked + label.chip { background-color: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.variants .opt__row input[type="radio"]:focus-visible + label,
.product-quickview .opt__row input[type="radio"]:focus-visible + label { outline: 2px solid var(--c-accent); outline-offset: 2px; box-shadow: none; }
.variants .opt__row input[type="radio"].disabled + label.chip,
.variants .opt__row input[type="radio"]:disabled + label.chip,
.product-quickview .opt__row input[type="radio"].disabled + label.chip {
  opacity: 0.5; text-decoration: line-through; background-color: var(--c-surface); color: var(--c-ink-muted); border-color: var(--c-line);
}
/* "Buttons with variant image" (radio-img): OptionSelectors puts the variant's picture
   in the label (img.variant-img-label) beside the value as span.label__text — the
   reference's .swatch: a 3:4 picture with 10px corners over a small centred name,
   the chosen one ringed in ink. The row becomes the reference's six-up swatch grid
   (.opt__row--swatch) when the fieldset carries data-selector-type="radio-img", which
   OptionSelectors sets only when a variant picture exists. */
.variants .opt__row input[type="radio"] + label.swatch,
.product-quickview .opt__row input[type="radio"] + label.swatch {
  display: grid; gap: 0.3rem; margin: 0; padding: 0; width: auto; min-width: 0; min-height: 0; height: auto; overflow: visible; border: 0; border-radius: 0; background: none;
  text-align: center; font-size: 11px; line-height: 1.2; letter-spacing: 0; text-transform: none; white-space: normal; color: var(--c-ink-muted); cursor: pointer; opacity: 1;
}
.variants .opt__row label.swatch .variant-img-label,
.product-quickview .opt__row label.swatch .variant-img-label { position: static; display: block; width: 100%; height: auto; aspect-ratio: var(--card-ratio); object-fit: cover; border-radius: 10px; border: 2px solid transparent; background-color: var(--c-surface-2); transition: border-color var(--dur) var(--ease); }
.variants .opt__row label.swatch .label__text,
.product-quickview .opt__row label.swatch .label__text { display: block; position: static; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variants .opt__row input[type="radio"] + label.swatch:hover .variant-img-label,
.product-quickview .opt__row input[type="radio"] + label.swatch:hover .variant-img-label { border-color: var(--c-line); }
.variants .opt__row input[type="radio"]:checked + label.swatch,
.product-quickview .opt__row input[type="radio"]:checked + label.swatch { color: var(--c-ink); background: none; }
.variants .opt__row input[type="radio"]:checked + label.swatch .variant-img-label,
.product-quickview .opt__row input[type="radio"]:checked + label.swatch .variant-img-label { border-color: var(--c-ink); }
.variants .opt__row input[type="radio"].disabled + label.swatch,
.product-quickview .opt__row input[type="radio"].disabled + label.swatch { opacity: 0.45; text-decoration: line-through; }
/* fixed 56px tiles (3:4 → 75px tall) that wrap: the fluid six-up was still ~70x90 in
   the buy column, and an auto-fill grid collapsed to ONE column inside the platform's
   flex fieldset (no definite width to fill) */
.product-quickview .opt__row--swatch { display: flex; flex-wrap: wrap; gap: 0.4rem; width: 100%; align-items: start; }
.product-quickview .opt__row input[type="radio"] + label.swatch { width: 56px; flex: 0 0 56px; }
/* a value with no picture in a picture row (White, Green) is a tile too — the same 3:4
   box with the name inside — not a pill stretched to the row's height */
.variants .opt__row--swatch input[type="radio"] + label.chip,
.product-quickview .opt__row--swatch input[type="radio"] + label.chip {
  display: grid; place-items: center; align-self: start; width: 100%; min-width: 0; min-height: 0; aspect-ratio: var(--card-ratio);
  padding: 0.2rem; border: 2px solid var(--c-line); border-radius: 10px;
  font-size: 11px; line-height: 1.2; letter-spacing: 0; text-transform: none; white-space: normal; text-align: center; overflow-wrap: anywhere;
}
.product-quickview .opt__row--swatch input[type="radio"] + label.chip { width: 56px; flex: 0 0 56px; }
.variants select, .variants .opt__select, .product-quickview select.opt__select {
  width: 100%; max-width: 22rem; min-height: 2.75rem; padding: 0 2.5rem 0 1.15rem;
  background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1510' stroke-width='1.5'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 1rem;
  border: 1px solid var(--c-line); border-radius: var(--radius-pill);
  color: var(--c-ink); font-size: var(--fs-small); appearance: none; -webkit-appearance: none;
}
.variants-selector-wrapper > div.product-form__input::after,
.selector-wrapper.product-form__input::after { display: none; }
.variants .opt, .product-quickview .opt { margin-top: 0; }
.variants:not(:has(.opt)) { display: none; }

/* quantity — the reference's pill .qty stepper, driven by <quantity-input> */
.qty input { font-variant-numeric: tabular-nums; outline: none; }
.qty button { cursor: pointer; }
.qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty button .icon { pointer-events: none; }
/* the reference's options and buy row are both children of the .pdp__info grid (gap
   1rem); here both sit inside the add-to-cart <form>, a plain block, so the gap is
   restated as the row's margin */
.buy--pdp { margin-top: 1.25rem; }
.variants:not(:has(.opt)) ~ .buy--pdp { margin-top: 0.5rem; }
.buy .product-form__quantity { display: flex; }
.buy .buy__add { margin: 0; cursor: pointer; }
/* anything an app slots into the row (product/field_bottom) takes a row of its own,
   so the stepper and the button always share theirs */
.buy > :not(.product-form__quantity):not(.product-form__submit) { grid-column: 1 / -1; }
/* app controls slotted under the buy row (wishlist, in-store stock) keep clear of it */
.buy + * { margin-top: 0.75rem; }
/* the wishlist app's "Add to wishlist" (a.btn.wishlist, product/button) spans the buy
   column like the add button above it; it is the secondary action, so it takes the
   light pill */
.pdp__info a.btn.wishlist { width: 100%; background-color: var(--c-surface); color: var(--c-ink); border: 1px solid var(--c-line); cursor: pointer; }
.pdp__info a.btn.wishlist:hover { background-color: var(--c-accent-soft); border-color: var(--c-accent-soft); color: var(--c-ink); }

/* the add button's in-flight state (product-form.js adds .loading) */
.btn .loading-spinner { display: none; }
.btn.loading { position: relative; pointer-events: none; }
.btn.loading .btn__text, .btn.loading > svg.icon { visibility: hidden; }
.btn.loading .loading-spinner { display: grid; place-items: center; position: absolute; inset: 0; }
.btn .loading-spinner .spinner { width: 1.35rem; height: 1.35rem; }
.btn .loading-spinner .path { stroke: var(--c-accent-ink); }
.btn--light .loading-spinner .path { stroke: var(--c-ink); }
/* product-form.js also disables the button for the round trip — a button that is
   only busy keeps its accent fill, or the white spinner is lost on the plate */
.btn.product-form__submit.loading:disabled, .btn.product-form__submit.loading[disabled] { background-color: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); cursor: progress; }

.form__message { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 1rem; color: var(--c-sale); font-size: var(--fs-small); }
.form__message.hidden { display: none !important; }

/* accordions: the description and the merchant's own rows */
.acc summary .icon { flex: none; transition: transform var(--dur) var(--ease); }
.acc__body { padding-bottom: 1.1rem; font-size: var(--fs-small); color: var(--c-ink-muted); }
.acc__body.rte > :first-child { margin-top: 0; }
.pdp__share { padding-top: 0.25rem; }
/* the platform's full-width app hook below the product grid (reviews and the like):
   clearance from the grid, and no box of its own when no app renders into it */
.pdp__apps:not(:empty) { margin-bottom: var(--section-y-tight); }
.related[hidden] { display: none; }

/* share (snippets/social-sharing) — the reference's round .roundbtn buttons, smaller */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.share__label { margin-right: 0.35rem; font-size: var(--fs-small); color: var(--c-ink-muted); }
.share__link { position: relative; width: 2.25rem; height: 2.25rem; }
.share__copied {
  position: absolute; bottom: calc(100% + 0.4rem); left: 50%; transform: translateX(-50%);
  padding: 0.3rem 0.6rem; white-space: nowrap; border-radius: 6px; background-color: var(--c-ink); color: var(--c-surface);
  font-size: var(--fs-micro); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.share__copy.is-copied .share__copied { opacity: 1; }

/* ── 7. Collection ────────────────────────────────────────────────────────── */
.colhead__lede.rte > * + * { margin-top: 0.5rem; }
.colhead__title { margin-bottom: 0; }
.colhead--page .colhead__grid { align-items: end; }
.colhead--page .colhead__title { font-size: var(--fs-h1); }
.catchips { padding-left: 0; list-style: none; }
.catchips a[aria-current="page"] { border-color: var(--c-ink); background-color: var(--c-ink); color: var(--c-white); }
.promo-band .btn { flex: none; }
.promo-band .section__title { margin-top: 0.35rem; }
/* the reference's listing opens on a bare count; here the count shares a row with
   the Filter button and the sort select */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; }
.toolbar__tools { display: flex; align-items: center; gap: 1rem; }
.toolbar__count { margin: 0; }
.toolbar__filter { display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; transition: border-color var(--dur) var(--ease); }
.toolbar__filter-count {
  min-width: 1.2rem; height: 1.2rem; padding: 0 0.3rem; display: inline-grid; place-items: center;
  border-radius: var(--radius-pill); background-color: var(--c-accent); color: var(--c-accent-ink);
  font-size: 0.6875rem; line-height: 1;
}
.toolbar__sort { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--fs-small); color: var(--c-ink-muted); }
.toolbar__sort select {
  min-height: 42px; padding: 0 2.4rem 0 1rem; min-width: 0;
  background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1510' stroke-width='1.5'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 0.95rem;
  border: 1px solid var(--c-line); border-radius: var(--radius-pill);
  color: var(--c-ink); font-size: var(--fs-small); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.toolbar__sort select:hover { border-color: var(--c-ink); }
@media (max-width: 899px) {
  .toolbar__sort > span { display: none; }
  /* a small basis lets the sort select share the Filter + count row, then grow */
  .toolbar__sort { flex: 1 1 7.5rem; max-width: 12rem; min-width: 0; margin-left: auto; }
  .toolbar__sort select { width: 100%; text-overflow: ellipsis; }
  .toolbar__count { white-space: nowrap; }
}
.listing__empty { display: grid; justify-items: start; gap: 1.25rem; padding-block: 1rem 2rem; color: var(--c-ink-muted); }
.listing__empty p { margin: 0; }

/* the filter drawer: the reference's left drawer, its groups captioned like the
   product options over pill chips; the checked chip takes the selected-option look */
.drawer--filter .drawer__panel { overflow: hidden; }
.facets { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 1.5rem; }
.facet { margin: 0; padding: 0; border: 0; min-width: 0; }
.facet .opt__label { display: block; padding: 0; margin-bottom: 0.6rem; }
.facet__chip { position: relative; display: inline-flex; cursor: pointer; }
.facet__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.facet__chip .chip { display: inline-flex; align-items: center; pointer-events: none; }
.facet__chip input:checked + .chip { background-color: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.facet__chip input:focus-visible + .chip { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.facet__chip:hover .chip { border-color: var(--c-ink); }
.facet__price { display: flex; align-items: center; gap: 0.5rem; color: var(--c-ink-muted); }
.facet__price label { flex: 1; min-width: 0; }
.facet__price input {
  width: 100%; min-height: 42px; padding: 0 1rem; background-color: var(--c-surface); color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: var(--radius-input); font-size: var(--fs-small);
  -moz-appearance: textfield; appearance: textfield;
}
.facet__price input::-webkit-outer-spin-button, .facet__price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.facet__price input:focus { outline: none; border-color: var(--c-ink); }
.facets__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0; }
.facets__clear { background: none; border: 0; padding: 0; cursor: pointer; }
.facets__apply { flex: 1; max-width: 16rem; margin-left: auto; }

/* pagination (base snippet, reference look: round pills) */
.pagination-wrapper { margin-top: clamp(2rem, 4vw, 3rem); }
.pagination__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.pagination .pagination__item {
  display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 0.6rem;
  border: 1px solid var(--c-line); border-radius: var(--radius-pill); background-color: var(--c-surface);
  color: var(--c-ink-muted); font-size: var(--fs-small); text-decoration: none;
}
.pagination .pagination__item:hover { border-color: var(--c-ink); color: var(--c-ink); }
.pagination .pagination__item--current { background-color: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.pagination .pagination__item .icon { width: 0.7rem; height: 0.7rem; }
.pagination .pagination__item--next .icon { transform: rotate(90deg); }
.pagination .pagination__item--prev .icon { transform: rotate(-90deg); }
.pagination .pagination__item::after { display: none; }

/* ── 8. Cart — the base cart template in the reference's look ──────────────
   snippets/cart-template + cart-item keep the base theme's markup ON PURPOSE:
   the platform re-renders cart-template server-side after every add / quantity /
   remove / voucher change (/new_cart*), and during local preview that response can
   come from another Dawn-family theme — the drawer must look the same either way.
   So nothing here depends on renamed classes: it skins the base vocabulary
   (.quantity, .button, .title-wrapper-with-link …) in the reference's tokens. */
.cart-page { padding-top: 0; }
#cart-template, #cart-form { color: var(--c-ink); }
cart-items { display: block; }
/* the cart page and the drawer each carry their own heading */
#cart-template .title-wrapper-with-link { display: none; }
.cart__warnings { display: none; }
cart-items.is-empty .cart__warnings { display: grid; justify-items: start; gap: 1.25rem; padding-block: 1rem 2rem; }
cart-items.is-empty .cart__items, #main-cart-footer.is-empty { display: none; }
#cart-template .cart__items { padding-bottom: 0; border-bottom: 0; }
.cart__empty-text { margin: 0; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-h3); line-height: var(--lh-heading); color: var(--c-ink); }

/* base .button family -> the reference's pill .btn (primary) / its light variant */
#cart-template .button, .vouchers-modal .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.5rem; border: 1px solid var(--c-accent);
  border-radius: var(--radius-button); background-color: var(--c-accent); color: var(--c-accent-ink);
  font-family: var(--font-body); font-size: var(--fs-small); font-weight: var(--fw-body); letter-spacing: 0.02em; text-transform: none; line-height: 1.2;
  text-decoration: none; cursor: pointer; box-shadow: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
#cart-template .button::before, #cart-template .button::after,
.vouchers-modal .button::before, .vouchers-modal .button::after { display: none; }
#cart-template .button:hover, .vouchers-modal .button:hover { background-color: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
#cart-template .button--secondary, .vouchers-modal .button--secondary { background-color: transparent; color: var(--c-ink); border-color: var(--c-line); }
#cart-template .button--secondary:hover, .vouchers-modal .button--secondary:hover { background-color: transparent; border-color: var(--c-ink); color: var(--c-ink); }
#cart-template .button.loading { opacity: 0.6; pointer-events: none; }
/* Checkout / Express checkout while the cart form posts to /cart (cart.js flags the
   pressed submit .loading): a ring in the button's own label colour instead of the fade.
   The label is hidden with the text fill, not `color`, so currentColor still names it —
   under the hover fill too, which outlives the click until the pointer moves. (1,3,1)
   beats the `display: none` this sheet puts on every cart button's pseudo-elements. */
#cart-template .cart__ctas .button.loading { position: relative; opacity: 1; -webkit-text-fill-color: transparent; }
#cart-template .cart__ctas .button.loading::after {
  content: ""; display: block; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  box-sizing: border-box; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  animation: cart-submit-spin 0.8s linear infinite;
}
@keyframes cart-submit-spin { to { transform: rotate(360deg); } }

.cart-items { width: 100%; border-collapse: collapse; border-spacing: 0; }
.cart-items thead th {
  padding: 0 0 0.9rem; text-align: left; border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-micro); font-weight: var(--fw-body); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--c-ink-muted); opacity: 1;
}
.cart-items thead th.right { text-align: right; }
.cart-item td { padding-block: 1.25rem; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.cart-item__media { width: 6rem; padding-right: 1.25rem; }
.cart-item__media a { display: block; background-color: var(--c-surface-2); border-radius: 12px; overflow: hidden; }
.cart-item__image { display: block; width: 100%; aspect-ratio: var(--card-ratio); height: auto; object-fit: cover; }
.cart-item__details { padding-right: 1rem; font-size: var(--fs-small); }
.cart-item__name { display: block; font-size: var(--fs-small); line-height: 1.35; color: var(--c-ink); text-decoration: none; }
.cart-item__name:hover { color: var(--c-accent); }
.cart-item__details dl { margin: 0.35rem 0 0; }
.cart-item__details dd { margin: 0; }
.product-option { font-size: var(--fs-micro); color: var(--c-ink-muted); line-height: 1.5; }
.cart-item__quantity { white-space: nowrap; }

/* quantity stepper: the base <quantity-input class="quantity"> as the reference's pill .qty */
#cart-template .quantity {
  position: relative; display: inline-flex; align-items: center; vertical-align: middle;
  width: auto; min-height: 0; height: 40px; padding-inline: 0.2rem;
  border: 1px solid var(--c-line); border-radius: var(--radius-pill); background-color: var(--c-surface);
}
#cart-template .quantity::before, #cart-template .quantity::after { display: none; }
#cart-template .quantity__button {
  display: grid; place-items: center; width: 2.1rem; height: 100%; padding: 0;
  border: 0; background: none; color: var(--c-ink); cursor: pointer;
}
#cart-template .quantity__button:hover { color: var(--c-accent); }
#cart-template .quantity__button .icon { width: 0.7rem; height: 0.7rem; stroke: none; pointer-events: none; }
#cart-template .quantity__input {
  width: 2.2rem; height: 100%; padding: 0; margin: 0; border: 0; background: none; color: var(--c-ink);
  font: inherit; font-size: var(--fs-small); text-align: center; font-variant-numeric: tabular-nums;
  outline: none; -moz-appearance: textfield; appearance: textfield;
}
#cart-template .quantity__input::-webkit-outer-spin-button,
#cart-template .quantity__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#cart-template .quantity__input[readonly] { width: 3rem; }

/* remove / edit: small round icon buttons beside the stepper */
.cart-action-icon { display: inline-flex; vertical-align: middle; margin-left: 0.35rem; }
.cart-action-icon.hide { display: none; }
#cart-template .cart-action-icon .button {
  width: 2.25rem; height: 2.25rem; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--c-ink-muted); box-shadow: none;
}
#cart-template .cart-action-icon .button:hover { background-color: var(--c-surface-2); color: var(--c-ink); }
#cart-template .cart-action-icon .button svg { width: 1rem; height: 1rem; }
#cart-template .cart-action-icon .icon-remove { stroke: none; }
#cart-template .cart-action-icon .button .icon:not(.icon-remove) { fill: none; stroke: currentColor; }

.cart-item__totals { text-align: right; position: relative; font-size: var(--fs-small); }
.cart-item__price-wrapper .price { display: block; font-size: var(--fs-small); color: var(--c-ink); }
.cart-item__old-price { color: var(--c-ink-subtle); }
.cart-item .loading-overlay { position: absolute; right: 0; top: 1.25rem; width: 1.5rem; }
.cart-item .loading-overlay__spinner { width: 1.5rem; }
.cart__items--disabled { pointer-events: none; opacity: 0.6; }
.discounts { margin: 0.4rem 0 0; font-size: var(--fs-micro); color: var(--c-accent); }
.discounts__discount { display: flex; align-items: center; gap: 0.35rem; }
.discounts__discount svg { width: 0.9rem; height: 0.9rem; fill: currentColor; stroke: none; }
.cart_form__error { margin-top: 1rem; }
.note.errors, .errors { color: var(--c-sale); font-size: var(--fs-small); }

/* footer block: vouchers, totals, checkout */
.cart__footer { display: flex; justify-content: flex-end; padding-top: 1.75rem; }
.cart__blocks { width: 100%; max-width: 26rem; display: grid; gap: 1rem; }
.totals { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; position: relative; }
.totals__subtotal { margin: 0; font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--c-ink); }
.totals__subtotal-value { margin: 0; font-size: 1.25rem; font-weight: var(--fw-bold); color: var(--c-ink); }
.totals .loading-overlay { position: absolute; right: 0; top: 0; width: 1.5rem; }
.tax-note { display: block; margin-top: 0.4rem; font-size: var(--fs-micro); color: var(--c-ink-muted); }
.cart__ctas { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 0.6rem; }
.cart__ctas > * + * { margin-top: 0 !important; }
#cart-template .cart__checkout-button { width: 100%; max-width: none; }
.voucher-toggle-wrapper { border: 1px solid var(--c-line); border-radius: 14px; background-color: var(--c-surface); }
.voucher-toggle-content { display: grid; gap: 0.1rem; }
.voucher-toggle-title { font-size: var(--fs-small); }
.voucher-toggle .text-muted { color: var(--c-ink-muted); font-size: var(--fs-micro); }
discount-input .field, .vouchers-modal discount-input .field { display: flex; gap: 0.5rem; position: relative; }
discount-input .field__input, .field__input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 1.1rem; background-color: var(--c-surface); color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: var(--radius-input); font: inherit; font-size: var(--fs-small);
}
discount-input .field__input:focus { outline: none; border-color: var(--c-ink); }
discount-input .field__label { display: none; }
discount-input .button { padding-inline: 1.25rem; }
.subtotal-discount-label, .remove_voucher_btn { color: var(--c-accent); }
.remove_voucher_btn svg { width: 0.85rem; height: 0.85rem; fill: currentColor; vertical-align: middle; cursor: pointer; }

/* the base sheet makes the quantity cell a flex box, which pulls it out of the
   table row (cells stop sharing a height and the row rules misalign) */
@media (min-width: 750px) {
  .cart-page .cart-item td.cart-item__quantity { display: table-cell; padding-left: 1.5rem; }
}
.cart-item__quantity > quantity-input, .cart-item__quantity > .cart-action-icon { vertical-align: middle; }
.cart-item__totals, .cart-item__price-wrapper { white-space: nowrap; }

/* the platform voucher sheet loads after this one (grey pill) — out-rank it */
#cart-template .voucher-toggle-wrapper { display: block; line-height: normal; }
#cart-template .voucher-toggle {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; margin: 0; padding: 0.85rem 1.1rem;
  border-radius: 14px; background: transparent; color: var(--c-ink); cursor: pointer;
}
#cart-template .voucher-toggle:hover { color: var(--c-accent); }
#cart-template .voucher-toggle-content .text-muted { color: var(--c-ink-muted); }
#cart-template .voucher-toggle .icon-chevron-right { width: 1.1rem; height: 1.1rem; margin: 0 0 0 auto; stroke: currentColor; }

/* the platform promotion widgets (cart/content_top + content_bottom app snippets) */
#cart-promotion-top:empty, #cart-promotion-section:empty { display: none; }
#cart-promotion-top, #cart-promotion-section { color: var(--c-ink); font-size: var(--fs-small); }
.drawer--cart #cart-promotion-top { margin-bottom: 1rem; }
.drawer--cart #cart-promotion-section { margin-top: 1rem; }

/* the vouchers modal (snippets/voucher-modal + the platform voucher widget).
   The platform sheets paint it and load after this file, so every rule is scoped
   under the vouchers-modal element + the #vouchers-modal id to out-rank them. The
   ticket widget is driven by --voucher-widget-* variables — re-pointed here at the
   theme tokens — and its notch circles use rgb(--color-background), so that is set
   to the panel ground. */
vouchers-modal #vouchers-modal {
  --color-background: 255, 255, 255;
  --color-foreground: 28, 21, 16;
  --voucher-widget-font-family: var(--font-body);
  --voucher-widget-theme-color: var(--c-accent);
  --voucher-widget-border: 1px solid var(--c-line);
  --voucher-widget-black: var(--c-ink);
  --voucher-widget-dark-500: var(--c-ink);
  --voucher-widget-dark-400: var(--c-ink-muted);
  --voucher-widget-dark-300: var(--c-ink-muted);
  --voucher-widget-dark-200: var(--c-ink-subtle);
  --voucher-widget-dark-100: var(--c-surface-2);
  --voucher-widget-danger: var(--c-sale);
  background-color: var(--c-surface); color: var(--c-ink);
  border: 0; border-radius: var(--radius-card); box-shadow: var(--shadow-pop); font-family: var(--font-body); overflow: hidden;
}
vouchers-modal #vouchers-modal-backdrop.active { background-color: var(--c-scrim); }
vouchers-modal .vouchers-modal__header { align-items: center; padding: 1.5rem 1.75rem 0.25rem; }
vouchers-modal .vouchers-modal__heading { margin: 0; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-h3); color: var(--c-ink); }
vouchers-modal .vouchers-modal__close.link { text-decoration: none; }
/* the close BUTTON only (`button.`) — the platform's full-screen backdrop is
   `<div id="vouchers-modal-backdrop" class="vouchers-modal__close">` (a click on it
   closes the modal), and this size on the bare class shrank it to a 40px dot */
vouchers-modal button.vouchers-modal__close { margin: 0 -0.5rem 0 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--c-ink); }
vouchers-modal button.vouchers-modal__close:hover { background-color: var(--c-surface-2); }
vouchers-modal .vouchers-modal__close .icon { width: 1.1rem; height: 1.1rem; color: currentColor; }
vouchers-modal #vouchers-modal discount-input { padding: 1rem 1.75rem 0; }
vouchers-modal #vouchers-modal discount-input .field { align-items: stretch; gap: 0.5rem; }
vouchers-modal #vouchers-modal discount-input .field__input,
vouchers-modal #vouchers-modal .search__input {
  flex: 1; height: auto; min-height: 3rem; padding: 0.75rem 1.1rem; background-color: var(--c-bg); color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: var(--radius-input); box-shadow: none; font-size: var(--fs-small);
}
vouchers-modal #vouchers-modal discount-input .field__input::placeholder { color: var(--c-ink-subtle); }
vouchers-modal #vouchers-modal discount-input .field__input:focus { border-color: var(--c-ink); outline: none; }
vouchers-modal #vouchers-modal discount-input .button { flex: none; min-height: 3rem; padding: 0 1.5rem; }
vouchers-modal #vouchers-modal discount-input .button.loading { opacity: 0.6; pointer-events: none; }
vouchers-modal #vouchers-modal .form__message { color: var(--c-sale); font-size: var(--fs-small); }
vouchers-modal #vouchers-modal > br { display: none; }
vouchers-modal .vouchers-list-heading { padding: 1.5rem 1.75rem 0; font-size: var(--fs-micro); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink-muted); }
vouchers-modal .vouchers-list-wrapper { padding: 0 1.75rem 1.5rem; margin: 0.9rem 0 0; row-gap: 0.75rem; scrollbar-width: thin; scrollbar-color: var(--c-line) transparent; }
vouchers-modal .empty-vouchers_placeholder { min-height: 12rem; padding: 0 1.75rem 1.5rem; color: var(--c-ink-muted); font-size: var(--fs-small); }
vouchers-modal .voucher-widget { color: var(--c-ink); }
vouchers-modal .voucher-widget-mask, vouchers-modal .voucher-widget-body-frame { background-color: var(--c-bg); }
vouchers-modal .voucher-widget-icon { color: var(--c-accent-ink); }
vouchers-modal .voucher-widget-header { font-family: var(--font-display); color: var(--c-ink); }
vouchers-modal .voucher-widget-text-muted { color: var(--c-ink-muted); }
vouchers-modal .voucher-widget-badge { background-color: var(--c-surface); color: var(--c-ink-muted); border: 1px solid var(--c-line); }
vouchers-modal .voucher-widget-counter { color: var(--c-accent-ink); }
vouchers-modal .voucher-widget-button { color: var(--c-accent); border-color: var(--c-accent); border-radius: var(--radius-pill); }
vouchers-modal .voucher-widget-button:hover { background-color: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
vouchers-modal .voucher-widget-list__item.disabled { opacity: 0.55; }

/* on phones the cart table re-flows into rows */
@media (max-width: 749px) {
  .cart-items thead { display: none; }
  .cart-items, .cart-items tbody { display: block; }
  .cart-item {
    display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; column-gap: 1rem; row-gap: 0.6rem;
    padding-block: 1.1rem; border-bottom: 1px solid var(--c-line);
  }
  .cart-item td { display: block; padding: 0; border: 0; }
  .cart-item__media { width: auto; grid-row: span 2; padding: 0; }
  .cart-item__details { padding: 0; }
  .cart-item__quantity { grid-column: 2 / -1; }
  .cart__blocks { max-width: none; }
}

/* inside the ~420px drawer the page layout folds into compact rows */
.drawer--cart .cart-items thead { display: none; }
.drawer--cart .cart-items, .drawer--cart .cart-items tbody { display: block; }
.drawer--cart .cart-item {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; column-gap: 0.9rem; row-gap: 0.55rem;
  padding-block: 1rem; border-bottom: 1px solid var(--c-line);
}
.drawer--cart .cart-item td { display: block; padding: 0; border: 0; width: auto; min-width: 0; max-width: 100%; }
.drawer--cart .cart-item__media { grid-row: span 2; }
.drawer--cart .cart-item__details { grid-column: 2; padding-right: 0; }
.drawer--cart .cart-item__totals.small-hide { display: none !important; }
.drawer--cart .cart-item__totals.medium-hide { display: block !important; grid-column: 3; grid-row: 1; }
.drawer--cart .cart-item__quantity { display: flex; align-items: center; gap: 0.25rem; grid-column: 2 / -1; padding: 0; }
.drawer--cart #cart-template .quantity { height: 36px; }
.drawer--cart #cart-template .quantity__button { width: 1.9rem; }
.drawer--cart #cart-template .quantity__input { width: 2rem; }
.drawer--cart #main-cart-footer { margin-top: auto; }
.drawer--cart .cart__footer { padding-top: 1.25rem; }
.drawer--cart .cart__blocks { max-width: none; }
.drawer--cart cart-items.is-empty .cart__warnings { padding-block: 0.5rem 1rem; }
.drawer--cart .cart__empty-text { font-size: var(--fs-h3); }
#main-cart-footer, .cart__footer { border-top: 0; }

/* rails (the hero, the category rail): a mouse drag scrolls the track (init.js §4);
   while it is held the snap and the smooth behaviour are off so the track follows the hand */
[data-rail-track] { cursor: grab; }
[data-rail-track].is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; -webkit-user-select: none; }
[data-rail-track].is-dragging * { pointer-events: none; }

/* ── 9. Quickview modal ────────────────────────────────────────────────────── */
#product-quickview-modal[open] {
  --color-foreground: 28, 21, 16;
  --color-background: 255, 255, 255;
  background-color: var(--c-surface); color: var(--c-ink);
  border: 0; border-radius: var(--radius-card); box-shadow: var(--shadow-pop);
  max-height: 92vh; overflow-y: auto; width: min(1000px, 94vw);
  /* keep a real box while the platform renders the body (it can take seconds):
     with no height the open modal is a 2px line and reads as "nothing happened" */
  min-height: min(30rem, 80vh);
  animation: qv-rise var(--dur) var(--ease) both;
}
/* product-quickview.js only toggles [open] (display none → block), so the entrance is
   a keyframe animation, which starts every time the element appears; it moves the
   independent `translate` property, leaving the base sheet's centring transform alone */
#product-quickview-modal[open] + .product-quickview-modal-backdrop { background-color: var(--c-scrim); animation: qv-fade var(--dur) var(--ease) both; }
@keyframes qv-rise { from { opacity: 0; translate: 0 1.5rem; } }
@keyframes qv-fade { from { opacity: 0; } }
/* phones and tablets (the base sheet's own 998px breakpoint pins it to the foot):
   an edge-to-edge bottom sheet sliding up */
@media (max-width: 998px) {
  #product-quickview-modal[open] {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-width: none; max-height: 92dvh;
    border: 0; border-top: 1px solid var(--c-line); border-radius: 20px 20px 0 0;
    animation: qv-sheet 380ms var(--ease) both;
  }
  /* the vendored sheet makes .product-quickview an 80dvh scroll box of its own; with that
     fixed height the grid gave the picture a 0px row and the info column painted over it.
     The sheet (the modal, max-height 92dvh) is the scroller; the body is as tall as it is */
  .product-quickview.qv { height: auto; overflow: visible; }
}
@keyframes qv-sheet { from { translate: 0 100%; } }
.product-quickview-modal-wrapper > .loading-overlay { width: 2.75rem; z-index: 2; }
.product-quickview-modal-wrapper > .loading-overlay .loading-overlay__spinner { width: 2.75rem; }
/* the reference's quick-add sheet: a 3:4 picture beside the info column — the
   vendored product-quickview.css (a flex row) loads after reference.css, so the
   reference's grid is restated on the pair of classes */
#product-quickview-modal[open]:has(.product-quickview.qv) { min-height: 0; } /* the loading box only while loading */
.product-quickview.qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem; padding: 1.25rem; align-items: start; }
.product-quickview .product-quickview__img-wrapper.qv__media { max-width: none; background-color: var(--c-surface-2); border-radius: 16px; overflow: hidden; }
/* a square picture (merchant's call, 2026-10-16), the photo fitted inside it */
.product-quickview .qv__media img.product-quickview__img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 16px; }
@media (min-width: 750px) {
  /* the sheet is at least 34rem tall (a square picture alone made it squat); the row
     stretches to that, the picture sits at the top of its column */
  .product-quickview.qv { min-height: min(34rem, 84vh); }
  /* the info column is exactly as tall as the row and scrolls inside: `height: 0`
     keeps it out of the row's sizing, the percentage min-height fills the row */
  .product-quickview__content-wrapper.qv__info { height: 0; min-height: 100%; max-height: none; overflow-y: auto; }
}
/* the vendored sheet pads the info column 30px each side on top of the grid gap and
   caps it at 500px (its own scroll) — keep the cap (the 3:4 picture is the modal's
   height), drop the side padding so the gap to the picture is the grid's alone */
.product-quickview__content-wrapper.qv__info { color: var(--c-ink); display: grid; gap: 0.75rem; align-content: start; padding: 1.5rem 0 0; min-width: 0; }
.product-quickview .quickview-title { display: block; color: var(--c-ink); text-decoration: none; }
.product-quickview .quickview-title:hover .qv__title { color: var(--c-accent); }
/* `.product-quickview h2 { margin: .5em 0 .7em }` in the vendored sheet beat the bare
   class: the title floated 10px down and 13px off the price */
.qv__title, .product-quickview .qv__title { margin: 0; padding-right: 2rem; }
.product-quickview .qv__price.price { font-size: var(--fs-h3); }
/* an empty promo slot is still a grid row — hide it until the platform fills it */
.product-quickview .quickview_promo-tag-wrapper:not(:has(#quickview_promo-tag > *)) { display: none; }
.product-quickview .product-form { margin-top: 0; }
.product-quickview .opt__row { gap: 0.4rem; }
.product-quickview .product-form__input { margin-bottom: 1rem; }
.product-quickview fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.product-quickview .product-form__quantity { display: block; height: auto; }
/* the reference's .qty is one flex row (− 1 +). `display: inline-grid` here had no
   columns, so the three controls stacked in a 50px pill and spilled out of it. */
.product-quickview .product-form__quantity .qty { height: 48px; }
/* the base sticky action bar is painted with a glow — use the panel ground */
/* the bar sticks to the foot of the info column's own scroll: the column is 8px
   taller than the picture, so 8px under the button lines it up with the picture's foot */
.product-quickview .quickview-sticky-actions { background-color: var(--c-surface); box-shadow: 0 -1.25rem 1.5rem var(--c-surface); padding-bottom: 0; }
.product-quickview .quickview-sticky-actions .btn { margin: 0; width: 100%; }
.product-quickview-modal__close { color: var(--c-ink); }
.product-quickview-modal-wrapper .product-quickview-modal__close { z-index: 3; background-color: var(--c-surface); border-radius: 50%; }
.product-quickview-modal__close svg { width: 1.1rem; height: 1.1rem; }
@media (max-width: 749px) {
  .product-quickview.qv { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
  .product-quickview .qv__media img.product-quickview__img { aspect-ratio: 4 / 5; }
  .product-quickview__content-wrapper.qv__info { padding-top: 0; }
  /* no column scroll on phones: the bar sticks to the sheet's bottom edge, so keep it off the home indicator */
  .product-quickview .quickview-sticky-actions { padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
}

/* ── 10. Content pages ─────────────────────────────────────────────────────── */
.rte { color: var(--c-ink-muted); line-height: var(--lh-body); }
.rte > * + * { margin-top: 1em; }
.rte h1, .rte h2, .rte h3, .rte h4 { font-family: var(--font-display); font-weight: var(--fw-display); color: var(--c-ink); line-height: var(--lh-heading); margin-top: 1.6em; }
.rte h1 { font-size: var(--fs-h2); }
.rte h2 { font-size: var(--fs-h3); }
.rte h3, .rte h4 { font-size: 1.0625rem; }
.rte > :first-child { margin-top: 0; }
.rte a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.rte ul, .rte ol { padding-left: 1.25rem; }
.rte ul { list-style: disc; }
.rte ol { list-style: decimal; }
.rte li + li { margin-top: 0.35em; }
.rte img { height: auto; max-width: 100%; border-radius: 12px; }
.rte strong, .rte b { color: var(--c-ink); }
.rte blockquote { border-left: 2px solid var(--c-accent); padding-left: 1.25rem; color: var(--c-ink); }
.rte table, .table-wrapper table { width: 100%; border-top: 1px solid var(--c-line); }
.rte td, .rte th { padding: 0.6rem 1rem 0.6rem 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.rte th { font-size: var(--fs-micro); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink-muted); }
.table-wrapper { overflow-x: auto; }
.rte iframe, .rte video { max-width: 100%; }

.page-body { width: min(100% - var(--gutter-lg) * 2, var(--container-narrow)); margin-inline: auto; padding-block: var(--section-y-tight) var(--section-y); }
.page-body--wide { width: min(100% - var(--gutter-lg) * 2, calc(var(--container) - 2 * var(--gutter-lg))); }
.page-body > .section__head { margin-top: var(--section-y-tight); }

/* blog + article */
.blog-grid { display: grid; gap: clamp(1.75rem, 3vw, 2.75rem) 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7rem; align-content: start; justify-items: start; }
.post-card__media { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-card); background-color: var(--c-surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__meta { margin: 0; }
.post-card__title { font-size: var(--fs-h3); line-height: 1.3; color: var(--c-ink); }
.post-card__title a:hover { color: var(--c-accent); }
.post-card__excerpt { font-size: var(--fs-small); color: var(--c-ink-muted); }
.article-hero { aspect-ratio: 16 / 9; overflow: hidden; margin: 0 0 clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--radius-card); background-color: var(--c-surface-2); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 0.9rem; }
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); }

/* search + 404: the reference's linen search pill (.search) beside a pill button */
.searchpage { display: flex; align-items: center; gap: 0.75rem; max-width: var(--container-narrow); margin-top: 1.5rem; }
.searchpage__field { flex: 1; min-width: 0; }
.searchpage .btn { flex: none; }
.notfound .notfound__code { margin: 0; font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem); line-height: 1; color: var(--c-accent); }
.notfound .colhead__title { margin-top: 0.5rem; }
.notfound .colhead__lede { margin-top: 0.75rem; }
.colhead--page .colhead__lede { max-width: 44ch; }

/* list-collections: the reference's category tiles in the product grid */
.collections-grid .cat a { display: block; }
.collections-grid .cat__count { vertical-align: super; }

/* store locator (base template, reference look) */
.store-locator { width: min(100% - var(--gutter-lg) * 2, calc(var(--container) - 2 * var(--gutter-lg))); margin-inline: auto; padding-block: var(--section-y-tight) var(--section-y); }
.store-locator .colhead__title { margin-top: 0; font-size: var(--fs-h1); }
.store-locator-heading { display: grid; gap: 1rem; margin-bottom: 2rem; }
.store-locator .select { position: relative; display: inline-flex; }
.store-locator .select__select {
  appearance: none; -webkit-appearance: none; min-width: 16rem; min-height: 2.75rem; padding: 0 2.4rem 0 1.15rem;
  background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1510' stroke-width='1.5'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 1rem;
  color: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--radius-pill);
}
.store-selector-item { height: 100%; padding: 1.25rem; background-color: var(--c-surface-2); border-radius: var(--radius-card); color: var(--c-ink-muted); font-size: var(--fs-small); }
.store-selector-item strong { display: block; margin-bottom: 0.5rem; color: var(--c-ink); }
.store-selector-item a { color: var(--c-accent); }
.store-selector-item address { font-style: normal; margin-top: 0.5rem; }

/* ── 11. Platform-rendered controls ─────────────────────────────────────────
   The promotion app renders `btn btn-primary`, the sf auth views `btn
   button--full-width` / `button--secondary`; reference.css defines .btn as the
   cocoa-filled pill with a --light colourway, so the platform variants alias onto
   those. */
.btn.btn-primary, .btn.button--full-width:not(.button--secondary), button.btn:not([class*="btn--"]) { background-color: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); cursor: pointer; }
.btn.btn-primary:hover, .btn.button--full-width:not(.button--secondary):hover, button.btn:not([class*="btn--"]):hover { background-color: var(--c-ink); color: var(--c-white); }
.btn.button--secondary, .btn.btn--secondary { background-color: transparent; border: 1px solid var(--c-line); color: var(--c-ink); }
.btn.button--secondary:hover, .btn.btn--secondary:hover { background-color: transparent; border-color: var(--c-ink); color: var(--c-ink); }
.btn.button--full-width { width: 100%; }
button.btn, a.btn { cursor: pointer; text-decoration: none; }
#promotion-section, [id^="sf_promo-"], [class^="sf_promo-"] { color: var(--c-ink); }
#get-more-promotion, #view-more-promotion, #sf_promo-view-more-tag { color: var(--c-accent) !important; }
.flex-container { scrollbar-width: thin; }

/* sf's /account/challenge — the manual reCAPTCHA step after a low invisible score.
   sf renders it with template 'app' and a bare <form class="text-center">: there is
   no .customer wrapper, so customer.css (not loaded) never reaches it, and its submit
   is an `input.btn`, which the `button.btn` alias above misses. The form itself
   becomes a centred white card. */
#MainContent form[action$="challenge"] {
  container-type: inline-size;
  width: min(27.5rem, 100% - 2 * var(--gutter));
  margin: calc(3.75rem + clamp(2rem, 5vw, 4rem)) auto calc(5.625rem + var(--section-y));
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2.5rem);
  background-color: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-card);
  text-align: center;
}
#MainContent form[action$="challenge"] h2 { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-h2); line-height: var(--lh-heading); }
#MainContent form[action$="challenge"] p { margin-bottom: 1.5rem; color: var(--c-ink-muted); }
/* the widget's own 304×78 box, held before its async script paints, so the button doesn't jump */
#MainContent form[action$="challenge"] .g-recaptcha { min-height: 78px; }
#MainContent form[action$="challenge"] > br { display: none; }
#MainContent form[action$="challenge"] .btn {
  width: 100%; margin-top: 1.5rem; min-height: 3rem;
  border: 1px solid var(--c-accent); background-color: var(--c-accent); color: var(--c-accent-ink);
  font-size: var(--fs-small); cursor: pointer; appearance: none; -webkit-appearance: none;
}
#MainContent form[action$="challenge"] .btn:hover { background-color: var(--c-ink); border-color: var(--c-ink); }
/* the widget is a fixed 304px iframe: step it down when the card is narrower (phones) */
@container (width < 304px) { #MainContent form[action$="challenge"] .g-recaptcha { scale: 0.9; } }
@container (width < 274px) { #MainContent form[action$="challenge"] .g-recaptcha { scale: 0.8; } }

/* currency picker (snippets/currency-picker) */
.currency-picker-block .select { position: relative; display: inline-flex; }
.currency-picker {
  appearance: none; -webkit-appearance: none; padding: 0.4rem 2rem 0.4rem 0.85rem;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7efe3' stroke-width='1.5'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E") no-repeat right 0.65rem center / 0.85rem;
  border: 1px solid currentColor; border-radius: var(--radius-pill);
  color: inherit; font-size: var(--fs-micro); letter-spacing: 0.06em; cursor: pointer;
}
.drawer__currency .currency-picker { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1510' stroke-width='1.5'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E"); }
.currency-picker option { background-color: var(--c-surface); color: var(--c-ink); }

/* ── 12. Footer additions ──────────────────────────────────────────────────── */
.footer__name { margin: 0; }
.footer__head { margin-top: 0; }
.footer__col { min-width: 0; }
.footer__col ul { margin: 0; padding: 0; list-style: none; }
.footer__socials { display: grid; justify-items: start; gap: 0.6rem; }
.footer__social:hover { color: var(--c-accent-soft); }
.footer__head--pay { margin-top: 1.5rem; }
/* the store's payment marks (payment_type_image_url) on small white plates */
.footer__pay { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.footer__pay li { display: grid; place-items: center; padding: 0.2rem 0.35rem; border-radius: 6px; background-color: var(--c-white); }
.footer__pay img { height: 22px; width: auto; }
/* the WhatsApp button app injects a bare <li> into this list (global/quick_link) */
.footer__quick { margin: 0.6rem 0 0; padding: 0; list-style: none; }
.footer__quick:empty { display: none; }
.footer__quick li > a:not([href]) { cursor: pointer; }
.footer__base { align-items: center; }
.footer__base p { margin: 0; }

/* ── 13. Motion kill-switch + reduced motion ─────────────────────────────────
   ?ts-anim=off (animations.js) flattens every effect to its end state for
   deterministic screenshots; the scroll entrance is scoped to a class only the
   scripts set (html.cocoduckbaby-js), so nothing is hidden waiting for JS. */
html[data-anim-off] *, html[data-anim-off] *::before, html[data-anim-off] *::after { transition: none !important; animation: none !important; }
html[data-anim-off] [data-reveal] { opacity: 1 !important; transform: none !important; }
html.no-js [data-reveal] { opacity: 1; transform: none; }
/* a card staggers its entrance by its place in the row (animations.js sets --i) */
.cocoduckbaby-js [data-reveal] { transition-delay: calc(var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) {
  .drawer__panel, .navdrop { transition: none; }
  .cocoduckbaby-js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
