﻿/* ═══════════════════════════════════════════════════════════════════ ESTILOS SCOPED – MENÚ ═══════════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* ── CATEGORÍAS MOBILE (scroll horizontal) ── */
.ch-hcats {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top: .5px solid rgba(17,17,17,.08);
    font-family: 'Plus Jakarta Sans', sans-serif;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /*place-content: center;*/
}

    .ch-hcats::-webkit-scrollbar {
        display: none;
    }

    /* Centrado seguro: si caben, quedan al centro; si desbordan, los márgenes
       auto valen 0 y la primera opción siempre queda visible a la izquierda.
       (No usar justify-content: center, recorta la primera opción al desbordar.) */
    .ch-hcats > .ch-hcat:first-child {
        margin-left: auto;
    }

    .ch-hcats > .ch-hcat:last-child {
        margin-right: auto;
    }

.ch-hcat {
    flex-shrink: 0;
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(17,17,17,.32);
    padding: 11px 14px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color .2s;
}

    .ch-hcat.ch-on {
        color: #111;
        border-bottom-color: #111;
    }

    .ch-hcat:hover {
        color: #111;
    }

.especiales-del-mes, .nuevo {
    color: #000 !important;
}


/* ── NAV DESKTOP ── */
.ch-dnav-wrap {
    display: none;
}

/* Configuración Desktop: Fondo del hipervínculo interno (Badge) */
.hot-sale {
    background: #B91C1C;
    color: #ffffff !important;
    /* padding: 2px 8px; */
    border-radius: 4px;
    margin-left: 1px;
    margin-right: 1px;
    font-size: 10px;
}

/* .aniversario {
                background: #efb810;
                    color: #ffffff !important;
                border-radius: 4px;
                margin-left: 1px;
                margin-right: 1px;
                font-size: 10px;
            } */

.registrate-aqui {
    background: #C8197A;
    color: #ffffff !important;
    /* padding: 2px 8px; */
    border-radius: 4px;
    margin-left: 1px;
    margin-right: 1px;
    font-size: 10px;
}

@media (min-width: 992px) {
    .ch-hcats {
        display: none !important;
    }

    .ch-dnav-wrap {
        display: block !important;
        border-top: .5px solid rgba(17,17,17,.08);
        font-family: 'Plus Jakarta Sans', sans-serif;
        position: relative;
    }

    .ch-dnav-inner {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: fit-content;
        max-width: 100%;
        margin: 0 auto;
    }

        .ch-dnav-inner::-webkit-scrollbar {
            display: none;
        }

    .ch-dnav-item {
        font-size: 12.5px;
        letter-spacing: .12em;
        text-transform: uppercase;
        font-weight: 600;
        color: rgba(17,17,17,.42);
        padding: 0;
        height: 44px;
        display: flex;
        align-items: center;
        border-bottom: 2px solid transparent;
        cursor: pointer;
        transition: color .15s;
        white-space: nowrap;
        flex-shrink: 0;
        position: relative;
    }

        .ch-dnav-item > a {
            color: inherit;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 4px;
            height: 100%;
            width: 100%;
            padding: 0 10px;
        }

        .ch-dnav-item:hover,
        .ch-dnav-item.ch-on {
            color: #111;
            border-bottom-color: #111;
        }

            .ch-dnav-item.ch-on > a {
                color: #111;
            }

    .ch-dnav-arrow {
        font-size: 7px;
        opacity: .3;
        transition: transform .15s;
        line-height: 1;
    }

    .ch-dnav-item:hover .ch-dnav-arrow {
        transform: rotate(180deg);
        opacity: .5;
    }
    /* Estructura Desktop de Badges */
    .ch-theme-special > a,
    .ch-theme-aniversario > a,
    .ch-theme-registrate > a {
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 10px;
    }
    /* ═══ SUBMENÚ – position: fixed ═══ */
    .ch-submenu {
        display: none;
        position: fixed;
        width: 620px;
        max-height: 340px;
        min-height: 18rem;
        overflow: hidden;
        background: #fff;
        border: 1px solid rgba(17,17,17,.1);
        border-top: none;
        border-radius: 0 0 14px 14px;
        box-shadow: 0 16px 40px rgba(0,0,0,.13);
        z-index: 9999;
        flex-direction: row;
    }

        .ch-submenu.ch-submenu-visible {
            display: flex;
            animation: chSmIn .15s ease both;
        }

    .ch-sm-list {
        width: 240px;
        flex-shrink: 0;
        padding: 20px 18px 20px 28px;
        border-right: 1px solid rgba(17,17,17,.06);
        display: flex;
        flex-direction: column;
        background: #fff;
        overflow-y: auto;
    }

    .ch-sm-cat-label {
        font-size: 8.5px;
        letter-spacing: .2em;
        text-transform: uppercase;
        color: rgba(17,17,17,.3);
        font-weight: 600;
        margin-bottom: 10px;
        padding-bottom: 9px;
        border-bottom: .5px solid rgba(17,17,17,.07);
    }

    .ch-sm-items {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: hidden;
    }

    .ch-sm-item {
        font-size: 12px;
        font-weight: 600;
        color: rgba(17,17,17,.52);
        padding: 4.5px 0;
        border-bottom: .5px solid rgba(17,17,17,.04);
        cursor: pointer;
        transition: color .1s, padding-left .1s;
        line-height: 1.3;
        text-decoration: none;
        text-transform: none;
        letter-spacing: normal;
    }

        .ch-sm-item:hover {
            color: #111;
            padding-left: 5px;
        }

        .ch-sm-item:last-child {
            border-bottom: none;
        }

    .ch-sm-ver-todo {
        font-size: 8.5px;
        font-weight: 700;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: #111;
        border-bottom: 1.5px solid #111;
        padding-bottom: 1px;
        cursor: pointer;
        margin-top: 10px;
        display: inline-block;
        transition: color .14s, border-color .14s;
        text-decoration: none;
    }

        .ch-sm-ver-todo:hover {
            color: #B91C1C;
            border-bottom-color: #B91C1C;
        }

    .ch-sm-imgs {
        flex: 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 3px;
        padding: 3px;
        background: #F0EDE8;
        overflow: hidden;
    }

    .ch-sm-img-a {
        grid-row: 1/3;
        overflow: hidden;
        border-radius: 4px;
        cursor: pointer;
        background: #E0D8CE;
        position: relative;
    }

    .ch-sm-img-b {
        overflow: hidden;
        border-radius: 4px;
        cursor: pointer;
        background: #E0D8CE;
        position: relative;
    }

    .ch-sm-imgs img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        display: block;
        transition: transform .3s ease;
    }

    .ch-sm-img-a:hover img,
    .ch-sm-img-b:hover img {
        transform: scale(1.04);
    }
}

@keyframes chSmIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
