/* Shop Page CSS */

.shop-container {
    display: grid;
    gap: 24px;
}

/* Drawer Overlay */
.shop-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2300;
}
.shop-filter-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Side Panel Drawer */
.shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(320px, 86vw);
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    padding: 18px 18px 22px;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    z-index: 2400;
    overflow-y: auto;
    box-shadow: 16px 0 40px rgba(15, 23, 42, 0.16);
}
.shop-sidebar.is-open {
    transform: translateX(0);
}

.shop-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.shop-filter-header h4 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--heading-color);
}
.shop-filter-close {
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--heading-color);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.filter-group {
    margin-bottom: 12px;
}
.filter-group h4 {
    display: none;
}
.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filter-list li {
    margin: 0;
}
.filter-list a {
    color: var(--text-color);
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    text-align: left;
    width: 100%;
    font-weight: 600;
}
.filter-list a:hover,
.filter-list a.active {
    color: #fff;
    background: var(--heading-color);
    border-color: var(--heading-color);
}

/* Shop Header */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}
.shop-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.shop-header-left p {
    margin: 0;
}

.shop-filter-toggle {
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: #fff;
}

/* Shop Content */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.shop-content .product-card {
    --product-card-height: 440px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    min-height: 430px;
}
.shop-content .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 4px;
}
.shop-content .product-info h3 {
    -webkit-line-clamp: 2;
}
.shop-content .product-desc {
    width: 100%;
    -webkit-line-clamp: 2;
}
.shop-content .product-img-wrap {
    height: 220px;
    aspect-ratio: auto;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-content .product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.shop-content .price {
    margin-top: 8px;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .shop-sidebar {
        width: min(360px, 80vw);
    }
}

@media (min-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }
}
@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(280px, 1fr));
    }
}
