/* Homepage specific styles for index.php */

/* Enhanced Banner slider - Mobile First */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 12px 20px 20px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    /* Calculate height for 16:9 aspect ratio based on width */
    /* Width: calc(100vw - 40px), Height: (100vw - 40px) * 9/16 */
    height: calc((100vw - 40px) * 0.5625);
    max-height: 400px; /* Limit max height on larger screens */
}

.banner-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.banner-slide.active {
    display: block;
}

/* Enhanced Banner System Styles */
.banner-slide-content {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    background-color: #f8f9fa; /* Light background for letterboxing */
}

.banner-slide-content.clickable-banner {
    cursor: pointer;
}

.banner-slide-content.clickable-banner:hover {
    transform: scale(1.02);
}

.banner-slide .banner-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Click Indicator Styles - HIDDEN as per user request */
.banner-click-indicator {
    display: none !important;
}

/* Banner Info Overlay - HIDDEN as per user request */
.banner-info-overlay {
    display: none !important;
}

/* Navigation Controls - HIDDEN as per user request */
.banner-nav-controls {
    display: none !important;
}

/* Clean Centered Dots - Like Rappi Style */
.banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 4;
    /* No background - clean dots only */
}

.banner-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0; /* Prevent dots from shrinking */
}

.banner-indicator.active {
    background-color: #00A7E1;
    width: 6px;
    height: 6px;
    /* No scaling to match the reference exactly */
}

.banner-indicator:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Loading States */
.banner-slide {
    transition: opacity 0.5s ease;
}

.banner-slide:not(.loaded) {
    opacity: 0.7;
}

.banner-slide.loaded {
    opacity: 1;
}

.banner-slide.error .banner-image {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0),
                linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* Fallback Banner Styles */
.fallback-banner .banner-info-overlay {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 167, 225, 0.8), rgba(0, 188, 212, 0.8));
}

.fallback-banner .banner-info-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .banner-click-indicator {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .banner-nav-controls {
        padding: 0 10px;
    }
    
    .banner-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .banner-nav-btn i {
        font-size: 0.8rem;
    }
    
    .banner-info-overlay {
        padding: 15px 12px 12px;
    }
    
    .banner-info-overlay h3 {
        font-size: 1.1rem;
    }
    
    .banner-info-overlay p {
        font-size: 0.8rem;
    }
    
    .banner-indicators {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .banner-indicator {
        width: 6px;
        height: 6px;
    }
    
    .banner-indicator.active {
        width: 10px;
        height: 10px;
        margin: -2px;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .banner-slide-content {
        background-size: cover;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .banner-slide-content,
    .banner-nav-btn,
    .banner-indicator,
    .banner-click-indicator {
        transition: none;
    }
    
    .banner-slide-content.clickable-banner:hover {
        transform: none;
    }
}

/* Focus States for Keyboard Navigation */
.banner-nav-btn:focus,
.banner-indicator:focus {
    outline: 2px solid #00A7E1;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .banner-nav-controls,
    .banner-indicators,
    .banner-click-indicator {
        display: none;
    }
}

/* Enhanced gradient overlay for better text readability */
.banner-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    pointer-events: none;
    z-index: 1;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px;
    color: white;
    z-index: 2;
}

.banner-content h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.banner-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Modern iOS-style indicators */
.banner-indicators {
    position: absolute;
    bottom: 14px;
    right: 18px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.banner-indicator {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background-color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-indicator.active {
    width: 16px;
    background-color: #00A7E1;
    box-shadow: 0 2px 4px rgba(0,167,225,0.4);
}

/* Enhanced Section titles - Mobile Optimized */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 28px 20px 16px;
    padding-bottom: 2px;
}

.section-title h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #1D1D1F;
    letter-spacing: -0.5px;
}

.section-title a {
    color: #00A7E1;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(0,167,225,0.08);
    transition: all 0.2s ease;
}

.section-title a:hover,
.section-title a:active {
    background: rgba(0,167,225,0.15);
    transform: scale(0.98);
}

/* Enhanced Categories - Mobile Touch Optimized */
.categories-row {
    display: flex;
    overflow-x: auto;
    padding: 8px 20px 20px 20px;
    margin-bottom: 12px;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
    flex-wrap: nowrap;
    position: relative;
}

/* Add fade effect on right edge to indicate more content */
.categories-row::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(248, 249, 250, 0.8));
    pointer-events: none;
    z-index: 1;
}

.categories-row::-webkit-scrollbar {
    display: none;
}

/* Enhanced Category Items - Mobile Touch Friendly */
.category-item {
    flex: 0 0 auto;
    width: 75px;
    min-width: 75px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.category-item:active {
    transform: scale(0.95);
}

.category-image {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.category-item:active .category-image img {
    transform: scale(1.05);
}

.category-name {
    font-size: 11px;
    color: #1D1D1F;
    text-align: center;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Productos estilo Rappi */
.products-row {
    display: flex;
    overflow-x: auto;
    padding: 5px 0;
    padding-left: 10px;
    margin-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-row::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 auto;
    width: 160px;
    margin-right: 12px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
}

.product-card a {
    text-decoration: none !important;
}

.current-price, .original-price {
    text-decoration: none !important;
}

/* Ensure all backgrounds are white */
:root {
    --background: white;
}

.product-add-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background-color: #4CAF50; /* Green background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    border: none;
    z-index: 10;
    cursor: pointer;
}

.discount-badge {
    position: absolute;
    top: 8px; /* Position relative to top of card */
    left: 10px;
    background-color: #FFD600; /* Yellow background */
    color: black;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 5;
}

.product-image {
    width: 100%;
    height: 180px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    flex-shrink: 0;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.product-card:active .product-image img {
    transform: scale(1.05);
}

/* Enhanced Product Info */
.product-info {
    padding: 12px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-volume {
    font-size: 0.75rem;
    color: #00A7E1;
    font-weight: 600;
    margin-bottom: 6px;
    background: rgba(0,167,225,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

/* Enhanced Product Name */
.product-name {
    font-size: 13px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 34px;
}

.product-pricing {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

/* Enhanced Pricing */
.current-price {
    font-weight: 700;
    font-size: 16px;
    color: #00A7E1;
    margin-bottom: 2px;
}

.original-price {
    text-decoration: line-through !important;
    color: #8E8E93;
    font-size: 12px;
    font-weight: 500;
}

/* Enhanced Promotional banner - Mobile First */
.promo-banner {
    background: linear-gradient(135deg, #00A7E1, #0086b3);
    border-radius: 20px;
    padding: 20px 18px;
    margin: 16px 12px;
    color: white;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0,167,225,0.2);
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    z-index: 0;
}

.promo-banner:active {
    transform: scale(0.98);
}

.promo-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    z-index: 1;
    position: relative;
}

.promo-content {
    flex: 1;
    z-index: 1;
    position: relative;
}

.promo-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.promo-text {
    font-size: 0.95rem;
    margin: 0;
    color: rgba(255,255,255,0.95);
    font-weight: 400;
    line-height: 1.3;
}

/* Minimal Info Section */
.minimal-info-section {
    margin: 20px 15px;
}

.minimal-info-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(0,167,225,0.04);
    border: 1px solid rgba(0,167,225,0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #1D1D1F;
    font-weight: 500;
    transition: all 0.2s ease;
}

.minimal-info-link:hover {
    background: rgba(0,167,225,0.08);
    border-color: rgba(0,167,225,0.2);
    color: #00A7E1;
}

.minimal-info-link i {
    color: #00A7E1;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.minimal-info-link:hover i {
    transform: translateX(3px);
}

/* Age verification */
.age-verification-banner {
    background-color: #F5F5F5;
    border-radius: 16px;
    padding: 16px;
    margin: 16px 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.age-icon {
    width: 38px;
    height: 38px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    color: #666;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.age-text {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

/* Payment logos section */
.payment-logos {
    margin: 30px 0;
    text-align: center;
}

.payment-logos h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.payment-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.payment-logo {
    height: 30px;
    max-width: 60px;
    object-fit: contain;
}

.secure-logos {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.secure-logo {
    height: 40px;
    max-width: 100px;
    object-fit: contain;
}

/* Loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Enhanced Search Results Container - Notch Compatible */
.search-results-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    /* Support for devices with notches */
    padding-top: env(safe-area-inset-top, 0px);
    padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
}

.search-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 10;
    /* Support for devices with notches - use env() first, fallback to variables */
    padding-top: calc(15px + env(safe-area-inset-top, 0px));
    padding-left: calc(15px + env(safe-area-inset-left, 0px));
    padding-right: calc(15px + env(safe-area-inset-right, 0px));
    padding-bottom: 15px;
    /* Fallback using CSS custom properties */
    padding-top: calc(15px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
    padding-left: calc(15px + var(--safe-area-inset-left, env(safe-area-inset-left, 0px)));
    padding-right: calc(15px + var(--safe-area-inset-right, env(safe-area-inset-right, 0px)));
}

.search-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-search-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 1.2rem;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-search-btn:hover,
.back-search-btn:focus {
    background-color: rgba(0, 0, 0, 0.05);
    outline: none;
}

.back-search-btn:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-results {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-results:focus {
    border-color: #00A7E1;
    box-shadow: 0 0 0 3px rgba(0, 167, 225, 0.1);
    background-color: white;
}

.clear-search-results-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    display: none;
    padding: 6px;
    border-radius: 50%;
    min-width: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.clear-search-results-btn.show {
    display: flex;
}

.clear-search-results-btn:hover,
.clear-search-results-btn:focus {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
    outline: none;
}

.clear-search-results-btn:active {
    background-color: rgba(0, 0, 0, 0.1);
}

#search-results-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Support for devices with notches - use env() first, fallback to variables */
    padding: 15px;
    padding-left: calc(15px + env(safe-area-inset-left, 0px));
    padding-right: calc(15px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    /* Fallback using CSS custom properties */
    padding-left: calc(15px + var(--safe-area-inset-left, env(safe-area-inset-left, 0px)));
    padding-right: calc(15px + var(--safe-area-inset-right, env(safe-area-inset-right, 0px)));
    padding-bottom: calc(15px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.search-results-header {
    margin-bottom: 15px;
}

.search-results-header h2 {
    font-size: 1.2rem;
    margin: 0 0 5px;
}

.search-results-header p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.search-loading p {
    margin-top: 15px;
    color: #666;
}

.search-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.search-empty i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.search-empty p {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.search-empty small {
    font-size: 0.9rem;
    color: #999;
}

/* Media queries */
@media (min-width: 768px) {
    .app-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .banner-slider {
        /* Adjust height calculation for tablets/desktop */
        height: calc((100vw - 40px) * 0.5625);
        max-height: 450px;
    }
    
    .payment-logos-container {
        justify-content: center;
    }
    
    .payment-logo {
        height: 35px;
        max-width: 70px;
    }
    
    .search-results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .payment-logo {
        height: 40px;
        max-width: 80px;
    }
    
    .search-results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .search-results-container {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        max-width: 1200px;
        height: 80vh;
        margin: 10vh auto;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        /* Override notch padding for desktop */
        padding-top: 0;
    }
    
    .search-header {
        /* Reset safe area padding for desktop */
        padding: 15px;
    }
    
    #search-results-content {
        /* Reset safe area padding for desktop */
        padding: 15px;
    }
}

/* Landscape Orientation Support for Notch Devices */
@media screen and (orientation: landscape) and (max-device-width: 1024px) {
    .search-results-container {
        /* Adjust for horizontal notches in landscape */
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
        padding-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
        padding-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
    }
    
    .search-header {
        /* Reduce top padding in landscape */
        padding-top: calc(8px + env(safe-area-inset-top, 0px));
        padding-top: calc(8px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
    }
}

/* iPhone X and newer specific adjustments */
@supports (padding: env(safe-area-inset-top)) {
    .search-results-container {
        /* Ensure proper background extension under status bar */
        background-color: white;
    }
    
    /* Create background extension for status bar area */
    .search-results-container::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: env(safe-area-inset-top, 0px);
        background-color: white;
        z-index: -1;
    }
}

/* Accessibility and keyboard navigation improvements */
.search-results-container {
    /* Ensure proper focus management */
    outline: none;
}

/* Focus management for search elements */
.back-search-btn:focus-visible,
.clear-search-results-btn:focus-visible,
.search-input-results:focus-visible {
    outline: 2px solid #00A7E1;
    outline-offset: 2px;
}

/* Device rotation handling */
@media screen and (orientation: portrait) {
    .search-results-container {
        /* Ensure proper handling when switching to portrait */
        padding-left: 0;
        padding-right: 0;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .search-input-results,
    .back-search-btn,
    .clear-search-results-btn {
        transition: none;
    }
    
    .search-results-container {
        transition: none;
    }
}

/* Toast animations for add to cart feedback */
@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.product-toast {
    animation: fadeInUp 0.3s ease forwards;
}

/* Banner Carousel Styles */
.banner-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.banner-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-carousel-slide.active {
    opacity: 1;
}

.banner-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.banner-single-image {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.banner-single-image .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Navigation Arrows */
.banner-carousel-prev,
.banner-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    z-index: 5;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.banner-carousel-prev {
    left: 10px;
}

.banner-carousel-next {
    right: 10px;
}

.banner-carousel-prev:hover,
.banner-carousel-next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.banner-carousel-prev:active,
.banner-carousel-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Carousel Dots */
.banner-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.banner-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.banner-carousel-dot.active {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.2);
}

.banner-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .banner-carousel-prev,
    .banner-carousel-next {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .banner-carousel-prev {
        left: 8px;
    }
    
    .banner-carousel-next {
        right: 8px;
    }
    
    .banner-carousel-dots {
        bottom: 12px;
    }
    
    .banner-carousel-dot {
        width: 6px;
        height: 6px;
    }
}

/* Hide navigation on very small screens to prevent clutter */
@media (max-width: 480px) {
    .banner-carousel-prev,
    .banner-carousel-next {
        display: none;
    }
}