/* Products Filter Sidebar Styles */
.products-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e9ecef;
}

.filter-title:hover {
    background: #e9ecef;
}

.filter-title.active {
  background-color: #43a409;
    color: #fff;
}

.filter-title i {
    transition: transform 0.3s ease;
}

.filter-title.active i {
    transform: rotate(180deg);
}

.filter-content {
    padding-left: 10px;
    transition: all 0.3s ease;
    max-height: 400px;
    overflow-y: auto;
}

.filter-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 15px;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.filter-btn.active {
    background: #333;
    color: #fff;
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.product-card-img-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-card-body {
    padding: 15px;
}

.product-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.5;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .filter-title {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .filter-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
}