:root {
    --gs-text:   #111827;
    --gs-muted:  #6b7280;
    --gs-line:   #e5e7eb;
    --gs-line-2: #d1d5db;
    --gs-link:   #1d4ed8;
    --gs-green:  #16a34a;
    --gs-amber:  #d97706;
    --gs-red:    #dc2626;
}

/* ---------- Toolbar ---------- */
.toolbar-products {
    background: none;
    border: 0;
    border-bottom: 1px solid var(--gs-line);
    padding: 0 0 14px;
    margin: 0 0 28px;
}
.products.wrapper ~ .toolbar-products {
    border-bottom: 0;
    border-top: 1px solid var(--gs-line);
    padding: 20px 0 0;
    margin: 32px 0 0;
}
.toolbar-products .modes { display: none !important; }
.toolbar-products .toolbar-sorter .sorter-label,
.toolbar-products .field.limiter .label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gs-text);
    text-transform: none;
}
.toolbar-products select,
.toolbar-products .sorter-options,
.toolbar-products .limiter-options {
    height: 34px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--gs-line-2);
    border-radius: 3px;
    background: #fff;
    box-shadow: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--gs-text);
    cursor: pointer;
    appearance: auto;
}
.toolbar-products select:hover,
.toolbar-products .sorter-options:hover,
.toolbar-products .limiter-options:hover { border-color: var(--gs-text); }

.toolbar-products .sorter-action { color: var(--gs-muted); margin-left: 6px; }

/* ---------- Grid ---------- */
.products-grid .products.list.items,
.products-grid .product-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.products-grid .product-item {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}
.products-grid .product-item-info {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: auto;
    background: #fff;
    border: 1px solid var(--gs-line);
    border-radius: 2px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.products-grid .product-item-info:hover {
    border-color: var(--gs-line-2);
    box-shadow: 0 2px 12px rgba(17, 24, 39, .07);
}

/* ---------- Image ---------- */
.products-grid .product-item-photo { display: block; padding: 30px 30px 10px; }
.products-grid .product-image-container { width: 100% !important; }
.products-grid .product-image-wrapper { padding-bottom: 100% !important; }
.products-grid .product-image-photo { object-fit: contain; mix-blend-mode: multiply; }

/* ---------- Details ---------- */
.products-grid .product-item-details {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px 22px 20px;
    text-align: left;
}
.products-grid .product-item-name { margin: 0 0 8px; }
.products-grid .product-item-link {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--gs-text);
    text-decoration: none;
}
.products-grid .product-item-link:hover { color: var(--gs-link); }
.products-grid .product-item-brand {
    font-size: 13px;
    font-weight: 400;
    color: var(--gs-muted);
    margin: 0 0 4px;
}
.products-grid .product-item-details .product-sku,
.products-grid .product-item-details .sku {
    font-size: 13px;
    color: var(--gs-muted);
    margin: 0 0 10px;
}

/* ---------- Price ---------- */
.products-grid .price-box { margin: 0 0 10px; }
.products-grid .price-box .price,
.products-grid .product-item-details .dealer-cost,
.products-grid .product-item-details .reg-map {
    font-size: 14px;
    font-weight: 600;
    color: var(--gs-text);
}
.products-grid .price-box .price-label,
.products-grid .product-item-details .price-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--gs-muted);
}
.products-grid .product-item-details .login-to-view,
.products-grid .product-item-details .brand-request {
    display: inline-block;
    font-size: 14px;
    color: var(--gs-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Stock ---------- */
.products-grid .product-item-details .stock,
.products-grid .product-item-details .stock-status,
.products-grid .product-item-details .remaining-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--gs-text) !important;
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--gs-line);
}
.products-grid .product-item-details .stock:before,
.products-grid .product-item-details .stock-status:before,
.products-grid .product-item-details .remaining-stock:before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gs-green);
}
.products-grid .product-item-details .stock.unavailable:before,
.products-grid .product-item-details .out-of-stock:before { background: var(--gs-red); }
.products-grid .product-item-details .low-stock:before { background: var(--gs-amber); }
.products-grid .product-item-details .bstock-note {
    font-size: 12.5px;
    color: var(--gs-muted);
    margin-top: 6px;
}

/* ---------- Actions ---------- */
.products-grid .product-item-inner { margin-top: auto; padding-top: 14px; }
.products-grid .product-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.products-grid .product-item-actions .field.qty > .label,
.products-grid .product-item-actions .qty-label { display: none; }
.products-grid .product-item-actions input.qty,
.products-grid .product-item-actions .field.qty input {
    width: 54px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--gs-line);
    border-radius: 2px;
    box-shadow: none;
    text-align: center;
    font-size: 14px;
    color: var(--gs-text);
}
.products-grid .product-item-actions .action.tocart,
.products-grid .product-item-actions button.tocart {
    flex: 1 1 auto;
    height: 42px;
    padding: 0 12px;
    background: var(--gs-text);
    border: 1px solid var(--gs-text);
    border-radius: 2px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: none;
    transition: background .15s ease;
}
.products-grid .product-item-actions .action.tocart:hover { background: #000; border-color: #000; }
.products-grid .product-item-actions .action.tocart i,
.products-grid .product-item-actions .action.tocart .icon { display: none; }

.products-grid .product-item .actions-secondary,
.products-grid .product-item .action.towishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--gs-line);
    border-radius: 50%;
    color: var(--gs-muted);
    opacity: 0;
    transition: opacity .18s ease, color .18s ease;
}
.products-grid .product-item-info:hover .actions-secondary,
.products-grid .product-item-info:hover .action.towishlist { opacity: 1; }
.products-grid .product-item .action.towishlist:hover { color: var(--gs-red); }
.products-grid .product-item .actions-secondary > .action { background: none; border: 0; padding: 0; }

/* ---------- Layered nav (desktop + mobile) ---------- */
#layered-filter-block { border: 0; }
#layered-filter-block .block-title.filter-title { display: none; }

#layered-filter-block .filter-options-item {
    border: 0;
    border-bottom: 1px solid var(--gs-line);
    margin: 0;
    padding: 0;
    background: none;
}
#layered-filter-block .filter-options-title {
    position: relative;
    margin: 0;
    padding: 18px 26px 18px 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--gs-text);
    background: none;
    border: 0;
    cursor: pointer;
}
#layered-filter-block .filter-options-title:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 4px;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 1.6px solid var(--gs-text);
    border-bottom: 1.6px solid var(--gs-text);
    transform: rotate(45deg);
    transition: transform .2s ease;
    background: none;
    font: 0/0 a;
}
#layered-filter-block .filter-options-item.active .filter-options-title:after {
    transform: rotate(-135deg);
    margin-top: -2px;
}

#layered-filter-block .filter-options-content {
    padding: 0 0 18px;
    margin: 0;
    background: none;
    border: 0;
}
#layered-filter-block .filter-options-content .items { margin: 0; padding: 0; list-style: none; }
#layered-filter-block .filter-options-content .item { margin: 0 0 18px; padding: 0; }
#layered-filter-block .filter-options-content .item:last-child { margin-bottom: 0; }

#layered-filter-block .filter-options-content a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    font-size: 14px;
    line-height: 1.35;
    color: var(--gs-text);
    text-decoration: none;
}

/* Fake box only for rows Bss doesn't give a real input */
#layered-filter-block .filter-options-content a:not(.bss_checkbox):not(.bss_radio):before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1.5px solid #9ca3af;
    border-radius: 3px;
    background: #fff;
    transition: border-color .15s ease, background .15s ease;
}
#layered-filter-block .filter-options-content a:not(.bss_checkbox):not(.bss_radio):hover:before {
    border-color: var(--gs-text);
}

/* Bss's real checkbox */
#layered-filter-block .filter-options-content input.layer-input-filter {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--gs-text);
    cursor: pointer;
}
#layered-filter-block .filter-options-content input.layer-input-filter[disabled] {
    opacity: .45;
    cursor: default;
}

#layered-filter-block .filter-options-content .count {
    margin-left: auto;
    padding-right: 14px;
    color: var(--gs-muted);
    font-size: 14px;
}
#layered-filter-block .filter-options-content .count:before,
#layered-filter-block .filter-options-content .count:after { content: "" !important; }
#layered-filter-block .filter-options-content .filter-count-label { display: none; }

#layered-filter-block .filter-current .item { display: inline-flex; margin: 0 6px 8px 0; }
#layered-filter-block .filter-current .item .filter-value {
    padding: 5px 10px;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 13px;
}

/* One "Show more" only — Bss's button hidden, Porto's link kept */
#layered-filter-block .filter-options-content #bss_show_more { display: none !important; }
#layered-filter-block .filter-options-content .items .gs-hidden { display: none; }
#layered-filter-block .filter-options-content .items.gs-expanded .gs-hidden { display: list-item; }
#layered-filter-block .gs-show-more {
    margin: 12px 0 0;
    padding: 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--gs-text);
    font-size: 14px;
    font-weight: 500;
    color: var(--gs-text);
    cursor: pointer;
}
#layered-filter-block .gs-show-more:hover { color: var(--gs-link); border-color: var(--gs-link); }

@media (max-width: 767px) {
    #layered-filter-block .filter-options-content .item { margin: 0 0 20px; }
    #layered-filter-block .filter-options-content a { font-size: 15px; }
    #layered-filter-block .filter-options-content input.layer-input-filter {
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
    }
    .toolbar-products select,
    .toolbar-products .sorter-options,
    .toolbar-products .limiter-options { height: 38px; font-size: 15px; }
}
/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .products-grid .products.list.items,
    .products-grid .product-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .products-grid .products.list.items,
    .products-grid .product-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
    .products-grid .product-item-photo { padding: 18px 18px 6px; }
    .products-grid .product-item-details { padding: 12px 16px 16px; }
}
@media (max-width: 479px) {
    .products-grid .products.list.items,
    .products-grid .product-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
    .products-grid .product-item-link { font-size: 14px; }
    .products-grid .product-item-actions { flex-wrap: wrap; }
    .products-grid .product-item-actions .action.tocart { flex: 1 1 100%; }
}


/* Pull counts in from the right edge */
#layered-filter-block .filter-options-content .count { padding-right: 28px; }

/* Pull counts in from the right edge */
#layered-filter-block .filter-options-content .count { padding-right: 28px; }
/* Bss wraps input + label in <b> on some filters */
#layered-filter-block .filter-options-content b > input.layer-input-filter {
    margin-right: 14px;
    vertical-align: middle;
}
#layered-filter-block .filter-options-content a.bss_checkbox > b,
#layered-filter-block .filter-options-content a.bss_radio > b {
    font-weight: 400;
}

/* ---------- Card consistency ---------- */
.products-grid .product-item-info { display: flex; flex-direction: column; height: 100%; }
.products-grid .product-item-details { display: flex; flex-direction: column; flex: 1 1 auto; }

.products-grid .product-item-details .price-box.price-final_price { margin: 0 0 8px; }
.products-grid .product-item-details .qty-left { margin: 0 0 10px; }

/* Pin actions to the bottom — matches both 'button' and 'buttom' spellings */
.products-grid .product-item-details .product-details,
.products-grid .product-item-details div[class*="brand"][class*="request"] {
    margin-top: auto;
    padding-top: 12px;
}

.products-grid .product-item-details button.custombutton {
    width: 100%;
    height: 42px;
    background: var(--gs-link);
    border: 0;
    border-radius: 2px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}
/* Mobile: let Qty + Add to Cart wrap inside narrow cards */
@media (max-width: 767px) {
    .products-grid .bulk_purchase_table_simple,
    .products-grid .bulk_purchase_table_simple tbody { display: block; width: 100%; }
    .products-grid .bulk_purchase_table_simple tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    .products-grid .bulk_purchase_table_simple td:last-child { flex: 1 1 100%; }
    .products-grid .bulk_purchase_table_simple button.bulk_purch_btn {
        width: 100%;
        white-space: nowrap;
    }
}
/* Clean grid: MAP, MSRP and B-Stock move to product page / Quick View */
.products-grid .product-item-details .min-advertised-price-box,
.products-grid .product-item-details .msrp-price-box,
.products-grid .product-item-details .openbox_purchase { display: none !important; }

/* Brand Request on category cards: below the stock line, like Add to Cart */
.products-grid .product-item-details > .custom.button.email.brand.request {
    float: none !important;
    clear: both !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    margin: auto 0 0 !important;
    padding-top: 12px !important;
}
.products-grid .product-item-details > .custom.button.email.brand.request button.custombutton {
    width: 100% !important;
    height: 42px !important;
    margin: 0 !important;
}

/* ---------- Promo price: one line + saving badge on image ---------- */
.products-grid .price-box.price-final_price:has(.special-prices-box) {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    row-gap: 2px;
}
.products-grid .price-final_price .special-prices-box .specialprice-label,
.products-grid .price-final_price .special-prices-box .special-price-value {
    color: #ea580c;
    font-size: 14px;
    font-weight: 700;
}
.products-grid .price-final_price:has(.special-prices-box) > .price-box { margin: 0 !important; }
.products-grid .price-final_price:has(.special-prices-box) > .price-box .price {
    color: #9ca3af;
    font-weight: 400;
    text-decoration: line-through;
}
.products-grid .price-final_price:has(.special-prices-box) > .price-box .price::before,
.products-grid .price-final_price:has(.special-prices-box) > .price-box .regular-price::before {
    content: none !important;
    display: none !important;
}

.products-grid .product-item-details .discount-percentage {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 3;
    margin: 0 !important;
    transform: none !important;
}
.products-grid .product-item-details .product-discount-percentage {
    display: inline-block;
    padding: 4px 10px;
    background: #ea580c;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

/* Promo fix: badge anchors to the card; promo + struck price on one line */
.products-grid .product-item-info > .product-item-details { position: static !important; }

.products-grid .price-final_price:has(.special-prices-box) > * {
    flex: 0 0 auto !important;
    width: auto !important;
    float: none !important;
    border: 0 !important;
    padding: 0 !important;
}

/* Consistent cards: one divider, tight price -> stock gap */
.products-grid .price-final_price > .price-box {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.products-grid .product-item-details .price-box.price-final_price { margin: 0 0 6px !important; }
.products-grid .product-item-details .qty-left { margin: 0 0 8px !important; }

/* Standard price output (dealer-cost-only cards): match the custom price cards */
.products-grid .price-final_price > .price-container {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
.products-grid .price-final_price > .price-container .price-wrapper {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}
.products-grid .price-final_price > .price-container .price::before { margin-right: 4px; }

/* Promo line: remove leftover margins so it matches the plain cards */
.products-grid .price-final_price:has(.special-prices-box) .special-prices-box,
.products-grid .price-final_price:has(.special-prices-box) .special-price,
.products-grid .price-final_price:has(.special-prices-box) .regular-price {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

/* Category filter: indent parent rows from the sidebar edge */
#layered-filter-block .filter-options-content .bss-items-cat > .item { padding-left: 8px; }

/* All filters: indent rows from the sidebar edge */
#layered-filter-block .filter-options-content .items > .item { padding-left: 8px; }

/* Sidebar: titles and Show more line up with the indented rows */
#layered-filter-block .filter-options-title { padding-left: 8px !important; }
#layered-filter-block .gs-show-more { margin-left: 8px; }
#layered-filter-block .gs-show-more:hover,
#layered-filter-block .gs-show-more:focus {
    color: var(--gs-text);
    border-color: var(--gs-text);
    opacity: .65;
}

/* Show more: hover uses the Add to Cart blue */
#layered-filter-block .gs-show-more:hover,
#layered-filter-block .gs-show-more:focus {
    color: #0088cc;
    border-color: #0088cc;
    opacity: 1;
}

/* Show more hover: blue text only, no button background */
#layered-filter-block .gs-show-more:hover,
#layered-filter-block .gs-show-more:focus,
#layered-filter-block .gs-show-more:active {
    background: none !important;
    box-shadow: none !important;
}

/* B-Stock as an image badge, so card heights stay equal */
.products-grid .product-item .product-item-details .openbox_purchase {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 3;
    display: inline-flex !important;
    width: auto !important;
    max-width: calc(100% - 70px);
    height: auto !important;
    margin: 0 !important;
    padding: 4px 10px !important;
    background: #166534 !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}
.products-grid .product-item-info:has(.discount-percentage) .product-item-details .openbox_purchase {
    top: 42px !important;
}
.products-grid .product-item .openbox_purchase .openbox-price {
    display: inline !important;
    color: #fff !important;
    font-weight: 700;
    white-space: nowrap;
}
.products-grid .product-item .openbox_purchase .openbox-link,
.products-grid .product-item .openbox_purchase .openbox-remainingqty { display: none !important; }

/* Special Order Only: breathing room under the stock line */
.products-grid .product-item-details .special.order { margin: 2px 0 8px; font-size: 12px; line-height: 1.3; }

/* Special Order Only: cancel the old 18px upward shift from custom.css */
.products-grid .product-item-details .special.order {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    float: none !important;
    width: auto !important;
    margin: 2px 0 8px !important;
    color: #ff0000;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

/* ---------- Live parity fixes ---------- */

/* Stock line: cancel old custom.css offsets (bottom 30px / left 30px / 90px) */
.products-grid .product-item-details .qty-left {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    float: none !important;
    transform: none !important;
}

/* Badges: stack under the "New" label instead of overlapping it */
.products-grid .product-item-info:has(.new-lbl) .product-item-details .discount-percentage { top: 64px !important; }
.products-grid .product-item-info:has(.new-lbl) .product-item-details .openbox_purchase { top: 64px !important; }
.products-grid .product-item-info:has(.new-lbl):has(.discount-percentage) .product-item-details .openbox_purchase { top: 94px !important; }

/* Favourite (heart): round button under the eye icon, shown on hover */
.products-grid .product-item .actions-secondary {
    top: 54px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.products-grid .product-item .actions-secondary .action.tocompare { display: none !important; }
.products-grid .product-item .add.to.wish.list {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
}
.products-grid .product-item .add.to.wish.list a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 4px rgba(17, 24, 39, .08);
    color: #111827 !important;
    font-size: 15px !important;
    line-height: 1 !important;
}
.products-grid .product-item .add.to.wish.list a:hover,
.products-grid .product-item .add.to.wish.list a:focus {
    background: #111827 !important;
    border-color: #111827 !important;
    color: #fff !important;
}
.products-grid .product-item .add.to.wish.list a i { color: inherit !important; }
@media (hover: none) {
    .products-grid .product-item .actions-secondary { opacity: 1 !important; }
}

/* Stock line: show once, under the price, never inside the Qty row */
.products-grid .bulk_purchase_table_simple .qty-left { display: none !important; }
.products-grid .product-item-details > .qty-left {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    margin: 0 0 8px !important;
    order: 0 !important;
}

/* category grid: uniform 2-line short description + Learn more */
.product-item-desc-wrap {
    margin: 4px 0 6px;
    min-height: 3.9em;
}
.product-item-short-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
    font-size: 13px;
    color: #777;
}
.product-item-desc-more {
    display: inline-block;
    margin-top: 2px;
    font-size: 12px;
    text-decoration: underline;
}
.product-item-desc-more:hover {
    text-decoration: none;
}

/* force 2-line clamp — override earlier display rules */
.product-item .product-item-desc-wrap {
    margin: 4px 0 6px;
    min-height: 3.9em;
}
.product-item .product-item-short-description {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    line-height: 1.4 !important;
    max-height: 2.8em !important;
    height: auto !important;
    font-size: 13px;
    color: #777;
}

/* beat the inline .products-grid .product-item-details > * rule */
.products-grid .product-item-details > .product-item-desc-wrap {
    min-height: 3.9em !important;
    flex: 0 0 auto !important;
    margin: 4px 0 6px;
}
.products-grid .product-item-details .product-item-short-description {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.4 !important;
    max-height: 2.8em !important;
    font-size: 13px;
    color: #777;
}

/* match description font to the rest of the card */
.products-grid .product-item-details .product-item-short-description,
.products-grid .product-item-details .product-item-desc-more {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
}

/* don't apply the category grid layout to owl carousels */
.products-grid .products.list.items.owl-carousel,
.products-grid .product-items.owl-carousel {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

/* category filter hierarchy */
.bss-items-cat li.item b { font-weight: 700; color: #222; }
.bss-items-cat li.item a { color: #666; }
.gs-cat-depth { display: inline-block; }
.gs-cat-depth-1 { width: 22px; }
.gs-cat-depth-2 { width: 44px; }
.gs-cat-depth-3 { width: 66px; }
.gs-cat-depth-4 { width: 56px; }
.bss-items-cat li.item a:has(.gs-cat-depth-2) { font-size: 13px; color: #888; }
.bss-items-cat li.item a:has(.gs-cat-depth-3) { font-size: 12px; color: #999; }

/* category filter hierarchy — stronger contrast */
.bss-items-cat li.item a {
    display: flex !important;
    align-items: center;
}
/* level 1: top category */
.bss-items-cat li.item b {
    font-weight: 700 !important;
    color: #1a1a1a !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: .02em;
}
/* level 2 */
.bss-items-cat li.item a .gs-cat-depth-1 ~ * ,
.bss-items-cat li.item a:has(.gs-cat-depth-1) {
    font-weight: 600;
    color: #444 !important;
    font-size: 13px !important;
}
/* level 3 */
.bss-items-cat li.item a .gs-cat-depth-2 ~ *,
.bss-items-cat li.item a:has(.gs-cat-depth-2) {
    font-weight: 400;
    color: #999 !important;
    font-size: 12px !important;
}
/* guide lines so children visibly belong to a parent */
.gs-cat-depth-1 { border-left: 2px solid #e0e0e0; height: 1.5em; }
.gs-cat-depth-2 { border-left: 2px solid #ededed; height: 1.5em; }
