/* ============================================
   SHOP PAGE
   ============================================ */

.shop-main {
    padding: 40px 0 80px;
    background: var(--white);
    min-height: 70vh;
}

/* --- SHOP HEADER --- */
.shop-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.shop-title {
    font-size: 36px;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.shop-subtitle {
    font-size: 15px;
    color: #64748B;
    font-weight: 500;
}

/* --- SHOP LAYOUT (sidebar + products) --- */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* --- SIDEBAR --- */
.shop-sidebar {
    position: sticky;
    top: 110px;
    padding: 0;
}

.filter-drawer-header {
    display: none;
}

.filter-group {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.filter-group-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--navy);
    margin-bottom: 16px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.filter-option:hover {
    color: var(--navy);
}

.filter-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter-checkbox {
    width: 16px;
    height: 16px;
    border: 1.5px solid #CBD5E1;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.filter-checkbox::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: scale(0);
    transition: transform 0.15s ease;
}

.filter-option input:checked + .filter-checkbox {
    border-color: var(--gold);
}

.filter-option input:checked + .filter-checkbox::after {
    transform: scale(1);
}

.filter-option input:checked ~ .filter-label {
    color: var(--navy);
    font-weight: 600;
}

.filter-label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.filter-count {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.filter-clear-btn {
    width: 100%;
    background: transparent;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.filter-clear-btn:hover {
    background: var(--navy);
    color: var(--gold);
    border-color: var(--navy);
}

/* --- SHOP TOPBAR (sort + active chips) --- */
.shop-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    min-height: 40px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    cursor: default;
}

.filter-chip button {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 14px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    transition: var(--transition);
}

.filter-chip button:hover {
    color: #FEF3C7;
}

.shop-desktop-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-desktop-sort label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.shop-desktop-sort select,
.shop-mobile-sort select {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.shop-desktop-sort select:hover,
.shop-mobile-sort select:hover {
    border-color: var(--navy);
}

/* --- RESULTS COUNT --- */
.results-count {
    font-size: 13px;
    color: #64748B;
    font-weight: 500;
    margin-bottom: 24px;
}

/* --- MOBILE FILTER BAR --- */
.shop-mobile-bar {
    display: none;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.filter-toggle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-toggle:hover {
    border-color: var(--navy);
}

.shop-mobile-sort {
    flex: 1;
}

.shop-mobile-sort select {
    width: 100%;
    padding: 12px 14px;
    font-size: 13px;
}

/* --- FILTER OVERLAY (mobile) --- */
.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- EMPTY STATE --- */
.shop-empty {
    text-align: center;
    padding: 80px 20px;
}

.shop-empty h3 {
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 8px;
}

.shop-empty p {
    color: #64748B;
    margin-bottom: 24px;
    font-size: 15px;
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 220px 1fr;
        gap: 30px;
    }
    .shop-title { font-size: 30px; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
    .shop-main { padding: 24px 0 60px; }
    .shop-title { font-size: 24px; }
    .shop-subtitle { font-size: 13px; }
    .shop-header { margin-bottom: 24px; padding-bottom: 16px; }

    .shop-mobile-bar { display: flex; }

    .shop-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Sidebar becomes a slide-in drawer */
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        bottom: 0;
        width: 85%;
        max-width: 340px;
        background: var(--white);
        z-index: 999;
        padding: 20px;
        overflow-y: auto;
        transition: left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    }

    .shop-sidebar.active {
        left: 0;
    }

    .shop-sidebar.active + .filter-overlay,
    .filter-overlay.active {
        display: block;
    }

    .filter-drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 16px;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border);
    }

    .filter-drawer-header h3 {
        font-size: 16px;
        color: var(--navy);
    }

    .filter-close-btn {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--navy);
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .filter-close-btn:hover {
        color: var(--gold);
    }

    .shop-topbar { display: none; }
    .shop-desktop-sort { display: none; }

    /* Product grid smaller on mobile */
    .shop-products .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
    }
}