/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #F58731;
    --secondary-color: #6E3102;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #fff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Amazon Ember', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    /* Prevent horizontal scrolling on mobile */
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar - Fixed with smooth transitions */
.top-bar {
    background-image: url('asset/img/strip.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
    height: 40px; /* Fixed height */
    display: flex;
    align-items: center;
}

.top-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.top-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.top-links a:hover {
    opacity: 0.8;
}

/* Hide class for when scrolling up */
.top-bar.hide {
    transform: translateY(-100%);
}

/* Desktop Header - Sticky with proper positioning */
.desktop-header {
    display: block;
    position: sticky;
    top: 0; /* Stick to top when top bar is hidden */
    z-index: 1000;
    background-color: var(--white);
    transition: top 0.3s ease-in-out;
}

/* When top bar is visible, push desktop header down */
.top-bar:not(.hide) ~ .desktop-header {
    top: 40px; /* Height of top bar */
}

.main-header {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    width: auto;
}

.search-bar {
    display: flex;
    flex: 0 0 50%;
    max-width: 600px;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    font-family: 'Amazon Ember', Arial, sans-serif;
}

.search-bar button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Amazon Ember', Arial, sans-serif;
    font-weight: 500;
}

.search-bar button:hover {
    background-color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.account-dropdown, .help-dropdown {
    position: relative;
}

.account-btn, .help-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    color: var(--text-color);
    transition: color 0.3s;
    font-family: 'Amazon Ember', Arial, sans-serif;
    font-weight: 700;
}

.account-btn:hover, .help-btn:hover {
    color: var(--primary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 4px;
    top: 100%;
    left: 0;
    padding: 10px 0;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    font-family: 'Amazon Ember', Arial, sans-serif;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
}

.account-dropdown:hover .dropdown-content,
.help-dropdown:hover .dropdown-content {
    display: block;
}

.cart a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
    font-family: 'Amazon Ember', Arial, sans-serif;
    font-weight: 700;
}

.cart a:hover {
    color: var(--primary-color);
}

/* Mobile Header - Fixed Sticky */
.mobile-header {
    display: none;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0; /* Stick to top when top bar is hidden */
    z-index: 1000;
    transition: top 0.3s ease-in-out;
    width: 100%;
}

/* When top bar is visible, push mobile header down */
.top-bar:not(.hide) ~ .mobile-header {
    top: 40px; /* Height of top bar */
}

/* When top bar is hidden, stick to top */
.top-bar.hide ~ .mobile-header {
    top: 0;
}

.mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-logo img {
    height: 40px;
    width: auto;
}

.mobile-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-right: 10px;
}

.mobile-icon {
    color: var(--text-color);
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    position: relative;
}

.mobile-search {
    padding: 10px 15px;
    display: flex;
    border-top: 1px solid var(--border-color);
}

.mobile-search input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-family: 'Amazon Ember', Arial, sans-serif;
}

.mobile-search button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    background-color: var(--white);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-category-item {
    border-bottom: 1px solid var(--border-color);
}

.mobile-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.mobile-category-link.active {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.mobile-category-link.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Enhanced Mobile Subcategories with Modern Design */
.mobile-subcategories {
    display: none;
    background-color: #f8f9fa;
    list-style: none;
    padding: 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.mobile-subcategories.active {
    display: block;
}

.mobile-subcategories li {
    border-bottom: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.mobile-subcategories a {
    display: block;
    padding: 10px 20px 10px 35px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    position: relative;
}

.mobile-subcategories a::before {
    content: "•";
    position: absolute;
    left: 20px;
    color: var(--primary-color);
    font-size: 10px;
    opacity: 0.7;
}

.mobile-subcategories a:hover {
    background-color: rgba(245, 135, 49, 0.08);
    color: var(--primary-color);
    padding-left: 38px;
}

/* Modern Mobile Category Sections */
.mobile-category-section {
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-category-section h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(245, 135, 49, 0.3);
    padding-bottom: 4px;
}

.mobile-subcategory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mobile-subcategory-grid a {
    font-size: 11px !important;
    padding: 6px 8px !important;
    background: white;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    margin-bottom: 0 !important;
}

.mobile-subcategory-grid a:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.view-all-link {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

/* Main Content - Adjust margin based on top bar state */
.main-content {
    padding: 6px 0;
    background-image: url('asset/img/bg.jpg');
    background-size: 1200px 563px;
    background-position: 0 0;
    transition: margin-top 0.3s ease-in-out;
}

/* When top bar is visible, add margin to main content */
.top-bar:not(.hide) ~ .main-content {
    margin-top: 40px; /* Height of top bar + header */
}

/* When top bar is hidden, reduce margin */
.top-bar.hide ~ .main-content {
    margin-top: 0;
}

.content-wrapper {
    display: flex;
    gap: 20px;
}

/* Categories Sidebar - Desktop Only */
.categories-sidebar {
    flex: 0 0 220px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
    height: fit-content;
    position: relative;
}

.categories-sidebar h3 {
    display: none;
}

.categories-list {
    list-style: none;
}

.category-item {
    position: relative;
    margin-bottom: 3px;
}

.categories-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 4px;
    transition: all 0.3s;
    font-family: 'Amazon Ember', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
}

.categories-list a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.categories-list i {
    width: 16px;
    text-align: center;
    color: var(--primary-color);
    font-size: 12px;
}

/* Category Mega Menu with Modern Dividers - Desktop Only */
@media (min-width: 1025px) {
    .category-mega-menu {
        display: none;
        position: absolute;
        left: 100%;
        top: 0;
        width: 750px;
        background-color: var(--white);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        z-index: 99;
        padding: 15px;
        border-radius: 8px;
        margin-left: 8px;
        border: 1px solid var(--border-color);
    }

    .category-item:hover .category-mega-menu {
        display: block;
    }

    .mega-menu-content {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        position: relative;
    }

    /* Vertical dividers between columns */
    .mega-menu-column:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        right: -7.5px; /* Half of the gap */
        width: 1px;
        background: linear-gradient(to bottom, 
            transparent 0%, 
            var(--border-color) 20%, 
            var(--border-color) 80%, 
            transparent 100%);
    }

    .mega-menu-column {
        position: relative;
        padding: 0 5px;
    }

    .mega-menu-column h4 {
        margin-bottom: 12px;
        color: var(--secondary-color);
        font-size: 13px;
        font-family: 'Amazon Ember', Arial, sans-serif;
        font-weight: 600;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--primary-color);
        position: relative;
    }

    /* Add a subtle accent to the section headers */
    .mega-menu-column h4::before {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 30px;
        height: 2px;
        background-color: var(--primary-color);
    }

    .mega-menu-column ul {
        list-style: none;
        padding: 0;
    }

    .mega-menu-column li {
        margin-bottom: 6px;
        position: relative;
        padding-left: 8px;
    }

    /* Add subtle bullet points for list items */
    .mega-menu-column li::before {
        content: '•';
        position: absolute;
        left: 0;
        color: var(--primary-color);
        font-size: 10px;
        opacity: 0.7;
    }

    .mega-menu-column a {
        color: var(--text-color);
        text-decoration: none;
        transition: all 0.3s;
        font-size: 12px;
        font-family: 'Amazon Ember', Arial, sans-serif;
        padding: 2px 0;
        display: block;
        border-radius: 2px;
    }

    .mega-menu-column a:hover {
        color: var(--primary-color);
        background-color: var(--light-bg);
        padding-left: 5px;
    }
}

/* View All Categories Link */
.view-all-categories a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 12px;
}

.view-all-categories a:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color);
}

/* Hero Slider - Desktop */
.hero-slider {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    height: 380px;
    /* REMOVED: box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
}

.slider-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--white);
    max-width: 50%;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.slide-content h2 {
    font-size: 24px;
    margin-bottom: 8px;
    font-family: 'Amazon Ember', Arial, sans-serif;
}

.slide-content p {
    font-size: 16px;
    margin-bottom: 15px;
    font-family: 'Amazon Ember', Arial, sans-serif;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
    font-family: 'Amazon Ember', Arial, sans-serif;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.slider-controls {
    display: none;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--white);
}

/* ===== FIXED MOBILE SLIDER - FULL WIDTH & HEIGHT ===== */
@media (max-width: 768px) {
    .hero-slider {
        height: 250px !important; /* Increased height for mobile */
        border-radius: 0;
        overflow: hidden;
        position: relative;
        padding: 0;
        background: transparent;
        margin: 0 !important;
        width: 100vw !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        touch-action: pan-y;
        /* REMOVED: box-shadow: none; */
    }

    .slider-container {
        display: flex;
        height: 100%;
        align-items: center;
        gap: 0; /* Remove gap between slides */
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
        padding: 0;
        width: max-content;
    }

    .slide {
        position: relative;
        flex: 0 0 auto;
        width: 100vw !important; /* Full viewport width */
        height: 250px !important; /* Match slider height */
        opacity: 1 !important;
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-radius: 0; /* Remove border radius */
        overflow: hidden;
        /* REMOVED: box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
        margin: 0 !important;
    }

    .slide.active {
        transform: scale(1); /* Remove scale effect */
        /* REMOVED: box-shadow: 0 4px 12px rgba(0,0,0,0.15); */
    }

    .slide:not(.active) {
        opacity: 0 !important; /* Hide non-active slides completely */
        transform: scale(1);
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensure images cover full area */
        object-position: center; /* Center images */
    }

    /* Centered Dots for Mobile */
    .slider-dots {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        z-index: 10;
        background: rgba(0,0,0,0.3);
        padding: 6px 10px;
        border-radius: 20px;
    }

    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(255,255,255,0.6);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dot.active {
        background-color: var(--white);
        transform: scale(1.2);
    }
}

/* Collections Section */
.collections {
    padding: 50px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-family: 'Amazon Ember', Arial, sans-serif;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.collection-item {
    background-color: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.collection-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.collection-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.collection-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-family: 'Amazon Ember', Arial, sans-serif;
}

.collection-item p {
    margin-bottom: 15px;
    color: #666;
    font-family: 'Amazon Ember', Arial, sans-serif;
}

.collection-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-family: 'Amazon Ember', Arial, sans-serif;
}

.collection-item a:hover {
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: #2c2c2c;
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--white);
    font-family: 'Amazon Ember', Arial, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p, .footer-section a {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    font-family: 'Amazon Ember', Arial, sans-serif;
    font-size: 11px;
    transition: color 0.3s;
}

.footer-section a {
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 6px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-family: 'Amazon Ember', Arial, sans-serif;
    font-size: 10px;
}

/* Footer responsive design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
        text-align: left;
    }
    
    .footer-section h3 {
        font-size: 14px;
        margin-bottom: 12px;
        color: var(--white);
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-section a {
        font-size: 12px;
        margin-bottom: 8px;
        padding: 4px 0;
        transition: all 0.3s ease;
    }
    
    .footer-section a:hover {
        color: var(--primary-color);
        transform: translateX(5px);
    }
    
    .footer-section p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    .social-links {
        justify-content: left;
        margin-top: 15px;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 14px;
        transition: all 0.3s ease;
    }
    
    .social-links a:hover {
        transform: translateY(-3px);
        background: var(--primary-color);
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    
    .footer-section {
        min-width: 0;
        padding: 0 5px;
    }
    
    .footer-section h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .footer-section a {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .footer-section p {
        font-size: 11px;
    }
    
    .social-links {
        margin-top: 12px;
    }
    
    .social-links a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Style for LIVE Chat with border */
.dropdown-content a:last-child {
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    margin: 5px 10px;
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .categories-sidebar {
        flex: none;
        width: 100%;
    }
    
    .category-mega-menu {
        position: static;
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        display: none;
    }
    
    .category-item:hover .category-mega-menu {
        display: none;
    }
    
    .category-item.active .category-mega-menu {
        display: block;
    }
    
    .mega-menu-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-slider {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .slide-content {
        max-width: 80%;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    /* Hide categories sidebar on mobile */
    .categories-sidebar {
        display: none;
    }
    
    /* Adjust content wrapper when sidebar is hidden */
    .content-wrapper {
        display: block;
    }
    
    /* Mobile top bar adjustments */
    .top-bar {
        padding: 6px 0;
        font-size: 12px;
        height: 40px !important; /* Consistent height */
        z-index: 1001;
    }
    
    .top-links {
        justify-content: space-around;
        gap: 10px;
    }
    
    .top-links a {
        padding: 4px 8px;
        text-align: center;
        flex: 1;
        font-size: 11px;
    }
    
    /* Mobile header sticky fixes */
    .mobile-header {
        top: 0;
    }
    
    .top-bar:not(.hide) ~ .mobile-header {
        top: 40px !important; /* Match top bar height */
    }
    
    .top-bar.hide ~ .mobile-header {
        top: 0 !important;
    }
    
    .top-bar:not(.hide) ~ .main-content {
        margin-top: 40px !important; /* Adjust main content margin */
    }
    
    /* Mobile top layout adjustments */
    .mobile-top {
        justify-content: flex-start;
        gap: 25px;
    }
    
    .mobile-logo {
        order: -1;
        margin-right: auto;
    }
    
    .menu-toggle {
        order: -2;
        background: none;
        border: 2px solid var(--primary-color);
        font-size: 24px;
        cursor: pointer;
        color: var(--primary-color);
        font-weight: 900;
        padding: 8px 12px;
        border-radius: 6px;
        transition: all 0.3s ease;
        position: relative;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .menu-toggle:hover {
        background-color: var(--primary-color);
        color: var(--white);
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(245, 135, 49, 0.3);
    }
    
    .menu-toggle:active {
        transform: scale(0.95);
        box-shadow: 0 2px 4px rgba(245, 135, 49, 0.3);
    }
    
    /* Mobile logo adjustments */
    .mobile-logo img {
        height: 60px;
        width: auto;
        transition: transform 0.3s ease;
    }
    
    .mobile-logo img:hover {
        transform: scale(1.05);
    }
    
    /* Mobile actions adjustments */
    .mobile-actions {
        gap: 15px;
        margin-left: auto;
        padding-right: 15px;
    }
    
    .mobile-icon {
        font-size: 22px;
        color: var(--text-color);
        transition: all 0.3s ease;
        padding: 6px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        text-decoration: none;
    }
    
    .mobile-icon:hover {
        color: var(--primary-color);
        background-color: var(--light-bg);
        transform: scale(1.1);
    }
    
    .mobile-icon:active {
        transform: scale(0.95);
    }
    
    /* Enhanced Mobile Subcategories */
    .mobile-subcategories {
        padding: 0;
    }
    
    .mobile-subcategories a {
        font-size: 11px;
        padding: 8px 15px 8px 30px;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }
    
    .mobile-subcategories a::before {
        left: 15px;
        font-size: 9px;
    }
    
    .mobile-subcategories a:hover {
        padding-left: 32px;
    }
}

/* Completely hide text but keep links functional */
.top-links a {
    font-size: 0;
    color: transparent;
    text-shadow: none;
}

/* Show minimal indicator dots */
.top-links a::after {
    content: "•";
    font-size: 16px;
    color: var(--white);
    opacity: 0.7;
}

.top-links a:last-child::after {
    content: "";
}

/* Modern Mobile Subcategory Grid Layout */
@media (max-width: 768px) {
    .mobile-subcategory-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 8px 12px;
    }
    
    .mobile-subcategory-grid a {
        font-size: 10px !important;
        padding: 6px 8px !important;
        background: white;
        border-radius: 4px;
        border: 1px solid rgba(0,0,0,0.05);
        text-align: center;
        transition: all 0.2s ease;
        margin-bottom: 0 !important;
    }
    
    .mobile-subcategory-grid a::before {
        display: none;
    }
    
    .mobile-subcategory-grid a:hover {
        background: var(--primary-color);
        color: white !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    /* Compact mobile category sections */
    .mobile-category-section {
        padding: 10px 15px;
    }
    
    .mobile-category-section h4 {
        font-size: 10px;
        margin-bottom: 6px;
        padding-bottom: 3px;
    }
}

/* Ultra-compact mobile design for very small screens */
@media (max-width: 360px) {
    .mobile-subcategory-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .mobile-subcategory-grid a {
        font-size: 9px !important;
        padding: 4px 6px !important;
    }
    
    .mobile-category-link {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .mobile-subcategories a {
        font-size: 10px;
        padding: 6px 12px 6px 25px;
    }
    
    .mobile-subcategories a::before {
        left: 12px;
    }
}
/* Move all mobile navigation texts to the left */
.mobile-category-link {
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 20px !important;
}

.mobile-category-link i:first-child {
    margin-right: 12px !important;
    margin-left: 0 !important;
}

.mobile-category-link .fa-chevron-down {
    margin-left: auto !important;
}

/* Ensure category sections are left-aligned */
.mobile-category-section {
    text-align: left !important;
}

.mobile-category-section h4 {
    text-align: left !important;
    padding-left: 0 !important;
}

.mobile-category-section h4::after {
    left: 0 !important;
}

/* Left align subcategory grid items */
.mobile-subcategory-grid {
    justify-items: start !important;
}

.mobile-subcategory-grid a {
    text-align: left !important;
    justify-content: flex-start !important;
    padding-left: 12px !important;
    width: 100% !important;
}

/* View all link left aligned */
.view-all-link {
    text-align: left !important;
    justify-content: flex-start !important;
    padding-left: 20px !important;
}

.view-all-link i:first-child {
    margin-right: 12px !important;
}

/* Mobile search left aligned */
.mobile-search input {
    text-align: left !important;
}

/* Mobile header elements left aligned where appropriate */
.mobile-top {
    justify-content: flex-start !important;
}

.mobile-logo {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Ensure proper spacing for left-aligned layout */
.mobile-nav-list {
    text-align: left !important;
}

.mobile-category-item {
    text-align: left !important;
}

/* Left align the mobile menu toggle area */
.menu-toggle {
    margin-right: 15px !important;
}

/* Adjust mobile actions to be on the right */
.mobile-actions {
    margin-left: auto !important;
}

/* Enhanced left alignment with better spacing */
.mobile-category-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.mobile-category-link span {
    flex-grow: 1 !important;
    text-align: left !important;
    margin-right: 10px !important;
}

/* Left align the chevron positioning */
.mobile-category-link .fa-chevron-down {
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

/* Subcategory grid items full width left aligned */
.mobile-subcategory-grid a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 10px 15px !important;
}

/* Mobile category section titles left aligned */
.mobile-category-section h4 {
    text-align: left !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Ensure all text content is left aligned */
.mobile-nav * {
    text-align: left !important;
}

/* Specific left alignment for category icons and text */
.mobile-category-link {
    padding: 16px 20px 16px 20px !important;
}

.mobile-category-link i:first-child {
    min-width: 20px !important;
    text-align: center !important;
}

/* Left align the view all categories link */
.mobile-category-item:last-child .mobile-category-link {
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 20px !important;
}

/* Mobile search bar text left aligned */
.mobile-search input::placeholder {
    text-align: left !important;
}

.mobile-search input {
    text-align: left !important;
    padding-left: 15px !important;
}

/* Responsive adjustments for left alignment */
@media (max-width: 480px) {
    .mobile-category-link {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .mobile-category-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .mobile-subcategory-grid a {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .view-all-link {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Force left alignment for all text elements */
.mobile-nav,
.mobile-nav * {
    text-align: left !important;
}

.mobile-category-link,
.mobile-subcategory-grid a,
.mobile-category-section h4,
.view-all-link {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Ensure proper icon spacing with left-aligned text */
.mobile-category-link i:first-child {
    margin-right: 12px !important;
    margin-left: 0 !important;
}

.view-all-link i:first-child {
    margin-right: 12px !important;
    margin-left: 0 !important;
}
/* New Mobile Navigation Sections */
.mobile-nav-section {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: 'Amazon Ember', Arial, sans-serif;
    font-size: 16px;
}

.mobile-nav-section-header.active {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.mobile-nav-section-content {
    display: none;
    background-color: #f8f9fa;
}

.mobile-nav-section-content.active {
    display: block;
}

.mobile-nav-section-header.active .fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-nav-section-content .mobile-category-item {
    border-bottom: none;
}

.mobile-nav-section-content .mobile-category-link {
    padding-left: 35px;
}

.mobile-nav-section-content .mobile-subcategories {
    background-color: #f0f2f5;
}

.mobile-nav-section-content .mobile-subcategories .mobile-category-section {
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e7eb 100%);
}

.mobile-nav-section-content ul {
    list-style: none;
}

.mobile-nav-section-content li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-nav-section-content a {
    display: block;
    padding: 12px 20px 12px 35px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 400;
}

.mobile-nav-section-content a:hover {
    background-color: rgba(245, 135, 49, 0.08);
    color: var(--primary-color);
}
/* Adjust mobile navigation spacing and font sizes */
.mobile-nav-section-header {
    padding: 15px 25px !important;
    font-size: 11px !important;
}

.mobile-nav-section-header i:first-child {
    margin-right: 15px !important;
    margin-left: 0 !important;
}

.mobile-nav-section-content a {
    padding: 12px 25px 12px 45px !important;
    font-size: 13px !important;
}

.mobile-nav-section-content a i:first-child {
    margin-right: 12px !important;
}

/* Adjust category links inside OUR CATEGORIES section */
.mobile-nav-section-content .mobile-category-link {
    padding: 15px 25px 15px 45px !important;
    font-size: 14px !important;
}

.mobile-nav-section-content .mobile-category-link i:first-child {
    margin-right: 15px !important;
}

/* Adjust subcategories spacing */
.mobile-nav-section-content .mobile-subcategories a {
    padding: 10px 25px 10px 55px !important;
    font-size: 12px !important;
}

.mobile-nav-section-content .mobile-subcategories a::before {
    left: 35px !important;
}

/* Adjust mobile category sections */
.mobile-nav-section-content .mobile-category-section {
    padding: 12px 25px !important;
}

.mobile-nav-section-content .mobile-subcategory-grid a {
    padding: 8px 12px !important;
    font-size: 11px !important;
}

/* Ensure view all link is also adjusted */
.mobile-nav-section-content .view-all-link .mobile-category-link {
    padding: 15px 25px 15px 45px !important;
    font-size: 14px !important;
}
/* Make mobile navigation text bolder */
.mobile-nav-section-header {
    font-weight: 600 !important;
}

.mobile-nav-section-content a {
    font-weight: 500 !important;
}

.mobile-nav-section-content .mobile-category-link {
    font-weight: 600 !important;
}

.mobile-nav-section-content .mobile-subcategories a {
    font-weight: 500 !important;
}

.mobile-nav-section-content .mobile-category-section h4 {
    font-weight: 700 !important;
}

.mobile-nav-section-content .mobile-subcategory-grid a {
    font-weight: 500 !important;
}

/* Make view all link bolder too */
.mobile-nav-section-content .view-all-link .mobile-category-link {
    font-weight: 600 !important;
}
/* Premium mobile navigation typography */
.mobile-nav-section-header {
    font-weight: 600 !important;
    letter-spacing: 0.4px !important;
    text-transform: none !important;
    color: #2c2c2c !important;
    font-size: 15px !important;
}

.mobile-nav-section-content a {
    font-weight: 500 !important;
    letter-spacing: 0.25px !important;
    color: #444 !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
}

.mobile-nav-section-content .mobile-category-link {
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    color: #333 !important;
    font-size: 13.5px !important;
}

.mobile-nav-section-content .mobile-subcategories a {
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
    color: #555 !important;
    font-size: 12px !important;
}

.mobile-nav-section-content .mobile-category-section h4 {
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    color: #6E3102 !important;
    font-size: 11px !important;
    border-bottom: 1px solid rgba(110, 49, 2, 0.2) !important;
    padding-bottom: 6px !important;
}

.mobile-nav-section-content .mobile-subcategory-grid a {
    font-weight: 500 !important;
    letter-spacing: 0.15px !important;
    color: #555 !important;
    font-size: 10.5px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Enhanced hover states */
.mobile-nav-section-content a:hover {
    color: var(--primary-color) !important;
    background-color: rgba(245, 135, 49, 0.08) !important;
    transform: translateX(2px) !important;
}

.mobile-nav-section-header:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: var(--primary-color) !important;
}

.mobile-nav-section-content .mobile-subcategory-grid a:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-1px) !important;
}

/* Ensure smooth transitions for all elements */
.top-bar,
.desktop-header,
.mobile-header,
.main-content {
    transition: all 0.3s ease-in-out;
}
/* Override container constraints for hero slider on mobile */
@media (max-width: 768px) {
    .main-content .container {
        padding: 0 !important; /* Remove container padding */
        max-width: none !important; /* Remove max-width constraint */
    }
    
    .content-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Ultra-compact mobile design - Full Width */
@media (max-width: 480px) {
    .hero-slider {
        height: 200px !important;
    }

    .slider-container {
        gap: 6px;
        padding: 0 6px;
    }

    .slide {
        width: calc(100vw - 24px) !important;
        height: 180px !important;
    }

    .slide.active {
        transform: scale(1.02);
    }

    .slider-dots {
        bottom: 8px;
        padding: 4px 8px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }
}

/* Very small screens - Maximum Full Width */
@media (max-width: 360px) {
    .hero-slider {
        height: 180px !important;
    }

    .slider-container {
        gap: 4px;
        padding: 0 4px;
    }

    .slide {
        width: calc(100vw - 16px) !important;
        height: 160px !important;
    }

    .slider-dots {
        bottom: 6px;
        padding: 3px 6px;
    }
}
/* Make mobile navigation text bolder */
.mobile-nav-section-header {
    font-weight: 600 !important;
}

.mobile-nav-section-content a {
    font-weight: 500 !important;
}

.mobile-nav-section-content .mobile-category-link {
    font-weight: 600 !important;
}

.mobile-nav-section-content .mobile-subcategories a {
    font-weight: 500 !important;
}

.mobile-nav-section-content .mobile-category-section h4 {
    font-weight: 700 !important;
}

.mobile-nav-section-content .mobile-subcategory-grid a {
    font-weight: 500 !important;
}

/* Make view all link bolder too */
.mobile-nav-section-content .view-all-link .mobile-category-link {
    font-weight: 600 !important;
}
/* Premium mobile navigation typography */
.mobile-nav-section-header {
    font-weight: 600 !important;
    letter-spacing: 0.4px !important;
    text-transform: none !important;
    color: #2c2c2c !important;
    font-size: 15px !important;
}

.mobile-nav-section-content a {
    font-weight: 500 !important;
    letter-spacing: 0.25px !important;
    color: #444 !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
}

.mobile-nav-section-content .mobile-category-link {
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    color: #333 !important;
    font-size: 13.5px !important;
}

.mobile-nav-section-content .mobile-subcategories a {
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
    color: #555 !important;
    font-size: 12px !important;
}

.mobile-nav-section-content .mobile-category-section h4 {
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    color: #6E3102 !important;
    font-size: 11px !important;
    border-bottom: 1px solid rgba(110, 49, 2, 0.2) !important;
    padding-bottom: 6px !important;
}

.mobile-nav-section-content .mobile-subcategory-grid a {
    font-weight: 500 !important;
    letter-spacing: 0.15px !important;
    color: #555 !important;
    font-size: 10.5px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Enhanced hover states */
.mobile-nav-section-content a:hover {
    color: var(--primary-color) !important;
    background-color: rgba(245, 135, 49, 0.08) !important;
    transform: translateX(2px) !important;
}

.mobile-nav-section-header:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: var(--primary-color) !important;
}

.mobile-nav-section-content .mobile-subcategory-grid a:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-1px) !important;
}

/* Ensure smooth transitions for all elements */
.top-bar,
.desktop-header,
.mobile-header,
.main-content {
    transition: all 0.3s ease-in-out;
}
/* Override container constraints for hero slider on mobile */
@media (max-width: 768px) {
    .main-content .container {
        padding: 0 !important; /* Remove container padding */
        max-width: none !important; /* Remove max-width constraint */
    }
    
    .content-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Ultra-compact mobile design - Full Width */
@media (max-width: 480px) {
    .hero-slider {
        height: 200px !important;
    }

    .slider-container {
        gap: 6px;
        padding: 0 6px;
    }

    .slide {
        width: calc(100vw - 24px) !important;
        height: 180px !important;
    }

    .slide.active {
        transform: scale(1.02);
    }

    .slider-dots {
        bottom: 8px;
        padding: 4px 8px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }
}

/* Very small screens - Maximum Full Width */
@media (max-width: 360px) {
    .hero-slider {
        height: 180px !important;
    }

    .slider-container {
        gap: 4px;
        padding: 0 4px;
    }

    .slide {
        width: calc(100vw - 16px) !important;
        height: 160px !important;
    }

    .slider-dots {
        bottom: 6px;
        padding: 3px 6px;
    }
}
/* ============================================= */
/* FIXED MOBILE SLIDER - FULL WIDTH & HEIGHT */
/* ============================================= */
@media (max-width: 768px) {
    .hero-slider {
        height: 250px !important; /* Increased height for mobile */
        border-radius: 0;
        overflow: hidden;
        position: relative;
        padding: 0;
        background: transparent;
        margin: 0 !important;
        width: 100vw !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        touch-action: pan-y;
        /* REMOVED: box-shadow: none; */
    }

    .slider-container {
        display: flex;
        height: 100%;
        align-items: center;
        gap: 0; /* Remove gap between slides */
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
        padding: 0;
        width: max-content;
    }

    .slide {
        position: relative;
        flex: 0 0 auto;
        width: 100vw !important; /* Full viewport width */
        height: 250px !important; /* Match slider height */
        opacity: 1 !important;
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-radius: 0; /* Remove border radius */
        overflow: hidden;
        /* REMOVED: box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
        margin: 0 !important;
    }

    .slide.active {
        transform: scale(1); /* Remove scale effect */
        /* REMOVED: box-shadow: 0 4px 12px rgba(0,0,0,0.15); */
    }

    .slide:not(.active) {
        opacity: 0 !important; /* Hide non-active slides completely */
        transform: scale(1);
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensure images cover full area */
        object-position: center; /* Center images */
    }

    /* Centered Dots for Mobile */
    .slider-dots {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        z-index: 10;
        background: rgba(0,0,0,0.3);
        padding: 6px 10px;
        border-radius: 20px;
    }

    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(255,255,255,0.6);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dot.active {
        background-color: var(--white);
        transform: scale(1.2);
    }
}

/* ===== PRODUCT SECTIONS - REDUCED WIDTH ===== */
.featured-sections {
    padding: 40px 0;
}

.featured-section {
    margin-bottom: 60px;
    max-width: 1200px; /* Limit maximum width */
    margin-left: auto;
    margin-right: auto;
}

.featured-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    max-width: 1200px; /* Limit header width */
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 28px;
    color: var(--secondary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.sale-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
}

.badge {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Section-specific colorful borders - CLEANED: Removed all gradient styles, using solid colors only */
#topSellersSection .section-header {
    border-bottom-color: #FF9F43; /* Orange */
    background: #FF9F43; /* Solid color */
    padding: 15px 20px;
    margin: 0 auto 30px auto; /* Center the header */
    border-radius: 0 0 10px 10px;
    height: auto;
    min-height: 60px;
    max-width: 1200px; /* Limit width */
}

#flashSalesSection .section-header {
    border-bottom-color: #FF6B6B; /* Red */
    background: #FF6B6B; /* Solid color */
    padding: 15px 20px;
    margin: 0 auto 30px auto; /* Center the header */
    border-radius: 0 0 10px 10px;
    height: auto;
    min-height: 60px;
    max-width: 1200px; /* Limit width */
}

#blackFridaySection .section-header {
    border-bottom-color: #2D3436; /* Dark Gray */
    background: #2D3436; /* Solid color */
    padding: 15px 20px;
    margin: 0 auto 30px auto; /* Center the header */
    border-radius: 0 0 10px 10px;
    color: white;
    height: auto;
    min-height: 60px;
    max-width: 1200px; /* Limit width */
}

#blackFridaySection .section-header .section-title {
    color: white;
}

#phoneDealsSection .section-header {
    border-bottom-color: #00CEC9; /* Teal */
    background: #00CEC9; /* Solid color */
    padding: 15px 20px;
    margin: 0 auto 30px auto; /* Center the header */
    border-radius: 0 0 10px 10px;
    height: auto;
    min-height: 60px;
    max-width: 1200px; /* Limit width */
}

#computingDealsSection .section-header {
    border-bottom-color: #A29BFE; /* Purple */
    background: #A29BFE; /* Solid color */
    padding: 15px 20px;
    margin: 0 auto 30px auto; /* Center the header */
    border-radius: 0 0 10px 10px;
    height: auto;
    min-height: 60px;
    max-width: 1200px; /* Limit width */
}

#allProductsSection .section-header {
    border-bottom-color: #F58731; /* Primary Orange */
    background: #F58731; /* Solid color */
    padding: 15px 20px;
    margin: 0 auto 30px auto; /* Center the header */
    border-radius: 0 0 10px 10px;
    height: auto;
    min-height: 60px;
    max-width: 1200px; /* Limit width */
}

/* Section title colors to match borders */
#topSellersSection .section-title {
    color: white;
}

#flashSalesSection .section-title {
    color: white;
}

#blackFridaySection .section-title {
    color: white;
}

#phoneDealsSection .section-title {
    color: white;
}

#computingDealsSection .section-title {
    color: white;
}

#allProductsSection .section-title {
    color: white;
}

/* ============================================= */
/* RESPONSIVE PRODUCT GRID - 2 MOBILE, 4 DESKTOP */
/* ============================================= */

.products-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    max-width: 1200px; /* Limit maximum width */
    margin: 0 auto; /* Center the grid */
}

/* Mobile First: 2 columns */
.products-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Tablet: 3 columns */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* Large Desktop: 5 columns */
@media (min-width: 1440px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Product Card Styles */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    /* REMOVED: box-shadow: 0 5px 15px rgba(0,0,0,0.08); */
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    /* REMOVED: box-shadow: 0 10px 25px rgba(0,0,0,0.15); */
}

/* Featured badges on products */
.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

.flash-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.top-badge {
    background: linear-gradient(135deg, #ff9f43, #feca57);
}

.blackfriday-badge {
    background: linear-gradient(135deg, #2d3436, #636e72);
}

.product-image {
    width: 100%;
    height: 200px; /* Slightly smaller for mobile */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

/* Larger images on desktop */
@media (min-width: 768px) {
    .product-image {
        height: 220px;
    }
}

@media (min-width: 1024px) {
    .product-image {
        height: 250px;
    }
}

.product-info {
    padding: 15px;
}

/* More compact on mobile */
@media (max-width: 767px) {
    .product-info {
        padding: 12px;
    }
}

.product-title {
    font-size: 14px; /* Smaller on mobile */
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

/* Larger titles on desktop */
@media (min-width: 768px) {
    .product-title {
        font-size: 15px;
        min-height: 2.6em;
    }
}

@media (min-width: 1024px) {
    .product-title {
        font-size: 16px;
        min-height: 2.4em;
    }
}

.product-price {
    font-size: 16px; /* Smaller on mobile */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

/* Larger prices on desktop */
@media (min-width: 768px) {
    .product-price {
        font-size: 17px;
    }
}

@media (min-width: 1024px) {
    .product-price {
        font-size: 18px;
    }
}

.original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-right: 6px;
}

.discount {
    background: #ff6b6b;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.product-category {
    display: inline-block;
    background: var(--light-bg);
    color: #666;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .product-category {
        font-size: 11px;
        padding: 4px 10px;
    }
}

@media (min-width: 1024px) {
    .product-category {
        font-size: 12px;
        padding: 4px 12px;
    }
}

.product-description {
    color: #666;
    font-size: 12px; /* Smaller on mobile */
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

/* Larger description on desktop */
@media (min-width: 768px) {
    .product-description {
        font-size: 13px;
        min-height: 2.6em;
    }
}

@media (min-width: 1024px) {
    .product-description {
        font-size: 14px;
        min-height: 2.8em;
    }
}

.add-to-cart {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 10px; /* Smaller on mobile */
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    /* REMOVED: box-shadow: 0 5px 15px rgba(245, 135, 49, 0.3); */
}

/* Larger button on desktop */
@media (min-width: 768px) {
    .add-to-cart {
        padding: 11px;
        font-size: 13px;
    }
}

@media (min-width: 1024px) {
    .add-to-cart {
        padding: 12px;
        font-size: 14px;
    }
}

/* Loading states */
.section-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    grid-column: 1 / -1;
}

.section-loading .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.empty-section {
    text-align: center;
    padding: 40px;
    color: #999;
    grid-column: 1 / -1;
}

.empty-section i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Responsive section headers */
@media (max-width: 767px) {
    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        margin-bottom: 20px;
        padding: 12px 15px;
        min-height: 70px;
        height: auto;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .sale-timer, .badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .view-all {
        font-size: 14px;
    }
    
    /* MOBILE FIX: Make product grid single column for better visibility */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        margin-bottom: 10px;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 16px;
        min-height: auto;
    }
    
    .product-price {
        font-size: 18px;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .section-header {
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure proper spacing on very small screens */
@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 15px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .section-header {
        padding: 10px 12px;
        min-height: 65px;
    }
}
/* ============================================= */
/* TOP SELLERS CAROUSEL STYLES */
/* ============================================= */

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    max-width: 1200px; /* Limit carousel width */
    margin-left: auto;
    margin-right: auto;
}

.products-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    padding: 10px 0;
}

.carousel-item {
    flex: 0 0 calc(50% - 10px); /* 2 items visible on mobile */
    min-width: calc(50% - 10px);
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    /* REMOVED: box-shadow: 0 5px 15px rgba(0,0,0,0.08); */
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.carousel-item:hover {
    transform: translateY(-5px);
    /* REMOVED: box-shadow: 0 10px 25px rgba(0,0,0,0.15); */
}

/* Carousel controls */
.carousel-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.carousel-btn {
    background: var(--white);
    border: 2px solid currentColor;
    color: inherit;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.carousel-btn:hover {
    background: currentColor;
    color: white;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn:disabled:hover {
    background: var(--white);
    color: inherit;
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #FF9F43; /* Top Sellers color */
    transform: scale(1.2);
}

/* Responsive carousel items */
@media (min-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(33.333% - 14px); /* 3 items visible on tablet */
        min-width: calc(33.333% - 14px);
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(25% - 15px); /* 4 items visible on desktop */
        min-width: calc(25% - 15px);
    }
}

@media (min-width: 1440px) {
    .carousel-item {
        flex: 0 0 calc(20% - 16px); /* 5 items visible on large desktop */
        min-width: calc(20% - 16px);
    }
}

/* Carousel item styles (similar to product cards but adjusted) */
.carousel-item .product-image {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.carousel-item .product-info {
    padding: 15px;
}

.carousel-item .product-title {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.carousel-item .product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.carousel-item .add-to-cart {
    width: 100%;
    padding: 10px;
    font-size: 12px;
}

/* Touch scrolling for mobile */
.products-carousel {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality */
.carousel-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
/* Make all section header text white with better contrast */
#topSellersSection .section-header,
#flashSalesSection .section-header,
#phoneDealsSection .section-header,
#computingDealsSection .section-header,
#allProductsSection .section-header {
    color: white !important;
}

#topSellersSection .section-header .section-title,
#flashSalesSection .section-header .section-title,
#phoneDealsSection .section-header .section-title,
#computingDealsSection .section-header .section-title,
#allProductsSection .section-header .section-title {
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Ensure view-all links are visible on colored backgrounds */
#topSellersSection .section-header .view-all,
#flashSalesSection .section-header .view-all,
#phoneDealsSection .section-header .view-all,
#computingDealsSection .section-header .view-all,
#allProductsSection .section-header .view-all {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

#topSellersSection .section-header .view-all:hover,
#flashSalesSection .section-header .view-all:hover,
#phoneDealsSection .section-header .view-all:hover,
#computingDealsSection .section-header .view-all:hover,
#allProductsSection .section-header .view-all:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

/* Carousel buttons white on colored backgrounds */
#topSellersSection .section-header .carousel-btn {
    background: rgba(255,255,255,0.9);
    color: #FF9F43; /* Top Sellers color */
    border: 2px solid white;
}

#topSellersSection .section-header .carousel-btn:hover {
    background: white;
    color: #FF9F43;
    transform: scale(1.1);
}

/* Sale timer white text */
#flashSalesSection .section-header .sale-timer {
    color: white;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
}

/* Badge white text */
#blackFridaySection .section-header .badge {
    color: white;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
}

/* Ensure carousel controls are visible */
.carousel-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Make sure the original black friday stays white (no changes needed) */
#blackFridaySection .section-header {
    color: white;
}

#blackFridaySection .section-header .section-title {
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
/* Better visible colors for time counter, badges, and view-all links */

/* Sale Timer - Dark background for better visibility */
#flashSalesSection .section-header .sale-timer {
    color: white;
    background: linear-gradient(135deg, #2d3436, #636e72);
    border: 2px solid white;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Badge - Dark background for better visibility */
#blackFridaySection .section-header .badge {
    color: white;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: 2px solid white;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    padding: 8px 16px;
}

/* View All links - Dark background with contrast */
#topSellersSection .section-header .view-all,
#flashSalesSection .section-header .view-all,
#phoneDealsSection .section-header .view-all,
#computingDealsSection .section-header .view-all,
#allProductsSection .section-header .view-all {
    color: white !important;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

#topSellersSection .section-header .view-all:hover,
#flashSalesSection .section-header .view-all:hover,
#phoneDealsSection .section-header .view-all:hover,
#computingDealsSection .section-header .view-all:hover,
#allProductsSection .section-header .view-all:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #2d3436 !important;
    transform: translateX(5px);
    text-shadow: none;
}

/* Carousel buttons - More visible */
#topSellersSection .section-header .carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #FF9F43;
    border: 2px solid white;
    font-weight: bold;
    /* REMOVED: box-shadow: 0 2px 8px rgba(0,0,0,0.3); */
}

#topSellersSection .section-header .carousel-btn:hover {
    background: white;
    color: #FF9F43;
    transform: scale(1.1);
    /* REMOVED: box-shadow: 0 4px 12px rgba(0,0,0,0.4); */
}

/* Section titles with better text shadow for readability */
#topSellersSection .section-header .section-title,
#flashSalesSection .section-header .section-title,
#phoneDealsSection .section-header .section-title,
#computingDealsSection .section-header .section-title,
#allProductsSection .section-header .section-title {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 800;
}

/* Black Friday section - Keep white but enhance visibility */
#blackFridaySection .section-header .section-title {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 800;
}

/* Specific styling for each section's interactive elements */
#topSellersSection .section-header .view-all {
    background: rgba(255, 159, 67, 0.8);
}

#flashSalesSection .section-header .view-all {
    background: rgba(255, 107, 107, 0.8);
}

#phoneDealsSection .section-header .view-all {
    background: rgba(0, 206, 201, 0.8);
}

#computingDealsSection .section-header .view-all {
    background: rgba(162, 155, 254, 0.8);
}

#allProductsSection .section-header .view-all {
    background: rgba(245, 135, 49, 0.8);
}
/* Enhanced Search Styles */
.search-bar input:focus,
.mobile-search input:focus {
    border-color: var(--primary-color);
    /* REMOVED: box-shadow: 0 0 0 2px rgba(245, 135, 49, 0.2); */
    outline: none;
}

.search-bar button,
.mobile-search button {
    transition: all 0.3s ease;
}

.search-bar button:hover,
.mobile-search button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Search suggestions dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 4px 4px;
    /* REMOVED: box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
    z-index: 1000;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.search-suggestion-item:hover {
    background-color: var(--light-bg);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

/* Cart Count Badge - Fixed for mobile */
.cart-count {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    position: absolute;
    top: -5px;
    right: -5px;
    border: 2px solid white;
    /* REMOVED: box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}

/* Mobile cart icon fixes */
@media (max-width: 768px) {
    .mobile-actions .cart-link {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-actions .cart-count {
        position: absolute;
        top: -2px;
        right: -2px;
        width: 18px;
        height: 18px;
        font-size: 10px;
        border: 2px solid white;
    }
}

/* Ensure Desktop Cart Count Stays Circular */
.cart .cart-count {
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    font-size: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 5px !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    border: 2px solid white !important;
    /* REMOVED: box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    background: var(--primary-color) !important;
    color: white !important;
    line-height: 1 !important;
    padding: 0 !important;
}

/* Remove any transform that might be distorting the shape */
.mobile-actions .cart-count,
.cart .cart-count {
    transform: none !important;
}

/* ===== REDUCED WIDTH FOR PRODUCT SECTIONS ===== */
@media (min-width: 1200px) {
    .featured-section {
        max-width: 1100px; /* Slightly reduced from 1200px */
    }
    
    .products-grid {
        max-width: 1100px; /* Slightly reduced from 1200px */
    }
    
    .section-header {
        max-width: 1100px; /* Slightly reduced from 1200px */
    }
    
    .carousel-container {
        max-width: 1100px; /* Slightly reduced from 1200px */
    }
}

@media (min-width: 1400px) {
    .featured-section {
        max-width: 1000px; /* Further reduced for larger screens */
    }
    
    .products-grid {
        max-width: 1000px; /* Further reduced for larger screens */
    }
    
    .section-header {
        max-width: 1000px; /* Further reduced for larger screens */
    }
    
    .carousel-container {
        max-width: 1000px; /* Further reduced for larger screens */
    }
}

/* ===== REMOVE SHADOWS FROM SLIDER AND PRODUCTS ===== */
.hero-slider,
.slide,
.slide.active,
.product-card,
.product-card:hover,
.carousel-item,
.carousel-item:hover,
.carousel-btn,
.carousel-btn:hover {
    box-shadow: none !important;
}

/* Remove shadows from mobile slider specifically */
@media (max-width: 768px) {
    .hero-slider,
    .slide,
    .slide.active {
        box-shadow: none !important;
    }
}
/* ============================================= */
/* MOBILE PRODUCT GRID - 2 COLUMNS (LARGER & BETTER) */
/* ============================================= */

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
    
    .product-card {
        margin-bottom: 0;
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }
    
    .product-image {
        height: 200px !important;
        border-bottom: 1px solid var(--border-color);
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 15px;
        min-height: 2.8em;
        line-height: 1.4;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .product-price {
        font-size: 18px;
        margin-bottom: 8px;
        font-weight: 700;
        color: var(--primary-color);
    }
    
    .product-description {
        font-size: 13px;
        min-height: 2.6em;
        margin-bottom: 12px;
        color: #666;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .add-to-cart {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
        font-weight: 600;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        border: none;
        width: 100%;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .add-to-cart:hover {
        transform: translateY(-2px);
    }
    
    .product-category {
        font-size: 11px;
        padding: 4px 8px;
        margin-bottom: 8px;
        background: var(--light-bg);
        color: #666;
        border-radius: 12px;
    }
    
    .featured-badge {
        font-size: 10px;
        padding: 4px 8px;
        top: 8px;
        left: 8px;
        border-radius: 6px;
        font-weight: 600;
    }
    
    .original-price {
        font-size: 13px;
        color: #999;
        text-decoration: line-through;
        margin-right: 6px;
    }
    
    .discount {
        font-size: 10px;
        padding: 3px 6px;
        background: #ff6b6b;
        color: white;
        border-radius: 4px;
        font-weight: 600;
    }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }
    
    .product-image {
        height: 220px !important;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .product-price {
        font-size: 18px;
    }
}

/* Larger mobile screens */
@media (max-width: 768px) and (min-width: 481px) {
    .products-grid {
        gap: 20px;
    }
    
    .product-image {
        height: 220px !important;
    }
    
    .product-info {
        padding: 18px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .product-price {
        font-size: 20px;
    }
    
    .add-to-cart {
        padding: 14px;
        font-size: 15px;
    }
}

/* Small mobile screens - still good size */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px;
    }
    
    .product-image {
        height: 180px !important;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 14px;
        min-height: 3em;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .add-to-cart {
        padding: 10px;
        font-size: 13px;
    }
}

/* Very small screens - minimum size */
@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .product-image {
        height: 160px !important;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 13px;
        min-height: 3.2em;
    }
    
    .product-price {
        font-size: 15px;
    }
    
    .add-to-cart {
        padding: 9px;
        font-size: 12px;
    }
}

/* Ensure the 2-column layout overrides any previous styles */
@media (max-width: 768px) {
    /* Override any previous single-column styles */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Make sure no other media queries override this */
    .featured-section .products-grid,
    #flashSalesGrid,
    #blackFridayGrid,
    #phoneDealsGrid,
    #computingDealsGrid,
    #allProductsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Fix for section loading and empty states to span 2 columns */
@media (max-width: 768px) {
    .section-loading,
    .empty-section {
        grid-column: 1 / span 2 !important;
        padding: 40px 20px;
    }
    
    .section-loading .spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
    
    .empty-section i {
        font-size: 56px;
    }
    
    .empty-section h3 {
        font-size: 20px;
    }
}

/* Better spacing for product sections on mobile */
@media (max-width: 768px) {
    .featured-section {
        margin-bottom: 40px;
    }
    
    .section-header {
        margin-bottom: 25px;
        padding: 15px 20px;
    }
    
    .section-title {
        font-size: 22px;
    }
}
/* ============================================= */
/* MOBILE SLIDER - THREE VISIBLE SLIDES */
/* ============================================= */

@media (max-width: 768px) {
    .hero-slider {
        height: 180px !important;
        width: 100% !important;
        margin: 0 auto !important;
        left: 0 !important;
        transform: none !important;
        overflow: visible !important;
        padding: 0;
        border-radius: 0;
    }

    .slider-container {
        display: flex;
        height: 100%;
        align-items: center;
        gap: 6px; /* Gap between slides */
        transition: transform 0.4s ease;
        will-change: transform;
        padding: 0 10px; /* Reduced padding to show more slides */
    }

    .slide {
        position: relative;
        flex: 0 0 auto;
        width: 70vw !important; /* Much smaller to fit three slides */
        height: 160px !important;
        opacity: 1 !important;
        transition: all 0.3s ease;
        border-radius: 8px;
        overflow: hidden;
        margin: 0 !important;
        flex-shrink: 0;
    }

    /* Active slide - slightly larger but still small */
    .slide.active {
        width: 75vw !important; /* Only slightly larger than side slides */
        height: 170px !important;
        transform: scale(1.02); /* Very subtle scale */
        z-index: 3;
        opacity: 1 !important;
    }

    /* Side slides - fully visible but smaller */
    .slide:not(.active) {
        opacity: 0.6 !important; /* More transparent to distinguish from active */
        transform: scale(0.98); /* Very close to active size */
        z-index: 2;
    }

    /* Ensure all images are fully visible */
    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 8px;
    }

    /* Dots positioning */
    .slider-dots {
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        z-index: 10;
        background: rgba(0,0,0,0.4);
        padding: 6px 12px;
        border-radius: 20px;
    }

    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(255,255,255,0.6);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dot.active {
        background-color: var(--white);
        transform: scale(1.2);
    }
}

/* Tablet and larger mobile optimization */
@media (max-width: 768px) and (min-width: 481px) {
    .hero-slider {
        height: 200px !important;
    }

    .slider-container {
        padding: 0 15px;
        gap: 8px;
    }

    .slide {
        width: 65vw !important;
        height: 180px !important;
    }

    .slide.active {
        width: 70vw !important;
        height: 190px !important;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero-slider {
        height: 160px !important;
    }

    .slider-container {
        padding: 0 8px;
        gap: 5px;
    }

    .slide {
        width: 65vw !important;
        height: 140px !important;
    }

    .slide.active {
        width: 70vw !important;
        height: 150px !important;
    }
}

/* Very small phones - make even smaller to ensure three fit */
@media (max-width: 360px) {
    .hero-slider {
        height: 150px !important;
    }

    .slider-container {
        padding: 0 5px;
        gap: 4px;
    }

    .slide {
        width: 60vw !important; /* Even smaller for very small screens */
        height: 130px !important;
    }

    .slide.active {
        width: 65vw !important;
        height: 140px !important;
    }
}

/* Remove gradients since we can see all slides now */
.hero-slider::before,
.hero-slider::after {
    display: none !important;
}

/* Ensure proper alignment to see left slide */
@media (max-width: 768px) {
    .slider-container {
        justify-content: center; /* Center the slides for better balance */
    }
    
    /* Make sure first slide is visible on left */
    .slide:first-child {
        margin-left: 0 !important;
    }
}
/* ============================================= */
/* TOP BANNER - MOBILE FIX (EXTRA SMALL) */
/* ============================================= */

@media (max-width: 768px) {
    .top-bar {
        background-image: url('asset/img/strip.gif') !important;
        background-size: cover !important; /* Use cover to ensure full coverage */
        background-repeat: no-repeat !important;
        background-position: center center !important;
        height: 27px !important; /* Much smaller height */
        padding: 2px 0 !important; /* Minimal padding */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden; /* Prevent any overflow */
    }

    .top-bar .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important; /* Minimal padding */
        margin: 0 !important;
    }

    .top-links {
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        width: 100% !important;
        gap: 8px !important; /* Smaller gap */
        margin: 0 !important;
        padding: 0 !important;
    }

    .top-links a {
        font-size: 0 !important;
        color: transparent !important;
        text-shadow: none !important;
        flex: 1 !important;
        text-align: center !important;
        padding: 2px 4px !important; /* Minimal padding */
        border-radius: 3px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        min-height: 18px !important; /* Smaller minimum height */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    /* Show dots for links */
    .top-links a::after {
        content: "•" !important;
        font-size: 12px !important; /* Smaller dots */
        color: var(--white) !important;
        opacity: 0.8 !important;
        font-weight: bold !important;
    }

    .top-links a:last-child::after {
        content: "" !important;
    }

    /* Adjust header spacing */
    .mobile-header {
        top: 25px !important;
    }

    .desktop-header {
        top: 25px !important;
    }

    .main-content {
        margin-top: 25px !important;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .top-bar {
        height: 22px !important; /* Even smaller */
        padding: 1px 0 !important;
    }

    .top-links {
        gap: 5px !important;
    }

    .top-links a {
        padding: 1px 3px !important;
        min-height: 16px !important;
    }

    .top-links a::after {
        font-size: 10px !important;
    }

    .mobile-header {
        top: 22px !important;
    }

    .desktop-header {
        top: 22px !important;
    }

    .main-content {
        margin-top: 22px !important;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .top-bar {
        height: 20px !important; /* Smallest possible */
        padding: 0 !important;
    }

    .top-links {
        gap: 3px !important;
    }

    .top-links a {
        padding: 1px 2px !important;
        min-height: 14px !important;
    }

    .top-links a::after {
        font-size: 9px !important;
    }

    .mobile-header {
        top: 20px !important;
    }

    .desktop-header {
        top: 20px !important;
    }

    .main-content {
        margin-top: 20px !important;
    }
}

/* Landscape mode - even smaller */
@media (max-width: 768px) and (orientation: landscape) {
    .top-bar {
        height: 20px !important;
        padding: 1px 0 !important;
    }

    .mobile-header {
        top: 20px !important;
    }

    .desktop-header {
        top: 20px !important;
    }

    .main-content {
        margin-top: 20px !important;
    }
}

/* Hide/show functionality */
@media (max-width: 768px) {
    .top-bar.hide {
        transform: translateY(-100%) !important;
    }

    .top-bar.hide ~ .mobile-header {
        top: 0 !important;
    }

    .top-bar.hide ~ .desktop-header {
        top: 0 !important;
    }

    .top-bar.hide ~ .main-content {
        margin-top: 0 !important;
    }
}

/* Force the background to fit */
@media (max-width: 768px) {
    .top-bar {
        background-attachment: scroll !important;
        /* If still cutting, try contain instead of cover */
        /* background-size: contain !important; */
    }
}

/* ============================================= */
/* MOBILE FIXES - PREVENT HORIZONTAL SCROLLING */
/* ============================================= */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Ensure all containers don't exceed viewport width */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Make product sections full width */
    .featured-section {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    /* Make section headers full width with reduced height */
    .section-header {
        width: 100vw;
        max-width: 100vw;
        margin-left: -15px;
        margin-right: -15px;
        padding: 10px 20px;
        min-height: 50px;
        height: auto;
        border-radius: 0;
    }
    
    /* Reduce font sizes for section titles */
    .section-title {
        font-size: 18px !important;
    }
    
    /* Make products grid full width */
    .products-grid {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
    
    /* Ensure product cards don't cause overflow */
    .product-card {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix carousel container width */
    .carousel-container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ============================================= */
/* SECTION HEADER BACKGROUND EXTENSION - MOBILE */
/* ============================================= */
@media (max-width: 768px) {
    /* Extend section header backgrounds to full width */
    #topSellersSection .section-header,
    #flashSalesSection .section-header,
    #blackFridaySection .section-header,
    #phoneDealsSection .section-header,
    #computingDealsSection .section-header,
    #allProductsSection .section-header {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding: 8px 20px;
        min-height: 45px;
    }
    
    /* Further reduce font sizes for mobile */
    .section-title {
        font-size: 16px !important;
    }
    
    /* Adjust other elements in section headers */
    .sale-timer,
    .badge,
    .view-all {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }
    
    .carousel-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
}

/* ============================================= */
/* FULL WIDTH PRODUCT GRIDS - MOBILE */
/* ============================================= */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    .product-card {
        width: 100%;
        margin: 0;
    }
    
    /* Ensure no horizontal overflow */
    .featured-sections {
        width: 100%;
        overflow: hidden;
    }
    
    .featured-section {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
}

/* Extra small screens optimization */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 0 5px;
    }
    
    .section-header {
        padding: 6px 15px !important;
        min-height: 40px !important;
    }
    
    .section-title {
        font-size: 15px !important;
    }
}

/* Very small screens - ensure everything fits */
@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        padding: 0 3px;
    }
    
    .product-info {
        padding: 10px !important;
    }
    
    .product-title {
        font-size: 12px !important;
    }
    
    .product-price {
        font-size: 14px !important;
    }
    
    .section-header {
        padding: 5px 12px !important;
        min-height: 35px !important;
    }
    
    .section-title {
        font-size: 14px !important;
    }
}

/* ============================================= */
/* MOBILE HEADER STICKY FIX */
/* ============================================= */
@media (max-width: 768px) {
    .mobile-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background-color: var(--white) !important;
        border-bottom: 1px solid var(--border-color) !important;
        transition: top 0.3s ease-in-out !important;
    }

    .top-bar:not(.hide) ~ .mobile-header {
        top: 40px !important; /* Height of top bar */
    }

    .top-bar.hide ~ .mobile-header {
        top: 0 !important;
    }
}

/* ============================================= */
/* MOBILE PRODUCT GRID FULL WIDTH - NO SPACING */
/* ============================================= */
@media (max-width: 768px) {
    .featured-sections {
        padding: 20px 0 !important;
    }

    .featured-section {
        margin-bottom: 40px !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 4px !important;
        margin: 0 !important;
    }

    .product-card {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 8px !important;
        border: 1px solid var(--border-color) !important;
    }

    .product-info {
        padding: 10px !important;
    }

    /* Reduce line spacing for product text */
    .product-title {
        font-size: 13px !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
        min-height: 2.4em !important;
    }

    .product-price {
        font-size: 14px !important;
        line-height: 1.1 !important;
        margin-bottom: 4px !important;
    }

    .product-description {
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
        min-height: 2.2em !important;
    }

    .product-category {
        font-size: 9px !important;
        padding: 2px 6px !important;
        margin-bottom: 6px !important;
        line-height: 1.1 !important;
    }

    .add-to-cart {
        padding: 8px !important;
        font-size: 11px !important;
        line-height: 1.1 !important;
    }

    .product-image {
        height: 150px !important;
    }
}

/* Extra small screens - even more compact */
@media (max-width: 480px) {
    .products-grid {
        gap: 6px !important;
        padding: 0 2px !important;
    }

    .product-info {
        padding: 8px !important;
    }

    .product-title {
        font-size: 12px !important;
        line-height: 1.1 !important;
        min-height: 2.2em !important;
    }

    .product-price {
        font-size: 13px !important;
        line-height: 1 !important;
    }

    .product-description {
        font-size: 10px !important;
        line-height: 1.1 !important;
        min-height: 2em !important;
    }

    .product-image {
        height: 140px !important;
    }

    .add-to-cart {
        padding: 6px !important;
        font-size: 10px !important;
    }
}

/* Very small screens - maximum compact */
@media (max-width: 360px) {
    .products-grid {
        gap: 4px !important;
        padding: 0 1px !important;
    }

    .product-info {
        padding: 6px !important;
    }

    .product-title {
        font-size: 11px !important;
        line-height: 1 !important;
        min-height: 2em !important;
    }

    .product-price {
        font-size: 12px !important;
    }

    .product-description {
        font-size: 9px !important;
        line-height: 1 !important;
        min-height: 1.8em !important;
    }

    .product-image {
        height: 130px !important;
    }

    .add-to-cart {
        padding: 5px !important;
        font-size: 9px !important;
    }
}

/* ============================================= */
/* SECTION HEADER MOBILE FIX */
/* ============================================= */
@media (max-width: 768px) {
    .section-header {
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        padding: 8px 15px !important;
        min-height: 40px !important;
        height: auto !important;
        border-radius: 0 !important;
        margin-bottom: 20px !important;
    }

    .section-title {
        font-size: 16px !important;
        line-height: 1.1 !important;
    }

    .sale-timer,
    .badge,
    .view-all {
        font-size: 10px !important;
        padding: 3px 6px !important;
        line-height: 1 !important;
    }

    .carousel-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 10px !important;
    }
}
/* FINAL CLEAN SOLUTION */
@media (max-width: 768px) {
    .mobile-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background-color: var(--white) !important;
    }
    
    .top-bar:not(.hide) ~ .mobile-header {
        top: 20px !important;
    }
    
    /* Adjust these values based on your actual header height */
    .main-content {
        margin-top: 120px !important; /* Adjust this number */
    }
    
    .top-bar:not(.hide) ~ .main-content {
        margin-top: 160px !important; /* Adjust this number */
    }
}
/* STABILIZE TOP BAR BEHAVIOR */
@media (max-width: 768px) {
    .top-bar {
        position: fixed !important;
        top: 0 !important;
        transform: translateY(0) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .top-bar.hide {
        transform: translateY(-100%) !important;
    }
    
    /* Mobile header always stays below top bar */
    .mobile-header {
        position: fixed !important;
        top: 40px !important; /* Always below top bar */
        transform: translateY(0) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .top-bar.hide ~ .mobile-header {
        top: 0 !important;
    }
    
    /* Main content spacing */
    .main-content {
        margin-top: 160px !important; /* top-bar + mobile-header */
        transition: margin-top 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .top-bar.hide ~ .main-content {
        margin-top: 120px !important; /* mobile-header only */
    }
}
