/* ==========================================================================
   Swiper Styles (Hero & Category)
   ========================================================================== */

/* ----------------------------------------------------
   Hero Slider Styles
   ---------------------------------------------------- */
.hero-slider-container {
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.hero-banner-wrapper {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    background-color: transparent; 
    transform: translateZ(0); 
}

.swiper-hero {
    width: 100%;
    /* height: 100%; removed to allow autoHeight */
    border-radius: 20px;
}

.swiper-slide {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    background: #fff;
    backface-visibility: hidden;
    /* Flex for equal height slides in category slider mostly */
    display: flex; 
    height: auto;
}

.swiper-slide > * {
    width: 100%; /* Ensure content fills slide */
}

.swiper-slide img.__slide-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 250px; 
    border-radius: 20px;
}

/* Hero Nav Buttons */
.hero-slider-container .swiper-button-prev,
.hero-slider-container .swiper-button-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 20;
    opacity: 0; 
    transform: scale(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-container .swiper-button-prev::after,
.hero-slider-container .swiper-button-next::after {
    content: none !important;
}

.hero-banner-wrapper:hover .swiper-button-prev,
.hero-banner-wrapper:hover .swiper-button-next {
    opacity: 1;
    transform: scale(1);
}

.hero-slider-container .swiper-button-prev:hover,
.hero-slider-container .swiper-button-next:hover {
    background: #fff;
    color: var(--web-primary, #333);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-slider-container .swiper-button-prev { left: 20px; }
.hero-slider-container .swiper-button-next { right: 20px; }
[dir="rtl"] .hero-slider-container .swiper-button-prev { left: auto; right: 20px; }
[dir="rtl"] .hero-slider-container .swiper-button-next { right: auto; left: 20px; }

/* Hero Pagination */
.hero-slider-container .swiper-pagination {
    bottom: 20px !important;
    z-index: 20;
}
.hero-slider-container .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin: 0 6px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.hero-slider-container .swiper-pagination-bullet-active {
    width: 32px;
    border-radius: 6px;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.6);
}

/* ----------------------------------------------------
   Category Slider Styles
   ---------------------------------------------------- */
.category-slider-wrapper {
    position: relative;
    /* padding-bottom: 30px; Space for pagination if outside */
}

/* Category Nav Buttons */
.category-slider-nav {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--web-primary, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    margin-top: -20px;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.category-slider-nav:not(.swiper-button-disabled):hover {
    background: var(--web-primary, #333);
    color: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transform: scale(1.1);
}

.category-slider-nav.swiper-button-disabled {
    opacity: 0.5;
    cursor: default;
    box-shadow: none;
}

.category-slider-prev { left: -15px; }
.category-slider-next { right: -15px; }

/* RTL */
[dir="rtl"] .category-slider-prev { right: -15px; left: auto; }
[dir="rtl"] .category-slider-next { left: -15px; right: auto; }

/* Category Pagination (if used) */
.category-slider-wrapper .swiper-pagination {
    bottom: -5px;
}
.category-slider-wrapper .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}
.category-slider-wrapper .swiper-pagination-bullet-active {
    background: var(--web-primary, #333);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-slider-container .swiper-button-prev,
    .hero-slider-container .swiper-button-next {
        width: 36px;
        height: 36px;
        opacity: 1;
        background: rgba(0, 0, 0, 0.4);
    }
    .hero-slider-container .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px !important;
    }
    
    .category-slider-prev { left: 0; }
    .category-slider-next { right: 0; }
}
