/**
 * Home hero carousel — plain CSS so aspect/dots work even when Tailwind
 * utilities are missing from the built bundle (e.g. classes only in PHP strings).
 */

/*
 * Never crop banner art: wide slides (e.g. 3:1) with object-cover + a taller
 * mobile frame cut off left/right text ("GAMING CHAIR"). Show the full image.
 */
[data-hero-carousel] [data-carousel-slide] > img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
}

/* Dots sit near the bottom of the slide (short banners need a smaller offset). */
.hero-carousel-dots-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.75rem;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0.25rem;
    pointer-events: none;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .hero-carousel-dots-wrap {
        bottom: 1rem;
    }
}

@media (min-width: 768px) {
    .hero-carousel-dots-wrap {
        bottom: 1.25rem;
    }
}

.hero-carousel-dots-wrap.hero-carousel-dots-wrap--overlay {
    bottom: 6.5rem;
}

@media (min-width: 640px) {
    .hero-carousel-dots-wrap.hero-carousel-dots-wrap--overlay {
        bottom: 7.5rem;
    }
}

@media (min-width: 768px) {
    .hero-carousel-dots-wrap.hero-carousel-dots-wrap--overlay {
        bottom: 8.5rem;
    }
}

.hero-carousel-dots-wrap .hero-carousel-dots-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    pointer-events: auto;
}

.hero-carousel-dots-wrap .hero-carousel-dot {
    box-sizing: border-box;
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    flex-shrink: 0;
}

.hero-carousel-dots-wrap .hero-carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.hero-carousel-dots-wrap .hero-carousel-dot[aria-current='true'] {
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Mobile Chat now bar: keep page CTAs (e.g. Shop Now) above the fixed bar */
@media (max-width: 639px) {
    body:has(.sf-mobile-chat-bar) #main {
        padding-bottom: 5.75rem;
    }
}
