.gallery-section {
    padding: 80px 0;
    background-color: #fff;
}

/* .category-group {
    margin-bottom: 80px;
} */

.category-group:last-child {
    margin-bottom: 0;
}

.category-main-title {
    text-align: center;
    font-size: 32px;
    color: #444;
    font-weight: 300;
    margin-bottom: 40px;
    text-transform: capitalize;
}

/* .subcategory-wrapper {
    margin-bottom: 50px;
} */

.subcategory-header {
    background-color: #e3f2fd;
    padding: 15px 30px;
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.subcategory-header:hover {
    background-color: #d1e9ff;
}

.subcategory-header h3 {
    margin: 0;
    color: #1a4a7c;
    font-size: 24px;
    font-weight: 400;
}

.toggle-icon {
    position: absolute;
    right: 30px;
    color: #1a4a7c;
    transition: transform 0.3s ease;
}

.subcategory-wrapper.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.subcategory-wrapper.collapsed .carousel-container {
    display: none;
}

.subcategory-wrapper.collapsed .subcategory-header {
    margin-bottom: 0;
}

.carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.products-grid.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 30px;
    /* padding: 20px 0; */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.products-grid.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.product-card {
    flex: 0 0 calc(20% - 24px);
    /* 5 items on desktop */
    min-width: 200px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
    color: #1a4a7c;
}

.carousel-btn:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.product-image-box {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.product-image-box img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .no-products-msg {
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-style: italic;
}

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

.product-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.product-card h4 {
    margin: 0;
    font-size: 14px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.product-card:hover h4 {
    color: #1a4a7c;
}

.gallery-disclaimer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .category-main-title {
        font-size: 28px;
    }

    .subcategory-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}