/* Hero Slider Frontend Styles */
.wp-block-liquid-factor-hero-slider {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    transition: opacity 1s ease-in-out;
}

/* Navigation buttons hover effects */
.hero-slider-prev:hover,
.hero-slider-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Indicator animations */
.hero-slider-indicator {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-slider-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* Ensure full width */
.alignfull.wp-block-liquid-factor-hero-slider {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Hero slider button - override theme link color */
.wp-block-liquid-factor-hero-slider a {
    color: #ffffff !important;
}

.wp-block-liquid-factor-hero-slider a:hover {
    color: #ff6621 !important;
}

/* Mobile hero intro: product image fades/zooms in, then overlay text replaces it */
@keyframes heroProductReveal {
    0% {
        opacity: 0;
        scale: 0.8;
    }
    30% {
        opacity: 1;
        scale: 1;
    }
    70% {
        opacity: 1;
        scale: 1.2;
    }
    100% {
        opacity: 0;
        scale: 1.25;
        visibility: hidden;
    }
}

@keyframes heroOverlayFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 1023px) {
    /* Show and animate product image on mobile (overrides hidden) */
    .hero-slide[data-slide-index="0"] .hero-product-image {
        display: block !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        translate: -50% -50% !important;
        max-width: 70%;
        z-index: 25;
        animation: heroProductReveal 3s ease-out both;
    }

    /* Center the grid container on mobile (overrides justify-items-start) */
    .hero-slide .container.grid {
        justify-items: center !important;
    }

    /* Overlay text: hidden during delay via fill-mode backwards, fades in after product image */
    .hero-slide[data-slide-index="0"] .hero-overlay-text {
        animation: heroOverlayFadeIn 0.8s ease-out 2.5s both;
    }
}
