/* DESKTOP LAYOUT */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

.filter-panel {
    background: #fff;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    padding: 28px;
    position: sticky;
    top: 90px;
}

.filter-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.filter-section {
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

    .filter-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.filter-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 14px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    cursor: pointer;
    font-size: 14px;
}

    .filter-option input {
        accent-color: var(--accent);
        width: 16px;
        height: 16px;
    }

    .filter-option:hover {
        color: var(--accent);
    }

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

    .price-inputs input {
        background: var(--bg);
        border: 1.5px solid var(--border);
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 13px;
        width: 100%;
    }

.filter-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
    font-size: 14px;
    transition: all .2s;
}

    .filter-btn:hover {
        background: var(--accent);
    }

.clear-btn {
    width: 100%;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    transition: all .2s;
}

    .clear-btn:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

/* MOBILE FILTER BUTTON - hidden on desktop */
.mobile-filter-bar {
    display: none;
}

/* MOBILE DRAWER */
.filter-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1000;
}

    .filter-drawer-overlay.open {
        display: block;
    }

.filter-drawer {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #fff;
    z-index: 1001;
    overflow-y: auto;
    padding: 24px;
    transform: translateX(-100%);
    transition: transform .3s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,.15);
}

    .filter-drawer.open {
        transform: translateX(0);
    }

.filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid var(--border);
}

    .filter-drawer-header h3 {
        font-family: 'Playfair Display', serif;
        font-size: 20px;
        font-weight: 700;
    }

.filter-drawer-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--muted);
    padding: 4px 8px;
}

    .filter-drawer-close:hover {
        color: var(--accent);
    }

/* PRODUCTS */
.shop-main {
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-count {
    font-size: 15px;
    color: var(--muted);
}

    .results-count strong {
        color: var(--text);
    }

.sort-select {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 14px;
    cursor: pointer;
    min-width: 160px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    transition: all .28s;
    text-decoration: none;
    color: inherit;
    display: block;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 40px rgba(0,0,0,.1);
        border-color: transparent;
    }

.product-card-img {
    height: 200px;
    background: linear-gradient(135deg, #f8f4ee, #ede8df);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-card-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 12px;
        transition: transform .4s;
    }

.product-card:hover .product-card-img img {
    transform: scale(1.06);
}

.product-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e94560;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
}

.product-card-body {
    padding: 14px;
}

.product-card-cat {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-card-name {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}

.price-now {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
}

.price-was {
    font-size: 11px;
    color: var(--muted);
    text-decoration: line-through;
    margin-left: 4px;
}

.color-chips {
    display: flex;
    gap: 3px;
}

.color-chip {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.12);
}

.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: all .2s;
}

    .page-btn:hover, .page-btn.active {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }

.no-results {
    text-align: center;
    padding: 80px 24px;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-results h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin-bottom: 10px;
}

/* TABLET */
@media(max-width:900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        display: none;
    }

    .mobile-filter-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 20px;
    }

    .mobile-filter-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 10px;
        padding: 11px 18px;
        font-weight: 700;
        font-size: 14px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .sort-select {
        min-width: 140px;
    }
}

/* MOBILE */
@media(max-width:480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card-img {
        height: 150px;
    }

    .product-card-body {
        padding: 10px;
    }

    .product-card-name {
        font-size: 12px;
    }

    .price-now {
        font-size: 13px;
    }

    .price-was {
        font-size: 10px;
    }

    .sort-select {
        min-width: 120px;
        font-size: 12px;
        padding: 8px 8px;
    }

    .results-count {
        font-size: 12px;
    }

    .mobile-filter-btn {
        padding: 9px 14px;
        font-size: 13px;
    }
}
