/* ═══════════════════════════════════════════════════════════════
   SupplySolution — Product Listing Page (PLP)
   Industrial B2B / Marketplace catalogue grid
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   RESTYLE 2026-07 — matches cart / RFQ-cart design
   Discovery: PLP template ALREADY emits .ss-card / .ss-plp classes
   (not legacy .products-grid .product-item). Original component
   CSS below is live, not inert as previously assumed.
   Rules in this section only fill palette gaps on the surrounding
   Magento chrome (category description, breadcrumbs, filter-current)
   that had no rules at all.
   Sentinel: rwc-plp-slice1-sentinel
   =============================================================== */

/* ── Slice 2: chrome palette baseline ─────────────────────────── */

/* Category description (Magento renders <div class="category-description">
   with the CMS-editable copy under the H1). Was inheriting body color
   with no line-height/tone control. */
.category-description {
    color: var(--text-muted);
    line-height: var(--leading-loose);
    font-size: var(--text-md);
    max-width: 78ch;
    margin-bottom: var(--space-6);
}

/* Breadcrumbs — sits above the page title on every listing page. */
.breadcrumbs {
    color: var(--text-faint);
    font-size: var(--text-sm);
}
.breadcrumbs a,
.breadcrumbs a:visited {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.breadcrumbs .item.home a {
    color: var(--text-faint);
}

/* Active-filter chip strip ("Now Shopping By") — Magento renders
   .filter-current > ol > li.item with a label + value + remove link. */
.filter-current .block-subtitle,
.sidebar .filter-current .block-subtitle {
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}
.filter-current .items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: 0;
    list-style: none;
    margin: 0 0 var(--space-3);
}
.filter-current .item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px 8px 4px 10px;
    background: var(--bg-card-dim);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--text-primary);
}
.filter-current .filter-label {
    color: var(--text-faint);
    font-weight: var(--weight-semibold);
    margin-right: 2px;
}
.filter-current .action.remove {
    color: var(--text-faint);
    text-decoration: none;
    margin-left: 2px;
    line-height: 1;
}
.filter-current .action.remove:hover {
    color: var(--danger);
}

/* "Clear All" reset action */
.block-actions.filter-actions .action.clear {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 0;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.block-actions.filter-actions .action.clear:hover {
    color: var(--danger);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ── Grid ─────────────────────────────────────────────────────── */
.ss-plp {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 24px 0 40px;
}
@media (max-width: 1200px) { .ss-plp { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .ss-plp { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px)  { .ss-plp { grid-template-columns: 1fr; } }

/* List view */
.ss-plp--list {
    grid-template-columns: 1fr;
    gap: 12px;
}

/* ── Card ─────────────────────────────────────────────────────── */
.ss-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
    position: relative;
}
.ss-card:hover {
    border-color: var(--border-input);
    box-shadow: var(--shadow-md);
}

/* List mode card */
.ss-plp--list .ss-card {
    flex-direction: row;
    align-items: stretch;
}

/* ── Image ────────────────────────────────────────────────────── */
.ss-card__img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-card-dim);
    flex-shrink: 0;
}
/* Blank theme sets padding-bottom aspect-ratio trick and position:absolute on the image.
   These resets are scoped to our card wrapper so specificity wins without !important. */
.ss-card__img-wrap img,
.ss-card__img-wrap .product-image-container,
.ss-card__img-wrap .product-image-wrapper {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    outline: none;
}
.ss-card__img-wrap .product-image-wrapper {
    display: block;
    overflow: hidden;
}
.ss-card__img-wrap .product-image-photo {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
    outline: none;
}
.ss-card__img-wrap img {
    object-fit: contain;
    padding: 12px;
    transition: transform .3s ease;
    border: none;
    outline: none;
    box-shadow: none;
}
.ss-card:hover .ss-card__img-wrap img { transform: scale(1.04); }

.ss-plp--list .ss-card__img-wrap {
    aspect-ratio: auto;
    width: 180px;
    min-height: 160px;
    border-right: 1px solid var(--ss-border);
}
@media (max-width: 600px) { .ss-plp--list .ss-card__img-wrap { width: 120px; } }

/* ── Meta row (SKU + stock) ───────────────────────────────────── */
.ss-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

/* ── Stock indicator (inline in body, no absolute positioning) ── */
.ss-card__stock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--ss-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ss-card__stock--in  { color: var(--success); }
.ss-card__stock--out { color: var(--ss-red); }
.ss-card__stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ss-card__stock--in  .ss-card__stock-dot { background: var(--success); }
.ss-card__stock--out .ss-card__stock-dot { background: var(--danger); }

/* ── Body ─────────────────────────────────────────────────────── */
.ss-card__body {
    padding: 16px 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Meta row (stock indicator only, currently) — top-align, small tone */
.ss-card__meta {
    min-height: 14px;
    margin-bottom: 2px;
}

.ss-card__sku {
    font-family: var(--ss-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-faint);
    letter-spacing: .4px;
    text-transform: uppercase;
    margin: 0;
}

.ss-card__name {
    font-family: var(--ss-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ss-plp--list .ss-card__name { -webkit-line-clamp: 3; font-size: 15px; }

.ss-card__name-link,
.ss-card__name-link:visited {
    color: var(--text-primary);
    text-decoration: none;
}
.ss-card__name-link:hover { color: var(--ss-blue); }

.ss-card__brand {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0;
}

/* ── Price ────────────────────────────────────────────────────── */
.ss-card__price {
    margin-top: auto;
    padding-top: 10px;
}
.ss-card__price .price-box { margin: 0; }

/* Hide the accessibility "Regular Price" label on simple products,
   but SHOW "As low as" on configurable/tier products (Magento wraps
   those in <span class="normal-price">). */
.ss-card__price .price-label { display: none; }
.ss-card__price .normal-price .price-label {
    display: block;
    font-family: var(--ss-font);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

.ss-card__price .price {
    font-family: var(--ss-mono);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.5px;
}
.ss-card__price .old-price .price {
    font-size: 13px;
    color: var(--ss-ink-3);
    text-decoration: line-through;
    font-weight: 500;
}
.ss-card__price .special-price .price { color: var(--ss-red); }
.ss-card__price .price-final_price    { display: inline-block; }

/* Description (list view only) */
.ss-card__desc {
    font-size: 13px;
    color: var(--text-faint);
    line-height: 1.6;
    margin: 4px 0 0;
}

/* ── Actions ──────────────────────────────────────────────────── */
.ss-card__actions {
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.ss-plp--list .ss-card__actions {
    padding: 14px 16px;
    justify-content: flex-end;
    min-width: 160px;
    flex-shrink: 0;
    border-left: 1px solid var(--border-divider);
}

.ss-card__form { display: flex; }

.ss-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    border-radius: 8px;
    font-family: var(--ss-font);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
/* Add-to-cart PRIMARY CTA — navy #1a2543, matches cart Proceed-to-Checkout
   button. Hardcoded navy (not per-store accent) for design-system consistency
   across cart / RFQ / PLP primary actions.

   !important needed to beat legacy-bridge.css .action.tocart rules
   (background var(--accent) !important + border-radius 0 !important). */
.ss-card__btn--cart,
.ss-card__btn--cart.action.tocart.primary {
    background: #1a2543 !important;
    background-color: #1a2543 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    line-height: 1;
    text-transform: uppercase !important;
    letter-spacing: 0.06em;
    font-size: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(26, 37, 67, 0.15) !important;
}
.ss-card__btn--cart:hover:not(:disabled),
.ss-card__btn--cart.action.tocart.primary:hover:not(:disabled) {
    background: #263462 !important;
    background-color: #263462 !important;
    box-shadow: 0 2px 6px rgba(26, 37, 67, 0.25) !important;
}
.ss-card__btn--cart:disabled,
.ss-card__btn--cart.action.tocart.primary:disabled {
    background: #1a2543 !important;
    background-color: #1a2543 !important;
    opacity: .55;
    cursor: not-allowed;
}

/* Nuke the ::before cart-icon glyph injected by legacy-bridge.css
   (`.action.tocart::before` mask-image cart). Template already renders
   its own <svg> cart icon inside .ss-card__btn--cart, so the ::before
   glyph renders as a duplicate. Same nuke pattern as pdp-buy-pane.css. */
.ss-card__btn--cart::before,
.ss-card__btn--cart.action.tocart::before,
.ss-card__btn--cart.action.tocart.primary::before {
    content: none !important;
    display: none !important;
    background-image: none !important;
    -webkit-mask-image: none !important;
            mask-image: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}
.ss-card__btn--view {
    background: var(--bg-card-dim);
    color: var(--text-muted);
    border: 1.5px solid var(--border-card);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ss-card__btn--view:hover {
    background: #ffffff;
    border-color: #1a2543;
    color: #1a2543;
}
.ss-card__btn--full { padding: 9px 14px; font-size: 13px; font-weight: 700; }

/* ── Toolbar ──────────────────────────────────────────────────── */
.toolbar.toolbar-products {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    font-family: var(--ss-font);
}

/* Amount / count */
.toolbar-amount {
    font-size: 13px;
    color: var(--text-faint);
    font-weight: 500;
    margin-right: auto;
}
.toolbar-amount .toolbar-number { font-weight: 700; color: var(--text-primary); }

/* Sorter */
.toolbar-sorter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.toolbar-sorter .sorter-label {
    color: var(--text-faint);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.toolbar-sorter select,
.sorter-options {
    padding: 6px 10px;
    border: 1.5px solid var(--ss-border);
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--ss-font);
    color: var(--text-muted);
    background: var(--ss-white);
    outline: none;
    cursor: pointer;
    transition: border-color .15s;
}
.toolbar-sorter select:focus,
.sorter-options:focus {
    border-color: #1a2543;
    box-shadow: 0 0 0 3px rgba(26, 37, 67, 0.08);
}

/* View mode toggle — Blank theme uses float and font-size:0 on these elements.
   float:none and display:flex need !important to override Blank's floated layout. */
.modes {
    display: flex !important;
    gap: 4px;
    border: 1.5px solid var(--ss-border);
    border-radius: 8px;
    overflow: hidden;
    padding: 2px;
    background: var(--bg-card-dim);
}
.modes-mode {
    display: flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    width: 36px;
    height: 32px;
    border: 0 !important;
    border-radius: 6px !important;
    color: var(--text-muted) !important;
    text-decoration: none;
    padding: 0;
    transition: background .15s, color .15s;
    font-size: 0 !important;
    background: transparent;
}
.modes-mode::before {
    font-size: 22px !important;
    line-height: 1 !important;
    font-family: 'icons-blank-theme' !important;
    color: inherit !important;
    display: inline-block !important;
    vertical-align: middle !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    /* icons-blank-theme glyphs have asymmetric bearings (empty pixels
       on the left side of the character cell). Shift left to visually
       center within the toggle button. */
    transform: translateX(-2px);
    -webkit-font-smoothing: antialiased;
}
.modes-mode:hover,
.modes-mode.active,
.modes-mode:hover::before,
.modes-mode.active::before {
    color: #ffffff !important;
}
.modes-mode:hover,
.modes-mode.active {
    background: #1a2543 !important;
    border-color: transparent !important;
}
.mode-grid::before { content: '\e60d' !important; }
.mode-list::before { content: '\e60b' !important; }

/* Limiter (per page) */
.toolbar-products .limiter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.limiter-label {
    color: var(--text-faint);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.limiter-options {
    padding: 6px 10px;
    border: 1.5px solid var(--ss-border);
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--ss-font);
    color: var(--text-muted);
    background: var(--ss-white);
    outline: none;
    cursor: pointer;
}
.limiter-options:focus {
    border-color: #1a2543;
    box-shadow: 0 0 0 3px rgba(26, 37, 67, 0.08);
}
.limiter-text { color: var(--text-faint); font-size: 12px; }

/* ── Toolbar — tablet + mobile ────────────────────────────────── */
@media (max-width: 1023px) {
    .toolbar.toolbar-products {
        padding:   8px 10px;
        gap:       6px;
        flex-wrap: nowrap;
        border-radius: 8px;
    }

    /* Hide verbose / wordy elements — display:none needs !important to override Magento show rules */
    .toolbar-amount,
    .toolbar-products .limiter,
    .toolbar-sorter .sorter-label,
    .toolbar-sorter .sorter-action,
    .modes-label { display: none !important; }

    /* Modes toggle — compact */
    .modes { flex-shrink: 0; padding: 1px; }
    .modes-mode {
        width:  34px;
        height: 30px;
    }
    .modes-mode::before { font-size: 15px !important; }

    /* Sorter takes all remaining space */
    .toolbar-sorter { flex: 1 1 auto; margin: 0; }
    .toolbar-sorter select,
    .sorter-options {
        width:     100%;
        padding:   7px 8px;
        font-size: 13px;
    }
}

/* ── Product cards — mobile ────────────────────────────────────── */
@media (max-width: 767px) {

    /* Grid: 2 columns between 481–767px */
    .ss-plp { grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 24px; }

    /* Card body: tighter padding + smaller text */
    .ss-card__body { padding: 8px 10px 6px; gap: 3px; }
    .ss-card__sku  { font-size: 9px; }
    .ss-card__name { font-size: 11.5px; -webkit-line-clamp: 2; }
    .ss-card__brand { font-size: 9.5px; }

    /* Price */
    .ss-card__price .price { font-size: 14px; }

    /* Actions */
    .ss-card__actions { padding: 0 8px 8px; gap: 5px; }
    .ss-card__btn {
        padding:   7px 8px;
        font-size: 11px;
        gap:       4px;
        border-radius: 6px;
    }
    .ss-card__btn--view { font-size: 10px; padding: 5px 8px; }

    /* List view image */
    .ss-plp--list .ss-card__img-wrap { width: 90px; min-height: 90px; }
    .ss-plp--list .ss-card__name     { font-size: 12px; }
    .ss-plp--list .ss-card__actions  { min-width: 110px; padding: 10px; }
}

/* ── Single column below 400px ─────────────────────────────────── */
@media (max-width: 400px) {
    .ss-plp { grid-template-columns: 1fr; gap: 10px; }
}

/* ── Pagination ───────────────────────────────────────────────── */
/* ── Bottom pager wrapper ─────────────────────────────────────── */
.ss-plp-pager {
    display: flex;
    justify-content: center;
    padding: 10px 20px;
    margin-top: 8px;
    background: var(--ss-white);
    border: 1px solid var(--ss-border);
    border-radius: 8px;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .06);
}

/* ── Pagination — full override scoped to category pages ──────────
   .catalog-category-view body class (3-class specificity) beats Magento's
   2-class selectors without needing !important on most properties.
   Exceptions kept with !important: font-size and letter-spacing where Blank
   uses the font-size:0 whitespace trick with its own !important, and
   display/float overrides where Blank uses inline-block layout. */
.catalog-category-view .pages {
    display: flex;
    justify-content: center;
    margin: 0;
}
.catalog-category-view .pages-label { display: none !important; }

/* Blank theme sets font-size:0 and letter-spacing:-1em on .items to kill
   whitespace between inline-block children — override requires !important */
.catalog-category-view .pages .items {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px !important;
    letter-spacing: normal !important;
    white-space: normal;
}
.catalog-category-view .pages .item {
    font-size: 14px;
    line-height: 1;
    letter-spacing: normal !important;
    margin: 0;
    display: inline-flex !important;
    align-items: center;
}

/* Page number links and current page */
.catalog-category-view .pages .item > a.page,
.catalog-category-view .pages .item > strong.page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-family: var(--ss-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.catalog-category-view .pages .item > a.page { color: var(--ss-blue); cursor: pointer; }
.catalog-category-view .pages .item > a.page:visited { color: var(--ss-blue); }
.catalog-category-view .pages .item > a.page:hover { background: var(--accent-soft); text-decoration: none; }
.catalog-category-view .pages .item > a.page .label,
.catalog-category-view .pages .item > strong.page .label { display: none; }
.catalog-category-view .pages .item.current > strong.page {
    color: var(--text-primary);
    font-weight: 700;
    background: var(--border-divider);
    cursor: default;
}

/* Prev / Next — Blank theme renders these as inline-block with icon font.
   display:inline-flex needs !important to override Blank's inline-block.
   background and border need !important because Blank sets button backgrounds. */
.catalog-category-view .pages .action.previous,
.catalog-category-view .pages .action.next {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 12px;
    font-family: var(--ss-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--ss-ink-2);
    text-decoration: none;
    background: none !important;
    border: 1px solid var(--ss-border);
    border-radius: 6px;
    cursor: pointer;
    transition: color .15s, background .15s, border-color .15s;
    box-shadow: none !important;
}
.catalog-category-view .pages .action.previous:hover,
.catalog-category-view .pages .action.next:hover {
    color: var(--ss-blue);
    background: var(--accent-soft) !important;
    border-color: var(--ss-blue);
    text-decoration: none;
}
/* CSS chevron arrows — no font dependency, renders correctly on all devices */
.catalog-category-view .pages .action.previous::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    border-right: none;
    border-bottom: none;
    transform: rotate(-45deg) translateY(1px);
    margin-right: 4px;
    flex-shrink: 0;
    align-self: center;
    background: none;
}
.catalog-category-view .pages .action.next::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-left: none;
    border-bottom: none;
    transform: rotate(45deg) translateY(1px);
    margin-left: 4px;
    flex-shrink: 0;
    align-self: center;
    background: none;
}

/* ── Empty state ──────────────────────────────────────────────── */
.ss-plp-empty {
    text-align: center;
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.ss-plp-empty__title {
    font-family: var(--ss-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.ss-plp-empty__sub {
    font-size: 1.4rem;
    color: var(--text-faint);
    margin: 0;
}

/* ── Category hero title ──────────────────────────────────────── */
.catalog-category-view .page-title-wrapper {
    margin: 0 0 var(--space-2);
}
.catalog-category-view .page-title-wrapper .page-title {
    font-family: var(--ss-font);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.4px;
    margin: 0;
    line-height: 1.15;
}
.catalog-category-view .page-title-wrapper .page-title .base {
    color: inherit;
}

/* Category view container (holds description) — give it room to breathe
   before the toolbar + product grid start. */
.catalog-category-view .category-view {
    margin: 0 0 var(--space-6);
}

/* ── Layered navigation sidebar ───────────────────────────────── */
/* Wrap the whole filter block in a card panel to match toolbar/product-card
   language. Palette touch-up only — no rebuild (that's the AJAX layered
   nav module, parked until post-v2-launch). */
.sidebar.sidebar-main .block.filter {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 10px 12px 8px;
    margin-bottom: var(--space-4);
}
.sidebar.sidebar-main .block.filter > .block-title {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-divider);
}

.filter-title strong {
    font-family: var(--ss-font);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-primary);
}
.filter-options-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
    border-bottom: 2px solid var(--border-divider);
    padding-bottom: 8px;
    margin-bottom: 10px;
}
/* Magento sets overflow:hidden on filter items — need !important to allow swatch overflow */
.filter-options-item {
    border-bottom: 1px solid var(--border-divider);
    padding-bottom: 14px;
    margin-bottom: 6px;
    overflow: visible !important;
}
.filter-options-content {
    overflow: visible !important;
    padding-bottom: 4px;
}
.swatch-attribute-options {
    padding-bottom: 6px;
    overflow: visible !important;
}
.swatch-option {
    height: auto;
    min-height: 28px;
    line-height: 26px;
    overflow: visible !important;
    padding: 0 8px;
}
.filter-options-content a:not(.swatch-option-link-layered),
.filter-options-content .item a {
    color: var(--text-muted);
    font-size: 1.3rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
}
.filter-options-content a:hover { color: #1a2543; font-weight: 600; }
.filter-count-label { color: var(--text-faint); font-size: 1.1rem; font-family: var(--font-mono); }

/* ── Empty state ──────────────────────────────────────────────── */
/* Wraps both the .ss-plp-empty custom markup (if template uses it) and
   the default Magento .message.info.empty (fallback). */
.ss-plp-empty,
.catalog-category-view .message.info.empty {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-10) var(--space-6);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-md);
    line-height: var(--leading-loose);
    margin: var(--space-4) 0;
}
.ss-plp-empty h2,
.ss-plp-empty__title {
    font-family: var(--ss-font);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-2);
}

/* Back link on empty state */
.ss-plp-empty__back {
    display: inline-block;
    margin-top: var(--space-4);
    color: #1a2543;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--ss-font);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.ss-plp-empty__back:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
