
    /* ===========================
       ALL PRODUCTS PAGE STYLES
       =========================== */
    
    .all-products-container {
        padding-top: 10px; /* Space for fixed header */
        padding-bottom: 120px; /* Space for bottom nav */
        min-height: 100vh;
    }

    /* --- 1. Page Title --- */
    .ap-title-section { margin-bottom: 20px; padding: 0 5px; }
    .ap-title { font-size: 26px; font-weight: 800; line-height: 1.3; color: var(--dark-text); }
    .ap-title span { color: #ffae00; }

    /* --- 2. Search & Filter Row --- */
    .ap-search-row { display: flex; gap: 12px; margin-bottom: 20px; }
    .ap-search-box {
        flex: 1; background: var(--white); border-radius: 16px; padding: 12px 15px;
        display: flex; align-items: center; box-shadow: var(--card-shadow);
    }
    .ap-search-box input { border: none; outline: none; width: 100%; margin-left: 10px; font-size: 14px; }
    .ap-filter-btn {
        width: 50px; height: 50px; background: #ffae00; border-radius: 16px;
        display: flex; align-items: center; justify-content: center;
        color: white; font-size: 18px; cursor: pointer;
        box-shadow: 0 5px 15px rgba(255, 178, 77, 0.3); transition: 0.2s;
    }
    .ap-filter-btn:active { transform: scale(0.95); }

    /* --- 3. Categories (Pill Design) --- */
    /* This is the static wrapper on the page */
    .ap-categories-wrapper { margin-bottom: 10px; min-height: 60px; } 
    
    .ap-section-label {
        font-size: 18px; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; gap: 8px;
    }
    .ap-section-label span { color: #ffae00; font-size: 12px; background: #FFF0F0; padding: 2px 8px; border-radius: 8px; }

    .ap-cat-scroll {
        display: flex; gap: 12px; overflow-x: auto; padding: 5px 5px 15px 5px;
        scrollbar-width: none;
    }
    .ap-cat-scroll::-webkit-scrollbar { display: none; }

    .ap-cat-pill {
        display: flex; align-items: center; gap: 8px; flex-shrink: 0;
        background: var(--white); padding: 5px 16px 5px 10px;
        border-radius: 50px; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        cursor: pointer; transition: all 0.3s ease;
        white-space: nowrap; border: 1px solid transparent;
    }
    
    .ap-cat-icon {
        width: 30px; height: 30px; background: #FFF8E1; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
    }
    .ap-cat-icon img { width: 18px; height: 18px; object-fit: contain; }
    .ap-cat-name { font-size: 14px; font-weight: 600; color: var(--dark-text); }

    .ap-cat-pill.active { background: #ffae00; box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3); }
    .ap-cat-pill.active .ap-cat-icon { background: var(--white); }
    .ap-cat-pill.active .ap-cat-name { color: var(--white); }

    /* --- STICKY CATEGORY BAR (Hidden Clone) --- */
    #stickyCategoryBar {
        position: fixed;
        top: 62px; /* Below Header */
        left: 0; width: 100%;
        background: var(--bg-body); /* Match body to hide content behind */
       padding-top:5px;
        z-index: 990;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        
        /* Animation Props */
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                    opacity 0.3s ease, 
                    visibility 0.4s;
    }
    
    /* Visible State */
    #stickyCategoryBar.visible {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }


    /* --- 4. Filter Modal (Fixed Button Design) --- */
    .filter-modal {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.6); z-index: 2000; display: none;
        align-items: flex-end; opacity: 0; transition: opacity 0.3s;
        backdrop-filter: blur(4px);
    }
    .filter-modal.active { display: flex; opacity: 1; }
    
    /* Modal Container */
    .filter-content {
        background: var(--white); width: 100%; border-radius: 35px 35px 0 0;
        height: 85vh; /* Fixed height for internal scrolling */
        display: flex; flex-direction: column; /* Stack layout */
        transform: translateY(100%); 
        transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    }
    .filter-modal.active .filter-content { transform: translateY(0); }

    /* Scrollable Middle Area */
    .filter-body {
        flex: 1; overflow-y: auto; padding: 30px 25px 20px 25px;
    }

    /* Fixed Bottom Button Area */
    .filter-footer {
        padding: 20px 25px 30px 25px;
        background: var(--white);
        border-top: 1px solid #f5f5f5;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    }

    .filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
    .filter-title { font-size: 22px; font-weight: 800; margin: 0; color: var(--dark-text); }
    .filter-reset { color: var(--primary-orange); font-size: 14px; font-weight: 600; cursor: pointer; }

    .filter-group { margin-bottom: 30px; }
    .fg-title { font-size: 16px; font-weight: 700; margin-bottom: 15px; display: block; color: var(--dark-text); }
    
    /* Horizontal Scroll Rows for Filter */
    .filter-scroll-row {
        display: flex; gap: 10px; overflow-x: auto; 
        padding-bottom: 5px; scrollbar-width: none;
    }
    .filter-scroll-row::-webkit-scrollbar { display: none; }

    /* Filter Items (Reusing previous styles) */
    .f-cat-pill {
        display: flex; align-items: center; gap: 8px; flex-shrink: 0;
        padding: 6px 14px 6px 6px; border-radius: 30px;
        background: #F5F5F8; border: 1px solid transparent;
        transition: 0.2s; cursor: pointer;
    }
    .f-cat-pill.active { background: #ffae00; color: white; box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3); }
    .f-cat-icon { width: 28px; height: 28px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
    .f-cat-icon img { width: 16px; height: 16px; object-fit: contain; }
    .f-cat-name { font-size: 13px; font-weight: 600; }
    .f-cat-pill.active .f-cat-name { color: white; }
    .f-cat-pill.active .f-cat-icon { color: #ffae00; }

    .f-ing-item {
        width: 55px; height: 55px; border-radius: 50%; flex-shrink: 0;
        background: #F5F5F8; display: flex; align-items: center; justify-content: center;
        cursor: pointer; position: relative; border: 2px solid transparent; transition: 0.2s;
    }
    .f-ing-item img { width: 60%; height: 60%; object-fit: contain; }
    .f-ing-item.active { border-color: #FF6B00; background: #FFF0E0; }
    .f-ing-item.active::after {
        content: '\f00c'; font-family: "Font Awesome 5 Free"; font-weight: 900;
        position: absolute; top: 0; right: 0; background: #FF6B00; color: white; width: 18px; height: 18px;
        border-radius: 50%; font-size: 10px; display: flex; align-items: center; justify-content: center;
    }

    .filter-tag {
        padding: 10px 18px; border-radius: 50px; background: #F5F5F8; flex-shrink: 0;
        font-size: 13px; font-weight: 500; color: #555; cursor: pointer; border: 1px solid #eee; transition: 0.2s;
    }
    .filter-tag.active {
        background: var(--primary-orange); border-color: var(--primary-orange);
        color: white; font-weight: 600; box-shadow: 0 5px 10px rgba(255, 107, 0, 0.2);
    }

    /* Range Slider */
    .price-range-wrapper { padding: 0 5px; }
    input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none; height: 24px; width: 24px;
        border-radius: 50%; background: var(--primary-orange);
        cursor: pointer; margin-top: -10px; box-shadow: 0 2px 6px rgba(0,0,0,0.3); border: 3px solid white;
    }
    input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 6px; cursor: pointer; background: #E0E0E0; border-radius: 5px; }
    .range-labels { display: flex; justify-content: space-between; margin-top: 15px; font-weight: 700; font-size: 15px; color: var(--dark-text); }
    .range-val { color: var(--primary-orange); }

    /* Apply Button */
    .apply-filter-btn {
        width: 100%; height: 55px; background: var(--main-gradient); color: white;
        border: none; border-radius: 16px; font-size: 18px; font-weight: 700; cursor: pointer;
        box-shadow: 0 10px 20px rgba(255, 107, 0, 0.25);
    }
    .apply-filter-btn:active { transform: scale(0.98); }

