/*
 * Storefront UX fixes — 13 November 2026.
 * Loaded after the route styles on every page (shared style). Every rule is scoped
 * to storefront classes so the staff workspace is unaffected. Remove this file and
 * its line in public/index.php to undo all of it.
 *
 * Round 5 (Foundation, sections 15-17): design tokens (--ft-*) and the one
 * definition of each shared component. Area sheets loaded after this file:
 * storefront-ux-catalog.css, -commerce.css, -account.css, -home.css.
 */

/* 1. Header search: a leftover text glyph rendered a second, misplaced icon. */
.app-header .search-submit::after {
    content: none !important;
    display: none !important;
}

/* 2. Product page: the info column touched the card border. */
body:not(:has(.admin-shell)) .product-detail-layout {
    padding: 2rem 2.5rem;
}
@media (max-width: 768px) {
    body:not(:has(.admin-shell)) .product-detail-layout {
        padding: 1.25rem 1rem;
        gap: 1.5rem;
    }
}

/* 3. One clear sign-in prompt for guests (product page and cart). */
.guest-purchase-box,
.guest-cart-box {
    border: 1px solid #dbe4f0;
    border-radius: var(--ft-radius-lg);
    background: #f5f8fd;
    padding: 1.25rem;
}
.guest-purchase-box p,
.guest-cart-box p {
    margin: 0 0 1rem;
    color: #334155;
    line-height: 1.5;
}
.guest-cart-box {
    max-width: 560px;
    margin: 2.5rem auto;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #fff;
}
.guest-cart-box h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    line-height: 1.2;
}
.guest-purchase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.guest-cart-box .guest-purchase-actions {
    justify-content: center;
}
.guest-purchase-actions .btn {
    flex: 1 1 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
    text-decoration: none;
}
/* 3b. Catalogue sign-in links were forced to pale blue (#aac3e8, about 1.8:1
       contrast on white). Keep the same shape, use a readable blue (about 7:1).
       (.btn-outline/.btn-secondary now use the secondary button in section 16.) */
body:not(:has(.admin-shell)) :is(.catalog-price-notice__login, .catalog-main .b2b-order-login) {
    border-color: #6b93dc !important;
    color: #1d4fb8 !important;
}
body:not(:has(.admin-shell)) :is(.catalog-price-notice__login, .catalog-main .b2b-order-login):is(:hover, :focus-visible) {
    background: #eef4ff !important;
    border-color: #2f6fde !important;
}

/* 4. Catalogue rows: guests saw two sign-in links per row. The price column keeps
      "Log in voor prijzen"; the order column is now a compact button. */
.b2b-row .b2b-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.4rem 0.9rem;
    border: 1px solid #2f6fde;
    border-radius: 8px;
    background: #fff;
    color: #2f6fde;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.b2b-row .b2b-login-btn:hover,
.b2b-row .b2b-login-btn:focus-visible {
    background: #eef4ff;
}

@media (max-width: 720px) {
    /* On phones the price-column link is enough; no second prompt per product. */
    .b2b-row .b2b-login-btn { display: none; }
    .b2b-row .col-order:not(:has(*:not(.b2b-login-btn))) { display: none; }

    /* Product names may use two lines instead of being cut after one. */
    .b2b-row .b2b-prod-title,
    .b2b-row .b2b-prod-title a {
        white-space: normal;
        text-overflow: clip;
    }
    .b2b-row .b2b-prod-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}

/* 5. Home page product blocks.
      Desktop: four columns so eight products fill two complete rows (no gaps).
      Phone: one swipeable row per block instead of a tall stack. */
@media (min-width: 721px) {
    .lp-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 720px) {
    .lp-product-grid,
    .lp-product-slider {
        display: grid !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-auto-rows: auto;
        grid-auto-flow: column;
        grid-auto-columns: minmax(150px, 46%);
        gap: 0.75rem;
        overflow-x: auto !important;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        transform: none !important;
        padding-bottom: 0.25rem;
    }
    .lp-product-grid::-webkit-scrollbar,
    .lp-product-slider::-webkit-scrollbar { display: none; }
    .lp-product-grid > *,
    .lp-product-slider > * {
        min-width: 0;
        scroll-snap-align: start;
    }
    .lp-slider-controls { display: none !important; }
}

/* 6. Cart/checkout step bar on phones: the connector line ran through the step
      names. On narrow screens show compact steps without connector lines. */
@media (max-width: 720px) {
    .order-progress li::after { display: none !important; }
    .order-progress li { gap: 0.375rem; min-width: 0; }
    .order-progress li strong {
        font-size: 0.75rem;
        line-height: 1.2;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }
}

/* 7. Skip link: hidden until a keyboard user tabs to it. */
.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -4rem;
    z-index: 10000;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #1d4fb8;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    transition: top 120ms ease-out;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 0.75rem;
    outline: 3px solid #93b4f0;
    outline-offset: 2px;
}
#app-root:focus,
[data-route-focus]:focus { outline: none; }

/* 8. Home page: every product block is one row of cards with arrows
      (the arrows only reshuffled a fully visible grid before). */
@media (min-width: 721px) {
    .lp-product-slider {
        display: flex !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        gap: 1rem;
    }
    .lp-product-slider > * {
        flex: 0 0 calc((100% - 3rem) / 4) !important;
        max-width: calc((100% - 3rem) / 4);
        min-width: 0;
    }
}
@media (min-width: 721px) and (max-width: 1100px) {
    .lp-product-slider > * {
        flex-basis: calc((100% - 2rem) / 3) !important;
        max-width: calc((100% - 2rem) / 3);
    }
}

/* 9. Product page: quantity box and 'In winkelwagen' on one line, same height. */
body:not(:has(.admin-shell)) .purchase-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.75rem;
}
body:not(:has(.admin-shell)) .purchase-controls .qty-input {
    flex: 0 0 96px;
    width: 96px !important;
    height: auto !important;
    min-height: 52px;
    align-self: stretch;
}
body:not(:has(.admin-shell)) .purchase-controls .btn {
    flex: 1 1 180px;
    min-height: 52px;
    white-space: nowrap;
}

/* 10. Readable text (WCAG AA 4.5:1) for errors, warnings and secondary labels. */
:root { --apple-muted: #6e6e73; }
.summary-status.error,
.summary-panel .currency-context-note.error { color: #b42318 !important; }
body:not(:has(.admin-shell)) .catalog-table-count,
body:not(:has(.admin-shell)) .catalog-main .b2b-table thead th { color: #5f6b7a !important; }
.line-item-stock.low,
.line-item-alert { color: #b34700 !important; }

/* 11. Clear focus rings on cart, mini-cart and checkout choices. */
.stepper-btn:focus-visible,
.line-item-remove:focus-visible,
.cart-preview a:focus-visible,
.cart-preview button:focus-visible {
    outline: 3px solid #005fcc !important;
    outline-offset: 2px;
}
.address-card:has(input:focus-visible),
.payment-card:has(input:focus-visible) {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

/* 12. Phones: comfortable tap targets (min. 44px) and a sort field that fits. */
@media (max-width: 720px) {
    .lp-section-link,
    .filter-chip,
    .discovery-chips a,
    a.b2b-back-link,
    .product-back-link,
    a[href$="/catalog"].text-muted {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .catalog-sort-field,
    .discovery-sort,
    .field:has(> #catalog-sort) {
        flex: 1 1 100% !important;
        min-width: 0;
    }
}

/* 13. Screen-reader-only page heading (added by the router when a page has no visible one). */
.route-heading-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* 14. (Removed at integration, round 5: the catalogue's one-row filter bar in
       storefront-ux-catalog.css places the sort field itself.) */

/* ==========================================================================
   15. Design tokens (round 5, Foundation). One visual language for every
       storefront route. Other sheets use these names; do not hard-code colours.
   ========================================================================== */
:root {
    /* colour */
    --ft-primary: #0071e3;          /* fills only: buttons, active borders (white text 4.7:1) */
    --ft-primary-hover: #0062c4;
    --ft-primary-text: #0062c4;     /* small blue text and links (5.9:1 on white, 5.4:1 on --ft-bg) */
    --ft-primary-soft: #eef5ff;     /* selected and hover backgrounds */
    --ft-text: #1d1d1f;
    --ft-text-muted: #5b6779;       /* 5.7:1; minimum for helper and overline text */
    --ft-text-subtle: #6b7686;      /* placeholders only */
    --ft-bg: #f5f5f7;               /* page */
    --ft-surface: #ffffff;          /* cards */
    --ft-surface-2: #f7f9fc;        /* inset panels: purchase box, summaries */
    --ft-border: #d5dde7;
    --ft-border-strong: #c9d3df;    /* inputs, secondary buttons */
    --ft-divider: #e6ebf1;
    --ft-success-fg: #146c2e; --ft-success-bg: #e7f5ec;
    --ft-danger-fg: #b4232f;  --ft-danger-bg: #fdecee;
    --ft-warning-fg: #8a4b00; --ft-warning-bg: #fff3e0;
    --ft-info-fg: #0b5cad;    --ft-info-bg: #e8f1fd;
    --ft-neutral-fg: #3d4a5c; --ft-neutral-bg: #eef2f6;   /* quality badges */
    --ft-focus-color: var(--interaction-focus, #005fcc);  /* outline colour */
    --ft-focus: 0 0 0 3px rgba(0, 95, 204, .35);          /* focus halo (box-shadow value) */

    /* type */
    --ft-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
    --ft-fs-xs: 12px; --ft-fs-sm: 14px; --ft-fs-base: 16px; --ft-fs-md: 18px;
    --ft-fs-lg: 22px; --ft-fs-xl: 28px; --ft-fs-2xl: 36px;   /* 2xl: home hero and legal H1 only */
    --ft-fw-regular: 400; --ft-fw-semibold: 600; --ft-fw-bold: 700;
    --ft-lh-tight: 1.2; --ft-lh-body: 1.5;
    --ft-overline: 600 12px/1.3 var(--ft-font);  /* use with .ft-overline (uppercase, .04em, muted) */

    /* space (4-based) */
    --ft-s1: 4px; --ft-s2: 8px; --ft-s3: 12px; --ft-s4: 16px; --ft-s5: 24px; --ft-s6: 32px; --ft-s7: 48px;
    --ft-gutter: 16px;              /* side gutter; 24px from 768px */
    --ft-page-top: 24px;            /* nav to page H1 on every task page; 32px from 992px */

    /* shape and depth */
    --ft-radius-sm: 6px;            /* badges */
    --ft-radius-md: 10px;           /* buttons, inputs, small cards */
    --ft-radius-lg: 14px;           /* cards, dialogs */
    --ft-radius-pill: 999px;        /* filter chips and model chips only */
    --ft-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --ft-shadow-md: 0 8px 24px rgba(16, 24, 40, .12);  /* overlays only: menus, dialogs, preview */

    /* sizes */
    --ft-control-h: 44px; --ft-control-h-dense: 36px;
    --ft-header-h-mobile: 112px;    /* target sticky header on phones (logo row + search) */
}
@media (min-width: 768px) { :root { --ft-gutter: 24px; } }
@media (min-width: 992px) { :root { --ft-page-top: 32px; } }

/* Legacy bridges (variables only): older rules pick up the new values on the
   storefront. Scoped to the storefront so the staff workspace keeps its own. */
body:not(:has(.admin-shell)) {
    --primary: var(--ft-primary);
    --primary-hover: var(--ft-primary-hover);
    --apple-blue: var(--ft-primary);
    --apple-muted: var(--ft-text-muted);
    /* Account variables also on <body>: dialogs are mounted outside
       .b2b-account-wrapper and showed white text on no background (CA-01). */
    --account-ink: #15243a;
    --account-muted: var(--ft-text-muted);
    --account-line: #dfe7f0;
    --account-line-strong: #c8d8ea;
    --account-surface: rgba(255, 255, 255, .92);
    --account-soft-blue: #edf6ff;
    --account-primary: var(--ft-primary);
    --account-primary-dark: var(--ft-primary-hover);
}
body:not(:has(.admin-shell)) .b2b-account-wrapper {
    --account-muted: var(--ft-text-muted);
    --account-primary: var(--ft-primary);
    --account-primary-dark: var(--ft-primary-hover);
}

/* ==========================================================================
   16. Components: one definition each, mapped onto the existing classes.
       New markup may use the .ft-* classes directly. The header (.app-header)
       is excluded here; the frame is restyled separately.
   ========================================================================== */

/* 16a. Buttons — shared shape. 44px (dense 36px), radius 10px, 600, 15px. */
body:not(:has(.admin-shell)) :is(.btn, .b2b-btn, .wsp-btn, .ft-btn):not(.app-header *) {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ft-s2);
    height: auto;
    min-height: var(--ft-control-h);
    padding: 0 18px;
    border-radius: var(--ft-radius-md);
    font-family: inherit;
    font-size: 15px;
    font-weight: var(--ft-fw-semibold);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
body:not(:has(.admin-shell)) :is(.btn-sm, .b2b-btn-sm, .wsp-btn-sm, .ft-btn-sm):not(.app-header *) {
    min-height: var(--ft-control-h-dense);
    padding: 0 12px;
    font-size: var(--ft-fs-sm);
}

/* Dialog action rows: labels stay on one line; the row wraps instead (long DE/FR labels). */
body:not(:has(.admin-shell)) .b2b-modal-actions { flex-wrap: wrap; }
body:not(:has(.admin-shell)) .b2b-modal-actions > :is(.btn, .b2b-btn, .wsp-btn, .ft-btn) { white-space: nowrap; }
@media (max-width: 480px) {
    body:not(:has(.admin-shell)) .b2b-modal-actions > :is(.btn, .b2b-btn, .wsp-btn, .ft-btn) { flex: 1 1 auto; padding: 0 14px; }
}

/* 16b. Primary: flat blue fill, white text (no gradients, no resting shadow).
        Explicit colour on links and every link state (GS-01, CA-01, CA-02). */
body:not(:has(.admin-shell)) :is(.btn-primary, .b2b-btn-primary, .wsp-btn-primary, .summary-cta, .ft-btn-primary):not(.app-header *),
body:not(:has(.admin-shell)) :is(a.btn-primary, a.b2b-btn-primary, a.wsp-btn-primary, a.summary-cta, a.ft-btn-primary):not(.app-header *):is(:link, :visited) {
    background: var(--ft-primary);
    border: 1px solid var(--ft-primary);
    color: #fff;
    box-shadow: none;
    filter: none;
    text-decoration: none;
}
/* The catalogue add button keeps its own size and border; only the colours. */
body:not(:has(.admin-shell)) .b2b-add-btn:not(.success):not(.loading) {
    background: var(--ft-primary);
    color: #fff;
    box-shadow: none;
}
body:not(:has(.admin-shell)) :is(
    .btn-primary, .b2b-btn-primary, .wsp-btn-primary, .summary-cta, .ft-btn-primary,
    .b2b-add-btn:not(.success):not(.loading)
):not(.app-header *):is(:hover, :active):not(:disabled):not([aria-disabled="true"]) {
    background: var(--ft-primary-hover);
    border-color: var(--ft-primary-hover);
    color: #fff;
    box-shadow: none;
    text-decoration: none;
}

/* 16c. Secondary: white, 1px grey border, dark text.
        !important only because the storefront bundle forces pale blue
        (#aac3e8, 1.8:1) with !important on .btn-outline/.btn-secondary. */
body:not(:has(.admin-shell)) :is(
    .btn-outline, .btn-secondary, .b2b-btn-outline, .ft-btn-secondary,
    .wsp-btn:not(.wsp-btn-primary):not(.wsp-btn-quiet):not(.wsp-btn-danger-quiet)
):not(.app-header *) {
    background: var(--ft-surface) !important;
    border: 1px solid var(--ft-border-strong) !important;
    color: var(--ft-text) !important;
    box-shadow: none !important;
    text-decoration: none;
}
body:not(:has(.admin-shell)) :is(
    .btn-outline, .btn-secondary, .b2b-btn-outline, .ft-btn-secondary,
    .wsp-btn:not(.wsp-btn-primary):not(.wsp-btn-quiet):not(.wsp-btn-danger-quiet)
):not(.app-header *):is(:hover, :active):not(:disabled):not([aria-disabled="true"]) {
    background: var(--ft-primary-soft) !important;
    border-color: var(--ft-primary) !important;
    color: var(--ft-text) !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: none;
}

/* 16d. Ghost: blue text, no box. */
body:not(:has(.admin-shell)) :is(.ft-btn-ghost, .btn-link):not(.app-header *) {
    background: transparent;
    border: 1px solid transparent;
    color: var(--ft-primary-text);
    box-shadow: none;
}
body:not(:has(.admin-shell)) :is(.ft-btn-ghost, .btn-link):not(.app-header *):hover:not(:disabled) {
    background: var(--ft-primary-soft);
    color: var(--ft-primary-text);
    text-decoration: none;
}

/* 16e. Danger: red text and outline. */
body:not(:has(.admin-shell)) :is(.b2b-btn-danger, .ft-btn-danger):not(.app-header *) {
    background: var(--ft-surface);
    border: 1px solid color-mix(in srgb, var(--ft-danger-fg) 40%, #fff);
    color: var(--ft-danger-fg);
    box-shadow: none;
}
body:not(:has(.admin-shell)) :is(.b2b-btn-danger, .ft-btn-danger):not(.app-header *):is(:hover, :active):not(:disabled) {
    background: var(--ft-danger-bg);
    border-color: var(--ft-danger-fg);
    color: var(--ft-danger-fg);
}
body:not(:has(.admin-shell)) .wsp-btn-danger-quiet { color: var(--ft-danger-fg); }

/* 16f. Disabled and keyboard focus for every button kind. */
body:not(:has(.admin-shell)) :is(.btn, .b2b-btn, .wsp-btn, .ft-btn, .summary-cta, .b2b-add-btn):not(.app-header *):is(:disabled, [aria-disabled="true"]) {
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    filter: none;
}
body:not(:has(.admin-shell)) :is(.btn-primary, .b2b-btn-primary, .wsp-btn-primary, .summary-cta, .ft-btn-primary):not(.app-header *):is(:disabled, [aria-disabled="true"]) {
    color: #fff;
}
body:not(:has(.admin-shell)) :is(.b2b-btn, .ft-btn):focus-visible {
    outline: 3px solid var(--ft-focus-color);
    outline-offset: 3px;
    box-shadow: var(--ft-focus);
}

/* 16g. Badge: 12px/600, radius 6px, sentence case. */
.ft-badge,
body:not(:has(.admin-shell)) .b2b-badge.quality {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--ft-radius-sm);
    font-size: var(--ft-fs-xs);
    font-weight: var(--ft-fw-semibold);
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    background: var(--ft-neutral-bg);
    color: var(--ft-neutral-fg);
}
.ft-badge--success { background: var(--ft-success-bg); color: var(--ft-success-fg); }
.ft-badge--danger  { background: var(--ft-danger-bg);  color: var(--ft-danger-fg); }
.ft-badge--warning { background: var(--ft-warning-bg); color: var(--ft-warning-fg); }
.ft-badge--info    { background: var(--ft-info-bg);    color: var(--ft-info-fg); }
.ft-badge--neutral { background: var(--ft-neutral-bg); color: var(--ft-neutral-fg); }
.ft-stock--in  { color: var(--ft-success-fg); }
.ft-stock--low { color: var(--ft-warning-fg); }
.ft-stock--out { color: var(--ft-danger-fg); }

/* 16h. Field: label 14px/600, input 44px, hint/error 13px below. */
.ft-field { display: grid; gap: 6px; }
.ft-label,
body:not(:has(.admin-shell)) .b2b-form-group > label:not(:has(input[type="checkbox"], input[type="radio"])) {
    color: var(--ft-text);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
    line-height: 1.35;
}
:is(.ft-input, .ft-select, .ft-textarea),
body:not(:has(.admin-shell)) :is(.b2b-input, .b2b-select) {
    box-sizing: border-box;
    width: 100%;
    min-height: var(--ft-control-h);
    padding: 10px 12px;
    border: 1px solid var(--ft-border-strong);
    border-radius: var(--ft-radius-md);
    background-color: var(--ft-surface);
    color: var(--ft-text);
    font: inherit;
    font-size: var(--ft-fs-base);
}
:is(.ft-input, .ft-select, .ft-textarea)::placeholder,
body:not(:has(.admin-shell)) :is(.b2b-input, .b2b-select)::placeholder { color: var(--ft-text-subtle); }
:is(.ft-input, .ft-select, .ft-textarea):focus,
body:not(:has(.admin-shell)) :is(.b2b-input, .b2b-select):focus {
    outline: 3px solid var(--ft-focus-color);
    outline-offset: 1px;
    border-color: var(--ft-primary);
}
.ft-select,
body:not(:has(.admin-shell)) .b2b-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6779' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}
.ft-hint  { margin: 0; color: var(--ft-text-muted); font-size: 13px; line-height: 1.4; }
.ft-error { margin: 0; color: var(--ft-danger-fg); font-size: 13px; line-height: 1.4; }

/* 16i. Choice card (address, shipping, payment). Selected is blue, never green. */
.ft-choice {
    display: flex;
    align-items: flex-start;
    gap: var(--ft-s3);
    padding: var(--ft-s4);
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-md);
    background: var(--ft-surface);
    cursor: pointer;
}
.ft-choice:is(.is-selected, :has(input:checked)) {
    border: 2px solid var(--ft-primary);
    padding: calc(var(--ft-s4) - 1px);
    background: var(--ft-primary-soft);
}
.ft-choice:is(.is-disabled, :has(input:disabled)) { opacity: .6; cursor: not-allowed; }
.ft-choice:has(input:focus-visible) { outline: 3px solid var(--ft-focus-color); outline-offset: 2px; }

/* 16j. Card: one level only (no card-in-card shadows). */
.ft-card {
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-lg);
    background: var(--ft-surface);
    box-shadow: none;
}

/* 16k. Notice (full-width strip) and empty state. Errors are for real failures. */
.ft-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--ft-s3);
    width: 100%;
    box-sizing: border-box;
    padding: var(--ft-s3) var(--ft-s4);
    border-radius: var(--ft-radius-md);
    background: var(--ft-info-bg);
    color: var(--ft-info-fg);
    font-size: var(--ft-fs-sm);
    line-height: var(--ft-lh-body);
}
.ft-notice--warning { background: var(--ft-warning-bg); color: var(--ft-warning-fg); }
.ft-notice--success { background: var(--ft-success-bg); color: var(--ft-success-fg); }
.ft-notice--danger  { background: var(--ft-danger-bg);  color: var(--ft-danger-fg); }
.ft-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ft-s3);
    padding: var(--ft-s7) var(--ft-s4);
    text-align: center;
    color: var(--ft-text-muted);
}
.ft-empty__icon { color: var(--ft-text-muted); }
.ft-empty h2,
.ft-empty__title {
    margin: 0;
    color: var(--ft-text);
    font-size: var(--ft-fs-lg);
    font-weight: var(--ft-fw-semibold);
    line-height: var(--ft-lh-tight);
}
.ft-empty p { margin: 0; max-width: 52ch; font-size: var(--ft-fs-base); line-height: var(--ft-lh-body); }
.ft-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ft-s3); margin-top: var(--ft-s1); }

/* 16l. Page head: breadcrumb line, H1, muted count or subtitle. */
.ft-page-head { padding-top: var(--ft-page-top); margin-bottom: var(--ft-s5); }
.ft-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ft-s1) var(--ft-s2);
    margin: 0 0 var(--ft-s2);
    color: var(--ft-text-muted);
    font-size: var(--ft-fs-sm);
}
body:not(:has(.admin-shell)) .ft-breadcrumb a { color: var(--ft-primary-text); }
.ft-page-head h1,
.ft-page-title {
    margin: 0;
    color: var(--ft-text);
    font-size: var(--ft-fs-xl);
    font-weight: var(--ft-fw-semibold);
    line-height: var(--ft-lh-tight);
    letter-spacing: -0.01em;
}
.ft-page-sub { margin: var(--ft-s1) 0 0; color: var(--ft-text-muted); font-size: var(--ft-fs-sm); }
.ft-overline {
    font: var(--ft-overline);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ft-text-muted);
}

/* 16m. Inline feedback row ('✓ 2 in winkelwagen · Bekijk winkelwagen'). */
.ft-inline-status {
    display: inline-flex;
    align-items: center;
    gap: var(--ft-s2);
    color: var(--ft-success-fg);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
    white-space: nowrap;
}
.ft-inline-status--error { color: var(--ft-danger-fg); }
body:not(:has(.admin-shell)) .ft-inline-status a { color: var(--ft-primary-text); font-weight: var(--ft-fw-semibold); }

/* ==========================================================================
   17. Photo viewer (P0 #2, PC-01). The close button was white on white;
       one 'Passend' control replaces the two 'Fit' items; no arrows for a
       single photo (core.js sets [hidden]).
   ========================================================================== */
dialog.photo-preview-dialog .photo-preview-header { gap: var(--ft-s3); align-items: center; }
dialog.photo-preview-dialog .photo-preview-title { color: var(--ft-text); font-size: var(--ft-fs-sm); font-weight: var(--ft-fw-semibold); }
dialog.photo-preview-dialog .photo-preview-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-md);
    background: var(--ft-neutral-bg);
    color: var(--ft-text);
    font-size: 24px;
    line-height: 1;
    opacity: 1;
    cursor: pointer;
}
dialog.photo-preview-dialog .photo-preview-close:hover { background: var(--ft-border); color: var(--ft-text); }
dialog.photo-preview-dialog .photo-preview-tools { gap: var(--ft-s2); }
dialog.photo-preview-dialog .photo-preview-tools button {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--ft-border-strong);
    border-radius: var(--ft-radius-md);
    background: var(--ft-surface);
    color: var(--ft-text);
    font-size: var(--ft-fs-base);
    font-weight: var(--ft-fw-semibold);
}
dialog.photo-preview-dialog .photo-preview-tools button:disabled { opacity: .45; }
dialog.photo-preview-dialog .photo-preview-zoom-reset { min-width: 88px; }
dialog.photo-preview-dialog .photo-preview-zoom-reset .photo-preview-zoom-level {
    width: auto;
    color: inherit;
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
}
dialog.photo-preview-dialog .photo-preview-nav {
    background: var(--ft-surface);
    border: 1px solid var(--ft-border-strong);
    color: var(--ft-text);
    width: 44px;
    height: 44px;
    border-radius: var(--ft-radius-pill);
    box-shadow: var(--ft-shadow-sm);
}
dialog.photo-preview-dialog .photo-preview-nav:hover:not(:disabled) { border-color: var(--ft-primary); color: var(--ft-primary-text); background: var(--ft-surface); }
dialog.photo-preview-dialog .photo-preview-nav[hidden] { display: none; }
dialog.photo-preview-dialog :is(.photo-preview-close, .photo-preview-tools button, .photo-preview-nav):focus-visible {
    outline: 3px solid var(--ft-focus-color);
    outline-offset: 2px;
}
@media (max-width: 720px) {
    dialog.photo-preview-dialog .photo-preview-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 40px;
        gap: var(--ft-s2) var(--ft-s3);
        padding: var(--ft-s3) var(--ft-gutter);
    }
    dialog.photo-preview-dialog .photo-preview-heading { grid-column: 1; grid-row: 1; align-self: center; }
    dialog.photo-preview-dialog .photo-preview-close { grid-column: 2; grid-row: 1; }
    dialog.photo-preview-dialog .photo-preview-tools { grid-column: 1 / -1; grid-row: 2; width: auto; justify-content: center; }
}

/* ==========================================================================
   18. One frame on every route (P1 #6, P0 #3). The storefront bundle and the
       legacy sheets each styled the header differently (3px top bar, pill vs.
       icon account button, compact search pill, red vs. blue badge). These
       rules use an extra `html` and !important only where an earlier sheet
       already forces a value. Same header on /, /catalog, product, cart,
       login, account, quick order and legal pages, guest and customer.
   ========================================================================== */
html body:not(:has(.admin-shell)) { background-color: var(--ft-bg); }
html body:not(:has(.admin-shell)) .app-header {
    background: var(--ft-surface) !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--ft-divider) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transform: none !important;
    will-change: auto;
    transition: none !important;
}
html body:not(:has(.admin-shell)) .app-header::before,
html body:not(:has(.admin-shell)) .app-header::after { content: none !important; display: none !important; }
html body:not(:has(.admin-shell)) .app-header .header-inner {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    height: 72px !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 0 var(--ft-gutter) !important;
    gap: var(--ft-s5) !important;
    flex-wrap: nowrap;
}
@media (min-width: 769px) {
    html body:not(:has(.admin-shell)) .app-header .header-inner > * { order: 0 !important; }
    html body:not(:has(.admin-shell)) .app-header .search-bar { flex-basis: 200px !important; }
}
@media (min-width: 769px) and (max-width: 991px) {
    html body:not(:has(.admin-shell)) .app-header .header-inner { gap: var(--ft-s4) !important; }
    html body:not(:has(.admin-shell)) .app-header .logo img { max-width: 140px !important; height: 34px !important; }
}
html body:not(:has(.admin-shell)) .app-header .logo { display: flex !important; align-items: center; flex: 0 0 auto !important; max-width: 180px !important; margin: 0 !important; }
html body:not(:has(.admin-shell)) .app-header .logo img { display: block; width: auto !important; max-width: 180px !important; height: 40px !important; max-height: 40px !important; object-fit: contain; }

/* The header search is always the real input; no 'Alle producten doorzoeken' pill. */
html body:not(:has(.admin-shell)) .app-header .page-search-jump { display: none !important; }
html body:not(:has(.admin-shell)) .app-header .search-bar {
    display: block !important;
    flex: 1 1 420px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 560px !important;
    margin: 0 !important;
    visibility: visible;
}
html body:not(:has(.admin-shell)) .app-header #global-search { flex: 1 1 auto !important; width: 100%; max-width: none !important; margin: 0 !important; }
html body:not(:has(.admin-shell)) .app-header #global-search .search-input-wrapper {
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    height: var(--ft-control-h);
    min-height: var(--ft-control-h);
    padding: 0 !important;
    border: 1px solid var(--ft-border-strong) !important;
    border-radius: var(--ft-radius-md) !important;
    background: var(--ft-surface) !important;
    box-shadow: none !important;
    overflow: hidden;
}
html body:not(:has(.admin-shell)) .app-header #global-search .search-input-wrapper:focus-within {
    border-color: var(--ft-primary) !important;
    box-shadow: var(--ft-focus) !important;
}
html body:not(:has(.admin-shell)) .app-header #search-input {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--ft-text) !important;
    font-size: 15px !important;
    box-shadow: none !important;
}
html body:not(:has(.admin-shell)) .app-header #search-input::placeholder { color: var(--ft-text-subtle); }
html body:not(:has(.admin-shell)) .app-header .search-submit {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 42px !important;
    border: 0 !important;
    border-left: 1px solid var(--ft-divider) !important;
    border-radius: 0 !important;
    background: var(--ft-surface) !important;
    color: var(--ft-text-muted) !important;
}

/* Home: the header search stays hidden while the hero search (#home-search) is
   in view; core.js sets data-header-search="hero" (no layout shift on desktop). */
html body[data-header-search="hero"]:not(:has(.admin-shell)) .app-header .search-bar { visibility: hidden; }

/* Account button and cart: same metrics everywhere. Labelled from 768px. */
html body:not(:has(.admin-shell)) .app-header .user-nav {
    display: flex !important;
    align-items: center;
    gap: var(--ft-s2) !important;
    margin: 0 0 0 auto !important;
    flex: 0 0 auto;
}
html body:not(:has(.admin-shell)) .app-header .user-nav :is(.nav-signin, .nav-account-action, .nav-cart) {
    box-sizing: border-box;
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: var(--ft-s2);
    width: auto !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0;
    padding: 0 14px !important;
    border: 1px solid var(--ft-border-strong) !important;
    border-radius: var(--ft-radius-md) !important;
    background: var(--ft-surface) !important;
    color: var(--ft-text) !important;
    flex: 0 0 auto !important;
    flex-direction: row;
    flex-wrap: nowrap;
    font-family: inherit;
    font-size: 15px;
    font-weight: var(--ft-fw-semibold);
    letter-spacing: normal;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: none !important;
    white-space: nowrap;
}
html body:not(:has(.admin-shell)) .app-header .user-nav :is(.nav-signin, .nav-account-action, .nav-cart) svg { flex: 0 0 auto; width: 18px; height: 18px; }
html body:not(:has(.admin-shell)) .app-header .user-nav .nav-account-menu { display: inline-flex !important; position: relative; }
html body:not(:has(.admin-shell)) .app-header .user-nav .nav-cart { width: 44px !important; padding: 0 !important; }
html body:not(:has(.admin-shell)) .app-header .user-nav :is(.nav-signin, .nav-account-action, .nav-cart):hover {
    background: var(--ft-primary-soft) !important;
    border-color: var(--ft-primary) !important;
    color: var(--ft-text) !important;
}
html body:not(:has(.admin-shell)) .app-header .user-nav :is(.nav-signin, .nav-account-action, .nav-cart):focus-visible {
    outline: 3px solid var(--ft-focus-color);
    outline-offset: 2px;
}
html body:not(:has(.admin-shell)) .app-header .user-nav :is(.nav-signin, .nav-account-action) span,
html body:not(:has(.admin-shell)) .app-header .user-nav .nav-account-label {
    display: inline !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    color: inherit !important;
    font: inherit;
}
html body:not(:has(.admin-shell)) .app-header .user-nav .cart-icon-wrapper { position: static !important; display: inline-flex; }
html body:not(:has(.admin-shell)) .app-header .user-nav .cart-badge {
    position: absolute !important;
    top: -7px;
    right: -7px;
    min-width: 20px !important;
    height: 20px;
    padding: 0 5px !important;
    border: 2px solid var(--ft-surface) !important;
    border-radius: var(--ft-radius-pill) !important;
    background: var(--ft-primary) !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: var(--ft-fw-bold);
    line-height: 16px;
    box-sizing: border-box;
    box-shadow: none !important;
    align-items: center;
    justify-content: center;
}
@media (max-width: 767px) {
    html body:not(:has(.admin-shell)) .app-header .user-nav :is(.nav-signin, .nav-account-action) { width: 44px !important; padding: 0 !important; }
    html body:not(:has(.admin-shell)) .app-header .user-nav :is(.nav-signin, .nav-account-action) span,
    html body:not(:has(.admin-shell)) .app-header .user-nav .nav-account-label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        clip-path: inset(50%) !important;
        white-space: nowrap;
    }
}

/* Category bar: same item metrics on every route; 'Alle' is only highlighted on bare /catalog. */
html body:not(:has(.admin-shell)) #store-menu {
    background: var(--ft-surface) !important;
    border-top: 1px solid var(--ft-divider) !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}
@media (min-width: 769px) {
    html body:not(:has(.admin-shell)) #store-menu > .container { width: 100% !important; max-width: none !important; padding: 0 var(--ft-gutter) !important; box-sizing: border-box; }
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation { display: flex !important; align-items: center; gap: var(--ft-s1); min-height: 52px; margin: 0 !important; padding: 0 !important; }
    html body:not(:has(.admin-shell)) #store-menu .b2b-nav-link {
        min-height: 44px !important;
        height: 44px !important;
        margin: 4px 0 !important;
        padding: 0 12px !important;
        border: 0 !important;
        border-radius: var(--ft-radius-md) !important;
        background: transparent !important;
        color: var(--ft-text) !important;
        font-size: var(--ft-fs-sm) !important;
        font-weight: var(--ft-fw-semibold) !important;
        box-shadow: none !important;
    }
    html body:not(:has(.admin-shell)) #store-menu .b2b-nav-link:hover,
    html body:not(:has(.admin-shell)) #store-menu .b2b-nav-item.is-open > .b2b-nav-link,
    html body:not(:has(.admin-shell)) #store-menu .b2b-nav-link[aria-current="page"] {
        background: var(--ft-primary-soft) !important;
        color: var(--ft-primary-text) !important;
    }
    html body:not(:has(.admin-shell)) .app-header .b2b-mobile-toggle { display: none !important; }
}

/* ---- Phones and tablets (≤768px, where the menu becomes a drawer) ------------
   Header = logo row (logo, Catalogus toggle, account, cart) + search row:
   8 + 44 + 8 + 44 + 8 = 112px. */
@media (max-width: 768px) {
    html body:not(:has(.admin-shell)) .app-header .header-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        grid-template-rows: 44px 44px !important;
        align-items: center !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 8px var(--ft-gutter) 7px !important;   /* + 1px border = 112px */
        gap: 8px !important;
    }
    html body:not(:has(.admin-shell)) .app-header .logo { grid-column: 1; grid-row: 1; min-width: 0; }
    html body:not(:has(.admin-shell)) .app-header .logo img { height: 32px !important; max-height: 32px !important; max-width: min(100%, 160px) !important; }
    html body:not(:has(.admin-shell)) .app-header .header-inner > .b2b-mobile-toggle { grid-column: 2; grid-row: 1; }
    html body:not(:has(.admin-shell)) .app-header .user-nav { grid-column: 3 !important; grid-row: 1 !important; margin: 0 !important; }
    html body:not(:has(.admin-shell)) .app-header .search-bar { grid-column: 1 / -1 !important; grid-row: 2 !important; max-width: none !important; }
    html body[data-header-search="hero"]:not(:has(.admin-shell)) .app-header .header-inner { grid-template-rows: 44px !important; }
    html body[data-header-search="hero"]:not(:has(.admin-shell)) .app-header .search-bar { display: none !important; }

    html body:not(:has(.admin-shell)) .app-header .b2b-mobile-toggle {
        box-sizing: border-box;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: var(--ft-s2);
        width: auto !important;
        min-width: 44px;
        height: 44px;
        margin: 0 !important;
        padding: 0 12px !important;
        border: 1px solid var(--ft-border-strong) !important;
        border-radius: var(--ft-radius-md) !important;
        background: var(--ft-surface) !important;
        color: var(--ft-text) !important;
        font: var(--ft-fw-semibold) 15px/1 var(--ft-font) !important;
        cursor: pointer;
    }
    html body:not(:has(.admin-shell)) .app-header .b2b-mobile-toggle[aria-expanded="true"] {
        background: var(--ft-primary-soft) !important;
        border-color: var(--ft-primary) !important;
    }
    html body:not(:has(.admin-shell)) .app-header .b2b-mobile-toggle:focus-visible { outline: 3px solid var(--ft-focus-color); outline-offset: 2px; }
    html body:not(:has(.admin-shell)) .app-header .b2b-mobile-toggle .b2b-toggle-close,
    html body:not(:has(.admin-shell)) .app-header .b2b-mobile-toggle[aria-expanded="true"] .b2b-toggle-open { display: none; }
    html body:not(:has(.admin-shell)) .app-header .b2b-mobile-toggle[aria-expanded="true"] .b2b-toggle-close { display: block; }

    /* The category bar itself has no height on phones; the toggle lives in the logo row. */
    html body:not(:has(.admin-shell)) #store-menu { border-top: 0 !important; min-height: 0 !important; height: auto; padding: 0 !important; }
    html body:not(:has(.admin-shell)) #store-menu > .container { padding: 0 !important; min-height: 0; }

    /* Drawer: solid, full height below the header, its own scroll; the page is locked. */
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation { display: none !important; }
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open {
        display: flex !important;
        flex-direction: column;
        position: fixed !important;
        top: var(--ft-drawer-top, 112px);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1100;
        width: auto;
        max-width: none !important;
        height: auto;
        max-height: none;
        margin: 0 !important;
        padding: 0 0 var(--ft-s6) !important;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background: var(--ft-surface) !important;
        border-top: 1px solid var(--ft-divider) !important;
        box-shadow: none !important;
    }
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open > .b2b-nav-item {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--ft-divider) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open .b2b-nav-link {
        display: flex !important;
        align-items: center;
        gap: var(--ft-s3);
        width: 100%;
        min-height: 52px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 var(--ft-gutter) !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--ft-text) !important;
        font-size: var(--ft-fs-base) !important;
        font-weight: var(--ft-fw-semibold) !important;
        text-align: left;
        box-shadow: none !important;
    }
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open .b2b-nav-link .mobile-chevron { margin-left: auto; width: 16px; opacity: .7; transition: transform .15s ease; }
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open .b2b-nav-item.is-open > .b2b-nav-link {
        background: var(--ft-primary-soft) !important;
        color: var(--ft-primary-text) !important;
    }
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open .b2b-nav-item.is-open > .b2b-nav-link .mobile-chevron { transform: rotate(180deg); }
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open .b2b-nav-link[aria-current="page"] { color: var(--ft-primary-text) !important; }
    /* The opened item pushes the rows below it down (no inner scroll box). */
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open .b2b-dropdown-overlay {
        position: static !important;
        inset: auto;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        margin: 0;
        padding: var(--ft-s3) var(--ft-gutter) var(--ft-s4) !important;
        overflow: visible;
        border: 0 !important;
        border-top: 1px solid var(--ft-divider) !important;
        border-radius: 0 !important;
        background: var(--ft-surface-2) !important;
        box-shadow: none !important;
        box-sizing: border-box;
    }
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open .b2b-dropdown-overlay:not([hidden]) { display: block !important; }
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open .b2b-dropdown-overlay[hidden] { display: none !important; }
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open .b2b-mega-heading { position: static !important; }
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open .b2b-menu-close { display: none !important; }

    html.menu-drawer-open,
    html.menu-drawer-open body { overflow: hidden !important; }
}
@media (min-width: 481px) and (max-width: 768px) {
    html body:not(:has(.admin-shell)) .app-header .b2b-mobile-toggle .b2b-toggle-label { display: inline; }
}
/* Review round 2: phones keep the visible 'Catalogus' label (the main way to browse);
   only very narrow screens (<360px) fall back to the icon. */
@media (min-width: 360px) and (max-width: 480px) {
    html body:not(:has(.admin-shell)) .app-header .b2b-mobile-toggle { padding: 0 10px !important; gap: 6px; font-size: var(--ft-fs-sm) !important; }
    html body:not(:has(.admin-shell)) .app-header .b2b-mobile-toggle .b2b-toggle-label { display: inline; white-space: nowrap; }
}
@media (max-width: 359px) {
    html body:not(:has(.admin-shell)) .app-header .b2b-mobile-toggle { width: 44px !important; padding: 0 !important; }
    html body:not(:has(.admin-shell)) .app-header .b2b-mobile-toggle .b2b-toggle-label { display: none; }
}

/* ==========================================================================
   19. Mega menu details (P3 #19, HN-07/HN-08): one chip style for brand and
       family tabs (no box around the chip), no family row when a brand has a
       single family, and 'Alle onderdelen voor … (n)' as a secondary button at
       the top right of the model panel.
   ========================================================================== */
html body:not(:has(.admin-shell)) #store-menu .b2b-family-row,
html body:not(:has(.admin-shell)) #store-menu .b2b-family-row.active {
    flex: 0 0 auto;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
html body:not(:has(.admin-shell)) #store-menu :is(.b2b-family-btn, .b2b-brand-btn) {
    min-height: 40px;
    padding: 0 14px !important;
    border: 1px solid var(--ft-border-strong) !important;
    border-radius: var(--ft-radius-pill) !important;
    background: var(--ft-surface) !important;
    color: var(--ft-text) !important;
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
    box-shadow: none !important;
    white-space: nowrap;
}
html body:not(:has(.admin-shell)) #store-menu :is(.b2b-family-row.active .b2b-family-btn, .b2b-family-btn.active, .b2b-brand-btn.active) {
    border-color: var(--ft-primary) !important;
    background: var(--ft-primary-soft) !important;
    color: var(--ft-primary-text) !important;
}
html body:not(:has(.admin-shell)) #store-menu .b2b-mega-brands { display: flex; flex-wrap: wrap; gap: var(--ft-s2); margin-bottom: var(--ft-s2); }
html body:not(:has(.admin-shell)) #store-menu .b2b-brand-families.active { flex-wrap: wrap; justify-content: flex-start; gap: var(--ft-s2); width: auto !important; min-width: 0 !important; }
html body:not(:has(.admin-shell)) #store-menu .b2b-brand-families:has(> .b2b-family-row:only-child) { display: none !important; }
/* Review round 2: the families strip is a grid in the bundle with a narrow first
   column, which stacked iPhone / iPad / Apple Watch / MacBook vertically. One
   full-width column keeps them as one wrapping chip row. */
html body:not(:has(.admin-shell)) #store-menu .b2b-mega-families { grid-template-columns: minmax(0, 1fr); }
html body:not(:has(.admin-shell)) #store-menu .b2b-mega-families > .b2b-brand-families.active { width: 100% !important; min-width: 0 !important; }
html body:not(:has(.admin-shell)) #store-menu .b2b-mega-brands:not(:has(> .b2b-brand-btn + .b2b-brand-btn)) { display: none !important; }
html body:not(:has(.admin-shell)) #store-menu .b2b-mega-families:not(:has(.b2b-brand-btn + .b2b-brand-btn)):not(:has(.b2b-brand-families.active > .b2b-family-row + .b2b-family-row)) { display: none !important; }
html body:not(:has(.admin-shell)) #store-menu .b2b-models-grid.active { display: flex !important; flex-direction: column; }
html body:not(:has(.admin-shell)) #store-menu .b2b-models-grid .b2b-family-all {
    order: -1;
    align-self: flex-end;
    display: inline-flex !important;
    align-items: center;
    gap: var(--ft-s2);
    min-height: var(--ft-control-h-dense);
    margin: 0 0 var(--ft-s3);
    padding: 0 14px !important;
    border: 1px solid var(--ft-border-strong) !important;
    border-radius: var(--ft-radius-md) !important;
    background: var(--ft-surface) !important;
    color: var(--ft-text) !important;
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
    text-decoration: none;
}
html body:not(:has(.admin-shell)) #store-menu .b2b-models-grid .b2b-family-all:hover { border-color: var(--ft-primary) !important; background: var(--ft-primary-soft) !important; }
@media (max-width: 768px) {
    html body:not(:has(.admin-shell)) #store-menu .b2b-models-grid .b2b-family-all { align-self: stretch; justify-content: center; }
}
@media (min-width: 769px) {
    html body:not(:has(.admin-shell)) #store-menu .b2b-dropdown-overlay {
        border: 1px solid var(--ft-border) !important;
        border-radius: 0 0 var(--ft-radius-lg) var(--ft-radius-lg) !important;
        box-shadow: var(--ft-shadow-md) !important;
    }
}
html body:not(:has(.admin-shell)) #store-menu :is(.b2b-menu-close, .b2b-menu-back) {
    min-height: var(--ft-control-h-dense);
    padding: 0 12px !important;
    border: 1px solid var(--ft-border-strong) !important;
    border-radius: var(--ft-radius-md) !important;
    background: var(--ft-surface) !important;
    color: var(--ft-text) !important;
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
}

/* ==========================================================================
   20. Header cart preview (P1 #12): no destructive link; 'Naar winkelwagen'
       (secondary) and 'Afrekenen' (primary) side by side.
   ========================================================================== */
html body .cart-preview .cart-preview-actions { display: flex; gap: var(--ft-s2); margin: var(--ft-s3) var(--ft-s4) var(--ft-s4); }
html body .cart-preview .cart-preview-actions :is(.cart-preview-open, .cart-preview-checkout) {
    box-sizing: border-box;
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-height: var(--ft-control-h);
    margin: 0;
    padding: 0 12px;
    border-radius: var(--ft-radius-md);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
    text-decoration: none;
    white-space: nowrap;
}
html body .cart-preview .cart-preview-actions .cart-preview-open,
html body .cart-preview .cart-preview-actions .cart-preview-open:is(:link, :visited, :hover) {
    border: 1px solid var(--ft-border-strong);
    background: var(--ft-surface);
    color: var(--ft-text);
}
html body .cart-preview .cart-preview-actions .cart-preview-checkout,
html body .cart-preview .cart-preview-actions .cart-preview-checkout:is(:link, :visited, :hover) {
    border: 1px solid var(--ft-primary);
    background: var(--ft-primary);
    color: #fff;
}
html body .cart-preview .cart-preview-actions .cart-preview-checkout:hover { background: var(--ft-primary-hover); border-color: var(--ft-primary-hover); }
html body .cart-preview .cart-preview-actions a:focus-visible { outline: 3px solid var(--ft-focus-color); outline-offset: 2px; }

/* ==========================================================================
   21. Footer (P3 #18, P0 #5): Winkel · Account · Klantenservice, translated.
       Groups are <details>; open from 768px (core.js), collapsed on phones.
   ========================================================================== */
html body:not(:has(.admin-shell)) .app-footer { background: var(--ft-surface); color: var(--ft-text); border-top: 1px solid var(--ft-divider); }
html body:not(:has(.admin-shell)) .app-footer .footer-grid {
    display: grid !important;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr)) !important;
    gap: var(--ft-s6) !important;
    padding: var(--ft-s7) 0 var(--ft-s6) !important;
}
html body:not(:has(.admin-shell)) .app-footer .footer-group { min-width: 0; margin: 0; padding: 0; border: 0; }
html body:not(:has(.admin-shell)) .app-footer .footer-group > summary {
    display: block;
    margin: 0 0 var(--ft-s4);
    padding: 0;
    color: var(--ft-text);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
    list-style: none;
    cursor: default;
    pointer-events: none;
}
html body:not(:has(.admin-shell)) .app-footer .footer-group > summary::-webkit-details-marker { display: none; }
html body:not(:has(.admin-shell)) .app-footer .footer-links { display: flex; flex-direction: column; gap: var(--ft-s3); }
html body:not(:has(.admin-shell)) .app-footer .footer-links a {
    display: block;
    margin: 0;
    color: var(--ft-text-muted) !important;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
}
html body:not(:has(.admin-shell)) .app-footer .footer-links a:hover { color: var(--ft-primary-text) !important; text-decoration: underline; }
html body:not(:has(.admin-shell)) .app-footer .footer-links .footer-contact small { display: block; margin-top: 2px; color: var(--ft-primary-text); font-size: var(--ft-fs-sm); overflow-wrap: anywhere; }
html body:not(:has(.admin-shell)) .app-footer :is(.footer-brand p, .footer-bottom) { color: var(--ft-text-muted) !important; }
/* ux7: tablet/desktop footer links get a 33px tap height (6px padding above
   and below the 21px line) instead of the 12px gap between them, so the
   text stays exactly where it was. Phones keep their 44px rows (below). */
@media (min-width: 768px) {
    html body:not(:has(.admin-shell)) .app-footer .footer-links { gap: 0; margin-block: -6px; }
    html body:not(:has(.admin-shell)) .app-footer .footer-links a { padding-block: 6px; }
}

/* Language select: one chevron (no native arrow), 40px. */
html body:not(:has(.admin-shell)) .footer-language-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ft-text-muted);
}
html body:not(:has(.admin-shell)) .footer-language-control select {
    -webkit-appearance: none;
    appearance: none;
    width: auto;
    min-width: 92px !important;
    height: 40px;
    min-height: 40px;
    line-height: 38px !important;
    letter-spacing: .02em !important;
    padding: 0 30px 0 34px !important;
    border: 1px solid var(--ft-border-strong) !important;
    border-radius: var(--ft-radius-md) !important;
    background: var(--ft-surface) !important;
    color: var(--ft-text) !important;
    font-size: var(--ft-fs-sm) !important;
    font-weight: var(--ft-fw-semibold) !important;
    background-image: none !important;
}
html body:not(:has(.admin-shell)) .footer-language-control .language-control__icon { position: absolute; left: 10px; pointer-events: none; }
html body:not(:has(.admin-shell)) .footer-language-control .language-control__chevron { position: absolute; right: 10px; pointer-events: none; }

@media (max-width: 991px) {
    html body:not(:has(.admin-shell)) .app-footer .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    html body:not(:has(.admin-shell)) .app-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    html body:not(:has(.admin-shell)) .app-footer .footer-grid { grid-template-columns: 1fr !important; gap: 0 !important; padding: var(--ft-s5) 0 !important; }
    html body:not(:has(.admin-shell)) .app-footer .footer-brand { padding-bottom: var(--ft-s4); }
    html body:not(:has(.admin-shell)) .app-footer .footer-group { border-top: 1px solid var(--ft-divider); }
    html body:not(:has(.admin-shell)) .app-footer .footer-group:last-child { border-bottom: 1px solid var(--ft-divider); }
    html body:not(:has(.admin-shell)) .app-footer .footer-group > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 52px;
        margin: 0;
        font-size: var(--ft-fs-base);
        cursor: pointer;
        pointer-events: auto;
    }
    html body:not(:has(.admin-shell)) .app-footer .footer-group > summary::after {
        content: '';
        width: 8px;
        height: 8px;
        margin-right: 4px;
        border-right: 2px solid var(--ft-text-muted);
        border-bottom: 2px solid var(--ft-text-muted);
        transform: rotate(45deg);
        transition: transform .15s ease;
    }
    html body:not(:has(.admin-shell)) .app-footer .footer-group[open] > summary::after { transform: rotate(-135deg); }
    html body:not(:has(.admin-shell)) .app-footer .footer-group > summary:focus-visible { outline: 3px solid var(--ft-focus-color); outline-offset: 2px; }
    html body:not(:has(.admin-shell)) .app-footer .footer-group .footer-links { gap: 0; padding: 0 0 var(--ft-s3); }
    html body:not(:has(.admin-shell)) .app-footer .footer-group .footer-links a { display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
}

/* ==========================================================================
   22. Not-found state (P2 #16): neutral, one H1, context buttons.
   ========================================================================== */
.ft-empty.not-found { min-height: 40vh; justify-content: center; padding-top: calc(var(--ft-page-top) + var(--ft-s6)); }
.ft-empty.not-found .ft-empty__title { font-size: var(--ft-fs-xl); }
.ft-empty.not-found .ft-empty__title:focus { outline: none; }
.ft-empty.not-found .ft-empty__title:focus-visible { outline: 3px solid var(--ft-focus-color); outline-offset: 4px; }
.route-error-actions { justify-content: flex-start; margin-top: var(--ft-s3); }
.route-error-actions > * { width: auto; }

/* ==========================================================================
   23. Frame metrics for other sheets (requests from D): the sticky header
       height (72 + 52 + 2 borders on desktop; 112 on phones and tablets) and
       the 16px phone gutter for the page container.
   ========================================================================== */
:root { --ft-header-h: 126px; }
@media (max-width: 768px) { :root { --ft-header-h: 112px; } }
@media (max-width: 767px) {
    html body:not(:has(.admin-shell)) main.main-content.container {
        padding-left: var(--ft-gutter) !important;
        padding-right: var(--ft-gutter) !important;
    }
}

/* Language choice at the bottom of the drawer (phones/tablets only). */
html body:not(:has(.admin-shell)) #store-menu .b2b-drawer-language { display: none !important; }
@media (max-width: 768px) {
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open > .b2b-drawer-language {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: var(--ft-s3);
        padding: var(--ft-s4) var(--ft-gutter) !important;
        border-bottom: 0 !important;
    }
    html body:not(:has(.admin-shell)) #store-menu .b2b-drawer-language label { color: var(--ft-text); font-size: var(--ft-fs-sm); font-weight: var(--ft-fw-semibold); }
    html body:not(:has(.admin-shell)) #store-menu .b2b-drawer-language-control { position: relative; display: inline-flex; }
    html body:not(:has(.admin-shell)) #store-menu .b2b-drawer-language-control::after {
        content: '';
        position: absolute;
        right: 14px;
        top: 50%;
        width: 7px;
        height: 7px;
        margin-top: -6px;
        border-right: 2px solid var(--ft-text-muted);
        border-bottom: 2px solid var(--ft-text-muted);
        transform: rotate(45deg);
        pointer-events: none;
    }
    html body:not(:has(.admin-shell)) #store-menu .b2b-drawer-language select {
        -webkit-appearance: none;
        appearance: none;
        min-width: 96px;
        height: 44px;
        padding: 0 36px 0 14px;
        border: 1px solid var(--ft-border-strong);
        border-radius: var(--ft-radius-md);
        background: var(--ft-surface);
        color: var(--ft-text);
        font: var(--ft-fw-semibold) var(--ft-fs-sm)/1 var(--ft-font);
    }
    html body:not(:has(.admin-shell)) #store-menu .b2b-drawer-language select:focus-visible { outline: 3px solid var(--ft-focus-color); outline-offset: 2px; }
}

/* ==========================================================================
   24. Status colours (P3 #22): one badge spec everywhere on the storefront,
       also outside the account wrapper (dialogs, product page, catalogue).
       Account pages keep their own equal mapping in storefront-ux-account.css.
   ========================================================================== */
body:not(:has(.admin-shell)) :is(.wb-badge, .b2b-badge.type, .b2b-badge-success, .part-type-badge) {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border: 0;
    border-radius: var(--ft-radius-sm);
    font-size: var(--ft-fs-xs);
    font-weight: var(--ft-fw-semibold);
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    background: var(--ft-neutral-bg);
    color: var(--ft-neutral-fg);
}
body:not(:has(.admin-shell)) :is(.wb-badge-success, .b2b-badge-success) { background: var(--ft-success-bg); color: var(--ft-success-fg); }
body:not(:has(.admin-shell)) .wb-badge-danger  { background: var(--ft-danger-bg);  color: var(--ft-danger-fg); }
body:not(:has(.admin-shell)) .wb-badge-warning { background: var(--ft-warning-bg); color: var(--ft-warning-fg); }
body:not(:has(.admin-shell)) .wb-badge-info    { background: var(--ft-info-bg);    color: var(--ft-info-fg); }
body:not(:has(.admin-shell)) .wb-badge-neutral { background: var(--ft-neutral-bg); color: var(--ft-neutral-fg); }

/* ==========================================================================
   25. Integration (round 5): one body text size on every storefront route.
       The bundle sets 14px on the storefront routes; every other route was
       already 16px (plan 2.2). Components with their own size are unchanged.
   ========================================================================== */
html body:not(:has(.admin-shell)) { font-size: var(--ft-fs-base); }

/* ==========================================================================
   26. Review round 1 (integration, 14 Nov 2026).
   ========================================================================== */
/* 26a. One visually-hidden helper on every route. Before, .sr-only existed only
        inside the catalogue, so the cart's live status ('Aantal bijgewerkt')
        showed as a stray line under 'Verder winkelen'. */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 26b. One page background: the catalogue was bluish (#f2f7fc), every other route #f5f5f7. */
html body:not(:has(.admin-shell)):has(.catalog-layout) { background-color: var(--ft-bg); }

/* 26c. Readable secondary text and links on the grey page (WCAG AA 4.5:1).
        Legacy --text-muted (#64748b, 4.4:1 on #f5f5f7) maps to the muted token;
        plain links use the darker link blue instead of the button fill. */
body:not(:has(.admin-shell)) { --text-muted: var(--ft-text-muted); }
body:not(:has(.admin-shell)) a { color: var(--ft-primary-text); }
body:not(:has(.admin-shell)) :is(.b2b-order-result-count, .b2b-account-footer-note, .footer-service-item small, .legal-contact small) { color: var(--ft-text-muted); }
body:not(:has(.admin-shell)) .b2b-link { color: var(--ft-primary-text); }

/* 26d. Footer language selector: the same focus ring on every route
        (b2b-navigation.css removed the outline on account and quick-order pages). */
html body:not(:has(.admin-shell)) .footer-language-control select:focus-visible {
    outline: 3px solid var(--ft-focus-color);
    outline-offset: 2px;
}

/* 26e. Phone menu: model rows are real tap targets (44px, 15px text) like the other drawer rows. */
@media (max-width: 768px) {
    html body:not(:has(.admin-shell)) #store-menu .b2b-model-link {
        min-height: var(--ft-control-h);
        padding: 8px 10px;
        font-size: 15px;
        line-height: 1.3;
    }
    html body:not(:has(.admin-shell)) #store-menu :is(.b2b-series-more, .b2b-model-expand) {
        min-height: var(--ft-control-h);
        font-size: var(--ft-fs-sm);
    }
}

/* 26f. One field label style (sentence case, 14px semibold) on register,
        login, checkout, account filters and documents. */
body:not(:has(.admin-shell)) :is(.registration-field > span, .form-group > .form-label, .form-group > label:not(:has(input[type="checkbox"], input[type="radio"])), .wsp-field > label, .b2b-order-filters label) {
    color: var(--ft-text);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
    letter-spacing: 0;
    text-transform: none;
}
/* Register selects get the shared chevron (they looked like text inputs). */
html body:not(:has(.admin-shell)) .registration-field select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6779' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}

/* 26g. Phones: back links, breadcrumbs and inline account links get a 44px hit area. */
@media (max-width: 767.98px) {
    body:not(:has(.admin-shell)) :is(.b2b-back-link, .pd-back-link, .ft-breadcrumb a, .b2b-account-breadcrumb a, .b2b-link) {
        display: inline-flex;
        align-items: center;
        min-height: var(--ft-control-h);
    }
}

/* ==========================================================================
   27. Review round 2 (integration, 14 Nov 2026)
   ========================================================================== */
/* 27a. Phone/tablet drawer: no second inset inside the opened panel (the panel
   already has the page gutter), and model links in two columns where they fit,
   so 'iPhone 12' is about one screen nearer. */
@media (max-width: 768px) {
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open :is(.b2b-mega-models, .b2b-mega-families) { padding-left: 0 !important; padding-right: 0 !important; }
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open .b2b-series-body { padding-left: 0 !important; padding-right: 0 !important; }
}
@media (min-width: 340px) and (max-width: 768px) {
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open .b2b-model-links { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4px; }
    html body:not(:has(.admin-shell)) #store-menu #b2b-top-navigation.mobile-open .b2b-model-link { min-width: 0; overflow-wrap: anywhere; }
}

/* 27b. Footer on phones: the same 16px gutter as the page, and the language
   select at the same x on every route (styles.css added a .35rem left margin
   on some routes). */
html body:not(:has(.admin-shell)) .app-footer .footer-language-control { margin-left: 0 !important; }
@media (max-width: 767.98px) {
    html body:not(:has(.admin-shell)) .app-footer .container,
    html body:not(:has(.admin-shell)) .trust-strip .container { padding-left: var(--ft-gutter) !important; padding-right: var(--ft-gutter) !important; }
}

/* ==========================================================================
   28. ux6 S4 (14 Nov 2026): control heights, field borders, breadcrumbs,
       stock colours. Shared by every storefront route.
   ========================================================================== */
/* 28a. DJ-02: two control heights only. --btn-h for buttons and fields,
        --btn-h-sm for dense rows (catalogue table on a desktop pointer). */
:root {
    --btn-h: var(--ft-control-h, 44px);
    --btn-h-sm: var(--ft-control-h-dense, 36px);
    /* a11y F5: 3.3:1 on white, 3.0:1 on --ft-bg (1.4.11 non-text contrast). */
    --ft-field-border: #858e9c;
}

/* 28b. a11y F5: every text field, number field and select shows a border
        that meets 3:1. The :is() list carries an ID so this beats the older
        route rules; focus keeps its own blue border and ring. */
html body:not(:has(.admin-shell)) :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="image"]):not([type="reset"]),
    select, textarea, #global-search .search-input-wrapper, .lp-search-field
):not(:focus):not(:focus-within):not(.app-footer *) {
    border-color: var(--ft-field-border) !important;
}
/* Focused: the primary blue (never lighter than the resting border). */
html body:not(:has(.admin-shell)) :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="image"]):not([type="reset"]),
    select, textarea, #global-search .search-input-wrapper, .lp-search-field
):is(:focus, :focus-within):not(.app-footer *) {
    border-color: var(--ft-primary) !important;
}
/* Inputs drawn inside a bordered wrapper stay borderless. */
html body:not(:has(.admin-shell)) :is(#global-search .search-input-wrapper, .lp-search-field) input { border-color: transparent !important; }

/* 28c. DJ-24 / IC-14: one breadcrumb style (catalogue and product page):
        14px regular links, muted '/' separators on the text baseline. */
html body:not(:has(.admin-shell)) #app-root .ft-breadcrumb {
    /* display stays with the page (the catalogue hides it below 560px). */
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px var(--ft-s2);
    color: var(--ft-text-muted);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-regular);
    line-height: var(--ft-lh-body);
}
html body:not(:has(.admin-shell)) #app-root .ft-breadcrumb a {
    color: var(--ft-primary-text);
    font-weight: var(--ft-fw-regular);
    text-decoration: none;
}
html body:not(:has(.admin-shell)) #app-root .ft-breadcrumb a:hover { text-decoration: underline; }
html body:not(:has(.admin-shell)) #app-root .ft-breadcrumb > span[aria-hidden="true"] { color: var(--ft-text-subtle); line-height: inherit; }
@media (max-width: 767.98px) {
    /* The 44px hit area stays; links align on the text baseline, not the box. */
    html body:not(:has(.admin-shell)) #app-root .ft-breadcrumb a { display: inline-flex; align-items: baseline; padding-top: 12px; padding-bottom: 12px; min-height: 0; }
    html body:not(:has(.admin-shell)) #app-root .ft-breadcrumb { margin-top: -12px; margin-bottom: 0; }
}

/* 28d. DJ-11: one stock colour rule everywhere a stock line appears.
        Green when in stock, red at zero, orange only when the minimum
        order quantity is more than the stock. The dot follows the text. */
html body:not(:has(.admin-shell)) :is(.b2b-stock-ok, .lp-product-stock.is-ok) { color: var(--ft-success-fg) !important; }
html body:not(:has(.admin-shell)) :is(.b2b-stock-out, .lp-product-stock.is-out) { color: var(--ft-danger-fg) !important; }
html body:not(:has(.admin-shell)) :is(.b2b-stock-ok, .b2b-stock-out) .b2b-dot { background: currentColor !important; }
html body:not(:has(.admin-shell)) .b2b-min-qty-warn { color: var(--ft-warning-fg) !important; font-weight: var(--ft-fw-semibold); }

/* ==========================================================================
   29. ux6 review round 1 (14 Nov 2026).
   ========================================================================== */
/* 29a. Phones: the search panel opens below the search field (top is set by
        B2BOrdering.anchorMobilePopout), so the typed query stays visible and
        editable. The dimmed backdrop starts at the same line. */
@media (max-width: 760px) {
    body.search-popout-mobile-open::before { inset: var(--search-popout-top, 0) 0 0 0; }
    body.search-popout-mobile-open > .search-suggestions {
        position: fixed;
        top: var(--search-popout-top, max(10px, env(safe-area-inset-top)));
        right: 10px;
        bottom: 10px;
        left: 10px;
        z-index: 2999;
        width: auto;
        max-height: none;
        border-radius: var(--ft-radius-lg);
    }
    /* Loading and no-results: size to the message, not a tall empty sheet. */
    body.search-popout-mobile-open > .search-suggestions.is-message { bottom: auto; }
}
/* While the next request runs the previous results stay, slightly faded. */
.search-suggestions[aria-busy="true"] .b2b-suggestion { opacity: .55; transition: opacity .15s; }

/* 29b. Catalogue toolbar: the Filters button uses the same 3:1 border as the
        selects beside it. rv2: the selector must beat 16c (0,6,1), whose
        :is() list carries .wsp-btn:not():not():not(). Hover keeps 16c. */
html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .catalog-filters-button.btn-outline:not(:focus-visible):not(:hover) { border-color: var(--ft-field-border) !important; }

/* 29c. Register: the newsletter and terms checkboxes are 24px boxes on a
        44px-high label row, so they are easy to tap on a phone. */
html body:not(:has(.admin-shell)) .registration-consents label {
    display: flex;
    align-items: center;
    gap: var(--ft-s3);
    min-height: 44px;
    cursor: pointer;
}
html body:not(:has(.admin-shell)) .registration-consents input[type="checkbox"] {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: var(--ft-primary);
}

/* 29d. Guest rows (rv2: every width). One sign-in prompt per page: the
        banner above the list (plus the header). The per-row 'Inloggen'
        column is hidden, so the product column keeps its width and the price
        slot shows the short muted 'Prijs na inloggen' on one line. */
html body:not(:has(.admin-shell)) .b2b-table tr.b2b-row > td.col-order:has(> .b2b-login-btn),
html body:not(:has(.admin-shell)) .b2b-table:has(.b2b-login-btn) thead th.col-order { display: none !important; }
html body:not(:has(.admin-shell)) .b2b-table .b2b-price-locked { white-space: nowrap !important; }
@media (min-width: 720px) {
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table:has(.b2b-price-locked) .col-price { width: 136px !important; }
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table:has(.b2b-price-locked) :is(td.col-price, th.col-price) { padding-right: 16px !important; }
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table:has(.b2b-price-locked) td.col-price .b2b-price-locked { display: inline; font-size: var(--ft-fs-xs); white-space: nowrap !important; }
}
/* Names never lose their qualifier silently: on tablets the name may take
   three lines and a cut shows an ellipsis (the full name is the title). */
@media (min-width: 720px) and (max-width: 1023.98px) {
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-title { -webkit-line-clamp: 3; max-height: none !important; }
}

/* 29e. Signed-in header: a small green dot on the account icon, so a phone
        (icon only, no label) shows that the buyer is logged in. */
html body:not(:has(.admin-shell)) .nav-account-action { position: relative; }
html body:not(:has(.admin-shell)) #user-nav .nav-account-action > .nav-account-dot {
    display: block !important;
    position: absolute !important;
    top: 9px;
    right: 9px;
    left: auto;
    overflow: visible !important;
    clip-path: none !important;
    clip: auto !important;
    box-sizing: content-box;
    width: 8px !important;
    min-width: 0 !important;
    max-width: none;
    height: 8px !important;
    margin: 0;
    padding: 0 !important;
    border: 2px solid var(--ft-surface) !important;
    border-radius: 50% !important;
    background: var(--ft-success-fg) !important;
    opacity: 1 !important;
    visibility: visible;
    z-index: 5;
    pointer-events: none;
}
@media (min-width: 768px) {
    /* The visible 'Mijn account' label already says it. */
    html body:not(:has(.admin-shell)) #user-nav .nav-account-action > .nav-account-dot { display: none !important; }
}

/* 29f. Error screens: the title is the page's one H1 (styled as before). */
html body:not(:has(.admin-shell)) .route-error-title {
    margin: 0 0 var(--ft-s1);
    color: inherit;
    font-size: var(--ft-fs-md);
    font-weight: var(--ft-fw-bold);
    line-height: var(--ft-lh-tight);
}
html body:not(:has(.admin-shell)) .route-error-title:focus { outline: none; }

/* 29g. Wide screens (>1280px): header and menu bar use the same 1280px
        centred container as the page, so the logo lines up with the
        breadcrumb and sidebar, and the cart with the right content edge. */
@media (min-width: 1281px) {
    html body:not(:has(.admin-shell)) .app-header .header-inner,
    html body:not(:has(.admin-shell)) #store-menu > .container {
        box-sizing: border-box;
        padding-inline: max(24px, calc((100% - 1232px) / 2)) !important;
    }
}

/* 29h. One SKU style (catalogue row, cart line, product page): monospace,
        semibold, muted, no box. */
:root { --ft-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
html body:not(:has(.admin-shell)) :is(.b2b-sku, .line-item-sku, .part-sku .ft-sku) {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: var(--ft-text-muted) !important;
    font-family: var(--ft-font-mono);
    font-weight: var(--ft-fw-semibold);
    letter-spacing: .02em;
}
html body:not(:has(.admin-shell)) .line-item-sku { font-size: var(--ft-fs-xs) !important; }

/* ==========================================================================
   30. ux6 review round 2 (14 Nov 2026).
   ========================================================================== */
/* 30a. One SKU style also in the order detail lines and quick-order /
        order-list / stock-alert product cells (same token as 29h). */
html body:not(:has(.admin-shell)) :is(.b2b-order-item-sku.b2b-sku, .wsp-cell-product-text .b2b-sku) {
    display: block;
    font-size: 13px;
    line-height: 1.4;
}

/* 30b. Catalogue stock column: left-aligned, so the status dots start on one
        line in every row (price and order stay right-aligned). */
html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table :is(th.col-stock, td.col-stock) { text-align: left !important; }
html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-stock .b2b-stock-indicator { justify-content: flex-start; }

/* 30c. Desktop filter bar: Quality and Brand get room for their longest
        default label ('Toutes les qualités'); the model field gives way. */
@media (min-width: 1024px) {
    /* rv3: the bases plus gaps (140+170+170+toggle+160+4x12) leave about 90px
       spare at 1280 even with the longest toggle label (NL 'Op voorraad'), so
       all five fields stay on one row in nl/de/fr/it/en; Quality and Brand
       take twice the spare room so 'Toutes les qualités' still fits. */
    /* ux7: the model select now gets the largest share, so typical names
       ('iPhone 12 (121)', 'iPhone 13 Pro Max (88)') are no longer cut off.
       Bases 195+160+160+160 + toggle (max 141, NL) + 4 gaps = 864px, which
       still fits the 870px inner row at 1280 in nl/de/fr; spare room goes
       to the model field first. Quality/Brand still fit 'Toutes les qualités'. */
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .catalog-model-field { flex: 3 1 195px; }
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row :is(.catalog-quality-field, .catalog-brand-field) { flex: 1 1 160px; }
    /* When the bar does wrap (1024-1279px), Sort stays a normal field width
       on the second row instead of a full-width bar. */
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .catalog-sort-field { flex: 1 1 160px; max-width: 240px; }
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .catalog-model-field { max-width: 320px; }
}

/* 30d. Catalogue pager: the shown range ('1–48 van 7.846') above the page
        links; phones keep 'Pagina 3 van 654'. */
html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-pagination .catalog-page-range {
    flex: 1 0 100%;
    color: var(--ft-text-muted);
    font-size: var(--ft-fs-sm);
    text-align: center;
}
@media (max-width: 719px) {
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-pagination .catalog-page-range { display: none; }
}

/* 30e. Documents: the type and customer reference stay on one line (full
        reference in the title), as on the orders list. */
@media (min-width: 1200px) {
    /* Below 1200px the table already scrolls; the reference wraps there.
       rv3: up to two lines instead of a 200px one-line cut, so the buyer's own
       PO reference stays readable (full text still in the title). */
    html body:not(:has(.admin-shell)) .wsp-doc-ref {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        max-width: none;
        overflow: hidden;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* 30f. Order status filter: room for the chevron and the longest label
        ('Toutes les commandes'); the column sizes to the field. */
@media (min-width: 601px) {
    html body:not(:has(.admin-shell)) .b2b-order-filters { grid-template-columns: minmax(0, 1fr) auto auto; }
}
html body:not(:has(.admin-shell)) select.b2b-select[data-order-status] {
    field-sizing: content;
    width: auto;
    min-width: 200px;
    max-width: 100%;
    padding-right: 40px !important;
}

/* 30g. Order detail: the product link on a line is at least a 24px target;
        44px on touch screens (the negative margin keeps the row height). */
html body:not(:has(.admin-shell)) .b2b-account-main .b2b-order-item-link {
    display: inline-block;
    padding-block: 4px;
}
@media (pointer: coarse) {
    html body:not(:has(.admin-shell)) .b2b-account-main .b2b-order-item-link { padding-block: 12px; margin-block: -8px; }
}

/* 30h. Order timeline: the current-status entry without a timestamp is
        labelled in the same place and style as the dates above it. */
html body:not(:has(.admin-shell)) .b2b-timeline-when {
    display: block;
    color: var(--ft-text-muted);
    font-size: .75rem;
    font-weight: var(--ft-fw-semibold);
}

/* 30i. Home hero starts on the same content edge as the header and the
        sections below (no extra inline padding). */
html body:not(:has(.admin-shell)) .lp .lp-hero { padding-inline: 0; }

/* 30j. Empty cart: the card starts on the heading's left edge. */
html body:not(:has(.admin-shell)) .cart-empty-workspace .cart-empty-panel { margin-inline: 0; }

/* 30k. Search popout: the 'scroll for more' hint sits in a white fade at the
        bottom edge instead of a pill over the row text. */
html body:not(:has(.admin-shell)) .search-suggestions .search-scroll-cue {
    width: 100%;
    max-width: none;
    margin: -36px 0 0;
    padding: 14px 0 6px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--ft-surface, #fff) 55%);
    box-shadow: none;
}

/* 30l. Quick order header: 'needs attention' and 'reduced to stock' chips
        side by side (they wrap on phones). */
html body:not(:has(.admin-shell)) .wsp-chip-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--ft-s2); }
@media (max-width: 600px) {
    html body:not(:has(.admin-shell)) .wsp-chip-row { justify-content: flex-start; }
}

/* ==========================================================================
   31. ux6 review round 3 (14 Nov 2026).
   ========================================================================== */
/* 31a. Catalogue rows from 720px: the compatible models move onto their own
        line under SKU and badges whenever they do not fit beside them, and
        use up to two lines there, so '4G' vs '5G' or 'Pro' vs 'Pro Max' is
        never cut (full list stays in the title attribute). */
@media (min-width: 720px) {
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-meta {
        flex-wrap: wrap;
        height: auto;
        max-height: none;
        row-gap: 0;
    }
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-meta > .b2b-prod-models {
        flex: 1 1 auto;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        max-width: 100%;
        max-height: none;
        padding-left: 0 !important;
        overflow: hidden;
        white-space: normal;
    }
    /* Stock label on one line ('25+ op voorraad', 'Rupture de stock'). */
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-stock .b2b-stock-indicator { white-space: nowrap; }
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-stock { padding-right: 4px !important; }
}
/* 31b. Tablet and small laptop (720-1279px): the product column gets the room.
        Names may use three lines; the order column is 160px (quantity, add
        button, or the longest 'Benachrichtigen'); stock fits its longest
        label on one line. */
@media (min-width: 720px) and (max-width: 1179px) {
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        max-height: 60px;
        overflow: hidden;
    }
}
@media (min-width: 720px) and (max-width: 1023px) {
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .col-stock { width: 136px !important; }
}
@media (min-width: 720px) and (max-width: 1279px) {
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .col-order { width: 160px !important; }
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-order { padding-right: 12px !important; }
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table thead th.col-order { padding-right: 12px !important; }
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-order > .b2b-watch-btn { padding: 0 10px; }
}

/* 31c. Desktop: the column labels stay visible under the sticky site header
        while a buyer scrolls the 48 rows ('clip' keeps the rounded corners
        without making the card a scroll container). */
@media (min-width: 1024px) {
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-products { overflow: clip !important; }
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table thead th {
        position: sticky;
        top: var(--ft-header-h, 126px);
        z-index: 3;
    }
}

/* 31d. Guest price notice on phones and tablets: the question sits next to
        the 44px link (two columns, see storefront-ux-catalog.css B2); a small
        padding keeps a two-line question off the strip edge. */
@media (max-width: 1023px) {
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-price-notice.ft-notice > span { padding-block: 4px; }
}

/* 31e. Phone catalogue cards: a one-line product name is still a 24px link
        (40px on touch screens); title padding plus a negative margin keep
        the card height and the three-line clamp. */
@media (max-width: 719px) {
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-title { padding-block: 4px; margin-block: -4px; }
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-title a { padding-block: 4px; }
}
@media (max-width: 719px) and (pointer: coarse) {
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-title { padding-block: 12px; margin-block: -12px; }
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-title a { padding-block: 12px; }
}

/* 31f. Documents: the order number (#8475) is a 24px target, 44px on touch
        screens, as the order-line link (30g). */
html body:not(:has(.admin-shell)) .wsp-document-table td:nth-child(3) > a {
    display: inline-block;
    padding-block: 4px;
}
@media (pointer: coarse) {
    html body:not(:has(.admin-shell)) .wsp-document-table td:nth-child(3) > a { padding-block: 12px; margin-block: -8px; }
}

/* 31g. Orders list: the customer reference uses up to two lines, and the
        order column takes the room the Status and Payment columns left free. */
@media (min-width: 768px) {
    html body:not(:has(.admin-shell)) .b2b-account-main .b2b-order-list--table .b2b-order-reference {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
@media (min-width: 1200px) {
    /* Below 1200px the status and payment columns need their share. */
    html body:not(:has(.admin-shell)) .b2b-account-main .b2b-order-list--table :is(.b2b-order-list-head, .b2b-order-card) {
        grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) 96px 148px;
    }
}

/* ==========================================================================
   32. Design review (14 Nov 2026). Shared by every storefront route.
   ========================================================================== */
/* 32a. Header search: the magnifier sat 3px above the middle of the field
        (inline SVG on the text baseline). Centred in its 44px cell. */
html body:not(:has(.admin-shell)) .app-header .search-submit { display: grid; place-items: center; padding: 0; }

/* 32b. Model filter in the Apple/Samsung menu and the phone drawer: the same
        field as everywhere else (1px border, 10px radius, no shadow) instead
        of a 2px frame with 13px text. 16px text also stops iOS Safari from
        zooming in when the field gets focus. Border colour: 28b. */
html body:not(:has(.admin-shell)) .b2b-model-search-wrap .b2b-model-search {
    border-width: 1px;
    border-style: solid;
    border-radius: var(--ft-radius-md);
    box-shadow: none;
    padding: 0 var(--ft-s3);
    font-size: var(--ft-fs-base);
}

/* 32c. Desktop menu: the series cards in one row end on one line (they were
        as tall as their own model list, so every row had a ragged bottom).
        A closed group keeps its own height. */
@media (min-width: 1024px) {
    html body:not(:has(.admin-shell)) .store-mega-menu .b2b-model-series { align-items: stretch; }
    html body:not(:has(.admin-shell)) .store-mega-menu .b2b-model-series-group:not([open]) { align-self: start; }
}

/* 32d. Search panel part tiles ('Welches Teil benötigen Sie?'): German and
        French names were cut off ('Gehäuse & R…'). They now use up to two lines. */
html body:not(:has(.admin-shell)) .smart-search-part-copy strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    line-height: 1.25;
}

/* 32e. Register: the newsletter and terms lines were 13px grey, smaller and
        lighter than every other label on the form, although the terms line
        is a required choice. Now 14px in the normal text colour. */
html body:not(:has(.admin-shell)) .registration-consents label {
    color: var(--ft-text);
    font-size: var(--ft-fs-sm);
    line-height: var(--ft-lh-body);
}

/* DR-09: registration help texts came in three sizes (12px, 13px, 13.33px).
   They now share the .ft-hint size and line height. */
body:not(:has(.admin-shell)) .registration-card :is(.auth-hint, .registration-section-heading p, .registration-field small, .registration-country-help) {
    font-size: 13px;
    line-height: 1.4;
}

/* DR-11: company address in the footer (same data as ferrytelecom.com/contact). */
html body:not(:has(.admin-shell)) .app-footer .footer-address {
    margin: var(--ft-s4) 0 0;
    color: var(--ft-text-muted);
    font-size: var(--ft-fs-sm);
    font-style: normal;
    line-height: var(--ft-lh-body);
}
html body:not(:has(.admin-shell)) .app-footer .footer-address strong { color: var(--ft-text); font-weight: var(--ft-fw-semibold); }

/* DR-13: link inside a toast ('Zum Warenkorb' after reordering). */
body:not(:has(.admin-shell)) .wb-toast .wb-toast-action { color: inherit; font-weight: var(--ft-fw-semibold); text-decoration: underline; }

/* DR-14: language selector in the header (tablet/desktop). Phones keep the
   language row in the menu drawer, so the 2-row phone header stays as is. */
html body:not(:has(.admin-shell)) .header-language-control { position: relative; display: none; align-items: center; flex: 0 0 auto; }
@media (min-width: 769px) {
    html body:not(:has(.admin-shell)) .header-language-control { display: inline-flex; }
}
html body:not(:has(.admin-shell)) .header-language-control select {
    appearance: none;
    -webkit-appearance: none;
    height: 40px;
    padding: 0 12px 0 32px;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-md);
    background: var(--ft-surface);
    color: var(--ft-text);
    font: inherit;
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
    cursor: pointer;
}
html body:not(:has(.admin-shell)) .header-language-control select:hover { border-color: var(--ft-border-strong); }
html body:not(:has(.admin-shell)) .header-language-control select:focus-visible { outline: 3px solid var(--ft-focus-color); outline-offset: 1px; }
html body:not(:has(.admin-shell)) .header-language-control .language-control__icon { position: absolute; left: 10px; color: var(--ft-text-muted); pointer-events: none; }

/* ==========================================================================
   Round 8 design (14 Nov 2026)
   ========================================================================== */
/* R8-01: product names in every product list (catalogue, 'Similar products')
   were bold link-blue: a column of blue that competed with price and the cart
   button. The bundle meant them to be ink with a blue hover (.b2b-prod-title a),
   but the global storefront link colour (section above: body a) overrode it.
   Names are now ink like the home cards and the search pop-up; hover and
   keyboard focus show the link blue with an underline. */
body:not(:has(.admin-shell)) .b2b-row .b2b-prod-title a {
    color: var(--ft-text);
    font-weight: var(--ft-fw-semibold);
}
body:not(:has(.admin-shell)) .b2b-row .b2b-prod-title a:is(:hover, :focus-visible) {
    color: var(--ft-primary-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* R8-02: device menu (desktop mega menu and phone drawer). Every series was a
   blue-bordered card with a blue-tinted heading and a blue shadow, and the
   heading's 11px corners stuck out of the 8px card. Now one neutral card:
   grey hairline, white, ink heading over a hairline, neutral count; the blue
   is left for the active family tab and hover. */
html body:not(:has(.admin-shell)) #store-menu .b2b-model-series-group,
html body:not(:has(.admin-shell)) #store-menu .b2b-model-series-group[open] {
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-md);
    background: var(--ft-surface);
    box-shadow: none;
    overflow: hidden;
}
html body:not(:has(.admin-shell)) #store-menu .b2b-model-series-group > summary,
html body:not(:has(.admin-shell)) #store-menu .b2b-model-series-group[open] > summary {
    border-radius: 0;
    background: var(--ft-surface-2);
    border-bottom: 1px solid var(--ft-divider);
    color: var(--ft-text);
    font-weight: var(--ft-fw-semibold);
}
html body:not(:has(.admin-shell)) #store-menu .b2b-model-series-group > summary small {
    background: var(--ft-neutral-bg);
    color: var(--ft-text-muted);
}
/* The desktop panel's content started 21px from the screen edge (1px border +
   20px padding); the page content starts at the 24px gutter. Now in line. */
@media (min-width: 769px) {
    html body:not(:has(.admin-shell)) #store-menu .b2b-dropdown-overlay :is(.b2b-mega-families, .b2b-mega-models) {
        padding-inline: calc(var(--ft-gutter) - 1px);
    }
}

/* R8-03: page-level empty states ('Page not found', no search results) get the
   same round icon disc as the account empty states, so every empty state
   reads as one family. */
html body:not(:has(.admin-shell)) .ft-empty .ft-empty__icon {
    box-sizing: content-box;
    width: 28px;
    height: 28px;
    padding: 16px;
    border-radius: 50%;
    background: var(--ft-surface);
    box-shadow: inset 0 0 0 1px var(--ft-divider);
    color: var(--ft-text-muted);
}

/* ==========================================================================
   Round 8 accessibility (14 Nov 2026, WCAG 2.2 AA)
   ========================================================================== */
/* A11Y8-01 (2.4.11 Focus Not Obscured): the header is sticky (112-126px). When the
   browser scrolls a focused element into view (Shift+Tab, anchors) it now stops below
   the header instead of under it. --ft-sticky-header-pad (header height + 12px) is
   measured by core.js: 0 when the header is not sticky, never set in the staff area. */
html {
    scroll-padding-top: var(--ft-sticky-header-pad, 0px);
}
/* Desktop catalogue: the 40px column labels are sticky too (31c), so rows keep that much
   extra room when they receive focus. */
@media (min-width: 1024px) {
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tbody :is(a, button, input, select) {
        scroll-margin-top: 48px;
    }
}
/* A11Y8-02 (1.4.11 / 2.4.7): focus rings that were too pale against white.
   Skip link #93b4f0 = 1.9:1 and home 'add to cart' #bdd8ff = 1.5:1; the shop focus
   colour is 6.4:1 on white. */
html body:not(:has(.admin-shell)) .skip-link:focus,
html body:not(:has(.admin-shell)) .skip-link:focus-visible {
    outline-color: var(--ft-focus-color);
}
html body:not(:has(.admin-shell)) .lp .lp-product-add:focus-visible,
html body:not(:has(.admin-shell)) .lp-product-add:focus-visible {
    outline: 3px solid var(--ft-focus-color);
    outline-offset: 2px;
}
/* A11Y8-03 (1.4.11 Non-text Contrast): the footer language select had a 1.5:1 border
   (#c9d3df); it now uses the 3.3:1 field border like every other field. */
html body:not(:has(.admin-shell)) .footer-language-control select:not(:focus) {
    border-color: var(--ft-field-border) !important;
}
/* A11Y8-04 (2.5.8 Target Size): the terms / privacy links under the registration
   consent were 18px high and wrapped onto each other on phones. */
html body:not(:has(.admin-shell)) .registration-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}
html body:not(:has(.admin-shell)) .registration-legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

/* Language switcher (16 Nov 2026): the bordered 'DE' box beside the logo looked like a stray
   form field. It now sits on the right, next to the account button, as a quiet text button
   with the full language name ('Deutsch', 'Français', ...) and a chevron. Still the native
   select, so keyboard, screen readers and the i18n sync behave exactly as before. */
@media (min-width: 769px) {
    html body:not(:has(.admin-shell)) .app-header .header-inner > .header-language-control { order: 2 !important; margin-left: auto !important; }
    html body:not(:has(.admin-shell)) .app-header .header-inner > .header-language-control ~ .user-nav { margin-left: 0 !important; }
    html body:not(:has(.admin-shell)) .app-header .header-inner:has(> .search-bar:not([hidden])) > .header-language-control { margin-left: 0 !important; }
}
html body:not(:has(.admin-shell)) .header-language-control select {
    height: 44px;
    padding: 0 30px 0 36px;
    border: 1px solid transparent;
    border-radius: var(--ft-radius-md);
    background: transparent;
    color: var(--ft-text);
    font-size: 15px;
    font-weight: var(--ft-fw-semibold);
    transition: background-color .15s ease, border-color .15s ease;
}
html body:not(:has(.admin-shell)) .header-language-control select:hover { background: var(--ft-bg); border-color: transparent; }
html body:not(:has(.admin-shell)) .header-language-control .language-control__icon { left: 12px; width: 18px; height: 18px; color: var(--ft-text-muted); }
html body:not(:has(.admin-shell)) .header-language-control .language-control__chevron { position: absolute; right: 11px; color: var(--ft-text-muted); pointer-events: none; }
/* Same look as the account button beside it (light border, white). The a11y F5 field-border rule
   (section 28b) targets form fields; this select is a header button, so it opts out here.
   :not(#_) only lifts specificity to beat that rule's ID. */
html body:not(:has(.admin-shell)) .app-header:not(#_) .header-language-control select:not(:focus):not(:focus-within) {
    border-color: var(--ft-border-strong) !important;
}
html body:not(:has(.admin-shell)) .app-header:not(#_) .header-language-control select { background: var(--ft-surface); }
html body:not(:has(.admin-shell)) .app-header:not(#_) .header-language-control select:hover { background: var(--ft-bg); }
/* Icon only (owner, 16 Nov 2026): the language follows the account setting or the browser
   automatically, so the header shows just a small globe. The native select lies invisibly
   over the globe: a click opens the normal language list; its aria-label names it. */
html body:not(:has(.admin-shell)) .app-header:not(#_) .header-language-control {
    width: 44px; height: 44px; justify-content: center;
    border: 1px solid var(--ft-border-strong); border-radius: var(--ft-radius-md);
    background: var(--ft-surface); transition: background-color .15s ease;
}
html body:not(:has(.admin-shell)) .app-header:not(#_) .header-language-control:hover { background: var(--ft-bg); }
html body:not(:has(.admin-shell)) .app-header:not(#_) .header-language-control:focus-within { outline: 3px solid var(--ft-focus-color); outline-offset: 1px; }
html body:not(:has(.admin-shell)) .app-header:not(#_) .header-language-control select {
    position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0;
    opacity: 0; cursor: pointer; border: 0 !important; outline: none;
}
html body:not(:has(.admin-shell)) .app-header:not(#_) .header-language-control .language-control__icon { position: static; width: 19px; height: 19px; color: var(--ft-text); }
html body:not(:has(.admin-shell)) .app-header:not(#_) .header-language-control .language-control__chevron { display: none; }

/* 27 Nov (owner): bigger logo in the shop header. */
@media (min-width: 801px) {
    html body:not(:has(.admin-shell)) .app-header .logo { flex: 0 0 auto !important; max-width: 280px !important; }
    html body:not(:has(.admin-shell)) .app-header .logo img { height: 56px !important; max-height: 56px !important; width: auto !important; max-width: 280px !important; }
}
@media (max-width: 800px) {
    html body:not(:has(.admin-shell)) .app-header .logo img { height: 40px !important; max-height: 40px !important; max-width: min(100%, 210px) !important; }
}
