/* CAROUSEL STYLES */
.shop-carousel-main {
    display: flex !important;
    width: 100% !important;
    flex-direction: column !important;
    max-width: 1170px !important;
    margin: 0 auto !important;
    gap: 24px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.shop-carousel-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.shop-carousel-title h2 {
    margin: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #333333 !important;
}

.shop-carousel-nav {
    display: flex !important;
    gap: 8px !important;
}

.shop-carousel-btn {
    background: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 50% !important;
    color: #666666 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    width: 40px !important;
    height: 40px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    outline: none !important;
}

.shop-carousel-btn:hover {
    background: #f8f9fa !important;
    border-color: var(--primary_color, #007cba) !important;
    color: var(--primary_color, #007cba) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.shop-carousel-btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

.shop-carousel-btn svg {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
}

.shop-carousel-container {
    position: relative !important;
    width: 100% !important;
}

.shop-carousel-swiper {
    width: 100% !important;
    overflow: hidden !important;
}

.shop-carousel-swiper .swiper-wrapper {
    display: flex !important;
    align-items: flex-start !important;
}

.shop-carousel-swiper .swiper-slide {
    width: auto !important;
    flex-shrink: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: flex-start !important;
}

.shop-category-link {
    font-weight: 500 !important;
    color: #333333 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
    padding: 10px !important;
    align-items: center !important;
    min-height: 200px !important;
}

.shop-category-link:hover {
    color: var(--primary_color, #007cba) !important;
}

.shop-category-image {
    border-radius: 50% !important;
    width: 150px !important;
    height: 150px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    border: 2px solid #f0f0f0 !important;
}

.shop-category-link:hover .shop-category-image {
    transform: scale(1.05) !important;
    border-color: var(--primary_color, #007cba) !important;
}

.shop-category-name {
    line-height: 1.4 !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    color: #333333 !important;
    text-align: center !important;
    width: 150px !important;
    word-wrap: break-word !important;
}

/* Desktop: adaptive arrangement based on category count */
@media (min-width: 1025px) {
    .shop-carousel-nav {
        display: none !important;
    }

    .shop-carousel-swiper .swiper-wrapper {
        justify-content: space-between !important;
    }

    .shop-carousel-swiper .swiper-slide {
        flex: 1 !important;
        justify-content: center !important;
    }

    /* Show navigation if more than 6 categories */
    .shop-carousel-main[data-categories="7"] .shop-carousel-nav,
    .shop-carousel-main[data-categories="8"] .shop-carousel-nav,
    .shop-carousel-main[data-categories="9"] .shop-carousel-nav,
    .shop-carousel-main[data-categories="10"] .shop-carousel-nav {
        display: flex !important;
    }
}

/* Responsive */
@media (max-width: 767px) {
    .shop-category-image {
        width: 120px !important;
        height: 120px !important;
    }

    .shop-category-name {
        width: 120px !important;
    }

    .shop-carousel-title h2 {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .shop-category-image {
        width: 100px !important;
        height: 100px !important;
    }

    .shop-category-name {
        width: 100px !important;
        font-size: 0.85rem !important;
    }
}