/* Products Section Styles */
.products-section {
    padding: 2rem 0;
    background-color: #f8f9fa;
}


.products-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Filter Sidebar Styles */
.filter-sidebar {
    background: white;
    padding: 1.5rem;
    /* border-radius: 8px; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.filter-sidebar h2 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Accordion Styles */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion a {
    color: #333;
    text-decoration: none;
}

.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.accordion-header {
    padding: 1rem;
    background: hsl(24, 100%, 50%);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #fff;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background: hsl(23, 46%, 73%);
}

.accordion-header .icon {
    transition: transform 0.3s;
}

.accordion-header.active .icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.active {
    max-height: 500px;
}

.subcategory-list {
    padding: 0.5rem 1rem;
    list-style: none;
}

.subcategory-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.subcategory-item:hover {
    color: #007bff;
}

.subcategory-item.active {
    color: #007bff;
    font-weight: 500;
}

/* Products Display Styles */
.products-container {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.products-header h1 {
    font-size: 2rem;
    color: #333;
}

.products-count {
    color: #666;
}

.products-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1.5fr));
    gap: 2rem;
    align-items: center;
}

.product-card {
    background: white;
    /* border-radius: 8px; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 300px;
    /* height: 200px; */
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-category {
    color: #666;
    font-size: 0.9rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    /* -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical; */
    overflow: hidden;
}

.specifications-list {
    list-style: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* .filter-sidebar {
        position: sticky;
        top: 20px;
    } */
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .products-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .products-grid-container {
        grid-template-columns: 1fr;
    }
}