.home-category-cards {
    --home-columns: 6;
    --home-gap: 8px;
    min-width: 0;
}
.home-product-grid {
    display: grid;
    grid-template-columns: repeat(var(--home-columns), minmax(0, 1fr));
    gap: 30px var(--home-gap);
}
.home-product-grid > .a-col-pr { width: auto; min-width: 0; }
.home-category-cards .a-item_name { margin-top: 10px; line-height: 1.35; }
.home-category-cards .a-item_name a { font-weight: 500; }
.home-products-carousel { margin: 0 0 20px; }
.home-products-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; margin-left: auto; }

.home-products-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    margin: 0 0 16px;
}
.home-products-title,
.home-products-title > a:not(.home-products-more) { font-size: 24px; line-height: 1.25; }
.home-products-title .home-products-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid #e5e7ea;
    border-radius: 3px;
    background: #f4f5f6;
    color: #727780;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}
.home-products-more .bs-icon { width: 10px; height: 10px; }
.home-products-title .home-products-more:focus-visible { outline: 2px solid #737983; outline-offset: 2px; }
.home-products-title .home-products-more:active { background: #e4e7eb; transform: translateY(1px); }
@media (hover: hover) {
    .home-products-title .home-products-more:hover { background: #e9ecef; color: #464c55; text-decoration: none; }
}
@media (prefers-reduced-motion: no-preference) {
    .home-products-more { transition: background .18s ease, color .18s ease, transform .18s ease; }
    .home-products-more .bs-icon { transition: transform .18s ease; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .home-products-more:hover .bs-icon { transform: translateX(2px); }
}
@media (max-width: 1100px) {
    .home-category-cards { --home-columns: 3; }
}
@media (max-width: 850px) {
    .home-category-cards { --home-gap: 5px; }
    .home-product-grid { row-gap: 24px; }
    .home-products-title,
    .home-products-title > a:not(.home-products-more),
    .home-product-cards .rv-title { font-size: 20px; }
}

.home-promo {
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--promo-best-width, clamp(280px, 30%, 400px));
    gap: clamp(10px, 1.4vw, 20px);
    align-content: start;
}
.home-promo--solo { grid-template-columns: minmax(0, 820px); }
@media (min-width: 851px) {
    .home-promo--best-only { grid-template-columns: minmax(0, var(--promo-best-width, 400px)); }
    .home-promo--best-only .promo-best { height: clamp(280px, 33vw, 410px); }
}
.promo-banner, .promo-best { min-width: 0; position: relative; overflow: hidden; border-radius: 6px; }
.promo-banner { aspect-ratio: 2 / 1; background: #f3f4f6; align-self: start; }
.promo-track {
    display: flex;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.promo-banner .promo-track, .promo-banner a { height: 100%; display: flex; }
.promo-banner img { display: block; width: 100%; height: 100%; object-fit: contain; }
.promo-best {
    display: flex;
    flex-direction: column;
    min-height: 0;
    contain: size;
    border: 1px solid #dfe2e8;
    background: #fff;
}
.promo-best h2 { margin: 0; padding: 12px 14px 4px; font-size: 16px; line-height: 1.25; }
.promo-best .promo-track { flex: 1; min-height: 0; }
.promo-product {
    grid-template-rows: minmax(0,1fr) auto;
    align-content: stretch;
    margin: 0;
    padding: 4px 14px;
}
.promo-product .a-item_img { aspect-ratio: auto; height: 100%; }
.promo-product-copy { grid-row: 2; min-width: 0; }
.promo-product-copy small { display: block; margin-top: 6px; font-size: 12px; color: #616873; }
.promo-product-copy small + .a-item_b_menu { margin-top: 3px; }
.promo-product-copy > :is(.a-item_b_menu, .a-item_name) {
    position: relative;
    top: 6px;
}
.promo-pager { display: flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; }
.promo-banner .promo-pager { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); background: #171a23bf; border-radius: 20px; padding: 0 4px; color: #fff; }
.promo-best .promo-pager { margin: 0 auto; color: #545e70; }
.promo-pager button { display: grid; place-items: center; color: inherit; width: 24px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.promo-pager .promo-step { width: 32px; font-size: 22px; line-height: 1; }
.promo-position { min-width: 4ch; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.promo-dot::before { content: ''; width: 5px; height: 5px; border-radius: 8px; background: currentColor; opacity: .55; }
.promo-dot[aria-current="true"]::before { width: 16px; opacity: 1; }
.promo-pager button:focus-visible, .promo-track a:focus-visible { outline: 2px solid #2689ef; outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) {
    .promo-dot::before { transition: width .18s, opacity .18s; }
}
/* Reserve the left column only while the homepage catalogue is pinned open. */
@media (width > 1420px) {
    body:has(.home-promo) .a-colorNav.colorfix .col-main-left > .catalog-menu { display: block !important; animation: none; }
    body:has(.home-promo) .colorfix .catalog-menu > .nav_menu { visibility: visible; }
    .home-promo { --promo-best-width: 280px; margin-left: 260px; min-height: 410px; }
}
@media (max-width: 850px) {
    .home-promo { margin-bottom: 20px; grid-template-columns: minmax(0,1fr); gap: 10px; }
    .promo-best { contain: none; }
    .promo-best h2 { padding-right: 132px; }
    .promo-best .promo-pager { position: absolute; top: 6px; right: 8px; }
    .promo-product { grid-template: auto / 76px minmax(0,1fr); align-items: center; gap: 12px; padding: 4px 12px 10px; }
    .promo-product .a-item_img { height: 76px; }
    .promo-product-copy { grid-column: 2; grid-row: 1; }
}

.home-brands-track { gap: 10px; }
.home-brands-track > a {
    flex: 0 0 clamp(116px, 15vw, 172px);
    display: grid;
    place-items: center;
    height: 84px;
    padding: 14px;
    background: #fff;
    scroll-snap-align: start;
    color: #25272a;
    font-weight: 600;
}
.home-brands-track img { width: 100%; height: 52px; object-fit: contain; }
.home-brands-track a:hover, .home-brands-track a:focus-visible { background: #f4f6f8; }
.home-category-cards, .home-products-carousel, .home-product-cards[data-recently-viewed] { background-color: #fff; }
.home-brands-track > a { position: relative; overflow: hidden; border-radius: 6px; }
.home-brands-track > a::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(75, 82, 109, .06);
}
