﻿/* ============================================================
   GEMIMPRESSION® — shop.css  (Warm Artisan theme)
   ============================================================ */

/* === SHOP HEADER === */
.shop-header {
    padding: calc(var(--nav-height) + 2.5rem) 0 2rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    border-bottom: 1px solid var(--border);
}

.shop-header-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.shop-header .section-label {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.75rem;
    font-style: italic;
    color: var(--rose-gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.shop-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
}

.shop-header-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.shop-count {
    font-size: 0.875rem;
    color: var(--charcoal-light);
    white-space: nowrap;
}

.shop-count-sm {
    font-size: 0.8rem;
    color: var(--charcoal-light);
}

/* === ACTIVE FILTERS BAR === */
.active-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.active-filters-label {
    font-size: 0.8rem;
    color: var(--charcoal-light);
    white-space: nowrap;
}

#filterTags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: var(--rose-gold-pale);
    border: 1px solid var(--rose-gold-light);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--rose-gold-dark);
    font-weight: 500;
}

.filter-tag button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: var(--rose-gold-dark);
    font-size: 0.875rem;
    opacity: 0.7;
    transition: opacity var(--t-fast);
}

.filter-tag button:hover { opacity: 1; }

/* === SHOP LAYOUT (sidebar + main) === */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    max-width: var(--content-width);
    margin: 2rem auto;
    padding: 0 1.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: 220px 1fr; gap: 1.5rem; }
}

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

/* === FILTER SIDEBAR === */
.filter-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
    max-height: calc(100vh - var(--nav-height) - 3rem);
    overflow-y: auto;
}

@media (max-width: 768px) {
    .filter-sidebar {
        position: fixed;
        inset: 0 0 0 auto;
        top: 0;
        width: min(320px, 100vw);
        max-height: 100vh;
        z-index: 500;
        border-radius: 0;
        transform: translateX(100%);
        transition: transform var(--t-normal);
        overflow-y: auto;
    }
    .filter-sidebar.open { transform: translateX(0); }
}

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

.filter-sidebar-header h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
}

/* === FILTER GROUPS === */
.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

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

.filter-group-title {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--charcoal-mid);
    transition: background var(--t-fast), color var(--t-fast);
}

.filter-option:hover { background: var(--cream); color: var(--charcoal); }

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    accent-color: var(--rose-gold);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
}

.gem-check-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* === PRICE RANGE === */
.price-range { padding: 0.25rem 0; }

.price-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--charcoal-light);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.range-input {
    width: 100%;
    height: 4px;
    accent-color: var(--rose-gold);
    cursor: pointer;
    display: block;
    margin-bottom: 0.5rem;
}

.range-input:last-child { margin-bottom: 0; }

/* === SHOP MAIN === */
.shop-main { min-width: 0; }

/* === MOBILE FILTER BAR === */
.mobile-filter-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) { .mobile-filter-bar { display: flex; } }

.filter-count-badge {
    background: var(--rose-gold);
    color: var(--white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* === PRODUCTS GRID === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === SHOP EMPTY STATE === */
.shop-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--charcoal-light);
}

.shop-empty-icon {
    font-size: 3rem;
    line-height: 1;
    opacity: 0.3;
    margin-bottom: 1rem;
    color: var(--rose-gold);
}

.shop-empty h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--charcoal-mid);
    margin-bottom: 0.5rem;
}

.shop-empty p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* === LOAD MORE === */
.load-more-area {
    text-align: center;
    padding: 2rem 0;
}

/* === MOBILE FILTER OVERLAY === */
.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(45,31,31,0.5);
    z-index: 499;
    backdrop-filter: blur(2px);
}

.filter-overlay.active { display: block; }

/* === SORT SELECT STYLING === */
.shop-header .form-select {
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    border-color: var(--border);
    color: var(--charcoal);
    background: var(--white);
}

.shop-header .form-select:focus { border-color: var(--rose-gold); }
