/* ===== SHOP PAGE ===== */
.shop-page {
    padding-top: calc(var(--header-height) + var(--space-2xl));
    background: var(--off-white);
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-xl);
}

/* ===== SIDEBAR ===== */
.shop-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
    height: fit-content;
}

.filter-section {
    background: var(--white);
    border: 1px solid var(--grey-100);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.filter-section h3 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-700);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--grey-100);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-section h3 svg {
    width: 14px;
    height: 14px;
    stroke: var(--blue-500);
    fill: none;
    stroke-width: 2;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 0;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-option:hover .filter-label {
    color: var(--blue-500);
}

.filter-checkbox {
    width: 16px;
    height: 16px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--grey-50);
    border: 1.5px solid var(--grey-200);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.filter-checkbox:checked {
    background: var(--blue-500);
    border-color: var(--blue-500);
}

.filter-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-label {
    font-size: 0.85rem;
    color: var(--grey-500);
    flex: 1;
    transition: var(--transition-fast);
}

.filter-count {
    font-size: 0.72rem;
    color: var(--grey-300);
    font-family: var(--font-mono);
}

/* ===== PRICE RANGE — PROFESSIONAL ===== */
.price-range-wrapper {
    padding: var(--space-sm) 0;
}

.price-range-track {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
}

.price-range-bg {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grey-100);
    border-radius: 2px;
}

.price-range-fill {
    position: absolute;
    height: 4px;
    background: var(--blue-500);
    border-radius: 2px;
    transition: left 0.1s, right 0.1s;
}

.price-range-input {
    position: absolute;
    width: 100%;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--blue-500);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    pointer-events: all;
    transition: box-shadow 0.2s;
}

.price-range-input::-webkit-slider-thumb:hover {
    box-shadow: var(--shadow-blue-lg);
}

.price-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--blue-500);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    pointer-events: all;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.price-tag {
    background: var(--grey-50);
    border: 1px solid var(--grey-100);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.82rem;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--grey-700);
    min-width: 80px;
    text-align: center;
}

.price-separator {
    color: var(--grey-300);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== TOOLBAR ===== */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border: 1px solid var(--grey-100);
    border-radius: var(--radius-lg);
}

.shop-result-count {
    font-size: 0.85rem;
    color: var(--grey-400);
}

.shop-result-count strong {
    color: var(--grey-700);
    font-weight: 700;
}

.shop-sort {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.shop-sort label {
    font-size: 0.82rem;
    color: var(--grey-400);
    white-space: nowrap;
}

.sort-select {
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    color: var(--grey-600);
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sort-select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.view-toggles {
    display: flex;
    gap: 4px;
}

.view-toggle {
    width: 34px;
    height: 34px;
    background: var(--grey-50);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-400);
    transition: var(--transition-fast);
}

.view-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.view-toggle.active {
    border-color: var(--blue-500);
    color: var(--blue-500);
    background: var(--blue-50);
}

/* ===== PRODUCTS GRID ===== */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.shop-products-grid.list-view {
    grid-template-columns: 1fr;
}

.shop-products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 240px 1fr;
}

.shop-products-grid.list-view .product-image {
    height: 100%;
    min-height: 180px;
}

/* Pagination */
.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-2xl);
}

.page-btn {
    width: 38px;
    height: 38px;
    background: var(--white);
    border: 1px solid var(--grey-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--grey-500);
    transition: var(--transition-fast);
    font-weight: 500;
}

.page-btn:hover {
    border-color: var(--blue-500);
    color: var(--blue-500);
}

.page-btn.active {
    background: var(--blue-500);
    color: var(--white);
    border-color: var(--blue-500);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.mobile-filter-toggle {
    display: none;
    width: 100%;
    margin-bottom: var(--space-md);
}

@media (max-width: 1024px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        background: var(--white);
        padding: var(--space-lg);
        overflow-y: auto;
    }

    .shop-sidebar.open {
        display: block;
    }

    .mobile-filter-toggle {
        display: flex;
    }

    .shop-products-grid {
        grid-template-columns: 1fr;
    }

    .shop-toolbar {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
}