/* ===========================================================================
   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's own wrappers, the controls the lift made real (dropdown menus,
   the live search, the card add bar on touch, the swipeable gallery), the
   platform surfaces (cart page + drawer, quick view, option radios, filters,
   account, search, blog) that arrive in the base theme's class vocabulary, and
   the state classes the platform's JS toggles (.hidden, .loading, .transparent,
   .price--on-sale), each of which needs a visible half.
   Every rule 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 (logo cap, search pill, dropdowns, row overflow)
    3. Drawers (slide-in, menu accordions, live search, cart drawer body)
    4. Homepage additions (hero, benefits, category row, band tools)
    5. Product card (add bar contract, touch layout, loading, grid wrapper)
    6. Product page (gallery track, sticky column, price states, chips, stepper)
    7. Collection (toolbar, filter pills, empty state, pagination)
    8. Cart (page + drawer skin of the base cart template)
    9. Quick view modal
   10. Content pages (rte, page, blog, article, search, 404, store locator)
   11. Platform-rendered controls (.btn aliases, auth challenge, currency picker)
   12. Footer additions
   13. Motion kill-switch
   =========================================================================== */

/* ── 1. Platform utilities + base-theme variable bridge ─────────────────────
   The base component sheets (cart, price, quick view, account) paint from the
   base theme's comma-triplet variables; mapped here onto this palette. */
:root {
  --color-foreground: 20, 22, 28;
  --color-background: 255, 255, 255;
  --color-base-text: 20, 22, 28;
  --color-base-background-1: 255, 255, 255;
  --color-base-background-2: 244, 245, 247;
  --color-base-solid-button-labels: 255, 255, 255;
  --color-base-outline-button-labels: 5, 28, 98;
  --color-base-accent-1: 214, 43, 29;
  --color-base-accent-2: 214, 43, 29;
  --color-button: 214, 43, 29;
  --color-button-text: 255, 255, 255;
  --color-link: 5, 28, 98;
  --color-card-hover: 20, 22, 28;
  --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);
  /* the accent a notch darker, for hover on surfaces the reference never had */
  --c-accent-hover: color-mix(in srgb, var(--c-accent) 86%, #000);
}

/* author display rules (.toolbar__btn, .rail-nav button …) 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; } }
body.overflow-hidden { overflow: hidden; }
html.pohwah-locked { overflow: hidden; }
main:focus { outline: none; }
.wrap--narrow { max-width: calc(var(--container-narrow) + 4rem); }
.skip-link {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 100;
  padding: 0.5rem 0.875rem; border-radius: var(--radius-button);
  background: var(--c-ink); color: var(--c-bg); font-size: var(--fs-small); font-weight: var(--fw-bold);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

/* ── 2. Header additions ───────────────────────────────────────────────────── */
/* The header section renders the announcement strip, the header, the promo strip
   and the drawers inside one wrapper, and a sticky element cannot travel outside
   its parent — the wrapper is only as tall as the three bars, so the header
   scrolled away with it. display: contents lets the header stick against the
   page, as the reference's header (a direct child of <body>) does. The drawers
   are fixed, so losing the wrapper's box changes nothing else. */
.header-section { display: contents; }
.announce a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.header[data-sticky="none"] { position: relative; }
/* the logo height setting (default 44px) sets the rest height; stuck and phone
   heights keep the reference's 34/44 ratio */
.header__brand img {
  height: var(--logo-max-height, 44px); max-height: var(--logo-max-height, 44px);
  width: auto; max-width: min(34vw, 240px); object-fit: contain; object-position: left center;
}
.header.is-stuck .header__brand img { height: calc(var(--logo-max-height, 44px) * 0.773); }
@media (max-width: 899px) {
  .header__brand img { height: calc(var(--logo-max-height, 44px) * 0.818); }
  .header__brand { flex-shrink: 1; min-width: 0; }
  .header__row { gap: 0.5rem; }
}
.header__burger { flex: none; }
/* the pill: a button dressed as the field. Store-wide — /search has no department
   scope, so the pill carries no scope chip */
.hsearch:focus-within { border-color: var(--c-ink-subtle); }
.hsearch__field { height: 100%; color: inherit; cursor: text; }
.hsearch__field:hover span { color: var(--c-ink); }
/* phones: the pill is hidden (reference.css), so the tools gain a search icon */
@media (min-width: 900px) { .htool--search { display: none; } }
/* the platform's count hook sits on the reference's badge; cart-drawer.js /
   cart-notification.js toggle .hidden at zero */
.cart-count-bubble { pointer-events: none; }
.htool__count .js-content-cart-count { line-height: inherit; }

/* the department row: the reference's flat flex row, with dropdowns under any link
   that has a sub-menu. reference.css lays out EVERY `.header__nav ul` as that row
   and styles every `.header__nav a` as a row link, so the dropdown's own lists
   and links are re-stated below at higher specificity. */
.header__nav { position: relative; }
.header__navitem { position: relative; }
.header__nav .header__navlink { display: inline-flex; align-items: center; gap: 0.25rem; }
.header__navlink .icon { transition: rotate var(--dur) var(--ease); }
.has-dropdown:hover > .header__navlink .icon,
.has-dropdown:focus-within > .header__navlink .icon { rotate: 180deg; }
.navdrop {
  position: absolute; top: 100%; left: -0.75rem; z-index: 45;
  min-width: 14rem; padding: 0.5rem;
  background: var(--c-surface); color: var(--c-ink);
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; translate: 0 6px;
  transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease), visibility var(--dur);
}
/* the hover bridge across the gap under the link */
.navdrop::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 0.75rem; }
.has-dropdown:hover > .navdrop,
.has-dropdown:focus-within > .navdrop { opacity: 1; visibility: visible; translate: 0 0; }
.header__nav .navdrop__list { display: grid; gap: 0; padding: 0; }
.header__nav .navdrop a {
  display: block; padding: 0.45rem 0.75rem; border: 0; border-radius: calc(var(--radius-button) - 2px);
  font-weight: var(--fw-body); color: var(--c-ink); white-space: nowrap;
}
.header__nav .navdrop a:hover { background: var(--c-surface-2); color: var(--c-accent); }
.navdrop--cols .navdrop__list { grid-template-columns: repeat(2, minmax(11rem, 1fr)); }
/* a menu with grandchildren opens a full-row panel of columns under the row */
.header__navitem:has(> .navdrop--mega) { position: static; }
.navdrop--mega {
  left: 0; right: 0; min-width: 0; padding: 1.25rem 0 1.5rem;
  border-width: var(--border-width) 0; border-radius: 0;
}
.header__nav .navdrop--mega .navdrop__list {
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1.25rem var(--gutter-lg); align-items: start;
  padding-inline: var(--gutter-lg);
}
.header__nav .navdrop--mega a { white-space: normal; }
.header__nav .navdrop .navdrop__link--head {
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-display);
  padding-bottom: 0.35rem;
}
.header__nav .navdrop__sub { display: grid; gap: 0; padding: 0; }
.header__nav .navdrop .navdrop__sublink { padding-block: 0.3rem; font-size: var(--fs-small); color: var(--c-ink-muted); }
.header__nav .navdrop__sub--deep {
  margin: 0.1rem 0 0.35rem 0.75rem; padding-left: 0.25rem;
  border-left: var(--border-width) solid var(--c-line);
}
/* a department row too long for one line hides; the menu button beside the logo
   opens the same menu in the drawer (init.js §8) */
.header-section.nav-overflow .header__nav { display: none; }

/* ── 3. Drawers ─────────────────────────────────────────────────────────────── */
/* reference.css fades the scrim; the panel slides in from its own edge */
.drawer__panel { transition: translate var(--dur) var(--ease); }
.drawer--start .drawer__panel { translate: -100% 0; }
.drawer--end .drawer__panel { translate: 100% 0; }
.drawer--top .drawer__panel { translate: 0 -1.5rem; }
.drawer.is-open .drawer__panel { translate: 0 0; }
.drawer__title { margin: 0; }
.drawer__close { color: var(--c-ink); border-radius: var(--radius-button); }
.drawer__close:hover { background: var(--c-surface-2); }

/* menu drawer — the menu as native <details> accordions, four levels */
.drawer__list > li > a,
.drawer__group > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-size: 1.125rem; line-height: 2.4;
  border-block-end: var(--border-width) solid var(--c-line);
  cursor: pointer; list-style: none;
}
.drawer__group > summary::-webkit-details-marker { display: none; }
.drawer__group > summary .icon { transition: rotate var(--dur) var(--ease); }
.drawer__group[open] > summary .icon { rotate: 180deg; }
.drawer__nav .drawer__children a {
  font-family: var(--font-body); font-size: var(--fs-small); line-height: 2.3;
  border: 0; padding-left: 0.75rem; color: var(--c-ink-muted);
}
.drawer__nav .drawer__children a:hover { color: var(--c-accent); }
.drawer__children { padding-block: 0.35rem 0.6rem; border-block-end: var(--border-width) solid var(--c-line); }
.drawer__grandchildren { padding-left: 0.75rem; }
.drawer__nav .drawer__grandchildren a { line-height: 2; }
.drawer__sub a { display: flex; align-items: center; gap: 0.6rem; }
.drawer__sub a:hover { color: var(--c-accent); }
.drawer__currency { padding-top: 1rem; }

/* search drawer — the form, live hits, and popular-search chips */
.searchform .search-field { margin-block: 1rem 0.5rem; }
.search-field::-webkit-search-cancel-button { cursor: pointer; }
.search-field:focus { outline: none; border-color: var(--c-ink-subtle); background: var(--c-surface); }
.search-hits:empty { display: none; }
.search-hits[aria-busy="true"] { opacity: 0.55; transition: opacity var(--dur) var(--ease); }
.search-hit__img { display: block; background: var(--c-tile-bg); border-radius: 6px; }
.search-hit__price { display: inline-flex; align-items: baseline; gap: 0.25rem; white-space: nowrap; }
.search-hit__price .card__was { font-size: var(--fs-micro); font-weight: var(--fw-body); color: var(--c-ink-subtle); }
.search-all { margin-top: 0.75rem; }
.search-suggest { padding-top: 0.75rem; }
.search-suggest__title { margin-bottom: 0.6rem; color: var(--c-ink-subtle); }
.search-suggest__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.search-chip {
  display: inline-flex; align-items: center; min-height: 2.125rem; padding-inline: 0.9rem;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-pill);
  font-size: var(--fs-small); color: var(--c-ink);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.search-chip:hover { border-color: var(--c-ink-subtle); background: var(--c-surface-2); }

/* cart drawer — the shared base cart template inside the reference's drawer */
.drawer--cart .drawer__panel { position: relative; width: min(440px, 92vw); padding: 0; overflow: hidden; }
.drawer--cart .drawer__head { padding: 1.1rem 1.1rem 0.85rem; }
.cart__count { color: var(--c-ink-subtle); }
.cart__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0.25rem 1.1rem 1.25rem; display: flex; flex-direction: column; }
.cart__body > #cart-template { flex: 1; display: flex; flex-direction: column; }
.cart__body #cart-form { flex: 1; display: flex; flex-direction: column; }
.cart__loading {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  background: rgb(255 255 255 / 0.6);
}
.cart__loading.hidden { display: none !important; }
/* the head stays above the loading veil, so the drawer can be closed mid-request */
.cart__top { position: relative; z-index: 4; background: var(--c-surface); }
.cart__loading .spinner { width: 2.75rem; height: 2.75rem; }
.cart__loading .path { stroke: var(--c-accent); }
/* the sales-pop app's toast floats at z-index 99998 over the top of a phone screen —
   right on the drawers' close buttons. It stands down while a drawer (html lock from
   init.js) or the quick view (body lock from product-quickview.js) is open. */
html.pohwah-locked [id$="sales_pop__apps"], body.overflow-hidden [id$="sales_pop__apps"] { display: none; }

/* ── 4. Homepage additions ─────────────────────────────────────────────────── */
.hero__rail { position: relative; }
.hero__track { overscroll-behavior-x: contain; }
.hero__slide picture { display: block; }
.benefits__link { display: contents; color: inherit; }
.benefits__link:hover .benefits__title { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1100px) {
  .benefits__list[style*="--benefit-count"] { grid-template-columns: repeat(var(--benefit-count), minmax(0, 1fr)); }
}
.section__tools { display: flex; align-items: center; gap: 0.75rem 1.25rem; margin-left: auto; }
@media (min-width: 900px) {
  .cats[style*="--cats-cols"] { grid-template-columns: repeat(var(--cats-cols), minmax(0, 1fr)); }
}
.cat__count { display: block; margin-top: 0.2rem; font-size: var(--fs-micro); color: var(--c-ink-subtle); }
.wholesale__media { display: block; }
@media (min-width: 900px) { .wholesale--flip .wholesale__media { order: 2; } }
/* the homepage app slots (templates/home): page width, clipped sideways — the
   star-rating app's carousel reaches 20px past both edges */
.home-apps { overflow-x: clip; }
.home-apps:not(:has(*)) { display: none; }
.home-apps:has(*) { padding-block: var(--section-y-tight); }
.rail-nav button:disabled { opacity: 0.35; cursor: default; }
.rail-nav button:disabled:hover { background: none; }

/* ── 5. Product card ───────────────────────────────────────────────────────── */
/* The add bar is <add-to-cart-button> (or a plain div for a sold-out / sample
   card) holding the reference's .card__add. The wrapper takes the reference's
   positioned role — the bar across the packshot's foot that rises on hover — so
   the platform's loading overlay shares the bar's grid cell and the spinner
   lands on the button. */
.card__addwrap {
  position: absolute; inset-inline: 0.5rem; inset-block-end: 0.5rem; z-index: 2;
  display: grid;
  opacity: 0; transform: translateY(0.5rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card__addwrap > * { grid-area: 1 / 1; }
.card .card__addwrap > .card__add { position: static; inset: auto; width: 100%; opacity: 1; transform: none; }
.card:hover .card__addwrap, .card__addwrap:focus-within,
.card__addwrap:has(.loading-overlay:not(.hidden)) { opacity: 1; transform: none; }
.card__add.addToClassList { cursor: pointer; }
/* a sample card's bar is a link, and reference.css makes every `.card__media a` a
   full-height block (the packshot link) */
.card__media a.card__add { display: inline-flex; height: auto; color: var(--c-accent-ink); }
.card__add.transparent { color: transparent; }
/* z-index 3: the button is a GRID ITEM here, so the reference's `.card__add
   { z-index: 2 }` still applies to it although it is static — at 1 the red bar
   painted over the spinner and no loading state ever showed */
.card__addwrap .loading-overlay {
  position: relative; inset: auto; z-index: 3; width: auto;
  display: grid; place-items: center; pointer-events: none;
}
.card__addwrap .loading-overlay.hidden { display: none !important; }
.card__addwrap .loading-overlay__spinner { width: 1.25rem; display: block; }
.card__addwrap .loading-overlay .path { stroke: var(--c-accent-ink); }
/* touch: nothing reveals the bar, so it leaves the packshot and sits under the
   price — the media box steps out of the box model (display: contents) and its
   link takes the square plate, so the bar becomes a card row of its own */
@media (hover: none) {
  .card__media { display: contents; }
  .card__media > a {
    order: 0; height: auto; aspect-ratio: var(--card-ratio);
    position: relative; overflow: hidden; background: var(--c-tile-bg);
  }
  .card__body { order: 2; }
  .card__addwrap { position: static; opacity: 1; transform: none; order: 3; margin: 0 0.75rem 0.75rem; }
  .card.is-sold .card__addwrap { display: none; }
}
.card__badge--sale { background: var(--c-sale); color: var(--c-accent-ink); }
.card__amount { white-space: nowrap; }
/* the price follows the title instead of sinking to the card's foot (reference.css
   pins it there with margin-block-start: auto). Titles are clamped — two lines, three
   on phones' narrow cards — but hold no fixed height, so a short title leaves no gap. */
.card__title {
  --card-title-lines: 2;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--card-title-lines);
  overflow: hidden;
}
@media (max-width: 759px) { .card__title { --card-title-lines: 3; } }
/* …and sits close under it: no extra top padding over the body's own gap, and a
   tighter line for the large amount (its half-leading read as more gap) */
.card__price { margin-block-start: 0; padding-block-start: 0; line-height: 1.3; }
.card__unit { margin-top: 0.15rem; line-height: 1.5; }
.card__was { margin-left: 0.25rem; font-size: var(--fs-small); font-weight: var(--fw-body); color: var(--c-ink-subtle); white-space: nowrap; }
.grid.is-loading { opacity: 0.4; pointer-events: none; transition: opacity var(--dur) var(--ease); }
/* Every collection card sits in the platform's li.grid__item wrapper — the
   section renders it, /filtered_section_html returns it, and the Infinite
   Scrolling app appends by it. A grid itself, so the card stretches to the row's
   height and the prices line up at the foot. */
.grid > .grid__item { display: grid; min-width: 0; list-style: none; }
/* the platform wishlist heart (collection/product_top) takes the packshot's top-right corner */
.card > .wishlist-icon-btn {
  position: absolute !important; top: 0.5rem; right: 0.5rem; z-index: 3;
  width: 2.25rem !important; height: 2.25rem; border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.92);
}
.card { position: relative; }

/* ── 6. Product page ───────────────────────────────────────────────────────── */
.pdp-section .crumbs { margin-bottom: 1.25rem; }
.crumbs a { text-decoration: none; }
/* phones: reference.css only sets the columns from 960px, and a lone implicit auto
   column grows to its widest min-content child (the platform's promotion row) */
@media (max-width: 959px) { .pdp { grid-template-columns: minmax(0, 1fr); } }
/* gallery: a scroll-snap track of full-width slides (init.js §5) — each slide is
   the reference's .gallery__main plate */
.gallery__viewer { position: relative; min-width: 0; }
.gallery__stage {
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; touch-action: pan-x pan-y pinch-zoom;
  border-radius: var(--radius-card);
}
.gallery__stage::-webkit-scrollbar { display: none; }
.gallery__stage:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.gallery__stage.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.gallery__stage.is-dragging * { user-select: none; }
.gallery__stage:has(.gallery__slide + .gallery__slide) { cursor: grab; }
/* the pale plate moves from the image onto its slide: reference.css paints the
   plate on the <img> itself, and an element's multiply blend cannot reach its own
   background — the packshot's white stayed a white box inside the plate */
.gallery__slide {
  flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always;
  background: var(--c-tile-bg);
}
.gallery__slide .gallery__main { height: auto; background: transparent; border-radius: 0; }
.gallery__thumb img { width: 100%; height: auto; }
.gallery__arrow {
  position: absolute; top: 50%; z-index: 2;
  width: 2.5rem; height: 2.5rem; display: none; place-items: center;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-pill);
  background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(-50%) scale(0.92);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.gallery__arrow--prev { left: 0.75rem; }
.gallery__arrow--next { right: 0.75rem; }
.gallery__arrow:hover { background: var(--c-surface-2); }
@media (hover: hover) and (pointer: fine) {
  .gallery__arrow { display: grid; }
  .gallery__viewer:hover .gallery__arrow:not(:disabled),
  .gallery__arrow:focus-visible:not(:disabled) { opacity: 1; transform: translateY(-50%); }
  .gallery__arrow:disabled { pointer-events: none; }
}
/* desktop: the gallery rides along under the sticky header while the buy column
   (the taller one once a description and the platform's promotions land in it)
   scrolls past; reference.css pinned the buy column instead */
@media (min-width: 960px) {
  .pdp .buy { position: static; }
  .pdp .gallery {
    position: sticky; top: calc(var(--pohwah-header-h, 74px) + 1.25rem); align-self: start;
    width: 100%; max-width: calc(100dvh - var(--pohwah-header-h, 74px) - 7rem);
  }
}
/* price states: global.js toggles .price--on-sale from the selected variant */
.buy__prices .price-item { display: inline; }
.buy__prices:not(.price--on-sale) .buy__was,
.buy__prices:not(.price--on-sale) .buy__save { display: none; }
.buy__save:empty { display: none; }
/* the variant picker — EasyStore.OptionSelectors' output, dressed by init.js */
.options:not(:has(.selector-wrapper, fieldset, select:not(.hide))) { display: none; }
.options .selector-wrapper { display: flex; flex-direction: column; gap: 0.6rem; margin: 0; }
.options .selector-wrapper + .selector-wrapper { margin-top: 0.5rem; }
.options__set { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.options__set legend { padding: 0; margin-bottom: 0.6rem; }
/* OptionSelectors wraps each option in div.selector-wrapper-<select id> (not
   .selector-wrapper), so the name label and the groups are spaced directly */
.options .options__label { display: block; margin-bottom: 0.6rem; }
.options [class^="selector-wrapper"] + [class^="selector-wrapper"] { margin-top: 1rem; }
.options .selector-wrapper::after { display: none; }
.swatch__radio {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
  clip-path: inset(50%); pointer-events: none;
}
.swatch { cursor: pointer; margin: 0; line-height: 1.3; }
.swatch__radio:checked + .swatch { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.swatch__radio:focus-visible + .swatch { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.swatch__radio.disabled + .swatch, .swatch__radio:disabled + .swatch { opacity: 0.42; text-decoration: line-through; }
/* "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. A value
   with a picture is a square tile (rounded like the chips), its name stays for screen
   readers, and the chosen one is ringed OUTSIDE the picture — the checked fill is hidden
   under it. Pictureless values in the same row stay buttons, tile-tall. */
.swatches .swatch__radio + .swatch.variant-img-label-wrapper { min-height: 3.75rem; }
.swatches .swatch__radio + .swatch:has(.variant-img-label) {
  position: relative; width: 3.75rem; min-width: 0; height: 3.75rem; padding: 0; overflow: hidden;
}
.swatches .swatch .variant-img-label { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.swatches .swatch .variant-img-label + .label__text {
  display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.swatches .swatch__radio:checked:not(:focus-visible) + .swatch:has(.variant-img-label) { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.options__select {
  width: 100%; max-width: 22rem; min-height: 2.75rem; padding: 0 2.5rem 0 1rem;
  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='%234c525e' 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: var(--border-width) solid var(--c-line); border-radius: var(--radius-button);
  color: var(--c-ink); font-size: var(--fs-small); appearance: none; -webkit-appearance: none;
}
/* the form is not the buy column's flex box, so its rows need their own step */
.product-form .buyrow { margin-top: 1.1rem; }
/* quantity — the reference's .qty stepper, driven by <quantity-input> */
.product-form__quantity { display: flex; flex: none; }
.qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty input { font-variant-numeric: tabular-nums; color: var(--c-ink); }
/* app controls the platform inserts after the buy row (the wishlist's `a.btn.wishlist`
   in the product/button slot) sit a clear step below it as the outline button */
.buyrow ~ .btn { display: flex; width: 100%; margin-top: 0.75rem; }
.buyrow ~ .btn.wishlist { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); }
.buyrow ~ .btn.wishlist:hover { background: var(--c-surface-2); filter: none; }
/* 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 { 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); }
/* product-form.js also disables the button for the round trip, and the reference's
   `.btn[disabled]` is the sold-out look (grey fill) — a button that is only busy
   keeps its red fill, or the white spinner is 1.1:1 */
.btn.product-form__submit.loading[disabled] { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); cursor: progress; }
.form__message { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.875rem; color: var(--c-sale); font-size: var(--fs-small); }
.form__message.hidden { display: none !important; }
/* the platform's promotion widget (product/description_top) is several blocks that
   stay empty on a store without promotions — one wrapper keeps them to one row */
.buy__promos { min-width: 0; }
.buy__promos:not(:has(#sf_promo-container > *)) { margin-top: -1.1rem; }
.buy__desc .options__label { margin-bottom: 0.6rem; }
.buy__desc .rte { font-size: var(--fs-small); }
.pdp-desc__body { max-width: 52rem; }
.pdp__apps:has(*) { margin-top: var(--section-y-tight); }
.related-band[hidden] { display: none; }
/* share (snippets/social-sharing) — round icon buttons */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.share__label { margin-right: 0.25rem; font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink-muted); }
.share__link {
  position: relative; display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-pill); color: var(--c-ink);
}
.share__link:hover { background: var(--c-surface-2); }
.share__copied {
  position: absolute; bottom: calc(100% + 0.4rem); left: 50%; transform: translateX(-50%);
  padding: 0.3rem 0.55rem; white-space: nowrap; border-radius: 6px;
  background: var(--c-ink); color: var(--c-surface);
  font-size: var(--fs-micro); font-weight: var(--fw-bold); opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.share__copy.is-copied .share__copied { opacity: 1; }

/* ── 7. Collection ────────────────────────────────────────────────────────── */
.pagehead__lede.rte > * + * { margin-top: 0.5rem; }
.pagehead__lede.rte { color: var(--c-ink-muted); }
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1rem; margin-bottom: 1.5rem;
}
.toolbar__count { font-size: var(--fs-small); color: var(--c-ink-muted); }
.toolbar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.toolbar__btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 2.5rem; padding: 0 1rem;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-pill);
  background: var(--c-surface); color: var(--c-ink);
  font-size: var(--fs-small); font-weight: var(--fw-bold);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.toolbar__btn:hover { border-color: var(--c-ink-subtle); }
/* the filter bar — ONE set of controls, two presentations (snippets/collection-filters):
   desktop drops each facet's panel from its pill; phones put a Filter button in one
   row with the sort select and open every facet, expanded, in a slide-in panel */
.facets__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.facets__label { display: inline-flex; align-items: center; gap: 0.375rem; font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--c-ink-muted); }
.facet { position: relative; }
.facet__trigger { cursor: pointer; user-select: none; }
.facet.is-open > .facet__trigger { border-color: var(--c-ink); }
.facet__caret { transition: rotate var(--dur) var(--ease); }
.facet.is-open .facet__caret { rotate: 180deg; }
.facet__count {
  min-width: 1.125rem; padding: 0 0.3rem; line-height: 1.125rem; text-align: center;
  border-radius: var(--radius-pill); background: var(--c-accent); color: var(--c-accent-ink);
  font-size: 0.625rem;
}
.facet__panel {
  display: none;
  position: absolute; top: calc(100% + 0.375rem); left: 0; z-index: 20;
  min-width: 15rem; max-height: 22rem; overflow-y: auto; padding: 0.5rem;
  background: var(--c-surface); border: var(--border-width) solid var(--c-line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-pop);
}
.facet.is-open > .facet__panel { display: block; }
.facet__option { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem; border-radius: 6px; cursor: pointer; font-size: var(--fs-small); color: var(--c-ink); }
.facet__option:hover { background: var(--c-surface-2); }
.facet__option input, .facet--toggle input { accent-color: var(--c-accent); width: 1rem; height: 1rem; margin: 0; }
.facet__name { flex: 1; }
.facet__n { font-size: var(--fs-micro); color: var(--c-ink-subtle); }
.facet.is-open > .facet__panel--price { display: flex; }
.facet__panel--price { gap: 0.625rem; padding: 0.875rem; }
.facet__price { display: grid; gap: 0.3rem; font-size: var(--fs-micro); font-weight: var(--fw-bold); color: var(--c-ink-muted); }
.facet__price input {
  width: 6.5rem; height: 2.375rem; padding: 0 0.75rem; background: var(--c-surface-2); color: var(--c-ink);
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button);
}
.facet__price input:focus { outline: none; border-color: var(--c-ink-subtle); background: var(--c-surface); }
.facet--toggle { cursor: pointer; }
.facets__clear { font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--c-accent); text-decoration: underline; text-underline-offset: 0.2em; }
.facets__sort { display: flex; align-items: center; }
.facets__select { position: relative; padding-right: 0.5rem; }
.facets__select select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding: 0 1.25rem 0 0; background: transparent; border: 0; outline: none;
  font: inherit; font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--c-ink);
}
.facets__select select option { background: var(--c-surface); color: var(--c-ink); font-weight: var(--fw-body); }
.facets__select > .icon:last-child { position: absolute; right: 0.75rem; pointer-events: none; }
.facets__select:focus-within { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.facets__toggle { position: relative; }
.facets__toggle .facet__count { margin-left: 0.125rem; }
@media (min-width: 768px) {
  /* the panel shell steps out of the box model: its groups sit in the bar as pills.
     [hidden] is the drawer's closed state from a phone-width session — restated so
     rotating back to a wide screen never hides the filters */
  .facets__drawer, .facets__drawer[hidden], .facets__panel, .facets__foot { display: contents !important; }
  .facets__toggle, .facets__head, .facets__done { display: none; }
}
@media (max-width: 767px) {
  .toolbar { flex-wrap: nowrap; }
  .toolbar__count { flex: none; }
  .toolbar__tools { flex-wrap: nowrap; min-width: 0; margin-left: auto; }
  .facets__sort { min-width: 0; }
  /* min-width: 0 — a select is as wide as its longest option and would not shrink */
  .facets__select select { min-width: 0; max-width: 7.5rem; text-overflow: ellipsis; }
  .facets__label { display: none; }
  /* the panel: the menu drawer's shell (scrim, slide from the left) */
  .facets__drawer {
    position: fixed; inset: 0; z-index: 70;
    display: flex; justify-content: flex-start;
    background: transparent; visibility: hidden; pointer-events: none;
    transition: background var(--dur) var(--ease), visibility var(--dur) var(--ease);
  }
  .facets__drawer.is-open { background: var(--c-scrim); visibility: visible; pointer-events: auto; }
  .facets__panel {
    width: min(380px, 88vw); height: 100%;
    display: flex; flex-direction: column;
    background: var(--c-surface);
    transform: translateX(-100%); transition: transform var(--dur) var(--ease);
  }
  .facets__drawer.is-open .facets__panel { transform: none; }
  .facets__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.1rem; border-bottom: var(--border-width) solid var(--c-line);
  }
  .facets__title { font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
  .facets__close { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: var(--c-ink); }
  /* every group expanded under its heading, values as chips */
  .facets__group { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: block; padding: 0.25rem 1.1rem 1.25rem; }
  .facet { position: static; padding-block: 1rem; border-bottom: var(--border-width) solid var(--c-line); }
  .facet__trigger {
    min-height: 0; padding: 0; margin-bottom: 0.75rem; border: 0; background: none; pointer-events: none;
    font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--c-ink);
  }
  .facet.is-open > .facet__trigger { border: 0; }
  .facet__caret { display: none; }
  .facet__panel, .facet.is-open > .facet__panel {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    position: static; min-width: 0; max-height: none; overflow: visible; padding: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .facet__option {
    display: inline-flex; gap: 0.375rem; padding: 0.4375rem 0.875rem;
    border: var(--border-width) solid var(--c-line); border-radius: var(--radius-pill);
  }
  .facet__option:hover { background: none; }
  .facet__option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .facet__option:has(input:checked) { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); font-weight: var(--fw-bold); }
  .facet__option:has(input:checked) .facet__n { color: inherit; }
  .facet__option:has(input:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 2px; }
  .facet__name { flex: none; }
  .facet__panel--price { flex-wrap: nowrap; }
  .facet__price { flex: 1 1 0; }
  .facet__price input { width: 100%; }
  .facet--toggle { margin-top: 1rem; }
  .facets__foot {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.875rem 1.1rem calc(0.875rem + env(safe-area-inset-bottom, 0px));
    border-top: var(--border-width) solid var(--c-line);
  }
  .facets__done { flex: 1 1 auto; }
}
.clist__empty { display: grid; justify-items: start; gap: 1rem; padding-block: 0.5rem 2rem; color: var(--c-ink-muted); font-size: var(--fs-small); }
/* pagination (base snippet, reference look). Every rule is scoped under
   .pagination-wrapper: the snippet lazy-loads the base component sheet AFTER this
   one, and its bare .pagination__item rules would win a tie */
.pagination-wrapper { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.pagination-wrapper .pagination__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.pagination-wrapper .pagination__item {
  display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 0.625rem;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button); background: var(--c-surface);
  color: var(--c-ink); font-size: var(--fs-small); font-weight: var(--fw-bold); text-decoration: none;
}
.pagination-wrapper .pagination__item:hover { border-color: var(--c-ink-subtle); }
.pagination-wrapper .pagination__item--current { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.pagination-wrapper .pagination__item .icon { width: 0.7rem; height: 0.7rem; }
.pagination-wrapper .pagination__item--next .icon { transform: rotate(90deg); }
.pagination-wrapper .pagination__item--prev .icon { transform: rotate(-90deg); }
.pagination-wrapper .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*), so the skin reads the base vocabulary
   (.quantity, .button, .title-wrapper-with-link …) in the reference's tokens. */
.cart-page .section__head { margin-bottom: 1rem; }
#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: 1rem; 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); }
/* base .button family -> the reference's .btn (accent / outline) */
#cart-template .button, .vouchers-modal .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.5rem 1.35rem; border: var(--border-width) solid var(--c-accent);
  border-radius: var(--radius-button); background: var(--c-accent); color: var(--c-accent-ink);
  font-family: var(--font-body); font-weight: var(--fw-bold); font-size: var(--fs-small);
  letter-spacing: 0; text-decoration: none; cursor: pointer; box-shadow: none;
  transition: filter var(--dur) var(--ease), background 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 { filter: brightness(0.9); }
#cart-template .button--secondary, .vouchers-modal .button--secondary { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); }
#cart-template .button--secondary:hover, .vouchers-modal .button--secondary:hover { background: var(--c-surface-2); filter: none; }
#cart-template .button.loading { opacity: 0.6; pointer-events: none; }
.cart-items { width: 100%; border-collapse: collapse; border-spacing: 0; }
.cart-items thead th {
  padding: 0 0 0.75rem; text-align: left; border-bottom: var(--border-width) solid var(--c-line);
  font-size: var(--fs-micro); font-weight: var(--fw-bold); 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: 1rem; vertical-align: top; border-bottom: var(--border-width) solid var(--c-line); }
.cart-item__media { width: 5rem; padding-right: 1rem; }
.cart-item__media a { display: block; background: var(--c-tile-bg); border-radius: var(--radius-button); overflow: hidden; }
.cart-item__image { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.cart-item__details { padding-right: 1rem; font-size: var(--fs-small); }
.cart-item__name { display: block; font-weight: var(--fw-bold); line-height: 1.4; color: var(--c-ink); text-decoration: none; }
.cart-item__name:hover { color: var(--c-accent); }
.cart-item__details dl { margin: 0.25rem 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 .qty */
#cart-template .quantity {
  position: relative; display: inline-flex; align-items: center; vertical-align: middle;
  width: auto; min-height: 0; height: 2.5rem; padding: 0;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button); background: var(--c-surface);
}
#cart-template .quantity::before, #cart-template .quantity::after { display: none; }
#cart-template .quantity__button {
  display: grid; place-items: center; width: 2.25rem; height: 100%; padding: 0;
  border: 0; background: none; color: var(--c-ink); cursor: pointer;
}
#cart-template .quantity__button:hover { background: var(--c-surface-2); }
#cart-template .quantity__button .icon { width: 0.7rem; height: 0.7rem; stroke: none; pointer-events: none; }
#cart-template .quantity__input {
  width: 2.25rem; height: 100%; padding: 0; margin: 0; border: 0; background: none; color: var(--c-ink);
  font: inherit; font-size: var(--fs-small); font-weight: var(--fw-bold); 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 icon buttons beside the stepper */
.cart-action-icon { display: inline-flex; vertical-align: middle; margin-left: 0.25rem; }
.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; background: none;
  color: var(--c-ink-subtle); box-shadow: none;
}
#cart-template .cart-action-icon .button:hover { background: var(--c-surface-2); color: var(--c-sale); filter: none; }
#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); font-weight: var(--fw-bold); }
.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); font-weight: var(--fw-body); }
.cart-item .loading-overlay { position: absolute; right: 0; top: 1rem; width: 1.5rem; }
.cart-item .loading-overlay__spinner { width: 1.5rem; }
.cart__items--disabled { pointer-events: none; opacity: 0.6; }
.discounts { margin: 0.375rem 0 0; font-size: var(--fs-micro); color: var(--c-success); }
.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.5rem; }
.cart__blocks { width: 100%; max-width: 26rem; display: grid; gap: 0.875rem; }
.totals { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; position: relative; }
/* an <h3>: reference.css sets headings in Alata, which has no bold to give */
.totals__subtotal { margin: 0; font-family: var(--font-body); font-size: var(--fs-small); font-weight: var(--fw-bold); letter-spacing: 0; }
.totals__subtotal-value { margin: 0; font-size: 1.25rem; font-weight: var(--fw-bold); }
.totals .loading-overlay { position: absolute; right: 0; top: 0; width: 1.5rem; }
/* also .rte, whose body size (§10) would otherwise win on source order */
.tax-note, .tax-note.rte { display: block; margin-top: 0.375rem; font-size: var(--fs-micro); line-height: 1.5; color: var(--c-ink-muted); }
.cart__ctas { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 0.5rem; }
.cart__ctas > * + * { margin-top: 0 !important; }
#cart-template .cart__checkout-button { width: 100%; max-width: none; min-height: 3rem; font-size: var(--fs-body); }
.voucher-toggle-wrapper { border-radius: var(--radius-card); background: var(--c-surface-2); }
.voucher-toggle-content { display: grid; gap: 0.1rem; }
.voucher-toggle-title { font-size: var(--fs-small); font-weight: var(--fw-bold); }
.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, .vouchers-modal .search__input {
  flex: 1; min-width: 0; height: 2.75rem; padding: 0 1rem; background: var(--c-surface-2); color: var(--c-ink);
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button); font: inherit; font-size: var(--fs-small);
}
discount-input .field__input:focus { outline: none; border-color: var(--c-ink-subtle); background: var(--c-surface); }
discount-input .field__label { display: none; }
discount-input .button { padding-inline: 1.125rem; }
.subtotal-discount-label, .remove_voucher_btn { color: var(--c-success); }
.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.25rem; }
}
.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 — 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.75rem 1rem;
  border-radius: var(--radius-card); 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: 0.75rem; }
.drawer--cart #cart-promotion-section { margin-top: 0.75rem; }
/* the vouchers modal (snippets/voucher-modal + the platform voucher widget),
   scoped under the element + id to out-rank the platform sheets that load later */
vouchers-modal #vouchers-modal {
  --voucher-widget-font-family: var(--font-body);
  --voucher-widget-theme-color: var(--c-accent);
  --voucher-widget-border: var(--border-width) solid var(--c-line);
  background: var(--c-surface); color: var(--c-ink);
  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__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 { color: var(--c-ink); }
vouchers-modal #vouchers-modal discount-input .button { flex: none; min-height: 2.75rem; }
vouchers-modal .voucher-widget-button { color: var(--c-accent); border-color: var(--c-accent); }
vouchers-modal .voucher-widget-button:hover { background: 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: 4.5rem minmax(0, 1fr) auto; column-gap: 0.875rem; row-gap: 0.5rem;
    padding-block: 1rem; border-bottom: var(--border-width) 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 ~440px 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: 4rem minmax(0, 1fr) auto; column-gap: 0.75rem; row-gap: 0.5rem;
  padding-block: 0.875rem; border-bottom: var(--border-width) 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: 2.25rem; }
.drawer--cart #cart-template .quantity__button { width: 2rem; }
.drawer--cart #cart-template .quantity__input { width: 2rem; }
.drawer--cart #main-cart-footer { margin-top: auto; }
.drawer--cart .cart__footer { padding-top: 1.125rem; }
.drawer--cart .cart__blocks { max-width: none; }
.drawer--cart cart-items.is-empty .cart__warnings { padding-block: 0.5rem 1rem; }
#main-cart-footer, .cart__footer { border-top: 0; }

/* ── 9. Quick view modal ─────────────────────────────────────────────────────
   The platform's modal dressed as the reference's product page in miniature: a
   centred rounded dialog on desktop (the packshot on its pale plate beside the
   buy box), a bottom sheet on phones with the stepper + add row sticky at its foot. */
.product-quickview-modal-backdrop { transition: opacity var(--dur) var(--ease); }
#product-quickview-modal[open] + .product-quickview-modal-backdrop { background-color: var(--c-scrim); }
#product-quickview-modal[open] {
  --color-foreground: 20, 22, 28;
  --color-background: 255, 255, 255;
  /* centred on every screen from 768px — the base sheet turns it into a bottom sheet up
     to 998px, which left a half-positioned dialog on tablets */
  top: 50%; left: 50%; bottom: auto; transform: translate(-50%, -50%);
  width: min(880px, calc(100% - 2rem)); max-width: none;
  max-height: min(90vh, 720px); min-height: min(26rem, 80vh);
  overflow: hidden; display: flex; flex-direction: column;
  background: var(--c-surface); color: var(--c-ink);
  border-radius: var(--radius-card); box-shadow: var(--shadow-pop);
}
#product-quickview-modal .product-quickview-modal__body { min-height: 0; overflow-y: auto; }
.product-quickview-modal-wrapper > .loading-overlay { width: 2.75rem; z-index: 2; }
.product-quickview-modal-wrapper > .loading-overlay .loading-overlay__spinner { width: 2.75rem; }
.product-quickview-modal-wrapper .loading-overlay .path { stroke: var(--c-accent); }
/* the close button carries .modal__close-button, which the platform vouchers.css
   paints black — an id-scoped rule out-ranks it */
#product-quickview-modal .product-quickview-modal__close {
  top: 0.625rem; right: 0.625rem; z-index: 3; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center; border-radius: var(--radius-pill);
  background: var(--c-surface); color: var(--c-ink); border: var(--border-width) solid var(--c-line);
}
#product-quickview-modal .product-quickview-modal__close .icon { color: var(--c-ink); }
#product-quickview-modal .product-quickview-modal__close:hover { background: var(--c-surface-2); }
.product-quickview-modal__close svg { width: 1rem; height: 1rem; }
.product-quickview.qv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.product-quickview .product-quickview__img-wrapper.qv__media { max-width: none; background: var(--c-tile-bg); }
.product-quickview .product-quickview__img-wrapper.qv__media img { padding: 8%; mix-blend-mode: multiply; }
.product-quickview .product-quickview__content-wrapper.qv__info {
  max-width: none; max-height: none; overflow: visible; padding: 1.75rem 1.75rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.product-quickview .quickview-title { display: block; color: var(--c-ink); text-decoration: none; }
.product-quickview h2.qv__title { margin: 0; padding-right: 2.5rem; font-size: var(--fs-h2); }
.qv__price .price { margin: 0; font-size: 1.5rem; font-weight: var(--fw-bold); color: var(--c-ink); }
.qv__price .price .badge, .qv__price .price__badge-sale, .qv__price .price__badge-sold-out { display: none !important; }
.product-quickview #price { margin-bottom: 0; }
.product-quickview .product-form { margin-top: 0; }
.qv__qtylabel { margin-top: 0.9rem; }
.product-quickview .quickview-sticky-actions.qv__buy {
  position: sticky; bottom: 0; margin-top: 0.6rem;
  padding: 0.125rem 0 0.75rem; background: var(--c-surface); box-shadow: none;
}
.product-quickview .quickview-sticky-actions .btn { margin: 0; }
.quickview_promo-tag-wrapper:has(#quickview_promo-tag:empty) { display: none; }
/* opening motion: the dialog fades in and rises into place (a bottom sheet slides up
   on phones), the scrim fades in with it, and the product fades in once the
   platform has rendered it. Reduced motion and ?ts-anim=off flatten it. */
@keyframes pohwah-qv-rise {
  from { opacity: 0; transform: translate(-50%, -50%) translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes pohwah-qv-sheet {
  from { transform: translateY(100%); }
  to { transform: none; }
}
@keyframes pohwah-qv-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
#product-quickview-modal[open] { animation: pohwah-qv-rise 260ms var(--ease) both; }
#product-quickview-modal[open] + .product-quickview-modal-backdrop { animation: pohwah-qv-fade 260ms var(--ease) both; }
#product-quickview-modal .product-quickview { animation: pohwah-qv-fade 220ms var(--ease) both; }
/* the base sheet fixes the product at 80dvh up to 998px; a centred dialog fits its content */
@media (min-width: 768px) { .product-quickview.qv { height: auto; } }
@media (max-width: 767px) {
  #product-quickview-modal[open] {
    top: auto; bottom: 0; left: 0; transform: none;
    width: 100%; max-height: 92vh; min-height: 18rem;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    animation: pohwah-qv-sheet 300ms var(--ease) both;
  }
  .product-quickview.qv { grid-template-columns: minmax(0, 1fr); }
  .product-quickview .product-quickview__img-wrapper.qv__media { display: flex; justify-content: center; align-items: center; height: clamp(160px, 44vw, 220px); }
  .product-quickview .product-quickview__img-wrapper.qv__media img { width: auto; height: 100%; max-height: 100%; padding: 6%; }
  .product-quickview .product-quickview__content-wrapper.qv__info { padding: 1.125rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); }
  .product-quickview h2.qv__title { padding-right: 0; }
}

/* ── 10. Content pages ─────────────────────────────────────────────────────── */
.rte { color: var(--c-ink-muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.rte > * + * { margin-top: 1em; }
.rte h1, .rte h2, .rte h3, .rte h4 { color: var(--c-ink); font-family: var(--font-display); font-weight: var(--fw-display); line-height: var(--lh-heading); margin-top: 1.5em; }
.rte h1 { font-size: var(--fs-h2); }
.rte h2 { font-size: var(--fs-h3); }
.rte h3, .rte h4 { font-size: var(--fs-body); }
.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: var(--radius-card); }
.rte strong, .rte b { color: var(--c-ink); font-weight: var(--fw-bold); }
.rte blockquote { border-left: 3px solid var(--c-accent); padding-left: 1.125rem; color: var(--c-ink); }
.rte table, .table-wrapper table { width: 100%; border-top: var(--border-width) solid var(--c-line); }
.rte td, .rte th { padding: 0.625rem 1rem 0.625rem 0; border-bottom: var(--border-width) solid var(--c-line); text-align: left; vertical-align: top; }
.rte th { font-size: var(--fs-micro); font-weight: var(--fw-bold); color: var(--c-ink-muted); }
.table-wrapper { overflow-x: auto; }
.rte iframe, .rte video { max-width: 100%; }
.page-body { padding-block: var(--section-y-tight) var(--section-y); }
/* blog + article */
.blog-grid { display: grid; gap: 1.75rem var(--gutter-lg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { display: grid; gap: 0.625rem; align-content: start; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-surface-2); border-radius: var(--radius-card); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 620ms var(--ease); }
.post-card:hover .post-card__media img { scale: 1.03; }
.post-card__meta { font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink-subtle); }
.post-card__title { font-size: var(--fs-h3); line-height: var(--lh-heading); }
.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 / 7; overflow: hidden; border-radius: var(--radius-card); margin: 0 0 1.75rem; background: var(--c-surface-2); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.625rem; font-size: var(--fs-micro); font-weight: var(--fw-bold); color: var(--c-ink-muted); }
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: var(--border-width) solid var(--c-line); }
.article-back { margin-top: 2rem; }
/* products a page or post links (related-product-items, included in the body column) */
.page-body .section__head { margin-top: var(--section-y-tight); }
.tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
/* search page + 404: the header's pill search as a real field */
.searchpage-form { display: flex; gap: 0.5rem; max-width: 40rem; margin-top: 1.25rem; }
.searchpage-field {
  flex: 1 1 auto; min-width: 0; position: relative; display: flex; align-items: center; gap: 0.6rem;
  height: 2.875rem; padding: 0 1.1rem;
  background: var(--c-surface); border: var(--border-width) solid var(--c-line); border-radius: var(--radius-input);
  color: var(--c-ink-muted); transition: border-color var(--dur) var(--ease);
}
.searchpage-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: var(--fs-body); color: var(--c-ink); }
.searchpage-field:focus-within { border-color: var(--c-ink-subtle); }
.searchpage-form .btn { flex: none; min-height: 2.875rem; border-radius: var(--radius-input); }
.notfound__code { font-family: var(--font-display); font-size: clamp(3.5rem, 10vw, 6.5rem); line-height: 1; color: var(--c-accent); letter-spacing: -0.03em; margin-bottom: 0.5rem; }
/* store locator (base template, reference look) */
.store-locator { padding-block: var(--section-y-tight) var(--section-y); }
.store-locator-heading { display: grid; gap: 0.875rem; margin-bottom: 1.75rem; }
.store-locator .select { position: relative; display: inline-flex; }
.store-locator .select__select {
  appearance: none; -webkit-appearance: none; min-width: 16rem; height: 2.75rem; padding: 0 2.5rem 0 1rem;
  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='%234c525e' 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: var(--border-width) solid var(--c-line); border-radius: var(--radius-button);
}
.store-selector-item { height: 100%; padding: 1.25rem; background: var(--c-surface); border: var(--border-width) solid var(--c-line); 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); font-family: var(--font-display); font-weight: var(--fw-display); }
.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's .btn is already the
   accent button, so only the secondary variants need aliasing. */
.btn.button--secondary, .btn.btn--secondary { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); }
.btn.button--secondary:hover, .btn.btn--secondary:hover { background: var(--c-surface-2); filter: none; }
.btn.button--full-width { width: 100%; }
#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) and its .customer-scoped
   .text-center never reach it, and its submit is an `input.btn` — reference.css's
   .btn paints the accent button, but the browser's 2px outset input border
   survives. The form itself becomes the login page's card. */
#MainContent form[action$="challenge"] {
  container-type: inline-size;
  width: min(27.5rem, 100% - 2 * var(--gutter-lg));
  margin: calc(3.75rem + clamp(2rem, 5vw, 3.5rem)) auto calc(5.625rem + var(--section-y));
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
  background: var(--c-surface); border: var(--border-width) 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-h1);
  line-height: var(--lh-heading); letter-spacing: var(--tracking-display);
}
#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%; min-height: 2.875rem; margin-top: 1.5rem; border: 0;
  background: var(--c-accent); color: var(--c-accent-ink); font-family: var(--font-body);
  cursor: pointer; appearance: none; -webkit-appearance: none;
}
/* 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; height: 2.125rem; padding: 0 2rem 0 0.875rem;
  background: var(--c-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c525e' stroke-width='1.5'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E") no-repeat right 0.6rem center / 0.85rem;
  border: 0; border-radius: var(--radius-pill);
  color: var(--c-ink); font-size: var(--fs-micro); font-weight: var(--fw-bold);
}
.currency-picker option { background: var(--c-surface); color: var(--c-ink); }

/* ── 12. Footer additions ──────────────────────────────────────────────────── */
/* min-width lets a long link wrap inside its column instead of widening it; a
   word the <wbr>s cannot split breaks inside the column too, so the list never
   pushes the page past the screen's edge */
.footer__col { min-width: 0; }
.footer__list a { overflow-wrap: anywhere; }
.footer__list > li > span { display: inline-flex; align-items: flex-start; gap: 0.5rem; font-size: var(--fs-small); line-height: 1.9; color: var(--c-navy-ink-2); }
.footer__list .icon { margin-top: 0.45em; }
.footer__logo { max-width: 12rem; object-fit: contain; object-position: left center; }
.footer__title--pay { margin-top: 1.5rem; }
.footer__extras { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.site-footer .currency-picker {
  background-color: rgb(255 255 255 / 0.1); color: var(--c-footer-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eef1f8' stroke-width='1.5'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
}
.site-footer .currency-picker option { color: var(--c-ink); }

/* ── 13. Motion kill-switch ──────────────────────────────────────────────────
   ?ts-anim=off (animations.js) flattens every transition to its end state for
   deterministic screenshots; html.no-js never hides anything. */
html[data-anim-off] [data-reveal] { opacity: 1 !important; transform: none !important; }
html[data-anim-off] *, html[data-anim-off] *::before, html[data-anim-off] *::after { transition: none !important; animation: none !important; }
