/* ===========================================================================
   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 control's loading state, 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 size, dropdowns, row overflow)
    3. Drawers (slide-in, menu accordions, live search, cart drawer body)
    4. Homepage additions (hero, section rhythm, category grid, offer, rails)
    5. Product card (add control contract, loading, grid wrapper)
    6. Product page (gallery track, sticky column, price states, options, tabs)
    7. Collection (page head, toolbar, filters, 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: 37, 19, 10;
  --color-background: 245, 242, 237;
  --color-base-text: 37, 19, 10;
  --color-base-background-1: 245, 242, 237;
  --color-base-background-2: 234, 229, 222;
  --color-base-solid-button-labels: 245, 242, 237;
  --color-base-outline-button-labels: 37, 19, 10;
  --color-base-accent-1: 37, 19, 10;
  --color-base-accent-2: 37, 19, 10;
  --color-button: 37, 19, 10;
  --color-button-text: 245, 242, 237;
  --color-link: 37, 19, 10;
  --color-card-hover: 37, 19, 10;
  --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 solid button's colours (reference.css paints .btn in the ink), named so the
     platform surfaces below follow a palette change, and the photograph tile */
  --c-btn-bg: var(--c-ink);
  --c-btn-ink: var(--c-bg);
  --c-tile-bg: var(--c-surface-2);
}

/* author display rules (.toolbar__btn, .railnav 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.furniturerun-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; }
/* headings and buttons the platform pages add outside the reference's own heads */
.section__title { font-size: var(--fs-h2); }
.btn { cursor: pointer; }
.btn--outline { background-color: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--outline:hover { background-color: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }
.textlink { cursor: pointer; }

/* ── 2. Header additions ───────────────────────────────────────────────────── */
/* The header section renders the announcement strip, the header and the drawers
   inside one wrapper, and a sticky element cannot travel outside its parent — the
   wrapper is only as tall as the two 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 52px) is the desktop rest height; the phone and
   stuck heights keep the reference's 46 / 52 / 40 steps */
.logo img {
  height: calc(var(--logo-max-height, 52px) * 0.885); max-height: var(--logo-max-height, 52px);
  width: auto; max-width: min(42vw, 240px); object-fit: contain; object-position: left center;
}
@media (min-width: 1100px) {
  .logo img { height: var(--logo-max-height, 52px); }
  .header.is-stuck .logo img { height: calc(var(--logo-max-height, 52px) * 0.77); }
}
/* 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; }
.htool { cursor: pointer; }

/* the department links: the reference's flat row, never wrapping, 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 small-caps row link, so
   the dropdown's own lists and links are re-stated below at higher specificity. */
.header__nav { min-width: 0; max-width: 100%; }
.header__nav .header__navlist { flex-wrap: nowrap; }
.header__navitem { position: relative; }
.header__nav .header__navlink { gap: 0.25rem; }
.header__navlink[aria-current="page"] { color: var(--c-header-muted); }
.header__navlink .icon { width: 0.75rem; height: 0.75rem; 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: calc(100% + 0.5rem); left: -0.75rem; z-index: 45;
  min-width: 14rem; max-height: calc(100dvh - var(--furniturerun-header-h, 76px) - 3rem); overflow-y: auto; padding: 0.5rem;
  background: var(--c-bg); 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: 1.5rem; }
.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; min-height: 0; padding: 0.5rem 0.75rem;
  font-size: var(--fs-small); font-weight: var(--fw-body); letter-spacing: 0; text-transform: none;
  color: var(--c-ink); white-space: nowrap;
}
.header__nav .navdrop a:hover { background: var(--c-surface-2); color: var(--c-ink); }
.navdrop--cols .navdrop__list { grid-template-columns: repeat(2, minmax(11rem, 1fr)); }
/* a menu with grandchildren opens a full-width panel of columns under the header */
.header__navitem:has(> .navdrop--mega) { position: static; }
.navdrop--mega {
  top: 100%; left: 0; right: 0; min-width: 0; padding: 1.5rem 0 1.75rem;
  border-width: var(--border-width) 0;
}
.header__nav .navdrop--mega .navdrop__list {
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1.5rem 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);
  line-height: 1.2; padding-bottom: 0.35rem;
}
.header__nav .navdrop__sub { display: grid; gap: 0; padding: 0; }
.header__nav .navdrop .navdrop__sublink { padding-block: 0.3rem; color: var(--c-ink-muted); }
.header__nav .navdrop .navdrop__sublink:hover { color: var(--c-ink); }
.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);
}
/* links too long for their cell hide; the menu button beside the logo opens the
   same menu in the drawer (init.js §8). The same layout serves a header whose
   menu is switched off. */
@media (min-width: 1100px) {
  .header-section.nav-overflow .header__nav { display: none; }
  .header-section.nav-overflow .header__menu,
  .header-section--nonav .header__menu { display: inline-flex; }
  .header-section.nav-overflow .header__start,
  .header-section--nonav .header__start { margin-left: -0.625rem; }
}

/* ── 3. Drawers ─────────────────────────────────────────────────────────────── */
/* reference.css switches a drawer on with display; here the scrim fades and the
   panel slides in from its own edge ([hidden] still removes a closed drawer) */
.drawer {
  display: block; opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.drawer.is-open { opacity: 1; visibility: visible; }
.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__head h2 { margin: 0; }
.drawer__close { cursor: pointer; }

/* menu drawer — the menu as native details accordions, four levels */
.drawer__group > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.25rem; border-bottom: var(--border-width) solid var(--c-line);
  font-family: var(--font-display); font-size: var(--fs-h3); color: var(--c-ink);
  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 > li > a { gap: 1rem; }
.drawer-nav .drawer__children a {
  justify-content: flex-start; min-height: 2.5rem; border: 0; padding-left: 0.75rem;
  font-family: var(--font-body); font-size: var(--fs-small); color: var(--c-ink-muted);
}
.drawer-nav .drawer__children a:hover { color: var(--c-ink); }
.drawer__children { padding-block: 0.35rem 0.6rem; border-bottom: var(--border-width) solid var(--c-line); }
.drawer__grandchildren { padding-left: 0.75rem; }
.drawer-nav .drawer__grandchildren a { min-height: 2.125rem; }
.drawer__util { display: grid; margin-top: 1.5rem; }
.drawer__util a { display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; font-size: var(--fs-small); color: var(--c-ink); }
.drawer__util a:hover { color: var(--c-ink-muted); }
.drawer__currency { padding-top: 1rem; }

/* search sheet — the form, live hits, and popular-search links */
.searchfield input::-webkit-search-cancel-button { cursor: pointer; }
.searchresults:empty { display: none; }
.searchresults[aria-busy="true"] { opacity: 0.55; transition: opacity var(--dur) var(--ease); }
.search-hit__img { display: block; }
.search-hit__price { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.search-hit__price s { font-size: var(--fs-micro); color: var(--c-ink-subtle); }
.search-all { margin-top: 1.25rem; }
.search-suggest { padding-top: 1.25rem; }
.search-suggest__title { margin-bottom: 0.75rem; }
.search-suggest__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-chip {
  display: inline-flex; align-items: center; min-height: 2.25rem; padding-inline: 1rem;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button);
  font-size: var(--fs-small); color: var(--c-ink);
  transition: border-color var(--dur) var(--ease);
}
.search-chip:hover { border-color: var(--c-ink); }

/* cart drawer — the shared base cart template inside the reference's drawer. The
   panel keeps reference.css's absolute anchoring (right edge, top to bottom): a
   `position: relative` here dropped it into flow — a content-high box at the
   top-left of the scrim. It still contains .cart__loading's inset: 0. */
.drawer--cart .drawer__panel { 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-btn-bg); }
/* 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.furniturerun-locked [id$="sales_pop__apps"], body.overflow-hidden [id$="sales_pop__apps"] { display: none; }


/* ── 4. Homepage additions ─────────────────────────────────────────────────── */
/* an uploaded hero picture is drawn at its own shape; the fill shows while it loads */
.hero__pic img { background-color: var(--c-hero-bg); }
.hero .btn { cursor: pointer; }
/* reference.css closes the gap between two page-ground sections that follow one
   another (`.section + .section`). The platform wraps every homepage section in its
   own div, so that pair is never adjacent: the same rule, one level up. */
[id^="easystore-section-"]:has(> .section:not(.section--surface):not(.section--tint)) + [id^="easystore-section-"] > .section:not(.section--surface):not(.section--tint) { padding-top: 0; }
.section__head h2 { min-width: 0; }
.railnav button { cursor: pointer; }
.railnav button:disabled { opacity: 0.35; cursor: default; }
.railnav button:disabled:hover { border-color: var(--c-line); }
.rail__track { overscroll-behavior-x: contain; }
@media (min-width: 900px) {
  .cats[style*="--cats-cols"] { grid-template-columns: repeat(var(--cats-cols), minmax(0, 1fr)); }
}
.cat__label .icon { flex: none; align-self: center; }
.offer-band__terms { grid-template-columns: repeat(var(--offer-terms, 2), minmax(0, max-content)); }
@media (min-width: 900px) {
  .offer-band--flip .offer-band__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .offer-band--flip .offer-band__pic { order: 2; justify-self: end; }
}
/* slideshow (sections/slideshow) — pictures only, one per view, centred at the
   section's Maximum width (--slide-max) inside the page gutters. "Image's own" shape
   draws each picture at its own ratio (the row is as tall as the tallest, shorter
   ones centred on the tile ground); a fixed shape crops every picture to it. */
.slideshow__frame {
  max-width: calc(var(--slide-max, 1200px) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 900px) {
  .slideshow__frame { max-width: calc(var(--slide-max, 1200px) + 2 * var(--gutter-lg)); padding-inline: var(--gutter-lg); }
}
.slideshow__stage { position: relative; }
.slideshow__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  align-items: center;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background-color: var(--c-tile-bg);
}
.slideshow__track::-webkit-scrollbar { display: none; }
.slideshow__slide { scroll-snap-align: start; scroll-snap-stop: always; }
.slideshow__slide a, .slideshow__slide picture { display: block; }
.slideshow__slide img { display: block; width: 100%; height: auto; }
@media (max-width: 599px) {
  .slideshow--sm-fixed .slideshow__slide img { aspect-ratio: var(--slide-ratio-sm); object-fit: cover; }
}
@media (min-width: 600px) {
  .slideshow--lg-fixed .slideshow__slide img { aspect-ratio: var(--slide-ratio); object-fit: cover; }
}
.slideshow__arrow {
  position: absolute;
  top: 50%;
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background-color: rgb(255 255 255 / 0.85);
  color: var(--c-ink);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color var(--dur) var(--ease);
}
.slideshow__arrow:hover { background-color: #fff; }
.slideshow__arrow--prev { left: 1rem; }
.slideshow__arrow--next { right: 1rem; }
@media (min-width: 900px) { .slideshow__arrow { display: grid; } }
.slideshow__dots {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  display: flex;
  transform: translateX(-50%);
}
.slideshow__dots button {
  width: 2.25rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.slideshow__dots button::before {
  content: "";
  display: block;
  height: 3px;
  margin-inline: 0.375rem;
  border-radius: 3px;
  background-color: rgb(255 255 255 / 0.55);
  box-shadow: 0 0 2px rgb(0 0 0 / 0.35);
  transition: background-color var(--dur) var(--ease);
}
.slideshow__dots button.is-active::before { background-color: #fff; }
/* 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); }

/* ── 5. Product card ───────────────────────────────────────────────────────── */
/* The add control is an add-to-cart-button element holding the reference's square
   .card__add (a sample card holds a plain link). The wrapper is a one-cell grid, so
   the platform's loading overlay shares the button's cell and the spinner lands on
   the button. */
.card { position: relative; }
.card__addwrap { position: relative; display: grid; }
.card__addwrap > * { grid-area: 1 / 1; }
.card__add { cursor: pointer; }
.card__add.transparent { color: transparent; }
.card__addwrap .loading-overlay {
  position: relative; inset: auto; z-index: 1; width: auto;
  display: grid; place-items: center; pointer-events: none;
}
.card__addwrap .loading-overlay.hidden { display: none !important; }
.card__addwrap .loading-overlay__spinner { position: static; width: 1.125rem; display: block; }
.card__addwrap .loading-overlay .path { stroke: var(--c-bg); }
/* in flight the button holds its filled look whether or not the pointer is still
   on it, so the spinner always sits on the ink */
.card__addwrap:has(.loading-overlay:not(.hidden)) .card__add {
  background-color: var(--c-ink); border-color: var(--c-ink); color: transparent;
}
.card__price .money { 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. */
.grid > .grid__item { display: grid; min-width: 0; list-style: none; }
/* the platform wishlist heart (collection/product_top) takes the photograph'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);
}

/* ── 6. Product page ───────────────────────────────────────────────────────── */
.crumbs a { text-decoration: none; }
/* gallery: a scroll-snap track of full-width slides (init.js §5) — each slide is
   the reference's .gallery__main plate, the photograph shown whole inside it */
.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;
}
.gallery__stage::-webkit-scrollbar { display: none; }
.gallery__stage:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.gallery__stage.is-dragging, .gallery__stage.is-settling { scroll-snap-type: none; }
.gallery__stage.is-dragging { cursor: grabbing; }
.gallery__stage.is-dragging * { user-select: none; }
.gallery__stage:has(.gallery__slide + .gallery__slide) { cursor: grab; }
.gallery__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery__slide .gallery__main img { object-fit: contain; cursor: zoom-in; }
.gallery__stage.is-dragging .gallery__main img { cursor: grabbing; }
/* the reference's plates are 10:7 for its landscape furniture shots; this catalogue
   is square and portrait packshots, which that frame letterboxed on the stage and
   CROPPED to a band in the thumbnails. Square plates, the photograph shown whole. */
.gallery__main { aspect-ratio: 1 / 1; }
/* thumbnails: one compact row that scrolls sideways (init.js keeps the active one in
   view) — the reference's 4-up grid wrapped five photographs into two rows of
   166px tiles that outweighed the plate once it was sized to fit the viewport */
.gallery__thumbs {
  display: flex; gap: 0.5rem; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-bottom: 1px;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb { flex: 0 0 auto; width: clamp(3.25rem, 9vw, 4.5rem); cursor: pointer; }
.gallery__thumb img { aspect-ratio: 1 / 1; object-fit: contain; background-color: var(--c-surface-2); }
.gallery__arrow {
  position: absolute; top: 50%; z-index: 2;
  width: 2.75rem; height: 2.75rem; display: none; place-items: center;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button);
  background: var(--c-bg); color: var(--c-ink); cursor: pointer;
  opacity: 0; transform: translateY(-50%);
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gallery__arrow--prev { left: 0.75rem; }
.gallery__arrow--next { right: 0.75rem; }
.gallery__arrow:hover { border-color: var(--c-ink); }
@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; }
  .gallery__arrow:disabled { pointer-events: none; }
}
/* lightbox: the photograph at full size over the page — the drawer machinery with a
   centred stage (reference.css's side-panel geometry undone), the picture on the
   scrim, close at the corner, arrows at the sides, the count beneath */
.drawer--lightbox { z-index: 70; background-color: rgb(18 13 11 / 0.84); }
.drawer--lightbox .drawer__panel {
  inset: 0; width: auto; padding: 3.5rem 1rem 3rem; translate: none;
  display: grid; place-items: center; background: transparent; box-shadow: none;
  opacity: 0; scale: 0.98; touch-action: pan-y pinch-zoom; user-select: none;
  transition: opacity var(--dur) var(--ease), scale var(--dur) var(--ease);
}
.drawer--lightbox.is-open .drawer__panel { opacity: 1; scale: 1; }
.lightbox__backdrop { position: absolute; inset: 0; border: 0; padding: 0; margin: 0; background: transparent; cursor: zoom-out; }
.lightbox__img {
  position: relative; z-index: 1; display: block; width: auto; height: auto;
  max-width: min(100%, 1400px); max-height: calc(100vh - 6.5rem); max-height: calc(100dvh - 6.5rem);
  object-fit: contain; background: var(--c-surface); box-shadow: var(--shadow-pop);
}
.lightbox__close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  color: var(--c-bg); background: rgb(18 13 11 / 0.35); border-radius: var(--radius-button);
}
.lightbox__close:hover { color: var(--c-bg); background: rgb(18 13 11 / 0.6); }
.lightbox__arrow {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button);
  background: var(--c-bg); color: var(--c-ink); cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.lightbox__arrow--prev { left: 0.75rem; }
.lightbox__arrow--next { right: 0.75rem; }
.lightbox__arrow:hover { border-color: var(--c-ink); }
.lightbox__count {
  position: absolute; left: 0; right: 0; bottom: 1rem; z-index: 2; margin: 0; text-align: center;
  font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--c-bg);
}
@media (max-width: 767px) {
  .drawer--lightbox .drawer__panel { padding: 3.5rem 0.5rem 3rem; }
  .lightbox__arrow { width: 2.25rem; height: 2.25rem; }
  .lightbox__arrow--prev { left: 0.5rem; }
  .lightbox__arrow--next { right: 0.5rem; }
}
/* 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: 900px) {
  .pdp .buy { position: static; }
  .pdp .gallery { position: sticky; top: calc(var(--furniturerun-header-h, 76px) + 1.25rem); align-self: start; width: 100%; }
  /* pinned, the WHOLE gallery stays in view: init.js publishes --gallery-main, the
     plate's side in px, so plate + every thumbnail row fit under the header; a
     plate narrower than the column sits centred on its slide */
  .pdp .gallery__slide { display: flex; justify-content: center; }
  .pdp .gallery__main { width: var(--gallery-main, 100%); max-width: 100%; }
}
/* price states: global.js toggles .price--on-sale from the selected variant */
.buy__price { margin-bottom: 0; }
.buy__price .price-item { display: inline; }
.buy__price:not(.price--on-sale) .buy__was,
.buy__price:not(.price--on-sale) .buy__save { display: none; }
.buy__save:empty { display: none; }
.buy__was { text-decoration: line-through; }
.product-form { display: block; margin: 0; }
/* the variant picker — EasyStore.OptionSelectors' output, dressed by init.js */
.buy__opts:not(:has(.selector-wrapper, fieldset, select:not(.hide))) { display: none; }
.buy__opts .selector-wrapper { display: flex; flex-direction: column; margin: 0; }
.opt__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.opt__set legend { padding: 0; }
/* OptionSelectors wraps each option in div.selector-wrapper-<select id> (not
   .selector-wrapper), so the groups are spaced directly */
.buy__opts [class^="selector-wrapper"] + [class^="selector-wrapper"] { margin-top: 1.25rem; }
.buy__opts .selector-wrapper::after { display: none; }
.opt__radio {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
  clip-path: inset(50%); pointer-events: none;
}
label.opt__value { display: inline-flex; align-items: center; justify-content: center; margin: 0; line-height: 1.3; cursor: pointer; }
.opt__radio:checked + .opt__value { background-color: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }
.opt__radio:focus-visible + .opt__value { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.opt__radio.disabled + .opt__value, .opt__radio:disabled + .opt__value { 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. */
.opt__values .opt__radio + .opt__value.variant-img-label-wrapper { min-height: 3.75rem; }
.opt__values .opt__radio + .opt__value:has(.variant-img-label) {
  position: relative; width: 3.75rem; min-width: 0; height: 3.75rem; padding: 0; overflow: hidden;
}
.opt__values .opt__value .variant-img-label { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.opt__values .opt__value .variant-img-label + .label__text {
  display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.opt__values .opt__radio:checked:not(:focus-visible) + .opt__value:has(.variant-img-label) { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.opt__select {
  width: 100%; max-width: 22rem; min-height: 2.75rem; padding: 0 2.5rem 0 1rem;
  background: var(--c-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a4a41' 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-input);
  color: var(--c-ink); font-size: var(--fs-small); appearance: none; -webkit-appearance: none;
}
/* quantity — the reference's .qty stepper, driven by the quantity-input element */
.product-form__quantity { display: flex; flex: none; }
.qty button { cursor: pointer; }
.qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty input { font-variant-numeric: tabular-nums; }
/* 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 */
.buy__row ~ .btn { display: flex; width: 100%; margin-top: 0.75rem; }
.buy__row ~ .btn.wishlist { background-color: transparent; color: var(--c-ink); border-color: var(--c-line); }
.buy__row ~ .btn.wishlist:hover { border-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 { 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-btn-ink); }
/* product-form.js also disables the button for the round trip, and the reference's
   `.btn:disabled` is the sold-out look (a faded fill) — a button that is only busy
   keeps its ink fill under the spinner */
.btn.product-form__submit.loading[disabled] { background-color: var(--c-btn-bg); border-color: var(--c-btn-bg); color: var(--c-btn-ink); 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 */
.buy__promos { min-width: 0; }
.buy__promos:has(#sf_promo-container > *) { margin-top: 1.5rem; }
.tabs__tab { cursor: pointer; }
.tabs__panel .rte { font-size: var(--fs-small); }
.tabs__panel .rte + .tabs__rows { margin-top: 1rem; }
.buy__share { margin-top: 1.75rem; }
.pdp-desc__body { max-width: 52rem; }
.pdp__apps:has(*) { margin-bottom: 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-button); 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: var(--radius-button);
  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 { margin-top: 1rem; color: var(--c-ink-muted); max-width: 38rem; }
.pagehead__lede.rte > * + * { margin-top: 0.5rem; }
.clist { padding-bottom: var(--section-y); }
/* the reference's ruled toolbar: the count on the left, filters and sort on the right */
.toolbar { gap: 0.75rem 1rem; }
.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-button);
  background: transparent; color: var(--c-ink);
  font-size: var(--fs-small); cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.toolbar__btn:hover { border-color: var(--c-ink); }
/* the filter bar — ONE set of controls, two presentations (snippets/collection-filters):
   desktop drops each facet's panel from its button; 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-btn-bg); color: var(--c-btn-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: var(--radius-button); 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-btn-bg); 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-btn-bg); 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-btn-bg); 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-button);
  }
  .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-btn-bg); 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-btn-bg);
  border-radius: var(--radius-button); background: var(--c-btn-bg); color: var(--c-btn-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; }
/* 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.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-btn-bg); }
.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-btn-bg); }
#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-btn-bg);
  --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-btn-bg); border-color: var(--c-btn-bg); }
vouchers-modal .voucher-widget-button:hover { background: var(--c-btn-bg); color: var(--c-btn-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 dialog on desktop (the photograph on its quiet 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: 37, 19, 10;
  --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(960px, 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-btn-bg); }
/* 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-button);
  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; }
/* equal halves of a 960px dialog: a 480px plate (the 5/6 split left it a 400px strip) */
.product-quickview.qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* the plate: a square packshot shown whole, pinned to the top of the column while the
   buy box (three option rows on this catalogue) scrolls under it. The column itself
   stretches to the row so the tile background runs the modal's full height; the
   image used to stretch with it (height: 100% + cover), which on a tall buy box
   blew the photograph up to a crop of one corner. */
.product-quickview .product-quickview__img-wrapper.qv__media { max-width: none; background: var(--c-surface); }
.product-quickview .product-quickview__img-wrapper.qv__media img {
  position: sticky; top: 0; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
  background: var(--c-tile-bg);
}
/* the product-page buy-box rules (reference.css .buy__opts / .buy__row) bring their
   divider and generous margins along: in the modal they opened a 66px hole between
   the price and the first option. The info column's own gap spaces the blocks. */
.product-quickview .buy__opts { margin-top: 0; padding-top: 1rem; }
.product-quickview .qv__qtylabel { margin-top: 0.25rem; margin-bottom: 0; }
.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); line-height: 1.06; }
.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;
  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 furniturerun-qv-rise {
  from { opacity: 0; transform: translate(-50%, -50%) translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes furniturerun-qv-sheet {
  from { transform: translateY(100%); }
  to { transform: none; }
}
@keyframes furniturerun-qv-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
#product-quickview-modal[open] { animation: furniturerun-qv-rise 260ms var(--ease) both; }
#product-quickview-modal[open] + .product-quickview-modal-backdrop { animation: furniturerun-qv-fade 260ms var(--ease) both; }
#product-quickview-modal .product-quickview { animation: furniturerun-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: furniturerun-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%; object-fit: contain; }
  .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-btn-bg); 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-btn-bg); 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-btn-bg); }
.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: a ruled search field and its button */
.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-btn-bg); 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='%235a4a41' 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
   solid 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-btn-bg) !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 solid 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-btn-bg); color: var(--c-btn-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='%235a4a41' 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-button);
  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 */
.footer__grid > div { min-width: 0; }
.footer a { overflow-wrap: anywhere; }
.footer__social { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer__base { align-items: center; }
.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='%23efe8e1' stroke-width='1.5'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
}
.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; }