/* ===== Products Page Styles ===== */

/* Breadcrumb */
.breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--accent-gold);
}

.breadcrumb span {
    color: var(--text-light);
}

/* Products Container Layout */
.products-page {
    min-height: calc(100vh - 200px);
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Filter Sidebar */
.filters-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(10px);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filters-header h3 {
    color: var(--accent-gold);
    font-weight: 600;
    margin: 0;
}

.close-filters {
    display: none;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

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

.filter-group h4 {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
}

/* Price Range Slider */
.price-range-container {
    position: relative;
    margin-bottom: 15px;
    height: 5px;
}

.price-range {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    position: absolute;
    top: 0;
    border-radius: 5px;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.price-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.price-display {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.checkbox:hover {
    color: var(--accent-gold);
}

.checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-gold);
}

.checkbox span {
    font-size: 0.9rem;
}

/* Clear Filters Button */
.clear-filters-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 10px;
}

.clear-filters-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* Products Main Section */
.products-main {
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.products-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.filter-toggle {
    display: none;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-container label {
    color: var(--text-muted);
    font-weight: 500;
}

.sort-container select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-container select:hover,
.sort-container select:focus {
    border-color: var(--accent-gold);
    outline: none;
    background: rgba(212, 175, 55, 0.05);
}

/* Products Grid */
#productsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Loading State */
.product-card.loading {
    animation: pulse 1.5s infinite;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .products-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .filters-sidebar {
        position: relative;
        top: 0;
    }
    
    #productsGrid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-container {
        padding: 15px;
    }
    
    .filter-toggle {
        display: block;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 70px;
        left: -100%;
        right: auto;
        bottom: 0;
        width: 280px;
        height: calc(100vh - 70px);
        overflow-y: auto;
        border-radius: 0;
        transition: left 0.3s ease;
        z-index: 999;
        border-right: 1px solid var(--border-light);
        border-left: none;
    }
    
    .filters-sidebar.active {
        left: 0;
    }
    
    .close-filters {
        display: block;
    }
    
    .products-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-container {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-container select {
        width: 100%;
    }
    
    #productsGrid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 15px;
        font-size: 0.85rem;
    }
    
    .products-container {
        padding: 10px;
        gap: 15px;
    }
    
    .filters-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .products-topbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-toggle {
        width: 100%;
    }
    
    .sort-container {
        width: 100%;
    }
    
    .sort-container select {
        width: 100%;
    }
    
    #productsGrid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}
