/* ========================================
   PRODUCTS PAGE STYLES
   ======================================== */

/* Products Layout */
.products-page {
    padding: 60px 0;
    background: var(--light-gray);
    min-height: 70vh;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar */
.products-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 200px;
    box-shadow: var(--shadow-sm);
}

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

.filter-section:last-of-type {
    border-bottom: none;
    margin-bottom: 15px;
}

.filter-section h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-section h3 i {
    color: var(--accent-yellow);
}

.filter-section h4 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.filter-list label:hover {
    color: var(--primary-dark);
}

.filter-list input[type="radio"],
.filter-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-dark);
    cursor: pointer;
}

/* Price Range */
.price-range {
    padding: 10px 0;
}

.price-range input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--light-gray);
    border-radius: 3px;
    outline: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-dark);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.price-range input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--accent-yellow);
}

.price-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-light);
}

/* Reset Button */
.reset-filters-btn {
    width: 100%;
    padding: 12px;
    background: var(--light-gray);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.reset-filters-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Products Main */
.products-main {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

/* Toolbar */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
    flex-wrap: wrap;
    gap: 15px;
}

.products-count {
    font-size: 14px;
    color: var(--text-light);
}

.products-count span {
    font-weight: 700;
    color: var(--primary-dark);
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-sort label {
    font-size: 14px;
    color: var(--text-dark);
}

.products-sort select {
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    background: var(--white);
}

.products-view {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary-dark);
    color: var(--white);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
}

.products-grid.list-view .product-image {
    height: 180px;
}

.products-grid.list-view .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-grid.list-view .product-name {
    font-size: 18px;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
}

.no-products i {
    font-size: 60px;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.no-products p {
    color: var(--text-light);
}

/* Mobile Responsive */
@media screen and (max-width: 992px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        position: static;
        display: none;
    }

    .products-sidebar.active {
        display: block;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-filter-btn {
        display: flex;
        padding: 12px 20px;
        background: var(--primary-dark);
        color: var(--white);
        border: none;
        border-radius: var(--radius-md);
        font-size: 14px;
        font-weight: 600;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-sort {
        width: 100%;
    }

    .products-sort select {
        flex: 1;
    }
}