/* =================== */
/* Header Sticky Nav */
/* =================== */
header.nav-holder.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 998;
    -webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, .1);
    box-shadow: 2px 2px 3px rgba(0, 0, 0, .1);
}

.user-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

/* =================== */
/* User Menu */
/* =================== */



.open-overlay-btn {
    background-color: #333;
    border: none;
    cursor: pointer;
    background-color: rgba(51, 51, 51, 0.24);
    transition: opacity 500ms cubic-bezier(0.25, 0.1, 0.25, 1) 0s, visibility 500ms cubic-bezier(0.25, 0.1, 0.25, 1) 0s;
    opacity: 1;
}

/* =================== */
/* User Panel */
/* =================== */
.user-panel {
    height: 100%;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.user-panel h2,
.user-panel h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.user-panel h2 {
    font-size: 20px;
    color: #222;
}

.user-panel a {
    color: #0078d4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-left: 10px;
}

.user-panel a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.user-panel ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.user-panel ul li {
    margin-bottom: 10px;
}

.user-panel ul li a {
    display: inline-block;
}

.user-panel h4::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #0078d4;
    margin: 5px 0 10px;
}

/* =================== */
/* Panel Overlay */
/* =================== */
.panel-overlay {
    position: fixed;
    top: 0;
    right: -300px;
    height: 100%;
    width: 300px;
    background-color: #183e51;
    z-index: 999;
    padding: 8px;
    max-height: -webkit-fill-available;
    visibility: visible;
    box-shadow: rgba(0, 0, 0, 0.14) 0px 1rem 1.5rem, rgba(0, 0, 0, 0.12) 0px 0.375rem 5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 500ms cubic-bezier(0.25, 0.1, 0.25, 1) 0s;
    transform: translateX(0px);
}

.panel-overlay.open {
    right: 0;
}

.profile-link:hover + .panel-overlay,
.panel-overlay:hover {
    display: block;
}

/* =================== */
/* User Panel Overlay */
/* =================== */
.user-panel-overlay {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.user-panel-overlay.active {
    right: 0;
}

.user-panel {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

/* =================== */
/* Close Panel Button */
/* =================== */
.close-panel-btn {
    background: #f8f9fa;
    border: none;
    width: 100%;
    padding: 12px 15px;
    text-align: left;
    font-size: 1rem;
    color: #333;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.close-panel-btn i {
    margin-right: 8px;
}

/* =================== */
/* Overlay Background */
/* =================== */
.overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    cursor: pointer;
}

.overlay-bg.open {
    display: block;
}

/* =================== */
/* Responsive */
/* =================== */

/* Primera carga */
@media (max-width: 768px) {
    .container {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .user-panel-overlay {
        width: 85%;
        right: -85%;
    }

    .profile-link {
        display: flex;
        align-items: center;
        color: #fff;
        text-decoration: none;
        font-size: 54px;
        padding: 1px 1px;
        color: black;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    .profile-link i {
        font-size: 18px;
        margin-right: 5px;
    }

    .profile-link:hover {
        background-color: #0056b3;
    }

    .btn {
        font-size: .9rem !important;
    }
}

/* ======================= */
/* Navbar Brand */
/* ======================= */
.navbar-brand {
    display: inline-block;
    padding-top: .3125rem;
    padding-bottom: .3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
}

/* ======================= */
/* Search Area - General */
/* ======================= */



/* ======================= */
/* Responsive Inputs (≤600px) */
/* ======================= */
@media only screen and (max-width: 600px) {
    .input-group > .custom-file,
    .input-group > .custom-select,
    .input-group > .form-control {
        position: relative;
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
        width: 50%;
        margin-bottom: 0;
        border-radius: 5px;
    }

    .input-group > .custom-file::placeholder,
    .input-group > .custom-select::placeholder,
    .input-group > .form-control::placeholder {
        text-indent: 10px;
    }

    .input-group {
        margin: 10px;
    }
}

/* ======================= */
/* Responsive Search (≤768px) */
/* ======================= */
@media only screen and (max-width: 768px) {
  

    .input-group {
        width: 125% !important;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 10px;
    }

    .search {
        border: 2px solid #ced4da;
        border-radius: 10px;
    }

    .form-control.search-input.search {
        border-radius: 10px;
    }

    .search-input + .input-group-btnb .btnb {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 50px;
        padding: 0;
    }

    .btnb {
        color: #212529;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        border: 1px solid transparent;
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
        line-height: 1.5;
        border-radius: 0.25rem;
        transition: color .15s ease-in-out,
                    background-color .15s ease-in-out,
                    border-color .15s ease-in-out,
                    box-shadow .15s ease-in-out;
    }
}


/* ======================= */
/* Navbar - Contenedor base */
/* ======================= */

.navbar-nav .nav-item {
    display: inline-block;
}

.navbar-nav .dropdown-menu {
    top: 39px !important;
}


/* ======================= */
/* Menú Categorías grandes */
/* ======================= */

#navbar ul ul a {
    padding-left: 0 !important;
}

/* ======================= */
/* Enlaces de Navegación */
/* ======================= */
/*Primera carga*/
a.nav-link {
    display: inline-block;
    padding: 10px 1.5em 10px 10px;
    border-radius: 0 !important;
    font-size: .9rem;
    color: inherit;
    text-decoration: none;
}

a.nav-link .nav__title {
    display: inline-block;
    position: relative;
    transition: color .3s ease-in-out;
    color: #525260;
    font-weight: 600;
    cursor: pointer;
}

a.nav-link .nav__title:hover,
a.nav-link .nav__title:active {
    color: #4576AA;
}

a.nav-link .nav__title:hover::before,
a.nav-link .nav__title:active::before {
    width: 100%;
    opacity: 1;
}

.nav__title::before {
    content: "";
    height: .1rem;
    position: absolute;
    bottom: .5rem;
    opacity: 0;
}

.category-menu a.nav-link {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
}

/* ======================= */
/* Botón "Más Categorías" */
/* ======================= */
#mas-categorias {
    border-radius: 0;  /* Sin bordes redondeados */
    background-color: transparent;  /* Sin fondo gris */
    color: #525260;  /* Mismo color que otros enlaces */
    font-weight: 600;  /* Mismo peso que nav-link */
    font-size: 0.9rem;  /* Mismo tamaño que otros enlaces */
    padding: 10px 1.5em 10px 10px;  /* Mismo padding que nav-link */
    margin-left: 0;  /* Sin margen extra */
    transition: color 0.3s ease;
    cursor: pointer;
}



/* ======================= */
/* Estilos de Dropdown */
/* ======================= */
.dropdown-menu {
    z-index: 1000;
    min-width: 10rem;
    padding: 0;
    margin: .125rem 0 0;
    font-size: 1rem;
    background-color: #fff;
    color: #212529;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 0;
}

.nav-item .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    opacity: 0;
    min-width: 200px;
    transition: all 0.3s ease-in-out;
}

.nav-item:hover .dropdown-menu {
    display: block;
    opacity: 1;
    top: 100%;
}

/* Dropdown personalizado */
.dropdown-menu.dropdown-custom-position {
    left: 100%;
    transform: translateX(-100%);
    width: auto;
}

.dropdown-menu.dropdown-custom-position.left-align {
    left: 25%;
    transform: none;
}

/* ======================= */
/* Estilos de Items Dropdown */
/* ======================= */
.dropdown-item {
    padding: .25rem 1.5rem;
    color: #212529;
}

.dropdown-item:focus,
.dropdown-item:hover {
    color: #16181b;
    background-color: #f8f9fa;
}

.dropdown-item.active,
.dropdown-item:active {
    color: #fff;
    background-color: #467fbf;
}

.dropdown-item.disabled,
.dropdown-item:disabled {
    color: #868e96;
}

/* ======================= */
/* Sidebar con iconos */
/* ======================= */
.sidebar-menu.with-icons a.nav-link {
    position: relative;
}

.sidebar-menu.with-icons a.nav-link::before {
    content: 'f105';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-family: FontAwesome;
}

/* ======================= */
/* Pills Bootstrap */
/* ======================= */
.nav-pills .nav-link {
    border-radius: 0;
}

.nav-pills .nav-link:hover {
    background: #eee;
}

/* ======================= */
/* Navegación Responsive */
/* ======================= */
@media (max-width: 1238px),
       (max-width: 1450px) {
    .nav__title {
        line-height: normal !important;
    }
}

@media (max-width: 991px) {
    #navbar .navbar-collapse {
        max-height: 600px;
        overflow-y: auto;
        margin-top: 1rem;
    }

    #navbar .navbar-nav > li > a {
        padding: 0 10px;
        height: 45px;
        line-height: 45px;
        font-size: .85rem;
        width: 100%;
    }

    #navbar .navbar-nav > li > a:hover {
        background: rgba(70, 127, 191, .5);
        border-color: rgba(70, 127, 191, .8);
    }

    #navbar .dropdown-menu {
        border: none;
        box-shadow: none;
    }
}

@media screen and (max-width: 992px) {
    .nav__item:hover {
        left: 0;
        width: 100%;
        max-width: 100%;
    }

    .nav__item {
        position: relative;
    }
}

@media screen and (max-width: 768px) {
    .navbar-nav {
        overflow-y: auto;
        background-color: white;
    }

    .nav__item:hover {
        opacity: 1;
        transform: translateX(0);
    }

    .submenu__title::after {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
    }

    ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }
}

@media (max-width: 767px) {
    nav.navbar {
        position: fixed;
        top: 65px;
        width: 100%;
        z-index: 1000;
    }

    .nav__item-wrapper {
        display: block;
        margin: 0 0 10px 15px;
        border-bottom: 1px solid #80808024;
    }

    .nav_item-wrapper::after {
        font-family: 'FontAwesome';
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        color: #000;
    }
}

/* ======================= */
/* Menús colapsables */
/* ======================= */
.menu {
    height: 100vh;
    width: 100%;
}

.collapse-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%); 
    transition: transform 0.3s ease; 
}

.collapse-right.show {
    transform: translateX(0);
}
/* ======================= */
/* Submenús */
/* ======================= */
.submenu__title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    text-transform: capitalize;
    text-decoration: none;
    position: relative;
    color: var(--color-text-body);
    margin-left: 10px;
    padding-left: 16px;
    margin-right: -10px;

}

.submenu__title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    height: .1rem;
    width: 0;
    background-color: var(--color-primary);
    transition: .3s ease-in-out;
}

.submenu__title:hover::after {
    width: 100%;
}

/* ======================= */
/* Back Link */
/* ======================= */
.nav__back-link {
    padding-left: 12px;
    margin-right: 4px;
    color: inherit;
}

/* ======================= */
/* Familias - Títulos */
/* ======================= */
.familias__title {
    border-bottom: 1.5px solid #cdcacb;
    margin-left: 15px; /* Reducir margen lateral */
    padding: 16px 5px 12px 0; /* Menos espaciado vertical */
    width: calc(100% - 25px); /* Ajustar al nuevo margen */
    font-size: 0.95rem; /* Ligeramente más pequeño */
}

 .categoria__top {
                background: linear-gradient(260deg, #a9a9a9 0%, #d5d5d5 100%);
            border-bottom: none !important;
            margin-left: 0 !important;
            width: 100% !important;
            padding: 0 !important;
            position: sticky;
            top: 0;
            z-index: 100;
            color: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* ======================= */
/* Nav Item Search Highlight */
/* ======================= */
li.nav-item.active.searched {
    height: 35px;
    width: 35px;
    display: flex;
    align-items: center;
}

li.nav-item.active.searched a,
li.nav-item.active.searched a i {
    height: 35px;
    width: 35px;
}


.novedad-badge {
    position: absolute;
    top: 5px;
    right: 45px;
    transform: translate(60%, -60%);
    background-color: red;
    color: white;
    font-size: 0.7em;
    padding: 0.2em 0.4em;
    border-radius: 0.2em;
    pointer-events: none;
    white-space: nowrap;
    -webkit-border-radius: 61px 100px 32px 90px;

}

.temporada-badge {
    position: absolute;
    top: 5px;
    right: 55px;
    transform: translate(60%, -60%);
    background-color: #2ecc71;
    color: white;
    font-size: 0.7em;
    padding: 0.2em 0.4em;
    border-radius: 0.2em;
    pointer-events: none;
    white-space: nowrap;
    -webkit-border-radius: 61px 100px 32px 90px;

}

/* Dropdown items */
.dropdown-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Hidden elements */
.masCategorias {
    display: none !important;
}

/* Dropdown multi-columna optimizado */
.dropdown-menu.multi-column {
    min-width: 320px;  /* Reducido de 400px */
    max-width: 400px;  /* Limita el ancho máximo */
    column-count: 2;
    column-gap: 10px;  /* Reducido de 20px - menos espacio entre columnas */
    padding: 10px 15px; /* Padding más compacto */
}

.dropdown-menu.multi-column .dropdown-item {
    break-inside: avoid;
    padding: 4px 8px;  /* Reducido de 8px 15px - más compacto */
    margin-bottom: 2px; /* Pequeño espacio entre items */
}

.dropdown-menu.multi-column .dropdown-item a {
    font-size: 14px;   /* Ajusta el tamaño de fuente si es necesario */
    white-space: nowrap; /* Evita que los nombres se corten en varias líneas */
}

/* Dropdown multi-columna optimizado */
.dropdown-menu.multi-column {
    min-width: 300px;
    max-width: 350px;
    column-count: 2;
    column-gap: 10px;
    padding: 8px 10px;
    /* Posicionamiento inteligente */
    left: auto !important;
    right: 0;
    transform: translateX(0) !important;
}

/* Ajuste para que no se salga del viewport */
.nav-item:last-child .dropdown-menu.multi-column,
.navbar-nav > li:nth-last-child(-n+2) .dropdown-menu.multi-column {
    right: 0;
    left: auto;
}

.dropdown-menu.multi-column .dropdown-item {
    break-inside: avoid;
    padding: 3px 6px;
    margin-bottom: 1px;
}

.dropdown-menu.multi-column .dropdown-item a {
    font-size: 13px;
    white-space: nowrap;
    line-height: 1.4;
}

/* Estilo para "Ver más marcas" */
.dropdown-item.ver-mas-item {
    border-top: 2px solid #e0e0e0;
    margin-top: 8px;
    padding-top: 8px;
}

.ver-mas-link {
    color: #4576AA !important;
    font-weight: 600 !important;
    text-align: center;
    display: block;
}

.ver-mas-link:hover {
    color: #2d5a8a !important;
    text-decoration: underline;
}

/* Ajuste para multi-columna con "Ver más" */
.dropdown-menu.multi-column .ver-mas-item {
    column-span: all; /* Ocupa las 2 columnas completas */
    width: 100%;
}