/* Homepage presentation only. The complete catalogue remains in each category. */
.bs-home-swipe-hint { display: none; }
.bs-home-categories {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
    padding: 20px 0 0;
}
.bs-home-categories > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 68px;
    padding: 10px;
    border-radius: 14px;
    background: #f8f2eb;
    color: #655449;
}
.bs-home-categories > a:hover,
.bs-home-categories > a:focus-visible { background: #f2e5d7; color: #46382f; z-index: 2; }
.bs-home-categories svg { display: block; width: 48px; height: 48px; flex-shrink: 0; }
.bs-home-categories .bs-category-accent { stroke: var(--bs-red, #bc2639); }
.bs-home-categories .bs-category-badge { fill: #fffaf4; stroke: var(--bs-red, #bc2639); }
.bs-home-category-name {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 160px;
    padding: 7px 10px;
    border-radius: 7px;
    background: #46382f;
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    pointer-events: none;
    visibility: hidden;
}
.bs-home-categories > a:first-child .bs-home-category-name { left: 0; transform: none; }
.bs-home-categories > a:last-child .bs-home-category-name { left: auto; right: 0; transform: none; }
.bs-home-categories > a:focus-visible .bs-home-category-name { visibility: visible; }
@media (hover: hover) {
    .bs-home-categories > a:hover .bs-home-category-name { visibility: visible; }
}
.bs-home .bs-promo-carousel { position: relative; display: grid; min-width: 0; }
.bs-home .bs-promo-carousel > .bs-promo { grid-area: 1 / 1; padding-bottom: 52px; }
.bs-home .bs-promo-carousel:last-child > .bs-promo { background: #fff1ed; }
.bs-home .bs-promo-carousel .bs-promo h2 { height: 3.6em; }
.bs-home .bs-promo-carousel > .bs-rotation-toggle {
    left: 14px;
    bottom: 2px;
    min-height: 44px!important;
    padding: 4px 8px!important;
}
.bs-home .bs-promo-carousel:has(> .bs-promo:only-child) > .bs-promo { padding-bottom: 22px; }

@media (max-width: 760px) {
    .bs-home-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 14px; }
    .bs-home-categories > a { min-height: 60px; padding: 8px; border-radius: 12px; }
    .bs-home-categories svg { width: 44px; height: 44px; }
    .bs-home-categories > a:nth-child(4n+1) .bs-home-category-name { left: 0; right: auto; transform: none; }
    .bs-home-categories > a:nth-child(4n) .bs-home-category-name { left: auto; right: 0; transform: none; }
    .bs-home .bs-home-products .bs-product-grid > .bs-product:nth-child(n+3) {
        display: none;
    }

    .bs-home .bs-home-products .bs-section-heading {
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-start;
    }
    .bs-home .bs-home-products .bs-section-heading > div { flex: 1 1 100%; }
    .bs-home .bs-home-products .bs-section-heading > a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        max-width: none;
        padding: 8px 12px;
        border: 1px solid currentColor;
        border-radius: 8px;
        font-size: 13px;
        line-height: 1.4;
    }

    .bs-home .bs-package-suggestions {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 88%;
        gap: 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        padding: 3px 3px 12px;
        scrollbar-width: thin;
        scrollbar-color: #ae3038 #efe7df;
    }
    .bs-home .bs-package-suggestion {
        min-width: 0;
        padding: 16px;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
    }
    .bs-home .bs-package-suggestion > button { margin-top: auto; }
    .bs-home .bs-package-pictures img { height: 100px; }
    .bs-home:has(.bs-package-suggestions) .bs-home-swipe-hint {
        display: block;
        margin: 8px 0 20px;
        color: #66544c;
        font-size: 12px;
        line-height: 1.6;
    }
}
