/* ==========================================================================
   yapa_marketplace.css
   Estilos propios del layout de Yapa Marketplace (header, nav, dropdowns,
   footer, mini-cart, etc). Extraído del <style> embebido en
   layout_marketplace.html para mantener el HTML limpio y cacheable.
   Las variables de color de marca (--main-primary_color, --main-secondary_color)
   se definen inline en layout_marketplace.html porque dependen de datos
   dinámicos por tienda ({{@marketplace_actual.branding}}) y deben evaluarse
   en cada render del servidor.
   ========================================================================== */

        /* ===== PRELOADER =====
           Identidad propia de Yapa: rojo profundo + dorado + blush.
           A propósito NO comparte diseño ni paleta con el loader de
           otros templates (ej. merca_market) — debe verse inconfundiblemente
           "Yapa" incluso si el marketplace no personalizó sus colores.
           Tipografía estandarizada a Arimo (igual que merca_market). */

        .preloader {
            position: fixed;
            inset: 0;
            z-index: 99999;
            background: radial-gradient(circle at 30% 20%, var(--main-secondary_color, #4a0000) 0%, #1c1210 72%);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }
        .preloader.is-hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .preloader__inner {
            display: flex;
            flex-direction: column;
            align-items: center;
            animation: pl-fadein 0.4s ease both;
        }
        @keyframes pl-fadein {
            from { opacity: 0; transform: translateY(12px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        .preloader__logo-wrap {
            position: relative;
            width: 176px;
            height: 176px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 26px;
        }
        .preloader__ring {
            position: absolute;
            border-radius: 50%;
            border: 1px solid rgba(201, 146, 46, 0.55);
            animation: pl-pulse 2.4s ease-in-out infinite;
        }
        .preloader__ring--outer {
            width: 176px;
            height: 176px;
            animation-delay: 0.4s;
        }
        .preloader__ring--inner {
            width: 152px;
            height: 152px;
            border-color: rgba(253, 242, 239, 0.4);
            animation-delay: 0s;
        }
        @keyframes pl-pulse {
            0%, 100% { transform: scale(0.94); opacity: 0.5; }
            50%       { transform: scale(1.06); opacity: 0.15; }
        }
        .preloader__logo-circle {
            position: relative;
            z-index: 1;
            width: 128px;
            height: 128px;
            border-radius: 50%;
            background: var(--blush, #fdf2ef);
            border: 1px solid rgba(201, 146, 46, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            box-shadow: 0 12px 30px rgba(0,0,0,.35);
            animation: pl-scalein 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
        }
        @keyframes pl-scalein {
            from { opacity: 0; transform: scale(0.7); }
            to   { opacity: 1; transform: scale(1); }
        }
        .preloader__logo-circle img {
            width: 96px;
            height: 96px;
            object-fit: contain;
        }
        .preloader__logo-fallback {
            font-size: 40px;
            color: var(--main-primary_color, #780000);
        }
        .preloader__name {
            margin: 0 0 6px;
            font-family: 'Arimo', 'Open Sans', sans-serif;
            font-size: 30px;
            font-weight: 700;
            font-style: italic;
            color: #fff;
            letter-spacing: -0.01em;
            animation: pl-fadein 0.4s 0.2s both;
        }
        .preloader__sub {
            margin: 0 0 28px;
            font-family: 'Arimo', 'Open Sans', sans-serif;
            font-size: 15px;
            color: var(--gold, #c9922e);
            font-weight: 500;
            letter-spacing: .02em;
            animation: pl-fadein 0.4s 0.3s both;
        }
        .preloader__bar-wrap {
            width: 200px;
            height: 4px;
            background: rgba(255,255,255,0.1);
            border-radius: 2px;
            overflow: hidden;
            margin-bottom: 16px;
            animation: pl-fadein 0.4s 0.35s both;
        }
        .preloader__bar {
            height: 100%;
            width: 0%;
            background: var(--gold, #c9922e);
            border-radius: 2px;
            animation: pl-progress 4.5s cubic-bezier(0.4,0,0.2,1) 0.4s forwards;
        }
        @keyframes pl-progress {
            0%   { width: 0%; }
            15%  { width: 28%; }
            40%  { width: 58%; }
            70%  { width: 80%; }
            90%  { width: 92%; }
            100% { width: 97%; }
        }
        .preloader__dots {
            display: flex;
            gap: 5px;
            align-items: center;
            animation: pl-fadein 0.4s 0.4s both;
        }
        .preloader__dots span {
            display: block;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--gold, #c9922e);
        }
        .preloader__dots span:nth-child(1) { animation: pl-dot 1.4s infinite 0s; }
        .preloader__dots span:nth-child(2) { animation: pl-dot 1.4s infinite 0.22s; }
        .preloader__dots span:nth-child(3) { animation: pl-dot 1.4s infinite 0.44s; }
        @keyframes pl-dot {
            0%, 80%, 100% { opacity: 0.3; transform: scale(0.75); }
            40%           { opacity: 1; transform: scale(1); }
        }
        @media (prefers-reduced-motion: reduce) {
            .preloader__ring,
            .preloader__bar,
            .preloader__dots span {
                animation: none;
            }
        }
        /* ===== FIN PRELOADER ===== */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arimo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f8f9fa;
            color: #333;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        /* Header Superior - Barra Roja */
        .top-header {
            background: var(--main-primary_color, #780000);
            padding: 12px 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 30px;
        }

        .top-header .logo img {
            height: 45px;
            width: auto;
            object-fit: contain;
        }

        .search-bar {
            flex: 1;
            max-width: 700px;
            position: relative;
        }

        .search-bar input {
            width: 100%;
            padding: 12px 50px 12px 20px;
            border: none;
            border-radius: 25px;
            font-size: 14px;
            outline: none;
            background: white;
        }

        .search-bar button {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--main-primary_color, #780000);
            border: none;
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            transition: background 0.3s;
        }

        .search-bar button:hover {
            background: var(--main-secondary_color, #5a0000);
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-shrink: 0;
        }

        .country-selector {
            position: relative;
        }

        .btn-country {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px 12px;
            background: rgba(255,255,255,0.15);
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            min-width: 44px;
        }

        .btn-country:hover {
            background: rgba(255,255,255,0.25);
        }

        .btn-country img {
            width: 28px;
            height: 18px;
            object-fit: cover;
            border-radius: 3px;
        }

        .country-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            min-width: 220px;
            max-height: 300px;
            overflow-y: auto;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }

        .country-dropdown.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .country-dropdown::-webkit-scrollbar {
            width: 6px;
        }

        .country-dropdown::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        .country-dropdown::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 3px;
        }

        .country-list {
            padding: 8px 0;
        }

        .country-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 16px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .country-item:hover {
            background: #f5f7fa;
        }

        .country-item img {
            width: 24px;
            height: 16px;
            object-fit: cover;
            border-radius: 3px;
        }

        .country-item span {
            font-size: 14px;
            color: #555;
            font-weight: 400;
        }

        .country-item.active {
            background: #f5f7fa;
        }

        .country-item.active span {
            color: #333;
            font-weight: 500;
        }

        .country-item.is-saving {
            opacity: 0.5;
            pointer-events: none;
        }

        .btn-login {
            padding: 10px 28px;
            background: transparent;
            border: 1.5px solid rgba(255,255,255,0.5);
            border-radius: 25px;
            color: white;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .btn-login:hover {
            background: rgba(255,255,255,0.15);
            border-color: white;
        }

        .btn-register {
            padding: 10px 28px;
            background: white;
            border: 1.5px solid white;
            border-radius: 25px;
            color: var(--main-primary_color, #780000);
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .btn-register:hover {
            background: #f5f5f5;
            transform: translateY(-1px);
            box-shadow: 0 3px 10px rgba(0,0,0,0.15);
        }

        /* Usuario logueado - reutiliza el patrón visual del country-dropdown */
        .user-account-section {
            position: relative;
        }

        .user-account-section .btn-login {
            display: flex;
            align-items: center;
            white-space: nowrap;
        }

        #userDropdown .country-item {
            gap: 12px;
        }

        #userDropdown .country-item i {
            color: var(--main-primary_color, #780000);
            font-size: 14px;
        }

        /* Mini carrito - posicionamiento reutilizando el patrón del nav-icons */
        .mini-cart-wrap {
            position: relative;
            display: flex;
            align-items: center;
        }

        .mini-cart {
            position: absolute;
            top: calc(100% + 15px);
            right: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            min-width: 320px;
            max-width: 360px;
            padding: 20px;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }

        .mini-cart-wrap:hover .mini-cart,
        .mini-cart.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .mini-cart .mini-product-stat {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding-top: 12px;
            border-top: 1px solid #eee;
        }

        .mini-cart .mini-total {
            display: flex;
            justify-content: space-between;
            font-weight: 700;
            color: #1E293B;
        }

        .mini-cart .mini-action {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .mini-cart .mini-link {
            text-align: center;
            padding: 10px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .mini-cart .btn--e-brand-b-2 {
            background: var(--main-primary_color, #780000);
            color: white;
            border: 1.5px solid var(--main-primary_color, #780000);
        }

        .mini-cart .btn--e-brand-b-2:hover {
            background: var(--main-secondary_color, #5a0000);
        }

        .mini-cart .btn--e-transparent-secondary-b-2 {
            background: white;
            color: var(--main-primary_color, #780000);
            border: 1.5px solid var(--main-primary_color, #780000);
        }

        .mini-cart .btn--e-transparent-secondary-b-2:hover {
            background: #FFF5F5;
        }

        .mini-cart-guest-message {
            text-align: center;
            padding: 10px 5px;
        }

        .mini-cart-guest-message .guest-message-icon {
            font-size: 32px;
            color: var(--main-primary_color, #780000);
            margin-bottom: 10px;
        }

        .mini-cart-guest-message .guest-message-title {
            font-size: 15px;
            color: #1E293B;
            margin-bottom: 8px;
        }

        .mini-cart-guest-message .guest-message-text {
            font-size: 13px;
            color: #64748B;
            margin-bottom: 15px;
            line-height: 1.5;
        }

        .guest-message-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .guest-message-actions .btn {
            padding: 10px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
        }

        .guest-message-actions .btn--e-brand-b-2 {
            background: var(--main-primary_color, #780000);
            color: white;
            border: 1.5px solid var(--main-primary_color, #780000);
        }

        .guest-message-actions .btn--e-transparent-secondary-b-2 {
            background: white;
            color: var(--main-primary_color, #780000);
            border: 1.5px solid var(--main-primary_color, #780000);
        }

        .guest-message-footer {
            margin-top: 12px;
            color: #94A3B8;
            font-size: 11px;
        }

        /* Navigation Bar - Blanca */
        .main-nav {
            background: white;
            padding: 0 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #eee;
            height: 50px;
        }

        .nav-menu {
            display: flex;
            align-items: center;
            gap: 35px;
            flex: 1;
        }

        .nav-menu a {
            font-size: 14px;
            font-weight: 600;
            color: #333;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: relative;
            padding: 15px 0;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: color 0.3s;
        }

        .nav-menu a:hover,
        .nav-menu a.active {
            color: var(--main-primary_color, #780000);
        }

        .nav-menu a.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--main-primary_color, #780000);
        }

        .nav-menu a i {
            font-size: 10px;
        }

        /* ===================================================
           NAV ITEM: trigger genérico (botón con texto + flecha)
           Comparte estilo con .nav-menu a para verse idéntico
           =================================================== */
        .nav-item-mega,
        .nav-item-dropdown {
            position: relative;
        }

        .nav-mega-trigger,
        .nav-dropdown-trigger {
            background: none;
            border: none;
            font-family: inherit;
            font-size: 14px;
            font-weight: 600;
            color: #333;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 15px 0;
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            transition: color 0.3s;
        }

        .nav-mega-trigger i,
        .nav-dropdown-trigger i {
            font-size: 10px;
            transition: transform 0.25s;
        }

        .nav-item-mega:hover .nav-mega-trigger,
        .nav-item-mega.nav-open .nav-mega-trigger,
        .nav-item-dropdown:hover .nav-dropdown-trigger,
        .nav-item-dropdown.nav-open .nav-dropdown-trigger {
            color: var(--main-primary_color, #780000);
        }

        .nav-item-mega:hover .nav-mega-trigger i,
        .nav-item-mega.nav-open .nav-mega-trigger i,
        .nav-item-dropdown:hover .nav-dropdown-trigger i,
        .nav-item-dropdown.nav-open .nav-dropdown-trigger i {
            transform: rotate(180deg);
        }

        /* ===================================================
           DROPDOWN VERTICAL SIMPLE (ítems con hijos planos)
           =================================================== */
        .nav-dropdown-panel {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            min-width: 220px;
            padding: 10px;
            z-index: 1200;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px);
            transition: all 0.25s ease;
        }

        .nav-item-dropdown:hover .nav-dropdown-panel,
        .nav-item-dropdown.nav-open .nav-dropdown-panel {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .nav-dropdown-panel a {
            display: block;
            padding: 10px 14px;
            font-size: 13px;
            font-weight: 500;
            color: #444;
            text-transform: none;
            letter-spacing: normal;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .nav-dropdown-panel a:hover {
            background: #f5f5f5;
            color: var(--main-primary_color, #780000);
        }

        /* ════════════════════════════════════════════════════════════
           MEGA MENÚ DE CATEGORÍAS → sidebar oscuro + panel de columnas
           (mismo estilo "Mercado Libre" que usa merca_market). El árbol
           (N niveles) llega ya armado en HTML desde el backend via
           renderCatNodes(), con esta estructura:
             <li class="has-sub">
               <a href="...">Nombre <i class="fas fa-angle-right cat-arrow"></i></a>
               <ul class="nav-dropdown-sub">
                 ...(mismo patrón recursivo)...
               </ul>
             </li>
           Solo se reordena visualmente con CSS: nada nuevo en PHP ni JS
           (aparte del pequeño helper de "settle" del mouse, ver script
           al final del archivo).
           ════════════════════════════════════════════════════════════ */
        .nav-mega-panel {
            position: absolute;
            top: 100%;
            left: 0;
            width: 250px;
            max-width: calc(100vw - 40px);
            max-height: 520px;
            background: var(--main-secondary_color, #5a0000);
            border-radius: 12px;
            box-shadow: 0 16px 45px rgba(0,0,0,0.18);
            z-index: 1200;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px);
            transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, width 0.16s ease;
            overflow-y: auto;
            overflow-x: visible;
            padding: 10px;
        }

        .nav-item-mega:hover .nav-mega-panel,
        .nav-item-mega.nav-open .nav-mega-panel {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* El cuadro solo se ensancha (revela el panel de columnas) cuando
           hay una categoría activa con hijos — lo controla el JS con la
           clase .nav-sub-open (mouse "settle" en desktop, tap en táctil),
           no el :hover crudo, para que un cruce en diagonal del mouse
           hacia el panel no lo interrumpa a mitad de camino. */
        .nav-mega-panel:has(> .nav-mega-tree > li.has-sub.nav-sub-open) {
            width: 820px;
        }

        .nav-mega-tree {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        /* Los <li> dejan de ser su propio punto de anclaje: el panel de
           columnas se posiciona respecto al contenedor completo */
        .nav-mega-tree li {
            position: static;
        }

        /* Fila del sidebar = categoría raíz */
        .nav-mega-tree > li {
            width: 230px;
            flex-shrink: 0;
        }

        .nav-mega-tree > li > a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 11px 14px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            color: rgba(255,255,255,0.82);
            white-space: nowrap;
        }

        .nav-mega-tree > li > a .cat-arrow {
            margin-left: auto;
            font-size: 10px;
            color: rgba(255,255,255,0.45);
            transition: transform 0.15s, color 0.15s;
        }

        .nav-mega-tree > li > a:hover,
        .nav-mega-tree > li.has-sub.nav-sub-open > a {
            background: rgba(255,255,255,0.12);
            color: #ffffff;
        }

        .nav-mega-tree > li > a:hover .cat-arrow,
        .nav-mega-tree > li.has-sub.nav-sub-open > a .cat-arrow {
            color: #ffffff;
        }

        /* Panel de columnas: hijos directos de la categoría activa.
           NO cambia con el simple :hover de la fila (ver comentario de
           .nav-sub-open arriba) — solo con la clase que agrega el JS. */
        .nav-mega-tree > li > .nav-dropdown-sub {
            position: absolute;
            top: 10px;
            left: 240px;
            right: 10px;
            bottom: 10px;
            width: auto;
            min-width: 0;
            max-width: none;
            max-height: none;
            display: grid;
            grid-auto-rows: min-content;
            grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
            gap: 20px 26px;
            align-content: start;
            background: #ffffff;
            border-radius: 10px;
            padding: 22px 24px;
            overflow-y: auto;
            overflow-x: visible;
            opacity: 0;
            visibility: hidden;
            transform: none;
            transition: opacity 0.14s ease, visibility 0.14s ease;
        }

        .nav-mega-tree > li.has-sub.nav-sub-open > .nav-dropdown-sub {
            opacity: 1;
            visibility: visible;
        }

        /* Columna = un hijo directo (título en negrita + sus propios hijos debajo) */
        .nav-mega-tree > li > .nav-dropdown-sub > li {
            display: block;
        }

        .nav-mega-tree > li > .nav-dropdown-sub > li > a {
            display: block;
            font-size: 13px;
            font-weight: 700;
            color: var(--main-primary_color, #780000);
            padding: 0 0 8px;
            margin-bottom: 6px;
            border-bottom: 1px solid #eee;
            white-space: normal;
        }

        .nav-mega-tree > li > .nav-dropdown-sub > li > a:hover {
            color: var(--main-secondary_color, #5a0000);
            background: transparent;
        }

        .nav-mega-tree > li > .nav-dropdown-sub > li .cat-arrow {
            display: none;
        }

        /* Hijos de la columna (nietos de la raíz): SIEMPRE visibles, sin
           hover, como lista simple debajo del título — así se distingue
           claramente el padre (título en negrita) del hijo (item gris) */
        .nav-mega-tree > li > .nav-dropdown-sub .nav-dropdown-sub {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            display: block;
            width: auto;
            min-width: 0;
            max-width: none;
            max-height: none;
            background: transparent;
            box-shadow: none;
            border-radius: 0;
            padding: 0;
            margin: 0;
            overflow: visible;
        }

        .nav-mega-tree > li > .nav-dropdown-sub .nav-dropdown-sub > li > a {
            font-size: 12.5px;
            font-weight: 500;
            color: #667085;
            padding: 3px 0;
            white-space: normal;
        }

        .nav-mega-tree > li > .nav-dropdown-sub .nav-dropdown-sub > li > a:hover {
            color: var(--main-primary_color, #780000);
            background: transparent;
        }

        .nav-icons {
            display: flex;
            align-items: center;
            gap: 25px;
        }

        .nav-icons a {
            color: #555;
            font-size: 20px;
            transition: color 0.3s;
            position: relative;
        }

        .nav-icons a:hover {
            color: var(--main-primary_color, #780000);
        }

        .nav-icons a .badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--main-primary_color, #780000);
            color: white;
            font-size: 10px;
            font-weight: 700;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* ════════════════════════════════════════════════════════════
        /* ════════════════════════════════════════════════════════════
           YAPA MOBILE MENU (ymm-*)
           Sistema de navegación móvil propio y exclusivo de este nav.
           Estructura en secciones claramente separadas (usuario, nav,
           configuración, carrito, logout) con sangría progresiva para
           categorías anidadas, en vez de bordes/flyouts amontonados.
           No comparte breakpoints ni reglas con el resto del layout
           (hero, categorías, productos, footer tienen su responsive
           aparte). Activo únicamente por debajo de 860px.
           ════════════════════════════════════════════════════════════ */

        /* Botón hamburguesa — oculto en desktop */
        .ymm-burger {
            display: none;
            width: 38px;
            height: 38px;
            border: none;
            background: none;
            cursor: pointer;
            position: relative;
            flex-shrink: 0;
            padding: 0;
        }

        .ymm-burger span {
            position: absolute;
            left: 7px;
            right: 7px;
            height: 2.5px;
            background: #333;
            border-radius: 2px;
            transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
        }

        .ymm-burger span:nth-child(1) { top: 12px; }
        .ymm-burger span:nth-child(2) { top: 18.5px; }
        .ymm-burger span:nth-child(3) { top: 25px; }

        .ymm-burger.ymm-open span:nth-child(1) {
            top: 18.5px;
            transform: rotate(45deg);
        }
        .ymm-burger.ymm-open span:nth-child(2) {
            opacity: 0;
        }
        .ymm-burger.ymm-open span:nth-child(3) {
            top: 18.5px;
            transform: rotate(-45deg);
        }

        /* Overlay oscuro detrás del drawer */
        .ymm-overlay {
            position: fixed;
            inset: 0;
            background: rgba(20, 0, 0, 0.55);
            z-index: 2400;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        .ymm-overlay.ymm-show {
            opacity: 1;
            visibility: visible;
        }

        /* Drawer lateral */
        .ymm-drawer {
            position: fixed;
            top: 0;
            left: -340px;
            width: 320px;
            max-width: 85vw;
            height: 100vh;
            height: 100dvh;
            background: #fff;
            z-index: 2500;
            display: flex;
            flex-direction: column;
            transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 4px 0 24px rgba(0,0,0,0.2);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        .ymm-drawer.ymm-show {
            left: 0;
        }

        .ymm-drawer__head {
            background: var(--main-primary_color, #780000);
            padding: 18px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-shrink: 0;
        }

        .ymm-drawer__head-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            color: white;
            min-width: 0;
        }

        .ymm-drawer__head-brand img {
            height: 36px;
            width: auto;
            object-fit: contain;
            border-radius: 6px;
            padding: 3px;
            flex-shrink: 0;
        }

        .ymm-drawer__head-brand span {
            font-size: 15px;
            font-weight: 700;
            letter-spacing: 0.3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ymm-drawer__close {
            background: rgba(255,255,255,0.15);
            border: none;
            color: white;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 15px;
            flex-shrink: 0;
            transition: background 0.2s;
        }
        .ymm-drawer__close:hover {
            background: rgba(255,255,255,0.28);
        }

        /* ── Bloque de usuario ── */
        .ymm-drawer__user {
            padding: 18px 20px;
            border-bottom: 1px solid #f0e4e4;
            display: flex;
            flex-direction: column;
            gap: 10px;
            flex-shrink: 0;
        }

        .ymm-drawer__guest-btn {
            width: 100%;
            text-align: center;
            padding: 11px;
            border-radius: 22px;
            font-size: 13px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .ymm-drawer__guest-btn.ymm-btn-outline {
            border: 1.5px solid #e2cccc;
            color: var(--main-primary_color, #780000);
            background: #fff;
        }

        .ymm-drawer__guest-btn.ymm-btn-primary {
            background: var(--main-primary_color, #780000);
            color: white;
            border: none;
        }

        .ymm-drawer__user--logged {
            flex-direction: row;
            align-items: center;
            gap: 14px;
        }

        .ymm-drawer__user-avatar {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            background: #faf0f0;
            color: var(--main-primary_color, #780000);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            flex-shrink: 0;
        }

        .ymm-drawer__user-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }

        .ymm-drawer__user-name {
            font-size: 14px;
            font-weight: 700;
            color: #1f2937;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ymm-drawer__user-link {
            font-size: 12px;
            font-weight: 600;
            color: var(--main-primary_color, #780000);
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        /* ── Etiquetas de sección (espacian visualmente cada bloque) ── */
        .ymm-drawer__section-label {
            padding: 16px 20px 8px;
            font-size: 11px;
            font-weight: 700;
            color: #a0aec0;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            background: #faf9f9;
        }

        .ymm-drawer__section-label--cart {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* ── Navegación principal ── */
        .ymm-drawer__nav {
            list-style: none;
            padding: 6px 0;
            margin: 0;
        }

        .ymm-drawer__nav > li {
            border-bottom: 1px solid #f7f7f7;
        }

        .ymm-drawer__nav > li > a,
        .ymm-drawer__link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 14px 20px;
            font-size: 14px;
            font-weight: 600;
            color: #1f2937;
            text-decoration: none;
            transition: background 0.2s, color 0.2s;
        }

        .ymm-drawer__nav > li > a:hover,
        .ymm-drawer__nav > li > a.ymm-active,
        .ymm-drawer__link:hover {
            background: #faf0f0;
            color: var(--main-primary_color, #780000);
        }

        .ymm-drawer__nav > li > a i.ymm-chevron {
            font-size: 12px;
            color: #a0aec0;
            transition: transform 0.25s;
            flex-shrink: 0;
        }

        .ymm-drawer__nav > li.ymm-open > a i.ymm-chevron {
            transform: rotate(180deg);
            color: var(--main-primary_color, #780000);
        }

        /* Submenú de primer nivel (categorías / tiendas) */
        .ymm-drawer__nav .mobile-submenu,
        .ymm-drawer__nav .ymm-submenu {
            list-style: none;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background: #f9fafb;
            margin: 0;
            padding: 0;
        }

        .ymm-drawer__nav > li.ymm-open > .mobile-submenu,
        .ymm-drawer__nav > li.ymm-open > .ymm-submenu {
            max-height: 2000px;
        }

        .ymm-drawer__nav .mobile-submenu li,
        .ymm-drawer__nav .ymm-submenu li {
            border-bottom: none;
        }

        .ymm-drawer__nav .mobile-submenu li > a,
        .ymm-drawer__nav .ymm-submenu li > a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 10px 20px 10px 40px;
            font-size: 13px;
            font-weight: 500;
            color: #4a5568;
            text-decoration: none;
        }

        .ymm-drawer__nav .mobile-submenu li > a:hover,
        .ymm-drawer__nav .ymm-submenu li > a:hover {
            color: var(--main-primary_color, #780000);
            background: #faf0f0;
        }

        .ymm-drawer__nav .mobile-submenu li > a i.chevron,
        .ymm-drawer__nav .mobile-submenu li > a i.ymm-chevron {
            font-size: 11px;
            color: #cbd5e0;
            transition: transform 0.25s;
        }

        .ymm-drawer__nav .mobile-submenu li.open > a i.chevron {
            transform: rotate(180deg);
            color: var(--main-primary_color, #780000);
        }

        /* Sangría progresiva por nivel — en vez de bordes anidados
           que se amontonan, cada nivel se distingue por indentación */
        .ymm-drawer__nav .mobile-submenu .mobile-submenu li > a {
            padding-left: 56px;
        }
        .ymm-drawer__nav .mobile-submenu .mobile-submenu .mobile-submenu li > a {
            padding-left: 72px;
        }

        .ymm-drawer__nav .mobile-submenu .mobile-submenu,
        .ymm-drawer__nav .mobile-submenu .mobile-submenu .mobile-submenu {
            background: #f5f5f5;
        }

        /* ── Configuración (idioma / moneda — abren modal "Próximamente") ── */
        .ymm-drawer__config {
            list-style: none;
            padding: 0;
            margin: 0;
            border-bottom: 1px solid #f0e4e4;
        }

        .ymm-drawer__config li {
            border-bottom: 1px solid #f7f7f7;
        }
        .ymm-drawer__config li:last-child {
            border-bottom: none;
        }

        .ymm-drawer__config-btn {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 13px 20px;
            background: none;
            border: none;
            font-family: inherit;
            cursor: pointer;
            transition: background 0.2s;
            text-align: left;
        }
        .ymm-drawer__config-btn:hover {
            background: #fafafa;
        }

        .ymm-drawer__config-icon {
            width: 20px;
            color: #94a3b8;
            font-size: 14px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ymm-drawer__config-label {
            flex: 1;
            font-size: 14px;
            font-weight: 600;
            color: #1f2937;
        }

        .ymm-drawer__config-arrow {
            font-size: 11px;
            color: #cbd5e0;
        }

        /* ── Accesos rápidos (cuenta / favoritos) ── */
        .ymm-drawer__icons {
            display: flex;
            justify-content: space-around;
            padding: 16px 20px;
            border-top: 1px solid #f0e4e4;
            border-bottom: 1px solid #f0e4e4;
            background: #f9fafb;
            flex-shrink: 0;
        }

        .ymm-drawer__icons a {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            color: #1f2937;
            font-size: 18px;
            position: relative;
            text-decoration: none;
            transition: color 0.2s;
        }

        .ymm-drawer__icons a span {
            font-size: 10px;
            font-weight: 600;
        }

        .ymm-drawer__icons a:hover {
            color: var(--main-primary_color, #780000);
        }

        /* ── Mini-carrito dentro del drawer ── */
        .ymm-cart-badge {
            background: var(--main-primary_color, #780000);
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            min-width: 20px;
            height: 20px;
            padding: 0 6px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .ymm-cart-wrap {
            border-bottom: 1px solid #f0e4e4;
            background: #fff;
            flex-shrink: 0;
        }

        .ymm-cart-items {
            max-height: 240px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 4px 0;
        }

        .ymm-cart-guest {
            text-align: center;
            padding: 22px 20px;
            color: #94a3b8;
        }

        .ymm-cart-guest i {
            font-size: 28px;
            margin-bottom: 8px;
            display: block;
            opacity: 0.5;
        }

        .ymm-cart-guest p {
            margin: 0;
            font-size: 12.5px;
        }

        .ymm-cart-footer {
            padding: 14px 20px;
            background: #f9fafb;
        }

        .ymm-cart-total {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 10px;
        }

        .ymm-cart-total .ymm-total-price {
            color: var(--main-primary_color, #780000);
            font-size: 16px;
            font-weight: 800;
        }

        .ymm-btn-mobile {
            display: block;
            width: 100%;
            text-align: center;
            padding: 11px;
            border-radius: 22px;
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 8px;
            text-decoration: none;
            transition: opacity 0.2s, background 0.2s;
        }
        .ymm-btn-mobile:last-child { margin-bottom: 0; }

        .ymm-btn-mobile.ymm-btn-view-cart {
            background: #fff;
            color: #1f2937;
            border: 1.5px solid #e2e2e2;
        }
        .ymm-btn-mobile.ymm-btn-view-cart:hover {
            background: #f0f0f0;
        }

        .ymm-btn-mobile.ymm-btn-checkout {
            background: var(--main-primary_color, #780000);
            color: #fff;
            border: none;
        }
        .ymm-btn-mobile.ymm-btn-checkout:hover {
            background: var(--main-secondary_color, #5a0000);
        }

        /* ── Cerrar sesión ── */
        .ymm-drawer__logout-wrap {
            padding: 16px 20px;
            padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
            flex-shrink: 0;
        }

        .ymm-drawer__logout-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 12px;
            border-radius: 22px;
            background: #fdf2f2;
            color: #e74c3c;
            font-size: 13.5px;
            font-weight: 700;
            text-decoration: none;
            transition: background 0.2s;
        }
        .ymm-drawer__logout-btn:hover {
            background: #e74c3c;
            color: #fff;
        }

        /* ── Breakpoint propio del sistema de nav móvil ── */
        @media (max-width: 860px) {
            .ymm-burger {
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .main-nav {
                padding: 0 16px;
            }
            .nav-menu {
                display: none;
            }
            .nav-icons {
                gap: 16px;
            }
            .nav-icons a[title="Ajustes"] {
                display: none;
            }
            /* Las acciones de cuenta (Ingresar / Crear cuenta / menú de
               usuario logueado) ya viven dentro del drawer móvil — se
               ocultan aquí para no duplicarlas en el header superior. */
            .btn-login,
            .btn-register,
            .user-account-section {
                display: none;
            }
        }

        @media (max-width: 380px) {
            .ymm-drawer {
                width: 290px;
            }
        }

        @media (min-width: 861px) {
            .ymm-drawer,
            .ymm-overlay {
                display: none;
            }
        }

        body.ymm-locked {
            overflow: hidden;
        }

        /* Hero Banner */
        .hero-banner {
            background: linear-gradient(135deg, #ffffff 0%, #fef2f2 50%, #fee2e2 100%);
            padding: 60px 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
            min-height: 450px;
            margin: 20px;
            border-radius: 20px;
            border: 1px solid #fecaca;
        }

        .hero-banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--main-primary_color, #780000) 5%, transparent) 0%, transparent 60%);
        }

        .hero-content {
            max-width: 550px;
            color: #1f2937;
            z-index: 2;
            position: relative;
        }

        .hero-content .badge {
            display: inline-block;
            background: var(--main-primary_color, #780000);
            color: white;
            padding: 8px 18px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 20px;
        }

        .hero-content h1 {
            font-size: 48px;
            font-weight: 800;
            margin-bottom: 15px;
            line-height: 1.2;
            color: #1f2937;
        }

        .hero-content h1 span {
            color: var(--main-primary_color, #780000);
            display: block;
        }

        .hero-content p {
            font-size: 18px;
            margin-bottom: 30px;
            color: #4b5563;
            line-height: 1.6;
        }

        .hero-stats {
            display: flex;
            gap: 40px;
            margin-top: 30px;
        }

        .stat-item {
            text-align: center;
        }

        .stat-item i {
            font-size: 36px;
            margin-bottom: 10px;
            color: var(--main-primary_color, #780000);
        }

        .stat-item .number {
            font-size: 26px;
            font-weight: 700;
            display: block;
            margin-bottom: 5px;
            color: #1f2937;
        }

        .stat-item .label {
            font-size: 12px;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .hero-image {
            position: relative;
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2;
        }

        .hero-image img {
            max-width: 100%;
            max-height: 400px;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
        }

        /* Categories Section */
        .categories-section {
            padding: 40px 40px 50px;
        }

        .categories-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .categories-header h2 {
            font-size: 28px;
            color: #1E293B;
            position: relative;
            padding-bottom: 10px;
        }

        .categories-header h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--main-primary_color, #780000);
            border-radius: 2px;
        }

        .btn-ver-mas {
            font-size: 14px;
            font-weight: 600;
            color: var(--main-primary_color, #780000);
            cursor: pointer;
            background: none;
            border: none;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .btn-ver-mas:hover {
            color: var(--main-secondary_color, #5a0000);
        }

        .categories-grid {
            display: flex;
            gap: 50px;
            flex-wrap: wrap;
        }

        .category-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: transform 0.3s;
        }

        .category-item:hover {
            transform: translateY(-5px);
        }.category-circle{
    width:110px;
    height:110px;
    border-radius:50%;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
    transition:all .3s ease;
}

.category-circle img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .35s ease;
}

.category-item:hover .category-circle{
    transform:scale(1.08);
    box-shadow:0 8px 25px rgba(0,0,0,.15);
}

.category-item:hover .category-circle img{
    transform:scale(1.08);
}
.category-more{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.category-more span{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#222;
}

        /* Feature Cards */
        .features-section {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
            padding: 0 40px 40px;
            margin: 0 20px;
        }

        .feature-card {
            background: white;
            padding: 30px;
            border-radius: 15px;
            display: flex;
            align-items: flex-start;
            gap: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }

        .feature-card.red {
            background: #FFF5F5;
            border-left: 4px solid var(--main-primary_color, #780000);
        }

        .feature-card.gold {
            background: #FFFBEB;
            border-left: 4px solid #D4A017;
        }

        .feature-card.dark {
            background: #1a1a1a;
            color: white;
            border-left: 4px solid var(--main-primary_color, #780000);
        }

        .feature-icon {
            width: 60px;
            height: 60px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            color: var(--main-primary_color, #780000);
        }

        .feature-card.dark .feature-icon {
            color: #FFD700;
        }

        .feature-content h3 {
            font-size: 18px;
            margin-bottom: 8px;
            color: #1E293B;
        }

        .feature-card.dark .feature-content h3 {
            color: white;
        }

        .feature-content p {
            font-size: 14px;
            color: #64748B;
            line-height: 1.5;
            margin-bottom: 15px;
        }

        .feature-card.dark .feature-content p {
            color: #94A3B8;
        }

        .btn-feature {
            padding: 8px 20px;
            border-radius: 20px;
            border: 2px solid var(--main-primary_color, #780000);
            color: var(--main-primary_color, #780000);
            background: white;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .feature-card.dark .btn-feature {
            border-color: white;
            color: white;
            background: transparent;
        }

        .btn-feature:hover {
            background: var(--main-primary_color, #780000);
            color: white;
        }

        .feature-card.dark .btn-feature:hover {
            background: white;
            color: #1a1a1a;
        }

        /* Section Header */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 30px 40px 20px;
        }

        .section-header h2 {
            font-size: 28px;
            color: #1E293B;
            position: relative;
            padding-bottom: 10px;
        }

        .section-header h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--main-primary_color, #780000);
            border-radius: 2px;
        }

        .section-header .subtitle {
            font-size: 13px;
            color: #64748B;
            margin-top: 5px;
        }

        .btn-ver-todo {
            font-size: 14px;
            font-weight: 600;
            color: var(--main-primary_color, #780000);
            cursor: pointer;
            background: none;
            border: none;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .btn-ver-todo:hover {
            color: var(--main-secondary_color, #5a0000);
        }

        /* Products Grid */
        .products-section {
            padding: 0 40px 40px;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
        }

        .product-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            transition: all 0.3s;
            cursor: pointer;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .product-image {
            position: relative;
            height: 200px;
            overflow: hidden;
            background: #f5f5f5;
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .discount-tag {
            position: absolute;
            top: 10px;
            left: 10px;
            background: var(--main-primary_color, #780000);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 12px;
            font-weight: 700;
        }

        .favorite-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: all 0.3s;
            color: var(--main-primary_color, #780000);
        }

        .favorite-btn:hover {
            background: var(--main-primary_color, #780000);
            color: white;
        }

        .product-info {
            padding: 15px;
        }

        .product-name {
            font-size: 14px;
            color: #333;
            margin-bottom: 10px;
            line-height: 1.4;
            height: 40px;
            overflow: hidden;
        }

        .product-price {
            display: flex;
            align-items: baseline;
            gap: 10px;
            margin-bottom: 8px;
        }

        .product-price .current {
            font-size: 22px;
            font-weight: 700;
            color: #1E293B;
        }

        .product-price .original {
            font-size: 14px;
            color: #94A3B8;
            text-decoration: line-through;
        }

        .delivery-info {
            display: flex;
            align-items: center;
            gap: 5px;
            color: var(--main-primary_color, #780000);
            font-size: 13px;
            font-weight: 600;
        }

        /* Shops Section */
        .shops-section {
            background: white;
            padding: 40px;
            margin: 20px;
            border-radius: 20px;
        }

        .shops-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 25px;
            margin-top: 30px;
        }

        .shop-card {
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            transition: all 0.3s;
            cursor: pointer;
            border: 1px solid #eee;
        }

        .shop-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px color-mix(in srgb, var(--main-primary_color, #780000) 15%, transparent);
            border-color: var(--main-primary_color, #780000);
        }

        .shop-image {
            height: 180px;
            overflow: hidden;
            background: #f5f5f5;
            position: relative;
        }

        .shop-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .shop-flag {
            position: absolute;
            top: 10px;
            right: 10px;
            background: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            color: var(--main-primary_color, #780000);
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .shop-info {
            padding: 20px;
        }

        .shop-name {
            font-size: 16px;
            font-weight: 700;
            color: #1E293B;
            margin-bottom: 8px;
        }

        .shop-rating {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
        }

        .shop-rating i {
            color: #FFD700;
        }

        .shop-rating span {
            font-size: 14px;
            color: #64748B;
        }

        .btn-ver-tienda {
            color: var(--main-primary_color, #780000);
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .btn-ver-tienda:hover {
            color: var(--main-secondary_color, #5a0000);
        }

        /* Info Cards */
        .info-cards {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
            padding: 0 40px 40px;
            margin: 0 20px;
        }

        .info-card {
            background: white;
            padding: 25px 30px;
            border-radius: 15px;
            display: flex;
            align-items: center;
            gap: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .info-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #FFF5F5;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--main-primary_color, #780000);
            font-size: 20px;
        }

        .info-content h3 {
            font-size: 16px;
            color: #1E293B;
            margin-bottom: 5px;
        }

        .info-content p {
            font-size: 14px;
            color: #64748B;
        }

        /* CTA Section */
        .cta-section {
            background: linear-gradient(135deg, var(--main-primary_color, #780000) 0%, var(--main-secondary_color, #5a0000) 100%);
            padding: 60px 40px;
            margin: 20px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 40px;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .cta-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
            border-radius: 50%;
        }

        .cta-content {
            max-width: 500px;
            position: relative;
            z-index: 2;
        }

        .cta-content h2 {
            font-size: 32px;
            color: white;
            margin-bottom: 15px;
            line-height: 1.3;
        }

        .cta-content h2 span {
            color: #FFD700;
        }

        .cta-content p {
            font-size: 16px;
            color: rgba(255,255,255,0.9);
            line-height: 1.6;
            margin-bottom: 25px;
        }

        .btn-cta {
            padding: 15px 35px;
            background: #FFD700;
            color: var(--main-primary_color, #780000);
            border: none;
            border-radius: 30px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .btn-cta:hover {
            background: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        }

        .cta-image {
            flex: 1;
            max-width: 500px;
            position: relative;
            z-index: 2;
        }

        .cta-image img {
            width: 100%;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        }

        /* Footer */
        .footer {
            background: var(--main-secondary_color, #1a0000);
            color: white;
            padding: 60px 40px 30px;
            margin-top: 40px;
        }

        .footer-top {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-brand .footer-logo img {
            height: 55px;
            width: auto;
            object-fit: contain;
            margin-bottom: 20px;
        }

        .footer-brand p {
            font-size: 14px;
            color: #94A3B8;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .contact-info p {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 10px;
        }

        .contact-info p i {
            color: var(--main-primary_color, #780000);
            margin-top: 3px;
            flex-shrink: 0;
        }

        .footer-social {
            display: flex;
            gap: 15px;
        }

        .footer-social a {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--main-secondary_color, #3d0000);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94A3B8;
            transition: all 0.3s;
        }

        .footer-social a:hover {
            background: var(--main-primary_color, #780000);
            color: white;
        }

        .footer-column h4 {
            font-size: 16px;
            margin-bottom: 20px;
            font-weight: 600;
        }

        .footer-column ul li {
            margin-bottom: 12px;
        }

        .footer-column ul li a {
            color: #94A3B8;
            font-size: 14px;
            transition: color 0.3s;
        }

        .footer-column ul li a:hover {
            color: #FFD700;
        }

        .footer-bottom {
            border-top: 1px solid var(--main-secondary_color, #3d0000);
            padding-top: 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .footer-bottom p {
            font-size: 13px;
            color: #64748B;
        }

        .payment-icons {
            display: flex;
            gap: 10px;
        }

        .payment-icon {
            background: var(--main-secondary_color, #3d0000);
            padding: 8px 15px;
            border-radius: 5px;
            font-size: 12px;
            color: white;
            font-weight: 600;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1200px) {
            .products-grid {
                grid-template-columns: repeat(4, 1fr);
            }
            .shops-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 1024px) {
            .top-header {
                flex-wrap: wrap;
            }
            .search-bar {
                order: 3;
                max-width: 100%;
                width: 100%;
            }
            .header-actions {
                order: 2;
            }
            .hero-banner {
                flex-direction: column;
                text-align: center;
                min-height: auto;
            }
            .hero-stats {
                justify-content: center;
            }
            .features-section {
                grid-template-columns: 1fr;
            }
            .products-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            .shops-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .info-cards {
                grid-template-columns: 1fr;
            }
            .cta-section {
                flex-direction: column;
                text-align: center;
            }
            .footer-top {
                grid-template-columns: 1fr 1fr;
            }
            .country-dropdown {
                right: -50px;
                min-width: 200px;
            }
        }

        @media (max-width: 768px) {
            .top-header {
                padding: 12px 20px;
                gap: 15px;
            }
            .top-header .logo img {
                height: 35px;
            }
            .header-actions {
                gap: 8px;
            }
            .btn-login, .btn-register {
                padding: 8px 14px;
                font-size: 12px;
            }
            .hero-content h1 {
                font-size: 32px;
            }
            .categories-grid {
                gap: 20px;
            }
            .category-circle {
                width: 85px;
                height: 85px;
            }
            .category-item span {
                font-size: 12px;
            }
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .shops-grid {
                grid-template-columns: 1fr;
            }
            .footer-top {
                grid-template-columns: 1fr;
            }
            .country-dropdown {
                position: fixed;
                top: 70px;
                left: 10px;
                right: 10px;
                max-width: none;
            }
        }

        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        ::-webkit-scrollbar-thumb {
            background: var(--main-primary_color, #780000);
            border-radius: 4px;
        }

        /* ===== Quick Look: selección visual de variante ===== */
        .quick-look-variant-opt.is-selected {
            background: var(--main-primary_color, #780000) !important;
            color: #fff !important;
            border-color: var(--main-primary_color, #780000) !important;
        }
          .profile-card a,
  .settings-card a,
  .dashboard-card a,
  .address-book-card a {
    color: inherit !important;
    text-decoration: none !important;
  }

  .profile-card a:hover,
  .settings-card a:hover,
  .dashboard-card a:hover,
  .address-book-card a:hover {
    color: inherit !important;
    text-decoration: none !important;
  }
  /* Sobrescribe los estilos de Bootstrap para TODOS los enlaces */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
    text-decoration: none !important;
    outline: none;
}

a:hover {
    opacity: 0.9;
}