/* =========================================
   SHOP PAGE STYLES
   ========================================= */

/* Header Tweaks */
#shop-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.back-home { text-decoration: none; color: #000; font-weight: 600; font-size: 0.9rem; }

/* LAYOUT GRID (Desktop) */
.shop-container {
    display: grid;
    grid-template-columns: 260px 1fr; /* Sidebar | Content */
    gap: 40px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 30px;
    position: relative;
}

/* SIDEBAR FILTERS */
.filter-sidebar {
    background: #fff;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.filter-header-mobile { display: none; }

.filter-group {
    margin-bottom: 30px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 20px;
}
.filter-group:last-child { border: none; }

.filter-group h4 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Inputs & Labels */
.radio-group label, .checkbox-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
}
.radio-group label:hover, .checkbox-group label:hover { color: #000; }

input[type="radio"], input[type="checkbox"] {
    accent-color: #000;
    margin-right: 8px;
}

/* Search Box */
.search-box {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
}
.search-box input {
    border: none; outline: none; width: 100%;
    font-family: 'Poppins'; font-size: 0.9rem;
}
.search-box i { color: #999; position: absolute; right: 10px; top: 10px; }

/* Select Box */
.premium-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins';
    outline: none;
    cursor: pointer;
}

/* PRODUCT RESULTS */
.results-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#page-title { font-family: 'Syne'; font-size: 2rem; font-weight: 800; text-transform: uppercase; }
#result-count { color: #888; font-size: 0.9rem; }

/* Grid Reuse from Index but tweaked */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns on Shop Page */
    gap: 30px;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
.mobile-filter-bar { display: none; }
.mobile-only { display: none; }
.filter-overlay { display: none; }

@media screen and (max-width: 1024px) {
    .shop-container { display: block; padding: 0 15px; }
    
    /* Sticky Mobile Filter Button */
    .mobile-filter-bar {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
    }
    #mobile-filter-btn {
        background: #000; color: #fff;
        border: none; padding: 12px 30px;
        border-radius: 30px;
        font-weight: 600; font-size: 0.9rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        display: flex; align-items: center; gap: 10px;
    }

    /* Off-Canvas Sidebar */
    .filter-sidebar {
        position: fixed;
        top: 0; left: -100%; /* Hidden */
        width: 85%;
        height: 100vh;
        background: #fff;
        z-index: 2000;
        padding: 20px;
        overflow-y: auto;
        transition: 0.3s ease;
        box-shadow: 5px 0 20px rgba(0,0,0,0.1);
    }
    .filter-sidebar.active { left: 0; }

    .filter-header-mobile {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid #eee;
    }
    #close-filter { font-size: 1.5rem; cursor: pointer; }

    .mobile-only { display: block; margin-top: 20px; width: 100%; padding: 15px; background: #000; color: #fff; border: none; font-weight: 700; }

    /* Overlay */
    .filter-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5); z-index: 1500;
        display: none;
    }
    .filter-overlay.active { display: block; }

    /* Mobile Grid */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    #page-title { font-size: 1.5rem; }
}
