/* ===========================================
   HEADER REDESIGN - PRIME SHOES
   Migración desde Shopify - Estilo primeshoes.shop
   =========================================== */

/* ===== RESET DEL BODY PADDING ===== */
/* Sobrescribir el padding-top del body y main_container_2 */
body {
    padding-top: 0 !important;
}

#main_container_2 {
    padding-top: 112px !important;
    /* Banner 44px + Header 68px = 112px */
}

@media (max-width: 992px) {
    #main_container_2 {
        padding-top: 100px !important;
    }
}

/* ===== BANNER MARQUEE - Estilo Shopify Exacto ===== */
.banner-marquee {
    background-color: #C22828;
    /* Color exacto de primeshoes.shop */
    height: 44px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.banner-marquee-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 28px;
}

/* Links fijos a los lados */
.banner-marquee-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    /* Más bold como primeshoes.shop */
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.banner-flag-icon {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.banner-marquee-link:hover {
    opacity: 0.8;
    color: #ffffff;
}

.banner-marquee-link svg {
    width: 14px;
    height: 14px;
}

/* Ocultar links en tablet y móvil */
@media (max-width: 992px) {
    .banner-marquee-link {
        display: none !important;
    }
}

/* Marquee Container */
.marquee-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    user-select: none;
    height: 100%;
    align-items: center;
    padding: 0 16px;
}

.marquee--hover-pause:hover .marquee__content {
    animation-play-state: paused;
}

.marquee__content {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: marquee-scroll 30s linear infinite;
    flex-shrink: 0;
}

.marquee__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee__item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.marquee__item p {
    margin: 0;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ===== HEADER PRINCIPAL - Estilo Shopify Exacto ===== */
#header_new {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background-color: #ffffff;
}

.header-unified {
    background-color: #ffffff !important;
    height: 68px;
}

.header-unified-nav {
    background-color: #ffffff !important;
    padding: 0 28px !important;
    height: 68px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 100%;
    margin: 0 auto;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* Logo - Estilo Shopify */
.header-logo-small {
    width: auto !important;
    flex-shrink: 0;
    margin-right: 0;
    padding-right: 20px;
}

@media (min-width: 993px) {
    .header-logo-small {
        border-right: 1px solid #e5e5e5;
    }

    .header-nav-menu {
        padding-left: 20px;
        padding-right: 20px;
        border-right: 1px solid #e5e5e5;
    }
}

.header-logo-small .header_new_logo {
    display: flex;
    align-items: center;
}

.header-logo-small #logo_nav_desk {
    height: auto !important;
    width: 100px !important;
    /* Exacto como primeshoes.shop */
    max-width: 100px;
}

.header-logo-small #logo_nav_responsive {
    display: none;
}

/* ===== MENÚ DE NAVEGACIÓN - Estilo gm-menu ===== */
.header-nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.nav-menu-link,
.dynamic-category-link {
    color: #000000 !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    padding: 15px 10px;
    margin: 0 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-menu-link:hover,
.dynamic-category-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000000 !important;
}

.nav-menu-link.nav-ofertas {
    color: #CC2128 !important;
}

.nav-menu-link i {
    margin-right: 5px;
    font-size: 14px;
}

/* Icono del fuego para Novedades */
.nav-menu-link .fa-fire {
    color: #CC2128;
}

/* Categorías dinámicas */
.dynamic-categories-container {
    display: flex;
    align-items: center;
}

.dynamic-category-link .chevron-icon {
    margin-left: 5px;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.dynamic-category-link:hover .chevron-icon,
.dynamic-category-link.active .chevron-icon {
    transform: rotate(180deg);
}

/* ===== ICONOS DEL HEADER - Estilo Shopify ===== */
.header-icons-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    text-decoration: none !important;
    position: relative;
    color: #000000;
}

.header-icon-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.header-icon-item svg {
    width: 24px;
    height: 24px;
}

.header-icon-item svg path {
    stroke: #000000;
}

.flag-icon {
    width: 18px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

/* Badge del carrito - Estilo Shopify */
/* Badge del carrito (unificado): debe aplicar tanto en header como en menú inferior */
.header-cart-badge,
#header_new_badge_cart,
#header_new_badge_cart_bottom {
    position: absolute !important;
    /* Sobre la esquina superior derecha del ícono (anchor por offsets) */
    top: -2px !important;
    right: -2px !important;
    transform: none !important;
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    z-index: 9999 !important;
    font-weight: 700 !important;
}

/* Ajuste fino para el ícono del header (carrito) */
#carritoDeCompras #header_new_badge_cart {
    top: -1px !important;
    right: -1px !important;
}

/* Ensure the icon container is positioned so badge absolute works */
.header_new_nav_icon,
.header_new_icons_container,
.header_new_options_container,
.icon_and_text_container,
.header-cart-icon,
#carritoDeCompras {
    position: relative;
}

/* Menú hamburguesa - oculto en desktop */
.header-menu-toggle {
    display: none !important;
}

/* ===== BARRA DE BÚSQUEDA OVERLAY ===== */
.header-search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
    display: none;
    animation: slideDown 0.2s ease;
}

.header-search-overlay.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-search-container {
    max-width: 600px;
    margin: 0 auto;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 5px 5px 5px 15px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.header-search-form:focus-within {
    border-color: #CC2128;
}

.header-search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-size: 15px;
    padding: 10px 0;
    outline: none !important;
    font-family: 'DM Sans', sans-serif;
}

.header-search-input::placeholder {
    color: #888;
}

.header-search-btn {
    background-color: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-btn svg path {
    fill: #CC2128 !important;
}

.header-search-close {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.header-search-close:hover {
    opacity: 1;
}

/* ===== RESULTADOS DE BÚSQUEDA - DISEÑO PREMIUM ===== */
.header-search-results {
    margin-top: 15px;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #CC2128 #f5f5f5;
    border-radius: 12px;
    background: #ffffff;
}

.header-search-results::-webkit-scrollbar {
    width: 6px;
}

.header-search-results::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.header-search-results::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #CC2128 0%, #a01c22 100%);
    border-radius: 10px;
}

/* Contenedor de cada item de resultado */
.header-search-results .SearchOptionContainer {
    display: flex !important;
    align-items: center;
    padding: 12px 16px;
    gap: 16px;
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
}

.header-search-results .SearchOptionContainer:hover {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-color: #e8e8e8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.header-search-results .SearchOptionContainer:last-child {
    margin-bottom: 0;
}

/* Imagen del producto */
.header-search-results .SearchOptionImage {
    width: 72px;
    min-width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.header-search-results .SearchOptionImage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
    border-radius: 10px;
    pointer-events: none;
}

.header-search-results .SearchOptionImage .imgSearch {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    transition: transform 0.3s ease;
}

.header-search-results .SearchOptionContainer:hover .imgSearch {
    transform: scale(1.05);
}

/* Información del producto */
.header-search-results .text_search {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.header-search-results .text_search a {
    text-decoration: none !important;
    color: inherit;
}

.header-search-results .text_search_name {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.header-search-results .SearchOptionContainer:hover .text_search_name {
    color: #CC2128;
}

.header-search-results .price_search {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #CC2128;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.header-search-results .price_search .productOfferPrice {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

/* Botones de agregar al carrito */
.header-search-results .btn_div_search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 120px;
}

/* Override inline styles from global AddBtn function */
.header-search-results .itemCartBtn,
.header-search-results .btn_div_search .itemCartBtn {
    background: linear-gradient(135deg, #CC2128 0%, #a01c22 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 8px rgba(204, 33, 40, 0.25) !important;
    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    line-height: normal !important;
    text-decoration: none !important;
}

.header-search-results .itemCartBtn:hover,
.header-search-results .btn_div_search .itemCartBtn:hover {
    background: linear-gradient(135deg, #a01c22 0%, #8a181d 100%) !important;
    box-shadow: 0 4px 16px rgba(204, 33, 40, 0.35) !important;
    transform: translateY(-1px);
}

.header-search-results .itemCartBtn:active {
    transform: translateY(0);
}

.header-search-results .itemCartBtn i {
    font-size: 12px;
}

/* Loader inside button - prevent size changes */
.header-search-results .itemCartBtn img,
.header-search-results .btn_div_search .itemCartBtn img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure button maintains fixed size during loading */
.header-search-results .btn_div_search {
    min-width: 100px;
    max-width: 120px;
}

.header-search-results .itemCartBtn,
.header-search-results .btn_div_search .itemCartBtn {
    min-width: 90px !important;
    max-width: 110px !important;
    min-height: 36px !important;
    max-height: 40px !important;
    overflow: hidden !important;
}

/* Botón de control de cantidad en resultados - Override global styles */
.header-search-results .itemSelectedCartBtn,
.header-search-results .btn_div_search .itemSelectedCartBtn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f0f2f4 !important;
    border-radius: 8px !important;
    padding: 4px 6px !important;
    gap: 2px !important;
    min-width: 90px !important;
    max-width: 100px !important;
    width: auto !important;
    height: 36px !important;
    margin: 0 !important;
    border: 1px solid #e0e0e0 !important;
}

.header-search-results .itemSelectedCartBtn button,
.header-search-results .itemSelectedCartBtn .btn_add_minus,
.header-search-results .itemSelectedCartBtn .btn_add_plus {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border: none !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #333 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.header-search-results .itemSelectedCartBtn button:hover,
.header-search-results .itemSelectedCartBtn .btn_add_minus:hover,
.header-search-results .itemSelectedCartBtn .btn_add_plus:hover {
    background: #CC2128 !important;
    color: #ffffff !important;
}

.header-search-results .itemSelectedCartBtn span {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    min-width: 20px !important;
    text-align: center !important;
    background: transparent !important;
}

/* Visual separator between items */
.header-search-results li#completeItem {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.header-search-results li#completeItem:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Mensaje de no resultados */
.header-search-results li:not(#completeItem) {
    list-style: none;
    padding: 24px 16px;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Skeleton Loading Premium */
.header-search-results .skeleton-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 16px;
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

.header-search-results .skeleton-item:last-child {
    margin-bottom: 0;
}

.header-search-results .skeleton-img {
    width: 72px;
    min-width: 72px;
    height: 72px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: shimmerPremium 1.5s infinite linear;
}

.header-search-results .text_search {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-search-results .skeleton-text {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: shimmerPremium 1.5s infinite linear;
}

.header-search-results .skeleton-text-name {
    height: 16px;
    width: 80%;
    margin-bottom: 4px;
}

.header-search-results .skeleton-text-price {
    height: 14px;
    width: 45%;
}

@keyframes shimmerPremium {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Responsive - Resultados de búsqueda */
@media (max-width: 576px) {
    .header-search-results {
        max-height: 350px;
    }

    .header-search-results .SearchOptionContainer {
        padding: 10px 12px;
        gap: 12px;
    }

    .header-search-results .SearchOptionImage {
        width: 60px;
        min-width: 60px;
        height: 60px;
    }

    .header-search-results .text_search_name {
        font-size: 13px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .header-search-results .price_search {
        font-size: 14px;
    }

    .header-search-results .itemCartBtn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .header-search-results .btn_div_search {
        min-width: 80px;
    }

    .header-search-results .itemSelectedCartBtn {
        min-width: 80px;
    }

    .header-search-results .itemSelectedCartBtn button {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
}

/* ===== MEGA MENU DROPDOWN - Estilo gm-submenu ===== */
.mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e5e5e5;
    padding: 25px 5%;
    z-index: 999;
    display: none;
    animation: fadeIn 0.2s ease;
}

.mega-menu-dropdown.active {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mega-menu-group {
    min-width: 160px;
}

.mega-menu-group-title {
    color: #000000;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #CC2128;
}

.mega-menu-group-title a {
    color: #000000 !important;
    text-decoration: none !important;
}

.mega-menu-group-title a:hover {
    color: #CC2128 !important;
}

.mega-menu-subgroup {
    margin-bottom: 8px;
}

.mega-menu-subgroup a {
    color: #666 !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    text-decoration: none !important;
    display: block;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.mega-menu-subgroup a:hover {
    color: #CC2128 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {

    .nav-menu-link,
    .dynamic-category-link {
        padding: 12px 3px;
        font-size: 13px;
        margin: 0 2px;
    }
}

@media (max-width: 992px) {

    /* Ocultar menú en tablet/móvil */
    .header-nav-menu {
        display: none !important;
    }

    /* Mostrar hamburguesa a la izquierda - usar ID para sobreescribir main.css */
    #header_new_button_responsive,
    .header-menu-toggle {
        display: flex !important;
        width: auto !important;
        color: #000000;
    }

    #header_new_button_responsive svg,
    .header-menu-toggle svg {
        width: 24px;
        height: 24px;
    }

    #header_new_button_responsive svg path,
    .header-menu-toggle svg path {
        stroke: #000000 !important;
    }

    .header-unified {
        height: 56px;
    }

    .header-unified-nav {
        height: 56px !important;
        padding: 0 15px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
        /* Vital para centrado absoluto del logo */
    }

    /* Logo centrado en mobile - Versión Robusta */
    .header-logo-small {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        text-align: center;
        width: 150px !important;
        /* Reservar espacio suficiente */
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    /* Asegurar que el enlace ocupe todo el espacio y centre la imagen */
    .header-logo-small .header_new_logo {
        display: flex !important;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
    }

    .header-logo-small img {
        display: block;
        max-height: 40px;
        max-width: 100%;
        width: auto !important;
        /* Importante para SVG */
        height: auto !important;
        object-fit: contain;
    }

    /* Priorizar logo responsive en mobile si existe */
    .header-logo-small #logo_nav_responsive {
        display: block !important;
    }

    #logo_nav_desk {
        display: none !important;
    }

    /* Ocultar bandera en mobile para más espacio */
    #flagIcon {
        display: none !important;
    }

    /* Banner marquee más pequeño en tablet/móvil */
    .banner-marquee {
        height: 40px;
    }

    .banner-marquee-wrapper {
        padding: 0 12px;
    }

    .marquee-container {
        padding: 0 6px;
    }

    .marquee__item {
        font-size: 9px;
        padding: 0 25px;
    }
}

@media (max-width: 576px) {
    .header-icons-container {
        gap: 4px;
    }

    .header-icon-item {
        padding: 6px;
    }

    .header-icon-item svg {
        width: 22px;
        height: 22px;
    }

    .flag-icon {
        width: 16px;
        height: 12px;
    }

    .header-logo-small #logo_nav_desk {
        width: 70px !important;
        height: auto !important;
    }

    .marquee__item {
        font-size: 8px;
        padding: 0 15px;
    }

    .marquee__item svg {
        width: 12px;
        height: 12px;
    }

    .banner-marquee {
        height: 36px;
    }

    .banner-marquee-wrapper {
        padding: 0 10px;
    }

    .marquee-container {
        padding: 0 4px;
    }

    #main_container_2 {
        padding-top: 92px !important;
    }
}

/* ===== OCULTAR ELEMENTOS LEGACY ===== */
#topHeader,
.branch-selection,
.containerSearchBarNew,
.header_search_container,
#searchBarContainerResponsive,
#categoriesBar {
    display: none !important;
}

/* Fix para que el logo no tenga filtro */
.header-logo-small #logo_nav_desk {
    filter: none !important;
}

/* ===== SIDE MENU REDESIGN - Estilo primeshoes.shop ===== */

/* Overlay debe estar debajo del side menu */
#overShadow {
    z-index: 499 !important;
}

/* Reset del side menu existente para aplicar nuevo estilo */
.header_new_responsive_container {
    width: 85% !important;
    max-width: 400px !important;
    height: 100vh !important;
    left: -100% !important;
    right: auto !important;
    top: 0 !important;
    background-color: #ffffff !important;
    z-index: 1100 !important;
    /* Mayor que el overlay (501) */
    padding: 0 !important;
    transition: left 0.3s ease !important;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15) !important;
}

.header_new_responsive_container.showThis {
    left: 0% !important;
}

/* Ocultar el logo dentro del side menu (ya está en el header) */
.header_new_responsive_logo {
    display: none !important;
}

/* Header del side menu con botón de cierre */
.header_new_responsive_container::before {
    content: '';
    display: block;
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

/* Contenedor de login - Estilo Shopify */
.header_new_responsive_login_container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 20px 25px !important;
    border-bottom: 1px solid #e5e5e5 !important;
    gap: 10px !important;
}

.header_new_responsive_login,
.header_new_responsive_logout,
.header_new_responsive_register {
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.header_new_responsive_login a,
.header_new_responsive_register a {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #000000 !important;
    text-decoration: none !important;
}

.header_new_responsive_logout a {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #CC2128 !important;
    text-decoration: none !important;
}

/* Título de secciones */
.header_new_responsive_title {
    padding: 15px 25px 10px !important;
    margin: 0 !important;
    border-bottom: none !important;
}

.header_new_responsive_title h4 {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #888888 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 !important;
}

.header_new_responsive_title h4 b {
    font-weight: 600 !important;
}

/* Links de categorías - Estilo gm-menu */
.header_new_responsive_link {
    padding: 15px 25px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.header_new_responsive_link a {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #000000 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.header_new_responsive_link a:hover {
    color: #CC2128 !important;
}

/* Icono chevron para submenús */
.header_new_responsive_link .chevron,
.header_new_responsive_link i.fa-chevron-down,
.header_new_responsive_link i.fa-chevron-right {
    color: #888 !important;
    font-size: 12px !important;
}

/* Overlay shadow */
#overShadow {
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(2px);
}

/* Botón de cierre del menú */
.side-menu-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.side-menu-close-btn svg {
    width: 24px;
    height: 24px;
}

.side-menu-close-btn svg path {
    stroke: #000000;
}

/* Monedas section */
.responsiveMonedas {
    padding: 10px 25px !important;
}

/* ===== SIDE CART REDESIGN - Estilo primeshoes.shop ===== */

/* Overlay del carrito */
#overlay-cart {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 998 !important;
    backdrop-filter: blur(2px);
}

/* Side Cart Container - oculto por defecto */
#CartTraki,
.side-cart {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 560px !important;
    max-width: 100vw !important;
    height: 100vh !important;
    background-color: #ffffff !important;
    z-index: 999 !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

@media (max-width: 640px) {

    #CartTraki,
    .side-cart {
        width: 100% !important;
        max-width: 100vw !important;
    }
}

/* Cuando está visible (display: block via JS) */
#CartTraki[style*="display: block"],
#CartTraki[style*="display:block"],
.side-cart[style*="display: block"],
.side-cart[style*="display:block"] {
    display: flex !important;
}

/* Header del Side Cart */
.side-cart-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 25px 30px !important;
    border-bottom: none !important;
    background-color: #ffffff !important;
    flex-shrink: 0 !important;
}

.side-cart-header h2 {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    color: #000000 !important;
    margin: 0 !important;
    display: inline !important;
}

/* Badge contador en el título - estilo superíndice */
.side-cart-header h2 sup,
#cartHeaderCount {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #000000 !important;
    vertical-align: super !important;
    margin-left: 2px !important;
}

/* Botón de cerrar carrito */
.close-cart {
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding: 0 !important;
}

.close-cart::before,
.close-cart::after {
    content: '' !important;
    position: absolute !important;
    width: 20px !important;
    height: 2px !important;
    background-color: #000000 !important;
}

.close-cart::before {
    transform: rotate(45deg) !important;
}

.close-cart::after {
    transform: rotate(-45deg) !important;
}

/* Mensaje de sesión */
#cart-session-message {
    display: none !important;
}

/* Contenido del carrito */
.side-cart-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Lista de productos del carrito */
.side-cart-product-list {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 15px 25px !important;
    display: block !important;
}

/* ===== CART ITEM - Estilo primeshoes.shop ===== */
.cart-item {
    display: flex !important;
    gap: 15px !important;
    padding: 22px 0 !important;
    border-bottom: 1px solid #e5e5e5 !important;
    position: relative !important;
}

/* Imagen del producto */
.cart-item__media {
    width: 92px !important;
    height: 92px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background-color: #f5f5f5 !important;
}

.cart-item__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Detalles del producto */
.cart-item__details {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* Fila superior: contenido a la izquierda, controles/total a la derecha */
.cart-item__top {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

.cart-item__content {
    flex: 1 !important;
    min-width: 0 !important;
}

.cart-item__right {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.cart-item__content {
    flex: 1;
}

/* Título del producto */
.cart-item__title {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin: 0 0 5px 0 !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    line-clamp: 2 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.cart-item__title a {
    color: #000000 !important;
    text-decoration: none !important;
}

.cart-item__title a:hover {
    text-decoration: underline !important;
}

/* Precio del producto */
.cart-item__price {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #000000 !important;
    margin-bottom: 8px !important;
}

.cart-item__price .old-price {
    text-decoration: line-through !important;
    color: #888 !important;
    margin-right: 8px !important;
}

.cart-item__price .new-price,
.cart-item__price .price {
    color: #000000 !important;
}

/* Controles de cantidad */
.cart-item__quantity {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    height: 34px !important;
    background-color: #ffffff !important;
}

.cart-item__quantity .qty-btn {
    width: 36px !important;
    height: 34px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 18px !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.cart-item__quantity .qty-btn:hover {
    background-color: #f5f5f5 !important;
}

.cart-item__quantity .qty-value {
    min-width: 34px !important;
    text-align: center !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #000000 !important;
}

/* Botón eliminar */
.cart-item__remove {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 6px !important;
    color: #888 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease !important;
}

.cart-item__remove:hover {
    color: #CC2128 !important;
}

/* Precio total de la línea */
.cart-item__line-total {
    position: static !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #000000 !important;
    white-space: nowrap !important;
    min-width: 78px !important;
    text-align: right !important;
}

/* Legacy styles para compatibilidad */
.side-cart-product,
.side-cart-product.cart-item-box {
    display: flex !important;
    gap: 15px !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    position: relative !important;
}

.item-prices .price,
.item-prices .new-price {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}

.item-prices .old-price {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #888 !important;
    text-decoration: line-through !important;
}

/* Botones de cantidad en el carrito */
.side-cart-product .itemSelectedCartBtn {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    height: 32px !important;
    width: auto !important;
    max-width: 100px !important;
}

/* Controles de cantidad del carrito - Estilo primeshoes.shop */
.cart-quantity-controls {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    height: 32px !important;
    width: fit-content !important;
}

.cart-quantity-controls .qty-btn {
    width: 32px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 16px !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease !important;
    padding: 0 !important;
}

.cart-quantity-controls .qty-btn:hover {
    background-color: #f5f5f5 !important;
}

.cart-quantity-controls .qty-value {
    min-width: 30px !important;
    text-align: center !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #000000 !important;
}

/* Estilos legacy para compatibilidad */
.side-cart-product .btn_add_minus,
.side-cart-product .btn_add_plus {
    width: 32px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 16px !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease !important;
}

.side-cart-product .btn_add_minus:hover,
.side-cart-product .btn_add_plus:hover {
    background-color: #f5f5f5 !important;
}

.side-cart-product .itemSelectedCartBtn span {
    min-width: 30px !important;
    text-align: center !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Footer del Side Cart - visible por defecto */
.side-cart-footer {
    flex-shrink: 0 !important;
    border-top: 1px solid #e5e5e5 !important;
    padding: 25px 30px !important;
    background-color: #ffffff !important;
    display: block !important;
}

/* Resumen de precios */
.side-cart-summary {
    margin-bottom: 20px !important;
}

.summary-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 10px !important;
}

.summary-row p {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #000000 !important;
    margin: 0 !important;
}

.summary-row span {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #000000 !important;
}

.summary-row.discount-row p,
.summary-row.discount-row span {
    font-size: 14px !important;
    color: #666 !important;
}

.summary-row.discount-row span {
    color: #CC2128 !important;
}

.summary-row.total-row {
    margin-top: 4px !important;
}

.summary-row.total-row p,
.summary-row.total-row span {
    font-weight: 600 !important;
}

/* Botones de acción del carrito */
.cart-action-buttons {
    display: flex !important;
    gap: 14px !important;
}

.btn-view-cart {
    flex: 1 !important;
    height: 46px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent !important;
    color: #000000 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: 1px solid #000000 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
}

.btn-view-cart:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.btn-checkout {
    flex: 1 !important;
    height: 46px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    line-height: 1 !important;
}

.btn-checkout:hover {
    background-color: #CC2128 !important;
}

/* Estado vacío del carrito */
.cart-empty-state {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 25px;
}

.cart-empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cart-empty-content h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 36px;
    font-weight: 400;
    color: #000000;
    margin: 0;
    line-height: 1.2;
}

.cart-empty-content h2 em {
    font-style: italic;
    color: #CC2128;
}

.cart-empty-content span {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.btn-start-shopping {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: #000000;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #000000;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-start-shopping:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Responsive del Side Cart */
@media (max-width: 576px) {

    #CartTraki,
    .side-cart {
        width: 100% !important;
        max-width: 100vw !important;
    }

    .side-cart-header {
        padding: 15px 20px !important;
    }

    .side-cart-header h2 {
        font-size: 20px !important;
    }

    .side-cart-product-list {
        padding: 10px 20px !important;
    }

    .side-cart-footer {
        padding: 15px 20px !important;
    }

    .cart-action-buttons {
        flex-direction: column !important;
    }

    .cart-empty-content h3 {
        font-size: 26px;
    }
}

/* Importar fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Poppins:wght@400;500&display=swap');

/* ----------------------------------------------------- */
/* Product Image Hover Effect Styles                     */
/* ----------------------------------------------------- */

/* Ensure the Picture container is relative to position absolute children */
.Middle .HighLightProducts .Products .Product .ProductContainer .Picture {
    position: relative !important;
    overflow: hidden;
}

/* Base styles for all product images in carousel - BOTH main and hover */
.Middle .HighLightProducts .Products .Product .ProductContainer .Picture img {
    transition: opacity 0.3s ease-in-out;
    max-width: 80%;
    max-height: 170px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Main image specific */
.Middle .HighLightProducts .Products .Product .ProductContainer .Picture .main-img {
    position: relative;
    z-index: 1;
}

/* Styles for the hover image (secondary image) */
.Middle .HighLightProducts .Products .Product .ProductContainer .Picture .hover-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 2;
    /* Inherit same size constraints as main-img */
    max-width: 80%;
    max-height: 170px;
}

/* Hover State: Hide main image if it has a hover alternative */
.Middle .HighLightProducts .Products .Product .ProductContainer:hover .Picture .main-img.has-hover {
    opacity: 0;
}

/* Hover State: Show hover image */
.Middle .HighLightProducts .Products .Product .ProductContainer:hover .Picture .hover-img {
    opacity: 1;
}

/* ----------------------------------------------------- */
/* Product Aisle (Pasillo) Image Hover Effect Styles     */
/* ----------------------------------------------------- */

/* Ensure the picture container in aisles is relative */
.image-container-aisle-responsive,
.image-container-aisle-responsive .product-picture {
    position: relative !important;
    display: block;
}

/* Base styles for aisle product images - BOTH main and hover */
.image-container-aisle-responsive img.imagePasillo {
    transition: opacity 0.3s ease-in-out;
    width: 100% !important;
    height: auto !important;
    max-height: 280px;
    object-fit: contain;
}

/* Main image specific */
.image-container-aisle-responsive .main-img {
    position: relative;
    z-index: 1;
}

/* Styles for the hover image in aisles */
.image-container-aisle-responsive .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    opacity: 0;
    z-index: 2;
}

/* Hover State: Hide main image in aisles if it has hover alternative */
.image-container-aisle-responsive:hover .main-img.has-hover {
    opacity: 0;
}

/* Hover State: Show hover image in aisles */
.image-container-aisle-responsive:hover .hover-img {
    opacity: 1;
}

/* =========================================
   Mobile Sidebar Styles (ported from SideBarGroups)
   ========================================= */

.menu-options-container {
    position: relative;
    background-color: #fff;
    z-index: 100;
    top: 0;
    transition: left 0.3s ease;
    height: 100%;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.ver-todo {
    background-color: var(--color_company_1, #c22828);
    color: #FFF;
    font-weight: bold;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.ver-todo:hover {
    background-color: #a01f1f;
}

.menu-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.menu-item:hover {
    background-color: #f9f9f9;
    color: var(--color_company_2, #000);
}

.menu-item p {
    margin: 0;
    font-size: 14px;
    text-transform: capitalize;
}

.submenu-container {
    background-color: #fff;
    height: 100%;
}

.submenu-group {
    background-color: #eee;
    padding: 10px 15px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.submenu-subgroup {
    padding: 10px 15px 10px 25px;
    /* Indent */
    border-bottom: 1px solid #f5f5f5;
}

.border-left-color {
    border-left: 5px solid var(--color_company_1, #c22828);
    background-color: #fafafa;
}

#options_new_menu_movil {
    background-color: #FFF;
    height: 100%;
    overflow-y: auto;
}