.products.bbr-category-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: clamp(32px,3.4vw,54px) clamp(16px,1.9vw,30px);
    align-items: start;
}
.bbr-category-grid .bbr-category-tile { position: relative; min-width: 0; width: 100%; }
.bbr-category-tile .product-card-thumb {
    display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: #262626;
}
.bbr-category-tile .product-card-thumb img {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.bbr-category-tile .tile-alternate { opacity: 0; transition: opacity .22s ease; }
@media (hover: hover) and (pointer: fine) {
    .bbr-category-tile:hover .tile-alternate.is-ready,
    .bbr-category-tile:focus-within .tile-alternate.is-ready { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .bbr-category-tile .tile-alternate { transition: none; } }
.bbr-category-tile .tile-badges {
    position: absolute; left: 10px; top: 10px; right: 10px; z-index: 1; display: flex;
    flex-wrap: wrap; align-items: flex-start; gap: 4px; pointer-events: none;
}
.bbr-category-tile .tile-badge { font: 10px/1.2 AcromBold,sans-serif; padding: 5px 8px; text-transform: uppercase; letter-spacing: .055em; }
.bbr-category-grid .bbr-category-tile .product-card-info {
    display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline;
    gap: 4px 12px; padding-top: 13px; margin: 0; contain: none;
}
.bbr-category-tile .product-card-info h2 { margin: 0; line-height: 1.2; min-width: 0; }
.bbr-category-tile .product-card-info .product-card-name {
    font: clamp(16px,1.45vw,21px)/1.2 AcromBold,sans-serif; letter-spacing: .022em;
    text-transform: uppercase; overflow-wrap: anywhere; color: inherit; background: transparent;
}
.bbr-category-tile .product-card-name::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.bbr-category-tile .product-card-name:focus-visible::after { outline: 2px solid currentColor; outline-offset: 4px; }
.bbr-category-grid .bbr-category-tile .product-card-price {
    grid-area: auto; display: flex; align-items: baseline; justify-self: end; justify-content: flex-end;
    flex-wrap: wrap; gap: 3px 8px; margin: 0; width: auto; font-variant-numeric: tabular-nums;
}
.bbr-category-tile .tile-price { font: clamp(15px,1.3vw,19px)/1.4 AcromBold,sans-serif; white-space: nowrap; }
.bbr-category-tile .price-old { margin: 0; color: #b5b5b5; font: 13px/1.4 Acrom,sans-serif; white-space: nowrap; }
.bbr-category-tile .tile-terms,
.bbr-category-grid .bbr-category-tile .product-card-sizes,
.bbr-category-grid .bbr-category-tile .product-card-fitting {
    grid-area: auto; grid-column: 1 / -1; text-align: left; margin: 0;
    color: #c9c9c9; font: 13px/1.45 Acrom,sans-serif;
}
.bbr-category-tile .tile-terms { justify-self: end; }
.bbr-category-grid .bbr-category-tile .product-card-sizes,
.bbr-category-grid .bbr-category-tile .product-card-fitting { margin-top: 3px; }
.bbr-category-tile .product-card-sizes strong { font-family: AcromBold,sans-serif; color: #f3f3f3; }
@media (max-width: 900px) {
    .products.bbr-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
    .products.bbr-category-grid { grid-template-columns: minmax(0,1fr); padding-inline: 14px; }
}
@media (max-width: 650px) {
    .products.bbr-category-grid { gap: 30px 12px; }
    .bbr-category-grid .bbr-category-tile .product-card-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 10px; }
    .bbr-category-tile .product-card-info .product-card-name, .bbr-category-tile .tile-price { font-size: 15px; }
    .bbr-category-grid .bbr-category-tile .product-card-price { justify-content: flex-start; gap: 4px 6px; }
    .bbr-category-tile .tile-terms, .bbr-category-tile .price-old, .bbr-category-grid .bbr-category-tile .product-card-sizes,
    .bbr-category-grid .bbr-category-tile .product-card-fitting { align-self: flex-start; font-size: 12px; }
    .bbr-category-tile .tile-badges { left: 6px; top: 6px; right: 4px; gap: 3px; }
    .bbr-category-tile .tile-badge { font-size: 9px; padding: 4px 5px; letter-spacing: .015em; }
}

@media (max-width: 767px) {
    :root {
        --bbr-mobile-catalog-header: 5rem;
        --bbr-category-bar-height: max(44px, 2.5rem);
    }
    .products.bbr-category-grid { isolation: isolate; }
    .products-container { padding-top: calc(var(--bbr-mobile-catalog-header) + var(--bbr-category-bar-height) + .5rem); }

    #column-left .categories-opener {
        top: var(--bbr-mobile-catalog-header);
        left: 0;
        height: var(--bbr-category-bar-height);
        z-index: 98;
        background: #1c1c1c;
        border-bottom: 1px solid #4a4a4a;
    }
    #column-left .categories-opener > div { display: inline-flex; align-items: center; gap: 10px; }
    #column-left .categories-opener > div::after {
        content: "";
        width: 8px;
        height: 8px;
        border: solid currentColor;
        border-width: 0 2px 2px 0;
        transform: translateY(-2px) rotate(45deg);
    }
    #column-left .categories-opener.toggle > div::after { transform: translateY(2px) rotate(225deg); }

    #column-left .categories-wrapper {
        top: calc(var(--bbr-mobile-catalog-header) + var(--bbr-category-bar-height));
        height: calc(100vh - var(--bbr-mobile-catalog-header) - var(--bbr-category-bar-height));
        height: calc(100dvh - var(--bbr-mobile-catalog-header) - var(--bbr-category-bar-height));
        padding-top: 1.25rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        z-index: 97;
    }
}
