.category-products-section {
    background: linear-gradient(180deg, hsl(var(--light)) 0%, hsl(var(--white)) 100%);
}

.category-block {
    background: hsl(var(--white));
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px hsl(var(--black) / 0.04);
    transition: box-shadow 0.3s ease;
}

.category-block:hover {
    box-shadow: 0 8px 30px hsl(var(--black) / 0.08);
}

.category-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid hsl(var(--border));
}

.category-block__header .title {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--heading));
    margin: 0;
}

.category-block__icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    background: hsl(var(--base) / 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-block__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: hsl(var(--base));
    font-weight: 500;
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: 50px;
    background: hsl(var(--base) / 0.08);
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: hsl(var(--base));
    color: hsl(var(--white));
    transform: translateX(4px);
}

.view-all-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(4px);
}

.category-products-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1199px) {
    .category-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .category-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-block__header .title {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-block {
        padding: 16px;
        border-radius: 12px;
    }
    
    .category-block__header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }
}

@media (max-width: 575px) {
    .category-products-grid {
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .category-products-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
