/* HM Styles Subcategory Carousel */
.hm-subcats,
.hm-subcats * { box-sizing:border-box; }

.hm-subcats {
    --hm-navy:#0D2A46;
    --hm-pink:#E33572;
    --hm-soft:#FFF0F5;
    --hm-border:#F2DCE4;
    --hm-text:#1A1D24;
    --hm-desktop-items:6;
    --hm-mobile-items:4;
    --hm-circle-size:150px;

    width:100vw !important;
    max-width:100vw !important;
    position:relative;
    left:50%;
    transform:translateX(-50%);
    margin:8px 0 30px !important;
    padding:0 clamp(16px, 3vw, 48px) !important;
    overflow:hidden;
    font-family:'Montserrat',Arial,sans-serif;
    background:#fff;
}

.hm-subcats__head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    margin:0 0 16px;
}

.hm-subcats__title {
    position:relative;
    margin:0 !important;
    padding-left:15px;
    color:var(--hm-navy) !important;
    font-size:clamp(20px,2vw,28px) !important;
    line-height:1.2 !important;
    font-weight:700 !important;
    letter-spacing:-.02em;
}

.hm-subcats__title::before {
    content:'';
    position:absolute;
    left:0;
    top:50%;
    width:4px;
    height:26px;
    border-radius:999px;
    background:var(--hm-pink);
    transform:translateY(-50%);
}

.hm-subcats__carousel { position:relative; width:100%; }

.hm-subcats__track {
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:calc((100% - ((var(--hm-desktop-items) - 1) * 22px)) / var(--hm-desktop-items));
    gap:22px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x proximity;
    scroll-behavior:smooth;
    scrollbar-width:none;
    padding:2px 48px 12px;
}
.hm-subcats__track::-webkit-scrollbar{display:none;}

.hm-subcats__item {
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    color:var(--hm-text) !important;
    text-decoration:none !important;
    text-align:center;
    scroll-snap-align:start;
    -webkit-tap-highlight-color:transparent;
}

.hm-subcats__image-wrap {
    width:min(var(--hm-circle-size), 100%);
    aspect-ratio:1/1;
    display:block;
    overflow:hidden;
    border-radius:50%;
    background:#FFDDE6;
    border:1px solid #F7D2DE;
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.hm-subcats__img {
    display:block;
    width:100% !important;
    height:100% !important;
    margin:0 !important;
    object-fit:cover !important;
    border-radius:50% !important;
}

.hm-subcats__name {
    display:-webkit-box;
    width:100%;
    max-width:180px;
    min-height:38px;
    overflow:hidden;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    color:var(--hm-text);
    font-size:13px;
    line-height:1.35;
    font-weight:500;
}

.hm-subcats__item:hover .hm-subcats__image-wrap {
    transform:translateY(-3px);
    border-color:#F2B9CD;
    box-shadow:0 10px 22px rgba(13,42,70,.09);
}
.hm-subcats__item:hover .hm-subcats__name { color:var(--hm-pink); }

.hm-subcats__arrow {
    position:absolute;
    z-index:5;
    top:50%;
    width:38px;
    height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:1px solid #E7E7E7;
    border-radius:50%;
    background:#fff;
    color:var(--hm-navy);
    box-shadow:0 3px 12px rgba(13,42,70,.08);
    transform:translateY(-70%);
    cursor:pointer;
    transition:.18s ease;
}
.hm-subcats__arrow:hover { background:var(--hm-pink); border-color:var(--hm-pink); color:#fff; }
.hm-subcats__arrow span { display:block; font-size:28px; line-height:1; margin-top:-2px; }
.hm-subcats__arrow--prev { left:0; }
.hm-subcats__arrow--next { right:0; }
.hm-subcats__arrow[hidden] { display:none !important; }

@media(max-width:767px){
    .hm-subcats {
        width:100vw !important;
        max-width:100vw !important;
        left:50%;
        transform:translateX(-50%);
        margin:6px 0 22px !important;
        padding:0 12px !important;
    }
    .hm-subcats__head{margin-bottom:12px;}
    .hm-subcats__title{padding-left:12px;font-size:18px !important;}
    .hm-subcats__title::before{width:3px;height:22px;}

    .hm-subcats__track {
        grid-auto-columns:calc((100% - ((var(--hm-mobile-items) - 1) * 10px)) / var(--hm-mobile-items));
        gap:10px;
        padding:0 4px 10px;
        scroll-snap-type:x mandatory;
    }

    .hm-subcats__image-wrap {
        width:min(21vw,92px);
        max-width:100%;
    }
    .hm-subcats__name{min-height:34px;font-size:10px;line-height:1.3;}
    .hm-subcats__arrow{width:30px;height:30px;background:rgba(255,255,255,.96);transform:translateY(-82%);}
    .hm-subcats__arrow span{font-size:22px;}
}

/* v1.2.0 - arrows removed, clean responsive pagination dots */
.hm-subcats__arrow{
    display:none !important;
}

.hm-subcats__track{
    padding-left:2px !important;
    padding-right:2px !important;
    padding-bottom:12px !important;
}

.hm-subcats__dots{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    width:100%;
    min-height:20px;
    margin:6px 0 0;
    padding:0;
}

.hm-subcats__dots[hidden]{
    display:none !important;
}

.hm-subcats__dot{
    appearance:none;
    -webkit-appearance:none;
    width:7px;
    height:7px;
    min-width:7px;
    min-height:7px;
    margin:0;
    padding:0;
    border:0;
    border-radius:999px;
    background:#D9DEE5;
    box-shadow:none;
    cursor:pointer;
    transition:width .2s ease, background-color .2s ease, transform .2s ease;
}

.hm-subcats__dot:hover,
.hm-subcats__dot:focus-visible{
    background:#F19AB8;
    outline:none;
}

.hm-subcats__dot.is-active{
    width:22px;
    background:var(--hm-pink);
}

@media(max-width:767px){
    .hm-subcats__track{
        padding-left:0 !important;
        padding-right:0 !important;
        padding-bottom:8px !important;
    }

    .hm-subcats__dots{
        gap:6px;
        margin-top:4px;
        min-height:18px;
    }

    .hm-subcats__dot{
        width:6px;
        height:6px;
        min-width:6px;
        min-height:6px;
    }

    .hm-subcats__dot.is-active{
        width:18px;
    }
}

/* v1.2.1 - responsive dots + mouse drag/swipe */
.hm-subcats__track{
    cursor:grab;
    user-select:none;
    -webkit-user-select:none;
    -webkit-overflow-scrolling:touch;
}
.hm-subcats__track.is-dragging{
    cursor:grabbing;
    scroll-snap-type:none !important;
    scroll-behavior:auto !important;
}
.hm-subcats__track img,
.hm-subcats__track a{
    -webkit-user-drag:none;
    user-drag:none;
}

.hm-subcats .hm-subcats__dots{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-wrap:nowrap !important;
    gap:7px !important;
    width:auto !important;
    max-width:100% !important;
    min-height:24px !important;
    margin:8px auto 0 !important;
    padding:4px 10px !important;
    background:#fff7fa !important;
    border:1px solid #f5d8e2 !important;
    border-radius:999px !important;
    overflow:hidden !important;
}
.hm-subcats .hm-subcats__dots[hidden]{display:none !important;}

.hm-subcats .hm-subcats__dot,
.hm-subcats .hm-subcats__dots button.hm-subcats__dot{
    appearance:none !important;
    -webkit-appearance:none !important;
    display:block !important;
    flex:0 0 7px !important;
    width:7px !important;
    min-width:7px !important;
    max-width:7px !important;
    height:7px !important;
    min-height:7px !important;
    max-height:7px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    outline:0 !important;
    border-radius:999px !important;
    background:#d8dee6 !important;
    box-shadow:none !important;
    line-height:0 !important;
    font-size:0 !important;
    opacity:1 !important;
    transform:none !important;
}
.hm-subcats .hm-subcats__dot::before,
.hm-subcats .hm-subcats__dot::after{display:none !important;content:none !important;}
.hm-subcats .hm-subcats__dot:hover,
.hm-subcats .hm-subcats__dot:focus,
.hm-subcats .hm-subcats__dot:focus-visible{
    background:#f19ab8 !important;
    border:0 !important;
    outline:0 !important;
    box-shadow:none !important;
}
.hm-subcats .hm-subcats__dot.is-active{
    flex-basis:22px !important;
    width:22px !important;
    min-width:22px !important;
    max-width:22px !important;
    background:var(--hm-pink) !important;
}

@media(max-width:767px){
    .hm-subcats .hm-subcats__dots{
        gap:5px !important;
        min-height:22px !important;
        margin-top:5px !important;
        padding:4px 8px !important;
    }
    .hm-subcats .hm-subcats__dot,
    .hm-subcats .hm-subcats__dots button.hm-subcats__dot{
        flex-basis:6px !important;
        width:6px !important;
        min-width:6px !important;
        max-width:6px !important;
        height:6px !important;
        min-height:6px !important;
        max-height:6px !important;
    }
    .hm-subcats .hm-subcats__dot.is-active{
        flex-basis:18px !important;
        width:18px !important;
        min-width:18px !important;
        max-width:18px !important;
    }
    .hm-subcats__track{cursor:auto;}
}

/* v1.3.1 - all-category reachability + autoplay polish */
.hm-subcats__track{
    scroll-padding-inline:2px;
    touch-action:pan-y pan-x;
}
.hm-subcats__item{
    min-width:0 !important;
}
.hm-subcats__dots{
    position:relative;
    z-index:2;
}
@media (hover:hover) and (pointer:fine){
    .hm-subcats__track{cursor:grab;}
    .hm-subcats__track.is-dragging{cursor:grabbing;}
}

/* v1.3.2 - category links remain clickable; drag only suppresses accidental clicks */
.hm-subcats__item{
    pointer-events:auto !important;
    cursor:pointer !important;
}
.hm-subcats__item *{
    pointer-events:none;
}
.hm-subcats__track.is-dragging .hm-subcats__item{
    cursor:grabbing !important;
}
