/* =========================================================
   BARBET SHARED CATEGORY CAROUSEL V19
   Used on Collections and Login pages.
   ========================================================= */

.mm-category-carousel{
    position:relative;
    width:100%;
    overflow:hidden;
    border-top:1px solid #eee8e3;
    border-bottom:1px solid #e1d9d3;
    background:#fff;
}

.mm-category-carousel-shell{
    position:relative;
    width:100%;
    max-width:100%;
    margin:0 auto;
    padding:28px 70px 30px;
}

.mm-category-carousel-track{
    display:flex;
    align-items:flex-start;
    gap:24px;
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-behavior:smooth;
    scroll-snap-type:x mandatory;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-x;
    padding:0 8px 8px;
}

.mm-category-carousel-track::-webkit-scrollbar{
    display:none;
}

.mm-category-carousel-card{
    flex:0 0 190px;
    width:190px;
    min-width:190px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    scroll-snap-align:center;
    color:#15110f;
    text-decoration:none !important;
    outline:none;
}

.mm-category-carousel-media{
    width:190px;
    height:190px;
    display:grid;
    place-items:center;
    overflow:hidden;
    border:1px solid #eee7e2;
    border-radius:50%;
    background:#fff;
    box-shadow:0 4px 18px rgba(42,31,25,.035);
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.mm-category-carousel-card.is-active .mm-category-carousel-media{
    border:2px solid #b84b35;
    background:#fbf0eb;
}

.mm-category-carousel-media img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
    transition:transform .35s ease;
}

.mm-category-carousel-all svg{
    width:58px;
    height:58px;
    fill:none;
    stroke:#b84b35;
    stroke-width:2.1;
}

.mm-category-carousel-placeholder{
    width:100%;
    height:100%;
    display:grid;
    place-items:center;
    background:linear-gradient(145deg,#f9f0ea,#eadbd1);
    color:#a74832;
    font-size:46px;
    font-weight:600;
}

.mm-category-carousel-name{
    display:block;
    width:100%;
    margin-top:10px;
    color:#16110f;
    font-size:15px;
    font-weight:700;
    line-height:1.25;
}

.mm-category-carousel-card.is-active .mm-category-carousel-name{
    color:#b04731;
}

.mm-category-carousel-count{
    display:block;
    min-height:15px;
    margin-top:4px;
    color:#95867e;
    font-size:9px;
    line-height:1.25;
}

.mm-category-carousel-arrow{
    position:absolute;
    z-index:12;
    top:50%;
    width:52px;
    height:52px;
    padding:0;
    display:grid;
    place-items:center;
    transform:translateY(-58%);
    border:0;
    border-radius:50%;
    background:#111;
    color:#fff;
    box-shadow:0 8px 22px rgba(0,0,0,.13);
    cursor:pointer;
    transition:
        transform .18s ease,
        background-color .18s ease,
        opacity .18s ease;
}

.mm-category-carousel-prev{left:22px}
.mm-category-carousel-next{right:22px}

.mm-category-carousel-arrow svg{
    width:22px;
    height:22px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.mm-category-carousel-arrow:hover:not(:disabled),
.mm-category-carousel-arrow:focus-visible:not(:disabled){
    background:#b44a35;
    transform:translateY(-58%) scale(1.05);
    outline:none;
}

.mm-category-carousel-arrow:disabled{
    opacity:.28;
    cursor:default;
}

.mm-category-carousel-arrow[hidden]{
    display:none !important;
}

@media(hover:hover) and (pointer:fine){
    .mm-category-carousel-card:hover .mm-category-carousel-media{
        transform:translateY(-3px);
        border-color:#d9c8be;
        box-shadow:0 11px 26px rgba(42,31,25,.09);
    }

    .mm-category-carousel-card:hover .mm-category-carousel-media img{
        transform:scale(1.045);
    }

    .mm-category-carousel-card:hover .mm-category-carousel-name{
        color:#b04731;
    }
}

/* Preserve a centered presentation when only a few categories exist. */
@media(min-width:901px){
    .mm-category-carousel-track[data-few-items="1"]{
        justify-content:center;
    }
}

@media(max-width:1200px){
    .mm-category-carousel-card{
        flex-basis:160px;
        width:160px;
        min-width:160px;
    }

    .mm-category-carousel-media{
        width:160px;
        height:160px;
    }
}

@media(max-width:900px){
    .mm-category-carousel-shell{
        padding:22px 52px 24px;
    }

    .mm-category-carousel-prev{left:12px}
    .mm-category-carousel-next{right:12px}

    .mm-category-carousel-arrow{
        width:44px;
        height:44px;
    }
}

@media(max-width:760px){
    .mm-category-carousel-shell{
        padding:16px 14px 20px;
    }

    .mm-category-carousel-track{
        gap:14px;
        padding-inline:2px;
    }

    .mm-category-carousel-card{
        flex-basis:116px;
        width:116px;
        min-width:116px;
    }

    .mm-category-carousel-media{
        width:116px;
        height:116px;
    }

    .mm-category-carousel-name{
        margin-top:8px;
        font-size:11px;
    }

    .mm-category-carousel-count{
        font-size:8px;
    }

    /* Mobile uses natural touch/swipe scrolling. */
    .mm-category-carousel-arrow{
        display:none !important;
    }
}

@media(max-width:420px){
    .mm-category-carousel-card{
        flex-basis:98px;
        width:98px;
        min-width:98px;
    }

    .mm-category-carousel-media{
        width:98px;
        height:98px;
    }

    .mm-category-carousel-all svg{
        width:42px;
        height:42px;
    }
}

@media(prefers-reduced-motion:reduce){
    .mm-category-carousel-track{
        scroll-behavior:auto;
    }

    .mm-category-carousel-media,
    .mm-category-carousel-media img,
    .mm-category-carousel-arrow{
        transition:none !important;
    }
}
