 

    /* Consistent product image sizes */
    .men-thumb-item img {
        width: 100% !important;
        height: 250px !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .speioffer-agile img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .product-men {
        margin-bottom: 30px;
    }
    
    .men-pro-item {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .item-info-product {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .snipcart-details {
        margin-top: auto;
    }
    
    /* Price range slider fixes */
    #slider-range {
        background: #f0f0f0;
        height: 6px;
        border: none;
        border-radius: 3px;
    }
    
    .ui-slider-handle {
        background: #ff9800 !important;
        border: 2px solid #fff !important;
        border-radius: 50% !important;
        width: 20px !important;
        height: 20px !important;
        cursor: pointer !important;
    }
    
    .ui-slider-range {
        background: #fff !important;
    }
    
    #amount {
        background: transparent !important;
        border: none !important;
        color: #fff !important;
        font-weight: bold !important;
        text-align: center !important;
        margin-top: 10px !important;
    }
    
    /* Special offers slider fixes */
    #flexiselDemo1 {
        width: 100% !important;
    }
    
    .featured-section {
        overflow: hidden;
    }
    
    /* Loading spinner */
    .loading-spinner {
        text-align: center;
        padding: 50px;
        font-size: 18px;
        color: #ff9800;
    }
    
    .product-name-w3l h4 a,
    .item-info-product h4 a {
        display: block;
        white-space: break-spaces;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
        height: 40px;
    }

    /* Filter Modal Styles */
    .filter-toggle-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #a407af;
        color: white;
        border: none;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        font-size: 20px;
        cursor: pointer;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        transition: all 0.3s ease;
    }

    .filter-toggle-btn:hover {
        background: #e68900;
        transform: scale(1.1);
    }

    .filter-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        display: none;
    }

    .filter-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        width: 90%;
        max-width: 400px;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        z-index: 9999;
        display: none;
        padding: 20px;
    }

    .filter-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #f0f0f0;
    }

    .filter-modal-title {
        font-size: 24px;
        font-weight: 700;
        color: #2c3e50;
        margin: 0;
    }

    .filter-modal-close {
        background: none;
        border: none;
        font-size: 24px;
        color: #6c757d;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .filter-modal-close:hover {
        color: #e74c3c;
    }

    /* Category-wise Product Layout */
    .category-section {
        margin-bottom: 50px; 
        background: #fff;
        border-radius: 15px;
        padding: 30px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    }

    .category-header {
        margin-bottom: 30px;
        text-align: center;
    }

    .category-title {
        font-size: 28px;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 15px;
        position: relative;
        display: inline-block;
    }

    .category-divider {
        width: 80px;
        height: 4px;
    background: linear-gradient(90deg, #a407af, #00ab41) !important;
        margin: 0 auto;
        border-radius: 2px;
    }
.price-filter-reset button:first-child:hover {
    background: #00ab41 !important;
}

    .category-products {
        margin: 0 -15px;
    }

    .product-item {
        padding: 15px;
        margin-bottom: 30px;
    }

    .product-card {
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
         height: auto !important;
         min-height: 380px !important;
        display: flex;
        flex-direction: column;
        border: 1px solid #f0f0f0;
    }


.compact-card {
    height: auto !important;
    min-height: 350px !important;
}

.deal-card {
    height: auto !important;
    min-height: 400px !important;
}

/* Adjust card content spacing */
.product-info {
    padding: 15px !important;
}

.compact-info {
    padding: 12px !important;
}

.deal-content {
    padding: 15px !important;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        /*border-color: #667eea;*/
    }

    .product-image {
        position: relative;
        height: 250px;
        overflow: hidden;
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .product-image img {
        width: 100%;
        height: 210px;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    .product-card:hover .product-image img {
        transform: scale(1.05);
    }

    .product-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .product-card:hover .product-overlay {
        opacity: 1;
    }

    .quick-view-btn {
        background: white;
        color: #333;
        padding: 10px 20px;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .quick-view-btn:hover {
    background: #a407af !important;
        color: white;
        transform: translateY(-2px);
        text-decoration: none;
    }
/* Modal button */
.contact input[type="submit"]:hover {
    background: #a407af !important;
    color: white !important;
}
    .product-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: linear-gradient(135deg, #ff6b35, #ff9f1a);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        z-index: 2;
    }

    .product-info {
        padding: 15px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

 .product-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 15px !important;
    line-height: 1.4 !important;
    height: auto !important; /* Remove fixed height */
    overflow: visible !important; /* Remove overflow */
    display: block !important; /* Change from -webkit-box */
    -webkit-line-clamp: unset !important; /* Remove line clamp */
    -webkit-box-orient: unset !important; /* Remove box orient */
    text-overflow: unset !important; /* Remove text overflow */
    white-space: normal !important; /* Allow wrapping */
}


.compact-name {
    font-size: 14px !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    text-overflow: unset !important;
    white-space: normal !important;
}


    .product-name a {
        color: #2c3e50;
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.4;
        display: block;
        transition: color 0.3s ease;
        white-space: break-spaces;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-name a:hover {
        color: #667eea;
        text-decoration: none;
    }

    .product-price {
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .current-price {
        font-size: 18px;
        font-weight: 700;
        color: #e74c3c;
    }

    .old-price {
        font-size: 14px;
        color: #6c757d;
        text-decoration: line-through;
    }

    .product-actions {
        margin-top: auto;
    }

    .add-cart-btn {
        width: 100%;
        background: linear-gradient(135deg, #ff9f1a, #ff6b35);
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .add-cart-btn:hover {
        background: #ff6b35;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    }

    /* Responsive Grid System */
    @media (max-width: 768px) {
        .category-section {
            padding: 20px;
            margin-bottom: 30px;
        }
        
        .category-title {
            font-size: 24px;
        }
        
        .product-image {
            height: 200px;
        }
        
        .product-image img {
            height: 160px;
        }
        
        .product-info {
            padding: 15px;
        }
        
        .product-name a {
            font-size: 14px;
        }
        
        .current-price {
            font-size: 16px;
        }
    }

    @media (max-width: 576px) {
        .category-section {
            padding: 15px;
        }
        
        .category-title {
            font-size: 20px;
        }
        
        .product-image {
            height: 180px;
        }
        
        .product-image img {
            height: 140px;
        }
        
        .product-item {
            padding: 10px;
            margin-bottom: 20px;
        }
    }

    /* View More Products Button */
    .view-more-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: #a407af;
        color: white;
        padding: 9px 12px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 500;
        font-size: 14px;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
        border: 2px solid transparent;
    }

    .view-more-btn:hover {
        background: #64106a;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        text-decoration: none;
        color: white;
    }

    .view-more-btn:active {
        transform: translateY(-1px);
    }

    .view-more-btn i {
        font-size: 18px;
    }

    @media (max-width: 768px) {
        .view-more-btn {
            padding: 8px 15px;
            font-size: 10px;
        }
        
        .view-more-btn i {
            font-size: 16px;
        }
    }

    /* Improved Price Range Slider Styles */
    .range {
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 20px;
        position: relative;
        border: 1px solid #e0e0e0;
    }

    #slider-range {
        margin: 20px 0 30px 0;
        background: #f0f0f0;
        height: 8px;
        border: none;
        border-radius: 4px;
        position: relative;
    }

    .ui-slider-handle {
        position: absolute;
        z-index: 2;
        width: 24px !important;
        height: 24px !important;
        background: #ffffff !important;
        border: 3px solid #ff9800 !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        top: -8px !important;
        margin-left: -12px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        transition: all 0.2s ease;
    }

    .ui-slider-handle:hover {
        transform: scale(1.1);
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    }

    .ui-slider-handle:active {
        transform: scale(1.2);
    }

    .ui-slider-range {
        position: absolute;
        z-index: 1;
        background: #ffffff !important;
        height: 8px;
        border-radius: 4px;
    }

    #amount {
        background: transparent !important;
        border: none !important;
        color: #ffffff !important;
        font-weight: bold !important;
        font-size: 16px !important;
        text-align: center !important;
        width: 100% !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }

    .price-filter-reset button {
        background: #ffffff;
        color: #a407af;
        border: none;
        padding: 10px 25px;
        border-radius: 25px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 14px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .price-filter-reset button:hover {
        background: #f5f5f5;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    /* Modern Deals Section Styles */
    .modern-deals-section {
        margin-top: 30px;
        padding: 40px 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border-radius: 20px;
        position: relative;
    }

    .deals-header {
        margin-bottom: 40px;
    }

    .deals-main-title {
        font-size: 32px;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 10px;
        position: relative;
        display: inline-block;
    }

    .deals-main-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, #ff6b35, #ff9f1a);
        border-radius: 2px;
    }

    .deals-subtitle {
        font-size: 16px;
        color: #6c757d;
        margin-top: -75px;
    }

    /* Deals Slider */
    .deals-slider-container {
        position: relative;
        overflow: hidden;
        padding: 0 60px;
    }

    .deals-track {
        display: flex;
        gap: 25px;
        transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 10px 0;
    }

    /* Deal Card */
    .deal-card {
        width: 280px;
        background: white;
        border-radius: 16px;
        box-shadow: 0 5px 25px rgba(0,0,0,0.08);
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
        flex-shrink: 0;
        border: 1px solid #f0f0f0;
    }

    .deal-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 40px rgba(255, 107, 53, 0.15);
        border-color: #ff9f1a;
    }

    .deal-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background: linear-gradient(135deg, #ff6b35, #ff9f1a);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        z-index: 2;
        box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
    }

    .deal-image {
        position: relative;
        height: 200px;
        overflow: hidden;
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .deal-image img {
        width: 100%;
        height: 160px;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    .deal-card:hover .deal-image img {
        transform: scale(1.05);
    }

    .deal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .deal-card:hover .deal-overlay {
        opacity: 1;
    }

    .deal-content {
        padding: 20px;
    }

.deal-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 15px !important;
    line-height: 1.4 !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    text-overflow: unset !important;
    white-space: normal !important;
}

    .deal-pricing {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .current-price {
        font-size: 20px;
        font-weight: 700;
        color: #e74c3c;
    }

    .old-price {
        font-size: 16px;
        color: #6c757d;
        text-decoration: line-through;
    }

    .save-badge {
        background: rgba(40, 167, 69, 0.1);
        color: #28a745;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
        display: inline-block;
        margin-bottom: 15px;
    }

    .deal-actions {
        margin-top: 15px;
    }

    .add-to-cart-btn {
        width: 100%;
        background: linear-gradient(135deg, #ff9f1a, #ff6b35);
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .add-to-cart-btn:hover {
        background: linear-gradient(135deg, #e68900, #e55a2b);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    }

    /* Slider Navigation */
    .deals-slider-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        font-size: 16px;
        color: #2c3e50;
    }

    .deals-slider-nav:hover {
        background: #ff9f1a;
        color: white;
        transform: translateY(-50%) scale(1.1);
    }

    .deals-prev {
        left: 0;
    }

    .deals-next {
        right: 0;
    }

    /* Discount Badge Styles */
    .discount-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background: linear-gradient(135deg, #ff6b35, #ff9f1a);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        z-index: 2;
        box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
    }
 


    /* Fix for deal overlay and quick view button */
    .deal-card:hover .quick-view-btn {
        transform: translateY(0);
        opacity: 1;
    }

    .quick-view-btn {
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* No Deals State */
    .no-deals {
        background: white;
        border-radius: 15px;
        padding: 60px 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        text-align: center;
    }

    .no-deals-icon {
        margin-bottom: 20px;
    }

    .no-deals h4 {
        color: #6c757d;
        margin-bottom: 10px;
    }

    .no-deals p {
        color: #8d9aa8;
    }

    /* Responsive Design for Deals */
    @media (max-width: 768px) {
        .deals-slider-container {
            padding: 0 40px;
        }
        
        .deal-card {
            width: 220px;
        }
        
        .deal-image {
            height: 160px;
        }
        
        .deal-image img {
            height: 130px;
        }
        
        .deals-main-title {
            font-size: 28px;
        }
    }

    @media (max-width: 576px) {
        .deals-slider-container {
            padding: 0 20px;
        }
        
        .deal-card {
            width: 200px;
        }
        
        .deal-image {
            height: 140px;
        }
        
        .deal-image img {
            height: 110px;
        }
        
        .deals-slider-nav {
            width: 40px;
            height: 40px;
            font-size: 14px;
        }
        
        .deals-main-title {
            font-size: 24px;
        }
    }


    /*  Deal Card Overlay */
    .deal-card .deal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 3;
    }

    .deal-card:hover .deal-overlay {
        opacity: 1;
    }

    /* Quick View Button in Deals - Animation from top */
    .deal-card .quick-view-btn {
        background: white;
        color: #333;
        padding: 12px 24px;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transform: translateY(-50px); 
        opacity: 0; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .deal-card:hover .quick-view-btn {
        transform: translateY(0); 
        opacity: 1; 
    }

    .deal-card .quick-view-btn:hover {
        background: skyblue;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        text-decoration: none;
    }


    .product-card .product-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 3;
    }

    .product-card:hover .product-overlay {
        opacity: 1;
    }

    .product-card .quick-view-btn {
        background: white;
        color: #333;
        padding: 12px 24px;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transform: translateY(-50px); 
        opacity: 0; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .product-card:hover .quick-view-btn {
        transform: translateY(0); 
        opacity: 1; 
    }

    .product-card .quick-view-btn:hover {
        background:#a407af;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        text-decoration: none;
    }


    .deal-card:hover .quick-view-btn,
    .product-card:hover .quick-view-btn {
        transition-delay: 0.1s;
    }


    @media (max-width: 767px) {
        .navbar-nav .open .dropdown-menu {
            position: static !important;
            float: none !important;
            width: auto !important;
            margin-top: 0 !important;
            background-color: transparent !important;
            border: none !important;
            box-shadow: none !important;
            display: block !important;
        }
        
        .navbar-nav .open .dropdown-menu > li > a {
            padding: 10px 15px 10px 35px !important;
            color: #fff !important;
            text-align: left !important;
        }
        
        .navbar-nav .open .dropdown-menu > li > a:hover {
            background-color: #f5f5f5 !important;
            color: #a407af !important;
        }
        
        /* Show caret on mobile */
        .navbar-nav .dropdown-toggle .caret {
            display: inline-block !important;
            margin-left: 5px;
        }

        .navbar-default .navbar-nav .open .dropdown-menu > li {
            background: #a407af !important;
        }
    }



    /* Ensure dropdowns work on desktop */
    @media (min-width: 768px) {
        .navbar-nav .dropdown-menu {
            display: none;
        }
        
        .navbar-nav .open .dropdown-menu,
        .navbar-nav .dropdown:hover .dropdown-menu {
            display: block !important;
        }
    } 


/* ============================================= */
/* ENHANCED MOBILE BANNER OPTIMIZATIONS */
/* ============================================= */

/* Mobile-First Banner Enhancements */
.responsive-banner-carousel {
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    touch-action: pan-y pinch-zoom; /* Better touch handling */
}

/* Mobile Banner Slide Optimizations */
@media (max-width: 768px) {
    .responsive-banner-carousel .banner-slide {
        height: 50vh !important;
        min-height: 280px !important;
        max-height: 400px !important;
        background-attachment: scroll !important; /* Fix iOS background-attachment issue */
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        -o-background-size: cover !important;
        background-size: cover !important;
    }
    
    /* Mobile Caption Adjustments */
    .responsive-banner-carousel .banner-caption {
        background: rgba(0, 0, 0, 0.4) !important; /* Stronger overlay for mobile readability */
    }
    
    .responsive-banner-carousel .caption-container {
        width: 95% !important;
        padding: 15px !important;
    }
    
    .responsive-banner-carousel .banner-title {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.8rem !important;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8) !important;
    }
    
    .responsive-banner-carousel .banner-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1.2rem !important;
        line-height: 1.4 !important;
    }
    
    /* Mobile Button Optimizations */
    .responsive-banner-carousel .banner-actions {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .responsive-banner-carousel .banner-btn {
        width: 200px !important;
        padding: 12px 20px !important;
        font-size: 0.85rem !important;
        justify-content: center !important;
        touch-action: manipulation !important; /* Better touch response */
        -webkit-tap-highlight-color: transparent !important; /* Remove tap highlight */
    }
    
    /* Mobile Indicators */
    .responsive-banner-carousel .carousel-indicators {
        bottom: 10px !important;
    }
    
    .responsive-banner-carousel .carousel-indicators li {
        width: 10px !important;
        height: 10px !important;
        margin: 0 3px !important;
        border: 1px solid #fff !important;
        background: rgba(255, 255, 255, 0.5) !important;
    }
    
    .responsive-banner-carousel .carousel-indicators .active {
        background: #fff !important;
        transform: scale(1.2) !important;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .responsive-banner-carousel .banner-slide {
        height: 22vh !important;
        min-height: 145px !important;
        max-height: 220px !important;
    }
    
    .responsive-banner-carousel .banner-title {
        font-size: 1.4rem !important;
        letter-spacing: 0.5px !important;
    }
    
    .responsive-banner-carousel .banner-subtitle {
        font-size: 0.8rem !important;
    }
    
    .responsive-banner-carousel .banner-btn {
        width: 180px !important;
        padding: 10px 16px !important;
        font-size: 0.8rem !important;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 360px) {
    .responsive-banner-carousel .banner-slide {
        height: 40vh !important;
        min-height: 220px !important;
        max-height: 280px !important;
    }
    
    .responsive-banner-carousel .banner-title {
        font-size: 1.2rem !important;
        letter-spacing: 0px !important;
    }
    
    .responsive-banner-carousel .banner-subtitle {
        font-size: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .responsive-banner-carousel .banner-btn {
        width: 160px !important;
        padding: 8px 14px !important;
        font-size: 0.75rem !important;
    }
    
    .responsive-banner-carousel .caption-container {
        width: 98% !important;
        padding: 10px !important;
    }
}

/* Landscape Mobile Orientation */
@media screen and (orientation: landscape) and (max-height: 500px) and (max-width: 900px) {
    .responsive-banner-carousel .banner-slide {
        height: 85vh !important;
        min-height: 300px !important;
    }
    
    .responsive-banner-carousel .banner-title {
        font-size: 1.5rem !important;
    }
    
    .responsive-banner-carousel .banner-subtitle {
        font-size: 0.9rem !important;
    }
    
    .responsive-banner-carousel .banner-actions {
        flex-direction: row !important;
        gap: 15px !important;
    }
    
    .responsive-banner-carousel .banner-btn {
        width: auto !important;
        padding: 8px 16px !important;
    }
}

/* iOS Safari Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .responsive-banner-carousel .banner-slide {
        -webkit-background-size: cover !important;
        background-attachment: scroll !important;
    }
}

/* Android Chrome Specific Optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
    .responsive-banner-carousel .banner-slide {
        transform: translateZ(0); /* Hardware acceleration */
        -webkit-transform: translateZ(0);
    }
}

/* High DPI Mobile Displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    .responsive-banner-carousel .banner-slide {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .responsive-banner-carousel .carousel-control {
        display: none !important; /* Hide controls on touch devices */
    }
    
    .responsive-banner-carousel .banner-btn:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }
    
    /* Improve touch targets */
    .responsive-banner-carousel .carousel-indicators li {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 15px !important;
        margin: 0 2px !important;
    }
}

/* Reduced Motion for Mobile */
@media (prefers-reduced-motion: reduce) {
    .responsive-banner-carousel .carousel-inner > .item,
    .responsive-banner-carousel .banner-btn {
        transition: none !important;
        animation: none !important;
    }
}

/* Dark Mode Mobile Support */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .responsive-banner-carousel .banner-caption {
        background: rgba(0, 0, 0, 0.6) !important;
    }
    
    .responsive-banner-carousel .carousel-indicators li {
        border-color: rgba(255, 255, 255, 0.8) !important;
    }
}