/* Products Page Styles */

/* Products Header */
.products-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 6rem 0 3rem;
    margin-top: 70px;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Products Layout */
.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

/* Sidebar */
.products-sidebar {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-md);
}

.products-sidebar h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-item {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.category-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.category-item.active {
    background: rgba(26, 86, 219, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Products Content */
.products-content {
    min-height: 500px;
}

.product-category {
    display: none;
    animation: fadeIn 0.5s ease;
}

.product-category.active {
    display: block;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-dark);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.products-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-item {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-item .product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active Nav Link */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 968px) {
    .products-layout {
        grid-template-columns: 200px 1fr;
        gap: 2rem;
    }

    .products-grid-page {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .products-header {
        padding: 5rem 0 2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.125rem;
    }

    .products-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .products-sidebar {
        position: relative;
        top: 0;
    }

    .products-sidebar h2 {
        font-size: 1.25rem;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .category-list li {
        margin-bottom: 0;
    }

    .category-item {
        padding: 0.625rem 1rem;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .category-item.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }

    .category-item:hover {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }

    .products-grid-page {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .product-item .product-image {
        height: 200px;
    }

    .category-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

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

    .product-item .product-image {
        height: 180px;
    }
}

