/* ==========================================================
   JT MAISON — Brands Carousel Widget
   ========================================================== */

.jtm-brands-carousel {
    width: 100%;
    padding: 100px 40px;
    background: var(--jtm-white);
    box-sizing: border-box;
}

.jtm-brands-carousel__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.jtm-brands-carousel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.jtm-brands-carousel__title {
    font-family: var(--jtm-font-ui);
    font-size: 28px;
    font-weight: 600;
    color: var(--jtm-dark);
    margin: 0;
}

/* Nav Arrows */
.jtm-brands-carousel__nav {
    display: flex;
    gap: 16px;
}

.jtm-brands-carousel__nav button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--jtm-dark);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.jtm-brands-carousel__nav button:hover {
    opacity: 0.6;
}

/* Track */
.jtm-brands-carousel__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.jtm-brands-carousel__track::-webkit-scrollbar {
    display: none;
}

/* Items */
.jtm-brands-carousel__item {
    flex: 0 0 calc((100% - 40px) / 5); /* Show 5 items on desktop */
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.jtm-brands-carousel__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .jtm-brands-carousel {
        padding: 60px 24px;
    }
    
    .jtm-brands-carousel__header {
        margin-bottom: 24px;
    }
    
    .jtm-brands-carousel__nav {
        display: none; /* Hide arrows on mobile, swipe only */
    }
    
    .jtm-brands-carousel__track {
        margin: 0 -24px;
        padding: 0 24px;
        gap: 10px;
    }
    
    .jtm-brands-carousel__item {
        flex: 0 0 45%; /* Show 2 items and a peek */
    }
}
