/* Hero Slider RTL & Responsive Fixes */

/* Pre-Slick: show only 1st slide, prevent stacking CLS */
.hero-slider-1:not(.slick-initialized) > :not(:first-child) {
    display: none !important;
}
.home-slide-cover {
    min-height: 538px;
}

.home-slider .single-hero-slider {
    min-height: 500px;
    background-position: center right;
    background-size: cover;
}

[dir="rtl"] .home-slider .single-hero-slider {
    background-position: center left;
}

/* Prevent content overflow on large screens */
.home-slider .slider-content {
    max-width: 600px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Large Desktop (1920px+) */
@media (min-width: 1920px) {
    .home-slider .slider-content {
        max-width: 700px;
    }
    
    .home-slider .single-hero-slider {
        min-height: 600px;
    }
}

/* Desktop (1400px - 1920px) */
@media (min-width: 1400px) and (max-width: 1919px) {
    .home-slider .slider-content {
        max-width: 550px;
    }
}

/* Medium Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .home-slider .slider-content {
        max-width: 500px;
    }
}

/* Tablet (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .home-slider .slider-content {
        max-width: 450px;
        left: 30px !important;
        right: 30px !important;
    }
    
    [dir="rtl"] .home-slider .slider-content {
        right: 30px !important;
        left: auto !important;
    }
    
    .home-slider .single-hero-slider {
        min-height: 450px;
    }
    .home-slide-cover {
        min-height: 450px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .home-slider .slider-content {
        max-width: calc(100% - 40px) !important;
        left: 20px !important;
        right: 20px !important;
        padding: 20px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 10px;
    }
    
    .home-slider .single-hero-slider {
        min-height: 400px;
    }
    .home-slide-cover {
        min-height: 400px;
    }
    
    .home-slider .slider-content h1 {
        font-size: 32px !important;
        margin-bottom: 20px !important;
    }
    
    .home-slider .slider-content p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    .home-slider .slider-content .btn {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
}

/* Extra Small Mobile (< 576px) */
@media (max-width: 575px) {
    .home-slider .slider-content h1 {
        font-size: 28px !important;
    }
    
    .home-slider .slider-content {
        max-width: calc(100% - 30px) !important;
        left: 15px !important;
        right: 15px !important;
    }
    
    .home-slider .single-hero-slider {
        min-height: 350px;
    }
    .home-slide-cover {
        min-height: 350px;
    }
}

/* Newsletter RTL Fix */
[dir="rtl"] .newsletter-inner {
    direction: rtl;
}

[dir="rtl"] .newsletter-inner .newsletter-content {
    text-align: right;
}

/* Product Card Image Fix */
.product-img-action-wrap {
    position: relative;
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Trust Signals Responsive */
@media (max-width: 991px) {
    .trust-signal-card {
        margin-bottom: 20px;
    }
}

/* Footer Responsive */
@media (max-width: 767px) {
    .newsletter-inner {
        padding: 30px 20px !important;
    }
    
    .newsletter-inner img {
        display: none;
    }
}
