/* ==========================================================================
   modern.css — standalone design system. Replaces the old main.css entirely.
   Color scheme preserved: teal #2ebaae, charcoal #3c3b3b on light gray #f4f4f4.
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Tokens ---------- */
:root {
    --accent:        #2ebaae;
    --accent-dark:   #17786d; /* 4.8:1 on --bg-page; #1c8478 was 4.1 */
    --accent-deep:   #0f5f56;
    --accent-soft:   rgba(46, 186, 174, 0.09);
    --accent-line:   rgba(46, 186, 174, 0.35);

    /* Deeper, slightly cool neutrals read as more considered than flat greys. */
    --ink:           #10141a;
    --ink-soft:      #232a33;
    --text:          #39414c;
    --text-soft:     #5b6472;
    --text-faint:    #646e7b; /* 4.7:1 on --bg-page; #8a94a3 was 2.8 */

    --bg:            #ffffff;
    --bg-page:       #f2f4f6;
    --bg-soft:       #f8fafb;
    --bg-deep:       #0d1117;

    --border:        #e4e8ec;
    --border-strong: #cdd4dc;

    --success:       #17864a;
    --danger:        #c62b3d;
    --warning:       #f0a500;

    --radius-xs: 5px;
    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-pill: 999px;

    /* Layered shadows: a tight contact shadow plus a wide soft one. */
    --shadow-xs: 0 1px 2px rgba(16, 20, 26, 0.05);
    --shadow-sm: 0 1px 2px rgba(16, 20, 26, 0.05), 0 3px 10px rgba(16, 20, 26, 0.045);
    --shadow-md: 0 1px 2px rgba(16, 20, 26, 0.05), 0 8px 24px rgba(16, 20, 26, 0.07);
    --shadow-lg: 0 2px 4px rgba(16, 20, 26, 0.05), 0 18px 44px rgba(16, 20, 26, 0.11);
    --shadow-accent: 0 6px 20px rgba(46, 186, 174, 0.32);

    --container: 1240px;
    --header-h:  72px;

    /* Fluid type scale — no breakpoint jumps between phone and desktop. */
    --step-0:  clamp(0.95rem, 0.92rem + 0.15vw, 1rem);
    --step-1:  clamp(1.08rem, 1.02rem + 0.28vw, 1.25rem);
    --step-2:  clamp(1.28rem, 1.16rem + 0.55vw, 1.6rem);
    --step-3:  clamp(1.5rem, 1.28rem + 1vw, 2.1rem);
    --step-4:  clamp(1.85rem, 1.42rem + 1.9vw, 3rem);

    --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --font-body:    'Source Sans Pro', 'Source Sans Pro Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-display: 'Raleway', 'Raleway Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
html, body { background: var(--bg-page); }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent-dark);
    transition: color 0.15s var(--ease);
}
a:hover { color: var(--accent); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; color: var(--ink); }

/* Typography utility for content area */
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-display); color: var(--ink); }
.prose h2 { font-size: 1.5em; line-height: 1.25; margin: 1.75em 0 0.5em; font-weight: 800; }
.prose h3 { font-size: 1.15em; line-height: 1.3;  margin: 1.5em 0 0.4em; font-weight: 800; }
.prose h4 { font-size: 1em;    line-height: 1.35; margin: 1.25em 0 0.4em; font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1em 1.25em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul ul, .prose ol ol { margin-bottom: 0; }
.prose a { color: var(--accent-dark); border-bottom: 1px solid var(--accent-line); }
.prose a:hover { color: var(--accent); border-bottom-color: var(--accent); }
/* Don't double-decorate links that already have their own styling */
.prose .linked-list a,
.prose .chip-list a,
.prose .brand-chip-list a,
.prose .chip,
.prose .btn {
    border-bottom: 0 !important;
}
.prose .linked-list a:hover { color: var(--accent-dark); }

/* Global heading wrap safety */
h1, h2, h3, h4, h5, h6 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Prevent any container child from overflowing horizontally */
body { overflow-x: hidden; }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 736px) {
    .container { padding: 0 16px; }
}

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; outline: 2px solid var(--accent); }

/* ---------- Site header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header { background: #fff; }
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}
.site-header__brand {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
}
.site-header__brand a {
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.site-header__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}
.site-header__nav {
    display: flex;
    align-items: stretch;
    gap: 2px;
    margin-left: 12px;
    flex: 1;
    min-width: 0;
    align-self: stretch;
}
/* Top-level items: either a bare link, or a .nav-item wrapper holding a dropdown. */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}
/*
 * Bare top-level links must not stretch.
 *
 * .site-header__nav is align-items: stretch so that .nav-item fills the header
 * height and its dropdown, positioned at top: 100%, opens flush under it. A
 * link that is a direct child of the nav — Merken, Blog, the content types —
 * inherits that stretch, so its hover background filled the whole header height
 * and read as a tall lozenge, while Shop's pill (nested inside .nav-item, which
 * centres it) hugged the text. Centring only the direct children evens them up
 * and leaves the dropdown geometry alone.
 */
.site-header__nav > .nav-link {
    align-self: center;
}
.site-header__nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--text);
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.site-header__nav .nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link {
    background: var(--accent-soft);
    color: var(--accent-dark);
}
.nav-link--trigger::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.55;
    transition: transform 0.15s var(--ease);
}
.nav-item:hover > .nav-link--trigger::after,
.nav-item:focus-within > .nav-link--trigger::after { transform: rotate(180deg); }

/* ---------- Header dropdown (CSS-only: hover + focus-within) ---------- */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
    z-index: 60;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown a {
    display: block;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    white-space: nowrap;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
    background: var(--accent-soft);
    color: var(--accent-dark);
}
.nav-dropdown__all {
    margin-top: 4px;
    padding-top: 10px !important;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
    color: var(--accent-dark) !important;
    font-size: 13px !important;
}
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: transparent;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
    font-size: 16px;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent-dark); }

.site-header__search {
    position: relative;
}
.site-header__search input {
    width: 200px;
    height: 40px;
    padding: 0 16px 0 40px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 14px;
    transition: border-color 0.15s var(--ease), background 0.15s var(--ease), width 0.2s var(--ease);
}
.site-header__search input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    width: 260px;
}
.site-header__search::before {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    font-size: 13px;
    pointer-events: none;
}

.menu-toggle { display: none; }

@media (max-width: 880px) {
    /* The hamburger must appear on the same breakpoint that hides the nav,
       otherwise tablets get no navigation at all. */
    .site-header__nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .site-header__search input { width: 160px; }
    .site-header__search input:focus { width: 180px; }
}
@media (max-width: 600px) {
    .site-header__search { display: none; }
}

/* ---------- Mobile menu (off-canvas) ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 25, 0.55);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    /* visibility, not aria-hidden: it also takes the closed menu's links out
       of the tab order, which :target can't toggle an attribute for. The
       delay keeps it visible until the fade-out finishes. */
    visibility: hidden;
    transition: opacity 0.2s var(--ease), visibility 0s linear 0.2s;
}
.mobile-menu:target {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.2s var(--ease), visibility 0s;
}
.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    background: #fff;
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mobile-menu:target .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__close {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}
.mobile-menu__close:hover { background: var(--accent-soft); }
.mobile-menu__close::before {
    content: '\f00d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}
.mobile-menu__search input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
}
.mobile-menu__search input:focus { outline: none; border-color: var(--accent); }
.mobile-menu__list { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__list a {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--ink);
    font-size: 16px;
}
.mobile-menu__list a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.mobile-menu__title {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 8px;
    padding: 0 14px;
}

/* ---------- Hero (replaces left sidebar logo + tagline) ---------- */
.hero {
    position: relative;
    isolation: isolate;
    background: var(--bg-deep);
    padding: clamp(36px, 6vw, 68px) 0 clamp(28px, 4vw, 44px);
    margin-bottom: clamp(24px, 4vw, 44px);
    overflow: hidden;
}
/* Two soft accent pools instead of a flat fill — reads as depth, costs nothing. */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.hero::before {
    width: 620px; height: 620px;
    top: -320px; right: -140px;
    background: radial-gradient(circle, rgba(46, 186, 174, 0.30) 0%, rgba(46, 186, 174, 0) 68%);
}
.hero::after {
    width: 520px; height: 520px;
    bottom: -300px; left: -160px;
    background: radial-gradient(circle, rgba(46, 186, 174, 0.16) 0%, rgba(46, 186, 174, 0) 70%);
}
.hero__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(20px, 3vw, 34px);
    align-items: center;
}
.hero__logo img {
    width: clamp(72px, 9vw, 108px);
    height: clamp(72px, 9vw, 108px);
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    padding: 10px;
}
.hero__text { min-width: 0; }
.hero__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: var(--step-4);
    color: #fff;
    line-height: 1.05;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.hero__description {
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--step-1);
    line-height: 1.5;
    max-width: 660px;
}
.hero__description a {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.hero__description a:hover { border-bottom-color: #fff; }

.hero__search {
    display: flex;
    gap: 8px;
    margin-top: 22px;
    max-width: 520px;
}
.hero__search input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 15px;
    color: var(--ink);
    box-shadow: var(--shadow-md);
}
.hero__search input::placeholder { color: var(--text-faint); }
.hero__search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(46, 186, 174, 0.25);
}
.hero__search .btn {
    height: 52px;
    padding: 0 26px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

.hero__usps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px 28px;
    margin-top: clamp(28px, 4vw, 44px);
    padding-top: clamp(20px, 3vw, 28px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__usps li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.01em;
}
.hero__usp-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(46, 186, 174, 0.22);
    position: relative;
}
.hero__usp-icon::after {
    content: '';
    position: absolute;
    left: 5px; top: 6px;
    width: 7px; height: 3.5px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

@media (max-width: 600px) {
    /* Keep the hero short enough that the first products are reachable with one
       swipe — the logo sits beside the title instead of stacking above it. */
    .hero { padding: 22px 0 24px; margin-bottom: 24px; }
    .hero__inner {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px 14px;
        align-items: center;
    }
    /* Lift the text block's children into the hero grid so the logo can sit
       beside the title while the description spans the full width below. */
    .hero__text { display: contents; }
    .hero__logo img { width: 56px; height: 56px; padding: 7px; border-radius: var(--radius); }
    .hero__title { font-size: 1.65rem; margin-bottom: 0; grid-column: 2; }
    .hero__description {
        grid-column: 1 / -1;
        font-size: 14.5px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero__search {
        grid-column: 1 / -1;
        flex-direction: row;
        margin-top: 4px;
        max-width: none;
    }
    .hero__search input { height: 46px; padding: 0 16px; font-size: 14px; }
    .hero__search .btn { height: 46px; padding: 0 20px; font-size: 12px; }
    .hero__usps {
        grid-template-columns: 1fr 1fr;
        gap: 8px 14px;
        margin-top: 20px;
        padding-top: 16px;
    }
    .hero__usps li { font-size: 11.5px; gap: 7px; line-height: 1.3; }
    .hero__usp-icon { width: 15px; height: 15px; }
    .hero__usp-icon::after { left: 4px; top: 5px; width: 6px; height: 3px; }
}
@media (max-width: 380px) {
    .hero__usps { grid-template-columns: 1fr; }
    .hero__search .btn { padding: 0 16px; }
}

/* ---------- Page header (h1 area on individual pages) ---------- */
.page-header {
    padding: clamp(20px, 3vw, 34px) 0 clamp(16px, 2.5vw, 24px);
}
.page-header__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: var(--step-3);
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -0.028em;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}
.page-header__meta {
    color: var(--text-soft);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px 14px;
    flex-wrap: wrap;
}
/* Thin separator between meta items, without markup for it. */
.page-header__meta > span + span::before {
    content: '';
    display: inline-block;
    width: 3px; height: 3px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--border-strong);
    vertical-align: middle;
}
.page-header__meta a { color: var(--accent-dark); border-bottom: 1px solid var(--accent-line); }
.page-header__meta a:hover { color: var(--accent); }

/* Breadcrumbs */
.crumbs {
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--text-faint); }
.crumbs .sep { color: var(--border-strong); }

/* ---------- Main + layout ---------- */
main.site-main {
    flex: 1;
    padding-top: 24px;
    padding-bottom: 48px;
}
.section { padding: 8px 0 32px; }
.section__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: var(--step-2);
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--ink);
    line-height: 1.2;
    margin: clamp(36px, 5vw, 56px) 0 clamp(16px, 2.5vw, 22px);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    display: block;
}

/* ---------- Card ---------- */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    padding: clamp(18px, 3vw, 30px);
}
.card + .card { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
                color 0.18s var(--ease), box-shadow 0.28s var(--ease-out),
                transform 0.18s var(--ease);
    cursor: pointer;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}
.btn:hover {
    border-color: var(--border-strong);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.btn--primary {
    /* --accent behind white text is 2.4:1; --accent-dark is 5.3:1. */
    background: var(--accent-dark);
    color: #fff;
    border-color: var(--accent-dark);
    box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(46, 186, 174, 0.40);
}
.btn--lg { padding: 15px 24px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Product cards (listing) ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
    height: 100%;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.product-card__image {
    position: relative;
    /* Soft tint behind cut-out product shots so white-on-white photos still
       read as a distinct object rather than floating in the card. */
    background: linear-gradient(160deg, #fbfcfd 0%, #eef2f5 100%);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}
.product-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 -1px 0 var(--border);
    pointer-events: none;
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.45s var(--ease-out);
}
.product-card:hover .product-card__image img { transform: scale(1.06); }
.product-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
    min-width: 0;
}
.product-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--ink);
    overflow-wrap: anywhere;
    word-break: break-word;
}
/* Clamp the link, not the h3: an inline link inside a clamped h3 keeps the
   box of its full unclamped text, which overlaps the CTA below it. */
.product-card__title a {
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__title a:hover { color: var(--accent-dark); }
.product-card__teaser {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.product-card__price {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 20px;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.product-card__cta {
    padding: 10px 15px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.product-card:hover .product-card__cta { background: var(--accent-dark); }
.product-card__cta:hover {
    background: var(--accent) !important;
    color: #fff;
    box-shadow: var(--shadow-accent);
}

/* ---------- List controls (section title + sort bar) ---------- */
.list-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 40px 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.list-controls .section__title {
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ink);
}
.sort-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.sort-bar__label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-right: 4px;
}
.chip.sort-chip {
    font-size: 11px;
    padding: 6px 12px;
    letter-spacing: 0.08em;
}
.chip.sort-chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.chip.sort-chip.is-active:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ---------- Brand-compare side-by-side ---------- */
.product-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 900px) {
    .product-compare-grid { grid-template-columns: 1fr; }
}

/* ---------- Compact product card (sidebar/featured) ---------- */
.product-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background 0.15s var(--ease);
}
.product-strip:hover { background: var(--bg-soft); }
.product-strip__image {
    width: 64px;
    height: 64px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}
.product-strip__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-strip__body { min-width: 0; flex: 1; }
.product-strip__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.product-strip__price {
    color: var(--accent-dark);
    font-weight: 800;
    font-size: 13px;
    margin-top: 2px;
}

/* ---------- Category grid ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.category-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
    color: inherit;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    color: inherit;
}
/* Category images are a mix of cut-out product shots and lifestyle photos.
   Cropping them all to cover and laying the label over a gradient makes that
   inconsistency read as intentional, and looks far better than letterboxing. */
.category-card {
    position: relative;
    aspect-ratio: 4 / 3;
    justify-content: flex-end;
}
.category-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    background-color: #e8edf1;
    transition: transform 0.5s var(--ease-out);
}
.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Weighted towards the bottom third so the label stays legible over light
       product shots (white polos, pale gloves) as well as dark ones. */
    background: linear-gradient(to top,
        rgba(8, 11, 15, 0.94) 0%,
        rgba(8, 11, 15, 0.78) 22%,
        rgba(8, 11, 15, 0.38) 48%,
        rgba(8, 11, 15, 0.10) 72%,
        rgba(8, 11, 15, 0.04) 100%);
    transition: opacity 0.3s var(--ease);
}
.category-card:hover .category-card__image { transform: scale(1.06); }
.category-card__body {
    position: relative;
    z-index: 1;
    padding: 16px 16px 15px;
    border-top: 0;
    text-align: left;
}
.category-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15.5px;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #fff;
    margin-bottom: 3px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.category-card:hover .category-card__title { color: #fff; }
.category-card__count {
    font-family: var(--font-display);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ---------- Home sections ---------- */
.home-section { margin-bottom: clamp(40px, 6vw, 68px); }
.home-section:last-child { margin-bottom: 0; }
.home-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: clamp(16px, 2.5vw, 24px);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.home-section__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: var(--step-2);
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.15;
}
.home-section__link {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.03em;
    color: var(--accent-dark);
    white-space: nowrap;
}
.home-section__link:hover { color: var(--accent); }

/* ---------- Article teaser cards ---------- */
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.teaser-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
}
.teaser-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.teaser-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--bg-page);
}
.teaser-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.teaser-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}
.teaser-card__meta {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.teaser-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--step-1);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.teaser-card__title a { color: inherit; }
.teaser-card__title a:hover { color: var(--accent-dark); }
.teaser-card__teaser {
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}
.teaser-card__more {
    margin-top: auto;
    padding-top: 6px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    color: var(--accent-dark);
}
.teaser-card:hover .teaser-card__more { color: var(--accent); }

/* ---------- Chip list (brands) ---------- */
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip {
    display: inline-block;
    padding: 9px 17px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    transition: all 0.15s var(--ease);
}
.chip:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---------- Linked list ---------- */
ul.linked-list,
ol.linked-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0 0 1em 0;
    padding: 0;
}
ul.linked-list li,
ol.linked-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    list-style: none;
}
.linked-list li:last-child { border-bottom: 0; }
.linked-list li a {
    color: var(--ink);
    font-weight: 600;
    flex: 1;
    min-width: 0;
}
.linked-list li a:hover { color: var(--accent-dark); }
.linked-list .meta {
    color: var(--text-faint);
    font-size: 13px;
    white-space: nowrap;
}

/* ---------- FAQ / dl ---------- */
.faq dt {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--ink);
    font-size: 15px;
    margin-top: 18px;
    margin-bottom: 4px;
}
.faq dt:first-child { margin-top: 0; }
.faq dd { color: var(--text-soft); line-height: 1.6; }

/* ---------- Product detail ---------- */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
}
.product-detail > * { min-width: 0; }
.product-detail__gallery {
    /* Same tinted ground as the listing cards, so cut-out shots on white
       backgrounds still read as a product rather than a hole in the page. */
    background: linear-gradient(160deg, #fbfcfd 0%, #eef2f5 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 48px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.18s var(--ease), box-shadow 0.28s var(--ease-out);
    box-shadow: var(--shadow-xs);
}
.product-detail__gallery:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}
.product-detail__gallery img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.45s var(--ease-out);
}
.product-detail__gallery:hover img { transform: scale(1.05); }

/* Product gallery: a row of the same framed tiles, scroll-snapped. */
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery__viewport { position: relative; }
.gallery__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border-radius: var(--radius-lg);
    outline-offset: 3px;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
/* The hover lift reads as a card popping out of a strip; keep the zoom only. */
.gallery__slide:hover { box-shadow: none; border-color: var(--border); }
.gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s var(--ease);
}
.gallery__nav:hover { background: #fff; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
    flex: 0 0 64px;
    height: 64px;
    padding: 6px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(160deg, #fbfcfd 0%, #eef2f5 100%);
    cursor: pointer;
    transition: border-color 0.18s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumb:hover { border-color: var(--border-strong); }
.gallery__thumb.is-active { border-color: var(--accent); }
@media (hover: none) {
    /* Touch devices swipe; the arrows only cover the photo. */
    .gallery__nav { display: none; }
}

.buybox {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 28px);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.buybox__price {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 3.4vw, 2.6rem);
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.03em;
}
.buybox__unavailable {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--danger);
    font-size: 1.2rem;
}
.buybox__benefits { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.buybox__benefits li {
    padding-left: 24px;
    position: relative;
    color: var(--text-soft);
}
.buybox__benefits li::before {
    content: '';
    position: absolute;
    left: 0; top: 7px;
    width: 12px; height: 6px;
    border-left: 2px solid var(--success);
    border-bottom: 2px solid var(--success);
    transform: rotate(-45deg);
}
.buybox__benefits strong { color: var(--success); font-weight: 700; }

@media (max-width: 980px) {
    .product-detail { grid-template-columns: 1fr; gap: 20px; }
    .buybox { position: static; }
}
@media (max-width: 600px) {
    .product-detail__gallery { padding: 20px; }
    .buybox__price { font-size: 1.7rem; }
}

/* Star rating */
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text-soft); }
.rating .star { color: #ddd; font-size: 14px; }
.rating .star--on { color: var(--warning); }

/* Product description prose */
.product-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-soft);
}
.product-description p { margin: 0 0 1em; }
.product-description strong { color: var(--ink); }

/* Spec table */
.spec-table { font-size: 14px; }
.spec-table thead tr { border-bottom: 2px solid var(--border-strong); }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tbody tr:last-child { border-bottom: 0; }
.spec-table td, .spec-table th { padding: 10px 8px; vertical-align: top; color: var(--text-soft); text-align: left; }
.spec-table th { color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 13px; }
.spec-table td:first-child { color: var(--ink); width: 40%; font-weight: 600; }

/* ---------- Pagination (simple — prev/next only) ---------- */
nav.pagination-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 460px;
    margin: 32px auto 24px;
    align-items: stretch;
}
nav.pagination-simple > .pagination-simple__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--ink);
    background: #fff;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
}
nav.pagination-simple > a.pagination-simple__btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(46, 186, 174, 0.30);
}
nav.pagination-simple > .pagination-simple__btn.is-disabled {
    background: var(--bg-soft);
    border-color: var(--border);
    color: var(--text-faint);
    cursor: default;
    opacity: 1;
}
@media (max-width: 480px) {
    nav.pagination-simple > .pagination-simple__btn { padding: 12px 14px; font-size: 12px; }
}

/* ---------- Pagination (numbered — has <ul>) ---------- */
.pagination,
ul.pagination,
nav[role="navigation"] ul.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 48px 0 32px;
}
ul.pagination a, ul.pagination span,
.pagination > a, .pagination > span,
.pagination li a, .pagination li span {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--ink);
    background: #fff;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.15s var(--ease);
    min-width: 40px;
    text-align: center;
}
ul.pagination a:hover, ul.pagination .active span,
.pagination > a:hover, .pagination .active > span,
.pagination li a:hover, .pagination li.active span {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
ul.pagination .disabled span,
.pagination .disabled span,
.pagination li.disabled span {
    opacity: 0.45;
}

/* ---------- Callout/highlight ---------- */
.callout {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--ink);
    margin: 16px 0;
}
.callout a { color: var(--accent-deep); border-bottom: 1px solid var(--accent-line); }
.callout a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    background: var(--bg-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: clamp(40px, 6vw, 68px) 0 28px;
    margin-top: clamp(40px, 6vw, 72px);
}
/* Hairline of brand colour along the top edge. */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 55%, transparent 100%);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: clamp(24px, 4vw, 40px);
    margin-bottom: clamp(28px, 4vw, 40px);
}
/* The site's own logo in the footer's first column, above the name. Sits on a
   dark panel, so it gets a touch of lift rather than being left to disappear
   into the background on the darker marks. */
.site-footer__logo {
    display: inline-block;
    margin-bottom: 12px;
    line-height: 0;
}
.site-footer__logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px;
}

.site-footer h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 12px;
}
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { display: flex; flex-direction: column; gap: 6px; }
.site-footer ul.partners li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer ul.partners li > a:first-child {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.site-footer ul.partners li > a:first-child img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.site-footer ul.partners li > a:first-child .partner-icon {
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.site-footer ul.partners .partner-info { font-size: 13px; line-height: 1.4; }
.site-footer ul.partners .partner-info strong { color: #fff; display: block; font-weight: 700; }

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}
.site-footer ul.site-footer__social {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.site-footer ul.site-footer__social li { margin: 0; padding: 0; }
.site-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.site-footer__social a:hover { background: var(--accent); color: #fff; }
.site-footer__copyright { color: rgba(255, 255, 255, 0.55); }
.site-footer__copyright img { display: inline-block; vertical-align: middle; margin: 0 6px; }

/* ---------- Focus visible ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Visually hidden ---------- */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ==========================================================================
   Legacy class compatibility (for blog, page, calendar, content, errors —
   pages that still use the old .post / .mini-post / .image.featured markup)
   ========================================================================== */

.site-main article.post {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(18px, 3vw, 32px);
    box-shadow: var(--shadow-xs);
    margin-bottom: 24px;
}
/* article.post is already a card; a .card nested straight inside it just draws a
   second border around the same content. Strip the inner chrome. */
.site-main article.post > .card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
.site-main article.post > header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.site-main article.post > header:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.site-main article.post > header .title h1 {
    font-family: var(--font-display) !important;
    font-weight: 900;
    font-size: var(--step-3) !important;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -0.028em !important;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.site-main article.post > header .title h2,
.site-main article.post h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4em;
    color: var(--ink);
    margin: 1.5em 0 0.5em;
    line-height: 1.25;
    letter-spacing: 0 !important;
}
.site-main article.post h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1em;
    color: var(--ink);
    margin: 1.25em 0 0.4em;
    letter-spacing: 0 !important;
}
.site-main article.post h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1em;
    margin: 1em 0 0.4em;
}
.site-main article.post p { margin: 0 0 1em; }
.site-main article.post p:last-child { margin-bottom: 0; }
.site-main article.post a { color: var(--accent-dark); }
.site-main article.post a:hover { color: var(--accent); }
.site-main article.post ul,
.site-main article.post ol { margin: 0 0 1em 1.25em; }
.site-main article.post ul { list-style: disc; }
.site-main article.post ol { list-style: decimal; }
.site-main article.post img { border-radius: var(--radius-sm); }
.site-main article.post table { font-size: 0.95em; margin: 1em 0; }
.site-main article.post table th,
.site-main article.post table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.site-main article.post .image.featured {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 0 0 16px;
    position: relative;
}
.site-main article.post .image.featured .credit {
    border-radius: 0 0 0 var(--radius-sm);
}
.site-main article.post[style*="ebe6d7"],
.site-main article.post[style*="background-color: rgb(235, 230, 215)"] {
    background: var(--accent-soft) !important;
    border: 1px solid var(--accent-line) !important;
    border-left: 4px solid var(--accent) !important;
    color: var(--ink);
}
.site-main article.post > footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 13px;
}
.site-main article.post > footer:empty {
    margin: 0; padding: 0; border: 0;
}

/* Old .mini-post used outside the shop context — render as compact card */
.site-main article.mini-post:not(.product-card) {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
}

/* Legacy .actions (ul of buttons) */
.site-main ul.actions,
.site-main article.post ul.actions {
    list-style: none;
    margin: 1em 0;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.site-main ul.actions li,
.site-main article.post ul.actions li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Legacy generic ".button" — old img-based teal CTA, hide image fallback */
.site-main .button[type="submit"]:has(img[src="/images/button.png"]) {
    background: var(--accent);
    border-radius: var(--radius-sm);
    padding: 11px 20px;
    color: #fff;
    border: 0;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-main .button img[src="/images/button.png"] { display: none; }

/* Legacy <a class="button"> used in blog teasers / actions */
.site-main a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff !important;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    line-height: 1;
    transition: all 0.15s var(--ease);
    box-shadow: 0 2px 8px rgba(46, 186, 174, 0.28);
}
.site-main a.button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(46, 186, 174, 0.40);
    color: #fff !important;
}
.site-main a.button.large { padding: 13px 22px; font-size: 14px; }
.site-main a.button.previous,
.site-main a.button.next { background: var(--ink); box-shadow: none; }
.site-main a.button.previous:hover,
.site-main a.button.next:hover { background: var(--accent); box-shadow: 0 6px 18px rgba(46, 186, 174, 0.40); }

/* Legacy `.image.featured` (used in blog teaser / blog detail hero) */
.site-main .image.featured {
    display: block;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 0 0 16px;
    position: relative;
    border: 1px solid var(--border);
}

/* ---------- Reduced motion ---------- */
/* ==========================================================================
   Mobile refinements
   Phones get two columns for both grids — a single column turned a 35-category
   shop index into a page metres long — plus stacked card footers, since price
   and CTA cannot sit side by side in a ~165px card.
   ========================================================================== */
@media (max-width: 640px) {
    .category-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

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

    /* Inline "·" separators orphan at a line break once the meta wraps, so on
       phones each fact becomes its own pill and the dots are dropped. */
    .page-header__meta { gap: 6px; }
    .page-header__meta > span + span::before { display: none; }
    .page-header__meta > span {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-pill);
        padding: 5px 11px;
        font-size: 12.5px;
        line-height: 1.2;
    }

    /* Filter chips wrapped onto three rows and pushed the products down.
       One swipeable row instead, bled to the container edges. */
    .chip-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-left: -16px;
        margin-right: -16px;
        padding: 2px 16px 6px;
    }
    .chip-list::-webkit-scrollbar { display: none; }
    .chip-list > li { flex: 0 0 auto; scroll-snap-align: start; }
    .chip { white-space: nowrap; }
    /* The brand facet inside prose should still wrap — it's a link list, not a filter bar. */
    .prose .chip-list {
        flex-wrap: wrap;
        overflow-x: visible;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }

    /* Keep the section title and its "see all" link on one row. */
    .home-section { margin-bottom: 34px; }
    .home-section__head {
        flex-wrap: nowrap;
        gap: 12px;
        margin-bottom: 14px;
        padding-bottom: 11px;
    }
    .home-section__title { font-size: 1.25rem; }
    .home-section__link { font-size: 12px; }

    .category-card__body { padding: 12px 12px 13px; }
    .category-card__title { font-size: 13px; line-height: 1.25; }
    .category-card__count { font-size: 9.5px; letter-spacing: 0.12em; }

    .product-card__image { padding: 12px; }
    .product-card__body { padding: 11px 12px 13px; gap: 7px; }
    .product-card__title { font-size: 13px; }
    .product-card__title a { -webkit-line-clamp: 3; }
    /* Teasers cost a lot of height and add little at this width. */
    .product-card__teaser { display: none; }
    .product-card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 10px;
    }
    .product-card__footer form { width: 100%; }
    .product-card__cta {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        /* Keep the tap target at the 44px recommended minimum. */
        min-height: 44px;
    }
    .product-card__price { font-size: 1.1rem; }

    /* Hover lift is meaningless on touch and leaves sticky :hover states behind,
       but the resting shadow should stay — otherwise cards flatten on tap. */
    .product-card:hover,
    .category-card:hover,
    .teaser-card:hover {
        transform: none;
        box-shadow: var(--shadow-xs);
        border-color: var(--border);
    }
    .product-card:hover .product-card__image img,
    .category-card:hover .category-card__image { transform: none; }

    main.site-main { padding-bottom: 32px; }
}

/* Very narrow phones: one column reads better than two cramped ones. */
@media (max-width: 360px) {
    .category-grid,
    .product-grid { grid-template-columns: minmax(0, 1fr); }
    .product-card__teaser { display: -webkit-box; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, .product-card__cta, .buybox button, .pagination { display: none !important; }
    body, .site-main { background: #fff; }
}

/* ---------- Category listing: intro, sidebar, results ---------- */
/* The category page used to stack every supporting block — description, brand
   chips, cheapest/popular lists, blog links, FAQ, filters — above the product
   grid, so the first product sat roughly halfway down the document. Only the
   editorial intro stays on top now; the filters moved into a sidebar beside
   the grid and the rest runs underneath it. */
.category-intro {
    margin: 0 0 24px;
    padding: 2px 0 2px 18px;
    border-left: 3px solid var(--accent-line);
    color: var(--text);
    max-width: 78ch;
}
.category-intro > *:last-child { margin-bottom: 0; }
.category-intro p { margin: 0 0 0.85em; }
.category-intro__more > summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--accent-dark);
    border-bottom: 1px solid var(--accent-line);
}
.category-intro__more > summary::-webkit-details-marker { display: none; }
.category-intro__more > summary::after { content: " \002193"; }
.category-intro__more[open] > summary { margin-bottom: 0.85em; }
.category-intro__more[open] > summary::after { content: " \002191"; }
.category-intro__more > summary:hover { color: var(--accent); border-bottom-color: var(--accent); }

.shop-layout {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.shop-layout__main { min-width: 0; }
.shop-layout__side {
    position: sticky;
    /* Clear the fixed header, and leave room to scroll a tall filter column. */
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* The sort bar is the first thing in the results column; without this the
   sidebar starts 40px higher than the grid it belongs to. */
.shop-layout__main .list-controls { margin-top: 0; }

/* ---------- Filter panel (sidebar) ---------- */
/* Facets are generated per category (see App\Support\CategoryFacets), so the
   number of blocks varies from none to four. */
.filter-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    padding: 6px 16px 10px;
}
.filter-panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0 8px;
    border-bottom: 1px solid var(--border);
}
.filter-panel__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
}
.filter-panel__reset {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-dark);
    border-bottom: 1px solid var(--accent-line);
}
.filter-panel__reset:hover { color: var(--accent); border-bottom-color: var(--accent); }

.filter-block + .filter-block { border-top: 1px solid var(--border); }
.filter-block__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 0 8px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.filter-block__title::-webkit-details-marker { display: none; }
.filter-block__title:hover { color: var(--ink); }
/* Disclosure caret, drawn rather than shipped as an icon font. */
.filter-block__title::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.18s var(--ease);
}
.filter-block[open] > .filter-block__title::after {
    transform: rotate(-135deg) translate(-2px, -2px);
}
.filter-block__active {
    display: inline-block;
    min-width: 18px;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 10px;
    text-align: center;
    letter-spacing: 0;
}

.filter-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}
.filter-list--scroll {
    max-height: 260px;
    overflow-y: auto;
}
/* A list that is the whole panel, with no disclosure row above it. */
.filter-list--bare { margin-top: 10px; }
.filter-list__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px;
    margin: 0 -8px;
    border-radius: var(--radius-xs);
    font-size: 13.5px;
    color: var(--text);
    transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.filter-list__item:hover { background: var(--bg-soft); color: var(--ink); }
.filter-list__item.is-active {
    background: var(--ink);
    color: #fff;
    font-weight: 600;
}
.filter-list__item.is-active:hover { background: var(--accent); }
.filter-list__label { min-width: 0; }
.filter-list__count {
    flex: 0 0 auto;
    font-size: 11px;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}
.filter-list__item.is-active .filter-list__count { color: rgba(255, 255, 255, 0.65); }

/* ---------- Active filter pills (results column) ---------- */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}
.active-filters__pill {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
}
.active-filters__pill:hover { background: var(--danger); }
.active-filters__key {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}
.active-filters__x { font-size: 14px; line-height: 1; opacity: 0.7; }
.active-filters__clear {
    font-size: 12px;
    color: var(--text-soft);
    border-bottom: 1px solid var(--border-strong);
}
.active-filters__clear:hover { color: var(--ink); }

.category-support { margin-top: 40px; }

@media (max-width: 1040px) {
    /* No room for a column beside the grid: the panel becomes a compact
       horizontal bar above it, one scrolling row per facet, so the filters
       still cost only a few lines before the first product. */
    .shop-layout {
        display: block;
    }
    .shop-layout__side {
        position: static;
        max-height: none;
        overflow: visible;
        display: block;
        margin-bottom: 20px;
    }
    .shop-layout__side .filter-panel + .filter-panel { margin-top: 12px; }
    .filter-list {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .filter-list--scroll { max-height: none; overflow-y: visible; }
    .filter-list__item {
        margin: 0;
        white-space: nowrap;
        border: 1px solid var(--border);
        border-radius: var(--radius-pill);
        padding: 6px 13px;
        box-shadow: var(--shadow-xs);
    }
    .filter-list__item.is-active { border-color: var(--ink); }
}
