/* Tanishq-Style Banner Slider with Left/Right Preview Strips */

:root {
    /* Tanishq Color Palette */
    --tanishq-brown: #8B4513;        /* Rich Brown */
    --tanishq-gold: #D4AF37;         /* Gold */
    --tanishq-light-gold: #F4E4BC;   /* Light Gold */
    --tanishq-dark-brown: #5D2F00;   /* Dark Brown */
    --tanishq-cream: #F5F5DC;        /* Cream */
    --tanishq-white: #FFFFFF;        /* White */
    --tanishq-text-dark: #2C1810;    /* Dark Text */
    --tanishq-text-light: #FFFFFF;   /* Light Text */
    --tanishq-accent: #B8860B;       /* Dark Goldenrod */
}

/* Main Banner Section */
.banner-slider-section {
    background: var(--tanishq-white);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.banner-container {
    display: flex;
    width: 100%;
    height: 500px;
    position: relative;
}

/* Left Preview Strip */
.left-preview-strip {
    width: 80px;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.left-preview-strip .preview-images {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 5px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 100%;
    align-items: center;
}

.left-preview-strip .preview-images::-webkit-scrollbar {
    display: none;
}

/* Right Preview Strip */
.right-preview-strip {
    width: 80px;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.right-preview-strip .preview-images {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 5px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 100%;
    align-items: center;
}

.right-preview-strip .preview-images::-webkit-scrollbar {
    display: none;
}

/* Preview Items */
.preview-item {
    width: 70px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.6;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    z-index: 5;
}

.preview-item:hover,
.preview-item.active {
    opacity: 1;
    border-color: var(--tanishq-gold);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.preview-item.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--tanishq-gold);
    border-radius: 6px;
    pointer-events: none;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.preview-item:hover img {
    transform: scale(1.05);
}

/* Main Banner Slider */
.main-banner-slider {
    flex: 1;
    height: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.banner-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-swiper .swiper-wrapper {
    height: 100%;
}

.banner-slide {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    display: block;
}

.banner-image:hover {
    transform: scale(1.01);
}

/* Navigation */
.banner-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 20;
    pointer-events: none;
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(15px);
    border: 2px solid var(--tanishq-gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    opacity: 0.8;
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-prev:hover,
.banner-next:hover {
    background: var(--tanishq-gold);
    color: var(--tanishq-white);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.banner-prev i,
.banner-next i {
    font-size: 1.2rem;
    color: var(--tanishq-brown);
    transition: color 0.3s ease;
    font-weight: bold;
}

.banner-prev:hover i,
.banner-next:hover i {
    color: var(--tanishq-white);
}

/* Pagination */
.banner-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.banner-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.banner-pagination .swiper-pagination-bullet-active {
    background: var(--tanishq-gold);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .banner-container {
        height: 450px;
    }
    
    .left-preview-strip,
    .right-preview-strip {
        width: 70px;
    }
    
    .preview-item {
        width: 60px;
        height: 80px;
    }
    
    .banner-prev {
        left: 15px;
    }
    
    .banner-next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .banner-container {
        height: 350px;
        flex-direction: column;
    }
    
    .left-preview-strip,
    .right-preview-strip {
        width: 100%;
        height: 80px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    .right-preview-strip {
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        border-bottom: none;
    }
    
    .left-preview-strip .preview-images,
    .right-preview-strip .preview-images {
        flex-direction: row;
        padding: 10px 20px;
        overflow-x: auto;
        overflow-y: hidden;
        height: 100%;
        justify-content: center;
    }
    
    .preview-item {
        width: 60px;
        height: 50px;
    }
    
    .banner-prev,
    .banner-next {
        width: 40px;
        height: 40px;
    }
    
    .banner-prev {
        left: 10px;
    }
    
    .banner-next {
        right: 10px;
    }
    
    .banner-pagination {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 300px;
    }
    
    .preview-item {
        width: 45px;
        height: 30px;
    }
    
    .left-preview-strip .preview-images,
    .right-preview-strip .preview-images {
        gap: 4px;
        padding: 8px 15px;
    }
    
    .banner-prev,
    .banner-next {
        width: 35px;
        height: 35px;
    }
    
    .banner-prev {
        left: 8px;
    }
    
    .banner-next {
        right: 8px;
    }
    
    .banner-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* Animation Classes */
.banner-fade-in {
    animation: bannerFadeIn 0.6s ease-out;
}

@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover Effects */
.banner-slide:hover .banner-image {
    transform: scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Focus States */
.banner-prev:focus,
.banner-next:focus {
    outline: 2px solid var(--tanishq-gold);
    outline-offset: 2px;
}

.preview-item:focus {
    outline: 2px solid var(--tanishq-gold);
    outline-offset: 2px;
}

/* Loading States */
.banner-slide.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth Transitions */
.banner-container * {
    transition: all 0.3s ease;
}

/* Mobile Responsive - Hide Preview Strips and Pagination */
@media (max-width: 1199.98px) {
    /* Hide left and right preview strips on mobile */
    .left-preview-strip,
    .right-preview-strip {
        display: none !important;
    }
    
    /* Hide swiper pagination on mobile */
    .swiper-pagination,
    .banner-pagination,
    .swiper-pagination-clickable,
    .swiper-pagination-bullets,
    .swiper-pagination-horizontal {
        display: none !important;
    }
    
    /* Adjust banner container for mobile without preview strips */
    .banner-container {
        padding: 0;
        height: 250px; /* Reduced height for mobile */
        margin: 0;
    }
    
    /* Make banner slider full width on mobile */
    .main-banner-slider {
        width: 100%;
        height: 250px; /* Match container height */
        margin: 0;
    }
    
    /* Banner swiper mobile adjustments */
    .banner-swiper {
        height: 100%;
    }
    
    .banner-slide {
        height: 100%;
    }
    
    .banner-image {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* Adjust banner navigation for mobile */
    .banner-navigation {
        display: flex;
        justify-content: space-between;
        position: absolute;
        top: 50%;
        left: 10px;
        right: 10px;
        transform: translateY(-50%);
        z-index: 10;
    }
    
    .banner-prev,
    .banner-next {
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        transition: all 0.3s ease;
    }
    
    .banner-prev:hover,
    .banner-next:hover {
        background: rgba(0, 0, 0, 0.7);
        transform: scale(1.1);
    }
    
    /* Eliminate any unwanted spacing around banner */
    .banner-container * {
        margin: 0;
        padding: 0;
    }
    
    /* Ensure banner takes full available space */
    .banner-container {
        overflow: hidden;
    }
    
    /* Mobile-specific banner link adjustments */
    .banner-link {
        display: block;
        height: 100%;
        width: 100%;
    }
    
    /* Banner section mobile adjustments */
    .banner-slider-section {
        margin: 0;
        padding: 0;
    }
    
    /* Ensure no spacing issues on mobile */
    .banner-slider-section * {
        box-sizing: border-box;
    }
}

/* Extra small mobile devices */
@media (max-width: 575.98px) {
    .banner-container {
        height: 200px; /* Even smaller height for very small screens */
    }
    
    .main-banner-slider {
        height: 200px;
    }
    
    .banner-prev,
    .banner-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}