/* ============================================
   CATEGORY PAGE - MOBILE OPTIMIZED CSS
   File: /wp-content/themes/YOUR-THEME/assets/css/category-mobile.css
   ============================================ */

/* ============================================
   ANTI-FOUC - PREVENTS BANNER FLASHING
   ============================================ */
@media (max-width: 768px) {
    .banner-desktop {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    .banner-mobile {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .banner-mobile {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    .banner-desktop {
        display: block !important;
    }
}

/* ============================================
   GLOBAL RESETS
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

.site, .site-content, #content, .content-area, main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ============================================
   CONTAINER
   ============================================ */
.noon-style-category .container-wide {
    max-width: 1600px;
    width: 95%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   PRODUCT NAME FIX - 2 LINES WITH ELLIPSIS
   ============================================ */
.noon-product-title,
h2.woocommerce-loop-product__title,
.woocommerce-loop-product__title {
    display: block !important;
    -webkit-box-orient: unset !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin-bottom: 10px !important;
}

/* ============================================
   CATEGORY PRODUCTS LAYOUT
   ============================================ */
.category-products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    width: 100%;
}

.products-area {
    width: 100%;
    min-width: 0;
}

/* Products Grid - 6 Columns for Parent Category */
.products-grid-6-cols {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    width: 100%;
}

/* Products Grid - 4 Columns for Subcategory */
.products-grid-listing {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

/* Product Cards */
.phst-noon-card,
li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   CLEAN MINIMAL BEST SELLING SECTION
   ============================================ */

/* Best Selling Section - Clean White */
.best-selling-section {
    background: #fff !important;
    padding: 40px !important;
    border-radius: 16px !important;
    margin-bottom: 40px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

/* Title - Simple Black */
.best-selling-section .section-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    letter-spacing: -0.5px !important;
    margin: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif !important;
}

/* Fire Emoji */
.best-selling-section .section-title::before {
    content:  !important;
    margin-right: 10px !important;
    font-size: 28px !important;
}

/* Section Header */
.best-selling-section .section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 28px !important;
}

/* Scroll Buttons - Minimal Gray */
.scroll-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.scroll-btn:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

.scroll-btn:active {
    transform: scale(0.95) !important;
}

.scroll-btn svg {
    width: 16px !important;
    height: 16px !important;
    fill: #4b5563 !important;
}

.scroll-controls {
    display: flex !important;
    gap: 10px !important;
}

/* Product Cards - Clean White */
.best-selling-product-item .noon-product-box {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
}

.best-selling-product-item .noon-product-box:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    border-color: #d1d5db !important;
}

/* Product Title */
.best-selling-product-item .noon-product-title {
    color: #1a1a1a !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* Price - Simple Black */
.best-selling-product-item .noon-selling-price {
    color: #1a1a1a !important;
    font-weight: 800 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif !important;
}

/* Free Delivery Badge - Gray */
.best-selling-product-item .noon-free-delivery {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif !important;
}

/* Get It Today Button - Black */
.best-selling-product-item .noon-get-it-btn {
    background: #1a1a1a !important;
    color: #fff !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
}

.best-selling-product-item .noon-get-it-btn:hover {
    background: #000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.best-selling-product-item .noon-get-it-btn:active {
    transform: translateY(0) !important;
}

/* Product Image Area */
.best-selling-product-item .noon-image-section {
    background: #f9fafb !important;
}

/* Best Selling Products Scroll */
.best-selling-products-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

/* Hide Scrollbar */
.best-selling-products-scroll::-webkit-scrollbar,
.brands-scroll-container::-webkit-scrollbar {
    display: none;
}

.best-selling-products-scroll,
.brands-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.best-selling-product-item {
    flex: 0 0 auto;
    width: calc((100% - 100px) / 6);
}

/* ============================================
   CATEGORY ICONS GRID
   ============================================ */
.category-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.category-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 15px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.category-icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #e5e7eb;
}

.category-icon-image {
    width: 80px;
    height: 80px;
    background: #f9fafb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
    padding: 10px;
}

/* Mobile Filter Bar - Hidden on Desktop */
.mobile-filter-bar {
    display: none;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large Desktop (1200px - 1440px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .products-grid-6-cols {
        grid-template-columns: repeat(5, 1fr) !important;
    }
    
    .best-selling-product-item {
        width: calc((100% - 60px) / 4) !important;
    }
}

/* Desktop/Tablet (1024px - 1199px) */
@media (max-width: 1199px) {
    .category-products-layout {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }
    
    .products-grid-listing {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .products-grid-6-cols {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .products-grid-6-cols {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .best-selling-section {
        padding: 30px 20px;
    }
    
    .best-selling-product-item {
        width: calc((100% - 40px) / 3) !important;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .category-products-layout {
        grid-template-columns: 1fr;
    }
    
    .category-sidebar {
        display: none;
    }
    
    .products-grid-listing {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .mobile-filter-bar {
        display: block !important;
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS - CRITICAL
   ============================================ */
@media (max-width: 768px) {
    /* Remove all spacing */
    body, html {
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .noon-style-category .container-wide {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        margin: 0 !important;
    }
    
    /* ===== MOBILE HEADER WITH SEARCH ===== */
    .myntra-header {
        background: #fce30f !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    .myntra-header .main-header {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        padding: 12px 15px !important;
        gap: 12px !important;
    }
    
    /* Logo */
    .myntra-header .myntra-logo {
        width: 140px !important;
        height: 40px !important;
        order: 1 !important;
        flex-shrink: 0 !important;
    }
    
    .myntra-header .myntra-logo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
    
    /* Menu Toggle Button */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        order: 2 !important;
        margin-left: auto !important;
        background: rgba(0,0,0,0.05) !important;
        border: none !important;
        border-radius: 8px !important;
        font-size: 24px !important;
        color: #1a1a1a !important;
        padding: 8px 12px !important;
        cursor: pointer !important;
    }
    
    /* Search Bar - Full Width Second Row */
    .myntra-header .search-wrapper {
        display: block !important;
        order: 3 !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .myntra-header .search-input-container {
        width: 100% !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        background: #fff !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        border: 1px solid rgba(0,0,0,0.06) !important;
    }
    
    .myntra-header .search-input {
        width: 100% !important;
        padding: 12px 45px 12px 15px !important;
        border: none !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        outline: none !important;
    }
    
    .myntra-header .search-input::placeholder {
        color: #999 !important;
    }
    
    .myntra-header .search-btn {
        position: absolute !important;
        right: 0 !important;
        background: transparent !important;
        border: none !important;
        padding: 12px 15px !important;
        cursor: pointer !important;
        color: #666 !important;
        font-size: 20px !important;
    }
    
    .myntra-header .search-clear-btn {
        display: none !important;
    }
    
    /* Hide Desktop Elements */
    .myntra-header .location-selector,
    .myntra-header .header-actions {
        display: none !important;
    }
    
    /* Hide Categories Nav */
    .myntra-header .categories-nav {
        display: none !important;
    }
    
    /* ===== MOBILE BOTTOM NAVIGATION ===== */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        border-top: 1px solid #e5e7eb !important;
        z-index: 999 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.08) !important;
        padding: 8px 0 !important;
    }
    
    .mobile-bottom-nav .nav-container {
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 600px !important;
        margin: 0 auto !important;
    }
    
    .mobile-bottom-nav .nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: #666 !important;
        font-size: 11px !important;
        padding: 4px 12px !important;
        position: relative !important;
        transition: color 0.2s ease !important;
    }
    
    .mobile-bottom-nav .nav-item.active {
        color: #1a1a1a !important;
    }
    
    .mobile-bottom-nav .nav-item i {
        font-size: 22px !important;
        margin-bottom: 4px !important;
    }
    
    .mobile-bottom-nav .nav-item span {
        font-size: 11px !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
    }
    
    /* Cart Badge */
    .mobile-bottom-nav .cart-badge-mobile::after {
        content: attr(data-cart-count) !important;
        position: absolute !important;
        top: -2px !important;
        right: 8px !important;
        background: #ef4444 !important;
        color: #fff !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        min-width: 18px !important;
        height: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 2px 4px !important;
        border: 2px solid #fff !important;
    }
    
    /* Hide badge if cart is empty */
    .mobile-bottom-nav .cart-badge-mobile[data-cart-count="0"]::after {
        display: none !important;
    }
    
    /* Add padding to body for fixed nav */
    body {
        padding-bottom: 65px !important;
    }
    
    /* ===== CATEGORY DRAWER ===== */
    .category-drawer {
        position: fixed !important;
        right: -100% !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 85% !important;
        max-width: 350px !important;
        background: #fff !important;
        z-index: 10000 !important;
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
        box-shadow: -2px 0 15px rgba(0,0,0,0.2) !important;
    }
    
    .category-drawer.open {
        right: 0 !important;
    }
    
    .category-drawer-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0,0,0,0.5) !important;
        z-index: 9999 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }
    
    .category-drawer-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .category-drawer-header {
        padding: 18px 20px !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: #fce30f !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
    }
    
    .category-drawer-header h3 {
        font-size: 18px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        color: #1a1a1a !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .category-drawer-close {
        background: transparent !important;
        border: none !important;
        font-size: 24px !important;
        color: #1a1a1a !important;
        cursor: pointer !important;
        padding: 4px !important;
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Category List */
    .category-list {
        padding: 10px 0 !important;
    }
    
    .category-list-item {
        border-bottom: 1px solid #f3f4f6 !important;
    }
    
    .category-list-item > a {
        padding: 14px 20px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        color: #1a1a1a !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
    }
    
    .category-list-item > a:hover {
        background: #f9fafb !important;
    }
    
    /* Subcategory List */
    .subcategory-list {
        display: none !important;
        background: #f9fafb !important;
        padding: 5px 0 !important;
    }
    
    .category-list-item.expanded .subcategory-list {
        display: block !important;
    }
    
    .subcategory-list-item a {
        padding: 10px 20px 10px 40px !important;
        display: block !important;
        color: #666 !important;
        font-size: 13px !important;
        text-decoration: none !important;
    }
    
    /* ===== PRODUCTS GRID - 2 COLUMNS MOBILE ===== */
    .products-grid-listing,
    .products-grid-6-cols,
    .phst-products-grid,
    ul.products,
    .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }
    
    /* Product Cards - Full Width in Column */
    .phst-noon-card,
    li.product,
    .product {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }
    
    .noon-product-wrapper {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .noon-product-box {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        border: 1px solid #f0f0f0 !important;
    }
    
    /* Product Images */
    .noon-image-section {
        width: 100% !important;
        height: 160px !important;
        background: #f9f9f9 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px 8px 0 0 !important;
    }
    
    .noon-image-inner {
        width: 100% !important;
        height: 100% !important;
        padding: 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .noon-product-image,
    .woocommerce-loop-product__link img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }
    
    /* Product Details */
    .noon-details-section {
        padding: 8px !important;
    }
    
    /* Product Title Mobile */
    .noon-product-title,
    h2.woocommerce-loop-product__title {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.35 !important;
        height: auto !important;
        min-height: 33px !important;
        max-height: 35px !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #1a1a1a !important;
        margin-bottom: 6px !important;
    }
    
    /* Price Mobile */
    .noon-price-row {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-bottom: 6px !important;
    }
    
    .noon-selling-price {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
    }
    
    .noon-currency {
        display: inline-flex !important;
        align-items: center !important;
    }
    
    .noon-currency img {
        width: 10px !important;
        height: 10px !important;
        margin-right: 2px !important;
    }
    
    /* ===== BEST SELLING SECTION MOBILE ===== */
    .best-selling-section {
        padding: 24px 16px !important;
        margin: 0 -10px 24px -10px !important;
        border-radius: 0 !important;
        background: #fff !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid #e5e7eb !important;
        border-bottom: 1px solid #e5e7eb !important;
        box-shadow: none !important;
    }
    
    .best-selling-section .section-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
        padding: 0 5px !important;
    }
    
    .best-selling-section .section-title {
        font-size: 18px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        color: #1a1a1a !important;
    }
    
    .best-selling-section .section-title::before {
        font-size: 20px !important;
        margin-right: 6px !important;
    }
    
    /* CRITICAL: Show 3+ products in horizontal scroll */
    .best-selling-products-scroll {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        padding: 10px 5px !important;
        margin: 0 !important;
    }
    
    /* Product items in horizontal scroll */
    .best-selling-product-item {
        flex: 0 0 auto !important;
        width: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
        scroll-snap-align: start !important;
        display: block !important;
    }
    
    /* Product card inside best selling */
    .best-selling-product-item .phst-noon-card,
    .best-selling-product-item li.product,
    .best-selling-product-item .product {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    /* Hide scrollbar but keep scroll functionality */
    .best-selling-products-scroll::-webkit-scrollbar {
        display: none !important;
    }
    
    .best-selling-products-scroll {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    
    .scroll-controls {
        display: none !important;
    }
    
    /* Best Selling Product Names - Smaller */
    .best-selling-product-item .noon-product-title,
    .best-selling-product-item h2.woocommerce-loop-product__title {
        font-size: 11px !important;
        line-height: 1.3 !important;
        min-height: 29px !important;
        max-height: 30px !important;
        color: #1a1a1a !important;
    }
    
    /* Best Selling Image - Smaller */
    .best-selling-product-item .noon-image-section {
        height: 140px !important;
        background: #f9fafb !important;
    }
    
    /* Best Selling Price - Smaller */
    .best-selling-product-item .noon-selling-price {
        font-size: 14px !important;
        color: #1a1a1a !important;
    }
    
    /* Best Selling Button */
    .best-selling-product-item .noon-get-it-btn {
        background: #1a1a1a !important;
        border-radius: 8px !important;
        padding: 9px 14px !important;
        font-size: 12px !important;
    }
    
    /* Best Selling Badge */
    .best-selling-product-item .noon-free-delivery {
        background: #f3f4f6 !important;
        color: #4b5563 !important;
    }
    
    /* ===== CATEGORY ICONS MOBILE ===== */
    .category-icons-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    
    .category-icon-card {
        padding: 10px 8px !important;
    }
    
    .category-icon-image {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 8px !important;
    }
    
    .category-icon-card h3 {
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin: 0 0 3px 0 !important;
    }
    
    .category-icon-card span {
        font-size: 10px !important;
    }
    
    /* Shop By Brand Mobile */
    .shop-by-brand-section {
        margin: 0 -10px 25px -10px !important;
        padding: 15px 10px !important;
        background: #FBFBFB !important;
    }
    
    .brands-scroll-container {
        display: flex !important;
        gap: 12px !important;
        overflow-x: auto !important;
        padding: 10px 0 !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .brand-logo-item {
        flex: 0 0 auto !important;
    }
    
    .brand-logo-card {
        width: 120px !important;
        height: 70px !important;
        padding: 10px !important;
    }
    
    /* Section Headers Mobile */
    .section-header {
        margin-bottom: 15px !important;
    }
    
    .section-title {
        font-size: 18px !important;
    }
    
    .view-all-btn {
        font-size: 13px !important;
        padding: 8px 16px !important;
    }
    
    /* Breadcrumb Mobile */
    .breadcrumb-container {
        padding: 12px 0 !important;
        font-size: 12px !important;
    }
    
    /* Nudges Mobile */
    .noon-nudges-container {
        height: 22px !important;
        overflow: hidden !important;
        margin-top: 8px !important;
    }
    
    .noon-nudge-item {
        font-size: 10px !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }
    
    .noon-nudge-item img {
        width: 12px !important;
        height: 12px !important;
    }
    
    /* Superfast Ribbon Mobile */
    .noon-superfast-ribbon {
        padding: 6px 8px !important;
        margin-top: 8px !important;
    }
    
    .noon-superfast-ribbon > div {
        width: 16px !important;
        height: 16px !important;
    }
    
    .noon-superfast-ribbon img {
        width: 8px !important;
    }
    
    .noon-superfast-text {
        font-size: 9px !important;
        font-weight: 600 !important;
    }
    
    /* ===== MOBILE FILTER BAR ===== */
    .mobile-filter-bar {
        background: #fff !important;
        border-bottom: 1px solid #e5e7eb !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 99 !important;
        margin: 0 -10px 15px -10px !important;
        width: calc(100% + 20px) !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    }
    
    .mobile-filter-bar > div {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        padding: 12px 0 !important;
    }
    
    .mobile-filter-btn,
    .mobile-sort-btn,
    .mobile-view-btn {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 8px !important;
        color: #666 !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        transition: color 0.2s ease !important;
    }
    
    .mobile-filter-btn:active,
    .mobile-sort-btn:active,
    .mobile-view-btn:active {
        color: #1a1a1a !important;
    }
    
    .mobile-filter-btn p,
    .mobile-sort-btn p,
    .mobile-view-btn p {
        margin: 0 !important;
    }
    
    .mobile-sort-btn {
        border-left: 1px solid #e5e7eb !important;
        border-right: 1px solid #e5e7eb !important;
    }
}

/* ============================================
   EXTRA SMALL PHONES (< 400px)
   ============================================ */
@media (max-width: 400px) {
    .noon-image-section {
        height: 160px !important;
    }
    
    .noon-product-title {
        font-size: 12px !important;
        min-height: 32px !important;
        max-height: 35px !important;
    }
    
    .best-selling-product-item {
        width: 145px !important;
        min-width: 145px !important;
    }
    
    .category-icons-grid {
        gap: 8px !important;
    }
    
    .category-icon-image {
        width: 55px !important;
        height: 55px !important;
    }
}

/* ============================================
   DESKTOP - HIDE MOBILE ELEMENTS
   ============================================ */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-filter-bar {
        display: none !important;
    }
}

/* ============================================
   PREVENT LAYOUT SHIFT
   ============================================ */
@media (max-width: 768px) {
    * {
        box-sizing: border-box !important;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    h1, h2, h3, h4, h5, h6, p, span, a {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* ============================================
   SMOOTH ANIMATIONS
   ============================================ */
* {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.best-selling-product-item,
.best-selling-product-item * {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
