/* Categories Page Styles */

/* Sub Categories */
.sub-categories {
    padding: var(--spacing-xxl) 0;
    background-color: var(--primary-white);
}

.sub-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.sub-category-card {
    background-color: var(--primary-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-medium);
    cursor: pointer;
}

.sub-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.sub-category-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.sub-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.sub-category-card:hover .sub-category-image img {
    transform: scale(1.05);
}

.sub-category-content {
    padding: var(--spacing-lg);
    text-align: center;
}

.sub-category-content h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.sub-category-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.sub-category-btn {
    display: inline-block;
    background-color: var(--accent-red);
    color: var(--primary-white);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 6px;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.sub-category-btn:hover {
    background-color: var(--accent-brown);
    transform: translateY(-2px);
}
.category-header {
    padding: var(--spacing-xl) 0;
    background-color: var(--primary-beige);
    text-align: center;
}

.category-header h1 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.category-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Category Content */
.category-content {
    padding: var(--spacing-xxl) 0;
}

.category-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-xl);
}

/* Filters Sidebar */
.filters-sidebar {
    background-color: var(--primary-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-section h3 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

/* Filter Lists */
.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: var(--spacing-xs);
}

.filter-list a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.filter-list a:hover,
.filter-list a.active {
    color: var(--accent-red);
    font-weight: var(--font-weight-medium);
}

/* Price Range */
.price-range {
    margin-top: var(--spacing-md);
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    margin-bottom: var(--spacing-sm);
    -webkit-appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-red);
    cursor: pointer;
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-red);
    cursor: pointer;
    border: none;
}

.price-display {
    text-align: center;
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
}

/* Size Filters */
.size-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xs);
}

.size-filter {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.size-filter:hover {
    background-color: #f8f9fa;
}

.size-filter input[type="checkbox"] {
    margin-right: var(--spacing-xs);
    accent-color: var(--accent-red);
}

.size-filter span {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Color Filters */
.color-filters {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.color-filter {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.color-filter:hover {
    background-color: #f8f9fa;
}

.color-filter input[type="checkbox"] {
    margin-right: var(--spacing-sm);
    accent-color: var(--accent-red);
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: var(--spacing-sm);
    border: 1px solid #ddd;
}

.color-filter span:last-child {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Feature Filters */
.feature-filters {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feature-filter {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.feature-filter:hover {
    background-color: #f8f9fa;
}

.feature-filter input[type="checkbox"] {
    margin-right: var(--spacing-sm);
    accent-color: var(--accent-red);
}

.feature-filter span {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Clear Filters Button */
.clear-filters {
    width: 100%;
    background-color: var(--text-dark);
    color: var(--primary-white);
    border: none;
    padding: var(--spacing-md);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clear-filters:hover {
    background-color: var(--text-light);
}

/* Products Area */
.products-area {
    min-height: 500px;
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #f0f0f0;
}

.products-count {
    font-size: 0.9rem;
    color: var(--text-light);
}

.products-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

/* Sort Options */
.sort-options {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sort-options label {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: var(--font-weight-medium);
}

#sortSelect {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: var(--primary-white);
    color: var(--text-dark);
    cursor: pointer;
}

#sortSelect:focus {
    outline: none;
    border-color: var(--accent-red);
}

/* View Options */
.view-options {
    display: flex;
    gap: var(--spacing-xs);
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background-color: var(--primary-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover,
.view-btn.active {
    background-color: var(--accent-red);
    color: var(--primary-white);
    border-color: var(--accent-red);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-lg);
}

.products-grid.list-view .product-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.products-grid.list-view .product-info {
    flex: 1;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.load-more-btn {
    background-color: var(--accent-red);
    color: var(--primary-white);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.load-more-btn:hover {
    background-color: var(--accent-brown);
}

.load-more-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background-color: var(--primary-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background-color: var(--accent-red);
    color: var(--primary-white);
    border-color: var(--accent-red);
}

.page-btn:disabled {
    background-color: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: var(--spacing-xs);
}

.page-number {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background-color: var(--primary-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-medium);
}

.page-number:hover,
.page-number.active {
    background-color: var(--accent-red);
    color: var(--primary-white);
    border-color: var(--accent-red);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .category-layout {
        grid-template-columns: 250px 1fr;
        gap: var(--spacing-lg);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .category-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .filters-sidebar {
        position: static;
        order: 2;
    }
    
    .products-area {
        order: 1;
    }
    
    .products-header {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }
    
    .products-controls {
        justify-content: space-between;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .products-grid.list-view .product-card {
        flex-direction: column;
        text-align: center;
    }
    
    .products-grid.list-view .product-image {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .category-header h1 {
        font-size: 2rem;
    }
    
    .sub-category-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .sub-category-image {
        height: 250px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .size-filters {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-controls {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .sort-options {
        justify-content: center;
    }
    
    .view-options {
        justify-content: center;
    }
}
