/* ===================================
   COLLECTION PAGE - MOBILE OPTIMIZATION
   =================================== */

@media (max-width: 768px) {
    /* Hero Adjustments */
    .collection-hero {
        height: 25vh !important;
        min-height: 180px !important;
        margin-top: 60px !important;
    }
    
    .collection-hero h1 {
        font-size: 2.2rem !important;
        padding: 0 15px;
    }

    /* Filter Container for Mobile */
    .filter-section-container {
        padding: 0 4% !important;
        position: sticky;
        top: 60px; /* Below standard header */
        z-index: 99;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    /* Toggle Button for Mobile Filters */
    #mobile-filter-toggle {
        display: flex !important;
        width: 100%;
        padding: 12px 0;
        background: white;
        border: none;
        align-items: center;
        justify-content: space-between;
        font-weight: 700;
        color: #2c3e50;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
    }

    /* Hide Filters by Default on Mobile */
    .filters-wrapper {
        display: none !important; /* Hidden initially */
        flex-direction: column;
        gap: 12px !important;
        padding: 0 0 15px 0 !important;
        width: 100%;
        max-height: 70vh;
        overflow-y: auto;
    }

    .filters-wrapper.active {
        display: flex !important;
    }

    /* Style the Filter Items for Mobile */
    .filters-wrapper select, 
    .filters-wrapper .price-slider-box {
        width: 100% !important;
        height: 48px !important; /* Slightly larger for easier tapping */
        font-size: 0.9rem !important;
    }

    .filters-wrapper .price-slider-box {
        padding: 8px 15px !important;
        height: auto !important;
    }

    #clear-filters-btn {
        width: 100%;
        margin-top: 5px;
        height: 44px;
        justify-content: center;
        display: none; /* Controlled by JS */
    }
    
    #clear-filters-btn.show-mobile {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }

    /* Product Grid Adjustments */
    .section-products {
        padding: 20px 4% !important;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-card {
        margin-bottom: 15px;
    }

    .product-info-wrapper {
        padding: 10px 8px !important;
    }

    .product-name {
        font-size: 0.85rem !important;
        margin-bottom: 4px !important;
    }

    .product-price {
        font-size: 0.9rem !important;
    }

    .btn-wishlist {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .collection-hero h1 {
        font-size: 1.8rem !important;
    }
}
