/*
 * Storefront UX — catalogue: /catalog listings, filters, search popup, model pages.
 * Owner: Catalogue stream (B). Shared stylesheet: loaded on every route after
 * storefront-ux.css (tokens and components), marked data-style-shared so it
 * survives SPA navigation. Use the --ft-* tokens and .ft-* components from
 * storefront-ux.css; scope every rule to this area's classes and to
 * body:not(:has(.admin-shell)).
 *
 * The 711 KB storefront bundle styles the catalogue with high-specificity and
 * some !important rules. Rules below repeat the bundle prefix
 * (body:not(:has(.admin-shell)) [data-catalog-shell]) so they win by order;
 * !important is used only where the bundle itself uses it.
 */

/* B1. Page head (P1 #7): breadcrumb line, H1, count. */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-page-head {
    margin: 0;
    padding-top: var(--ft-page-top);
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-page-head .ft-breadcrumb {
    margin-bottom: var(--ft-s1);
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-page-head .ft-breadcrumb a {
    color: var(--ft-primary-text);
    text-decoration: none;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-page-head .ft-breadcrumb a:hover { text-decoration: underline; }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-page-head .ft-page-title {
    font-size: var(--ft-fs-xl);
    overflow-wrap: anywhere;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-page-head .ft-page-sub {
    font-size: var(--ft-fs-sm);
    color: var(--ft-text-muted);
}

/* B2. Guest price notice: one full-width strip above the results (P1 #9). */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-price-notice.ft-notice {
    /* ux7: question and link side by side in every language; a long question
       (DE 'Möchten Sie Ihre Kundenpreise sehen?') wraps inside its own column
       next to the link instead of pushing the link onto a second row. */
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 0 var(--ft-s3);
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: var(--ft-s2) var(--ft-s4);
    border: 0;
    border-radius: var(--ft-radius-md);
    background: var(--ft-info-bg);
    box-shadow: none;
    color: var(--ft-info-fg);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-regular);
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-price-notice.ft-notice span { color: inherit; font-weight: var(--ft-fw-semibold); }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-price-notice.ft-notice a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--ft-primary-text);
    font-weight: var(--ft-fw-semibold);
    white-space: nowrap;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-price-notice.ft-notice::after { content: none; display: none; }

/* B3. One refine bar (P1 #8). */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-refine-row {
    /* The bundle hides this row from 901px with !important (old sidebar layout). */
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--ft-s3);
    margin: 0 0 var(--ft-s3);
    padding: var(--ft-s3) var(--ft-s4);
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-lg);
    background: var(--ft-surface);
    box-shadow: none;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .catalog-tool-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: var(--ft-s1);
    flex: 1 1 150px;
    min-width: 0;
    margin: 0;
    color: var(--ft-text);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .catalog-model-field { flex: 1.6 1 200px; }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .catalog-tool-label { display: block; line-height: 1.3; }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row select.form-control,
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-accessory-filters select.form-control {
    width: 100%;
    min-width: 0;
    height: var(--ft-control-h);
    min-height: var(--ft-control-h);
    padding: 0 36px 0 12px;
    border: 1px solid var(--ft-border-strong);
    border-radius: var(--ft-radius-md);
    background: var(--ft-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6779' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    appearance: none;
    color: var(--ft-text);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-regular);
    box-shadow: none;
    text-overflow: ellipsis;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row :is(.stock-shortcut, .catalog-filters-button) {
    flex: 0 0 auto;
    height: var(--ft-control-h);
    min-height: var(--ft-control-h);
    margin: 0;
    padding: 0 var(--ft-s4);
    border: 1px solid var(--ft-field-border) !important; /* rv2: same 3:1 border as the selects */
    border-radius: var(--ft-radius-md);
    background: var(--ft-surface) !important;
    color: var(--ft-text) !important;
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
    white-space: nowrap;
    box-shadow: none;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .stock-shortcut {
    display: inline-flex;
    align-items: center;
    gap: var(--ft-s2);
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .stock-shortcut::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    box-sizing: border-box;
    border: 1.5px solid var(--ft-border-strong);
    border-radius: 4px;
    background: var(--ft-surface);
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .stock-shortcut.active {
    border-color: var(--ft-primary) !important;
    background: var(--ft-primary-soft) !important;
    color: var(--ft-primary-text) !important;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .stock-shortcut.active::before {
    border-color: var(--ft-primary);
    background: var(--ft-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center / 12px;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .stock-shortcut input { display: none; }

/* Desktop: the full bar, no Filters dialog button. */
@media (min-width: 1024px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .catalog-filters-button { display: none !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .catalog-sort-field { flex: 1 1 170px; }
}
/* Phone and tablet: [Toestelmodel] [Filters (n)] [Sorteren]. Labels stay for screen readers. */
@media (max-width: 1023px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-refine-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr);
        gap: var(--ft-s2);
        margin-bottom: var(--ft-s3);
        padding: 0;
        border: 0;
        background: transparent;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row :is(.catalog-quality-field, .catalog-brand-field, .stock-shortcut) { display: none !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .catalog-tool-field { flex: none; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .catalog-filters-button { display: inline-flex !important; align-items: center; justify-content: center; height: var(--ft-control-h) !important; padding: 0 var(--ft-s3) !important; font-size: var(--ft-fs-sm) !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row > .catalog-model-field { grid-column: 1 !important; grid-row: 1; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row > .catalog-filters-button { grid-column: 2 !important; grid-row: 1; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row > .catalog-sort-field { grid-column: 3 !important; grid-row: 1; flex: none !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .catalog-tool-label {
        position: absolute !important;
        width: 1px; height: 1px;
        margin: -1px; padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (max-width: 559px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-refine-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row > .catalog-model-field { grid-column: 1 / -1 !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row > .catalog-filters-button { grid-column: 1 !important; grid-row: 2; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row > .catalog-sort-field { grid-column: 2 !important; grid-row: 2; }
    /* 'Startpagina / Catalogus' adds little on a phone; the H1 and the strip say where you are. */
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-page-head .ft-breadcrumb { display: none; }
}

/* Active filter chips: once, above the results, with one 'Alles wissen'. */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main > .active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ft-s2);
    margin: 0 0 var(--ft-s3);
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main > .active-filters .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px 0 12px;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-pill);
    background: var(--ft-primary-soft);
    color: var(--ft-text);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
    text-decoration: none;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main > .active-filters .filter-chip span { color: var(--ft-text-muted); font-size: var(--ft-fs-base); line-height: 1; }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main > .active-filters .clear-filters {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 var(--ft-s1);
    color: var(--ft-primary-text);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
}

/* B4. Filter dialog: fields open, 'Toon resultaten' on one line. */
body:not(:has(.admin-shell)) .filter-dialog .filter-dialog-fields {
    display: grid;
    gap: var(--ft-s4);
    padding: var(--ft-s4) 0;
}
body:not(:has(.admin-shell)) .filter-dialog .filter-dialog-fields .field { display: grid; gap: var(--ft-s1); margin: 0; }
body:not(:has(.admin-shell)) .filter-dialog .filter-dialog-fields label { color: var(--ft-text); font-size: var(--ft-fs-sm); font-weight: var(--ft-fw-semibold); }
body:not(:has(.admin-shell)) .filter-dialog .filter-dialog-fields select.form-control {
    height: var(--ft-control-h);
    padding: 0 36px 0 12px;
    border: 1px solid var(--ft-border-strong);
    border-radius: var(--ft-radius-md);
    background: var(--ft-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6779' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    appearance: none;
    font-size: var(--ft-fs-base);
}
body:not(:has(.admin-shell)) .filter-dialog .filter-dialog-fields .check-label {
    display: flex;
    align-items: center;
    gap: var(--ft-s2);
    min-height: var(--ft-control-h);
    font-weight: var(--ft-fw-semibold);
}
body:not(:has(.admin-shell)) .filter-dialog .filter-dialog-fields .check-label input { width: 20px; height: 20px; margin: 0; accent-color: var(--ft-primary); }
body:not(:has(.admin-shell)) .filter-dialog .filter-dialog-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--ft-s2);
}
body:not(:has(.admin-shell)) .filter-dialog .filter-dialog-actions .btn { min-height: var(--ft-control-h); white-space: nowrap; }

/* B5. Empty and error states (P1 #7). */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-empty-surface {
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-lg);
    background: var(--ft-surface);
    box-shadow: none;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-empty-surface .empty-state.ft-empty { padding: var(--ft-s7) var(--ft-s4); background: transparent; border: 0; }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-empty-surface .ft-empty__actions .btn,
body:not(:has(.admin-shell)) .catalog-load-error .ft-empty__actions .btn { width: auto; flex: 0 0 auto; }
body:not(:has(.admin-shell)) .catalog-load-error {
    max-width: 640px;
    margin: var(--ft-s6) auto;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-lg);
    background: var(--ft-surface);
}
body:not(:has(.admin-shell)) .catalog-load-error h1 { font-size: var(--ft-fs-lg); }

/* B6. Layout. Desktop: sidebar left; head, notice and results right. */
@media (min-width: 1024px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-layout {
        display: grid;
        grid-template-columns: 256px minmax(0, 1fr);
        grid-template-rows: auto auto 1fr;
        column-gap: var(--ft-s5);
        row-gap: var(--ft-s4);
        align-items: start;
        margin-top: 0;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-layout > .catalog-page-head,
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-layout > .catalog-price-notice,
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-layout > .catalog-main { grid-column: 2; min-width: 0; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-layout > .catalog-sidebar {
        grid-column: 1;
        grid-row: 1 / span 3;
        margin-top: var(--ft-page-top);
    }
    /* No 18px photo specks in the desktop list. */
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .quick-category .quick-category-thumb { display: none !important; }
}
@media (max-width: 1023px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-layout { display: block; margin-top: 0; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-layout > * + * { margin-top: var(--ft-s3); }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-page-head { padding-top: var(--ft-s4); }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-page-head .ft-page-title { font-size: var(--ft-fs-lg); }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-page-head .ft-page-sub { margin-top: 2px; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-page-head .ft-breadcrumb { font-size: var(--ft-fs-xs); }

    /* Category strip: compact pills that run edge to edge with a fade. */
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar {
        position: static;
        margin-inline: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .catalog-sidebar-heading { display: none; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .quick-categories {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: var(--ft-s2);
        width: auto;
        max-width: none;
        /* Full bleed: from the screen edge, content aligned with the page gutter. */
        margin: 0 calc(50% - 50vw);
        padding: 2px calc(50vw - 50%);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: none;
        scroll-padding-inline: calc(50vw - 50%);
        scrollbar-width: none;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .quick-categories::-webkit-scrollbar { display: none; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .quick-category {
        display: inline-flex !important;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0 14px;
        border: 1px solid var(--ft-border);
        border-radius: var(--ft-radius-pill);
        background: var(--ft-surface);
        box-shadow: none;
        color: var(--ft-text);
        font-size: var(--ft-fs-sm);
        font-weight: var(--ft-fw-semibold);
        white-space: nowrap;
        text-decoration: none;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .quick-category span:not(.quick-category-thumb) { white-space: nowrap; font-size: inherit; line-height: 1.2; text-align: left; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .quick-category .quick-category-thumb { display: none !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .quick-category.active {
        border-color: var(--ft-primary);
        background: var(--ft-primary-soft);
        color: var(--ft-primary-text);
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .quick-category::before,
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .quick-category::after { content: none !important; display: none !important; }
}

/* B7. Results table from 720px (P1 #9); stock never clipped (P0 #4). */
@media (min-width: 720px) and (max-width: 768px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table { display: table !important; table-layout: fixed; width: 100%; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table thead { display: table-header-group !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tbody { display: table-row-group !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr,
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row { display: table-row !important; padding: 0; border-bottom: 0; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table :is(td, th) {
        display: table-cell !important;
        grid-column: auto;
        grid-row: auto;
        height: auto;
        padding: 12px 8px !important;
        border-bottom: 1px solid var(--ft-divider);
        vertical-align: middle;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr > .col-img { position: static !important; width: 72px !important; min-width: 0 !important; height: auto; padding-left: 12px !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-img-wrap { width: 52px; height: 52px; }
}
@media (min-width: 720px) and (max-width: 1023px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .col-img { width: 72px !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .col-product { width: auto !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .col-price { text-align: right; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .col-order { width: 148px !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-stock .b2b-stock-indicator { white-space: normal; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-order { padding-left: 16px !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table :is(td.col-price, .b2b-price):has(.b2b-price-locked) { white-space: normal; overflow: visible; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-price-locked { display: block; font-size: var(--ft-fs-xs); white-space: normal !important; text-align: right; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-title,
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-title a { white-space: normal; text-overflow: clip; font-size: var(--ft-fs-sm); line-height: 1.35; }
    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; overflow: hidden; max-height: none; }
}

/* Phone cards below 720px: photo, name, stock; then price left and qty + add right. */
@media (max-width: 719px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row {
        grid-template-columns: 56px minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
        gap: 4px 12px;
        padding: 12px;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-img { grid-row: 1 / span 2; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-product { grid-column: 2 / 4; grid-row: 1; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-stock { grid-column: 2 / 4; grid-row: 2; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-price { grid-column: 1 / 3; grid-row: 3; align-self: center; text-align: left; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-order { grid-column: 3; grid-row: 3; align-self: center; justify-self: end; width: auto !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-order .b2b-order-controls { justify-content: flex-end; margin: 0; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-order::before { content: none !important; display: none !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-order > .b2b-row-feedback { min-height: 0; margin: 0; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-order > .b2b-row-feedback:not(.has-message) { display: none; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-order:has(.b2b-order-unavailable) { display: none !important; }
}

/* Guest rows: muted 'Prijs na inloggen' plus one 'Inloggen' button. */
body:not(:has(.admin-shell)) [data-catalog-shell] .b2b-price .b2b-price-locked {
    display: inline-block;
    color: var(--ft-text-muted);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-regular);
    line-height: 1.35;
    white-space: normal;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .col-order > .b2b-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--ft-control-h-dense);
    padding: 0 var(--ft-s4);
    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-sm);
    font-weight: var(--ft-fw-semibold);
    text-decoration: none;
    white-space: nowrap;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .col-order > .b2b-login-btn:hover { border-color: var(--ft-primary); color: var(--ft-primary-text); }

/* Out of stock: one label, the order column shows a dash, optional restock date. */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-order-unavailable { display: block; color: var(--ft-text-muted); font-size: var(--ft-fs-base); text-align: center; }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-restock { margin-top: 2px; color: var(--ft-text-muted); font-size: var(--ft-fs-xs); }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-stock-ok { color: var(--ft-success-fg); }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-stock-out { color: var(--ft-danger-fg); }

/* Row feedback: one line, never grows the row. */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-row-feedback .b2b-row-feedback-message { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* B8. Pagination: numbered on wider screens, 'Pagina 3 van 654' on phones (P3 #21). */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-pagination .catalog-page-status { display: none; }
@media (max-width: 719px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-pagination {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: var(--ft-s2);
        padding: var(--ft-s4) 0;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-pagination :is(.catalog-page-number, .catalog-page-gap) { display: none !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-pagination .catalog-page-status {
        display: block;
        grid-column: 2;
        color: var(--ft-text-muted);
        font-size: var(--ft-fs-sm);
        white-space: nowrap;
        text-align: center;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-pagination [rel="prev"] { grid-column: 1; justify-self: start; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-pagination [rel="next"] { grid-column: 3; justify-self: end; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-pagination .btn { min-height: var(--ft-control-h); padding: 0 var(--ft-s4); }
}

body:not(:has(.admin-shell)) .filter-dialog .filter-dialog-heading .btn-close { width: 44px; height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: var(--ft-fs-lg); }

/* B9. Search popup (P3 #20): the title is the count; guests get one sign-in bar. */
body:not(:has(.admin-shell)) .b2b-search-results .suggestion-group-title strong { color: var(--ft-text); font-size: var(--ft-fs-base); font-weight: var(--ft-fw-semibold); }
body:not(:has(.admin-shell)) .b2b-search-results .search-guest-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ft-s3);
    padding: var(--ft-s2) var(--ft-s4);
    background: var(--ft-info-bg);
    color: var(--ft-info-fg);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
}
body:not(:has(.admin-shell)) .b2b-search-results .search-guest-bar .btn { flex: 0 0 auto; border-radius: var(--ft-radius-md); min-height: var(--ft-control-h-dense); white-space: nowrap; }
body:not(:has(.admin-shell)) .b2b-search-results.is-guest .b2b-suggestion { grid-template-columns: minmax(0, 1fr); min-height: 0; }
body:not(:has(.admin-shell)) .b2b-search-results .b2b-suggestion-order .b2b-add { min-height: var(--ft-control-h-dense); }

/* Product page inline confirmation link (feedback element supplied by the product page). */
body:not(:has(.admin-shell)) .b2b-row-feedback .b2b-row-feedback-link { color: inherit; font-weight: var(--ft-fw-semibold); text-decoration: underline; }

/* Review round 1 (integration, 14 Nov 2026): tablet table rows get the
   desktop insets (title touched the row divider, thumbnail sat on the border). */
@media (min-width: 720px) and (max-width: 1023px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td { padding-top: 14px !important; padding-bottom: 14px !important; vertical-align: middle; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-img { padding-left: 12px !important; }
}

/* ==========================================================================
   Review round 2 (integration, 14 Nov 2026): first-screen order density.
   The count sits on the H1 line, and desktop rows are tighter, so a buyer at
   1280x900 sees more rows before scrolling.
   ========================================================================== */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: var(--ft-s3);
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-page-head .ft-breadcrumb { flex: 1 0 100%; }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-page-head .ft-page-title { margin-bottom: 0; }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-page-head .ft-page-sub { margin: 0; white-space: nowrap; }
@media (min-width: 1024px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td { padding-top: 12px !important; padding-bottom: 12px !important; }
}

/* Tablet refine bar: the model and sort fields keep their visible labels (as on
   desktop), and 'Filters' reads as a control (icon, same weight as the selects). */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .catalog-filters-button { gap: var(--ft-s2); font-weight: var(--ft-fw-semibold) !important; color: var(--ft-text) !important; }
@media (min-width: 560px) and (max-width: 1023px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-refine-row { align-items: end; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .catalog-tool-field { display: flex; flex-direction: column; gap: var(--ft-s1); }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-refine-row .catalog-tool-label {
        position: static !important;
        width: auto; height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        font-size: var(--ft-fs-sm);
        font-weight: var(--ft-fw-semibold);
        color: var(--ft-text);
    }
}

/* Small catalogue links as 44px targets on touch screens: the guest price
   banner link, active filter chips and 'Alles wissen'. */
@media (max-width: 1023px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-price-notice.ft-notice a,
    body:not(:has(.admin-shell)) [data-catalog-shell] .active-filters :is(.filter-chip, .clear-filters) {
        display: inline-flex;
        align-items: center;
        min-height: var(--ft-control-h) !important;
        height: auto;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-price-notice.ft-notice { padding-top: 2px; padding-bottom: 2px; }
}

/* ux6 (owner decision 14 Nov 2026): out-of-stock rows offer the existing
   per-product stock alert in place of the dash (active customers only). */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .col-order > .b2b-watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--ft-control-h-dense);
    padding: 0 var(--ft-s3);
    border: 1px solid var(--ft-border-strong);
    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);
    white-space: nowrap;
    cursor: pointer;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .col-order > .b2b-watch-btn:hover { border-color: var(--ft-primary); color: var(--ft-primary-text); }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .col-order > .b2b-watch-btn[aria-pressed="true"] {
    border-color: transparent;
    background: var(--ft-success-bg);
    color: var(--ft-success-fg);
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .col-order > .b2b-watch-btn[aria-busy="true"] { opacity: .6; cursor: progress; }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .col-order > .b2b-watch-btn + .b2b-row-feedback .b2b-row-feedback-message {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    letter-spacing: 0;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .col-order > .b2b-watch-btn + .b2b-row-feedback.is-error { color: var(--ft-danger-fg); }
@media (max-width: 719px) {
    /* Price stays left; the button sits right and the confirmation gets the full card width below. */
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-order:has(.b2b-watch-btn) { grid-column: 1 / 4; justify-self: stretch; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; pointer-events: none; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .col-order > .b2b-watch-btn { min-height: 44px; pointer-events: auto; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .col-order > .b2b-watch-btn + .b2b-row-feedback { flex: 1 0 100%; text-align: right; }
}
@media (min-width: 720px) and (max-width: 1023px) {
    /* Tablet order column is 148px: keep the alert button and its confirmation inside it. */
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-order:has(.b2b-watch-btn) { text-align: right; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .col-order > .b2b-watch-btn { gap: 4px; padding: 0 8px; font-size: var(--ft-fs-xs); max-width: 100%; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .col-order > .b2b-watch-btn + .b2b-row-feedback { max-width: 100%; text-align: right; }
}

/* ux6 (owner-approved 14 Nov 2026): Cables & accessories filter panel. Same card as
   the refine row; connector as one row of chips, product brand as a select. */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-accessory-filters {
    margin: 0 0 var(--ft-s3);
    padding: var(--ft-s3) var(--ft-s4);
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-lg);
    background: var(--ft-surface);
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-accessory-title {
    margin: 0 0 var(--ft-s2);
    color: var(--ft-text);
    font-size: var(--ft-fs-base);
    font-weight: var(--ft-fw-semibold);
    line-height: 1.3;
    white-space: normal;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-accessory-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    align-items: start;
    gap: var(--ft-s3);
    padding: 0;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-accessory-control { display: grid; gap: var(--ft-s1); min-width: 0; }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-accessory-control > span {
    color: var(--ft-text);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
    letter-spacing: 0;
    text-transform: none;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-accessory-connectors nav { display: flex; flex-wrap: wrap; gap: var(--ft-s2); }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-accessory-connectors nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--ft-control-h-dense);
    padding: 0 var(--ft-s3);
    border: 1px solid var(--ft-border-strong);
    border-radius: var(--ft-radius-pill);
    background: var(--ft-surface);
    color: var(--ft-text);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-medium, 500);
    text-decoration: none;
    white-space: nowrap;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-accessory-connectors nav a:hover { border-color: var(--ft-primary); color: var(--ft-primary-text); }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-accessory-connectors nav a.active {
    border-color: var(--ft-primary);
    background: var(--ft-primary-soft);
    color: var(--ft-primary-text);
    font-weight: var(--ft-fw-semibold);
}
@media (max-width: 719px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-accessory-filters { padding: var(--ft-s3); }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-accessory-toolbar { grid-template-columns: minmax(0, 1fr); }
    /* One swipeable row of connectors on a phone instead of three wrapped lines. */
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-accessory-connectors nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--ft-s3)); padding: 0 var(--ft-s3); }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-accessory-connectors nav::-webkit-scrollbar { display: none; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .catalog-accessory-connectors nav a { min-height: 44px; }
}

/* ux6: Housing for one model, rows grouped by housing part. */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-group-row > th {
    padding: 10px var(--ft-s4) !important;
    background: var(--ft-bg);
    border-top: 1px solid var(--ft-border);
    border-bottom: 1px solid var(--ft-border);
    color: var(--ft-text);
    font-size: var(--ft-fs-sm);
    font-weight: var(--ft-fw-semibold);
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-group-row .b2b-group-count { margin-left: var(--ft-s2); color: var(--ft-text-muted); font-weight: var(--ft-fw-regular); }
@media (max-width: 719px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-group-row { display: block !important; padding: 0 !important; margin: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 0; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-group-row > th { display: block !important; width: auto; height: auto; min-height: 0; padding: 10px 12px !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-group-row > th::before { content: none !important; display: none !important; }
}

/* ==========================================================================
   ux6 S4 (14 Nov 2026): catalogue rows, one table header, thumbnails.
   Selectors repeat the earlier ones (same specificity) so this block wins by
   order; !important only where search-layout.css / the bundle use it.
   ========================================================================== */
/* Meta line: SKU, quality, part type and the compatible models on one line
   (models truncate first). Phones wrap the models onto their own line. */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-meta {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; min-width: 0; overflow: hidden;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-meta > * { flex: 0 0 auto; }
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-meta > .b2b-prod-models {
    flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    color: var(--ft-text-muted); font-size: var(--ft-fs-xs); line-height: 18px;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-meta > .b2b-badge + .b2b-prod-models,
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-meta > .b2b-sku + .b2b-prod-models { padding-left: 2px; }

/* IC-06: the photo gets breathing room inside its frame and the zoom badge
   sits on the frame's corner instead of covering the part. */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-img-wrap {
    position: relative; overflow: visible; padding: 3px; box-sizing: border-box;
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-img-wrap img {
    width: 100%; height: 100%; padding: 0; object-fit: contain; clip-path: inset(0 round 4px);
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-img-zoom {
    right: -7px; bottom: -7px; width: 18px; height: 18px; box-shadow: 0 0 0 2px var(--ft-surface);
}
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-img-zoom svg { width: 11px; height: 11px; }

/* DJ-12: one header style for every column (the overline), 40px tall.
   The image column header is visually hidden ('Afbeelding'). */
@media (min-width: 720px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table thead th {
        height: 40px !important;
        padding: 0 12px !important;
        background: var(--ft-surface-2) !important;
        border-bottom: 1px solid var(--ft-divider) !important;
        color: var(--ft-text-muted) !important;
        font: var(--ft-overline);
        letter-spacing: .04em;
        text-transform: uppercase;
        vertical-align: middle;
        white-space: nowrap;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table thead th :is(.catalog-table-model, .catalog-table-count) {
        color: inherit !important; font: inherit !important; letter-spacing: inherit !important; text-transform: inherit !important; margin: 0 !important;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table thead th .catalog-table-count::before { content: "· "; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table thead th .catalog-table-model + .catalog-table-count { margin-left: 6px !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table thead th.col-price,
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table thead th.col-order { text-align: right; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table thead th.col-order { padding-right: 16px !important; }

    /* DJ-01: dense rows (about 72px) with a 44px photo, a fixed 176px order
       column aligned right, 36px row controls (44px on touch screens). */
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td {
        height: 72px;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        vertical-align: middle;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .col-img { width: 68px !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-img { padding-left: 12px !important; padding-right: 12px !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-img-wrap { width: 44px; height: 44px; min-width: 44px !important; margin: 0 !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-title { line-height: 20px; max-height: 40px; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-meta { height: 20px; margin: 2px 0 0; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .col-order { width: 176px !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row > td.col-order {
        padding-left: 8px !important; padding-right: 16px !important; text-align: right;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-order .b2b-order-controls { justify-content: flex-end; margin: 0 0 0 auto; gap: 8px; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-order > .b2b-row-feedback { text-align: right; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-order .b2b-qty-input {
        box-sizing: border-box; width: 56px !important; height: var(--btn-h-sm, 36px) !important; min-height: var(--btn-h-sm, 36px) !important;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-order .b2b-add-btn {
        box-sizing: border-box; width: 44px !important; min-width: 44px !important; height: var(--btn-h-sm, 36px) !important; min-height: var(--btn-h-sm, 36px) !important; flex: 0 0 auto;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-order > :is(.b2b-login-btn, .b2b-watch-btn) {
        height: var(--btn-h-sm, 36px); min-height: var(--btn-h-sm, 36px) !important; max-width: 100%; margin-left: auto;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-order > .b2b-watch-btn { font-size: var(--ft-fs-sm); padding: 0 12px; gap: 6px; }
}
@media (min-width: 720px) and (pointer: coarse) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-order :is(.b2b-qty-input, .b2b-add-btn, .b2b-login-btn, .b2b-watch-btn) {
        height: var(--btn-h, 44px) !important; min-height: var(--btn-h, 44px) !important;
    }
}
@media (min-width: 720px) and (max-width: 1023px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .col-stock { width: 120px !important; text-align: left !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-stock .b2b-stock-indicator { justify-content: flex-start; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .col-price { width: 104px !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-order:has(.b2b-watch-btn) { padding-left: 8px !important; padding-right: 16px !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-price .b2b-price-locked { white-space: normal; }
}
@media (min-width: 1024px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .col-stock { width: 140px !important; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .col-price { width: 120px !important; }
}

/* Phone cards: models on their own line under SKU and badges; IC-07 names
   use up to three lines (full name in the title attribute); a11y F16: the
   quantity field and the add button are 44px targets. */
@media (max-width: 719px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-meta { flex-wrap: wrap; height: auto; row-gap: 2px; }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-meta > .b2b-prod-models { flex: 1 0 100%; padding-left: 0; }
    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; overflow: hidden; max-height: none;
    }
}
@media (max-width: 480px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-order .b2b-qty-input {
        box-sizing: border-box; width: 56px !important; height: var(--btn-h, 44px) !important; min-height: var(--btn-h, 44px) !important;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-order .b2b-add-btn {
        box-sizing: border-box; width: 48px !important; min-width: 44px !important; height: var(--btn-h, 44px) !important; min-height: var(--btn-h, 44px) !important;
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table td.col-order .b2b-order-controls { gap: 8px; }
}

/* DJ-19: the phone/tablet category chip row starts on the page gutter and
   fades at both ends once scrolled (the left fade sits inside the gutter,
   so the first chip is never faded at rest). Chips use the two control
   heights: 44px on phones, 36px from 481px. */
@media (max-width: 1023px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .quick-categories {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--ft-gutter), #000 calc(100% - 40px), transparent);
        mask-image: linear-gradient(90deg, transparent 0, #000 var(--ft-gutter), #000 calc(100% - 40px), transparent);
    }
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .quick-category { height: var(--btn-h-sm, 36px); min-height: var(--btn-h-sm, 36px); }
}
@media (max-width: 480px) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .quick-category { height: var(--btn-h, 44px); min-height: var(--btn-h, 44px); }
}

/* Rows rested at scaleY(.98) and grew on hover (bundle): text and controls
   were squashed by 2% (a 44px button measured 43px). Rows now stay still;
   hover is a flat tint. */
body:not(:has(.admin-shell)) .catalog-main .b2b-row,
body:not(:has(.admin-shell)) .catalog-main .b2b-row:is(:hover, :focus-within) { transform: none; filter: none; transition: background-color .15s ease; }
@media (hover: hover) {
    body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row:hover > td { background-color: var(--ft-surface-2); }
}

/* ==========================================================================
   Design review (14 Nov 2026)
   ========================================================================== */
/* DR-03: the bell in 'Waarschuw mij' shrank to about 9px in the narrow
   desktop order column (a flex item may shrink below its size). It keeps
   16px like on phones and like the other row icons. */
body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .col-order > .b2b-watch-btn > svg { flex: none; width: 16px; height: 16px; }

/* ==========================================================================
   Round 8 design (14 Nov 2026)
   ========================================================================== */
/* R8-04: active category in the desktop sidebar. It had a short 18px bar that
   sat on the pill's rounded corner and looked detached; the account sidebar
   uses a full-height inset bar. Same marker now in both sidebars. */
@media (min-width: 1024px) {
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .quick-category.active::before { content: none; display: none; }
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .quick-category.active { box-shadow: inset 3px 0 0 var(--ft-primary) !important; } /* !important: search-layout.css sets box-shadow: none !important on every chip */
}

/* R8-05: phone product list. Rows were split by a 5px band in the page grey
   (bundle), which cut the white list into loose slabs. One hairline between
   rows, as in the desktop table and the account order list. */
@media (max-width: 719px) {
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row { border-bottom: 1px solid var(--ft-divider); }
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table tr.b2b-row:last-child { border-bottom: 0; }
    /* The model line wraps under the SKU here; its 2px inset put it out of line. */
    html body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-main .b2b-table .b2b-prod-meta > :is(.b2b-badge, .b2b-sku) + .b2b-prod-models { padding-left: 0; }
}

/* Catalogue quantity stepper and "in cart" state (owner, 19 Nov 2026; b2b-ordering.js). */
html body:not(:has(.admin-shell)) [data-product-row][data-product-id] .b2b-order-controls {
    display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: nowrap;
}
html body:not(:has(.admin-shell)) [data-product-row][data-product-id] .b2b-order-controls .b2b-qty-stepper {
    display: inline-flex; align-items: stretch; flex: 0 0 auto; height: 40px; box-sizing: border-box;
    border: 1.5px solid #cfd6e0; border-radius: 10px; background: #fff; overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
html body:not(:has(.admin-shell)) [data-product-row][data-product-id] .b2b-order-controls .b2b-qty-stepper:focus-within {
    border-color: var(--primary, #2f6fdf); box-shadow: 0 0 0 3px rgba(47, 111, 223, .15);
}
html body:not(:has(.admin-shell)) [data-product-row][data-product-id] .b2b-order-controls .b2b-qty-stepper .b2b-qty-step {
    flex: 0 0 30px; width: 30px; min-width: 30px; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0;
    background: #f4f6f9; color: #1d2633; font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease;
}
html body:not(:has(.admin-shell)) [data-product-row][data-product-id] .b2b-order-controls .b2b-qty-stepper .b2b-qty-step:hover:not(:disabled) { background: #e7ecf3; }
html body:not(:has(.admin-shell)) [data-product-row][data-product-id] .b2b-order-controls .b2b-qty-stepper .b2b-qty-step:active:not(:disabled) { background: #dbe2ec; }
html body:not(:has(.admin-shell)) [data-product-row][data-product-id] .b2b-order-controls .b2b-qty-stepper .b2b-qty-step:disabled { color: #b8c0cc; cursor: default; }
html body:not(:has(.admin-shell)) [data-product-row][data-product-id] .b2b-order-controls .b2b-qty-stepper .b2b-qty-step:focus-visible { outline: 2px solid var(--primary, #2f6fdf); outline-offset: -2px; }
html body:not(:has(.admin-shell)) [data-product-row][data-product-id] .b2b-order-controls .b2b-qty-stepper input.b2b-qty-input {
    flex: 0 0 40px; width: 40px; min-width: 40px; max-width: 48px; height: 100%; margin: 0; padding: 0;
    border: 0; border-radius: 0; box-shadow: none; outline: none; background: #fff;
    text-align: center; font-size: 15px; font-weight: 600; color: #1d2633; -moz-appearance: textfield; appearance: textfield;
}
html body:not(:has(.admin-shell)) [data-product-row][data-product-id] .b2b-qty-stepper input.b2b-qty-input::-webkit-outer-spin-button,
html body:not(:has(.admin-shell)) [data-product-row][data-product-id] .b2b-qty-stepper input.b2b-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Add button: cart icon; green with a check mark once the product is in the cart. */
html body:not(:has(.admin-shell)) [data-product-row][data-product-id] .b2b-order-controls .b2b-add-btn .b2b-in-cart-icon { display: none; }
html body:not(:has(.admin-shell)) [data-product-row][data-product-id] .b2b-order-controls .b2b-add-btn.in-cart {
    background: #16a34a; color: #fff; cursor: default; opacity: 1; box-shadow: none;
}
html body:not(:has(.admin-shell)) [data-product-row][data-product-id] .b2b-order-controls .b2b-add-btn.in-cart .b2b-add-icon { display: none; }
html body:not(:has(.admin-shell)) [data-product-row][data-product-id] .b2b-order-controls .b2b-add-btn.in-cart .b2b-in-cart-icon { display: block; }
html body:not(:has(.admin-shell)) [data-product-row][data-product-id].is-in-cart .b2b-order-controls .b2b-qty-stepper { border-color: #86d0a0; }

/* Keyboard focus in the sideways-scrolling category strip: the strip clips anything outside it, so the
   focus ring of a category pill lost its top and bottom. Draw it just inside the pill instead (20 Nov 2026). */
html body:not(:has(.admin-shell)) .quick-categories .quick-category:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: -3px;
}
