/* ===== Gleamy Shop Page (LUXE-style) ===== */
.shop-page {
    background: hsl(var(--body-background, 40 43% 97%));
}

/* Shop header + breadcrumb: see luxury-breadcrumb.css (.shop-page__hero, .lux-breadcrumb) */

.shop-page__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar filters */
.shop-sidebar {
    background: hsl(var(--white, 0 0% 100%));
    border-radius: 16px;
    box-shadow: 0 4px 24px hsl(var(--dark, 0 0% 10%) / 0.06);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--body-color, 0 0% 40%) / 0.35) transparent;
}

.shop-sidebar::-webkit-scrollbar {
    width: 4px;
}

.shop-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.shop-sidebar::-webkit-scrollbar-thumb {
    background-color: hsl(var(--body-color, 0 0% 40%) / 0.32);
    border-radius: 99px;
}

.shop-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: hsl(var(--base, 42 54% 54%) / 0.55);
}

.shop-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid hsl(var(--border-color, 38 35% 85%));
}

.shop-sidebar__head h2 {
    font-family: var(--heading-font, "Cormorant Garamond", serif);
    font-size: 1.35rem;
    margin: 0;
}

.shop-sidebar__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: hsl(var(--heading-color));
}

.shop-filters__group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid hsl(var(--border-color, 38 35% 85%) / 0.6);
}

.shop-filters__group:last-of-type {
    border-bottom: none;
}

.shop-filters__title {
    font-family: var(--body-font, "Inter", sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: hsl(var(--heading-color));
    margin: 0 0 0.85rem;
}

.shop-filters__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-filters__option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
    cursor: pointer;
    font-family: var(--body-font, "Inter", sans-serif);
    font-size: 0.9rem;
    color: hsl(var(--body-color));
}

.shop-filters__option input[type="radio"] {
    accent-color: hsl(var(--base, 42 54% 54%));
    flex-shrink: 0;
}

.shop-filters__clear {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-family: var(--body-font, "Inter", sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.shop-filters__clear:hover {
    color: #b91c1c;
}

.shop-filters__apply {
    width: 100%;
    margin-bottom: 0.75rem;
}

/* Main content */
.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: hsl(var(--white, 0 0% 100%));
    border-radius: 16px;
    box-shadow: 0 2px 16px hsl(var(--dark, 0 0% 10%) / 0.05);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.shop-toolbar__count {
    font-family: var(--body-font, "Inter", sans-serif);
    font-size: 0.95rem;
    font-weight: 500;
    color: hsl(var(--body-color));
    margin: 0;
}

.shop-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-family: var(--body-font, "Inter", sans-serif);
    font-size: 0.875rem;
}

.shop-toolbar__select {
    border: 1px solid hsl(var(--border-color, 38 35% 85%));
    border-radius: 8px;
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    font-size: 0.875rem;
    background: hsl(var(--body-background));
    color: hsl(var(--heading-color));
    min-width: 160px;
}

.shop-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shop-active-filters__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: hsl(var(--section-bg, 38 40% 94%));
    border: 1px solid hsl(var(--border-color));
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-family: var(--body-font, "Inter", sans-serif);
    font-size: 0.8rem;
    color: hsl(var(--body-color));
}

.shop-active-filters__chip a {
    color: hsl(var(--body-color) / 0.6);
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1;
}

.shop-active-filters__chip a:hover {
    color: #dc2626;
}

/* Product grid: 2 cols mobile, 3 cols desktop (LUXE spacing) */
.shop-product-grid {
    margin-bottom: 2rem;
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

@media (min-width: 640px) {
    .shop-product-grid {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 1.25rem;
    }
}

.shop-product-grid .product-card {
    height: 100%;
}

/* Homepage product section: 4 cols on xl when using product-card */
.our-products .product-card-grid {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

@media (min-width: 640px) {
    .our-products .product-card-grid {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 1.25rem;
    }
}

.shop-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: hsl(var(--white, 0 0% 100%));
    border-radius: 16px;
}

.shop-pagination {
    margin-top: 1rem;
}

.shop-pagination .pagination {
    justify-content: center;
}

/* Mobile filters FAB + drawer */
.shop-filters-fab {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: hsl(var(--dark, 0 0% 10%));
    color: hsl(var(--white, 0 0% 100%));
    border: none;
    border-radius: 999px;
    font-family: var(--body-font, "Inter", sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 8px 28px hsl(var(--dark) / 0.25);
}

.shop-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: hsl(var(--dark) / 0.45);
    z-index: 1045;
}

.shop-sidebar-backdrop[hidden] {
    display: none !important;
}

@media (max-width: 991.98px) {
    .shop-page__layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, 88vw);
        max-height: none;
        z-index: 1050;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        visibility: hidden;
    }

    .shop-sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
    }
}

@media (min-width: 992px) {
    .shop-filters-fab,
    .shop-sidebar-backdrop,
    .shop-sidebar__head {
        display: none !important;
    }

    .shop-filters__apply {
        display: none !important;
    }

    /* Auto-apply on desktop when radio changes */
    .shop-filters__form .shop-filters__option input {
        cursor: pointer;
    }
}
