/* ==========================================================================
   Shop Page Styles
   ========================================================================== */

/* Shop Header */
.shop-header {
    background-color: var(--secondary-dark);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 80px;
}

.shop-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-gold-2);
}

.shop-header p {
    font-size: 1.125rem;
    color: var(--neutral-light);
    opacity: 0.9;
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* Shop Sidebar */
.shop-sidebar {
    background-color: var(--secondary-dark);
    padding: 30px;
    border-radius: 4px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 40px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h3 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    color: var(--accent-gold-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.filter-option:hover {
    color: var(--accent-gold-2);
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--accent-gold-2);
}

.filter-option span {
    font-size: 0.875rem;
}

/* Price Range */
.price-range {
    margin-top: 15px;
}

#priceRange {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--primary-dark);
    outline: none;
    cursor: pointer;
}

#priceRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-gold-2);
    cursor: pointer;
    border-radius: 50%;
}

#priceRange::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-gold-2);
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.price-display {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.875rem;
    color: var(--neutral-light);
}

/* Sort Select */
.sort-select {
    width: 100%;
    padding: 10px 15px;
    background-color: var(--primary-dark);
    border: 1px solid var(--accent-gold-2);
    color: var(--neutral-light);
    font-family: var(--font-body);
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 4px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-gold-1);
}

/* Shop Main */
.shop-main {
    min-height: 600px;
}

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.product-count {
    font-size: 0.875rem;
    color: var(--neutral-light);
    opacity: 0.8;
}

.filter-toggle {
    display: none;
    background-color: var(--accent-gold-1);
    color: var(--primary-dark);
    border: none;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color var(--transition-fast);
}

.filter-toggle:hover {
    background-color: var(--accent-gold-2);
}

/* Product Quick View Overlay */
.quick-view-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.product-card:hover .quick-view-btn {
    opacity: 1;
}

/* Loading State */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--secondary-dark);
    border-top-color: var(--accent-gold-2);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state h3 {
    color: var(--accent-gold-2);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--neutral-light);
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100vh;
        z-index: 999;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .shop-sidebar.active {
        display: block;
    }
    
    .filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .shop-header {
        padding: 100px 0 40px;
    }
    
    .shop-header h1 {
        font-size: 2rem;
    }
    
    .shop-header p {
        font-size: 1rem;
    }
    
    .shop-sidebar {
        width: 280px;
    }
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.sidebar-overlay.active {
    display: block;
}

/* Close button for mobile sidebar */
.sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--neutral-light);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .sidebar-close {
        display: block;
    }
}
