/* Products Page Styles */

.products-section {
    padding: 40px 0 80px;
}

.products-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar */
.products-sidebar {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.category-list,
.subcategory-list {
    list-style: none;
}

.category-list li,
.subcategory-list li {
    margin-bottom: 8px;
}

.category-list a,
.subcategory-list a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.category-list a:hover,
.subcategory-list a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 20px;
}

.category-list a.active,
.subcategory-list a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 500;
}

.category-list a i {
    margin-right: 8px;
}

/* Products Main */
.products-main {
    min-height: 400px;
}

.category-header {
    margin-bottom: 30px;
}

.category-header h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.category-header p {
    color: var(--text-light);
    font-size: 16px;
}

/* Product Category Label */
.product-category {
    display: inline-block;
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.no-products i {
    font-size: 80px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.no-products p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 2px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 15px;
    background: #f5f5f5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.page-link:hover::before {
    left: 100%;
}

.page-link:hover {
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 17, 23, 0.15);
}

.page-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(149, 17, 23, 0.3);
    transform: translateY(-1px);
}

.page-link.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(149, 17, 23, 0.4);
}

.pagination-info {
    color: #888;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .products-container {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
    
    .products-sidebar {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 20px 0 40px;
    }
    
    .products-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .products-sidebar {
        position: static;
        top: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .filter-section {
        margin-bottom: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .product-card .product-name {
        font-size: 14px;
    }
    
    .product-card .product-price {
        font-size: 16px;
    }
    
    .category-header {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .category-header h2 {
        font-size: 24px;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .page-link {
        padding: 8px 12px;
        min-width: 38px;
        font-size: 14px;
    }
    
    .pagination-info {
        font-size: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .category-header h2 {
        font-size: 20px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
}
