/* Home collection sections use tighter vertical spacing than the shop. */
.home-category-section,
.home-featured-section,
.related-products {
    padding-block: 48px 54px;
}

.home-category-section .section-head,
.home-featured-section .section-head,
.related-products .section-head {
    margin-bottom: 26px;
}

@media (min-width: 961px) {
    .home-category-section .categories,
    .home-featured-section .product-grid,
    .related-products .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }

    .home-category-section .cat {
        height: clamp(260px, 27vw, 390px);
        padding-inline: clamp(16px, 2.2vw, 30px);
        overflow-wrap: anywhere;
    }

    .home-featured-section .product-picture.pimg,
    .related-products .product-picture.pimg {
        height: clamp(250px, 24vw, 360px);
    }
}

.hero-art.home-carousel {
    padding: 0;
}

.hero-carousel-slides,
.hero-carousel-slide,
.hero-carousel-product {
    position: absolute;
    inset: 0;
}

.hero-carousel-slide[hidden],
.hero-carousel-controls[hidden] {
    display: none;
}

.hero-arches {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    padding-inline: clamp(16px, 4vw, 40px);
}

.hero-carousel-product {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    gap: 10px;
    padding: 20px 20px 64px;
    text-decoration: none;
}

.hero-carousel-product:focus-visible {
    outline-offset: -4px;
}

.hero-carousel-product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-carousel-product > span {
    background: var(--bg);
    color: var(--text);
    border-radius: 12px;
    padding: 6px 12px;
    text-align: center;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.hero-carousel-controls {
    position: absolute;
    z-index: 2;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    border-radius: 999px;
    padding: 3px 5px;
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 3px 16px #102c2930;
}

.hero-carousel-controls button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.hero-carousel-controls button:hover {
    background: var(--tint);
}

.hero-carousel-controls .hero-carousel-dot {
    width: 26px;
}

.hero-carousel-dot span {
    width: 9px;
    height: 9px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.hero-carousel-dot[aria-current="true"] span {
    background: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-carousel-slide[data-carousel-enter] {
        animation: hero-carousel-in 420ms ease-out;
    }

    @keyframes hero-carousel-in {
        from { opacity: .3; }
        to { opacity: 1; }
    }
}
