/* Hero Banner Styles – uses theme vars: --hero-min-height, --hero-radius, --mv3-primary, --hero-show-arrows, --hero-show-indicators */

.hero-banner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: var(--hero-radius, 12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-banner-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.hero-banner-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: relative;
}

.hero-banner-slide.active {
    opacity: 1;
}

/* Text + Image Layout */
.hero-banner-slide[data-layout="text_image"] {
    padding: 4rem 0;
    min-height: var(--hero-min-height, 400px);
}

.hero-banner-section .row .col-lg-6:first-child {
    max-width: 36rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--mv3-text-muted, #64748b);
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-product-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-cta-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.625rem;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
    background-color: var(--mv3-primary, #f59e0b);
    color: #fff;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Full Image Layout */
.hero-full-image {
    position: relative;
    min-height: var(--hero-min-height, 400px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

.hero-content.text-left {
    text-align: left;
}

.hero-content.text-center {
    text-align: center;
}

.hero-content.text-right {
    text-align: right;
}

/* Slider Controls – visibility from theme vars */
.hero-slider-prev,
.hero-slider-next {
    opacity: var(--hero-show-arrows, 1);
    pointer-events: var(--hero-arrows-pointer, auto);
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-slider-btn:hover {
    background: var(--mv3-primary, rgba(255, 255, 255, 1));
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-prev {
    left: 20px;
}

.hero-slider-next {
    right: 20px;
}

.hero-slider-btn i {
    font-size: 1.25rem;
    color: #212529;
}

/* Slider Indicators – visibility from theme vars */
.hero-slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    opacity: var(--hero-show-indicators, 1);
    pointer-events: var(--hero-indicators-pointer, auto);
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.hero-indicator:hover {
    transform: scale(1.2);
}

.hero-indicator.active {
    background: var(--mv3-primary, rgba(255, 255, 255, 0.9));
    border-color: var(--mv3-primary, rgba(255, 255, 255, 1));
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .hero-banner-slide[data-layout="text_image"] {
        padding: 2rem 0;
    }
    
    .hero-full-image {
        min-height: var(--hero-min-height, 400px);
    }
    
    .hero-slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-banner-slide[data-layout="text_image"] {
        padding: 1.5rem 0;
    }
    
    .hero-full-image {
        min-height: min(var(--hero-min-height, 400px), 300px);
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-slider-btn {
        width: 35px;
        height: 35px;
    }
    
    .hero-slider-prev {
        left: 10px;
    }
    
    .hero-slider-next {
        right: 10px;
    }
    
    .hero-slider-indicators {
        bottom: 10px;
    }
    
    .hero-indicator {
        width: 10px;
        height: 10px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-banner-slide.active {
    animation: fadeIn 0.5s ease-in-out;
}

/* RTL: swap prev/next positions so previous is on the right */
[dir="rtl"] .hero-slider-prev {
    left: auto;
    right: 20px;
}

[dir="rtl"] .hero-slider-next {
    right: auto;
    left: 20px;
}

@media (max-width: 767px) {
    [dir="rtl"] .hero-slider-prev {
        right: 10px;
    }
    [dir="rtl"] .hero-slider-next {
        left: 10px;
    }
}
