/* ==========================================================================
   BadgeStore Home (Storefront) Stylesheet
   Home-only. Loaded LAST, after Bootstrap 5.3.8, by layouts/storefront.blade.php.
   Every design-owned selector is prefixed "sf-" so it can never collide with
   Bootstrap. The reset is SCOPED to the ".sf-page" wrapper so Bootstrap's
   reboot + .modal/.offcanvas keep working untouched.
   Signature Colors: Brand Red (#D72328), Slate Dark (#0F172A)
   ========================================================================== */

/* Design Tokens & Variables (names kept verbatim; never collide with --bs-*) */
:root {
    /* Inter throughout, as the approved mockup does — it sets font-sans to Inter and
       uses weight alone (up to 900) to separate headings from body. Plus Jakarta Sans
       is no longer loaded. */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Core Brand Palette — the mockup's brand scale.
       #D72328 measures 5.10:1 on white, so unlike the old #ED1C24 (4.38:1) it clears
       AA for normal text on its own. --color-primary-ink stays as the deeper variant
       for small text and link states. */
    --color-primary: #D72328;
    /* brand-700. 6.53:1 on white — safe for body-size text and under white labels. */
    --color-primary-ink: #B91C20;
    /* brand-800 */
    --color-primary-hover: #991B1B;
    --color-primary-light: rgba(215, 35, 40, 0.08);
    /* Brand red lifted for dark surfaces: the brand red is ~3.4:1 on slate-900, an AA
       fail for body text; this is 6.4:1. Use it for red text/links on dark grounds. */
    --color-primary-on-dark: #FF6B6B;
    /* Single source of truth for every dark surface: topbar, search button, newsletter
       banner, footer, plus nav/heading text. slate-900, matching the mockup's
       brand.navy — it was a neutral charcoal (#131313) and read warm beside the
       slate greys everywhere else. */
    --color-secondary: #0F172A;
    --color-secondary-light: #1E293B;

    /* Backgrounds and Surfaces */
    --color-bg-base: #FFFFFF;
    --color-bg-surface: #F8FAFC;
    --color-bg-warm: #FDFDF2;
    --color-bg-warm-light: #FFFFF8;

    /* Utility Colors */
    --color-accent: #EAB308;
    --color-accent-light: #FEF08A;
    --color-text-dark: #1E293B;
    --color-text-muted: #64748B;
    /* Fills and icons only: #10B981 is 2.54:1 on white, so it can never carry text. */
    --color-success: #10B981;
    /* The text-safe green. 5.48:1 on white, 5.46:1 on the warm band. Use this for any
       figure or label that has to be read, such as the calculator's savings line. */
    --color-success-ink: #047857;
    --color-border: #E2E8F0;
    --color-border-dark: #CBD5E1;
    /* Slightly deeper than --color-bg-surface; reads as light grey on a white header. */
    --color-bg-subtle: #F1F5F9;

    /* Transitions & Shadows */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
}

/* ==========================================================================
   Scoped Base Reset
   NOT a global "*" reset. Everything is confined to the .sf-page wrapper that
   the storefront layout puts around all home content (header, drawer, main, footer).
   Bootstrap's offcanvas/modal markup lives OUTSIDE .sf-page and is untouched.
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

/* ---------------------------------------------------------------------------
   One scroller for the page.

   The legacy sheets layouts/main.blade.php still loads combine into a double
   scrollbar: nav.css sets `html, body { overflow-x: hidden }` and main.css sets
   `html, body { height: 100% }`. Hiding one axis forces the other to `auto`, so
   <body> became a viewport-tall scroll box nested inside a page that ALSO
   scrolled — and anything absolutely positioned against the root (visually
   hidden labels, for one) stretched that outer scroll with blank space. On the
   checkout that was ~390px of empty extra scrolling. It also meant `window`
   never scrolled, so storefront-chrome.js's scroll listeners (header hide/show,
   --sf-header-h) were dead on every inner page.

   `clip` stops sideways overflow exactly like `hidden` did, but without making
   a scroll container, so the viewport is the only scroller again. Browsers that
   predate `clip` ignore it and keep the old behaviour. This file loads after
   the legacy sheets, so these win the tie at equal specificity. */
html,
body {
    overflow-x: clip;
}

body {
    height: auto;
}

.sf-page,
.sf-page *,
.sf-page *::before,
.sf-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------------------------------------
   Bootstrap grid shim — required, do not delete.

   The reset above scores (0,1,0), which is EXACTLY the specificity of Bootstrap's
   `.container`, `.row` and `.row > *`. Because storefront.css loads after Bootstrap,
   our `margin:0; padding:0` would win the tie and silently strip `.container`'s
   auto-centering and every grid gutter. Bootstrap's spacing/display utilities
   (py-*, gap-*, mb-*, d-*) are `!important` and survive on their own; these three
   layout rules are the only ones that don't, so we re-assert them at (0,2,0).
   --------------------------------------------------------------------------- */
.sf-page .container,
.sf-page .container-fluid,
.sf-page .container-sm,
.sf-page .container-md,
.sf-page .container-lg,
.sf-page .container-xl,
.sf-page .container-xxl {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-right: auto;
    margin-left: auto;
}

.sf-page .row {
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}


.sf-page .row > * {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
}

/* Vertical gap when the header row wraps (search drops below the logo on phones).
   `row-gap` instead of Bootstrap's `gy-*`, which fakes the gap with a negative
   margin-top on .row cancelled by a positive one on each column — that negative
   margin escapes a padding-less parent and drags the whole band upward. */
.sf-header-main .row {
    row-gap: 8px;
}

/* Keep the header bands on the same rail as .sf-section-container (1280px),
   rather than Bootstrap's 1320px default. */
/* ---------- One frame for every band ----------
   Every full-width band on the site shares one rail: 1280px wide, 24px in from
   each side. Before this, three rails were in play — Bootstrap's .container
   (1140px at xl, 1320px at xxl, 12px padding), the header's 1280px override
   with Bootstrap's 12px padding, and .sf-section-container at 1280px/24px — so
   the logo, the nav, the breadcrumb and the page content each started at a
   different x, and inner pages sat visibly inset from the header.

   (0,2,0) via .sf-page so it beats both Bootstrap's breakpoint steps and the
   .sf-page .container gutter rule above. The bare .container selector covers
   legacy pages that do not carry .sf-page. */
.container,
.sf-page .container,
.sf-topbar .container,
.sf-main-header .container,
.sf-nav-bar .container {
    max-width: 1280px;
    padding-left: 24px;
    padding-right: 24px;
}

.sf-page {
    font-family: var(--font-body);
    background-color: var(--color-bg-base);
    color: var(--color-text-dark);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------------------
   Chrome-only scope, for layouts/main.blade.php.

   That layout keeps its legacy per-page stylesheets, so the .sf-page reset can
   only be allowed near the header and footer — never around @yield('content'),
   where `margin:0; padding:0` would flatten 26 existing pages. So the chrome
   gets its own small .sf-page wrappers.

   But `.sf-main-header` is `position: sticky`, and a sticky box can only travel
   inside its parent. A wrapper that hugs the header would give it zero travel
   and the header would scroll straight off. `display: contents` removes the
   wrapper's own box from the layout tree, so the header's containing block is
   still <body> — while the .sf-page SELECTORS keep matching, because selectors
   match the DOM, not the box tree. Inherited properties still reach the chrome;
   only .sf-page's own background has nothing to paint on, which is moot here.
   --------------------------------------------------------------------------- */
.sf-page--contents {
    display: contents;
}

/* These are element-level resets, so they must stay at element specificity (0,0,1) —
   exactly like the bare `img {}` / `a {}` / `button {}` rules in the source design.
   Writing them as `.sf-page img` would score (0,1,1) and beat every single-class rule:
   `height:auto` would defeat `.sf-header-logo-img{height:42px}` and `background:none`
   would defeat `.sf-btn-primary`. `:where()` adds zero specificity, so scoping is free. */
:where(.sf-page) h1,
:where(.sf-page) h2,
:where(.sf-page) h3,
:where(.sf-page) h4,
:where(.sf-page) h5,
:where(.sf-page) h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.25;
}

:where(.sf-page) a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

:where(.sf-page) img {
    max-width: 100%;
    height: auto;
    display: block;
}

:where(.sf-page) button,
:where(.sf-page) input,
:where(.sf-page) select,
:where(.sf-page) textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

:where(.sf-page) button {
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

/* Visually Hidden Utility for Screen Readers */
.sf-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Utility Layouts */
.sf-section-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.sf-text-center {
    text-align: center;
}

/* Buttons System */
.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    gap: 8px;
    text-align: center;
}

/* --ink, not --primary: the brand red clears AA at 5.10:1, but only just, and a
   600-weight label under it has no margin. The deeper #B91C20 is 6.53:1 and
   visually near-identical. */
.sf-btn-primary {
    background-color: var(--color-primary-ink);
    color: #FFFFFF;
    border: 2px solid var(--color-primary-ink);
}

.sf-btn-primary:hover {
    color: #FFFFFF !important;
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------------------------
   Focus indicators.

   Two rules conspire to erase focus rings, and both have to be beaten:
     1. storefront.css's own reset — `:where(.sf-page) button { outline: none }`
     2. variables.css:59 — `*:focus { outline: none !important }`, which the legacy
        layout still loads on every non-home page.
   Because (2) carries !important, an ordinary declaration cannot win no matter how
   specific it is; these must be !important too. They then out-specify it (0,2,0 vs
   (0,0,0)) and take effect. :focus-visible so a mouse click does not draw a ring.
   --------------------------------------------------------------------------- */
.sf-page .sf-btn:focus-visible,
.sf-page a:focus-visible,
.sf-page button:focus-visible,
.sf-page [tabindex]:focus-visible,
.sf-page summary:focus-visible {
    outline: 2px solid var(--color-secondary) !important;
    outline-offset: 3px !important;
}

/* Inputs carry their own coloured ring, so the outline sits inside the field rather
   than doubling up outside it. */
.sf-page input:focus-visible,
.sf-page select:focus-visible,
.sf-page textarea:focus-visible {
    outline: 2px solid var(--color-secondary) !important;
    outline-offset: -2px !important;
}

.sf-btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.sf-btn-secondary:hover {
    background-color: var(--color-secondary);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 19, 19, 0.1);
}

.sf-btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.sf-btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-width: 1.5px;
}

.sf-btn-full {
    width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* ---------- Row 1: utility top bar ----------
   Layout (container/row/col, flex, gaps, responsive visibility) is Bootstrap's.
   Everything below is skin only, so the structure can't drift. */
.sf-topbar {
    /* Block formatting context. This band has no top padding or border, so any top margin
       on a descendant would collapse out of it and drag the band upward — which is exactly
       what happened when the row still used Bootstrap's gy-* gutters (they apply a negative
       margin-top to .row). The gutters are gone, but the BFC keeps the band immune. */
    display: flow-root;
    background-color: var(--color-secondary);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 500;
}

.sf-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-weight: 600;
    white-space: nowrap;
}

.sf-topbar-link:hover {
    color: var(--color-primary);
}

.sf-topbar-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.sf-trust-item {
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.sf-trust-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--color-primary);
}

/* Lead item is the promotional hook, so it carries the brand colour. */
.sf-trust-item--accent {
    color: var(--color-primary);
    font-weight: 700;
}

/* ---------- Row 2 + 3 live inside the one sticky <header> ---------- */
.sf-main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-bg-base);
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-main-header.sf-scrolled {
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.10);
}

/* Scrolling down slides the whole header out; scrolling up brings it back.
   storefront-chrome.js adds and removes the class on direction. Translating by
   its own height (not a fixed value) keeps the two rows in step whatever the
   breakpoint does to them. */
.sf-main-header.sf-header-hidden {
    transform: translateY(-100%);
}

/* Someone who has asked for less motion gets a header that simply stays put —
   a full-width element sliding past on every scroll is exactly what that
   preference is about. */
@media (prefers-reduced-motion: reduce) {
    .sf-main-header {
        transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sf-main-header.sf-header-hidden {
        transform: none;
    }
}

/* Row 2: logo | search | account + cart  (grid + utilities do the layout) */
.sf-header-main {
    /* Same reason as .sf-topbar: a descendant's top margin must not collapse out and
       pull the sticky header up over the utility bar. */
    display: flow-root;
    background-color: var(--color-bg-base);
    border-bottom: 1px solid var(--color-border);
}

/* The logo is a 5:1 SVG, so its height dictates its width. At 48px it claims ~240px,
   which on a phone leaves no room for the utilities and pushes the hamburger
   off-screen. Step the height down rather than hiding controls. */
/* Logo and tagline stack in a flex column. align-items must be flex-start: the
   default `stretch` widened the <img> box to the tagline beneath it, and
   object-fit: contain then centred the artwork inside that wider box — which is
   why the logo looked shifted right of its own tagline. */
.sf-header-brand {
    align-items: flex-start;
}

.sf-header-logo-img {
    height: 36px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-header-logo-img:hover {
    transform: scale(1.03);
}

@media (max-width: 991.98px) {
    .sf-header-logo-img {
        height: 32px;
    }
}

/* Keep logo + quotes + cart + hamburger on ONE line down to ~375px. They were
   overflowing that row by a couple of pixels, which dropped the utilities onto
   their own line and made the header 152px tall on a phone.
   The matching pill overrides live at the end of this file: .sf-quotes-btn and
   .sf-cart-btn are defined further down, so an override here would lose on
   source order despite the media query. */
@media (max-width: 575.98px) {
    .sf-header-logo-img {
        height: 26px;
    }
}

/* ---------- Search ---------- */
.sf-header-search {
    width: 100%;
    max-width: 640px;
}

.sf-search-field {
    display: flex;
    align-items: stretch;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* Focus: just a darker border — no red, no glow ring. The input's own outline is
   removed because the field's border now marks focus; the submit button keeps its
   focus ring for keyboard users. */
.sf-search-field:focus-within {
    border-color: #64748B;
    box-shadow: none;
}

.sf-search-field .sf-search-input:focus,
.sf-search-field .sf-search-input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* The search field is the tallest thing in row 2, so its height sets the header's. */
.sf-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0 14px;
    height: 38px;
    font-size: 0.86rem;
    color: var(--color-text-dark);
}

.sf-search-input::placeholder {
    color: var(--color-text-muted);
}

.sf-search-submit {
    flex-shrink: 0;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    color: #FFFFFF;
    transition: var(--transition-smooth);
}

.sf-search-submit:hover {
    background-color: var(--color-primary);
}

.sf-search-submit svg {
    width: 20px;
    height: 20px;
}

/* Left-aligned by default (the reset makes img a block, and its <a> wrapper is
   d-inline-block). Knocked back from 42px so it doesn't outweigh the column. */
.sf-footer-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-footer-logo-img:hover {
    transform: scale(1.05);
}


/* ---------- Row 3: the navigation band ----------
   Plain white band with a hairline top border, holding centred text links. A
   hovered link turns brand red; the current section gets a red underline (no
   filled background). Items with sub-collections carry a chevron that flips
   while their dropdown is open. */
.sf-nav-bar {
    background-color: var(--color-bg-base);
    border-bottom: 1px solid var(--color-border);
}

/* Wraps onto another centred row when the admin's items outgrow one line, so
   nothing is hidden off the right edge. The header's height changes with the
   row count; storefront-chrome.js republishes --sf-header-h on resize, and the
   band is hidden below lg anyway. */
.sf-nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 4px;
    margin: 0;
    padding: 0;
    border-top: 1px solid #F1F5F9;
    min-width: 0;
    overflow: visible;
}

.sf-nav-item {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    text-align: left;
}

.sf-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 11px 14px 9px;
    border-bottom: 3px solid transparent;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}

/* (0,3,0) on purpose: inner pages still load variables.css, whose global
   `a:hover { color: var(--primary) }` would otherwise win the text colour. */
.sf-nav-bar .sf-nav-link:hover {
    color: var(--color-primary-ink);
    text-decoration: none;
}

/* Current section: a red underline, nothing more. */
.sf-nav-bar .sf-nav-link.sf-nav-link-active {
    color: var(--color-secondary);
    border-bottom-color: var(--color-primary);
}

/* Lives in the header utilities beside the cart, not in the nav band.
   Height matches .sf-cart-btn / .sf-quotes-btn; the 2px .sf-btn border is inside it. */
.sf-header-cta {
    flex-shrink: 0;
    height: 40px;
    font-size: 0.8rem;
    padding: 0 16px;
    white-space: nowrap;
}

/* Chevron on items with a dropdown (w-3 h-3 ml-1), flipped while it is open. */
.sf-dropdown-chevron {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-nav-item:hover .sf-dropdown-chevron,
.sf-nav-item.sf-active .sf-dropdown-chevron {
    transform: rotate(180deg);
}

/* Dropdown. The outer box is invisible: its 8px top padding bridges the gap
   under the pill, so the pointer can travel down without the menu closing.
   Opens on hover; storefront-chrome.js adds .sf-active for keyboard focus. */
.sf-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 200;
    display: none;
    padding-top: 8px;                           /* pt-2 */
}

.sf-nav-item:hover > .sf-dropdown-menu,
.sf-nav-item.sf-active > .sf-dropdown-menu {
    display: block;
}

/* Near the right edge, open leftward so the panel stays on screen
   (storefront-chrome.js measures and sets the class as it opens). */
.sf-nav-item.sf-dropdown-left > .sf-dropdown-menu {
    left: auto;
    right: 0;
}

.sf-dropdown-panel {
    min-width: 260px;
    margin: 0;
    padding: 8px 0;                             /* py-2 */
    list-style: none;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;                  /* border-gray-200 */
    border-radius: 12px;                        /* rounded-xl */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* shadow-xl */
}

.sf-dropdown-panel a {
    display: block;
    padding: 8px 16px;                          /* px-4 py-2 */
    font-family: var(--font-heading);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 400;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-dropdown-panel a:hover,
.sf-dropdown-panel a:focus-visible,
.sf-dropdown-panel a.is-current {
    background-color: #FEF2F2;                  /* red-50 */
    color: #DC2626;                             /* brand-red */
    text-decoration: none;
}

/* Extracted inline: dropdown divider <li> */
.sf-dropdown-divider {
    border-top: 1px solid var(--color-border);
    margin: 6px 0;
    list-style: none;
}

/* Extracted inline: "Shop All ... ->" link */
.sf-view-all-link {
    font-weight: 700;
    color: var(--color-primary);
}

/* ---------- Row 2 right cluster: account, quotes, cart ---------- */
.sf-account-links {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.sf-account-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 6px;
    white-space: nowrap;
}

.sf-account-link:hover {
    color: var(--color-primary);
}

.sf-account-link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.sf-account-sep {
    color: var(--color-border-dark);
    user-select: none;
}

/* Quotes opens the Bootstrap offcanvas; keep it visually secondary to the cart. */
/* Quotes, cart and the DIY CTA share a 40px baseline so the cluster reads as one row. */
.sf-quotes-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 13px;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.sf-quotes-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.sf-quotes-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Icon-only round button on a light grey disc; the count rides on its corner. */
/* Phone/tablet account shortcut: the cart button's round grey shape. */
.sf-account-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-bg-subtle);
    color: var(--color-secondary);
    transition: var(--transition-smooth);
}

.sf-account-btn svg {
    width: 19px;
    height: 19px;
}

.sf-account-btn:hover {
    background-color: var(--color-secondary);
    color: #FFFFFF;
}

/* Signed in: a red ring says "this is you". */
.sf-account-btn--signed-in {
    box-shadow: inset 0 0 0 2px var(--color-primary);
    color: var(--color-primary-ink);
}

.sf-cart-btn {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-bg-subtle);
    color: var(--color-secondary);
    transition: var(--transition-smooth);
}

.sf-cart-btn:hover {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.sf-cart-btn svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

/* Pulled in slightly vs a square button: on a circle, -6px would float free of the edge. */
.sf-cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background-color: var(--color-primary);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Ring in the page colour so the badge reads as detached from the button. */
    border: 2px solid var(--color-bg-base);
    transition: var(--transition-smooth);
}

.sf-cart-btn:hover .sf-cart-count {
    background-color: #FFFFFF;
    color: var(--color-primary);
}

/* Mobile Hamburger Toggle */
.sf-mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
    padding: 0;
}

.sf-hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-smooth);
    display: block;
}

.sf-mobile-nav-toggle.sf-active .sf-hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.sf-mobile-nav-toggle.sf-active .sf-hamburger-line:nth-child(2) {
    opacity: 0;
}

.sf-mobile-nav-toggle.sf-active .sf-hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
/* --sf-header-h is published by storefront.js from the sticky header's real height,
   so the drawer sits flush beneath it at every breakpoint. */
/* Pinned top-AND-bottom rather than given a 100vh height: on a phone 100vh is the
   height with the browser's toolbars hidden, so the panel either ran under the
   bottom toolbar or stopped short of the screen edge. Solid white (it was 99%
   white, and with the page still scrolling underneath, the content showed
   through), and its own scroll never chains to the page. */
.sf-mobile-drawer {
    position: fixed;
    top: var(--sf-header-h, 80px);
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #FFFFFF;
    z-index: 1000;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
    border-top: 1px solid var(--color-border);
    padding: 30px 24px calc(30px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* visibility (not just the off-screen transform) keeps the closed drawer's links
   out of the tab order. */
.sf-mobile-drawer.sf-active {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* storefront-chrome.js sets this on <html> while the drawer is open: the page
   behind stays put instead of scrolling under the menu. Only <html>: hidden
   overflow on <body> as well made the body its own scroll container, so the
   sticky header pinned to it and jumped off-screen whenever the menu was
   opened partway down the page. */
html.sf-drawer-open {
    overflow: hidden;
}

/* ---------- Back to top ----------
   Brand-red disc, bottom-right. Hidden (and out of the tab order) until
   storefront-chrome.js adds .is-visible; kept out of the way while the mobile
   menu or the listing's filter panel is open. Sits under drawers and modals. */
.sf-back-to-top {
    position: fixed;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 10px 24px -8px rgba(215, 35, 40, 0.55), 0 2px 6px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s, background-color 0.2s ease;
}

.sf-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.sf-back-to-top:hover {
    background-color: var(--color-primary-ink);
}

.sf-back-to-top:hover svg {
    transform: translateY(-2px);
}

.sf-back-to-top svg {
    transition: transform 0.2s ease;
}

.sf-back-to-top:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

html.sf-drawer-open .sf-back-to-top {
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 575.98px) {
    .sf-back-to-top {
        right: max(16px, env(safe-area-inset-right, 0px));
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-back-to-top,
    .sf-back-to-top.is-visible,
    .sf-back-to-top svg { transition: none; }
}

/* Drawer content: every desktop nav link, two to a row at body weight, so the
   whole menu fits on a phone screen (it was one 1.25rem bold link per row, and
   most of the list sat below the fold). Rows stay 44px tall for touch. */
.sf-mobile-drawer {
    gap: 18px;
    padding-top: 18px;
}

.sf-mobile-drawer-label {
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* One link per row: a single column scans top to bottom like a menu should. */
.sf-mobile-drawer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.sf-mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    border-bottom: 1px solid var(--color-bg-subtle);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-secondary);
}

.sf-mobile-nav-link:hover,
.sf-mobile-nav-link.is-active {
    color: var(--color-primary-ink);
}

.sf-mobile-nav-link.is-active { font-weight: 600; }

/* A menu item's dropdown pages, listed under it in the drawer. The item and
   its list share one divider, below the list. */
.sf-mobile-nav-link:has(+ .sf-mobile-subnav) { border-bottom: 0; }

.sf-mobile-subnav {
    padding: 2px 0 8px 14px;
    border-bottom: 1px solid var(--color-bg-subtle);
}

.sf-mobile-subnav__link {
    display: flex;
    align-items: center;
    min-height: 36px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: #475569;
    text-decoration: none;
}

.sf-mobile-subnav__link:hover,
.sf-mobile-subnav__link.is-active {
    color: var(--color-primary-ink);
}

.sf-mobile-subnav__link.is-active { font-weight: 600; }

/* Login / Register (or name / Logout): two quiet buttons side by side. */
.sf-mobile-drawer-account {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sf-mobile-drawer-account__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sf-mobile-drawer-account__link:hover {
    border-color: var(--color-secondary);
}

.sf-mobile-drawer .sf-mobile-drawer-cta {
    flex-shrink: 0;
    width: 100%;
    min-height: 48px;
    color: #FFFFFF;
}

/* Short phones (≈740px tall and under): a little less air so the account
   buttons and the quote CTA stay on screen too. Rows stay well above the 24px
   minimum touch target. */
@media (max-height: 780px) {
    .sf-mobile-drawer { gap: 10px; padding-top: 12px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
    .sf-mobile-nav-link { min-height: 38px; padding: 4px 0; }
    .sf-mobile-drawer-account__link { min-height: 40px; }
    .sf-mobile-drawer .sf-mobile-drawer-cta { min-height: 44px; }
}

/* ==========================================================================
   HERO — integrated above-the-fold category grid

   Rebuilt to the approved mockup. Replaces the old two-column "editorial
   temperature field" hero and the entire badge configurator panel: the tabs,
   the five control sets, the live badge preview, the material swatches and the
   skin gradients all went with it, along with the #designer anchor.

   The ground is a dot matrix over white with one warm blur behind the headline.
   Four tiles sit under a centred editorial header, each carrying a CSS
   "specimen" of the product it sells.
   ========================================================================== */
.sf-hero {
    position: relative;
    overflow: hidden;
    padding: 26px 0 32px;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-bg-base);
    /* 20px dot matrix, as the mockup's .hero-pattern paints it. */
    background-image: radial-gradient(var(--color-border-dark) 0.85px, transparent 0.85px);
    background-size: 20px 20px;
}

/* Warm wash behind the headline. A pseudo-element would sit inside the section's
   stacking context; this is a real element the markup places first, so it cannot
   trap anything above it. */
.sf-hero__glow {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 92vw);
    height: 240px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(254, 226, 226, 0.55) 0%, rgba(255, 251, 235, 0.32) 45%, transparent 100%);
    filter: blur(48px);
    pointer-events: none;
    z-index: 0;
}

.sf-hero__inner {
    position: relative;
    z-index: 1;
}

/* ---------- Centred editorial header ---------- */
.sf-hero__head {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.sf-hero__pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 5px 14px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.sf-hero__stars {
    color: #F59E0B;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.sf-hero__pill-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-border-dark);
}

.sf-hero__pill-main {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1E293B;
}

.sf-hero__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10B981;
    animation: sfPulseSoft 2.5s ease-in-out infinite;
}

.sf-hero__pill-live {
    font-size: 0.69rem;
    font-weight: 700;
    color: #047857;
}

@keyframes sfPulseSoft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.15); }
}

/* text-2xl → lg:text-[42px] in the mockup, at weight 900. */
.sf-hero__title {
    font-size: clamp(1.5rem, 2.2vw + 0.95rem, 2.625rem);
    font-weight: 900;
    line-height: 1.17;
    letter-spacing: -0.028em;
    color: #0F172A;
    text-wrap: balance;
}

/* Gradient text. The fallback colour is painted first, so if a browser ignores
   background-clip the headline stays readable rather than going transparent. */
.sf-hero__title-accent {
    display: block;
    color: var(--color-primary-ink);
    background-image: linear-gradient(90deg, #0B1120 0%, var(--color-primary) 55%, #1E293B 100%);
    -webkit-background-clip: text;
            background-clip: text;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .sf-hero__title-accent {
        color: transparent;
    }
}

.sf-hero__lede {
    max-width: 44rem;
    margin: 10px auto 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
}

.sf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.sf-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.sf-hero__cta--primary {
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(215, 35, 40, 0.18);
}

.sf-hero__cta--primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.sf-hero__cta--ghost {
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border-dark);
    color: #1E293B;
    font-weight: 600;
}

.sf-hero__cta--ghost:hover {
    background-color: var(--color-bg-surface);
    border-color: #94A3B8;
    color: #0F172A;
}

.sf-hero__cta--ghost svg { color: var(--color-primary-ink); }

.sf-hero__cta--quiet {
    background-color: var(--color-bg-subtle);
    border: 1px solid transparent;
    color: #334155;
    font-weight: 500;
}

.sf-hero__cta--quiet:hover {
    background-color: var(--color-border);
    color: #0F172A;
}

/* ---------- Tile grid ---------- */
.sf-hero__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.sf-tile {
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    transition: var(--transition-smooth);
}

.sf-tile:hover {
    border-color: rgba(215, 35, 40, 0.5);
    box-shadow: 0 16px 32px -10px rgba(15, 23, 42, 0.12), 0 2px 6px -1px rgba(15, 23, 42, 0.06);
}

/* One link per tile: a single focus stop covering the whole card. */
.sf-tile__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px;
    text-decoration: none;
}

.sf-tile__link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -4px;
    border-radius: 16px;
}

/* ---------- Specimen stage ---------- */
.sf-tile__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    padding: 10px;
    background-color: rgba(241, 245, 249, 0.9);
    border: 1px solid var(--color-bg-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.sf-tile:hover .sf-tile__stage--red   { background-color: rgba(254, 242, 242, 0.75); }
.sf-tile:hover .sf-tile__stage--blue  { background-color: rgba(239, 246, 255, 0.75); }
.sf-tile:hover .sf-tile__stage--amber { background-color: rgba(255, 251, 235, 0.8); }

.sf-tile__callout {
    position: absolute;
    right: 8px;
    bottom: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 0.56rem;
    font-weight: 700;
    color: #64748B;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.sf-tile__callout--blue  { background-color: #EFF6FF; color: #1D4ED8; }
.sf-tile__callout--amber { background-color: #FFFBEB; color: #92400E; }
.sf-tile__callout--brass { background-color: rgba(254, 243, 199, 0.8); color: #78350F; }

/* ---------- Specimen 1: brushed titanium badge ---------- */
.sf-spec {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-tile:hover .sf-spec { transform: scale(1.05); }

.sf-spec--titanium {
    position: relative;
    width: 100%;
    max-width: 200px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    background: linear-gradient(135deg, #F1F5F9 0%, #CBD5E1 32%, #E2E8F0 55%, #94A3B8 80%, #CBD5E1 100%);
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.28), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
}

/* Brushed-metal grain: 1px vertical ruling over the gradient. */
.sf-spec--titanium::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: repeating-linear-gradient(90deg,
        rgba(255, 255, 255, 0.15) 0px, rgba(255, 255, 255, 0.15) 1px,
        rgba(0, 0, 0, 0.03) 1px, rgba(0, 0, 0, 0.03) 2px);
    pointer-events: none;
}

.sf-spec__row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.sf-spec__brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #0F172A;
}

.sf-spec__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.sf-spec__tag {
    padding: 0 4px;
    border-radius: 3px;
    background-color: rgba(15, 23, 42, 0.1);
    font-size: 0.44rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1E293B;
}

.sf-spec__name {
    position: relative;
    z-index: 1;
    margin-top: 4px;
    font-size: 0.69rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #020617;
}

.sf-spec__role {
    position: relative;
    z-index: 1;
    font-size: 0.5rem;
    font-weight: 600;
    color: #475569;
}

/* ---------- Specimen 2: PVC ID card ---------- */
.sf-spec__loop {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 8px;
    border: 1px solid #94A3B8;
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
    background-color: #E2E8F0;
}

.sf-spec--idcard {
    width: 150px;
    padding: 7px 9px;
    background-color: #FFFFFF;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 8px;
    box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.15), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
}

.sf-spec__row--ruled {
    padding-bottom: 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--color-bg-subtle);
}

.sf-spec__org {
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #1D4ED8;
}

.sf-spec__led {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #10B981;
}

.sf-spec__idbody {
    display: flex;
    align-items: center;
    gap: 7px;
}

.sf-spec__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 30px;
    border-radius: 4px;
    background-color: var(--color-border);
    color: #64748B;
}

.sf-spec__idlines { display: flex; flex-direction: column; }

.sf-spec__idname {
    font-size: 0.56rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0F172A;
}

.sf-spec__idmeta { font-size: 0.44rem; color: #64748B; }

.sf-spec__idcode {
    margin-top: 1px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.44rem;
    color: #94A3B8;
}

/* ---------- Specimen 3: hard-enamel pin ---------- */
.sf-spec__pinwrap {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-tile:hover .sf-spec__pinwrap { transform: scale(1.1); }

.sf-spec--pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 4px;
    border: 2px solid #FCD34D;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #FEF08A, #D97706 70%, #92400E 100%);
    box-shadow: 0 6px 16px -2px rgba(180, 83, 9, 0.35);
}

.sf-spec__pincore {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #FBBF24;
    border-radius: 50%;
    background-color: #0F172A;
    color: #FCD34D;
    text-align: center;
}

.sf-spec__pinyears { font-size: 0.5rem; font-weight: 900; }

.sf-spec__pinlabel {
    font-size: 0.34rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sf-spec__pinflag {
    position: absolute;
    top: 0;
    right: -10px;
    padding: 0 4px;
    border: 1px solid #FCD34D;
    border-radius: 3px;
    background-color: #FEF3C7;
    font-size: 0.44rem;
    font-weight: 700;
    color: #78350F;
}

/* ---------- Specimen 4: marine brass plaque ---------- */
.sf-spec--brass {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 162px;
    padding: 8px;
    border: 2px solid rgba(253, 224, 71, 0.9);
    border-radius: 6px;
    background: linear-gradient(135deg, #FEF08A 0%, #EAB308 25%, #CA8A04 50%, #D97706 75%, #FEF9C3 100%);
    box-shadow: 0 10px 24px -4px rgba(120, 53, 15, 0.3), inset 0 1px 2px 0 rgba(254, 240, 138, 0.7);
    text-align: center;
}

/* Raking highlight across the polished face. */
.sf-spec--brass::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 60%, rgba(255, 255, 255, 0.3) 100%);
    pointer-events: none;
}

.sf-spec__bolt {
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid #FCD34D;
    border-radius: 50%;
    background-color: #451A03;
}

.sf-spec__bolt--tl { top: 4px; left: 4px; }
.sf-spec__bolt--tr { top: 4px; right: 4px; }
.sf-spec__bolt--bl { bottom: 4px; left: 4px; }
.sf-spec__bolt--br { bottom: 4px; right: 4px; }

.sf-spec__plaque-org,
.sf-spec__plaque-main,
.sf-spec__plaque-est {
    position: relative;
    z-index: 1;
    color: #451A03;
}

.sf-spec__plaque-org {
    font-size: 0.4rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sf-spec__plaque-main {
    margin-top: 2px;
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.sf-spec__plaque-est {
    margin-top: 2px;
    font-size: 0.34rem;
    font-weight: 600;
    color: #78350F;
}

/* ---------- Tile body ---------- */
.sf-tile__body {
    flex: 1;
    margin-top: 12px;
}

.sf-tile__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.sf-tile__eyebrow {
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sf-tile__eyebrow--red   { color: var(--color-primary-ink); }
.sf-tile__eyebrow--blue  { color: #2563EB; }
.sf-tile__eyebrow--amber { color: #B45309; }
.sf-tile__eyebrow--slate { color: #334155; }

.sf-tile__price {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
}

.sf-tile__price strong {
    font-size: 0.82rem;
    font-weight: 900;
}

.sf-tile__title {
    margin-top: 2px;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #0F172A;
    transition: var(--transition-smooth);
}

.sf-tile:hover .sf-tile__title { color: var(--color-primary-ink); }

/* Two lines reserved and clamped, so the four tiles stay the same height
   whatever length their copy runs to. */
.sf-tile__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
            line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(0.72rem * 1.6 * 2);
    margin-top: 4px;
    font-size: 0.72rem;
    line-height: 1.6;
    color: #64748B;
}

.sf-tile__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding-top: 11px;
    border-top: 1px solid var(--color-bg-subtle);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-primary-ink);
}

.sf-tile__foot svg {
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-tile:hover .sf-tile__foot svg { transform: translateX(4px); }

/* ---------- Trust ribbon ---------- */
.sf-hero__ribbon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    margin: 24px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
}

.sf-hero__ribbon-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.sf-hero__ribbon-item--promise strong { color: #0F172A; }

.sf-hero__au {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #0F172A;
    font-size: 0.5rem;
    font-weight: 900;
    color: #FFFFFF;
}

.sf-hero__tick {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10B981;
}

/* ---------- Hero responsive ---------- */
@media (max-width: 1100px) {
    .sf-hero__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .sf-hero__ribbon {
        justify-content: flex-start;
    }
}

@media (max-width: 580px) {
    .sf-hero {
        padding: 20px 0 26px;
    }

    .sf-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    /* Three CTAs side by side are unreadable at this width. */
    .sf-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sf-hero__cta {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-hero__pulse {
        animation: none;
    }

    .sf-tile:hover .sf-spec,
    .sf-tile:hover .sf-spec__pinwrap,
    .sf-tile:hover .sf-tile__foot svg {
        transform: none;
    }
}

/* ==========================================================================
   Value Propositions — four cards
   Matches the mockup: a slate-50 panel per promise with a tinted brand-red
   icon chip above the heading. Replaces the "editorial spec sheet" treatment
   (numbered 01-04 rows on a gap-drawn hairline grid, uppercase eyebrows, no
   card chrome), which the mockup does not have.
   ========================================================================== */
.sf-value-props-section {
    padding: 56px 0;
    background-color: var(--color-bg-base);
    border-bottom: 1px solid var(--color-border);
}

.sf-props-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.sf-prop-card {
    padding: 24px;
    background-color: var(--color-bg-surface);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.sf-prop-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.sf-prop-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 12px;
    background-color: #FEE2E2;
    color: var(--color-primary);
}

.sf-prop-card h3 {
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
}

.sf-prop-card p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: #475569;
}

@media (max-width: 1024px) {
    .sf-props-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .sf-props-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sf-prop-card {
        padding: 20px;
    }
}

/* ==========================================================================
   Shared Section Header
   ========================================================================== */
.sf-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sf-section-header h2 {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
}

.sf-section-header p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

/* Extracted inline: header margin-bottom:40px + centered (reviews/faq/value-props) */
.sf-section-header--center {
    margin-bottom: 40px;
    text-align: center;
}

/* Extracted inline: section subtitle <p> margin-top (colour redundant but harmless) */
.sf-section-subtitle {
    color: var(--color-text-muted);
    margin-top: 10px;
}


.sf-categories-section {
    padding: 30px 0;
    background-color: var(--color-bg-subtle);
}


.sf-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.sf-cat-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 24px;
    background-color: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sf-cat-tabs::-webkit-scrollbar {
    display: none;
}

.sf-cat-tabs .sf-tab-btn {
    flex: 1 0 auto;
    padding: 8px 14px;
    border: 0;
    border-radius: 7px;
    background-color: transparent;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
    transition: var(--transition-smooth);
}

.sf-cat-tabs .sf-tab-btn:hover {
    color: #0F172A;
}

.sf-cat-tabs .sf-tab-btn.sf-active {
    background-color: var(--color-bg-base);
    color: #0F172A;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.sf-cat-panel {
    display: none;
}

.sf-cat-panel.sf-active {
    display: grid;
}

.sf-cat-card {
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* One negative-spread drop — the hero-card idiom. A whisper of contact shadow on
   lift, never a halo. */
.sf-cat-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-dark);
    box-shadow: 0 18px 40px -28px rgba(19, 19, 19, 0.35);
}

/* The whole card is the link, so height:100% is what makes short and tall cards
   both fill their grid row and keep their footers aligned. */
.sf-cat-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Inset, because the card clips to its own radius and an outset ring would be cut. */
.sf-cat-card__link:focus-visible {
    outline: 2px solid var(--color-primary) !important;
    outline-offset: -3px !important;
    border-radius: var(--border-radius-lg);
}

/* 4:3, not square. At four across the cards are ~290px wide, so a 1:1 media box
   was 290px of image before the body even started and the card read as a tower.
   This takes about a quarter off the card height. The assets are mostly square and
   contained, so they now centre with a little white either side — invisible,
   because the box and the photography share the same white ground. */
/* A fixed 208px panel on a slate gradient, as the mockup draws it (h-52,
   bg-gradient-to-tr from-slate-200 to-slate-100), with the photography inset
   and contained rather than bled to the edges. */
.sf-cat-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 208px;
    padding: 22px;
    /* background-image: linear-gradient(to top right, #E2E8F0, #F1F5F9); */
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

/* contain, never cover: a badge cropped at its edges is a defect, and the white
   letterbox is invisible against the white box. (0,2,1) beats the
   `:where(.sf-page) img` reset (0,0,1), so its height:auto cannot collapse the box. */
.sf-cat-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-cat-card:hover .sf-cat-card__media img {
    transform: scale(1.05);
}

/* The old pill was invisible: a 94%-white fill floating over photography that is itself
   shot on white, with all its separation resting on a #E2E8F0 hairline worth 1.23:1 —
   far under the 3:1 a non-text boundary needs.

   The contrast now lives in an opaque charcoal fill, and that fill is one half of a
   TWO-TONE edge. The dark fill separates from any light background (18.58:1 on white,
   13.68:1 on the grey placeholder); the light keyline separates from any dark one
   (11.72:1 on a near-black coin). Their 3:1 coverage ranges overlap — fill covers
   backgrounds above L=0.12, keyline below L=0.19 — so whatever colour of product sits
   under the corner, one of the two edges carries it. Swept worst case: 3.54:1.

   Flat fill and a hairline. No shadow, no glow: a halo behind a chip is exactly the
   crutch this two-tone edge exists to avoid. */
.sf-cat-card__price {
    position: absolute;
    left: 12px;
    bottom: 12px;
    /* The <img> takes a transform on hover, which gives it a stacking context and lets it
       paint in the positioned layer. This keeps the chip above it regardless. */
    z-index: 2;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 6px 11px;
    background-color: var(--color-secondary);
    border: 1px solid var(--color-border-dark);
    /* 6px, not a 999px pill: this reads as a precise spec chip rather than a sale sticker. */
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    line-height: 1;
    white-space: nowrap;
}

/* The qualifier, deliberately quieter than the number it qualifies. 7.19:1 on the fill. */
.sf-cat-card__price-from {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* The payload. It leads on lightness rather than size, so it never out-shouts the red
   "Shop" CTA below. tabular-nums keeps $9.00 and $1,299.00 optically stable across a row. */
.sf-cat-card__price-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.sf-cat-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

/* Title and count share the top line: the count is meta, so it sits beside the
   name rather than competing with the CTA down in the footer. */
.sf-cat-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.sf-cat-card__title {
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.sf-cat-card__count {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* Three lines, not two: the seeded collection blurbs run to two or three
   sentences, and a 2-line clamp cut most of them mid-phrase. Clamping at all is
   what keeps one long blurb from setting the height of its whole row. */
/* Two lines, ellipsised, height reserved. The min-height keeps a one-line or empty
   blurb from making its card shorter than its neighbours. The markup feeds this
   plain text (strip_tags), so the clamp always sees one run of inline text. */
.sf-cat-card__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
            line-clamp: 2;
    overflow: hidden;
    min-height: calc(0.8rem * 1.55 * 2);
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

/* margin-top:auto pins the footer to the bottom whether or not the card has a
   description, so the CTAs line up across the row. */
.sf-cat-card__foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* min-width:0 lets a long collection name ellipsise instead of pushing the arrow
   out of the card. */
.sf-cat-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--color-primary-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-cat-card__cta svg {
    flex-shrink: 0;
}

.sf-cat-card__cta svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-cat-card:hover .sf-cat-card__cta svg {
    transform: translateX(4px);
}

/* The CTA is the last thing in the body, pinned to the bottom so the links line
   up across a row whatever length the blurbs run to. */
.sf-cat-card__body > .sf-cat-card__cta {
    margin-top: auto;
    padding-top: 6px;
}

.sf-cat-card__flag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #FFFFFF;
}

.sf-cat-card__eyebrow {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
}

.sf-cat-card__title--lg { font-size: 1.2rem; }

/* The wide card has room for the whole blurb, so it opts out of the clamp. */
.sf-cat-card__desc--full {
    -webkit-line-clamp: unset;
            line-clamp: unset;
    min-height: 0;
    font-size: 0.82rem;
}

.sf-cat-card__note {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* ---------- Pet Tags: full-row card, media beside the copy ---------- */
.sf-cat-card--wide { grid-column: 1 / -1; }

.sf-cat-card__link--split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: stretch;
}

.sf-cat-card__link--split .sf-cat-card__media {
    height: auto;
    min-height: 208px;
    border-bottom: 0;
    border-right: 1px solid var(--color-border);
}

.sf-cat-card__link--split .sf-cat-card__body { padding: 24px; }

.sf-cat-card__media--pets {
    gap: 8px;
    background-image: linear-gradient(to top right, #FEF3C7, #FFE4E6 50%, #CCFBF1);
}

/* ==========================================================================
   Collection card specimens (.sf-cs)
   Each media panel draws the product in CSS, as the mockup does, instead of
   using photography. They are decorative: every one sits inside a link whose
   aria-label already names the destination.
   ========================================================================== */
.sf-cs {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-cat-card:hover .sf-cs { transform: scale(1.05); }

/* 1. Name badge — blue card with three lines */
.sf-cs--namebadge {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 190px;
    height: 96px;
    padding: 0 16px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    background-color: #2563EB;
    box-shadow: var(--shadow-md);
    color: #FFFFFF;
}

.sf-cs__eyebrow {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #BFDBFE;
}

.sf-cs__name {
    margin-top: 2px;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sf-cs__role {
    font-size: 0.62rem;
    font-weight: 500;
    color: #DBEAFE;
}

/* 2. Desk plate — mahogany wedge */
.sf-cs--deskplate {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 208px;
    height: 56px;
    padding: 0 16px;
    border: 1px solid #B45309;
    border-radius: 4px;
    background-image: linear-gradient(to right, #78350F, #451A03);
    box-shadow: var(--shadow-md);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #FEF3C7;
    text-align: center;
}

/* 3. Metal plaque — brushed steel */
.sf-cs--plaque {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 176px;
    height: 112px;
    padding: 12px;
    border: 2px solid #94A3B8;
    border-radius: 4px;
    background-image: linear-gradient(to bottom right, #CBD5E1, #F1F5F9, #94A3B8);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.sf-cs__plaque-top {
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #334155;
}

.sf-cs__plaque-main {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0F172A;
}

.sf-cs__plaque-sub {
    margin-top: 4px;
    font-size: 0.5rem;
    color: #475569;
}

/* 4. ID card — portrait pass */
.sf-cs--idcard {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    height: 180px;
    padding: 10px;
    background-color: #FFFFFF;
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.sf-cs__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 56px;
    margin-bottom: 8px;
    border-radius: 4px;
    background-color: var(--color-border);
    color: #94A3B8;
}

.sf-cs__bar {
    display: block;
    border-radius: 2px;
}

.sf-cs__bar--dark {
    width: 100%;
    height: 8px;
    margin-bottom: 4px;
    background-color: #1E293B;
}

.sf-cs__bar--light {
    width: 66%;
    height: 6px;
    margin-bottom: 8px;
    background-color: var(--color-border-dark);
}

.sf-cs__idno {
    width: 100%;
    padding-top: 4px;
    border-top: 1px dashed var(--color-border-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.5rem;
    color: #64748B;
    text-align: center;
}

/* 5. Lapel pin — gold disc */
.sf-cs--pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    padding: 8px;
    border: 2px solid #D97706;
    border-radius: 50%;
    background-image: linear-gradient(to top right, #FBBF24, #FEF9C3, #F59E0B);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.sf-cs__pin-top {
    font-size: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #451A03;
}

.sf-cs__pin-main {
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #78350F;
}

.sf-cs__pin-year {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.5rem;
    font-weight: 700;
    color: #451A03;
}

/* 6. Badge machine — press */
.sf-cs--machine {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 112px;
    height: 128px;
    padding: 12px;
    border: 4px solid #334155;
    border-radius: 8px;
    background-color: #1E293B;
    box-shadow: var(--shadow-xl);
}

.sf-cs__lever {
    width: 12px;
    height: 32px;
    border-radius: 999px;
    background-color: #DC2626;
}

.sf-cs__die {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 32px;
    border-radius: 4px;
    background-color: #475569;
    font-size: 0.56rem;
    font-weight: 700;
    color: #FFFFFF;
}

.sf-cs__base {
    width: 80px;
    height: 12px;
    border-radius: 4px;
    background-color: #0F172A;
}

/* 7. Pet tags — three discs */
.sf-cs__tag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    font-size: 0.62rem;
    font-weight: 700;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-cat-card:hover .sf-cs__tag { transform: scale(1.05); }

.sf-cs__tag--milo  { background-color: #FBBF24; border: 2px solid #D97706; color: #451A03; }
.sf-cs__tag--bella { background-color: #FB7185; border: 2px solid #E11D48; color: #FFFFFF; }
.sf-cs__tag--max   { background-color: #14B8A6; border: 2px solid #0F766E; color: #FFFFFF; }

/* Three across is the base now (the mockup's lg:grid-cols-3), so the ladder
   starts at two. */
@media (max-width: 900px) {
    .sf-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* The wide card folds to a normal stacked card. */
    .sf-cat-card__link--split {
        grid-template-columns: minmax(0, 1fr);
    }

    .sf-cat-card__link--split .sf-cat-card__media {
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }
}

/* Two cards across a phone leaves ~150px each — the CTA label wraps and the blurb
   is unreadable. One card, full width. */
@media (max-width: 520px) {
    .sf-cat-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


.sf-tools {
    padding: 30px 0;
    background-color: var(--color-bg-base);
    border-bottom: 1px solid var(--color-border);
}

.sf-tools__grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 32px;
    align-items: start;
}

/* Kept for the estimator markup that still lives on other pages. */
.sf-estimator {
    padding: 30px 0;
    background-color: var(--color-bg-base);
    border-top: 0;
    border-bottom: 1px solid var(--color-border);
}

.sf-estimator__card {
    padding: 32px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

/* In the two-up band the card's own heading replaces the section masthead. */
.sf-estimator__card > h2,
.sf-estimator__card > .sf-estimator__h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 6px;
    color: #0F172A;
}

.sf-estimator__card > .sf-estimator__h3 {
    font-size: 1.25rem;
}

.sf-estimator__card > .sf-estimator__lede {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .sf-tools__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

/* ---------- Masthead ---------- */
.sf-estimator__head {
    max-width: 720px;
    margin-bottom: 26px;
}

/* A pill plus a muted qualifier, not a ruled index line. */
.sf-estimator__eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.sf-estimator__label {
    padding: 2px 10px;
    border-radius: 999px;
    background-color: #FEE2E2;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #B91C1C;
}

.sf-estimator__label--dispatch {
    background-color: #D1FAE5;
    color: #065F46;
}

.sf-estimator__index {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.sf-estimator__head h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 6px;
    color: #0F172A;
}

.sf-estimator__lede {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
}

/* ---------- Body: control | panel ---------- */
.sf-estimator__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding-top: 0;
    border-top: 0;
}

.sf-estimator__control {
    padding-right: 0;
}

/* No vertical rule between the halves any more — each side carries its own white
   boxes, and a divider between them would double up on those edges. */
.sf-estimator__panel {
    padding-left: 0;
    border-left: 0;
}

.sf-field-label {
    display: block;
    margin-bottom: 0;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: #1E293B;
}

/* ---------- Slider ---------- */
.sf-slider-block {
    margin-top: 26px;
}

.sf-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

/* The track fills red up to the thumb. --sf-fill (0–1) is written by storefront.js
   as the slider moves; the stop is offset by half the 20px thumb so the red ends
   under the thumb's centre at every position, not just mid-track. The inline
   value in the markup covers first paint. Firefox uses its native
   ::-moz-range-progress instead. */
.sf-slider {
    --sf-fill: 0.16;
    display: block;
    width: 100%;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 8px;
    background-color: var(--color-border);
    background-image: linear-gradient(
        to right,
        var(--color-primary) 0,
        var(--color-primary) calc(10px + (100% - 20px) * var(--sf-fill)),
        var(--color-border) calc(10px + (100% - 20px) * var(--sf-fill))
    );
    cursor: pointer;
    accent-color: var(--color-primary);
}

.sf-slider::-moz-range-progress {
    height: 8px;
    border-radius: 8px;
    background-color: var(--color-primary);
}

/* Both engines, deliberately: the old rule styled only ::-webkit-slider-thumb, so
   Firefox rendered its default thumb on a track that had already been restyled.
   The 1px ring is a keyline that separates the red thumb from the track — a
   hairline, not the halo the shadow rule forbids. */
.sf-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: 3px solid #FFFFFF;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: 3px solid #FFFFFF;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-slider::-moz-range-track {
    height: 8px;
    border-radius: 8px;
    background-color: var(--color-border);
}

.sf-slider:hover::-webkit-slider-thumb {
    transform: scale(1.08);
}

.sf-slider:hover::-moz-range-thumb {
    transform: scale(1.08);
}

/* An opaque charcoal ring (18.50:1 on the warm band). The previous focus style was a
   translucent red glow at ~1.9:1 — below the 3:1 a focus indicator must reach, which
   made the primary control effectively unfocusable for keyboard users. */
.sf-slider:focus-visible {
    outline: 2px solid var(--color-secondary) !important;
    outline-offset: 5px !important;
    border-radius: 999px;
}

/* <output> is an implicit polite live region, so the quantity is announced as it
   changes without any extra ARIA. */
/* <output> is an implicit polite live region, so the quantity is announced as it
   changes without any extra ARIA. It now sits opposite the label rather than
   beside the track, so it needs no reserved width. */
.sf-qty {
    display: inline-flex;
    align-items: baseline;
}

.sf-qty__num {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 900;
    line-height: 1;
    color: var(--color-primary-ink);
    font-variant-numeric: tabular-nums;
}

/* ---------- Tier chips (live output, not decoration) ---------- */
.sf-wholesale-tiers {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    list-style: none;
    margin: 0;
    border-top: 0;
}

/* Four white chips rather than a ruled ladder. Border colour alone carries the
   live bracket, so nothing reflows as you drag. */
.sf-tier-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
    font-size: 0.75rem;
    transition: var(--transition-smooth);
}

.sf-tier-badge__range {
    font-weight: 500;
    color: var(--color-text-muted);
}

.sf-tier-badge__price {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 800;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
}

.sf-tier-badge__price small {
    font-size: 0.625rem;
    font-weight: 400;
}

.sf-tier-badge.sf-active-tier {
    background-color: #FEF2F2;
    border-color: #FCA5A5;
    border-left-color: #FCA5A5;
}

.sf-tier-badge.sf-active-tier .sf-tier-badge__range {
    color: #B91C1C;
}

.sf-tier-badge.sf-active-tier .sf-tier-badge__price {
    color: #7F1D1D;
}

/* ---------- Quote box ----------
   One white box: unit price and savings stack on the left, the total takes the
   right. Grid areas do the placing because nesting <div>s inside a <dl> to group
   rows would not be conforming markup. */
.sf-quote {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "unit  total"
        "save  total";
    gap: 2px 20px;
    align-items: center;
    margin: 0;
    padding: 16px;
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.sf-quote__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0;
    border-bottom: 0;
}

.sf-quote__row--unit  { grid-area: unit; }
.sf-quote__row--save  { grid-area: save; }

.sf-quote__row dt {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.sf-quote__fig {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
}

/* --color-success is 2.54:1 on white and cannot legally carry text; the ink
   variant clears AA at 5.46:1. Savings is the only green figure in the box. */
.sf-quote__save {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-success-ink);
}

.sf-quote__row--total {
    grid-area: total;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    border-bottom: 0;
    text-align: right;
}

.sf-quote__row--total dt {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.sf-quote__total {
    font-size: 1.875rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--color-primary-ink);
}

/* ---------- Actions ---------- */
.sf-estimator__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.sf-estimator__cta {
    margin-top: 0;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
}

/* The purchase-order link is the primary action and takes the spare width; the
   spec sheet stays at its natural size beside it. */
.sf-estimator__actions .sf-btn-primary {
    flex: 1 1 220px;
}

.sf-estimator__actions .sf-btn-secondary {
    flex: 0 1 auto;
    background-color: #FFFFFF;
    border: 1px solid var(--color-border-dark);
    color: #334155;
    font-weight: 600;
}

.sf-estimator__actions .sf-btn-secondary:hover {
    background-color: var(--color-bg-subtle);
}

/* ---------- Postcode control ---------- */
.sf-postcode-row {
    display: flex;
    gap: 12px;
    /* The .sf-page reset zeroes the lede's bottom margin, which left the field
       touching the paragraph above it. */
    margin-top: 16px;
}

.sf-postcode-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-dark);
    background-color: #FFFFFF;
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

/* box-shadow rather than outline: the ring has to follow the input's radius. */
.sf-postcode-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Charcoal, like the reference's slate-900 submit — the red in this card is
   reserved for the "Recommended" express row. */
.sf-postcode-row .sf-btn {
    height: 44px;
    flex-shrink: 0;
    padding: 0 18px;
    border-radius: 8px;
    background-color: #0F172A;
    border-color: #0F172A;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
}

.sf-postcode-row .sf-btn:hover {
    background-color: #1E293B;
    border-color: #1E293B;
}

/* Must render correctly as display:block — storefront.js writes that inline when the
   postcode is invalid. #D0141B is 5.51:1 here; brand red would be 4.36:1, an AA fail. */
.sf-error-text {
    margin-top: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary-hover);
}

/* ---------- Zone reference ----------
   Each zone is its own white card rather than a row in a ruled list. */
.sf-zone-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    border-top: 0;
}

.sf-zone {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.sf-zone:hover {
    border-color: var(--color-border-dark);
}

/* text-dark, not muted: muted on this tint is 4.34:1 and fails AA at 11.5px. */
.sf-zone__code {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-bg-subtle);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-dark);
    font-variant-numeric: tabular-nums;
}

.sf-zone__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.sf-zone__times {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

.sf-zone-legend {
    margin-top: 12px;
    font-size: 0.6875rem;
    letter-spacing: 0;
    color: var(--color-text-muted);
}

/* ---------- Delivery timetable ---------- */
.sf-timetable {
    padding: 16px;
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.sf-timetable__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* #postcode-results. Deliberately NOT display:grid — storefront.js sets an inline
   display:block on this element, which would win and flatten a grid. The grid lives
   on the rows. It is also not hidden at rest: JS populates the dates BEFORE it
   reveals the node, so a polite live region that started display:none announced
   nothing. Keeping it in the tree fixes the announcement and gives the widget an
   honest resting state — every service, with a dash where the date will land. */
.sf-timetable__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    border-left: 0;
    transition: var(--transition-smooth);
}

.sf-timetable__body .sf-timetable__row:last-child {
    border-bottom: 0;
}

/* Recommended service: a red left rule and a faint tint, matching the live
   bracket marker in the calculator card. */
.sf-timetable__row--express {
    padding-left: 12px;
    margin: 0 -8px;
    padding-right: 8px;
    border-left: 3px solid var(--color-primary);
    border-radius: 6px;
    background-color: #FEF2F2;
}

.sf-timetable__service {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0F172A;
}

.sf-tag {
    padding: 2px 7px;
    border-radius: 999px;
    background-color: var(--color-primary-ink);
    font-family: var(--font-heading);
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #FFFFFF;
}

/* The arrival date is the payload, so it outweighs the service beside it. */
.sf-arrival {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sf-timetable__note {
    margin-top: 12px;
    font-size: 0.6875rem;
    font-style: italic;
    color: var(--color-text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .sf-estimator__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 560px) {
    .sf-estimator {
        padding: 48px 0;
    }

    .sf-estimator__card {
        padding: 20px;
    }

    /* Four chips across a phone leaves ~60px each and wraps every label. */
    .sf-wholesale-tiers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* An odd count leaves the last tier alone on its row: centre it, same width. */
    .sf-wholesale-tiers > li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 4px);
    }

    .sf-estimator__card > .sf-estimator__lede {
        margin-bottom: 14px;
    }

    /* Stack the quote box: the total can't sit beside the unit price here. */
    .sf-quote {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "unit"
            "save"
            "total";
        gap: 4px;
    }

    .sf-quote__row--total {
        align-items: flex-start;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--color-border);
        text-align: left;
    }

    /* The button cannot hold its label beside a 4-digit field at this width. */
    .sf-postcode-row {
        flex-direction: column;
    }

    /* In a column, the input's flex:1 (flex-basis 0) works on the HEIGHT and
       overrode its 44px, squashing the field to a sliver. Size it by height. */
    .sf-postcode-input {
        flex: none;
        width: 100%;
    }

    .sf-estimator__actions .sf-btn {
        flex: 1 1 100%;
    }
    /* .sf-zone stacking is handled by the 767px rule in the content-sync block
       at the end of this file, which redefines its grid. */
}

/* Extracted inline: initial hidden state for #postcode-error / #postcode-results
   (storefront.js overrides via element.style.display at runtime) */
.sf-hidden {
    display: none;
}

/* Quote-modal submit button loading state. The loader is hidden by default and
   revealed (label hidden via .sf-hidden) while a submit is in flight — toggled
   by setQuoteLoading() in storefront.js via the sf-active state class. */
.sf-btn-loader {
    display: none;
    align-items: center;
    gap: 6px;
}
.sf-btn-loader.sf-active {
    display: inline-flex;
}

/* File-preview iframe: gives the (Bootstrap-classed) modal iframe a real height
   so the previewed document does not collapse to zero. Replaces an inline style. */
.sf-file-preview-frame {
    height: 70vh;
}

/* Delete-confirm modal dialog: narrower than Bootstrap's default for a compact
   confirmation prompt. Replaces an inline max-width style. */
.sf-quote-delete-dialog {
    max-width: 420px;
}

/* Namespaced, like sf-marquee. @keyframes names are GLOBAL, not scoped to .sf-page:
   this file now loads last on every page (layouts/main.blade.php), and a bare `fadeIn`
   would silently replace style.css's own `fadeIn` — which slides down from -20px, not
   up from +10px — reversing two legacy animations. */
@keyframes sf-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Reviews — static three-up grid
   Matches the mockup: a centred gold star row, then three plain white cards,
   each a quote over a ruled author plinth. The auto-scrolling marquee is gone
   and with it the duplicated track, the edge mask, the hover/focus pause, the
   sf-marquee keyframes and the concave corner fillet — none of which the
   mockup has. The aggregate score rail above the grid is ours and stays: it
   reports the real Google average, which the static mockup could not.
   ========================================================================== */
.sf-reviews-section {
    padding: 30px 0;
    background-color: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
}

.sf-reviews-stars {
    display: inline-flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 4px;
    color: #F59E0B;
    line-height: 0;
}

/* ---- Aggregate score rail ----------------------------------------------
   Hairline rules rather than a bordered box: the rail introduces the row below,
   it does not compete with the cards in it. */
.sf-review-score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 22px;
    max-width: 640px;
    margin: 0 auto 28px;
    padding: 14px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.sf-review-score__value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
}

.sf-review-score__outof {
    margin-left: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.sf-review-score__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sf-review-score__count {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.sf-review-score__count strong { color: #0F172A; }

.sf-review-score__source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: none;
}

a.sf-review-score__source:hover { color: #0F172A; }

.sf-review-score__source svg { flex-shrink: 0; }

/* Partial-star fill: the lit row is clipped to --sf-star-fill of the width. */
.sf-stars {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.sf-stars__row {
    display: inline-flex;
    gap: 2px;
    color: var(--color-border-dark);
}

.sf-stars__clip {
    position: absolute;
    inset: 0;
    width: var(--sf-star-fill, 100%);
    overflow: hidden;
}

.sf-stars__clip .sf-stars__row { color: #F59E0B; }

/* ---- The grid ---------------------------------------------------------- */
.sf-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.sf-tcard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 24px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.sf-tcard__rating {
    display: inline-flex;
    gap: 2px;
    margin-bottom: 12px;
    line-height: 0;
}

.sf-tcard__star { color: var(--color-border-dark); }
.sf-tcard__star--on { color: #F59E0B; }

.sf-tcard__quote {
    margin: 0;
    font-size: 0.875rem;
    font-style: italic;
    line-height: 1.7;
    color: #334155;
}

.sf-tcard__plinth {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-bg-subtle);
}

.sf-tcard__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

.sf-tcard__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Monogram, as the mockup draws it — one tint per card. */
.sf-tcard__avatar--initials {
    background-color: #FEE2E2;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-primary-ink);
}

.sf-tcard__avatar--red   { background-color: #FEE2E2; color: #B91C20; }
.sf-tcard__avatar--amber { background-color: #FEF3C7; color: #92400E; }
.sf-tcard__avatar--blue  { background-color: #DBEAFE; color: #1E40AF; }

.sf-tcard__id {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sf-tcard__name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0F172A;
}

.sf-tcard__handle {
    font-size: 0.69rem;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .sf-reviews-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sf-review-score {
        gap: 10px 16px;
    }
}

.sf-faq-section {
    padding: 30px 0;
    background-color: var(--color-bg-base);
    border-bottom: 1px solid var(--color-border);
}

/* The mockup narrows this band to max-w-4xl, tighter than the 1280px rail. */
.sf-faq-section .sf-section-container {
    max-width: 920px;
}

.sf-faq-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sf-faq-item {
    padding: 18px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.sf-faq-item[open] {
    background-color: var(--color-bg-base);
    box-shadow: 0 0 0 1px var(--color-border-dark);
}

.sf-faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F172A;
}

/* Both are needed: WebKit uses the pseudo-element, everyone else list-style. */
.sf-faq-item__q::-webkit-details-marker {
    display: none;
}

.sf-faq-item__q:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.sf-faq-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #94A3B8;
    transition: var(--transition-smooth);
}

.sf-faq-item[open] .sf-faq-item__icon {
    transform: rotate(180deg);
    background-color: #FEE2E2;
    color: var(--color-primary-ink);
}

/* storefront-chrome.js keeps [open] until the closing slide ends; the chevron
   turns back as the slide starts, so the two move together. */
.sf-faq-item.is-closing .sf-faq-item__icon {
    transform: none;
    background-color: transparent;
    color: #94A3B8;
}

.sf-faq-item__a {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-bg-subtle);
    font-size: 0.875rem;
    line-height: 1.7;
    color: #475569;
}

.sf-faq-item__a p + p {
    margin-top: 10px;
}

.sf-faq-item__a a {
    color: var(--color-primary-ink);
    text-decoration: underline;
}
/* ==========================================================================
   Newsletter Signup
   ========================================================================== */
/* The whole band is dark now, not a charcoal card floating on white: the section
   is slate-900 and the banner inside it is a slate-800 panel washed with brand red
   from the left, hairlined in slate-700. */
.sf-newsletter-section {
    padding: 48px 0;
    background-color: #0F172A;
    color: #FFFFFF;
}

.sf-newsletter-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    border: 1px solid #334155;
    border-radius: 16px;
    background-image: linear-gradient(90deg, rgba(127, 29, 29, 0.6) 0%, #1E293B 100%);
    color: #FFFFFF;
    text-align: left;
}

.sf-newsletter-copy {
    max-width: 36rem;
}

/* The reference asks for text-brand-400, a shade absent from its own Tailwind
   config, so it falls through to inherited white there. Using the codebase's
   red-on-dark token instead keeps this eyebrow consistent with every other
   eyebrow on the page. */
.sf-newsletter-eyebrow {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-on-dark);
}

.sf-newsletter-banner h2 {
    margin: 4px 0 0;
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.sf-newsletter-banner p {
    margin: 4px 0 0;
    color: #CBD5E1;
    font-size: 0.875rem;
    max-width: none;
}

/* Shrinks to the form's own width on wide screens (the reference's lg:w-auto). */
.sf-newsletter-action {
    flex: 0 0 auto;
}

.sf-newsletter-form {
    display: flex;
    gap: 8px;
    width: auto;
    max-width: none;
    flex-wrap: nowrap;
}

/* Nearly black against the slate panel, so the field reads as a well rather than
   a raised chip. */
.sf-newsletter-form input[type="email"] {
    flex: 1 1 auto;
    min-width: 280px;
    border: 1px solid #334155;
    background-color: #0B1120;
    color: #FFFFFF;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition-smooth);
}

.sf-newsletter-form input[type="email"]::placeholder {
    color: #64748B;
}

.sf-newsletter-form input[type="email"]:focus {
    background-color: #0B1120;
    color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.sf-newsletter-form .sf-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

/* Green, not the amber accent: this line only ever reports success. */
.sf-success-message {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #86EFAC;
}

@media (max-width: 1023.98px) {
    .sf-newsletter-banner {
        flex-direction: column;
        text-align: center;
    }

    .sf-newsletter-action,
    .sf-newsletter-form {
        width: 100%;
    }

    /* The 280px floor would otherwise force a horizontal scrollbar on a phone. */
    .sf-newsletter-form input[type="email"] {
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .sf-newsletter-banner {
        padding: 24px;
    }

    .sf-newsletter-form {
        flex-direction: column;
    }

    .sf-newsletter-form .sf-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Footer — skin only. All layout (container/row/col, spacing, borders, opacity)
   comes from Bootstrap utilities in components/storefront/footer.blade.php.
   ========================================================================== */
/* Same charcoal as .sf-topbar, .sf-search-submit and .sf-newsletter-banner. */
/* font-family/weight are stated, not inherited: layouts/main.blade.php still loads
   footer.css, whose bare `footer { font-family: Poppins; font-weight: 300 }` targets
   this element directly and so beats anything .sf-page passes down by inheritance. */
/* Near-black slate, a hairline top rule, and slate-400 body copy — the mockup's
   corporate footer. Replaces the charcoal band with its 5px brand-red top border
   and white body text. */
.sf-footer {
    background-color: #0B1120;
    color: #94A3B8;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.6;
    border-top: 1px solid #1E293B;
}

/* Same 1280px rail as the header bands and .sf-section-container. */
.sf-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 32px;
}

/* Five columns; the brand block takes two of them. */
.sf-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;

    gap: 32px;
}

.sf-footer__brand {
    max-width: 24rem;
}

.sf-footer__logo {
    display: inline-block;
    margin-bottom: 14px;
}

.sf-footer__blurb {
    margin-bottom: 14px;
    line-height: 1.7;
}

.sf-footer address,
.sf-footer__details {
    font-style: normal;
}

.sf-footer__details p {
    font-size: 0.6875rem;
    line-height: 1.75;
}

.sf-footer__details strong {
    font-weight: 600;
    color: #E2E8F0;
}

/* ---------- Link columns ---------- */
.sf-footer__heading {
    margin-bottom: 14px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E2E8F0;
}

.sf-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
}

.sf-footer__muted {
    color: #475569;
}

.sf-footer a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* White, not brand red: #D72328 is ~2.3:1 on this near-black ground and fails AA
   even as a hover state. */
.sf-footer a:hover {
    color: #FFFFFF;
}

/* ---------- Payment column ---------- */
.sf-footer__note {
    margin-bottom: 12px;
    font-size: 0.6875rem;
    line-height: 1.7;
}

.sf-footer__eft {
    padding: 12px;
    background-color: #0F172A;
    border: 1px solid #1E293B;
    border-radius: 6px;
    font-size: 0.6875rem;
}

.sf-footer__eft-title {
    margin-bottom: 7px;
    font-weight: 700;
    color: #CBD5E1;
}

.sf-footer__eft-list {
    margin: 0;
}

.sf-footer__eft-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.sf-footer__eft-list > div + div {
    margin-top: 4px;
}

.sf-footer__eft-list dt {
    font-weight: 400;
    color: #94A3B8;
}

.sf-footer__eft-list dd {
    margin: 0;
    font-weight: 600;
    color: #E2E8F0;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* ---------- Bottom bar ---------- */
.sf-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #1E293B;
    font-size: 0.6875rem;
    color: #64748B;
}

.sf-footer__bottom a {
    color: #64748B;
}

.sf-footer__bottom a:hover {
    color: #94A3B8;
}

.sf-footer__bottom-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

@media (max-width: 900px) {
    .sf-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    /* The brand block keeps the full width of the two-column rail. */
    .sf-footer__brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 560px) {
    .sf-footer__inner {
        padding: 36px 20px 26px;
    }

    .sf-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .sf-footer__bottom {
        margin-top: 32px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* ==========================================================================
   Responsive Adaptations (source order preserved)
   ========================================================================== */
@media (max-width: 1024px) {
    /* minmax(0, 1fr): a bare `1fr` is `minmax(auto, 1fr)`, and that auto floor is
       the widest item's min-content — the configurator card. That inflated the
       single column to 479px on a 375px phone and clipped the whole hero. */
    .sf-hero-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 50px;
    }

    /* One column: the card is the whole row, so drop the desktop cap. */
    .sf-hero-media {
        max-width: none;
        margin-left: 0;
        min-width: 0;
    }

    .sf-hero-widget-card {
        min-width: 0;
    }
}

/* Only the nav band's own metrics need tightening here; Bootstrap's display and
   order utilities handle every show/hide and reflow from the markup.
   (Do NOT write "d-*" followed by "/order-*" in a comment: the star-slash pair
   closes the comment early and CSS error recovery then eats the next block.)

   Between lg and xl the bar is narrower, so the links tighten a little to keep
   the menu to as few rows as possible. */
@media (max-width: 1199.98px) {
    .sf-nav-link {
        font-size: 0.8125rem;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 991.98px) {
    .sf-header-search {
        max-width: none;
    }
}

@media (max-width: 768px) {

    /* .sf-hero-title is clamp()-sized, so no font-size override is needed here —
       one would just defeat the fluid scale. */
    .sf-hero-buttons {
        flex-direction: column;
        align-self: stretch;
    }

    .sf-hero-buttons .sf-btn {
        width: 100%;
    }

    /* Hairline dividers don't survive wrapping, so drop to an even 3-up grid. */
    .sf-hero-trust-metrics {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .sf-metric-item {
        padding-right: 0;
        margin-right: 0;
        border-right: 0;
    }

    .sf-metric-item dt {
        font-size: 1.4rem;
    }
}


/* ==========================================================================
   Phone: compact header utilities.
   Placed at the very end on purpose. .sf-quotes-btn and .sf-cart-btn are
   defined in the header section above; an override earlier in the file would
   lose the source-order tie-break even inside a matching media query.
   ========================================================================== */
@media (max-width: 575.98px) {
    .sf-quotes-btn {
        height: 36px;
        padding: 0 9px;
        gap: 5px;
    }

    .sf-cart-btn,
    .sf-account-btn {
        width: 36px;
        height: 36px;
    }

    .sf-cart-btn svg,
    .sf-account-btn svg {
        width: 17px;
        height: 17px;
    }
}

/* Narrow phones (360px class): the account icon made the header row a few
   pixels too wide, which would drop the utilities onto a second line. */
@media (max-width: 389.98px) {
    .sf-header-logo-img { height: 23px; }
    .sf-header-main .gap-2 { gap: 6px !important; }
    .sf-quotes-btn { padding: 0 7px; }
}

/* ==========================================================================
   Phone: configurator card density.
   Placed at the very END on purpose. .sf-material-grid, .sf-toggle-option-grid,
   .sf-config-controls and .sf-badge-canvas-container are all defined further up;
   an override earlier in the file loses the source-order tie-break even inside a
   matching media query.
   ========================================================================== */
@media (max-width: 560px) {
    /* Four swatches across a ~312px column leaves ~60px each and wraps every
       label onto two lines. Fold to two rows. */
    .sf-material-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Stack the fastening cards so their sub-labels stop wrapping. */
    .sf-toggle-option-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sf-config-controls {
        padding: 18px;
    }

    .sf-badge-canvas-container {
        padding: 24px 18px;
    }
}

/* ==========================================================================
   Content sync with the approved reference layout.
   These carry the copy that moved onto the page (eyebrows, the announcement
   bar, the delivery zone rows, the unit-price line). Skin only — no layout
   here is load-bearing for the JS contracts documented in index.blade.php.
   ========================================================================== */

/* ---------- Shared eyebrow ---------- */
.sf-section-eyebrow,
.sf-hero-eyebrow {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
}

/* ---------- Section header with a trailing link ----------
   .sf-section-header is centred and capped at 600px. This modifier has to undo
   both, or the heading and its trailing link are crushed into a narrow centred
   column in the middle of the page — which is exactly what was breaking the
   collections header. */
.sf-section-header--split {
    display: flex;
    /* flex-direction is the load-bearing one. The base rule is a column stack, and
       without resetting it here the trailing link sits UNDER the heading instead of
       beside it — which is what kept breaking this header. */
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 28px;
    max-width: none;
    margin: 0 0 40px;
    text-align: left;
}

/* The copy stack takes the spare width and keeps a comfortable measure; the link
   holds its own width opposite it. */
.sf-section-header--split > div {
    flex: 1 1 20rem;
    min-width: 0;
    max-width: 46rem;
}

.sf-section-header--split .sf-section-header__link {
    flex: 0 0 auto;
    margin-bottom: 4px;
}

.sf-section-header--split h2,
.sf-section-header--split p {
    text-align: left;
}

.sf-section-header__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary-ink);
    text-decoration: none;
    white-space: nowrap;
}

.sf-section-header__link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Below the wrap point the link drops under the copy and aligns with it, rather
   than sitting right-aligned on its own line. */
@media (max-width: 700px) {
    .sf-section-header--split {
        flex-direction: column;
        align-items: flex-start;
    }

    .sf-section-header--split .sf-section-header__link {
        margin-bottom: 0;
        white-space: normal;
    }

    /* The copy block above has flex: 1 1 20rem so it shares a row with the link on
       wide screens. Stacked in a column, that 20rem basis becomes a HEIGHT, which
       left ~320px of empty space between the description and the link. */
    .sf-section-header--split > div {
        flex: 0 0 auto;
    }
}

/* ---------- Hero trust row (now a plain list of three labels) ---------- */
.sf-hero-trust-metrics .sf-metric-item {
    position: relative;
    padding-left: 16px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

/* The dot replaces the old big-number/label pair. */
.sf-hero-trust-metrics .sf-metric-item::before {
    content: "";
    position: absolute;
    top: 0.45em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--color-success);
}

/* ---------- Designer canvas captions ---------- */
.sf-badge-canvas-label {
    margin: 0 0 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    color: #94A3B8;
}

.sf-badge-canvas-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 0;
    font-size: 0.6875rem;
    text-align: center;
    color: var(--color-text-muted);
}

.sf-badge-canvas-note svg {
    flex-shrink: 0;
    color: #059669;
}

/* ---------- "Single Unit: $15.00" ---------- */
.sf-unit-price {
    margin: 0;
    text-align: right;
}

.sf-unit-price__label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.sf-unit-price__value {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-secondary);
}

/* ---------- Slider scale ---------- */
.sf-slider-scale {
    display: flex;
    justify-content: space-between;
    margin: 8px 0 0;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* ---------- Delivery zones: two columns, two rows per zone ---------- */
.sf-zone-heading {
    margin: 34px 0 0;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.sf-zone-heading + .sf-zone-list {
    margin-top: 12px;
}

.sf-zone {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 14px;
    align-items: baseline;
}

.sf-zone__note {
    grid-column: 1;
    font-size: 0.74rem;
    color: var(--color-text-muted);
}

/* Reset the flex-era auto margin — the grid places this now. */
.sf-zone__times {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    text-align: right;
    font-weight: 600;
    color: var(--color-text-dark);
}

.sf-zone__times--fast {
    color: var(--color-primary-ink);
}

.sf-zone__standard {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
    font-size: 0.74rem;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

.sf-zone-legend {
    font-style: italic;
}

/* ---------- Top announcement bar ----------
   One line at every width: the notice takes the free space (truncating with an
   ellipsis on desktop if it must), the links keep their natural width. Below lg
   the message scrolls sideways inside its strip and the call link becomes an icon. */
.sf-topbar-row {
    min-height: 32px;
}

.sf-topbar-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.78rem;
    color: inherit;
}

.sf-topbar-tag { flex: none; }

.sf-topbar-msg {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sf-topbar-msg__track { display: inline; }

/* The loop's second copy only exists for the scrolling version. */
.sf-topbar-msg__text--copy { display: none; }

.sf-topbar-links { flex: none; }

@media (max-width: 991.98px) {
    .sf-topbar-msg {
        text-overflow: clip;
        -webkit-mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 18px), transparent);
        mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 18px), transparent);
    }

    /* Two identical copies, each with the same trailing space, so moving the track
       by exactly half its width lands copy 2 where copy 1 started: a seamless loop. */
    .sf-topbar-msg__track {
        display: inline-flex;
        animation: sf-topbar-ticker 18s linear infinite;
    }

    .sf-topbar-msg__text,
    .sf-topbar-msg__text--copy {
        display: inline-block;
        padding-right: 48px;
    }

    .sf-topbar-row:hover .sf-topbar-msg__track,
    .sf-topbar-row:focus-within .sf-topbar-msg__track {
        animation-play-state: paused;
    }

    /* Call link → a round phone icon. Its aria-label still carries the number. */
    .sf-topbar-call-label { display: none; }

    .sf-topbar-link {
        width: 28px;
        height: 28px;
        justify-content: center;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
    }
}

@keyframes sf-topbar-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* No motion: hold the message still and let it truncate. */
@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    .sf-topbar-msg { text-overflow: ellipsis; -webkit-mask-image: none; mask-image: none; }
    .sf-topbar-msg__track { display: inline; animation: none; }
    .sf-topbar-msg__text { display: inline; padding-right: 0; }
    .sf-topbar-msg__text--copy { display: none; }
}

.sf-topbar-tag {
    padding: 2px 7px;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-primary-ink);
    font-family: var(--font-heading);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #FFFFFF;
}

/* ---------- Header brand tagline ---------- */
.sf-header-tagline {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

@media (max-width: 767px) {
    .sf-zone {
        grid-template-columns: minmax(0, 1fr);
    }

    .sf-zone__times,
    .sf-zone__standard {
        grid-column: 1;
        text-align: left;
    }

    .sf-header-tagline {
        display: none;
    }
}

.quote-option.qo-collapsed { display: none !important; }
/* ==========================================================================
   Category cards — photo fills the panel; narrower cards, more per row.
   Was a fixed 208px slate panel with 22px padding and the photo contained,
   which left wide empty margins; three cards a row made each one very wide.
   Now: as many >=220px columns as fit (5 on a full desktop, 3 on a tablet,
   1 on a phone — overriding the 3 / 2 / 1 ladder above), and a 4:3 photo
   that covers its frame. The split "wide" card and CSS-illustrated panels
   (no <img>) keep their own treatment.
   ========================================================================== */
.sf-cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.sf-cat-card__link:not(.sf-cat-card__link--split) .sf-cat-card__media:has(img) {
    height: auto;
    /* aspect-ratio: 1 / 1; */
    padding: 0;
    background: #FFFFFF;
}

.sf-cat-card__link:not(.sf-cat-card__link--split) .sf-cat-card__media:has(img) img {
    object-fit: contain;
    padding: 0;
}

/* Collection pages: every collection card gets the same square image frame. The
   frame used to take its height from each photo (height: auto above), so a tall
   photo made its card, and the whole row, far taller than a wide one — 216px,
   302px and 536px side by side on Button Badge Machines. `contain` (above) keeps
   the whole product in view; the white frame matches the card. Scoped to the
   catalog column: the home page cards have their own photo treatment
   (.sf-cat-card__media--photo). The two-card layout (1025px and up, in
   storefront-pages.css) already uses the same 1 / 1 frame. */
.sf-catalog__main .sf-cat-card__link:not(.sf-cat-card__link--split) .sf-cat-card__media:has(img) {
    aspect-ratio: 1 / 1;
}

/* ==========================================================================
   Wide category card — a compact "featured collection" banner.
   It spans the row, so a 1/3-width square photo beside a title and one line
   of copy left most of the card empty. Now: 180px photo | label, title,
   two-line blurb | red CTA button, on a soft brand tint. Stacks on phones.
   ========================================================================== */
.sf-cat-card--wide .sf-cat-card__link--split {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: stretch;
    background-image: linear-gradient(100deg, #FFF5F5 0%, #FFFFFF 55%);
}

.sf-cat-card--wide .sf-cat-card__link--split .sf-cat-card__media {
    width: 180px;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    align-self: center;
    padding: 0;
    background: #FFFFFF;
}

.sf-cat-card--wide .sf-cat-card__link--split .sf-cat-card__media img {
    object-fit: contain;
}

.sf-cat-card--wide .sf-cat-card__link--split .sf-cat-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title cta"
        "desc  cta";
    align-content: center;
    align-items: center;
    column-gap: 32px;
    row-gap: 6px;
    padding: 24px 32px;
}

.sf-cat-card--wide .sf-cat-card__title {
    grid-area: title;
    margin: 0;
    font-size: 1.3rem;
}

/* A small label above the title says why this card is different. */
.sf-cat-card--wide .sf-cat-card__title::before {
    content: "Featured collection";
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
}

.sf-cat-card--wide .sf-cat-card__desc {
    grid-area: desc;
    max-width: 640px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-cat-card--wide .sf-cat-card__cta {
    grid-area: cta;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 22px;
    border-radius: 999px;
    background-color: var(--color-primary);
    color: #FFFFFF;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sf-cat-card--wide:hover .sf-cat-card__cta {
    background-color: var(--color-primary-ink);
    transform: translateX(2px);
}

@media (max-width: 640px) {
    .sf-cat-card--wide .sf-cat-card__link--split {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .sf-cat-card--wide .sf-cat-card__link--split .sf-cat-card__media {
        width: 110px;
        align-self: start;
        border-right: 0;
        border-bottom: 0;
    }

    .sf-cat-card--wide .sf-cat-card__link--split .sf-cat-card__body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "title" "desc" "cta";
        row-gap: 8px;
        padding: 14px 16px 16px;
    }

    .sf-cat-card--wide .sf-cat-card__title { font-size: 1.05rem; }
    /* Long collection names wrap inside the button instead of running off the card. */
    .sf-cat-card--wide .sf-cat-card__cta {
        justify-self: start;
        max-width: 100%;
        padding: 9px 16px;
        border-radius: 12px;
        white-space: normal;
        line-height: 1.3;
    }
}

/* Collection cards without a blurb (most category-page subcollections): the
   description slot reserved two blank lines between title and CTA. Drop it
   when empty, tighten the body, and let "Shop <name>" wrap instead of being
   cut off with an ellipsis. */
.sf-cat-card__desc:empty { display: none; }

.sf-cat-card__link:not(.sf-cat-card__link--split) .sf-cat-card__body {
    gap: 6px;
    padding: 14px 16px 16px;
}

/* No reserved two-line slot: a one-line blurb takes one line. Cards in a row
   still line up, because the CTA is pushed to the bottom (margin-top:auto). */
.sf-cat-card__link:not(.sf-cat-card__link--split) .sf-cat-card__desc {
    min-height: 0;
}

.sf-cat-card__link:not(.sf-cat-card__link--split) .sf-cat-card__cta {
    white-space: normal;
    overflow: visible;
    line-height: 1.35;
}

/* Phones: two collection cards per row (home sections and the category page),
   with a more compact body so the title, blurb and CTA fit ~165px. `html` lifts
   the category-page selector above storefront-pages.css's
   `.sf-catalog__main .sf-cat-grid`, which loads after this file. The wide
   featured card still spans the row. */
@media (max-width: 560px) {
    .sf-cat-grid,
    html .sf-catalog__main .sf-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sf-cat-card__link:not(.sf-cat-card__link--split) .sf-cat-card__body {
        gap: 4px;
        padding: 10px 12px 12px;
    }

    .sf-cat-card__link:not(.sf-cat-card__link--split) .sf-cat-card__title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .sf-cat-card__link:not(.sf-cat-card__link--split) .sf-cat-card__desc {
        font-size: 0.74rem;
    }

    .sf-cat-card__link:not(.sf-cat-card__link--split) .sf-cat-card__cta {
        font-size: 0.76rem;
    }

    /* "Shop <collection name>" wrapped to three or four lines at ~165px, so the
       button rows of neighbouring cards sat at different heights and the text was
       cut at the edge. On phones the label reads "Shop now" on one line (the card
       title above already names the collection). */
    .sf-cat-card__link:not(.sf-cat-card__link--split) .sf-cat-card__cta-name {
        display: none;
    }

    .sf-cat-card__link:not(.sf-cat-card__link--split) .sf-cat-card__cta-now {
        display: inline;
    }
}

/* The short phone label; every wider layout (and the wide featured card) shows the
   full "Shop <name>". */
.sf-cat-card__cta-now {
    display: none;
}

/* Home banner tiles: the CSS product specimens sat small in a 112px panel.
   A taller panel and a scaled-up specimen let each one fill its stage; the
   corner callout chip keeps its size. */
.sf-tile__stage {
    height: 150px;
}

.sf-tile__stage > :not(.sf-tile__callout) {
    transform: scale(1.25);
    transform-origin: center;
}

@media (max-width: 575.98px) {
    .sf-tile__stage { height: 130px; }
    .sf-tile__stage > :not(.sf-tile__callout) { transform: scale(1.2); }
}

/* Home banner tiles — one consistent set: every tile is a drawn specimen in
   an equal 180px panel, each enlarged to fill it. zoom (not transform) so a
   multi-part specimen like the ID card's lanyard loop + card scales as one.
   Overrides the uniform scale above. */
.sf-tile__stage { height: 180px; }
.sf-tile__stage > :not(.sf-tile__callout) { transform: none; }

.sf-tile__stage:has(.sf-spec--titanium) > .sf-spec { zoom: 1.3; }
.sf-tile__stage:has(.sf-spec__loop) > :not(.sf-tile__callout) { zoom: 1.35; }
.sf-tile__stage:has(.sf-spec__pinwrap) > .sf-spec__pinwrap { zoom: 1.75; }
.sf-tile__stage:has(.sf-spec--brass) > .sf-spec { zoom: 1.3; }

@media (max-width: 575.98px) {
    .sf-tile__stage { height: 170px; }
}

/* Home banner tiles — single product photos. Every panel is square (equal
   heights across the row); a tile with a product photo shows it edge to edge
   (product shots are square, so nothing is cropped and there is no empty
   band above or below). A tile without one keeps its drawn specimen, centred
   in the same square. Overrides the 180px panel above. */
.sf-tile__stage,
.sf-tile__stage.sf-tile__stage--photo {
    height: auto;
    aspect-ratio: 1 / 1;
}

.sf-tile__stage.sf-tile__stage--photo {
    padding: 0;
    background: #FFFFFF;
}

.sf-tile__stage--photo > :not(.sf-tile__callout):not(.sf-tile__photo) { display: none; }

.sf-tile__stage--photo > .sf-tile__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-tile:hover .sf-tile__stage--photo > .sf-tile__photo { transform: scale(1.04); }
.sf-tile__stage--photo > .sf-tile__callout { z-index: 1; }

@media (max-width: 575.98px) {
    .sf-tile__stage { height: auto; }
}

/* Collection grids (home sections + category page): a row that isn't full is
   centred, like the product listing. Flex-wrap with fixed card widths replaces
   the grid; --cat-cols is the column count per breakpoint. `html` lifts the
   category-page selector above storefront-pages.css (loaded after this file).
   The wide featured card still takes the whole row. */
.sf-cat-grid,
html .sf-catalog__main .sf-cat-grid {
    --cat-cols: 5;
    --cat-gap: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--cat-gap);
}

html .sf-catalog__main .sf-cat-grid { --cat-cols: 4; --cat-gap: 18px; }

.sf-cat-grid > .sf-cat-card {
    flex: 0 0 calc((100% - (var(--cat-cols) - 1) * var(--cat-gap)) / var(--cat-cols));
    min-width: 0;
}

.sf-cat-grid > .sf-cat-card--wide { flex-basis: 100%; }

@media (max-width: 1100px) {
    .sf-cat-grid { --cat-cols: 4; }
}

@media (max-width: 900px) {
    .sf-cat-grid,
    html .sf-catalog__main .sf-cat-grid { --cat-cols: 3; }
}

@media (max-width: 560px) {
    .sf-cat-grid,
    html .sf-catalog__main .sf-cat-grid { --cat-cols: 2; --cat-gap: 12px; }
}




/* marque notice in main blade */


/* Top bar notice: scrolling marquee */
.sf-topbar-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;            /* lets the marquee shrink instead of pushing the links */
}

.sf-topbar-msg {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.sf-topbar-msg__track {
    display: inline-flex;
    width: max-content;
    animation: sf-topbar-marquee 20s linear infinite;
    will-change: transform;
}

.sf-topbar-msg__text {
    flex: 0 0 auto;
    min-width: max(50vw, 360px);   /* short notices still scroll across the bar */
    padding-right: 3rem;
}

.sf-topbar-msg:hover .sf-topbar-msg__track {
    animation-play-state: paused;
}

@keyframes sf-topbar-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }   /* two identical copies = seamless loop */
}

@media (prefers-reduced-motion: reduce) {
    .sf-topbar-msg__track { animation: none; }
    .sf-topbar-msg__text--copy { display: none; }
}

/* Force both copies into the track, side by side, so the loop is seamless */
.sf-topbar-msg .sf-topbar-msg__track {
    display: flex !important;
    width: max-content !important;
}

.sf-topbar-msg .sf-topbar-msg__track .sf-topbar-msg__text,
.sf-topbar-msg .sf-topbar-msg__track .sf-topbar-msg__text--copy {
    position: static !important;
    display: block !important;
    flex: 0 0 auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    min-width: max(50vw, 360px);
    padding-right: 3rem;
}

/* One-card collection grid: left-aligned, not centred (see storefront-pages.css). */
html .sf-cat-grid:not(:has(> .sf-cat-card + .sf-cat-card)) { justify-content: flex-start; }

/* Collection grids: centre ONLY a part-filled row that follows a full one. A
   grid that fits in a single row stays left-aligned (two lone cards centred
   in empty space looked stranded). "More cards than one row holds" is read
   with :has(nth-of-type): 5 / 4 / 3 / 2 columns by width on the home page,
   4 / 3 / 2 beside the category rail. Supersedes the earlier centre rules. */
html body .sf-cat-grid.sf-cat-grid { justify-content: flex-start; }
html body .sf-cat-grid.sf-cat-grid:has(> article:nth-of-type(6)) { justify-content: center; }
html body .sf-catalog__main .sf-cat-grid.sf-cat-grid:has(> article:nth-of-type(5)) { justify-content: center; }

@media (max-width: 1100px) {
    html body .sf-cat-grid.sf-cat-grid:has(> article:nth-of-type(5)) { justify-content: center; }
}

@media (max-width: 900px) {
    html body .sf-cat-grid.sf-cat-grid:has(> article:nth-of-type(4)) { justify-content: center; }
}

@media (max-width: 560px) {
    html body .sf-cat-grid.sf-cat-grid:has(> article:nth-of-type(3)) { justify-content: center; }
}

/* Hero CTAs: the swatch box and the instant quote are the higher-intent
   actions, so they read as real buttons now instead of a grey outline and a
   grey pill. Instant Quote: solid navy with a red icon chip. Swatch: white
   with a red border, red text and a tinted icon chip. Browse Catalog keeps
   its red. All three share a height and lift on hover. */
.sf-hero__cta {
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.86rem;
}

.sf-hero__cta svg {
    box-sizing: content-box;
    flex-shrink: 0;
    padding: 5px;
    border-radius: 50%;
}

.sf-hero__cta--primary svg { padding: 0; }

.sf-hero__cta.sf-hero__cta--quiet {
    background-color: #0F172A;
    border: 1px solid #0F172A;
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.45);
}

.sf-hero__cta--quiet svg {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.sf-hero__cta.sf-hero__cta--quiet:hover {
    background-color: #1E293B;
    border-color: #1E293B;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px rgba(15, 23, 42, 0.5);
}

.sf-hero__cta.sf-hero__cta--ghost {
    background-color: #FFFFFF;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary-ink);
    font-weight: 700;
    box-shadow: 0 6px 16px -8px rgba(215, 35, 40, 0.35);
}

.sf-hero__cta--ghost svg {
    background-color: #FEE2E2;
    color: var(--color-primary-ink);
}

.sf-hero__cta.sf-hero__cta--ghost:hover {
    background-color: #FEF2F2;
    border-color: var(--color-primary-ink);
    color: var(--color-primary-ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(215, 35, 40, 0.45);
}

.sf-hero__cta:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

/* Phones: the four banner tiles two per row (was one), with a compact tile so
   each fits ~165px: smaller title and price, label/price allowed to wrap, a
   smaller drawn specimen, no teaser line. */
@media (max-width: 580px) {
    .sf-hero__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sf-tile { padding: 8px; }
    .sf-tile__stage { padding: 6px; }
    .sf-tile__stage > :not(.sf-tile__callout) { zoom: 0.8; }

    .sf-tile__callout {
        right: 6px;
        bottom: 6px;
        padding: 2px 6px;
        font-size: 0.55rem;
    }

    .sf-tile__body { margin-top: 8px; }
    .sf-tile__meta { flex-wrap: wrap; gap: 2px 6px; }
    .sf-tile__price { font-size: 0.66rem; }
    .sf-tile__price strong { font-size: 0.74rem; }
    .sf-tile__title { font-size: 0.82rem; }
    .sf-tile__desc { display: none; }

    .sf-tile__foot {
        margin-top: 8px;
        padding-top: 8px;
        font-size: 0.7rem;
    }
}

/* Phone sizes for each drawn specimen in the half-width banner tiles (same
   specificity as the desktop per-specimen zooms, so these win at this width). */
@media (max-width: 580px) {
    .sf-tile__stage:has(.sf-spec--titanium) > .sf-spec { zoom: 0.68; }
    .sf-tile__stage:has(.sf-spec__loop) > :not(.sf-tile__callout) { zoom: 0.8; }
    .sf-tile__stage:has(.sf-spec__pinwrap) > .sf-spec__pinwrap { zoom: 1.15; }
    .sf-tile__stage:has(.sf-spec--brass) > .sf-spec { zoom: 0.68; }
}

/* Phone banner tiles, final sizing: photos fill their square panel (no zoom,
   no inset); the drawn ID card and plaque are scaled to sit inside it whole. */
@media (max-width: 580px) {
    .sf-tile__stage.sf-tile__stage--photo { padding: 0; }
    .sf-tile__stage > .sf-tile__photo { zoom: 1; }
    .sf-tile__stage:has(.sf-spec__loop) > :not(.sf-tile__callout) { zoom: 0.72; }
    .sf-tile__stage:has(.sf-spec--brass) > .sf-spec { zoom: 0.62; }
}

/* Home banner tiles: the image panel runs flush to the card's edges (no inset
   around it) with a hairline under it; only the text keeps a modest padding.
   Overrides the 14px link padding, the panel's own border/radius, and the
   phone padding added above. */
.sf-tile { overflow: hidden; }
.sf-tile__link { padding: 0; }

.sf-tile__stage,
.sf-tile__stage.sf-tile__stage--photo {
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
}

.sf-tile__body { margin: 12px 14px 0; }
.sf-tile__foot { margin: 12px 14px 14px; }

@media (max-width: 580px) {
    .sf-tile { padding: 0; }
    .sf-tile__stage { padding: 0; }
    .sf-tile__body { margin: 8px 10px 0; }
    .sf-tile__foot { margin: 8px 10px 10px; }
}

/* Hero social proof on phones. The desktop pill (stars · sentence · live dot)
   wrapped into a three-line box. Same content, re-laid as a small header:
   row 1 — amber stars beside a soft green "Dispatching Daily" chip (the pulse
   dot sits inside the chip); row 2 — the full trust sentence as a balanced
   two-line caption. No outer box. The headline is sized to the viewport and
   wraps normally so it spans the screen. Desktop is untouched. */
@media (max-width: 580px) {
    .sf-hero__pill {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px 10px;
        max-width: 340px;
        margin: 0 auto 16px;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
    }

    .sf-hero__pill-sep { display: none; }

    .sf-hero__stars {
        order: 1;
        display: inline-flex;
        gap: 2px;
        line-height: 0;
    }

    .sf-hero__stars svg { width: 14px; height: 14px; }

    .sf-hero__pulse {
        order: 2;
        position: relative;
        z-index: 1;
        margin-right: -22px;
    }

    .sf-hero__pill-live {
        order: 3;
        padding: 4px 10px 4px 22px;
        border: 1px solid #A7F3D0;
        border-radius: 999px;
        background-color: #ECFDF5;
        font-size: 0.7rem;
        letter-spacing: 0.01em;
    }

    .sf-hero__pill-main {
        order: 4;
        flex: 1 1 100%;
        font-size: 0.82rem;
        font-weight: 600;
        line-height: 1.45;
        color: #334155;
        text-align: center;
        text-wrap: balance;
    }

    .sf-hero__title {
        font-size: clamp(1.7rem, 7.6vw, 2.2rem);
        line-height: 1.14;
        text-wrap: pretty;
    }
}

/* Delivery timetable on phones: the arrival date (no-wrap) took the row's
   width and squeezed the service name into a sliver that ran under it. Stack
   them: service (+ Recommended tag) on top, arrival date below. */
@media (max-width: 580px) {
    .sf-timetable__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .sf-timetable__row--express { padding-left: 12px; padding-right: 12px; }

    .sf-arrival {
        font-size: 0.82rem;
        white-space: normal;
    }
}

/* Breathing room between the delivery-zone cards and the arrival timetable. */
.sf-postcode-widget .sf-timetable { margin-top: 14px; }


/* let the reCAPTCHA wrapper grow to fit the error message */
.sf-quote-submit .g-recaptcha > div {
    height: auto !important;
}

.sf-quote-submit .text-danger {
    display: block;
    margin-top: 8px;
}

/* stack captcha, error and button with space between them */
.sf-quote-submit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

/* ==========================================================================
   Hero category tiles as a looping carousel — storefront.js adds
   .sf-hero__grid--carousel, clones the tiles on both sides, and slides one
   tile at a time. Same widths as the old grid: four across, two below 1100px
   (phones keep the compact two-up tiles). Swipe / trackpad scroll works too.
   The padding gives the hover shadows room (an overflow box clips them) and
   the negative margins cancel it, so the hero keeps its spacing.
   ========================================================================== */
.sf-hero__grid.sf-hero__grid--carousel {
    --hero-per: 4;
    --hero-gap: 18px;
    display: flex;
    gap: var(--hero-gap);
    margin: 20px -4px -22px;
    padding: 6px 4px 22px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    scrollbar-width: none;
}

.sf-hero__grid--carousel::-webkit-scrollbar { display: none; }

.sf-hero__grid--carousel > .sf-tile {
    flex: 0 0 calc((100% - (var(--hero-per) - 1) * var(--hero-gap)) / var(--hero-per));
    min-width: 0;
    scroll-snap-align: start;
}

@media (max-width: 1100px) {
    .sf-hero__grid.sf-hero__grid--carousel { --hero-per: 2; }
}

@media (max-width: 580px) {
    .sf-hero__grid.sf-hero__grid--carousel { --hero-gap: 10px; }
}

/* Prev / next arrows (added by storefront.js): round white buttons over the
   row's edges, level with the photos, so it reads as scrollable. */
.sf-hero__carousel { position: relative; }

.sf-hero__arrow {
    position: absolute;
    top: 38%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background-color: #FFFFFF;
    color: var(--color-secondary);
    box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.3);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sf-hero__arrow--prev { left: -20px; }
.sf-hero__arrow--next { right: -20px; }

.sf-hero__arrow:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 8px 20px -6px rgba(215, 35, 40, 0.5);
}

.sf-hero__arrow:focus-visible {
    outline: 3px solid rgba(215, 35, 40, 0.35);
    outline-offset: 2px;
}

/* No room outside the row on narrower screens: sit just inside its edges. */
@media (max-width: 1400px) {
    .sf-hero__arrow--prev { left: 6px; }
    .sf-hero__arrow--next { right: 6px; }
}

@media (max-width: 580px) {
    .sf-hero__arrow { width: 34px; height: 34px; }
    .sf-hero__arrow svg { width: 15px; height: 15px; }
}