/* Import Bangla Fonts */
@import url('https://fonts.maateen.me/solaiman-lipi/font.css');

/* Apply Bangla Font only to text elements, not icons */
body, div, span, p, h1, h2, h3, h4, h5, h6, a, li, ul, ol, td, th, 
input:not([class*="fa"]):not([class*="icon"]), 
textarea, select, button:not([class*="fa"]):not([class*="icon"]),
label, strong, em, small, blockquote, figcaption, caption {
    font-family: 'SolaimanLipi', sans-serif !important;
}

/* Exclude Font Awesome and icon elements */
i, [class*="fa-"], [class*="icon"], .fa, .fas, .far, .fal, .fad, .fab,
.material-icons, .icon {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands', 'FontAwesome' !important;
}

/* Ensure numbers and English text in specific contexts */
.price, .currency, .amount, [dir="ltr"] {
    font-family: 'SolaimanLipi', sans-serif !important;
}

/* 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: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    height: 40px;
}

/* Filter Modal Styles */
.filter-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff9800;
    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, #667eea, #764ba2);
    margin: 0 auto;
    border-radius: 2px;
}

.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: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.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: skyblue;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 10px;
    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: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    margin-bottom: 15px;
    flex-grow: 1;
}

.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: nowrap;
    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);
}

/* 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;
}

/* 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: -88px;
}

.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: -138px;
}

/* 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: 252px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.deal-image img {
    min-width: 274px;
    min-height: 270px;
    object-fit: cover;
    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: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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;
}

/* 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: #a407af;
    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;
}

/* Responsive Grid System */
/* Tablet (768px) and Mobile Styles */
@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;
    }
    
    .view-more-btn {
        padding: 8px 15px;
        font-size: 10px;
    }
    
    .view-more-btn i {
        font-size: 16px;
    }
    
    .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;
    }
    
    .product-badge {
        left: 236px !important;
        padding: 6px 9px !important;
    }
    
    .navbar-toggle {
        margin-right: 236px !important;
        margin-top: -96px !important;
    }
    
    .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;
    }
    
    /* Mobile Banner Optimizations */
    .responsive-banner-carousel {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y pinch-zoom;
    }
    
    .responsive-banner-carousel .banner-slide {
        height: 30vh !important;
        min-height: 300px !important;
        max-height: 400px !important;
        background-attachment: scroll !important;
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        -o-background-size: cover !important;
        background-size: cover !important;
    }
    
    .responsive-banner-carousel .banner-caption {
        background: rgba(0, 0, 0, 0.4) !important;
    }
    
    .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;
    }
    
    .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;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .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;
    }
}

/* Small Mobile Devices (576px and below) */
@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;
    }
    
    .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;
    }
    
    /* Extra Small Mobile Devices */
    .responsive-banner-carousel .banner-slide {
        height: 30vh !important;
        min-height: 300px !important;
        max-height: 320px !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 (360px and below) */
@media (max-width: 360px) {
    .responsive-banner-carousel .banner-slide {
        height: 25vh !important;
        min-height: 180px !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;
    }
}

/* Desktop Styles (768px and above) */
@media (min-width: 768px) {
    .navbar-nav .dropdown-menu {
        display: none;
    }
    
    .navbar-nav .open .dropdown-menu,
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block !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);
        -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;
    }
    
    .responsive-banner-carousel .banner-btn:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }
    
    .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;
    }
}

/* Responsive Banner Carousel Styles - Compact Version */
.responsive-banner-carousel {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.responsive-banner-carousel .banner-slide {
    height: 100%;
    width: 100%;
}

.responsive-banner-carousel .item {
    height: 100%;
    width: 100%;
}

.responsive-banner-carousel .carousel-inner {
    height: 100%;
    width: 100%;
}

/* Base banner slide styles */
.banner-slide {
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

/* Static slides common styles */
.static-slide {
    color: white;
    position: relative;
}

.static-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.slide-content-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
    height: 100%;
}

.slide-text-content {
    flex: 1;
    max-width: 55%;
    padding: 10px;
}

.slide-image-content {
    flex: 1;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
}

/* Grinding Machine Slide Styles */
.grinding-machine-slide {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.grinding-machine-slide .slide-image-content {
    background-image: url('{{ asset("frontEnd/images/slider222.jpg") }}');
    background-size: contain;
    background-position: center;
}

.slide-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #f39c12;
}

.slide-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1.1;
}

.slide-features {
    margin-bottom: 15px;
}

.feature-item {
    font-size: 0.85rem;
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.feature-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #f39c12;
    font-weight: bold;
}

.slide-cta-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-cta-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* New Year Sale Slide Styles */
.new-year-sale-slide {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.new-year-sale-slide .slide-image-content {
    background-image: url('{{ asset("frontEnd/images/slider333.jpg") }}');
    background-size: contain;
    background-position: center;
}

.sale-subtitle {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sale-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
    line-height: 1;
}


.sale-tagline {
    font-size: 1rem;
    margin-bottom: 15px;
    font-style: italic;
}

.discount-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #e74c3c;
    padding: 12px 15px;
    border-radius: 6px;
    text-align: center;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.discount-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.discount-percent {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.discount-off {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Carousel Controls */
.carousel-control {
    background: none !important;
    width: 40px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.carousel-control:hover {
    opacity: 1;
}

.carousel-control .glyphicon {
    color: white;
    font-size: 24px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.carousel-indicators {
    bottom: 10px;
}

.carousel-indicators li {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border: 2px solid white;
    background: transparent;
    border-radius: 50%;
}

.carousel-indicators .active {
    background: white;
}

/* Tablet Responsive Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .responsive-banner-carousel {
        height: 400px;
    }
    
    .slide-title {
        font-size: 1.6rem;
    }
    
    .sale-title {
        font-size: 1.8rem;
    }
}

/* Ensure images maintain aspect ratio and are fully visible */
.banner-slide .slide-image-content {
    background-size: contain !important;
    background-position: center !important;
}

/* Alternative: If you want to use cover but ensure important parts are visible */
.banner-slide .slide-image-content.important-parts {
    background-size: cover;
    background-position: center 30%;
}

.w3view-cart {
    position: relative;
}  

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

/* Customizable color variables */ 
:root {
    --primary-color: #007bff;
    --primary-hover-color: #0056b3;
    --link-color: #333333;
    --link-hover-bg: #a407af; 
    --link-hover-color: #007bff;
    --dropdown-bg: #ffffff;
    --divider-color: #e0e0e0;
}

/* Navbar Top Links */
.navbar-top-links {
    margin-right: 0;
}

.navbar-top-links .dropdown-menu {
    background-color: var(--dropdown-bg);
    border: 1px solid var(--divider-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 200px;
}

.navbar-top-links .dropdown-menu li a {
    color: var(--link-color);
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.navbar-top-links .dropdown-menu li a:hover {
    background-color: var(--link-hover-bg);
    color: var(--link-hover-color);
    text-decoration: none;
}

/* Dropdown divider */
.navbar-top-links .dropdown-menu .divider {
    background-color: var(--divider-color);
    margin: 5px 0;
}

/* Specific styles for dropdown-messages */
.navbar-top-links .dropdown-messages {
    width: 300px;
}

.navbar-top-links .dropdown-messages li a div {
    padding: 5px 0;
}

.navbar-top-links .dropdown-messages .text-muted {
    color: #6c757d;
    font-size: 12px;
}

/* Specific styles for dropdown-tasks */
.navbar-top-links .dropdown-tasks {
    width: 260px;
}

.navbar-top-links .dropdown-tasks .progress {
    margin-bottom: 0;
    height: 10px;
}

/* Specific styles for dropdown-alerts */
.navbar-top-links .dropdown-alerts {
    width: 260px;
}

.navbar-top-links .dropdown-alerts li a div {
    padding: 5px 0;
}

/* Dropdown toggle */
.navbar-top-links .dropdown-toggle {
    color: var(--link-color);
    padding: 12px 10px;
    transition: all 0.3s ease;
}

.navbar-top-links .dropdown-toggle:hover {
    background-color: var(--link-hover-bg);
    color: var(--link-hover-color);
}

/* Ensure navbar compatibility with Bootstrap 3.4.1 */
.navbar-default {
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 0;
    margin-bottom: 0;
} 

.navbar-default .navbar-nav > li > a {
    color: #000;
    font-size: 14px;
    padding: 15px 3px;
    transition: all 0.3s ease;
}

.navbar-default .navbar-nav > li > a:hover {
    background-color: var(--link-hover-bg);
    color: var(--link-hover-color);
}

.navbar-default .navbar-toggle {
    border-color: #ddd;
    background-color: #fff;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: var(--link-color);
}

.dropdown-menu > li > a {
    font-weight: 400 !important;
    line-height: 1.42857143 !important;
    color: #000 !important;
    white-space: nowrap !important;
    text-align: left !important;
    font-family: 'SolaimanLipi', sans-serif !important;
}

.container-fluid > .navbar-collapse, .container-fluid > .navbar-header, .container > .navbar-collapse, .container > .navbar-header {
    margin-right: 0px !important;
    margin-left: -37px !important;
}

.caret {
    display: none !important; 
}

/* Modern Modal-Style Filter Toggle Button */
.filter-toggle-btn {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: #a407af;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filter-toggle-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-toggle-btn:hover::before {
    opacity: 1;
}

.filter-toggle-btn:hover {
    transform: translateY(-50%) scale(1.05) rotate(5deg);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
}

.filter-toggle-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.filter-toggle-btn i {
    color: white;
    font-size: 22px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.filter-toggle-btn:hover i {
    transform: scale(1.1);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(-50%) translateX(0px); }
    50% { transform: translateY(-50%) translateX(-3px); }
}

.filter-toggle-btn {
    animation: float 3s ease-in-out infinite;
}

.filter-toggle-btn:hover {
    animation: none;
}

/* Modal-Style Filter Sidebar */
.filter-sidebar {
    transition: all 0.3s ease;
    overflow: hidden;
}

.filter-sidebar.sidebar-hidden {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Modal Overlay for Filter Sidebar */
.filter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(5px);
}

.filter-modal-overlay.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.filter-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    overflow-y: auto;
    padding: 30px;
}

.filter-modal.show {
    display: block;
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.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: #333;
    margin: 0;
}

.filter-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.filter-modal-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

.footer-grids ul li a {
    text-decoration: none !important;
}

.header-most-top p {
    background: #a407af !important;
}

.header-most-top p {
    padding: 0px !important;
    letter-spacing: 1px !important;
}

@media (min-width: 992px) {
    .col-md-8 {
        margin-top: -18px !important;
    }
    .col-md-4 {
        margin-top: -42px !important;
    }
}

.carousel {
    margin-top: -14px;
} 

.footer-info.w3-agileits-info {
    padding: 0px 0 !important;
}

#myModal1 .modal-content,
#myModal2 .modal-content {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
}

footer {
    padding: 1em 0; !important;
}

.footer-info.w3-agileits-info {
    padding: 2px 0 !important;
}
    .product-card {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        border: 0px solid #eee;
        border-radius: 8px;
        overflow: hidden;
        background: white;
    }

     .product-badge {
        position: absolute !important;
        top: 5px !important;
        left: 158px !important;
        background: #ff6b35 !important;
        color: white !important;
        padding: 6px 12px !important;
        font-size: 10px !important;
        border-radius: 10px !important;
        z-index: 2 !important;
    }

      .product-card .product-image img {
        min-width: 274px ; 
        min-height: 270px ;
        object-fit: cover ;
    }

@media (min-width: 480px){
        .product-badge {
        left: 176px !important;
    }
}