/* =============================================================================
   THE STOREFRONT'S DESIGN SYSTEM — one stylesheet, mobile first, nothing from
   the staff ERP. A storefront page is built from the primitives below; a new
   page reaches for one of these before it writes a class of its own. The
   markup half is templates/_ui.html ({% import "_ui.html" as ui %}); the
   doctrine is docs/WEB.md, "Storefront design system"; every primitive is on
   one page at /design-system (development only).

   RULES
   * No color is a company's. The tenant's accent arrives as --accent from
     /theme.css; everything branded is derived from it here. Never write
     a hex value in a page's markup or in a new rule — use a token.
   * No inline style and no inline script, anywhere: the content security
     policy refuses both. A value that varies goes in a class or an attribute.
   * Nothing scrolls sideways. A grid track is minmax(0, 1fr); a flex or grid
     child that holds text has min-width: 0; text wraps (overflow-wrap).
   * Touch targets are 44px tall. Body text is 16px so a phone does not zoom
     a focused field.
   * Three widths: phone (below 720px), tablet (720px and up), desktop (980px
     and up). Write the phone first; add to it at 720 and 980.

   TOKENS (:root)
     --accent  --accent-ink  --accent-strong  --accent-soft  --accent-line
     --ink  --ink-soft  --ink-faint  --paper  --paper-soft  --paper-sunk
     --line  --line-strong  --ok  --warn  --err  --info  (+ their -bg)  --sale
     --radius  --radius-lg  --gutter  --measure  --shadow  --shadow-lift

   LAYOUT
     .site-main            the page container every page's content sits in
     .container            the same measure, for a full-width band's inside
     .grid  .grid--2 --3 --4 --auto     equal columns (1 on a phone)
     .grid--sidebar        content beside a 340px aside (cart, checkout)
     .stack                even vertical rhythm between children
     .cluster              a wrapping row of small things      .split  ends apart
     .page-title  .lede  .section-head (+ __title, __more)

   THE FRAME (templates/base.html — a page never redraws it)
     .staff-banner  .announce  .site-head  .brand  .search  .tools / .tool
     .brand__logo / .auth__logo + --small --medium --large --xlarge   the
                           logo's size preset (Settings › Website)
     .cart-count [data-cart-count]  .menu-toggle  .main-nav
     .site-foot

   CONTROLS
     .btn  + --primary --ghost --danger --small --large --block ; .is-off
     .link-button          a button that reads as a link
     .form .field .field-row .hint .field__error .has-error .optional
     .check                a checkbox or radio with its words
     .choice               a radio drawn as a selectable card (ship / pay)
     .qty                  a quantity box

   CONTENT
     .card + --muted --narrow --pending --flush ; .card__head .card__actions
     .cards                a grid of cards
     .product-grid         the catalog grid: 2 / 3 / 4 / 5 columns
                           (+ --feature: two full rows at any width)
     .product-card         one product (ui.product_card)
     .rtable               a table; one stacked card per row on a phone
                           (td carries data-label; .num for figures)
     .badge / .status + --ok --warn --error --info --muted --accent --new --sale
                           (+ .badge--quiet: one outlined word that is not a
                           promotion — state compliance)
     .notice + --info --warn --ok --error ; .callout (a titled notice)
     .crumbs  .pagination  .empty-state  .steps  .figures / .figure
     .facts (dl)  .totals (dl)  .plain-list  .address  .subtabs
     .rich                 formatted text ({{ value|rich }}) — never raw markup
                           (.rt-w-<n>: a placed picture's width, a share of
                           the text column)
     .prose-wrap / .prose-page   a whole page of formatted text: a panel the
                           width of every page; lines of text stop at --prose
     .hero                 a text panel (+ --compact, --problem)

   HOMEPAGE
     .home-banners .banners--<layout> .banner  .carousel
     .home-block  .link-tiles / .link-tile  .brand-tiles / .brand-tile

   CATALOG (templates/catalog/ — the block at the foot of this file; the
   macros are catalog/_parts.html: card, grid, qty, price, stock, restock_form)
     .catalog (+ --side)   a listing: the filters beside the grid from 980px,
                           behind the Filters button below it
     .filters  .filters-toggle  .listing-bar  .listing-head  .chips / .chip
     .qty-step             THE quantity control: a number field bound to the
                           product's own min / step / max (cat.qty)
     .card-add             a card's quantity and Add to cart
     .product              the product page: gallery beside the facts
     .buy  .restock        Add to cart on a product page; the restock sign-up
     .state-list           State compliance on a product page: full state
                           names in 1 / 2 / 3 / 4 columns
     .vgrid                the family grid (an .rtable): VARIATION | PRICE |
                           AVAILABILITY | QTY | ADD; a compact list on a phone
     .letters  .brand-group  .brand-list / .brand-row     Shop by Brand
     .suggest              the header search's suggestions
     .toasts / .toast      a message from the script (a .notice)
     .badge--success --danger --amber --neutral --good    a product's own
                           badge tones and the state-compliance badge

   CART, CHECKOUT AND CONFIRMATION (templates/cart/ — the last block of this
   file; the macros are cart/_parts.html)
     .cart / .cart-line    the cart page's lines (an .rtable) and summary
     .checkout             the checkout form: .choice cards, .checkout__summary
     .minicart             the drawer after an add (a <dialog>; cart.js)
     .confirm              the confirmation's success panel

   PRICE MATCHING (catalog/_price_match.html — the last block of this file)
     .pmatch-strip         the soft-green strip under a product's price (a link)
     .pmatch-dialog        the request form in a dialog.ask-dialog (catalog.js)
     .pmatch-summary       the item asked about, its number and price, in one block
     .pmatch-attach        the one Photo or file box, its chosen name and Remove
   ========================================================================== */

:root {
  --accent: #1f3a5f;
  --accent-ink: #ffffff;
  --accent-strong: #172c48;
  --accent-soft: #eef2f7;
  --accent-line: #b6c2d2;
  --ink: #17202b;
  --ink-soft: #4b5563;
  --ink-faint: #6b7686;
  /* The same three, under names nothing overrides — what a light surface
     puts back when the page or header around it has flipped its inks. */
  --ink-base: #17202b;
  --ink-soft-base: #4b5563;
  --ink-faint-base: #6b7686;
  --paper: #ffffff;
  --paper-soft: #f4f6f8;
  --paper-sunk: #e9edf2;
  --line: #d9dee5;
  --line-strong: #b9c2cd;
  --ok: #1d7a46;
  --ok-bg: #e8f5ec;
  --warn: #8a5a00;
  --warn-bg: #fdf3dc;
  --err: #a52121;
  --err-bg: #fbeaea;
  /* The solid alert (a declined card): deep red with white ink — a surface of
     its own, so it reads the same on a light or a dark page. */
  --err-solid: #9b1c1c;
  --err-solid-ink: #ffffff;
  /* A blocking checkout error: a solid deep-red panel, white text. */
  --err-deep: #8b1720;
  --err-deep-ink: #ffffff;
  --info: #1f4f82;
  --info-bg: #e8f0f9;
  --muted-bg: #eceff3;
  /* The order note's sticky-note amber (checkout, the confirmation): a soft
     paper, a gold edge — a note somebody wrote, never an alert. */
  --note-bg: #fff5de;
  --note-line: #e8ca8c;
  --note-edge: #c49a41;
  --note-field: #fffdf8;
  --note-hint: #927d58;
  --sale: #b42318;
  /* The sale item notice (PR #117 final corrections): a dark amber with
     white words and tag on it (~5.0:1). A company's own two colors replace
     these from `/theme.css` (Settings › Website › Catalog). */
  --final-sale-bg: #b45309;
  --final-sale-edge: #92400e;
  --final-sale-ink: #ffffff;
  --final-sale-short: #b45309;
  /* WhatsApp's own green — the one brand color that is not the company's.
     Only the optional WhatsApp element reads these. */
  --whatsapp: #25d366;
  --whatsapp-strong: #1ebe5a;
  --whatsapp-ink: #06361a;
  /* The price match strip (catalog/_price_match.html): a soft green with a
     dark-green ink on it (~8:1) — an offer to the customer, never an alert,
     and apart from the amber final-sale notice and a category's banner. */
  --pmatch-bg: #eaf6ee;
  --pmatch-bg-hover: #dcefe2;
  --pmatch-edge: #b7dcc3;
  --pmatch-ink: #14532d;
  --foot: #17202b;
  --radius: 8px;
  --radius-lg: 12px;
  /* Labels and small tabs: a rounded rectangle, never a pill. */
  --radius-sm: 5px;
  /* The three sizes that used to be written as bare numbers. **Every
     rectangle's corner is one of these six tokens** — never a number in a
     rule — because Settings › Website › Appearance › Corner style: Square
     sets all six to zero in /theme.css (storefrontsettings.RADIUS_TOKENS).
     A circle that is a circle on purpose (a count, a dot, a step number) is
     999px and is not a token. */
  --radius-xs: 4px;
  --radius-md: 6px;
  --radius-xl: 14px;
  --gutter: 16px;
  /* One measure for every page: home, catalog, product, cart, checkout and
     My Account — and no page states a width of its own. It starts at 1440px
     and grows with a wide monitor, so the unused margin either side is about
     a third less than a fixed 1440px left (the formula takes 35% of what was
     left over at any width; 2000px is the ceiling, so a product card never
     becomes a poster on an ultra-wide screen). Below 1440px it changes
     nothing. Long-form text keeps its own readable column: `.rich` for a
     passage, `--prose` for a whole page of it. */
  --measure: clamp(1440px, calc(958px + 35vw), 2000px);
  /* A page of formatted text (a Website page): the panel is as wide as every
     other page's content (--measure); --prose is only how long a line of its
     running text may get. Pictures, dividers and tables use the whole panel. */
  --prose: 72rem;
  /* THE quantity control's size. Touch size by default; compact where there
     is a mouse and room (see the desktop block). */
  --qty-h: 44px;
  --qty-btn: 40px;
  --qty-w: 4.25rem;
  /* The tenant's surfaces (Settings › Website › Appearance). `/theme.css`
     sets the ones a company chose; these are the shipped look. */
  --page-bg: var(--paper-soft);
  --header-bg: var(--paper);
  --nav-bg: var(--accent);
  --nav-ink: var(--accent-ink);
  --footer-bg: var(--foot);
  --footer-ink: #c9d2dd;
  --footer-strong: #fff;
  --brand-ink: var(--accent);
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .1);
  --shadow-lift: 0 14px 34px rgba(16, 24, 40, .18);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
/* Everything branded follows the one tenant value. */
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --accent-strong: color-mix(in srgb, var(--accent) 80%, #000);
    --accent-soft: color-mix(in srgb, var(--accent) 8%, #fff);
    --accent-line: color-mix(in srgb, var(--accent) 32%, #fff);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--page-bg); color: var(--ink);
  line-height: 1.45; font-size: 16px; display: flex; flex-direction: column;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
/* An image whose file is missing draws as a quiet placeholder, never the
   browser's broken-picture mark (`storefront.js` marks it). */
img.is-missing { background: var(--paper-sunk) center / 36% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa5b4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.09-3.09a2 2 0 0 0-2.82 0L6 21'/%3E%3C/svg%3E"); min-width: 40px; min-height: 40px; object-position: -9999px; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; overflow-wrap: anywhere; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; width: 20px; height: 20px; }
.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 50; padding: .6rem 1rem;
  background: var(--paper); border: 2px solid var(--accent); border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: .5rem; }

/* ----------------------------------------------------------- layout --- */
.container { width: 100%; max-width: var(--measure); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.site-main { flex: 1; width: 100%; max-width: var(--measure); margin: 0 auto; padding: 1.1rem var(--gutter) 2.25rem; min-width: 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.stack > * { margin-top: 0; margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; justify-content: space-between; }
.page-title { margin-bottom: 1rem; }
.lede { color: var(--ink-soft); max-width: 70ch; }
.muted { color: var(--ink-soft); font-weight: 400; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin: 0 0 .75rem; }
.section-head__title { margin: 0; font-size: 1.25rem; }
.section-head__more { font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.section-head__more:hover { text-decoration: underline; }

/* ---------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: 0 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { border-color: var(--accent); color: var(--ink); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); border-color: transparent; color: var(--accent-strong); }
.btn--danger { color: var(--err); border-color: var(--err); }
.btn--danger:hover { background: var(--err-bg); border-color: var(--err); color: var(--err); }
.btn--block { width: 100%; }
.btn--small { min-height: 36px; padding: 0 .8rem; font-size: .9rem; }
.btn--large { min-height: 52px; padding: 0 1.5rem; font-size: 1.05rem; }
.btn.is-off, .btn:disabled { opacity: .45; cursor: default; pointer-events: none; }
.link-button {
  background: none; border: 0; padding: 0; color: var(--accent); font: inherit;
  text-decoration: underline; cursor: pointer; min-height: 44px;
}
.inline-form { display: inline; margin: 0; }

/* ------------------------------------------------------------ forms --- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea, .qty {
  width: 100%; min-height: 44px; padding: 0 .75rem; font: inherit; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper);
}
.field select { padding: 0 .6rem; }
.field textarea { padding: .6rem .75rem; min-height: 6rem; resize: vertical; line-height: 1.4; }
.field input:focus, .field select:focus, .field textarea:focus, .qty:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.field-row { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.field__error { color: var(--err); font-size: .9rem; margin: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.optional { color: var(--ink-soft); font-weight: 400; font-size: .85rem; }
.hint { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.qty { width: var(--qty-w); min-height: var(--qty-h); text-align: center; padding: 0 .3rem; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: .6rem; align-items: flex-start; min-height: 44px; padding: .6rem 0; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; flex: none; accent-color: var(--accent); }
.check span { min-width: 0; overflow-wrap: anywhere; }
.choice {
  display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper);
}
.choice input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; flex: none; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.choice__body { display: grid; gap: .1rem; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.choice__note { color: var(--ink-soft); font-size: .9rem; }
.choice__price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 4.2rem; }
.reveal {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  min-height: 34px; padding: 0 .6rem; font: inherit; font-size: .85rem;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-soft);
  color: var(--ink-soft); cursor: pointer;
}
.form__links { margin: 0; font-size: .95rem; text-align: center; }
form.form__links { display: block; margin-top: .9rem; }
.form__actions { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; }

/* ---------------------------------------------- notices and callouts --- */
.notice { padding: .75rem 1rem; border-radius: var(--radius); margin: 0 0 1rem; overflow-wrap: anywhere; background: var(--info-bg); color: var(--info); }
.notice--info { background: var(--info-bg); color: var(--info); }
.notice--warn { background: var(--warn-bg); color: var(--warn); }
.notice--ok { background: var(--ok-bg); color: var(--ok); }
.notice--error { background: var(--err-bg); color: var(--err); }
/* The sign-in page's welcome for a login carried over from an old website
   (PR #114 correction 27): soft amber, edged, its words in the page's ink so
   it reads as a welcome rather than a second warning beside the red one. */
.notice.setup-offer { margin-top: 1rem; border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line)); color: var(--ink); }
.setup-offer__title { color: var(--warn); margin-bottom: .35rem; }
.setup-offer .form { margin-top: .75rem; }
.notice__title { font-weight: 700; }
.notice > :last-child { margin-bottom: 0; }
/* A company's own notice (Settings › Website › Notices): the box is as wide
   as the page it sits on; only its lines of text keep a readable measure.
   An icon says its kind as well as its color does. `tenant-notice--<key>`
   is where the notice's own two colors arrive (`/theme.css`). */
.tenant-notice { display: flex; align-items: flex-start; gap: .65rem; width: 100%; }
.tenant-notice > .icon { margin-top: .12rem; }
.tenant-notice__body { flex: 1 1 auto; min-width: 0; }
.tenant-notice .rich { max-width: 110ch; }
.tenant-notice .rich > :first-child { margin-top: 0; }
.callout {
  padding: .9rem 1rem; margin: 0 0 1rem; background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--info); border-radius: var(--radius); overflow-wrap: anywhere;
}
.callout--warn { border-left-color: var(--warn); background: var(--warn-bg); }
.callout--ok { border-left-color: var(--ok); }
.callout--error { border-left-color: var(--err); }
/* **A declined card is the one alert that must not be missed** (the owner's
   review, 2026-10-28): the whole surface deep red, the text white and bold.
   Its own tokens rather than `--err-bg`, which is a pale tint by design. */
.callout--critical {
  background: var(--err-solid); color: var(--err-solid-ink);
  border: 1px solid var(--err-solid); border-left: 6px solid var(--err-solid-ink);
  font-weight: 700; font-size: 1.05rem; padding: 1rem 1.15rem;
}
.callout--critical a { color: var(--err-solid-ink); text-decoration: underline; }
/* **A notice that must be read before going on** (UI batch, 2026-11-07 —
   an expired license, addresses only our team can add): a red-tinted,
   readable panel with a warning mark, its title in the error ink. */
.callout--alert {
  display: flex; align-items: flex-start; gap: .7rem; background: var(--err-bg); color: var(--ink);
  border-color: color-mix(in srgb, var(--err) 30%, var(--line)); border-left: 5px solid var(--err);
}
.callout--alert > .icon { flex: none; width: 22px; height: 22px; margin-top: .1rem; color: var(--err); }
.callout--alert .callout__title { color: var(--err); }
.callout--alert a { color: inherit; font-weight: 600; text-decoration: underline; }
.callout--info { display: flex; align-items: flex-start; gap: .6rem; background: var(--info-bg); }
.callout--info > .icon { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .1rem; color: var(--info); }
.callout__body { flex: 1 1 auto; min-width: 0; }
.callout__title { display: block; font-weight: 700; margin-bottom: .2rem; }
.callout > :last-child { margin-bottom: 0; }

/* ----------------------------------------------------------- badges --- */
.badge, .status {
  display: inline-block; padding: .12rem .5rem; border-radius: var(--radius-sm); font-size: .78rem;
  font-weight: 700; line-height: 1.5; white-space: nowrap; background: var(--info-bg); color: var(--info);
}
.status { font-size: .82rem; }
.badge--ok, .status--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn, .status--warn { background: var(--warn-bg); color: var(--warn); }
.badge--error, .status--error { background: var(--err-bg); color: var(--err); }
.badge--muted, .status--muted { background: var(--muted-bg); color: var(--ink-soft); }
.badge--accent { background: var(--accent-soft); color: var(--accent); }
.badge--new { background: var(--accent); color: var(--accent-ink); }
/* Coming soon's own class, so a company's chosen color reaches it alone
   (`theme_css`); the shipped look is the accent's soft one. */
.badge--soon { background: var(--accent-soft); color: var(--accent); }
.badge--sale { background: var(--sale); color: #fff; }
/* One quiet word — a fact about the product that is not a promotion (state
   compliance). Outlined, never filled, so it does not compete with the name. */
.badge--quiet { background: transparent; color: var(--ink-soft); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-strong); }
a.badge--quiet { text-decoration: none; }
a.badge--quiet:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-soft); }

/* ------------------------------------------------------- auth pages --- */
body.auth {
  background: linear-gradient(160deg, var(--accent), #0e1a2b);
  background-size: cover; background-position: center;
}
.auth__main {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: calc(var(--gutter) * 1.5) var(--gutter);
}
.auth__card {
  width: 100%; max-width: 440px; background: var(--paper); border-radius: var(--radius-xl);
  padding: 1.75rem 1.4rem; box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.auth__brand { display: flex; justify-content: center; margin-bottom: 1.2rem; }
/* The sign-in logo's size is a preset (Settings › Website › Website
   identity): only how tall it may be drawn changes, so the image keeps its
   own proportions and never grows wider than the card. */
.auth__logo { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.auth__logo--medium { max-height: 80px; }
.auth__logo--large { max-height: 100px; }
.auth__logo--xlarge { max-height: 120px; }
.auth__name { font-size: 1.35rem; font-weight: 700; color: var(--accent); text-align: center; overflow-wrap: anywhere; }
.auth__heading { font-size: 1.35rem; text-align: center; margin-bottom: 1.1rem; }
.auth__heading:has(+ .auth__text) { margin-bottom: .4rem; }
.auth__text { text-align: center; color: var(--ink-soft); font-size: .97rem; margin-bottom: 1.1rem; overflow-wrap: anywhere; max-width: none; }
.auth__text p { margin: 0 0 .55rem; }
.auth__text ul, .auth__text ol { display: inline-block; text-align: left; margin: 0 0 .55rem; padding-left: 1.2rem; }
.auth__text .rt-rule { margin: .8rem 0; }
/* The introduction sits in a quiet box of its own under the heading. */
.auth__intro {
  margin: 0 0 1.4rem; padding: .9rem 1rem; background: var(--paper-soft);
  border: 1px solid var(--line); border-radius: var(--radius); line-height: 1.5;
}
.auth__heading:has(+ .auth__intro) { margin-bottom: 1.1rem; }
.auth__intro > :last-child { margin-bottom: 0; }
/* Split screen: the image on the left, the card on the right, on one plain
   background. A phone or a narrow window is the card alone. */
.auth__picture { display: none; }
/* **A portal, not a card on a page**: the panel is plain paper from edge to
   edge, only as wide as what signs somebody in and a small margin — the image
   takes the rest of the window, however large. */
body.auth.auth--split { background: var(--paper); }
.auth--split > .auth__main { background: var(--paper); }
.auth--split .auth__foot, .auth--split .auth__foot a, .auth--split .auth__foot-name { color: var(--ink-soft); }
.auth--split .auth__foot-name { color: var(--ink); }
.auth--split .auth__card { border: 0; box-shadow: none; border-radius: 0; background: none; padding: 0; }
@media (min-width: 900px) {
  body.auth--split { display: grid; grid-template-columns: minmax(0, 1fr) 476px; min-height: 100vh; }
  .auth--split > .auth__picture {
    display: block; grid-column: 1; grid-row: 1; position: sticky; top: 0; height: 100vh;
    background-color: var(--accent); background-size: cover; background-position: center;
  }
  .auth--split > .auth__main { grid-column: 2; grid-row: 1; min-height: 100vh; padding: 2.5rem 18px; }
}
@media (max-width: 899px) {
  .auth--split > .auth__main { padding: 1.75rem var(--gutter); }
  .auth--split .auth__card { max-width: 520px; }
}
.auth__foot {
  margin-top: 1.2rem; color: rgba(255,255,255,.85); font-size: .9rem;
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}
.auth__foot a { color: #fff; }
.auth__foot { max-width: 640px; gap: .35rem 1.1rem; text-align: center; }
.auth__foot-name { font-weight: 700; color: #fff; }
.auth__foot-note { flex: 1 1 100%; }
/* Sign in: the way in for somebody with no account yet — a rule, a line and
   the secondary button. Drawn only while the company takes registrations. */
.auth__new { display: grid; gap: .55rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.auth__new-label { margin: 0; text-align: center; color: var(--ink-soft); font-size: .95rem; max-width: none; }
.choose__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.choose__item {
  width: 100%; text-align: left; display: grid; gap: .15rem; min-height: 56px;
  padding: .7rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); font: inherit; cursor: pointer;
}
.choose__item:hover, .choose__item.is-current { border-color: var(--accent); }
.choose__name { font-weight: 700; }
.choose__city { color: var(--ink-soft); font-size: .9rem; }

/* ======================================================== the frame === */
.staff-banner {
  /* PR #16 corrections: a deep navy strip with a small amber STAFF VIEW
     mark — unmistakable, without the alarm-red the owner disliked. Its
     colors are fixed (a staff mark, never the company's to change) and
     declared once, here, as its own tokens. */
  --sb-navy: #17233b;
  --sb-text: #f4f6fb;
  --sb-amber: #f0b43c;
  --sb-amber-ink: #2b1d00;
  --sb-button-hover: #e6ebf5;
  position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; gap: .35rem .8rem;
  align-items: center; justify-content: center; padding: .45rem var(--gutter);
  background: var(--sb-navy); color: var(--sb-text); font-size: .93rem; text-align: center;
  border-bottom: 2px solid var(--sb-amber); overflow-wrap: anywhere;
}
.staff-banner__mark {
  background: var(--sb-amber); color: var(--sb-amber-ink); font-weight: 800; font-size: .7rem; letter-spacing: .07em;
  text-transform: uppercase; padding: .16rem .5rem; border-radius: var(--radius-xs); white-space: nowrap;
}
.staff-banner__text strong { color: #fff; }
/* UX#16 — the account's price tier: a compact outlined label beside the name. */
.staff-banner__tier {
  border: 1px solid var(--sb-amber); color: var(--sb-amber); font-weight: 700; font-size: .78rem;
  padding: .08rem .45rem; border-radius: var(--radius-xs); white-space: nowrap;
}
/* End session / Back to SalesPad — the banner's one control (`_staff_banner.html`). */
.staff-banner__end { margin: 0; }
.staff-banner__button {
  min-height: 34px; padding: 0 .9rem; border: 1px solid rgba(255, 255, 255, .55); border-radius: var(--radius-xs);
  background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.staff-banner__button:hover { background: rgba(255, 255, 255, .12); }
.staff-banner__button--primary { background: #fff; border-color: #fff; color: var(--sb-navy); }
.staff-banner__button--primary:hover { background: var(--sb-button-hover); }
.staff-banner__button:focus-visible { outline: 2px solid var(--sb-amber); outline-offset: 2px; }
.staff-banner__button:disabled { opacity: .7; cursor: progress; }
.announce {
  background: var(--accent-strong); color: var(--accent-ink); font-size: .9rem; text-align: center;
  padding: .4rem var(--gutter); overflow-wrap: anywhere; line-height: 1.35;
}
/* A line or two of the company's own words. A link wears the strip's own
   text color — chosen by the company — and says it is one by its underline. */
.announce p { margin: 0; }
.announce p + p { margin-top: .1rem; }
.announce a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.announce a:hover { color: inherit; text-decoration-thickness: 2px; }
.announce a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: var(--radius-sm); }

.site-head { background: var(--header-bg); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-head__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand tools" "search search";
  gap: .6rem .75rem; align-items: center; padding: .65rem var(--gutter);
  max-width: var(--measure); margin: 0 auto;
}
.brand { grid-area: brand; display: inline-flex; align-items: center; text-decoration: none; min-width: 0; }
/* The header logo's size is a preset (Settings › Website › Website
   identity). A preset raises how tall the logo may be drawn; its own
   proportions decide the width, it is never stretched, and on a phone it can
   never be wider than the space the header gives it. */
.brand__logo { max-height: 44px; width: auto; max-width: 100%; object-fit: contain; }
.brand__logo--medium { max-height: 52px; }
.brand__logo--large { max-height: 60px; }
.brand__logo--xlarge { max-height: 68px; }
/* Below the desktop header the logo takes its own preset (Settings ›
   Website › Website identity › Mobile logo) — and never more of the row
   than leaves the cart and the menu their room. */
@media (max-width: 979px) {
  .brand__logo.brand__logo--m-small { max-height: 44px; }
  .brand__logo.brand__logo--m-medium { max-height: 52px; }
  .brand__logo.brand__logo--m-large { max-height: 62px; }
  .brand__logo.brand__logo--m-xlarge { max-height: 74px; }
  .brand__logo[class*="brand__logo--m-"] { max-width: min(100%, 56vw); }
}
/* A company's name is shown whole where it fits in two lines, never cut to
   a few letters on one. */
.brand__name {
  font-weight: 800; font-size: 1.02rem; line-height: 1.15; color: var(--brand-ink); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.search { grid-area: search; display: flex; min-width: 0; }
.search input {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 .9rem; font: inherit; color: var(--ink);
  border: 2px solid var(--accent); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
  background: var(--paper);
}
/* One focus indicator for the whole search control: the box's ring, drawn
   flush against the border so it reads as the border thickening. The input
   draws no outline of its own — the box shows its focus — and a transparent
   outline stands in for the ring where forced colors drop box shadows. */
.search__box { flex: 1; min-width: 0; display: flex; border-radius: var(--radius); }
.search input:focus, .search input:focus-visible { outline: none; }
.search__box:has(input:focus-visible) {
  box-shadow: 0 0 0 2px var(--accent); outline: 2px solid transparent; outline-offset: 2px;
}
.search__go {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 46px; padding: 0 .9rem;
  font: inherit; font-weight: 600; cursor: pointer; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); border-radius: 0 var(--radius) var(--radius) 0;
}
.search__go:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.search__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tools { grid-area: tools; display: flex; align-items: center; gap: .35rem; min-width: 0; }
.tool {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 44px; min-height: 44px; padding: 0 .5rem; border-radius: var(--radius);
  text-decoration: none; color: var(--ink); line-height: 1.15;
}
.tool:hover { background: color-mix(in srgb, currentColor 10%, transparent); color: var(--ink); }
/* The header's own icons are a step larger than the rest (and so is what a
   finger has to hit). One size for all three — never one each. */
.tool .icon { width: 24px; height: 24px; }
.tool { min-width: 46px; min-height: 46px; }
/* The optional WhatsApp link: a round mark in WhatsApp's own green, on any
   header, and a short pair of words beside it where the header has room
   (the desktop width up). The mark is a circle whatever the corner style —
   it is the app's own badge, not one of the website's rectangles. */
.tool__mark {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 999px; background: var(--whatsapp); color: #fff;
}
.tool--whatsapp .tool__mark .icon { width: 20px; height: 20px; }
.tool--whatsapp:hover .tool__mark { background: var(--whatsapp-strong); }
.tool--whatsapp .tool__text { display: none; }
/* Its words are short by rule (`storefrontsettings.WHATSAPP_HEADER_CHARS`),
   so they are given the room to be read whole. */
.tool.tool--whatsapp strong { max-width: 260px; }
.tool--phone { display: none; }
/* On a phone a tool is its icon; its words stay for a screen reader. */
.tool__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tool__label { display: block; font-size: .72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; }
.tool strong { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.tool__icon { position: relative; display: inline-flex; }
/* The count sits on the cart's own corner; the words beside it start clear of it. */
.tool--cart .tool__icon { margin-right: .6rem; }
.cart-count {
  position: absolute; top: -8px; right: -10px; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem;
  border-radius: 999px; background: var(--sale); color: #fff; font-size: .72rem; font-weight: 700;
  line-height: 1.2rem; text-align: center;
}
.menu-toggle {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .75rem;
  font-weight: 600; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; user-select: none;
}
/* ===================================== what stays on screen (2026-10-16) ===
   **One strip stays pinned while a page scrolls, and nothing else.** On a
   computer it is the navigation strip; on a phone or tablet it is the white
   row with the logo, the account, the cart and Menu. The announcement, the
   rest of the header and the phone's search scroll away as they always did.
   Plain `position: sticky` on the element itself: the header and its two
   wrappers are `display: contents` (same document, same order), so each
   strip's containing block is the page and it can stick for its whole
   length. `--sf-staff-h` / `--sf-bar-h` are measured by `storefront.js`
   (a ResizeObserver — no scroll handler) so a staff session's banner and
   the phone's row are never overlapped. Screen only: print still drops the
   whole header. */
@media screen {
  .site-head { display: contents; }
  .site-head__top { background: var(--header-bg); }
}
@media screen and (max-width: 979px) {
  .site-head__top, .site-head__row { display: contents; }
  .site-head__bar {
    position: sticky; top: var(--sf-staff-h, 0px); z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: .6rem .75rem;
    padding: .65rem var(--gutter); background: var(--header-bg);
  }
  .site-head__bar .brand { flex: 1 1 0; min-width: 0; }
  .site-head__bar .tools { flex: none; }
  .search { padding: 0 var(--gutter) .65rem; background: var(--header-bg); border-bottom: 1px solid var(--line); }
  /* The menu, opened while the page is scrolled, pins under the row that
     opened it and scrolls within itself. */
  .nav-open:checked ~ .main-nav {
    position: sticky; top: calc(var(--sf-staff-h, 0px) + var(--sf-bar-h, 66px)); z-index: 19;
    max-height: calc(100vh - var(--sf-staff-h, 0px) - var(--sf-bar-h, 66px)); overflow-y: auto;
    box-shadow: var(--shadow-lift);
  }
}
@media screen and (min-width: 980px) {
  .site-head__bar { display: contents; }
  .main-nav { position: sticky; top: var(--sf-staff-h, 0px); z-index: 20; border-bottom: 1px solid var(--line); }
}

/* The menu's switch: a real checkbox, off screen, still reachable by keyboard. */
.nav-open { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-head:has(.nav-open:focus-visible) .menu-toggle { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-head:has(.nav-open:checked) .menu-toggle { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.main-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.nav-open:checked ~ .main-nav { display: block; }
.main-nav__list, .main-nav__cols, .main-nav__leaves { list-style: none; margin: 0; padding: 0; }
.main-nav__list { padding: .25rem var(--gutter) .75rem; max-width: var(--measure); margin: 0 auto; }
.main-nav__item { border-bottom: 1px solid var(--paper-sunk); min-width: 0; }
.main-nav__top {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%;
  min-height: 46px; padding: .5rem 0; color: var(--ink); text-decoration: none; font-weight: 600;
  overflow-wrap: anywhere; cursor: pointer;
}
a.main-nav__top:hover, summary.main-nav__top:hover { color: var(--accent); }
.main-nav__top.is-current { color: var(--accent); }
.main-nav__top.is-heading { cursor: default; }
/* An entry's optional picture — a bar item's, or a panel entry's one level
   down: one small fixed box, whatever was uploaded, centered on its label. */
.main-nav__icon { flex: none; width: 20px; height: 20px; object-fit: contain; border-radius: var(--radius-xs); }
.main-nav__with-icon { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; }
/* In a panel the pair stays inside its column, a long label wrapping beside
   its picture; and being one box, its underline has to be given to the words. */
.main-nav__sub .main-nav__with-icon { max-width: 100%; }
a.main-nav__sub:hover .main-nav__with-icon > span:not(.nav-tag), .main-nav__sub.is-current .main-nav__with-icon > span:not(.nav-tag) { text-decoration: underline; }
.main-nav__button { border: 0; background: none; font: inherit; font-weight: 600; text-align: left; color: var(--ink-soft); }
.main-nav__out { margin: 0; }
summary.main-nav__top { list-style: none; }
summary.main-nav__top::-webkit-details-marker { display: none; }
.main-nav__group[open] > summary .icon { transform: rotate(180deg); }
.main-nav__panel { padding: 0 0 .75rem .75rem; }
.main-nav__all { display: inline-block; padding: .45rem 0; font-weight: 600; }
.main-nav__col { padding: .1rem 0; min-width: 0; }
.main-nav__sub, .main-nav__leaf {
  display: block; padding: .5rem 0; color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
}
.main-nav__sub { font-weight: 600; }
.main-nav__sub.is-heading { color: var(--ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding-top: .7rem; }
.main-nav__leaf { color: var(--ink-soft); }
a.main-nav__sub:hover, a.main-nav__leaf:hover, .main-nav__sub.is-current, .main-nav__leaf.is-current { color: var(--accent); text-decoration: underline; }
.main-nav__leaves { padding-left: .75rem; }
/* A main-menu entry's short label (NEW, HOT): a small rectangle right of its
   text. Its own colors, where it has any, are `/nav-labels.css`'s. */
.nav-tag {
  display: inline-block; flex: none; margin-left: .4rem; padding: .12rem .34rem; border-radius: var(--radius-xs);
  background: var(--sale); color: var(--paper); font-size: .66rem; font-weight: 700; line-height: 1.25;
  letter-spacing: .03em; text-decoration: none; text-transform: none; white-space: nowrap; vertical-align: middle;
}
.main-nav__with-icon > .nav-tag { margin-left: 0; }
.main-nav__more { display: none; }

.site-foot { background: var(--footer-bg); color: var(--footer-ink); font-size: .93rem; }
.site-foot a, .site-foot .link-button { color: var(--footer-strong); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--footer-strong); }
.site-foot__cols {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2rem;
  padding: 1.75rem var(--gutter) 1.25rem; max-width: var(--measure); margin: 0 auto;
}
.site-foot__col { flex: 1 1 100%; display: grid; gap: .3rem; align-content: start; min-width: 0; overflow-wrap: anywhere; }
.site-foot__name { color: var(--footer-strong); font-size: 1.05rem; }
.site-foot__address { font-style: normal; display: grid; gap: .1rem; }
.site-foot__hours, .site-foot__extra { display: block; }
/* The optional WhatsApp link: a compact button in WhatsApp's own green. */
.whatsapp, .site-foot a.whatsapp {
  display: inline-flex; align-items: center; gap: .5rem; justify-self: start; margin-top: .55rem;
  min-height: 44px; padding: .45rem 1rem .45rem .7rem; border-radius: var(--radius);
  background: var(--whatsapp); color: var(--whatsapp-ink); font-weight: 700; text-decoration: none;
  line-height: 1.2; max-width: 100%; overflow-wrap: anywhere;
}
.whatsapp:hover, .site-foot a.whatsapp:hover { background: var(--whatsapp-strong); color: var(--whatsapp-ink); text-decoration: none; }
.whatsapp .icon { width: 24px; height: 24px; }
.site-foot__title { color: var(--footer-strong); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .3rem; }
.site-foot__title a { text-decoration: none; }
.site-foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.site-foot__link { display: inline-block; padding: .3rem 0; text-decoration: none; }
.site-foot__link:hover, .site-foot__title a:hover { text-decoration: underline; color: var(--footer-strong); }
.site-foot__link.is-heading { color: var(--footer-ink); }
.site-foot .link-button { min-height: 0; padding: .3rem 0; text-decoration: none; }
.site-foot .link-button:hover { text-decoration: underline; }
/* The company's own content under the account links: its pictures sit side
   by side while they fit (card logos), and a table keeps the footer's ink. */
.site-foot__custom { margin-top: .75rem; font-size: .9rem; }
.site-foot__custom p { margin: 0 0 .6rem; }
.site-foot__custom a { text-decoration: underline; }
.site-foot__custom.rich .rt-figure { display: inline-block; min-width: 0; margin: 0 .5rem .5rem 0; vertical-align: middle; }
.site-foot__custom th, .site-foot__custom td { border-color: color-mix(in srgb, var(--footer-strong) 25%, transparent); background: none; }
.site-foot__legal {
  display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; justify-content: space-between;
  padding: .9rem var(--gutter) 1.3rem; max-width: var(--measure); margin: 0 auto;
  border-top: 1px solid color-mix(in srgb, var(--footer-strong) 16%, transparent); font-size: .82rem; color: var(--footer-ink);
}
.site-foot__legal-links { display: inline-flex; gap: 1rem; flex-wrap: wrap; }

/* ==================================================== content pieces === */
.hero { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.25rem; margin-bottom: 1.25rem; }
.hero p { color: var(--ink-soft); max-width: 60ch; }
.hero__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.hero--compact { padding: .9rem 1rem; }
.hero--compact h1 { font-size: 1.2rem; margin-bottom: .2rem; }
.hero--compact p { margin-bottom: .6rem; }
.hero--problem { text-align: center; padding: 2.5rem 1.25rem; }
.hero--problem p { margin-left: auto; margin-right: auto; }
.hero--problem .hero__actions { justify-content: center; }

.tiles { display: grid; gap: .8rem; grid-template-columns: minmax(0, 1fr); }
.tile {
  display: grid; gap: .2rem; padding: 1rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); min-width: 0;
}
a.tile:hover { border-color: var(--accent); color: var(--ink); }
.tile span { color: var(--ink-soft); font-size: .9rem; }
.tile--muted { opacity: .65; }
.tiles--quick { margin-top: 1rem; }

.cards { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; min-width: 0; }
.card--muted { opacity: .7; }
.card--narrow { max-width: 520px; }
.card--pending { border-style: dashed; }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.card__head h2 { margin: 0; }
.card__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .9rem; }
.card h2 .status { vertical-align: middle; margin-left: .3rem; }

.crumbs { margin: 0 0 .75rem; font-size: .9rem; color: var(--ink-soft); }
.crumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem .4rem; }
.crumbs__item { display: inline-flex; gap: .4rem; min-width: 0; overflow-wrap: anywhere; }
.crumbs__item + .crumbs__item::before { content: "›"; color: var(--ink-faint); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .75rem; margin: 1.5rem 0 0; }
.pagination__pages { list-style: none; margin: 0; padding: 0; display: none; gap: .3rem; align-items: center; }
.pagination__page, .pagination__step {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px;
  padding: 0 .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
a.pagination__page:hover, a.pagination__step:hover { border-color: var(--accent); color: var(--ink); }
.pagination__page.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pagination__step.is-off { opacity: .45; }
.pagination__gap { color: var(--ink-faint); padding: 0 .1rem; }
.pagination__where { color: var(--ink-soft); font-size: .92rem; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
.pager__where { color: var(--ink-soft); font-size: .92rem; }

.empty { color: var(--ink-soft); margin: .25rem 0; }
.empty-state {
  text-align: center; padding: 2.25rem 1.25rem; background: var(--paper); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg); color: var(--ink-soft);
}
.empty-state__title { color: var(--ink); font-size: 1.15rem; }
.empty-state__text { max-width: 52ch; margin-left: auto; margin-right: auto; }

/* The checkout's three steps (ui.steps). The step a customer is on is a
   filled block — unmistakable on a desktop and a phone; a finished step
   wears a check on the "done" color; a step still ahead is quiet. */
.steps { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; gap: .4rem; }
.steps__step {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .5rem .3rem; text-align: center; color: var(--ink-soft); font-size: .76rem; font-weight: 600;
  line-height: 1.25; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow-wrap: break-word;
}
.steps__n {
  display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem;
  border-radius: 999px; background: var(--paper-sunk); color: var(--ink-soft); font-size: .85rem;
  font-variant-numeric: tabular-nums; flex: none;
}
.steps__n .icon { width: 16px; height: 16px; }
.steps__label { min-width: 0; }
a.steps__label { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
a.steps__label:hover { color: var(--accent); }
.steps__step.is-done { border-color: var(--ok); color: var(--ink); }
.steps__step.is-done .steps__n { background: var(--ok); color: var(--paper); }
.steps__step.is-current {
  flex-grow: 1.25; background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: .82rem; box-shadow: var(--shadow);
}
.steps__step.is-current .steps__n { background: var(--accent-ink); color: var(--accent); font-weight: 700; }
@media (min-width: 720px) {
  .steps { gap: .6rem; }
  .steps__step { flex-direction: row; justify-content: center; gap: .6rem; padding: .7rem 1rem; font-size: .95rem; text-align: left; }
  .steps__step.is-current { flex-grow: 1; font-size: 1.02rem; }
}

.back { margin: -.4rem 0 .9rem; font-size: .95rem; }
.back a { text-decoration: none; }
.sub { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.note { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.page-actions { margin: 1rem 0 0; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1rem; margin: 0 0 1rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.address { font-style: normal; display: grid; gap: .1rem; overflow-wrap: anywhere; }
.address strong { display: block; }
.address span { display: block; }
.plain-list { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .4rem; }
.plain-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem;
  flex-wrap: wrap; padding: .6rem .75rem; border: 1px solid var(--line);
  border-radius: var(--radius); overflow-wrap: anywhere;
}
.totals {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1.5rem; margin: 1.1rem 0 0;
  padding-top: .9rem; border-top: 1px solid var(--line); max-width: 360px; margin-left: auto;
}
.totals dt { color: var(--ink-soft); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .totals__strong { color: var(--ink); font-weight: 700; font-size: 1.08rem; padding-top: .3rem; }
.figures { display: grid; gap: .8rem; grid-template-columns: minmax(0, 1fr); }
.figure {
  display: grid; gap: .2rem; padding: 1rem 1.1rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink);
  min-width: 0;
}
a.figure:hover { border-color: var(--accent); color: var(--ink); }
.figure__label { color: var(--ink-soft); font-size: .88rem; }
.figure__value { font-size: 1.45rem; line-height: 1.2; overflow-wrap: anywhere; }
.figure--due .figure__value { color: var(--err); }
.figure--credit .figure__value { color: var(--ok); }
.subtabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1rem; }
.subtabs a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.subtabs a.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.order-head__status { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; }
.order-head__status .status { font-size: .95rem; padding: .2rem .8rem; }
.order-head__detail { color: var(--ink-soft); }

/* Formatted text — what {{ value|rich }} writes. */
.rich { overflow-wrap: anywhere; max-width: 75ch; }
.rich > :last-child { margin-bottom: 0; }
.rich ul, .rich ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.rich li { margin: .2rem 0; }
.rich .rt-left { text-align: left; }
.rich .rt-center { text-align: center; }
.rich .rt-right { text-align: right; }
.rich .rt-table { overflow-x: auto; margin: 0 0 1rem; max-width: 100%; }
.rich table { border-collapse: collapse; width: 100%; }
.rich th, .rich td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.rich th { background: var(--paper-soft); }
/* Website content: a divider, and a media library picture on its own line. */
.rich .rt-rule { border: 0; border-top: 1px solid var(--line-strong); margin: 1.25rem 0; }
.rich .rt-figure { margin: 0 0 1rem; }
.rich .rt-figure img { max-width: 100%; height: auto; border-radius: var(--radius); }
.rich .rt-figure.rt-center img { margin-left: auto; margin-right: auto; }
.rich .rt-figure.rt-right img { margin-left: auto; }
/* A picture given a width (richtext.IMAGE_WIDTHS): a share of the text
   column, so it is the same proportion of the page that it was of the editor
   — and on a phone it never shrinks below something a person can see. One
   class per width, because this page allows no inline style. */
.rich .rt-figure[class*="rt-w-"] { min-width: min(100%, 140px); max-width: 100%; }
.rich .rt-figure[class*="rt-w-"] img { width: 100%; }
.rich .rt-figure.rt-center[class*="rt-w-"] { margin-left: auto; margin-right: auto; }
.rich .rt-figure.rt-right[class*="rt-w-"] { margin-left: auto; }
.rich .rt-w-10 { width: 10%; }
.rich .rt-w-15 { width: 15%; }
.rich .rt-w-20 { width: 20%; }
.rich .rt-w-25 { width: 25%; }
.rich .rt-w-30 { width: 30%; }
.rich .rt-w-35 { width: 35%; }
.rich .rt-w-40 { width: 40%; }
.rich .rt-w-45 { width: 45%; }
.rich .rt-w-50 { width: 50%; }
.rich .rt-w-55 { width: 55%; }
.rich .rt-w-60 { width: 60%; }
.rich .rt-w-65 { width: 65%; }
.rich .rt-w-70 { width: 70%; }
.rich .rt-w-75 { width: 75%; }
.rich .rt-w-80 { width: 80%; }
.rich .rt-w-85 { width: 85%; }
.rich .rt-w-90 { width: 90%; }
.rich .rt-w-95 { width: 95%; }
.rich .rt-w-100 { width: 100%; }
/* A page of formatted text sits where every other page's content sits: the
   panel spans the shared measure, edge to edge with the header's logo and
   cart. Pictures, dividers and tables use all of it; a left-aligned
   paragraph or list stops at --prose so a line stays readable. A centered or
   right-aligned paragraph is placed against the panel, like a picture is. */
/* ---- Contact Us (`contact.html`) ------------------------------------------
   The company's details beside a message form, then a few questions. Two
   columns where there is room, one on a phone; every corner is a token. */
.contact__intro { max-width: none; margin-bottom: 1.75rem; line-height: 1.65; }
.contact__side { display: grid; gap: 1rem; min-width: 0; }
.contact__cols { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.contact__head { font-size: 1.125rem; margin: 0 0 .75rem; }
.contact__facts { display: grid; gap: .75rem; margin: 0; }
.contact__facts dt { font-size: .8125rem; font-weight: 600; color: var(--ink-soft); }
.contact__facts dd { margin: .1rem 0 0; overflow-wrap: anywhere; }
.contact__address { font-style: normal; display: grid; }
.contact__pair { align-items: start; }
/* A field for scripts only: off the page, out of the tab order. */
.contact__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__faq { margin-top: 1.5rem; }
.faq { display: grid; gap: .5rem; }
.faq__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.faq__q { cursor: pointer; padding: .85rem 1rem; font-weight: 600; list-style-position: inside; }
.faq__q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-lg); }
.faq__a { padding: 0 1rem 1rem; line-height: 1.6; max-width: none; overflow-wrap: anywhere; }
@media (min-width: 820px) {
  .contact__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .field-row.contact__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.prose-wrap { width: 100%; }
.prose-page .rich { max-width: none; line-height: 1.7; }
.prose-page .rich > p:not(.rt-center):not(.rt-right),
.prose-page .rich > ul, .prose-page .rich > ol { max-width: var(--prose); }
.prose-page { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; }

/* A table on a phone: each row is a card, each cell a label and its value. */
.rtable { width: 100%; border-collapse: collapse; }
.rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rtable tbody, .rtable tr, .rtable td { display: block; }
.rtable tr { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .75rem; margin-bottom: .6rem; background: var(--paper); }
.rtable td {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .22rem 0; overflow-wrap: anywhere; min-width: 0; text-align: right;
}
.rtable td::before { content: attr(data-label); color: var(--ink-soft); font-size: .88rem; flex: none; text-align: left; }
.rtable td > span { min-width: 0; }
.rtable td.rtable__act { justify-content: flex-end; padding-top: .45rem; }
.rtable td.rtable__act:empty { display: none; }
.rtable td.rtable__act::before { content: none; }
.rtable .num { font-variant-numeric: tabular-nums; }

/* -------------------------------------------------- the product grid --- */
.product-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* A homepage block shows two full rows at any width, never a stray card on
   a third: 2 x 2 on a phone, then 3, 4 and 5 across. The rest are not
   drawn at all — not hidden behind a clip, where a keyboard would find them. */
.product-grid--feature > :nth-child(n+5) { display: none; }
.product-card {
  display: flex; flex-direction: column; min-width: 0; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.product-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
/* **Every card's picture sits in the same square** (UI batch, 2026-11-07):
   the frame is a square of the card's width that its picture can never
   grow — the picture is laid over it (`position: absolute`) rather than
   sized by it, so an unusually tall or wide image is fitted inside
   (`object-fit: contain`, never cropped or stretched) and every row of a
   grid keeps one compact height. `flex: none` stops the card's column
   stretching or squeezing the frame. */
.product-card__media {
  position: relative; display: block; flex: none; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--paper); border-bottom: 1px solid var(--paper-sunk); text-decoration: none;
}
.product-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: contain; padding: .5rem;
}
.product-card__noimage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  color: var(--ink-faint); font-size: .85rem; background: var(--paper-soft);
}
.product-card__body { display: flex; flex-direction: column; gap: .3rem; padding: .7rem .75rem .8rem; flex: 1; min-width: 0; }
.product-card__badges { display: flex; flex-wrap: wrap; gap: .25rem; }
.product-card__brand { color: var(--ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.product-card__title {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.3;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__title:hover { color: var(--accent); text-decoration: underline; }
.product-card__price { margin-top: auto; padding-top: .3rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; min-height: 1.6rem; }
.price { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price__from { color: var(--ink-soft); font-size: .82rem; }
/* The customer pricing watermark (Settings › Website › Catalog): the account
   number behind a price. It takes no room, catches no click, and is generated
   from an attribute of an aria-hidden element — so copying a price, finding
   on the page and a screen reader all get the price alone. */
.wm { position: relative; z-index: 0; }
.wm__mark::before {
  content: attr(data-wm); position: absolute; z-index: -1; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg); pointer-events: none; user-select: none;
  color: var(--ink); opacity: .24; font-size: calc(.79em + .56rem); line-height: 1; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: .04em; white-space: nowrap;
}
/* Kept inside its box at an edge: from the price's left where prices start
   there, to its right where they end there. Small print gets a small mark. */
.product-card__price .wm__mark::before, .product__price .wm__mark::before {
  left: 0; transform: translateY(-50%) rotate(-12deg);
}
.num .wm__mark::before, .summary-line__math .wm__mark::before,
.co-mini__v .wm__mark::before, .minicart__total .wm__mark::before, .suggest__price .wm__mark::before {
  left: auto; right: 0; transform: translateY(-50%) rotate(-12deg);
}
.co-mini small .wm__mark::before, .minicart__body .wm__mark::before, .summary-line__unit .wm__mark::before,
.toast .wm__mark::before, .pmatch-summary .wm__mark::before { font-size: 1.12em; }
.price__was { color: var(--ink-soft); font-size: .88rem; font-variant-numeric: tabular-nums; }
.price__signin { font-size: .9rem; font-weight: 600; }
.product-card__stock { font-size: .82rem; font-weight: 600; }
.product-card__stock--low { color: var(--warn); }
.product-card__stock--out { color: var(--err); }
/* UX#12 — the out-of-stock badge on a card: soft red, bold dark red, a small
   warning mark, one line no taller than the stock line it replaces. */
.oos-badge {
  display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; padding: 0 .5rem;
  background: var(--err-bg); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 25%, transparent);
  border-radius: var(--radius-sm); font-size: .8rem; font-weight: 700; line-height: 1.55; white-space: nowrap;
}
.oos-badge .icon { width: 14px; height: 14px; flex: none; }
.product-card__stock--soon { color: var(--ink-soft); font-weight: 600; }
.product-card.is-out .product-card__media img { opacity: .55; }
/* A product held back by the account's expired license: still shown, its
   picture dimmed and its Add switched off, the reason in the error ink. */
.product-card:has([data-license-held]) .product-card__media img { opacity: .55; }
.product-card__note--license { color: var(--err); font-weight: 700; font-size: .85rem; }
.product-card__actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.product-card__actions > * { flex: 1 1 auto; min-width: 0; }

/* ========================================================= homepage === */
.home-banners { margin: 0 0 1.5rem; }
.banner { position: relative; min-width: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-sunk); }
.banner__link { display: block; }
.banner__link:focus-visible { outline-offset: -3px; }
.banner picture { display: block; }
.banner__image { width: 100%; height: auto; }
/* The hero is one shape at every width — the size its place states in the
   editor (1600 × 600) — so an image of another shape is cropped to it rather
   than left to stretch the page. A banner that still carries a phone image
   of its own keeps that image's shape on a phone. */
.banner--hero .banner__image { aspect-ratio: 8 / 3; object-fit: cover; }
@media (max-width: 719px) { .banner--hero.banner--has-phone .banner__image { aspect-ratio: auto; } }
.banners { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
.banners--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.banners--tiles .banner__image { aspect-ratio: 1 / 1; object-fit: cover; }

.carousel { position: relative; }
.carousel__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius-lg); overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.carousel__slide .banner { border-radius: 0; }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.carousel__arrow, .carousel__pause {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px;
  padding: 0 .6rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper);
  color: var(--ink); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.carousel__arrow:hover, .carousel__pause:hover { border-color: var(--accent); }
.carousel__dots { display: inline-flex; gap: .1rem; align-items: center; }
.carousel__dot {
  width: 28px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.carousel__dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 999px; background: var(--line-strong);
}
.carousel__dot[aria-current="true"]::before { background: var(--accent); width: 22px; margin-left: -11px; }

/* The hero's slideshow. Its controls sit ON the picture, so nothing under
   the hero moves when the script shows them. Turning by itself it has the
   dots and nothing else; turned by hand, an arrow each side as well. The
   dots are small to look at and a full 24px to press. */
.carousel--hero .carousel__dots {
  position: absolute; left: 50%; bottom: .5rem; transform: translateX(-50%);
  gap: 0; padding: 0 .3rem; border-radius: 999px; background: rgb(0 0 0 / .36);
  max-width: calc(100% - 1rem);
}
.carousel--hero .carousel__dot { width: 22px; height: 24px; }
.carousel--hero .carousel__dot::before {
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: rgb(255 255 255 / .62);
}
.carousel--hero .carousel__dot:hover::before { background: #fff; }
.carousel--hero .carousel__dot[aria-current="true"]::before { background: #fff; width: 16px; margin-left: -8px; }
.carousel--hero .carousel__dot:focus-visible { outline: 2px solid #fff; outline-offset: -3px; border-radius: 999px; }
.carousel--hero .carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); min-width: 38px; min-height: 38px; padding: 0;
  border-color: transparent; background: rgb(255 255 255 / .9); color: rgb(0 0 0 / .82);
  box-shadow: 0 1px 4px rgb(0 0 0 / .22);
}
.carousel--hero .carousel__arrow:hover { background: #fff; border-color: transparent; }
.carousel--hero .carousel__arrow--prev { left: .5rem; }
.carousel--hero .carousel__arrow--next { right: .5rem; }
/* Dragged with a mouse: the row follows the pointer, so its snapping and
   its glide wait until the button comes up. */
.carousel__track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.carousel__track.is-dragging * { pointer-events: none; }

.home-block { margin: 0 0 1.75rem; }
/* **A thin line between two sections that both drew** (Website Phase 4,
   section dividers) — and it is this one rule: a section that directly
   follows another section. So there is none above the first (it follows
   the banners or the welcome panel), none after the last, and none for a
   block that is off or has nothing in it, because the server never builds
   one (`pages.py:_blocks`) and the template draws nothing between two. It
   is as wide as the section — so it follows Contained / Full width exactly
   as the sections do — with the same space above it (the section's margin)
   as below (this padding).
   Its color is the page's own text color, thinned: the sections sit on the
   page background, which a company chooses (Settings › Website ›
   Appearance), and `--line` is a fixed gray that disappears on a gray page.
   `--ink` is already drawn light or dark for that background, so a sixth of
   it is a quiet line on any of them. The first declaration is for a
   browser without `color-mix`. */
.home-block + .home-block {
  border-top: 1px solid var(--line-strong);
  border-top-color: color-mix(in srgb, var(--ink) 16%, transparent);
  padding-top: 1.75rem;
}
/* Top 10 Best Sellers. Below the desktop width the two pages are one grid —
   the slides and their lists dissolve into it — and there is nothing to
   page. From the desktop width up it is the carousel: five across, a page
   at a time, one dot a page. */
.bestsellers .carousel__track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; overflow: visible; padding-top: .5rem; }
.bestsellers .carousel__slide, .bestsellers__page { display: contents; }
.bestsellers .carousel__controls { display: none; }
.bestsellers__item { position: relative; display: flex; min-width: 0; list-style: none; }
.bestsellers__item > .product-card { flex: 1 1 auto; min-width: 0; }
/* The rank: a round counter on the card's corner (round stays round under
   square corners, like the cart's count). */
.bestsellers__rank {
  position: absolute; top: -.5rem; left: -.35rem; z-index: 2; display: grid; place-items: center;
  min-width: 2rem; height: 2rem; padding: 0 .35rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 1rem; line-height: 1;
  box-shadow: var(--shadow); border: 2px solid var(--paper);
}
.link-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .85rem .9rem; min-width: 0; border-top: 3px solid var(--accent); }
.link-tile__name { display: block; font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.link-tile__name:hover { color: var(--accent); text-decoration: underline; }
.link-tile__more { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .1rem; font-size: .9rem; }
.link-tile__more a { display: inline-block; padding: .2rem 0; color: var(--ink-soft); text-decoration: none; overflow-wrap: anywhere; }
.link-tile__more a:hover { color: var(--accent); text-decoration: underline; }
.brand-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brand-tiles > li { min-width: 0; }
.brand-tile {
  display: flex; align-items: center; justify-content: center; min-height: 84px; padding: .6rem .75rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink); text-align: center; height: 100%;
}
.brand-tile:hover { border-color: var(--accent); color: var(--accent); }
.brand-tile__logo { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.brand-tile__name { font-weight: 700; overflow-wrap: anywhere; }

/* ======================================================== My Account === */
/* A menu beside the page on a wide screen, a collapsible menu above it on a
   phone. */
.acct { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
/* The content column is a container: what is inside it is laid out by the
   column's own width, which the menu beside it makes 230px narrower than any
   viewport breakpoint can see (Website Phase 4, P4-18). */
.acct-body { min-width: 0; container: acct / inline-size; }
.acct-for { margin: -.5rem 0 1rem; overflow-wrap: anywhere; }
.acct-body > .card, .acct-body > .cards, .acct-body > .figures { margin-bottom: 1rem; }
.acct-nav { min-width: 0; }
.acct-nav__toggle {
  width: 100%; min-height: 44px; padding: 0 1rem; font: inherit; font-weight: 600;
  text-align: left; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.acct-nav__toggle::after { content: "▾"; float: right; color: var(--ink-soft); }
.acct-nav__toggle[aria-expanded="true"]::after { content: "▴"; }
.acct-nav__list {
  display: none; list-style: none; margin: .4rem 0 0; padding: .3rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.acct-nav__list.is-open { display: block; }
.acct-nav__link {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 .8rem;
  border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600;
}
.acct-nav__link:hover { background: var(--paper-soft); color: var(--ink); }
.acct-nav__link.is-current { background: var(--accent); color: var(--accent-ink); }
.acct-nav__out { margin: 0; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }
.acct-nav__button { border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; text-align: left; color: var(--ink-soft); }
/* A list's one row of controls (Website Phase 4): the shop's listing bar
   worn by My Account — the count on the left, Show and a search by number
   on the right. The search box takes the select's own look. */
.acct-find { margin: 0 0 .9rem; }
.acct-find .listing-bar__sort > span { color: var(--ink-soft); font-size: .92rem; white-space: nowrap; }
.acct-find input[type="search"] {
  min-height: 40px; width: 100%; min-width: 0; padding: 0 .6rem; font: inherit; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper);
}
.acct-find__q { flex: 1 1 200px; max-width: 320px; }
.acct-find input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ---- My Account's tables (Website Phase 4, P4-18). Scoped to My Account:
   the cart's and the product page's tables keep the shared `.rtable` look.
   A date and a document's number (`.keep`) never wrap; a cell's second line
   — an order's PO number, what a status means — is quieter than its first. */
.acct-body .rtable .date, .acct-body .rtable .keep { white-space: nowrap; }
.acct-body .rtable .rtable__sub { font-size: .9rem; }
.acct-body .rtable + .hint, .acct-body .pager + .hint, .acct-body .card__actions + .hint { margin-top: .9rem; }
@media (min-width: 720px) {
  /* Readable headers: sentence case at close to the body's size, not small
     capitals; a little more room in every cell. */
  .acct-body .rtable th { font-size: .9rem; text-transform: none; letter-spacing: 0; font-weight: 700; }
  .acct-body .rtable th, .acct-body .rtable td { padding: .65rem .7rem; }
  /* The second line sits under the first instead of wrapping beside it. */
  .acct-body .rtable .rtable__sub { display: block; margin-top: .15rem; }
}
/* Four figures are two and two, never three and one. */
@container acct (min-width: 480px) and (max-width: 799px) {
  .acct-body > .figures:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* A table that ends in a named document link (*Payment receipt PMT-79*)
   needs about 980px to read across without crushing its columns. Under
   that, each row is the phone's card — `.rtable`'s own first rules, said
   again here because they are undone by a viewport breakpoint and this is
   decided by the column. */
@container acct (max-width: 979px) {
  .acct-body .rtable--wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); display: block; }
  .acct-body .rtable--wide tbody, .acct-body .rtable--wide tr { display: block; }
  .acct-body .rtable--wide tr { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .75rem; margin-bottom: .6rem; background: var(--paper); }
  .acct-body .rtable--wide td, .acct-body .rtable--wide td.num {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    padding: .22rem 0; border-bottom: 0; text-align: right; white-space: normal;
  }
  .acct-body .rtable--wide td::before { content: attr(data-label); }
  .acct-body .rtable--wide td.rtable__act { justify-content: flex-end; padding-top: .45rem; }
  .acct-body .rtable--wide td.rtable__act:empty { display: none; }
  .acct-body .rtable--wide td.rtable__act::before { content: none; }
}
/* Between a phone and a full table (a tablet, a small laptop beside the
   menu) a card has room for three facts across — each a small label over its
   value — instead of one long line per fact with the label far from it. */
@container acct (min-width: 560px) and (max-width: 979px) {
  .acct-body .rtable--wide tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem 1.25rem; padding: .7rem .9rem; }
  .acct-body .rtable--wide td, .acct-body .rtable--wide td.num { display: block; padding: 0; text-align: left; }
  .acct-body .rtable--wide td::before { display: block; margin-bottom: .1rem; }
  .acct-body .rtable--wide td.rtable__act { display: flex; grid-column: 1 / -1; padding-top: 0; }
}
/* A card alone in a row of two takes the row, like every other panel. */
.acct-body > .cards > :only-child { grid-column: 1 / -1; }

/* ============================================================ tablet === */
@media (min-width: 720px) {
  h1 { font-size: 1.9rem; }
  :root { --gutter: 24px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search__word { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .tool { padding: 0 .6rem; }
  .tool__text { position: static; width: auto; height: auto; overflow: visible; clip: auto; min-width: 0; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles--quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .field-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .auth__card { padding: 2.25rem 2rem; }
  .site-foot__col { flex: 1 1 150px; }
  .site-foot__col--company { flex: 1.6 1 280px; }
  .pagination__pages { display: inline-flex; }
  .pagination__where { display: none; }
  .steps__step { flex-direction: row; justify-content: center; font-size: .92rem; padding: .7rem .5rem; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .product-grid--feature > :nth-child(n+5) { display: flex; }
  .product-grid--feature > :nth-child(n+7) { display: none; }
  .bestsellers .carousel__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prose-page { padding: 1.75rem 2rem; }
  .auth__logo--medium { max-height: 88px; }
  .auth__logo--large { max-height: 116px; }
  .auth__logo--xlarge { max-height: 148px; }
  .link-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* The banner layouts. A layout with every slot filled takes its own grid;
     one with a slot empty shares the row evenly (.banners--loose). */
  .banners { gap: 1rem; }
  .banners--loose { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
  .banners--tiles, .banners--tiles.banners--loose { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Each slot keeps the shape its layout gives it (webcontent.LAYOUTS), and
     the image fills it — so two banners side by side are the same height
     whatever was uploaded. */
  .banners--full .banner__link, .banners--full picture { display: block; height: 100%; }
  .banners--full .banner__image { height: 100%; object-fit: cover; }
  .banners--two_equal.banners--full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banners--two_equal.banners--full .banner { aspect-ratio: 800 / 500; }
  .banners--one_two.banners--full { grid-template-columns: minmax(0, 1060fr) minmax(0, 520fr); }
  .banners--one_two.banners--full .banner--large { grid-row: 1 / span 2; }
  .banners--one_two.banners--full .banner--large .banner__image { position: absolute; inset: 0; }
  .banners--one_two.banners--full .banner--small_1,
  .banners--one_two.banners--full .banner--small_2 { aspect-ratio: 520 / 310; }
  .banners--two_three.banners--full { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .banners--two_three.banners--full .banner { grid-column: span 2; aspect-ratio: 520 / 300; }
  .banners--two_three.banners--full .banner--large_1,
  .banners--two_three.banners--full .banner--large_2 { grid-column: span 3; aspect-ratio: 790 / 440; }
  /* The table is a table again. */
  .rtable thead { position: static; width: auto; height: auto; clip: auto; display: table-header-group; }
  .rtable tbody { display: table-row-group; }
  .rtable tr { display: table-row; border: 0; border-radius: 0; padding: 0; margin: 0; background: none; }
  .rtable th, .rtable td {
    display: table-cell; padding: .6rem .6rem; border-bottom: 1px solid var(--line);
    text-align: left; vertical-align: top;
  }
  .rtable th { font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; white-space: nowrap; }
  .rtable td::before { content: none; }
  .rtable th.num, .rtable td.num { text-align: right; white-space: nowrap; }
  .rtable td.rtable__act { text-align: right; white-space: nowrap; padding-top: .45rem; }
  .rtable td.rtable__act:empty { display: table-cell; }
  .rtable tbody tr:last-child td { border-bottom: 0; }
}

/* =========================================================== desktop === */
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--sidebar { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 1.5rem; }
  .site-head__row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand search tools"; gap: 1.25rem; padding-top: .85rem; padding-bottom: .85rem; }
  .brand__logo { max-height: 52px; max-width: 220px; }
  /* Best sellers: the carousel proper — five across, a page at a time. The
     track keeps room above and beside the cards for the rank counters. */
  .bestsellers .carousel__track { display: flex; gap: 0; overflow-x: auto; padding-top: .6rem; border-radius: 0; }
  .bestsellers .carousel__slide { display: block; flex: 0 0 100%; min-width: 0; }
  .bestsellers__page { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; margin: 0; padding: 0 .1rem .3rem .4rem; }
  .bestsellers .carousel__controls { display: flex; }
  /* A larger preset may be wider too — but only as far as the window can
     spare, so the search box and the tools beside it always keep their room. */
  .brand__logo--medium { max-height: 68px; max-width: min(300px, 22vw); }
  .brand__logo--large { max-height: 88px; max-width: min(380px, 25vw); }
  .brand__logo--xlarge { max-height: 112px; max-width: min(460px, 28vw); }
  /* A page of text is set a little larger where there is room to read it. */
  .prose-page .rich { font-size: 1.0625rem; }
  .brand__name { font-size: 1.3rem; max-width: 300px; }
  .search { max-width: 640px; width: 100%; justify-self: center; }
  .tool--phone { display: inline-flex; }
  .menu-toggle, .nav-open { display: none; }
  /* The menu is a bar; a group's entries open in a panel across its width. */
  .main-nav, .nav-open:checked ~ .main-nav { display: block; background: var(--nav-bg); border-top: 0; }
  .main-nav__list { position: relative; display: flex; flex-wrap: wrap; padding: 0 calc(var(--gutter) - .9rem); }
  .main-nav__item { border-bottom: 0; }
  .main-nav__item--account { display: none; }
  .main-nav__top { width: auto; min-height: 46px; padding: 0 .9rem; color: var(--nav-ink); gap: .3rem; white-space: nowrap; }
  a.main-nav__top:hover, summary.main-nav__top:hover, .main-nav__top.is-current,
  .main-nav__group[open] > summary { background: color-mix(in srgb, var(--nav-ink) 16%, transparent); color: var(--nav-ink); }
  .main-nav__top:focus-visible { outline-color: var(--nav-ink); outline-offset: -3px; }
  .main-nav__top .icon { width: 16px; height: 16px; }
  .main-nav__panel {
    position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; z-index: 30;
    padding: 1rem 1.25rem 1.25rem; background: var(--paper); color: var(--ink);
    border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lift); max-height: 70vh; overflow-y: auto;
  }
  .main-nav__all { padding: 0 0 .6rem; }
  .main-nav__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .1rem 1.5rem; }
  .main-nav__panel--mega .main-nav__cols { gap: 1rem 1.5rem; }
  .main-nav__sub, .main-nav__leaf { padding: .3rem 0; }
  .main-nav__sub.is-heading { padding-top: 0; }
  .main-nav__leaves { padding-left: 0; }
  .main-nav__leaves--deep { padding-left: .75rem; }
  /* The compact dropdown: a narrow vertical list under its own bar item; an
     entry with entries of its own opens them beside it. `is-end`, `is-flip`
     and the shift are `storefront.js`'s — they keep both inside the window —
     and `is-long` is a list taller than the window, which scrolls and shows
     its entries indented instead. */
  .main-nav__item--compact { position: relative; }
  .main-nav__item--compact .main-nav__panel {
    left: 0; right: auto; width: 250px; padding: .35rem 0; max-height: none; overflow: visible;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .main-nav__item--compact.is-end .main-nav__panel { left: auto; right: 0; }
  .main-nav__item--compact .main-nav__all { display: block; padding: .5rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; }
  .main-nav__item--compact .main-nav__cols { display: block; }
  .main-nav__item--compact .main-nav__col { position: relative; display: flex; align-items: stretch; padding: 0; }
  .main-nav__item--compact .main-nav__sub { flex: 1; min-width: 0; padding: .5rem 1rem; }
  .main-nav__item--compact .main-nav__leaf { padding: .45rem 1rem; }
  .main-nav__item--compact .main-nav__col:hover, .main-nav__item--compact .main-nav__col.is-open,
  .main-nav__item--compact a.main-nav__leaf:hover, .main-nav__item--compact .main-nav__all:hover { background: var(--paper-sunk); }
  .main-nav__item--compact .main-nav__more {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; padding: 0;
    border: 0; background: transparent; color: inherit; cursor: pointer;
  }
  .main-nav__item--compact .main-nav__more .icon { width: 16px; height: 16px; transform: rotate(-90deg); }
  .main-nav__item--compact.is-flip .main-nav__more .icon { transform: rotate(90deg); }
  .main-nav__item--compact .main-nav__leaves {
    display: none; position: absolute; left: 100%; top: var(--nav-shift, 0px); z-index: 31; width: 240px; padding: .35rem 0;
    max-height: 80vh; overflow-y: auto; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-lift);
  }
  .main-nav__item--compact.is-flip .main-nav__leaves { left: auto; right: 100%; }
  .main-nav__item--compact .main-nav__col.is-open > .main-nav__leaves { display: block; }
  .main-nav__item--compact.is-long .main-nav__panel { max-height: 75vh; overflow-y: auto; }
  .main-nav__item--compact.is-long .main-nav__col { display: block; }
  .main-nav__item--compact.is-long .main-nav__more { display: none; }
  .main-nav__item--compact.is-long .main-nav__leaves {
    display: block; position: static; width: auto; max-height: none; padding: 0 0 .25rem .75rem;
    border: 0; box-shadow: none;
  }
  .acct { grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 1.75rem; }
  .acct-nav__toggle { display: none; }
  .acct-nav__list { display: block; margin: 0; position: sticky; top: 1rem; }
  .tiles--quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid--feature > :nth-child(n+7) { display: flex; }
  .product-grid--feature > :nth-child(n+9) { display: none; }
  .link-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero--compact { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem; }
  .hero--compact h1, .hero--compact p { margin: 0; }
  .hero--compact .hero__actions { margin-left: auto; }
}

@media (min-width: 1200px) {
  :root { --gutter: 32px; }
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .product-grid--feature > :nth-child(n+9) { display: flex; }
  .product-grid--feature > :nth-child(n+11) { display: none; }
}

/* Room for WhatsApp's words beside its mark, without squeezing the search. */
@media (min-width: 1360px) {
  .tool--whatsapp .tool__text { display: block; }
}
/* On the narrowest one-row header the WhatsApp mark takes the room the
   phone number's words had: the phone stays, as its icon (still a tap to
   call), so the search box keeps a usable width. A header with no WhatsApp
   mark is exactly as it was. */
@media (min-width: 980px) and (max-width: 1099px) {
  .tools:has(.tool--whatsapp) .tool--phone .tool__text {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .carousel__track { scroll-behavior: smooth; }
  .carousel--hero .carousel__dot::before { transition: width .2s ease, margin .2s ease, background-color .2s ease; }
}

@media print {
  .site-head, .site-foot, .announce, .staff-banner, .skip-link { display: none; }
  body { background: #fff; }
}

/* ===================================================== catalog pages === */
/* The shop, a category, a brand, the standing lists, a collection, search
   and the product page (templates/catalog/). Written last and whole, with
   its own width steps, so the rules above are not reordered. */

/* A product's own badge tones (Product > Web) and the state-compliance
   badge, in the system's colors. */
.badge--success, .badge--good { background: var(--ok-bg); color: var(--ok); }
.badge--danger { background: var(--err-bg); color: var(--err); }
.badge--amber { background: var(--warn-bg); color: var(--warn); }
.badge--neutral { background: var(--muted-bg); color: var(--ink-soft); }

/* ---- the header search's suggestions (built by the script) */
.search { position: relative; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 45; list-style: none;
  margin: 0; padding: .3rem; background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow-lift); max-height: 70vh; overflow-y: auto;
}
.suggest__item { border-radius: var(--radius-md); }
.suggest__item.is-active, .suggest__item:hover { background: var(--accent-soft); }
.suggest__link {
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
  min-height: 44px; padding: .6rem .6rem; color: var(--ink); text-decoration: none;
}
.suggest__link:hover { color: var(--ink); }
.suggest__label { min-width: 0; overflow-wrap: anywhere; }
.suggest__kind { flex: none; color: var(--ink-soft); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }

/* UX#9 — search suggestions: a brand or a category wears a rectangular
   label; a product row is its picture, its name and the price the server
   says this viewer sees, one compact aligned line. */
.suggest__kind--brand, .suggest__kind--category {
  align-self: center; padding: .12rem .45rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--paper-soft); font-weight: 700; font-size: .7rem; line-height: 1.3;
}
.suggest__kind--brand { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.suggest__link--product { align-items: center; justify-content: flex-start; min-height: 48px; padding: .35rem .6rem; }
.suggest__thumb {
  flex: none; width: 36px; height: 36px; object-fit: contain; border-radius: var(--radius-xs);
  background: var(--paper); border: 1px solid var(--line);
}
.suggest__thumb--none { display: block; background: var(--paper-sunk); }
.suggest__link--product .suggest__label {
  flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3;
}
.suggest__price { flex: none; margin-left: auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.suggest__from { font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
.suggest__was { font-weight: 400; font-size: .8rem; color: var(--ink-soft); }

/* UX#15 — the scan button sits inside the search field, at its right edge:
   the field's own border runs round it, and the Search button follows. */
.search__scan {
  display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 44px; min-height: 46px;
  padding: 0 .55rem; border: 2px solid var(--accent); border-left: 0; border-right: 0;
  background: var(--paper); color: var(--ink-soft); cursor: pointer;
}
.search__scan:hover, .search__scan:focus-visible { color: var(--accent); }
.search__scan[hidden] { display: none; }
dialog.scanner {
  width: min(480px, calc(100vw - 1rem)); max-height: calc(100dvh - 1rem); padding: 0; border: 0;
  border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lift); overflow: auto;
}
dialog.scanner::backdrop { background: rgba(16, 24, 40, .6); }
.scanner__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .6rem .6rem 1rem; }
.scanner__title { margin: 0; font-size: 1.1rem; }
.scanner__close {
  min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--ink-soft);
  font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: var(--radius-md);
}
.scanner__close:hover { background: var(--accent-soft); color: var(--ink); }
.scanner__view { position: relative; aspect-ratio: 4 / 3; background: #000; overflow: hidden; }
.scanner__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.scanner__frame {
  position: absolute; left: 12%; right: 12%; top: 30%; bottom: 30%; pointer-events: none;
  border: 3px solid rgba(255, 255, 255, .9); border-radius: var(--radius-md);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35);
}
.scanner__status { margin: 0; padding: .75rem 1rem; min-height: 3.2em; font-weight: 600; }
.scanner__status--ok { color: var(--ok); background: var(--ok-bg); }
.scanner__status--error { color: var(--err); background: var(--err-bg); }
.scanner__foot { padding: 0 1rem 1rem; }

/* ---- a message from the script: added to the cart, or could not be.
   Fixed to the foot of the window — out of the page's flow, so nothing moves
   when one appears — and never over the header: the cart's own control
   stays in reach. Centered on a narrow screen; in the left corner on a wide
   one, away from the column a product is bought from. Where a family's bar
   of actions is pinned to the foot under it, the script lifts it clear
   (`bottom`, catalog.js). */
.toasts {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; gap: .5rem;
  justify-items: center; padding: 0 var(--gutter) 1rem; pointer-events: none;
}
.toast { margin: 0; width: 100%; max-width: 520px; box-shadow: var(--shadow-lift); border: 1px solid currentColor; pointer-events: auto; }
@media (min-width: 900px) { .toasts { justify-items: start; } }

/* Added to the cart: the picture, what was added and what the cart comes
   to, and the way to the cart. */
.toast--cart {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem .75rem; align-items: start;
  max-width: 440px; padding: .75rem .85rem; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--radius);
}
.toast__thumb { width: 56px; height: 56px; object-fit: contain; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.toast__body { display: grid; gap: .1rem; min-width: 0; font-size: .92rem; line-height: 1.4; grid-column: 2; }
.toast--cart > .toast__body:first-child { grid-column: 1 / span 2; }
.toast__title { color: var(--ok); }
.toast__name { font-weight: 600; overflow-wrap: anywhere; }
.toast__line { color: var(--ink-soft); }
.toast__list { margin: .1rem 0; padding-left: 1.1rem; overflow-wrap: anywhere; }
.toast__rest { list-style: none; color: var(--ink-soft); }
.toast__subtotal { margin-top: .25rem; }
.toast__actions { grid-column: 3; display: grid; gap: .5rem; justify-items: end; align-content: space-between; height: 100%; }
.toast__close {
  order: -1; width: 32px; height: 32px; margin: -.3rem -.35rem 0 0; padding: 0; border: 0; background: none;
  border-radius: var(--radius-sm); color: var(--ink-soft); font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.toast__close:hover { color: var(--ink); background: var(--paper-soft); }
.toast__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---- a listing page */
.listing-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 0 0 1rem; }
.listing-head__text { flex: 1 1 260px; min-width: 0; }
.listing-head__text > :last-child { margin-bottom: 0; }
.listing-head__logo { flex: none; width: auto; max-width: 160px; max-height: 64px; object-fit: contain; }
.collection-hero { margin: 0 0 1rem; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-sunk); }
.collection-hero img { width: 100%; height: auto; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9rem; max-width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

.catalog { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.catalog__main { min-width: 0; }
/* The filters' switch: a real checkbox, off screen, still reachable by keyboard. */
.filters-open { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filters-toggle { cursor: pointer; user-select: none; }
.catalog:has(.filters-open:focus-visible) .filters-toggle { outline: 2px solid var(--accent); outline-offset: 2px; }
.catalog:has(.filters-open:checked) .filters-toggle { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filters {
  display: none; min-width: 0; padding: 1rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.catalog:has(.filters-open:checked) .filters { display: block; }
.filters__group { margin: 0 0 1.1rem; padding: 0; border: 0; min-width: 0; }
.filters__title {
  display: block; margin: 0 0 .4rem; padding: 0; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft);
}
.filters .field label.filters__title { font-size: .8rem; font-weight: 700; }
.filters__tree { list-style: none; margin: 0; padding: 0; }
.filters__tree .filters__tree { padding-left: .9rem; border-left: 2px solid var(--paper-sunk); }
.filters__link { display: block; padding: .45rem 0; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.filters__link:hover { color: var(--accent); text-decoration: underline; }
.filters__link.is-open { font-weight: 700; }
.filters__link[aria-current] { color: var(--accent); font-weight: 700; }
.filters__form { margin: 0; }
.filters__check { min-height: 40px; padding: .4rem 0; }
.filters__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters > :last-child, .filters__form > :last-child { margin-bottom: 0; }

.listing-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 .9rem; }
.listing-bar__count { margin-right: auto; color: var(--ink-soft); font-size: .95rem; }
.listing-bar__sort { display: flex; align-items: center; gap: .5rem; margin: 0; min-width: 0; }
.listing-bar__sort label { color: var(--ink-soft); font-size: .92rem; white-space: nowrap; }
.listing-bar__sort select {
  min-height: 40px; min-width: 0; max-width: 100%; padding: 0 .6rem; font: inherit; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper);
}

/* ---- THE quantity control */
/* A grid, so the row of − box + never wraps and the note sits under it. */
.qty-step { display: inline-grid; grid-template-columns: auto auto auto; justify-content: start; align-items: stretch; min-width: 0; max-width: 100%; }
.qty-step__btn {
  flex: none; width: var(--qty-btn); min-height: var(--qty-h); padding: 0; border: 1px solid var(--line-strong);
  background: var(--paper-soft); color: var(--ink); font: inherit; font-size: 1.05rem; font-weight: 700;
  line-height: 1; cursor: pointer;
}
.qty-step__btn:hover { background: var(--accent-soft); border-color: var(--accent); }
/* Both ends follow the corner style (Rounded / Square: the radius token),
   the − on the left and the + on the right — named by what they are, since
   the note that follows them means the + is not the last child. */
.qty-step__btn[data-qty-down] { border-radius: var(--radius) 0 0 var(--radius); }
.qty-step__btn[data-qty-up] { border-radius: 0 var(--radius) var(--radius) 0; }
/* With the buttons shown, the field sits between them and its own arrows go. */
.qty-step.is-stepped .qty { border-radius: 0; border-left: 0; border-right: 0; -moz-appearance: textfield; appearance: textfield; }
.qty-step.is-stepped .qty::-webkit-inner-spin-button,
.qty-step.is-stepped .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* A wrong quantity is marked; a grid row left empty is not wrong. */
.qty:invalid:not(:placeholder-shown) { border-color: var(--err); }
/* + at the ceiling and − at the floor are off, and look it (qty.js; the
   ceiling is the server's — cartquote.quantity_window): the ordinary
   disabled look — quieter ink on a sunk surface, the plain pointer — and the
   same outline as the rest of the control, so its two ends still match. */
.qty-step__btn:disabled { background: var(--paper-sunk); color: var(--ink-faint); cursor: default; }
.qty-step__btn:disabled:hover { background: var(--paper-sunk); border-color: var(--line-strong); }
.qty:disabled { background: var(--paper-sunk); color: var(--ink-faint); cursor: default; opacity: 1; }
/* The one sentence when more is typed than can be ordered: under the box,
   wrapping within whatever holds the control. */
.qty-step__note {
  grid-column: 1 / -1; width: 0; min-width: 100%; margin-top: .3rem; color: var(--err); font-size: .82rem;
  font-weight: 600; line-height: 1.3; text-align: left; white-space: normal; overflow-wrap: break-word;
}
.qty-step__note[hidden] { display: none; }
.qty-step__note--off { color: var(--ink-soft); }
/* "15 in cart": the cart already holds all that may be ordered. Small, red,
   centered under the control it explains, on one line. */
.qty-step__note--held { text-align: center; white-space: nowrap; overflow-wrap: normal; }
/* Where nothing more of an item can be added: the reason, in the box's place. */
.qty-blocked { color: var(--ink-soft); font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.buy__blocked { margin: .25rem 0 0; }

/* ---- a card's quantity and Add to cart */
.card-add { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; min-width: 0; }
.card-add .qty-step { flex: none; }
.card-add > .btn { flex: 1 1 6.5rem; min-width: 0; }
.product-card__note { color: var(--ink-soft); font-size: .88rem; }

/* ---- the product page */
.product { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); margin: 0 0 1.5rem; }
.product__gallery { min-width: 0; }
/* The main picture is drawn as large as its box allows, whole and in its
   own proportions (`contain` — never cropped, never stretched). The box is
   square and as wide as its column: it used to stop at 560px tall inside a
   620px column and hold the picture .75rem off every edge, which left a
   band of white a third of the way round a square photograph. White that is
   in the photograph's own pixels stays — that is the photograph. */
.product__image {
  position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1;
  width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
/* Laid over the square, never sizing it — the card's rule, for the same reason. */
.product__image img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: .25rem; }
.product__image.is-out img { opacity: .6; }
/* Settings › Website › Catalog › Product images › Fill image area: the
   picture covers the whole frame, keeping its proportions; what overhangs is
   cropped. Never stretched, and the file itself is untouched. */
.product__image--fill img { object-fit: cover; padding: 0; }
.product__thumbs { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
/* "3 / 8", on the picture — where the thumbnails are one strip (a phone). */
.product__count { display: none; }
@media (max-width: 719px) {
  .product__image:has(.product__count) { touch-action: pan-y pinch-zoom; }
  .product__count {
    display: block; position: absolute; right: .6rem; bottom: .6rem; padding: .1rem .5rem; border-radius: 999px;
    background: color-mix(in srgb, var(--ink) 70%, transparent); color: var(--paper); font-size: .8rem;
    font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none;
  }
  .product__thumbs {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: .25rem;
    scrollbar-width: none;
  }
  .product__thumbs::-webkit-scrollbar { display: none; }
  .product__thumbs > li { flex: none; }
}
.product__thumb { display: block; width: 64px; height: 64px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product__thumb img { width: 100%; height: 100%; object-fit: contain; padding: .2rem; }
.product__thumb:hover, .product__thumb.is-current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.product__info { display: grid; gap: .8rem; align-content: start; min-width: 0; }
.product__info > * { margin-top: 0; margin-bottom: 0; min-width: 0; }
.product__info > .btn { justify-self: start; }
/* A website category's banner on its products' pages. Its default look is
   the website's own "information" surface; a category's own two colors
   arrive as `.catbanner--c<id>` (`/category-banner.css`). The corner is the
   radius token, so Square squares it; it reads the same in Plain and Card. */
.catbanner { padding: .75rem 1rem; border: 1px solid color-mix(in srgb, var(--info) 22%, var(--line)); border-radius: var(--radius); background: var(--info-bg); color: var(--ink); overflow-wrap: anywhere; }
.catbanner .rich { max-width: none; }
.catbanner .rich > :first-child { margin-top: 0; }
.catbanner .rich p { margin: 0 0 .5rem; }
.catbanner .rich > :last-child { margin-bottom: 0; }
.catbanner a { color: inherit; text-decoration: underline; font-weight: 600; }
/* Settings › Website › Catalog › Product details panel: Card. The same
   column, framed — a white panel with a soft shadow, simple product and
   family alike. Plain is the column as it is, on the page. */
.product__info--card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1.1rem;
}
@media (min-width: 720px) { .product__info--card { padding: 1.5rem; } }
/* Inside the card the options table and a sale callout would be white on
   white: every other row takes the faintest tint of the page's own ink, and
   the callout the "ok" surface the website already uses. Restrained on
   purpose — a hint of a stripe, never zebra. Plain is untouched. */
.product__info--card .vgrid tbody tr:nth-child(even) { background: color-mix(in srgb, var(--ink) 3.5%, var(--paper)); }
.product__info--card .callout--ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 28%, var(--line)); border-left-color: var(--ok); }
.product__info--card .restock-many { background: color-mix(in srgb, var(--ink) 2.5%, var(--paper)); }
.product__badges { display: flex; flex-wrap: wrap; gap: .3rem; }
.product__title { font-size: 1.45rem; }
.product__facts { font-size: .95rem; }
/* After Add to cart (C15): secondary, set off by a quiet rule. */
.product__info > .product__facts { padding-top: .8rem; border-top: 1px solid var(--line); }
.product__path { display: block; }
/* UX#16 — the one category trail: a single line, cut short with an
   ellipsis where it does not fit (the whole trail is its tooltip). */
.product__path--one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; }
/* C16 — the product page's own price: larger, in the store's accent. On a
   plain column it is the page's link color (the accent, or white on a dark
   page — `theme_css`); inside the white card it is the accent itself. The
   struck-through original keeps its own quiet ink beside it. */
.product__price .price { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.35rem); line-height: 1.15; }
.product__price .price--accent { color: var(--page-link, var(--accent)); }
.product__info--card .product__price .price--accent { color: var(--accent); }
.product__price .price__was { font-size: 1.05rem; }
.product__rule { color: var(--ink-soft); font-weight: 600; }
.product__deals { margin: 0; padding-left: 1.2rem; }
.product__deals--quiet { color: var(--ink-soft); font-size: .95rem; }
/* The final-sale notice (pre-go-live, 2026-11-18): amber, a small tag, the
   owner's words. The block form sits with the product's notices; the compact
   form rides on an option row, a cart line and a checkout line. */
.final-sale { display: flex; align-items: flex-start; gap: .5rem; }
.final-sale .icon { flex: none; width: 1.1em; height: 1.1em; margin-top: .1em; }
/* The short line (final enhancements): a tag and colored words, no fill —
   repeated down a cart it must not shout. Its color is the banner's when that
   reads on the page (`/theme.css`), else this dark amber. */
.final-sale--compact { display: inline-flex; align-items: flex-start; gap: .3rem; font-size: .85rem;
                       line-height: 1.35; color: var(--final-sale-short); font-weight: 600; }
/* The owner's amber behind every form of the notice, dark ink on it. */
.notice.final-sale { background: var(--final-sale-bg); border: 1px solid var(--final-sale-edge); color: var(--final-sale-ink); }
.notice.final-sale .icon, .final-sale--compact .icon { color: inherit; }
.final-sale__body { min-width: 0; flex: 1; }
.final-sale__body > :first-child { margin-top: 0; }
.final-sale__body > :last-child { margin-bottom: 0; }
.final-sale__body a { color: inherit; text-decoration: underline; }
.final-sale--compact .icon { width: 1em; height: 1em; margin-top: .15em; }
/* A simple product's buy box (C15): the quantity and Add to cart side by
   side on a wide screen, the button the prominent one; on a narrow screen
   stacked, the button across the column. */
/* PR #117 final corrections: the label, the box and the button share one
   center line — the button is lifted by half the difference between its
   height and the box's, so a note under the box (*6 in cart*) never pushes
   it down — and the button takes the rest of the row on a wide screen. */
.buy { --buy-h: max(48px, var(--qty-h)); display: flex; flex-wrap: wrap; align-items: flex-start;
       gap: .75rem 1.25rem; margin: 0; }
/* The label lines up with the box itself, whatever note sits under it. */
.buy__qty { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem .75rem; flex: none; }
.buy__label { font-weight: 600; line-height: var(--qty-h); }
.buy__add { flex: 1 1 14rem; min-width: min(100%, 14rem); min-height: var(--buy-h);
            margin-top: calc((var(--qty-h) - var(--buy-h)) / 2);
            padding-inline: 1.75rem; font-size: 1.02rem; }
@media (max-width: 560px) {
  .buy { flex-direction: column; align-items: stretch; }
  .buy__add { width: 100%; margin-top: 0; flex: none; }
}
.product__section { margin: 0 0 1rem; }
/* State compliance: every state by its full name, in as many columns as
   the width allows — never one long list. */
.state-list { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 2rem; }
.state-list li { break-inside: avoid; padding: .18rem 0; overflow-wrap: anywhere; }
.state-list__mark { color: var(--ok); font-weight: 600; white-space: nowrap; }
.state-list__option { font-size: 1rem; margin: 1rem 0 .35rem; }
.product__description { max-width: var(--prose); }
/* The Description card (2026-11-19): the passage takes the card, as a
   website page's does (`.prose-page`) — a 75ch cap left an imported
   description in the left third of a full-width card. Running text still
   stops at --prose; a table or picture uses the whole card. */
.product__section .rich { max-width: none; }
.product__section .rich > p:not(.rt-center):not(.rt-right),
.product__section .rich > ul, .product__section .rich > ol { max-width: var(--prose); }
.product__related { margin: 1.5rem 0 0; }

/* ---- the restock sign-up */
.restock { min-width: 0; }
/* UX#13 — opened at the sign-up from a card: a little room above it. */
.restock, .restock-many { scroll-margin-top: 1rem; }
.restock__form { display: grid; gap: .6rem; margin: 0; max-width: 420px; text-align: left; }
.restock__form .btn { justify-self: start; }
.restock__done { margin: 0; color: var(--ok); font-weight: 600; }
.restock__more > summary { display: inline-flex; align-items: center; list-style: none; }
.restock__more > summary::-webkit-details-marker { display: none; }
.restock__more[open] > summary { margin-bottom: .4rem; }

/* ---- the family grid: VARIATION | PRICE | AVAILABILITY | QTY | ADD */
.vgrid-wrap { margin: 0 0 1.5rem; scroll-margin-top: 1rem; }
.vgrid__item { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.vgrid__thumb { flex: none; width: 48px; height: 48px; object-fit: contain; background: var(--paper); border: 1px solid var(--paper-sunk); border-radius: var(--radius-md); }
/* My Account › a quote's items (post-PR #114): the family grid's own
   picture-and-words row, at the same size. */
.quote-item { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.quote-item__thumb { flex: none; width: 48px; height: 48px; object-fit: contain; background: var(--paper); border: 1px solid var(--paper-sunk); border-radius: var(--radius-md); }
.quote-item__thumb--none { display: block; background: var(--paper-sunk); }
.quote-item__words { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.vgrid__words { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; min-width: 0; text-align: left; }
.vgrid__label { overflow-wrap: anywhere; min-width: 0; }
.vgrid__sku, .vgrid__rule { flex: 1 1 100%; color: var(--ink-soft); font-size: .85rem; overflow-wrap: anywhere; }
.vgrid__row.is-out .vgrid__label { color: var(--ink-soft); }
.vgrid__add form { margin: 0; }
.vgrid__price .price { font-size: 1.05rem; }
.vgrid__bar {
  position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .5rem 1rem; margin-top: .75rem; padding: .7rem .8rem;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.vgrid__count { min-width: 0; color: var(--ink-soft); }
/* On a phone a row is a compact card: the variation across the top, its
   price and availability under it, then the quantity and Add. */
@media (max-width: 719px) {
  .vgrid tr.vgrid__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .45rem .75rem; padding: .65rem .75rem; }
  .vgrid .vgrid__row > td { display: flex; justify-content: flex-start; align-items: center; padding: 0; text-align: left; }
  .vgrid .vgrid__row > td::before { content: none; }
  .vgrid .vgrid__row > .vgrid__name, .vgrid .vgrid__row > .vgrid__note { grid-column: 1 / -1; }
  .vgrid .vgrid__row > .vgrid__stock, .vgrid .vgrid__row > .vgrid__add { justify-content: flex-end; }
  .vgrid .vgrid__row > .vgrid__note { display: block; }
  .vgrid__bar .btn { flex: 1 1 100%; }
  /* UX#18 — with Price or Availability switched off, the one left takes
     the whole line, so the quantity and Add still pair up beneath it. */
  .vgrid--no-price .vgrid__row > .vgrid__stock,
  .vgrid--no-stock .vgrid__row > .vgrid__price { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---- Shop by Brand */
.letters { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .75rem; }
.letters__letter {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px;
  padding: 0 .5rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 700;
}
a.letters__letter:hover { border-color: var(--accent); color: var(--accent); }
.letters__letter.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.letters__letter.is-off { border-style: dashed; color: var(--ink-faint); font-weight: 400; opacity: .6; }
.brands__count { margin: 0 0 1rem; }
.brand-group { margin: 0 0 1.25rem; }
.brand-group__letter { margin: 0 0 .6rem; padding-bottom: .3rem; font-size: 1.3rem; border-bottom: 2px solid var(--accent); }
.brand-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: minmax(0, 1fr); }
.brand-list > li { min-width: 0; }
.brand-row {
  display: flex; align-items: center; gap: .75rem; min-height: 56px; height: 100%; padding: .5rem .8rem; min-width: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
}
.brand-row:hover { border-color: var(--accent); color: var(--accent); }
.brand-row__logo { flex: none; width: 72px; height: 40px; object-fit: contain; }
.brand-row__name { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.brand-row__count { flex: none; color: var(--ink-soft); font-size: .88rem; white-space: nowrap; }

@media (min-width: 720px) {
  .state-list { columns: 2; }
  .product { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.75rem; align-items: start; }
  .product__title { font-size: 1.8rem; }
  .brand-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The grid is a table again, on paper, its rows level. */
  .vgrid { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); border-collapse: separate; border-spacing: 0; overflow: hidden; }
  .vgrid th { background: var(--paper-soft); }
  .vgrid th, .vgrid td { vertical-align: middle; padding-left: .8rem; padding-right: .8rem; }
  .vgrid .vgrid__qty, .vgrid .vgrid__add { width: 1%; white-space: nowrap; }
  .vgrid .vgrid__note { text-align: left; }
}

@media (min-width: 980px) {
  .catalog--side { grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 1.5rem; }
  .catalog--side .filters, .catalog--side:has(.filters-open:checked) .filters {
    display: block; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto;
  }
  .filters-toggle, .filters-open { display: none; }
  .state-list { columns: 3; }
  /* Beside the filters the grid is one column narrower. */
  .catalog--side .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .state-list { columns: 4; }
  .catalog--side .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* On a wide page the picture stops growing where it was at 1440px and the
     product's facts take the extra room — a wider page is more to read, not
     a bigger photograph. */
  .product { grid-template-columns: minmax(0, 620px) minmax(0, 1fr); }
}

/* ---- Website Phase 2: the options beside the picture, the quantity rule,
        stock counts, filter counts, products per row, the one restock form */

/* The order quantity rule, in a customer's words: bold and red, beside the
   quantity it governs. */
.qty-rule { display: block; color: var(--err); font-weight: 700; font-size: .88rem; line-height: 1.35; overflow-wrap: anywhere; }
/* The availability indicator's own shape (`.status`), in red. */
.limit-pill { background: #B42318; color: #fff; white-space: normal; overflow-wrap: anywhere; }
/* Room for the pill beside the name, so a limit adds no third line. */
@media (min-width: 1400px) { .vgrid__words:has(.limit-pill) { min-width: 12.5rem; } }
.vgrid__words .qty-rule { flex: 1 1 100%; }
/* The rule where it leads: above a simple product's quantity (a fact per
   line), and once above a family's options. */
.qty-rule--lead { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.qty-rule__line { display: block; }
.family-rule { display: grid; gap: .15rem; }
.family-rule > * { margin: 0; }
.product__allout { margin: 0; }
.vgrid__stockline { flex: 1 1 100%; }

/* A family: the picture, and beside it the product's facts with the options
   grid under them. One column until the options have room to be a table. */
.product.product--family { grid-template-columns: minmax(0, 1fr); }
.product--family .product__gallery { max-width: 520px; }
.vgrid__head { margin-bottom: .5rem; }
.product__info > .vgrid-wrap { margin-bottom: 0; }
.vgrid__row.is-match .vgrid__label { color: var(--accent); }

/* A column heading that sorts the rows. */
.sort-btn {
  display: inline-flex; align-items: center; gap: .3rem; margin: 0; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer;
}
.sort-btn:hover { color: var(--accent); }
.sort-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-xs); }
.sort-btn__mark { display: inline-block; width: 0; height: 0; border-left: .28rem solid transparent; border-right: .28rem solid transparent; opacity: .35; border-top: .34rem solid currentColor; }
th[aria-sort="ascending"] .sort-btn, th[aria-sort="descending"] .sort-btn { color: var(--accent); }
th[aria-sort="ascending"] .sort-btn__mark { opacity: 1; border-top: 0; border-bottom: .34rem solid currentColor; }
th[aria-sort="descending"] .sort-btn__mark { opacity: 1; }

/* The options grid's four looks (Settings › Website › Catalog › Variation
   grid › Style, R2-24). Every color is the website's own theme — the accent,
   its derived ink, tint and line — and every corner a radius token, so the
   Corner style setting reaches them. Classic (`.vgrid--classic`) is the grid
   exactly as it always was and adds nothing here. A row the address points at
   (`:target`) keeps its highlight under every stripe. */
.vgrid--branded .vgrid__add .btn:not(:disabled) {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.vgrid--branded .vgrid__add .btn:not(:disabled):hover {
  background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink);
}
.vgrid--branded tbody tr:nth-child(even):not(:target),
.product__info--card .vgrid--branded tbody tr:nth-child(even):not(:target) {
  background: color-mix(in srgb, var(--accent) 5%, var(--paper));
}
.vgrid--soft .vgrid__add .btn:not(:disabled) {
  background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink-base);
}
.vgrid--soft .vgrid__add .btn:not(:disabled):hover {
  background: color-mix(in srgb, var(--accent) 18%, var(--paper)); border-color: var(--accent); color: var(--ink-base);
}
.vgrid--soft tbody tr:nth-child(even):not(:target),
.product__info--card .vgrid--soft tbody tr:nth-child(even):not(:target) {
  background: color-mix(in srgb, var(--accent) 4%, var(--paper));
}
.vgrid--minimal tbody tr:nth-child(even):not(:target),
.product__info--card .vgrid--minimal tbody tr:nth-child(even):not(:target) { background: var(--paper); }
@media (min-width: 720px) {
  .vgrid--branded th { background: var(--accent); color: var(--accent-ink); }
  .vgrid--branded th .sort-btn, .vgrid--branded th .sort-btn:hover,
  .vgrid--branded th[aria-sort] .sort-btn { color: var(--accent-ink); }
  .vgrid--branded .sort-btn:focus-visible { outline-color: var(--accent-ink); }
  .vgrid--soft { border-color: var(--accent-line); }
  .vgrid--soft th { background: var(--accent-soft); color: var(--ink-base); border-bottom-color: var(--accent-line); }
  /* Dark ink on a light tint reads whatever the accent is; a light accent's
     own color on its tint would not. */
  .vgrid--soft th .sort-btn, .vgrid--soft th .sort-btn:hover,
  .vgrid--soft th[aria-sort] .sort-btn { color: var(--ink-base); }
  .vgrid--minimal { border-color: transparent; border-radius: 0; }
  .vgrid--minimal th { background: var(--paper); border-bottom: 2px solid var(--line); }
  .vgrid--minimal td { border-bottom-color: color-mix(in srgb, var(--line) 60%, var(--paper)); }
  .vgrid--minimal tbody tr:last-child td { border-bottom: 0; }
}

/* The restock sign-up: the address and one button for a simple product; one
   compact form for a family's out-of-stock options. */
.restock__to { margin: 0; overflow-wrap: anywhere; }
.restock__email { margin: 0; }
.restock__done { overflow-wrap: anywhere; }
.restock__done + .restock__form { margin-top: .6rem; }
.restock-many__item { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .6rem; min-width: 0; }
.restock__state { white-space: nowrap; }
.restock-many { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .9rem 1rem; scroll-margin-top: 1rem; min-width: 0; }
.restock-many__title { font-size: 1.05rem; margin: 0 0 .35rem; }
.restock-many__form { display: grid; gap: .6rem; margin: 0; }
.restock-many__form > * { margin: 0; min-width: 0; }
.restock-many__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.restock-many__list .check { min-height: 36px; }
.restock-many__send { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem .9rem; }
.restock-many__send .field { flex: 1 1 15rem; max-width: 24rem; margin: 0; }
.restock-many__send .hint { flex: 1 1 100%; }

/* A card: how many are available (only where the store shows it), and the
   options a filter matched. */
.product-card__stock--count { color: var(--ok); }
.product-card__stock--count.product-card__stock--low { color: var(--warn); }
.product-card__matches { font-size: .82rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.product-card__matches-label { font-weight: 700; color: var(--ink); }

/* A filter's values: each with how many products it would leave. A long
   list scrolls inside its own box rather than pushing the others away. */
.filters__options { max-height: 17rem; overflow-y: auto; overscroll-behavior: contain; }
/* A scrolling box clips whatever reaches past its edge, and the radio and
   checkbox sit flush with its left edge — their ring and focus outline were
   shaved (PR #114 correction 01). A few pixels of room inside, given back
   outside, so nothing moves and nothing is cut. */
.filters__options { padding-inline: 4px; margin-inline: -4px; }
.filters__check { display: flex; align-items: center; gap: .5rem; }
.filters__value { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.filters__count { flex: none; margin-left: auto; color: var(--ink-soft); font-size: .82rem; font-variant-numeric: tabular-nums; }
.filters__check.is-empty .filters__value { color: var(--ink-soft); }

/* Products per row (Settings › Website › Catalog) — the widest screen shows
   the number chosen; a narrower one never shows more than it. */
.product-grid.product-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 720px) {
  .product-grid.product-grid--cols-2, .catalog--side .product-grid.product-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The figures take the room they need; the option's name — and the rule
     under it — takes the rest, so a rule reads on one line where it can. */
  .vgrid .vgrid__price, .vgrid .vgrid__stock { width: 1%; white-space: nowrap; }
}
@media (min-width: 980px) {
  .product-grid.product-grid--cols-3, .catalog--side .product-grid.product-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  /* The options have room: picture left, facts and grid right, and the
     picture stays in view while a long list of options scrolls. */
  .product.product--family { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .product--family .product__gallery { max-width: none; position: sticky; top: 1rem; }
}
@media (min-width: 1200px) {
  .product-grid.product-grid--cols-3, .catalog--side .product-grid.product-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid.product-grid--cols-4, .catalog--side .product-grid.product-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid.product-grid--cols-5, .catalog--side .product-grid.product-grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* Six beside the filters needs the wider page; until then it is five. */
  .product-grid.product-grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .catalog--side .product-grid.product-grid--cols-6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
  .product.product--family { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
  .catalog--side .product-grid.product-grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media print {
  .filters, .filters-toggle, .listing-bar__sort, .toasts, .vgrid__bar, .suggest { display: none; }
}

/* =============================================================================
   CART, CHECKOUT AND CONFIRMATION (templates/cart/ — the macros are
   cart/_parts.html: notices, tenant_notice, standing, qty, unit_price,
   line_notes, totals, assisted). Built from the primitives above — .card,
   .rtable, .choice, .totals, .callout, .steps, .qty-step, .grid--sidebar —
   and only these classes of their own:

     .cart  .cart-table / .cart-line (+ __pick __media __item __name __sku
            __note __form __remove __act)  .cart__tools  .cart__foot
            .cart__summary  .cart-bar  .cart-notice  .cart-assisted
            .tenant-notice  .icon-button  .confirm-step  dialog.ask-dialog
     .summary-line (+ __what __sku __math __total)  .checkout__counts
            .checkout__fold  .checkout__lines (--blocked --wide)
     .checkout  .checkout__choices  .checkout__summary  .checkout__lines
            .checkout__terms  .checkout__missing  .choice.is-disabled
     .minicart (a <dialog> drawn as a drawer; cart.js builds the shell and
            the server draws what is in it)
     .confirm (+ __mark __eyebrow __title __when __payment __facts __next
            __steps)   the unmistakable success panel
   ========================================================================== */
.cart-notice { font-weight: 600; }
.tenant-notice > :last-child { margin-bottom: 0; }
.cart-assisted__others { margin-top: .6rem; margin-bottom: 0; }

.cart__lines { min-width: 0; }
.cart-line__media a { display: block; width: 56px; height: 56px; border-radius: var(--radius); overflow: hidden; background: var(--paper-sunk); text-decoration: none; }
.confirm__next .hint { margin-bottom: .75rem; }
.cart-line__media img { width: 56px; height: 56px; object-fit: contain; }
.cart-line__noimage { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; font-size: .7rem; color: var(--ink-faint); text-align: center; }
/* The cart's tools (Website Phase 4): tick lines, remove the ticked ones,
   empty the cart. One quiet row above the table. */
.cart__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: var(--paper-soft); }
.cart__select-all { display: inline-flex; align-items: center; gap: .5rem; min-height: 36px; font-weight: 600; cursor: pointer; }
.cart__select-all[hidden] { display: none; }
.cart__select-all input, .cart-line__pick input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--accent); cursor: pointer; }
.cart__select-link { font-weight: 600; }
.cart__tools-count { margin-left: auto; font-size: .92rem; }
.cart__tools .cart__empty { min-height: 36px; color: var(--err); }
.cart-line[aria-busy="true"] { opacity: .6; }
/* A small button that is only an icon (a cart line's Remove). */
.icon-button {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid transparent; border-radius: var(--radius); background: none; color: var(--ink-soft); cursor: pointer;
}
.icon-button:hover { background: var(--err-bg); border-color: var(--err); color: var(--err); }
.icon-button:disabled { opacity: .45; cursor: default; }
.icon-button .icon { width: 18px; height: 18px; }
.totals__problem { color: var(--err); font-weight: 600; text-align: right; }
/* The bar: the total and the way to checkout, in reach under a long cart on
   a screen where the summary sits below the table. Away (cart.js) while
   the summary's own button is on screen, and on a wide screen, where the
   summary stays beside the table. */
.cart-bar {
  position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin: 1rem calc(var(--gutter) * -1) 0; padding: .6rem var(--gutter);
  background: var(--paper); border-top: 1px solid var(--line-strong); box-shadow: var(--shadow-lift);
}
.cart-bar.is-away { display: none; }
.cart-bar__total { display: grid; min-width: 0; line-height: 1.25; }
.cart-bar__label { font-size: .82rem; color: var(--ink-soft); }
.cart-bar__total strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.cart-bar .btn { flex: none; }
/* The question before Remove selected and Empty cart: a page of its own
   with no script (cart/confirm.html), the same card in a dialog with one. */
.confirm-step { margin: 0 auto 1.25rem; }
.confirm-step__title { font-size: 1.25rem; margin: 0 0 .5rem; }
.confirm-step__items { max-height: 14rem; overflow-y: auto; margin: .75rem 0 1rem; padding: .5rem .75rem; background: var(--paper-soft); border-radius: var(--radius); gap: .3rem; }
.confirm-step__items li { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 1rem; padding: 0; border: 0; min-width: 0; }
.confirm-step__items li > span:last-child { flex: none; }
.confirm-step__items li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.confirm-step__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin: 0; }
dialog.ask-dialog {
  width: min(520px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0;
  border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lift); overflow: auto;
}
dialog.ask-dialog::backdrop { background: rgba(16, 24, 40, .45); }
dialog.ask-dialog .confirm-step { margin: 0; max-width: none; border: 0; box-shadow: none; }
.cart-line__item > span { display: grid; gap: .2rem; min-width: 0; text-align: left; }
/* The name and, on a plain sale price, the Sale badge beside it. */
.cart-line__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .45rem; min-width: 0; }
.cart-line__title .badge { flex: none; }
.cart-line__name { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.cart-line__name:hover { color: var(--accent); text-decoration: underline; }
.cart-line__sku { font-size: .85rem; }
/* The line's quantity rule, said shortly under its SKU — the full cart only. */
.cart-line__rule { display: block; font-size: .85rem; font-weight: 600; color: var(--err); overflow-wrap: anywhere; }
.cart-line__note { display: block; font-size: .88rem; overflow-wrap: anywhere; }
.cart-line__note--free { color: var(--ok); font-weight: 600; }
.cart-line__note--warn { color: var(--warn); }
.cart-line__note--error { color: var(--err); font-weight: 600; }
.cart-line.is-blocked { background: var(--err-bg); }
.cart-line__form { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.cart-line__form .qty { text-align: center; }
.cart-line__remove { color: var(--err); min-height: 44px; }
.cart__foot { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: space-between; margin-top: 1rem; padding: 0 1rem .9rem .25rem; }
.cart__summary h2, .checkout__summary h2 { margin-bottom: 0; }
.cart__summary .totals, .checkout__summary .totals { max-width: none; margin-bottom: 1rem; }
.checkout__summary h2 + .totals { margin-top: .6rem; }
.cart__summary .hint { margin-bottom: .9rem; }
/* Tax, apart from merchandise (cart/_parts.html `totals`). Each row sizes
   itself (.totals--rows), so one long value does not narrow every label; a
   sentence in place of a figure, and the breakdown, take the whole row. */
.totals--rows { grid-template-columns: minmax(0, 1fr); }
.totals__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .1rem 1.5rem; min-width: 0; }
.totals__row > dd { margin-left: auto; }
.totals__row > .totals__note { flex: 1 1 100%; margin-left: 0; text-align: left; color: var(--ink-soft); }
.totals__row > .totals__detail { flex: 1 1 100%; margin-left: 0; text-align: left; min-width: 0; }
.totals__qualifier { display: block; font-size: .85rem; }
.tax-breakdown > summary { padding: .3rem 0; cursor: pointer; color: var(--accent); font-size: .9rem; }
.tax-breakdown > summary:hover { color: var(--accent-strong); }
.tax-breakdown__where { margin: .35rem 0; color: var(--ink-soft); font-size: .88rem; }
.tax-breakdown__lines { list-style: none; margin: 0 0 .35rem; padding: .45rem .6rem; display: grid; gap: .3rem; font-size: .9rem; background: var(--paper-soft); border-radius: var(--radius-sm); }
.tax-breakdown__lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.tax-breakdown__lines li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.tax-breakdown__lines li > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

.checkout { display: block; }
.checkout .card > h2, .checkout__head { margin-bottom: .8rem; }
/* Two columns on a desktop (.grid--sidebar): the order and where it goes in
   the main column; who is buying, what it comes to and Place order beside
   it. Below that the sections simply follow one another. */
.checkout__main, .checkout__side { min-width: 0; }
.checkout__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.checkout__head h2 { margin: 0; }
.checkout__account .facts { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: .6rem; }
.checkout__account .facts dt { font-size: .85rem; margin-top: .5rem; }
.checkout__account .facts dt:first-child { margin-top: 0; }
/* A section a refused Place order is about (`CheckoutPage.marks`): outlined,
   and it says so in words — never by color alone. A link at the top of the
   page lands with the heading clear of the window's edge. */
.checkout .card { scroll-margin-top: 1rem; }
.checkout .card.is-flagged { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.flag { display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: var(--radius-sm); background: var(--err-bg); color: var(--err); font-size: .78rem; font-weight: 700; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.callout__jump { display: block; margin-top: .25rem; }
.checkout__terms.is-flagged { padding: .6rem .65rem; background: var(--err-bg); border-radius: var(--radius); }
.checkout__missing a { color: inherit; }
.checkout .card > h2 label { font: inherit; }
.checkout .facts { margin-bottom: .5rem; }
.checkout__choices { margin-bottom: .75rem; }
.checkout__choices.stack > * + * { margin-top: .6rem; }
.choice.is-disabled { cursor: not-allowed; background: var(--paper-soft); border-style: dashed; }
.choice.is-disabled strong { color: var(--ink-soft); }
.choice__note--why { color: var(--warn); font-weight: 600; }
/* The order summary (checkout, the confirmation): what the order holds in
   two numbers, the lines one press away, a line that blocks the order
   always in view. Each line reads across: 5 × $19.49 = $97.45. */
.checkout__counts { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin: .5rem 0 .6rem; }
/* The checkout's own item list: every line, in the page. A long order shows
   its first lines and a button for the rest (cart.js adds .is-clipped) — it
   grows the list where it is, so nothing scrolls inside anything. */
.checkout__list { min-width: 0; }
.checkout__list-title { margin: .25rem 0 .4rem; font-weight: 600; }
.checkout__list-head { display: none; }
.checkout__list.is-clipped > .checkout__lines { max-height: 23rem; overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 3rem), transparent); mask-image: linear-gradient(#000 calc(100% - 3rem), transparent); }
.checkout__more { display: block; margin-top: .6rem; min-height: 44px; font-weight: 600; }
.checkout__more[hidden] { display: none; }
.checkout__fold { margin: 0; border-top: 1px solid var(--line); }
.checkout__fold[open] { padding-bottom: .4rem; }
.checkout__fold > summary { padding: .55rem 0; cursor: pointer; color: var(--accent); font-weight: 600; }
.checkout__fold > summary:hover { color: var(--accent-strong); }
.checkout__lines { margin: 0; gap: 0; }
/* `position: relative`: a line holds words for a screen reader that are
   taken out of the flow; anchored here, they stay inside a list that scrolls
   instead of stretching the page under it. */
.checkout__lines li.summary-line { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; align-items: start; gap: .1rem; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: .5rem 0; min-width: 0; background: none; }
.checkout__lines--blocked { margin-bottom: .75rem; padding: 0 .65rem; background: var(--err-bg); border-radius: var(--radius); }
.checkout__lines--blocked li.summary-line:first-child { border-top: 0; }
.summary-line__what { min-width: 0; overflow-wrap: anywhere; }
/* UX#17 — an item's name on checkout is a link to its page. */
.summary-line__link { color: var(--accent); text-decoration: none; }
.summary-line__link:hover, .summary-line__link:focus-visible { text-decoration: underline; color: var(--accent-strong); }
/* …and a variation's link lands on its own row of the family's grid. */
.vgrid__row:target { background: var(--accent-soft); outline: 2px solid var(--accent); outline-offset: -2px; }
.vgrid__row { scroll-margin-top: 140px; }
.summary-line__sku { font-size: .85rem; }
.summary-line__math { justify-self: end; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-soft); }
.summary-line__total { color: var(--ink); }
.summary-line__op { padding: 0 .1rem; }
/* On a wide card (the confirmation) a line is one row: what, then the sum. */
@media (min-width: 720px) {
  .checkout__lines--wide li.summary-line { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 1.5rem; }
  /* On checkout the sums stand in columns under their own headings:
     quantity, unit price, line total. */
  .checkout__list .summary-line__math, .checkout__lines--blocked .summary-line__math, .checkout__list-math { display: grid; grid-template-columns: 4rem 1.5rem 6rem 1.5rem 6.5rem; justify-items: end; align-items: baseline; }
  .checkout__list .summary-line__op, .checkout__lines--blocked .summary-line__op { justify-self: center; padding: 0; }
  .checkout__list-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; padding: 0 0 .35rem; color: var(--ink-soft); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .checkout__list-head .summary-line__total { color: inherit; }
  .checkout__lines--blocked.checkout__lines--wide { padding: 0 .65rem; }
}
.checkout__terms { margin-bottom: .25rem; }
.checkout__missing { color: var(--warn); font-weight: 600; margin-bottom: .4rem; }
.checkout__missing.checkout__missing--refused { color: var(--err); }
.checkout__update { margin-bottom: .6rem; }
.checkout__secure { margin-top: .75rem; text-align: center; }
form[aria-busy="true"] .checkout__summary { opacity: .6; }

/* ---- the guided checkout (UX #5): three steps over the one form ---------
   Delivery, Payment, Review. Without the script every step is on the page,
   one after another; cart.js marks the form .is-guided, shows the step bar
   and opens one step at a time. Colors are the theme's (--accent, the
   status tokens); corners are radius tokens. */
.checkout-intro { margin-bottom: 1rem; }
.checkout-intro .page-title { margin-bottom: .25rem; }
.checkout-intro__sub { margin: 0; color: var(--ink-soft); }
.checkout-stepnav { padding: 0; overflow: hidden; }
.checkout-stepnav__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.checkout-stepnav__list > li { min-width: 0; border-left: 1px solid var(--line); }
.checkout-stepnav__list > li:first-child { border-left: 0; }
.checkout-stepnav__btn {
  display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; min-height: 56px;
  padding: .6rem .5rem; border: 0; background: var(--paper); color: var(--ink-soft); font: inherit; font-weight: 700;
  cursor: pointer; text-align: left;
}
.checkout-stepnav__btn:hover { background: var(--paper-soft); color: var(--ink); }
.checkout-stepnav__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.checkout-stepnav__n {
  display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--paper-soft); font-size: .82rem;
}
.checkout-stepnav__n .icon { width: 15px; height: 15px; stroke-width: 3; }
.checkout-stepnav__btn[aria-current="step"] { background: var(--accent-soft); color: var(--accent); }
.checkout-stepnav__btn[aria-current="step"] .checkout-stepnav__n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.checkout-stepnav__btn.is-done { color: var(--ok); }
.checkout-stepnav__btn.is-done .checkout-stepnav__n { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.checkout-stepnav__label { min-width: 0; overflow-wrap: anywhere; }
.checkout-step { padding: 1.4rem 1.5rem; scroll-margin-top: 1rem; }
.checkout-step__head { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1.25rem; }
.checkout-step__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent); }
.checkout-step__head h2 { margin: 0; }
.checkout-step__head h2:focus { outline: none; }
.checkout-step__head h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.checkout-step__count { margin: 0 0 .1rem; color: var(--ok); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.checkout-step__sub { margin: .2rem 0 0; color: var(--ink-soft); }
.checkout-step__error { font-weight: 600; }
.checkout-step__error:focus { outline: none; }
.checkout-group { margin: 0; padding: 0; border-radius: var(--radius); scroll-margin-top: 1rem; }
.checkout-group + .checkout-group, .checkout-review + .checkout-group { margin-top: 1.5rem; }
.checkout-group > h3, .checkout-group .checkout__head h3 { font-size: 1rem; margin: 0 0 .7rem; }
.checkout-group .checkout__head { margin-bottom: .2rem; }
.checkout-group.is-flagged { outline: 2px solid var(--err); outline-offset: .5rem; }
.choice__price--free { color: var(--ok); }
.checkout-step__actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.checkout-step__actions .btn--primary { margin-left: auto; }
.checkout-step__actions--place .btn--primary { min-width: 14rem; }
.checkout-step__total { display: flex; justify-content: space-between; gap: 1rem; margin: 1.25rem 0 0; font-variant-numeric: tabular-nums; }
.checkout-step__total strong { font-size: 1.15rem; }
@media (min-width: 980px) { .checkout-step__total { display: none; } }
/* The review's two facts — where it goes and how it is paid — each with its
   way back to the step that chose it. */
.checkout-review { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 1.5rem; }
.checkout-review__part { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; background: var(--paper-soft); min-width: 0; }
.checkout-review__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; }
.checkout-review__head h3 { margin: 0; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.checkout-review__edit { font-weight: 700; font-size: .9rem; }
.checkout-review__value { margin: 0 0 .2rem; overflow-wrap: anywhere; }
.checkout-review__value--missing { color: var(--warn); font-weight: 600; }
.checkout-review__address { margin-top: .3rem; color: var(--ink-soft); font-size: .92rem; }
.checkout-review__address strong { color: var(--ink); }
@media (min-width: 720px) { .checkout-review { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* The order note reads as a tidy sticky note, never as an alert: soft amber,
   a gold edge, optional. */
.checkout-note {
  margin-top: 1.5rem; padding: 1rem 1.1rem; background: var(--note-bg); border: 1px solid var(--note-line);
  border-left: 4px solid var(--note-edge); border-radius: var(--radius);
}
.checkout-note h3 { font-size: 1rem; margin: 0 0 .55rem; }
.checkout-note h3 label { font: inherit; }
.checkout-note__box {
  display: block; width: 100%; min-height: 5.5rem; padding: .7rem .8rem; resize: vertical; font: inherit; color: var(--ink);
  background: var(--note-field); border: 1px solid var(--note-line); border-radius: var(--radius);
}
.checkout-note__box::placeholder { color: var(--note-hint); }
.checkout-note__box:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.checkout-note .hint { margin-top: .45rem; }
.checkout-note + .tenant-notice, .checkout-note + .checkout__terms, .checkout-note + .checkout__missing { margin-top: 1.25rem; }
.checkout__terms { margin-top: 1.25rem; padding: .75rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); }
.checkout__counts--side { margin-top: .4rem; font-size: .92rem; }
.checkout__side-alert { margin: 0 0 .6rem; padding: .5rem .65rem; background: var(--err-bg); color: var(--err); border-radius: var(--radius); font-weight: 600; font-size: .9rem; }
.checkout__summary .coupon-entry { margin: .25rem 0 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.checkout__trust { display: flex; align-items: center; justify-content: center; gap: .35rem; text-align: center; font-size: .85rem; }
.checkout__trust .icon { width: 15px; height: 15px; flex: none; }
/* Guided: one step at a time (cart.js shows the open one). */
.checkout.is-guided .checkout-step[hidden] { display: none !important; }
@media (max-width: 719px) {
  .checkout-step { padding: 1.1rem 1rem; }
  .checkout-stepnav__btn { flex-direction: column; gap: .25rem; min-height: 60px; font-size: .85rem; text-align: center; }
  .checkout-step__actions .btn { flex: 1 1 auto; }
  .checkout-step__actions--place .btn--primary { min-width: 0; width: 100%; }
}

/* The drawer: a <dialog>, so focus stays inside it and Escape closes it. */
dialog.minicart {
  position: fixed; top: 0; right: 0; bottom: 0; left: auto; margin: 0; padding: 0; border: 0;
  width: min(420px, 100vw); max-width: 100vw; height: 100vh; height: 100dvh; max-height: none;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lift); overflow: hidden;
}
dialog.minicart[open] { display: flex; flex-direction: column; }
dialog.minicart::backdrop { background: rgba(16, 24, 40, .45); }
.minicart__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); flex: none; }
.minicart__head h2 { margin: 0; }
.minicart__close { width: 44px; height: 44px; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-soft); border-radius: var(--radius); }
.minicart__close:hover { background: var(--paper-soft); color: var(--ink); }
.minicart__content { padding: 1rem; overflow-y: auto; flex: 1; min-height: 0; }
.minicart__lines { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .75rem; }
.minicart__line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .75rem; align-items: start; }
.minicart__media { width: 56px; height: 56px; border-radius: var(--radius); background: var(--paper-sunk); overflow: hidden; }
.minicart__media img { width: 56px; height: 56px; object-fit: contain; }
.minicart__body { display: grid; gap: .15rem; min-width: 0; }
.minicart__name { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.minicart__total { font-variant-numeric: tabular-nums; white-space: nowrap; }
.minicart__totals { max-width: none; }
.minicart__actions { display: grid; gap: .6rem; margin-top: 1rem; }
.minicart__empty { color: var(--ink-soft); }

/* The confirmation: nobody should have to wonder whether it worked. */
.confirm {
  text-align: center; padding: 1.75rem 1.1rem 1.5rem; margin-bottom: 1.25rem;
  background: var(--ok-bg); border: 2px solid var(--ok); border-radius: var(--radius-lg);
}
.confirm__mark {
  display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem;
  border-radius: 999px; background: var(--ok); color: var(--paper); margin-bottom: .75rem;
}
.confirm__mark .icon { width: 32px; height: 32px; stroke-width: 3; }
.confirm__eyebrow { margin: 0 0 .35rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .95rem; color: var(--ok); }
.confirm__title { font-size: clamp(1.6rem, 5.2vw, 2.5rem); margin: 0 0 .4rem; color: var(--ink); }
.confirm__when { margin: 0; color: var(--ink-soft); }
.confirm__payment { font-size: 1.02rem; }
.confirm__facts { margin-bottom: 1rem; }
.confirm__facts .facts { margin-bottom: 0; }
.confirm ~ .card { margin-bottom: 1rem; }
.confirm__steps { margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: .35rem; }
/* UX #4 — the confirmation's details: delivery beside payment, each fact
   once; the note as a small sticky note; the items as a table; the totals
   with a grand total that stands out; then what happens next. */
.confirm-details { margin-bottom: 1rem; }
.confirm-details > h2 { margin: 0 0 .9rem; }
.confirm-details__cols { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.confirm-details__part { min-width: 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-soft); }
.confirm-details__part > h3 { margin: 0 0 .6rem; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.confirm-details__part .facts { margin-bottom: .5rem; }
.confirm-details__say { margin: 0; }
/* My Account's dashboard, Password & security switched off (P19 item 10):
   the way to a new password, clear of the tiles above it. */
.acct-reset { margin-top: 1.25rem; }
/* The confirmation's payment panel (P19 item 01): a full tint, rounded, an
   icon in the tone's ink and the text in body ink — never a colored rule
   down one side. `--strong` is payment required before pickup. */
.pay-panel {
  display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--info) 28%, var(--line)); border-radius: var(--radius);
  background: var(--info-bg); color: var(--ink); overflow-wrap: anywhere;
}
.pay-panel__icon { flex: none; display: inline-flex; color: var(--info); margin-top: .1rem; }
.pay-panel__icon .icon { width: 22px; height: 22px; }
.pay-panel__body { flex: 1 1 auto; min-width: 0; }
.pay-panel__title { display: block; font-weight: 700; margin-bottom: .2rem; color: var(--info); }
.pay-panel--warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.pay-panel--warn .pay-panel__icon, .pay-panel--warn .pay-panel__title { color: var(--warn); }
.pay-panel--ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 32%, var(--line)); }
.pay-panel--ok .pay-panel__icon, .pay-panel--ok .pay-panel__title { color: var(--ok); }
.pay-panel--strong { border-width: 2px; padding: 1rem 1.1rem; }
.pay-panel--strong .pay-panel__title { font-size: 1.12rem; }
.pay-panel--strong .pay-panel__icon .icon { width: 26px; height: 26px; }
@media (min-width: 720px) { .confirm-details__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.confirm-note {
  margin: 0 0 1rem; padding: .8rem 1rem; background: var(--note-bg); border: 1px solid var(--note-line);
  border-left: 4px solid var(--note-edge); border-radius: var(--radius);
}
.confirm-note > h2 { margin: 0 0 .3rem; font-size: .95rem; }
.confirm__items .checkout__head { margin-bottom: .5rem; }
.confirm__items .checkout__counts { margin: 0; }
.confirm-items { margin-bottom: 1rem; }
.confirm-items__sku { display: block; font-size: .85rem; font-weight: 400; }
.confirm-totals { max-width: 26rem; margin-left: auto; }
.confirm-totals__grand { margin-top: .35rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.confirm-totals__grand .totals__strong { font-size: 1.3rem; }
.confirm-next .confirm__steps { margin-bottom: 1rem; }
.card--note { border-left: 4px solid var(--warn); background: var(--warn-bg); }

@media (max-width: 719px) {
  /* Each line is a small card: the picture beside the name, the figures
     under them. */
  .cart__lines { background: none; border: 0; padding: 0; overflow: visible; }
  .cart__tools { margin-bottom: .6rem; border: 1px solid var(--line); border-radius: var(--radius); }
  /* Tick, picture, name and the × on the first row; the figures under them. */
  .cart-table tr.cart-line { display: grid; grid-template-columns: auto 56px minmax(0, 1fr) auto; column-gap: .65rem; row-gap: .1rem; align-items: start; }
  .cart-table td.cart-line__pick, .cart-table td.cart-line__media { display: block; padding: .2rem 0; }
  .cart-table td.cart-line__pick { padding-top: 1.1rem; }
  .cart-table td.cart-line__pick::before, .cart-table td.cart-line__media::before,
  .cart-table td.cart-line__item::before { content: none; }
  .cart-table td.cart-line__item { display: block; text-align: left; }
  .cart-table td.cart-line__act { grid-column: 4; grid-row: 1; padding: 0; }
  .cart-table td:not(.cart-line__pick):not(.cart-line__media):not(.cart-line__item):not(.cart-line__act) { grid-column: 1 / -1; align-items: center; }
  .cart__foot { padding: 0; }
}

@media (min-width: 720px) {
  .cart-table td { vertical-align: middle; }
  .cart-table .cart-table__pick, .cart-table .cart-line__pick { width: 2.4rem; padding-right: 0; }
  .cart-table .cart-line__media { width: 68px; }
  .cart-table .cart-line__qty { white-space: nowrap; }
  .cart-table .cart-line__act { width: 3rem; }
  .cart-line__form { justify-content: flex-start; flex-wrap: nowrap; }
}

/* The cart's table needs room for seven columns: until the page is wide
   enough for both, the summary sits under the table (the bar keeps the
   total and the way to checkout in reach) rather than squeezing the item
   names into a sliver beside it. */
@media (min-width: 980px) and (max-width: 1199px) {
  .cart.grid--sidebar { grid-template-columns: minmax(0, 1fr); }
  .cart .cart__summary { max-width: 30rem; margin-left: auto; }
}
@media (min-width: 1200px) {
  .cart__summary { position: sticky; top: 1rem; }
  /* Beside the table the summary is always in view: no bar. */
  .cart-bar { display: none; }
}
@media (min-width: 980px) {
  /* The totals and Place order stay in reach beside a long main column —
     where the window is tall enough to hold them whole. On a short window
     they are simply part of the page: nothing is trapped off its edge. */
  .checkout__cols { grid-template-columns: minmax(0, 1fr) 360px; }
  .checkout__side { align-self: stretch; }
  .checkout__side > .checkout__summary { margin-bottom: 0; }
}
@media (min-width: 980px) and (min-height: 760px) {
  .checkout__summary { position: sticky; top: 1rem; }
}

@media print {
  .minicart, .cart__foot, .steps, .cart__tools, .cart-bar, .cart-line__pick, .cart-table__pick { display: none; }
}

/* ============================================= the tenant's surfaces === */
/* A company may color the page, the header, the navigation bar and the
   footer (Settings › Website › Appearance; `/theme.css`). On a dark page or
   header the stylesheet flips the three inks for that region — and every
   light surface inside it puts them back, so a white card on a dark page
   still reads. **A new light-surfaced component joins this list.** */
:where(.acct-nav__list, .acct-nav__toggle, .auth__card, .badge, .banner, .brand-row,
       .brand-tile, .btn, .callout, .card, .carousel__arrow, .carousel__pause, .cart-line__media a,
       .chip, .choice, .choose__item, .collection-hero, .confirm, .empty-state, .field input,
       .field select, .field textarea, .figure, .filters, .hero, .letters__letter, .link-tile,
       .listing-bar__sort select, .main-nav, .main-nav__panel, .menu-toggle, .minicart__media,
       .notice, .pagination__page, .pagination__step, .product-card, .product-card__media, .product__info--card,
       .product-card__noimage, .product__image, .product__thumb, .prose-page, .qty,
       .qty-step__btn, .reveal, .rtable tr, .search input, .skip-link, .status, .steps__n,
       .subtabs a, .suggest, .tile, .vgrid, .vgrid__bar, .vgrid__thumb, dialog.minicart,
       .listing-side, .cart__lines, .cart__summary, .checkout__summary, .cart-bar, .flag,
       .steps__step, dialog.ask-dialog) {
  --ink: var(--ink-base); --ink-soft: var(--ink-soft-base); --ink-faint: var(--ink-faint-base);
  --brand-ink: var(--accent);
  color: var(--ink);
}
/* Links written straight onto a dark page follow its ink. */
body { --page-link: var(--accent); }
.site-main > a, .site-main > p a, .breadcrumbs a, .listing-bar a { color: var(--page-link); }

/* ============================================ wide screens, a mouse === */
/* The compact quantity control: where there is a pointer that can hit it.
   On a touch screen it keeps the 44px target the rest of the store has. */
@media (min-width: 980px) and (hover: hover) and (pointer: fine) {
  :root { --qty-h: 34px; --qty-btn: 28px; --qty-w: 3.4rem; }
  .qty-step__btn { font-size: .95rem; }
}
@media (min-width: 1500px) {
  .site-main { padding-top: 1.4rem; }
  .catalog--side .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}


/* ---- the floating WhatsApp button (Website Settings › Help & Contact) ----
   A plain link fixed in a bottom corner of every page (`base.html`). Its
   green is WhatsApp's own, declared once here; everything else is the
   house's. It sits clear of the screen's edges and of a phone's safe area,
   lifts above a pinned bar of actions (a family's Add to cart, the cart's
   Checkout) so it never covers one, and leaves room at the foot of the
   page so the last line is never under it. Toasts stay above it. */
.wa-float {
  --wa-green: #25d366;
  --wa-green-deep: #1da851;
  --wa-ink: #ffffff;
  --wa-gap: 1rem;
  position: fixed; z-index: 50;
  bottom: calc(var(--wa-gap) + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--wa-green); color: var(--wa-ink);
  box-shadow: var(--shadow-lift); text-decoration: none;
  transition: transform .12s ease, background-color .12s ease;
}
.wa-float--right { right: calc(var(--wa-gap) + env(safe-area-inset-right, 0px)); }
.wa-float--left { left: calc(var(--wa-gap) + env(safe-area-inset-left, 0px)); }
.wa-float:hover { background: var(--wa-green-deep); transform: translateY(-2px); }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wa-float__icon { display: block; }
@media (max-width: 600px) {
  .wa-float { --wa-gap: .75rem; width: 3.25rem; height: 3.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float:hover { transition: none; transform: none; }
}
body:has(.cart-bar) .wa-float,
body:has(.vgrid__bar) .wa-float {
  bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
}
body:has(.wa-float) .site-foot { padding-bottom: 5rem; }

/* ------------------------------------------------- maintenance page --- */
/* Settings › Website › Maintenance mode (`templates/maintenance.html`). The
   page's palette is fixed on its own root — Golden Door navy and gold — so
   it reads the same whatever colors the shop wears. A photograph, when the
   company chose one, arrives from `/theme.css` (`body.maintenance`) under a
   navy wash; with none the page is the navy gradient below. */
body.maintenance {
  --mt-navy: #0b1f3a;
  --mt-navy-deep: #06142a;
  --mt-gold: #c9a24a;
  --mt-gold-soft: #e6cf8f;
  --mt-ink: #ffffff;
  --mt-ink-soft: rgba(255, 255, 255, .82);
  --mt-chip: #ffffff;
  min-height: 100vh; min-height: 100dvh; margin: 0;
  display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 50% 0%, var(--mt-navy) 0%, var(--mt-navy-deep) 100%);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  color: var(--mt-ink);
}
.maint {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(1.5rem, 6vw, 4rem) var(--gutter); text-align: center;
}
.maint__card {
  width: 100%; max-width: 640px;
  display: flex; flex-direction: column; align-items: center;
}
/* **No white box behind the logo** (PR #16 corrections — the owner's dark
   photograph made the old white chip look out of place). A logo that can be
   transparent sits straight on the page as a light silhouette, so a navy
   wordmark still reads on navy; a JPEG (`--framed`) has its own background
   baked in, so it keeps a slim, softly lifted frame rather than a slab.
   The stored logo is never changed — this is presentation only. */
.maint__brand {
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.75rem; max-width: 100%;
}
.maint__brand--bare .maint__logo {
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, .45));
}
.maint__brand--framed {
  background: var(--mt-chip); border-radius: var(--radius-md);
  padding: .45rem .7rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.maint__logo { max-height: clamp(48px, 12vw, 84px); max-width: min(340px, 72vw); width: auto; height: auto;
  object-fit: contain; display: block; }
.maint__name { font-size: 1.5rem; font-weight: 700; color: var(--mt-ink); letter-spacing: .02em; overflow-wrap: anywhere; }
.maint__rule { width: 64px; height: 3px; border-radius: var(--radius-xs); background: var(--mt-gold); margin-bottom: 1.4rem; }
.maint__heading {
  font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.15; font-weight: 700;
  letter-spacing: -.01em; color: var(--mt-ink); margin: 0 0 1rem; overflow-wrap: anywhere;
}
.maint__text {
  font-size: clamp(1rem, 1.9vw, 1.18rem); line-height: 1.6; color: var(--mt-ink-soft);
  max-width: 34em; margin: 0 auto; white-space: pre-line; overflow-wrap: anywhere;
}
.maint__contact { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .5rem .75rem; justify-content: center; color: var(--mt-gold-soft); }
.maint__contact a { color: var(--mt-gold-soft); text-decoration: none; font-weight: 600; }
.maint__contact a:hover { color: var(--mt-ink); text-decoration: underline; }
.maint__foot { margin-top: 2.5rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

/* The staff banner's note while maintenance mode is on. */
.staff-banner__maint { font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: var(--radius-sm); padding: .1rem .45rem; }

/* SalesPad's New order, on the order confirmation of a SalesPad checkout. */
.confirm__next { margin-top: 1.1rem; }
.confirm__next .btn { min-width: 14rem; font-weight: 700; }
.confirm-cardform .rich { margin-bottom: .75rem; }

/* ===== PR #30 final corrections — out-of-stock notice and restock grid ===== */
/* Every option out of stock: the card's out-of-stock look (.oos-badge) at
   notice size — red warning mark, soft red, bold dark-red words. */
.product__allout--out {
  display: flex; align-items: flex-start; gap: .5rem; margin: 0;
  padding: .6rem .8rem; background: var(--err-bg); color: var(--err);
  border: 1px solid color-mix(in srgb, var(--err) 25%, transparent);
  border-radius: var(--radius-sm); font-weight: 700; line-height: 1.4;
}
.product__allout--out .icon { width: 18px; height: 18px; flex: none; margin-top: .05rem; }
.product__allout--out span { min-width: 0; overflow-wrap: anywhere; }
/* Restock options: one column on a phone, two then three as room allows;
   every option starts at the same line, the box and the name share one
   starting edge, and a mark sits under the name, aligned with it. */
.restock-many__list { grid-template-columns: 1fr; gap: .15rem 1.25rem; align-items: start; }
@media (min-width: 560px) { .restock-many__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .restock-many__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.restock-many__item { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0; min-width: 0; }
.restock-many__item .check { padding-bottom: .2rem; }
.restock-many__marks { display: flex; flex-wrap: wrap; gap: .25rem .4rem; padding: 0 0 .4rem calc(1.15rem + .6rem); }
/* ===== end PR #30 out-of-stock / restock block ===== */

/* ===== BEGIN final corrections #4 — the phone's search shortcut ==========
   The icon in the pinned row (left of the account) appears only on a phone
   once the search box has scrolled away; pressing it floats **the same
   form** under the row (`.search--float`, catalog.js). `.search-spacer`
   holds the form's place meanwhile so the page does not move. */
button.tool { border: 0; background: transparent; font: inherit; cursor: pointer; }
.tool--search[hidden] { display: none; }
.search__close, .search-spacer { display: none; }
@media screen and (max-width: 979px) {
  .search-spacer:not([hidden]) { display: block; }
  .search.search--float {
    position: fixed; z-index: 21; left: 0; right: 0;
    top: calc(var(--sf-staff-h, 0px) + var(--sf-bar-h, 66px));
    padding-top: .65rem; box-shadow: var(--shadow-lift);
  }
  .search--float .search__close:not([hidden]) {
    display: inline-flex; align-items: center; min-height: 46px; margin-left: .5rem; padding: 0 .75rem;
    font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
    border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper);
  }
}
@media screen and (min-width: 980px) {
  .tool--search { display: none; }
}
/* ---- the phone header, tidied (PR #119): less padding, one size and one
   gap for every control, a plain menu button, and room kept for the search
   icon so nothing moves when it appears. A thin line under the pinned row
   once the search box has gone; before that the box draws its own. */
@media screen and (max-width: 979px) {
  .site-head__bar { padding-top: .35rem; padding-bottom: .35rem; gap: .5rem; }
  .search { padding-bottom: .5rem; }
  .site-head__bar .tools { gap: .1rem; }
  .site-head__bar .tool { min-width: 44px; min-height: 44px; padding: 0; }
  .site-head__bar .tool--cart .tool__icon { margin-right: 0; }
  .site-head__bar .tools:has(.tool--search[hidden])::before { content: ""; flex: none; width: 44px; }
  .site-head__bar:has(.tool--search:not([hidden])) { box-shadow: 0 1px 0 var(--line); }
  .menu-toggle {
    justify-content: center; min-width: 44px; padding: 0; border-color: transparent; background: transparent; color: inherit;
  }
  .menu-toggle .icon { width: 26px; height: 26px; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media screen and (max-width: 719px) {
  .wa-float { width: 2.9rem; height: 2.9rem; transition: opacity .15s ease, visibility .15s ease; }
  .wa-float.is-aside { opacity: 0; visibility: hidden; }
}
@media screen and (max-width: 979px) {
  body:has(.checkout.is-guided .co-actions) .wa-float { bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px)); }
}
/* ===== END final corrections #4 ======================================== */

/* ===== Website coupons (2026-10-29): the checkout's coupon box ===== */
.coupon-entry { margin: 0 0 .9rem; padding: 0 0 .9rem; border-bottom: 1px solid var(--line); }
.coupon-entry__label { display: block; font-weight: 600; margin-bottom: .35rem; }
.coupon-entry__row { display: flex; gap: .5rem; min-width: 0; }
.coupon-entry__row .input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; }
.coupon-entry__row .btn { flex: 0 0 auto; }
.coupon-entry__error { margin: .4rem 0 0; color: var(--err); font-size: .9rem; }
.coupon-entry__applied { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .25rem .75rem; margin: 0; padding: .5rem .7rem; border-radius: var(--radius-sm, 6px);
  background: var(--ok-bg); color: var(--ok); }
.totals__row--coupon > dd { color: var(--ok); font-weight: 600; }
/* ===== end coupons block ===== */

/* ---- PR #32 acceptance corrections (2026-10-30) ---------------------------
   The shipping address as an address: a lightly shaded, bordered panel —
   which address, the business, its lines — and the team-managed line under
   it in a restrained red. */
.checkout-address { background: var(--paper-soft); border-color: var(--line); padding: .85rem 1rem; }
.checkout-address:has(input:checked) { background: var(--accent-soft); }
.checkout-address__body { gap: .15rem; line-height: 1.45; }
.checkout-address__kind { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.checkout-address__name { font-size: 1rem; }
.checkout-address__line { color: var(--ink-soft); }
/* The staff-managed notice is a `callout--alert`; here only its spacing. */
.checkout-address__managed { margin: .8rem 0 0; line-height: 1.45; }
.co-addnew { margin: .6rem 0 0; }

/* *Use a new card*: its panel opens directly under the choice, indented to
   the choice's text, compact — the button, Save this card, one line. */
.checkout__choices.stack > .card-entry--checkout { margin-top: -1px; }
.card-entry--checkout {
  margin: -1px 0 .1rem; padding: .85rem 1rem .8rem 2.75rem; border: 1px solid var(--accent);
  border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: var(--paper);
  display: grid; gap: .45rem; justify-items: start;
}
[data-payment="new_card"]:has(input:checked) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.card-entry__status:empty { display: none; }
.card-entry__status { margin: 0; font-size: .92rem; color: var(--ok); font-weight: 600; }
.card-entry__status.is-error { color: var(--err); }
.card-entry__save { min-height: 40px; padding: .35rem 0; }
.card-entry__secure { margin: 0; display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--ink-faint); }
.card-entry__secure svg { width: .95rem; height: .95rem; }
/* After a refused card: why the card typed before is no longer there. */
.card-entry__reenter { margin: .4rem 0 0; font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 560px) {
  .card-entry--checkout { padding-left: 1rem; }
  .card-entry--checkout [data-card-entry-open] { width: 100%; }
}

/* My Account › Saved credit cards: one row per card, a roomy empty state, and
   one prominent Add new card. */
.wallet { display: grid; gap: 1.1rem; }
.wallet__list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.wallet__card {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .85rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.wallet__brand {
  flex: none; min-width: 3.4rem; padding: .3rem .5rem; border-radius: var(--radius-sm); background: var(--accent-soft);
  color: var(--accent); font-size: .78rem; font-weight: 800; text-align: center; letter-spacing: .02em;
}
.wallet__number { font-weight: 700; font-variant-numeric: tabular-nums; }
.wallet__exp { color: var(--ink-soft); font-size: .92rem; }
.wallet__tags { margin-left: auto; display: flex; gap: .4rem; }
.wallet__empty { padding: 1.6rem 1rem; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--paper-soft); }
.wallet__empty strong { display: block; font-size: 1.05rem; margin-bottom: .25rem; }
.wallet__empty p { margin: 0; color: var(--ink-soft); }
.wallet__add { display: grid; gap: .4rem; justify-items: start; }
.wallet__fine { margin: 0; color: var(--ink-faint); font-size: .9rem; display: grid; gap: .2rem; }


/* ==== Shipping & checkout — the vertical accordion (PR #32 acceptance) =======
   After mockups/golden-door-checkout-mockup.html: one white card holding the
   three steps; each a round marker (its number; a green check once done), a
   heading, a one-line summary and Change once done. The order summary beside
   it on a desktop; on a phone a bar at the top that opens it, a "Step N of 3"
   row, and the step's actions kept in view at the bottom. */
.checkout-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.25rem; }
.checkout-intro .page-title { margin: 0; }
.checkout-intro__who { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.checkout-intro__who strong { color: var(--ink); }

.co-link { display: inline-flex; align-items: center; gap: .35rem; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.co-link:hover { text-decoration: underline; color: var(--accent-strong); }
.co-link .icon { width: 1rem; height: 1rem; }
/* A section label inside a step: the storefront's own h3 (1rem, bold) —
   not the mockup's small tracked capitals (PR #32 final acceptance). */
.co-eyebrow { margin: 0 0 .45rem; font-size: 1rem; }

.co-acc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); min-width: 0; }
.co-step { display: flex; gap: 1.25rem; padding: 1.6rem 2rem; scroll-margin-top: 1rem; }
.co-step + .co-step { border-top: 1px solid var(--line); }
.co-step__mark { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink-faint); font-weight: 700; font-size: .88rem; }
.co-step__mark .icon { width: 1rem; height: 1rem; stroke-width: 3; }
.co-step__ok { display: none; }
.co-step.is-current .co-step__mark { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.co-step.is-done .co-step__mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.co-step.is-done .co-step__n { display: none; }
.co-step.is-done .co-step__ok { display: grid; }
.co-step__main { flex: 1; min-width: 0; }
.co-step__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2rem; }
.co-step__head h2 { margin: 0; }
.co-step__head h2:focus { outline: none; }
.co-step__head h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.co-step.is-todo .co-step__head h2 { color: var(--ink-faint); }
.co-step__sum { margin: .25rem 0 0; color: var(--ink-soft); font-size: .9rem; overflow-wrap: anywhere; }
.co-step__body { margin-top: 1.1rem; }
.checkout.is-guided .co-step__body[hidden] { display: none !important; }

.co-two { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .co-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
.co-two .checkout-group + .co-billto { margin-top: 0; }
.co-addresses.stack > * + * { margin-top: .5rem; }
.co-billto__address { display: grid; gap: .1rem; line-height: 1.5; padding: .85rem 0 0; font-style: normal; }
.co-billto__address span { color: var(--ink-soft); }
#co-shipping { margin-top: 1.6rem; }

/* One bordered group of divided rows — no box inside a box. */
.co-opts { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--paper); }
.co-opts > .choice { border: 0; border-radius: 0; padding: .9rem 1.1rem; gap: .85rem; align-items: center; min-height: 56px; box-shadow: none; }
.co-opts > .choice + .choice, .co-opts > .card-entry + .choice { border-top: 1px solid var(--line); }
.co-opts > .choice:hover { background: var(--paper-soft); }
.co-opts > .choice:has(input:checked) { background: var(--accent-soft); box-shadow: none; }
.co-opts > .choice.is-disabled { background: var(--paper-soft); border-style: solid; }
.co-opts .choice__body strong { font-weight: 700; }
.co-opts .choice__note { line-height: 1.4; }
.co-opts .choice__price--free { color: var(--ok); }
.checkout__choices.co-opts { margin-bottom: 0; }

/* The new card's panel sits inside the group, under its choice. */
.co-opts > .card-entry--checkout { margin: 0; border: 0; border-top: 1px solid var(--accent-line); border-radius: 0; background: var(--accent-soft); padding: .2rem 1.1rem 1rem 3.1rem; }
.card-entry__preview { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); width: 100%; }
.card-entry__preview[hidden] { display: none; }
.card-entry__brand { flex: none; min-width: 3.2rem; padding: .25rem .45rem; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 700; text-align: center; }
.card-entry__what { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.card-entry__what strong { font-weight: 700; }
.card-entry__what span { color: var(--ok); font-size: .85rem; font-weight: 600; }
.card-entry__save[hidden] { display: none; }

.co-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.co-actions .btn--primary { margin-left: auto; }
.co-actions__total { display: none; }
.co-actions--place .btn--primary { min-width: 14rem; }

/* Review: the items as a bordered table that keeps a sensible height. */
.co-table { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.co-table .checkout__list-head { padding: .6rem 1rem; background: var(--paper-soft); border-bottom: 1px solid var(--line); margin: 0; }
.co-table .checkout__lines { padding: 0 1rem; max-height: 27.5rem; overflow: auto; }
.co-table .checkout__lines li.summary-line:first-child { border-top: 0; }
.co-table .checkout__lines li.summary-line { padding: .7rem 0; }
.co-table .checkout__more { margin: .5rem 1rem .7rem; }
.co-table .checkout__list-title { padding: .5rem 1rem 0; }
.checkout-step__total { margin-top: 1.25rem; }
@media (min-width: 980px) { .checkout-step__total { display: none; } }

/* The order summary. */
.co-summary { padding: 1.4rem 1.5rem; }
.co-summary__head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.co-summary__head h2 { margin: 0; }
.co-summary .checkout__counts--side { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.co-mini { margin: .9rem 0 0; border-top: 1px solid var(--line); }
.co-mini__li { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--paper-sunk); }
.co-mini__n { flex: 1; min-width: 0; font-size: .9rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.co-mini__n small { display: block; font-size: .85rem; font-weight: 400; color: var(--ink-faint); }
.co-mini__v { font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-mini.is-folded .co-mini__li:nth-child(n+4) { display: none; }
.co-mini__more { margin-top: .6rem; }
.co-summary .totals { margin: 1rem 0 0; }
.co-summary .coupon-entry { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); }
.co-summary .coupon-entry__form[hidden] { display: none; }
.co-summary .checkout__trust { margin: 1rem 0 0; text-align: left; }
.co-sumbar { display: none; }

/* ---- a blocking error: solid deep red, white text, a warning mark ---- */
.checkout-step__error.co-alert, [data-checkout] > .co-alert {
  display: flex; align-items: flex-start; gap: .65rem; padding: .85rem 1rem; margin-bottom: 1rem;
  background: var(--err-deep); color: var(--err-deep-ink); border: 0; border-radius: var(--radius);
  font-weight: 700; line-height: 1.45;
}
.checkout-step__error.co-alert[hidden] { display: none; }
.checkout-step__error.co-alert::before, [data-checkout] > .co-alert::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; margin-top: .05rem;
  border: 2px solid currentColor; border-radius: 50%; font-size: .78rem; font-weight: 900; line-height: 1;
}
[data-checkout] > .co-alert a { color: inherit; text-decoration: underline; }
.co-alert:focus { outline: 3px solid var(--accent-line); outline-offset: 2px; }
/* Narrow screens (PR #32 final acceptance): the mark, the sentence and
   "Go to …" were three flex columns, and the last was squeezed to a few
   letters wide. The sentence takes the width beside the mark; "Go to …"
   takes a line of its own, under the sentence. */
@media (max-width: 979px) {
  .co-alert { flex-wrap: wrap; }
  .co-alert > [data-problem] { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
  .co-alert > .callout__jump { flex: 1 1 100%; min-width: 0; margin-top: 0; padding-left: 1.95rem; overflow-wrap: anywhere; }
}
.checkout .checkout-group.is-flagged { outline: 2px solid var(--err-deep); outline-offset: .45rem; }
.checkout .checkout__terms.is-flagged { background: var(--err-bg); border-color: var(--err-deep); box-shadow: inset 0 0 0 1px var(--err-deep); }

/* ---- the desktop grid ---- */
@media (min-width: 980px) {
  .checkout__cols { grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: start; }
  .checkout__side { position: sticky; top: 1rem; }
}

/* ---- a phone and a small tablet: the mockup's mobile mode ---- */
.co-mprog { display: none; }
@media (max-width: 979px) {
  .checkout.is-guided .checkout__cols { display: flex; flex-direction: column; gap: .6rem; }
  .checkout.is-guided .co-mprog { display: block; order: 1; padding: .75rem 1rem .85rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
  .co-mprog__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
  .co-mprog__count { font-size: .85rem; font-weight: 600; color: var(--ink-faint); }
  .co-mprog__bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin-top: .6rem; }
  .co-mprog__bars i { display: block; height: 4px; border-radius: 2px; background: var(--line-strong); }
  .co-mprog__bars i.is-done { background: var(--ok); }
  .co-mprog__bars i.is-on { background: var(--accent); }
  .checkout.is-guided .checkout__side { order: 2; }
  .checkout.is-guided .checkout__main { order: 3; }
  .checkout.is-guided .co-summary { padding: 0; overflow: hidden; }
  .checkout.is-guided .co-sumbar { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 52px; padding: .8rem 1rem; border: 0; background: var(--paper); text-align: left; cursor: pointer; font: inherit; }
  .co-sumbar__label { flex: 1; font-weight: 600; color: var(--accent); }
  .co-sumbar__chev .icon { width: 1.1rem; height: 1.1rem; transition: transform .15s; }
  .co-sumbar[aria-expanded="true"] .co-sumbar__chev .icon { transform: rotate(180deg); }
  .co-sumbar__total { font-size: 1.1rem; font-weight: 700; }
  .checkout.is-guided .co-summary__body { padding: 0 1rem 1rem; }
  .checkout.is-guided .co-summary:not(.is-open) .co-summary__body { display: none; }
  .checkout.is-guided .co-summary__head h2 { display: none; }
  .co-step { padding: 1.25rem 1rem; gap: .8rem; }
  .co-step__mark { width: 1.75rem; height: 1.75rem; }
  .co-opts > .card-entry--checkout { padding-left: 1.1rem; }
  .co-table .checkout__lines { max-height: none; overflow: visible; }
  /* The step's actions stay in view at the bottom of the screen, with the
     total beside them; they hold their own place in the page, so nothing
     scrolls under them. */
  .checkout.is-guided .co-actions {
    position: sticky; bottom: 0; z-index: 5; margin: 1.25rem -1rem -1.25rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(23, 32, 43, .06); flex-wrap: nowrap;
  }
  .checkout.is-guided .co-actions__back { display: none; }
  .checkout.is-guided .co-actions__total { display: block; flex: none; line-height: 1.2; }
  .co-actions__total small { display: block; font-size: .82rem; color: var(--ink-soft); }
  .co-actions__total b { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
  .checkout.is-guided .co-actions .btn--primary { flex: 1; min-width: 0; margin-left: 0; }
  .checkout.is-guided .checkout-step__total { display: none; }
  .checkout-intro__who { display: none; }
}

/* The summary's item list is rows, not boxes; the review table reads like the
   mockup's — the SKU under the name, the figures in their columns. */
.co-mini > li.co-mini__li { border: 0; border-bottom: 1px solid var(--paper-sunk); border-radius: 0; background: none; padding: .6rem 0; margin: 0; box-shadow: none; }
.co-table .summary-line__op { visibility: hidden; }
.co-table .summary-line__what strong, .co-table .summary-line__link { color: var(--ink); }
.co-table .summary-line__link:hover { color: var(--accent); }
.co-table .summary-line__sku { display: block; margin-top: .1rem; }
.plain-list.co-mini { gap: 0; margin-bottom: 0; }
/* A phone: the marker sits beside the heading only, so the step's content
   has the whole width; Bill to is left to the account (the mockup's mobile
   Delivery shows Ship to alone). */
@media (max-width: 600px) {
  .co-step { position: relative; display: block; padding: 1.15rem 1rem; }
  .co-step__mark { position: absolute; left: 1rem; top: 1.15rem; }
  .co-step__head, .co-step__sum { padding-left: 2.6rem; }
  .co-step__body { margin-top: .9rem; }
  .co-billto { display: none; }
  .checkout.is-guided .co-actions .btn--primary { white-space: nowrap; padding-left: .9rem; padding-right: .9rem; }
  .co-opts > .choice { padding: .85rem .9rem; }
  .co-opts > .card-entry--checkout { padding: .2rem .9rem .9rem; }
}
@media (max-width: 979px) { .checkout.is-guided .co-summary .checkout__counts--side { display: none; } }

/* PR #113 consolidated corrections (Issue 8): a card's quantity multiple,
   bold red as on the product page, riding directly on the price so every
   card's price and buttons stay level. */
.product-card__rule { margin: auto 0 0; font-size: .82rem; }
.product-card__rule + .product-card__price { margin-top: 0; }

/* ------------------------------------------ Request a price match ---
   `catalog/_price_match.html`: a compact strip under the product's price,
   and the form in the house's dialog (`dialog.ask-dialog`) or on its own
   page. The strip is as wide as its words, never a banner. */
.pmatch-strip {
  display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; margin: .45rem 0 0;
  padding: .4rem .75rem; min-height: 36px; font-size: .9rem; line-height: 1.3;
  color: var(--pmatch-ink); background: var(--pmatch-bg); border: 1px solid var(--pmatch-edge);
  border-radius: var(--radius); text-decoration: none; cursor: pointer;
}
/* As wide as its words in the product column (a grid, which would stretch
   it); on a narrow screen it wraps inside the column. */
.product__info > .pmatch-strip, .product__info > #price-match + .pmatch-strip { justify-self: start; }
.pmatch-strip:hover { background: var(--pmatch-bg-hover); color: var(--pmatch-ink); }
.pmatch-strip:focus-visible { outline: 2px solid var(--pmatch-ink); outline-offset: 2px; }
.pmatch-strip .icon { flex: none; width: 1.05rem; height: 1.05rem; }
.pmatch-strip > span { min-width: 0; overflow-wrap: anywhere; }
.pmatch-strip__act { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
dialog.pmatch-dialog { width: min(560px, calc(100vw - 2rem)); overflow-x: hidden; overflow-y: auto; }
.pmatch-dialog__body { padding: 1.25rem 1.25rem 1.1rem; min-width: 0; }
.pmatch-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.pmatch-dialog__title { font-size: 1.2rem; margin: 0; }
.pmatch-dialog__x { flex: none; margin: -.35rem -.5rem -.35rem 0; }
.pmatch-form { gap: .9rem; min-width: 0; }
.pmatch-form > * { min-width: 0; }
.pmatch-summary { display: grid; gap: .5rem; padding: .75rem .9rem; background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.pmatch-summary__title { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pmatch-summary__facts { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; font-size: .9rem; }
.pmatch-summary__facts > div { display: flex; gap: .35rem; min-width: 0; }
.pmatch-summary__facts dt { color: var(--ink-soft); }
.pmatch-summary__facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pmatch-summary__pick select { background: var(--paper); }
/* The window's two informational lines — under the title, and above Send:
   amber words, no box, an information mark before the closing one. They are
   conditions of the request, never an error. */
.pmatch-terms { margin: 0; color: var(--warn); font-size: .93rem; line-height: 1.45; }
.pmatch-terms--intro { margin: -.35rem 0 .9rem; }
.pmatch-attach__label { font-weight: 600; font-size: .95rem; }
.pmatch-attach__row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; min-width: 0; }
/* Stated against `.field input`, which made the box as wide as the dialog
   from where it sat — the desktop dialog's sideways scrollbar. With no
   script the browser's own box shows at its own width; with one (`is-
   enhanced`), it stays reachable by keyboard and screen readers and out of
   sight, and the button beside it is what is seen and pressed. */
.pmatch-attach .pmatch-attach__input { width: auto; max-width: 100%; min-height: 0; padding: .25rem 0; border: 0; background: none; }
.pmatch-attach.is-enhanced .pmatch-attach__input {
  position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0;
  opacity: 0; overflow: hidden; clip-path: inset(50%);
}
.pmatch-attach__input:focus-visible + .pmatch-attach__button { outline: 2px solid var(--accent); outline-offset: 1px; }
.pmatch-attach__button { cursor: pointer; }
.pmatch-attach__chosen { min-width: 0; max-width: 100%; font-size: .9rem; overflow-wrap: anywhere; }
.pmatch-help { margin: 0; font-size: .92rem; line-height: 1.45; }
.pmatch-page { max-width: 640px; margin: 0 auto; }
@media (min-width: 560px) {
  .field-row.pmatch-form__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Free shipping (cart and checkout, PR #119) -------------------------- */
/* A panel of its own, in the owner's approved greens and its own rounding —
   the same whatever the website's corner style. */
.free-ship {
  --fs-bg: #eaf5ed; --fs-line: #c5dfcc; --fs-icon: #197744; --fs-ink: #176538;
  --fs-track: #d0e2d4; --fs-fill: #21854c; --fs-round: 8px;
  margin: .75rem 0 1rem; padding: 12px; background: var(--fs-bg); color: var(--fs-ink);
  border: 1px solid var(--fs-line); border-radius: var(--fs-round);
}
.free-ship__words { display: flex; align-items: center; gap: .55rem; margin: 0 0 .55rem; font-size: .95rem; line-height: 1.35; max-width: none; color: inherit; }
.free-ship__words .icon { flex: none; color: var(--fs-icon); }
.free-ship__words strong { color: inherit; font-weight: 700; }
.free-ship__bar { display: block; width: 100%; height: 9px; border: 0; border-radius: var(--fs-round);
  overflow: hidden; appearance: none; background: var(--fs-track); accent-color: var(--fs-fill); }
.free-ship__bar::-webkit-progress-bar { background: var(--fs-track); border-radius: inherit; }
.free-ship__bar::-webkit-progress-value { background: var(--fs-fill); border-radius: inherit; }
.free-ship__bar::-moz-progress-bar { background: var(--fs-fill); border-radius: inherit; }
/* Checkout: the panel is the summary card's own child, so a shut summary on
   a phone never hides it. Wider than a phone it sits over the totals. */
@media (min-width: 980px) {
  .co-summary { display: flex; flex-direction: column; }
  .co-summary > .co-summary__body { display: contents; }
  .co-summary > .free-ship { order: 1; margin: 1rem 0 0; }
  .co-summary__body > .totals, .co-summary__body > .coupon-entry,
  .co-summary__body > .checkout__update, .co-summary__body > .checkout__trust { order: 2; }
  .co-summary__body > .co-mini__more { align-self: flex-start; }
}
@media (max-width: 979px) { .checkout.is-guided .co-summary > .free-ship { margin: 0 1rem 1rem; } }
