/* Brand/Products Section */
.brand_section {
    background: rgba(36, 210, 120, 0.1);
    padding: 80px 0;
}

.brand_section .heading_container {
    text-align: center;
    margin-bottom: 50px;
}

.brand_section .heading_container h2 {
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 20px;
}

.brand_section .heading_container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #24d278;
}

.brand_section #featured {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    padding: 0 20px;
}

/* Category Item Container - 4 per row */
.category-item {
    flex: 0 1 calc(25% - 15px); /* 4 items per row with gap */
    max-width: 300px;
    min-width: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand_section .box {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    height: 320px;
    display: flex;
    flex-direction: column;
}

.brand_section .box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(36, 210, 120, 0.15);
}

.brand_section .product-img-box {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    background: #f8f9fa;
}

.brand_section .product-img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.brand_section .box:hover .product-img-box img {
    transform: scale(1.1);
}

.brand_section .detail-box {
    padding: 20px;
    text-align: center;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.brand_section .detail-box h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #333;
    transition: color 0.3s ease;
}

.brand_section .box:hover .detail-box h6 {
    color: #24d278;
}

.brand-btn {
    display: block;
    width: fit-content;
    padding: 12px 35px;
    background: #24d278;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    margin: 40px auto 0;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.brand-btn:hover {
    background: #1ca861;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .brand_section #featured {
        gap: 15px;
        padding: 0 15px;
    }
    
    .category-item {
        flex: 0 1 calc(25% - 12px); /* Still 4 per row */
        max-width: 300px;
    }
}

@media (max-width: 991px) {
    .brand_section {
        padding: 60px 0;
    }
    
    .brand_section .heading_container h2 {
        font-size: 2rem;
    }
    
    .brand_section #featured {
        gap: 15px;
        padding: 0 10px;
    }
    
    .category-item {
        flex: 0 1 calc(33.333% - 10px); /* 3 per row on tablet */
        max-width: 300px;
    }
}

@media (max-width: 767px) {
    .brand_section {
        padding: 40px 0;
    }
    
    .brand_section .heading_container h2 {
        font-size: 1.8rem;
    }
    
    .brand_section #featured {
        gap: 15px;
        padding: 0 5px;
    }
    
    .category-item {
        flex: 0 1 calc(50% - 8px); /* 2 per row on mobile */
        max-width: 250px;
    }
    
    .brand_section .detail-box {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .brand_section #featured {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 0 10px;
    }
    
    .category-item {
        flex: 0 1 100%; /* 1 per row on small mobile */
        max-width: 300px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .category-item {
        max-width: 300px;
    }
    
    .brand_section .heading_container h2 {
        font-size: 1.6rem;
    }
}

/* Loading State */
.brand_section .box.loading {
    position: relative;
}

.brand_section .box.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}