* {
            -webkit-tap-highlight-color: transparent;
        }
        body {
            margin: 0;
            padding: 0;
            background-color: #F9FAFB;
            color: #1F2937;
            font-family: 'Poppins', sans-serif;
            overflow-x: hidden;
        }
        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: #F3F4F6;
        }
        ::-webkit-scrollbar-thumb {
            background: #C62828;
            border-radius: 3px;
        }
        .glass-panel {
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(229, 231, 235, 0.8);
        }
        .glass-card {
            background: #FFFFFF;
            border: 1px solid #F3F4F6;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
        }
        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }
        .no-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        /* Tipografía crítica del cargador: evita el parpadeo sin formato antes de que Tailwind termine de cargar */
        #loader-screen h2 {
            margin-top: 2rem;
            margin-bottom: 0;
            font-family: 'Bebas Neue', sans-serif;
            font-size: 3rem;
            line-height: 1;
            letter-spacing: 0.1em;
            font-weight: 400;
            color: #FFFFFF;
            text-align: center;
            text-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
        }
        #loader-screen p {
            margin-top: 0.5rem;
            margin-bottom: 0;
            font-family: 'Poppins', sans-serif;
            font-size: 0.75rem;
            line-height: 1rem;
            letter-spacing: 0.1em;
            font-weight: 700;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.8);
            text-align: center;
        }
        #loader-screen .new-loader-bar {
            margin-top: 2.1875rem;
        }

        #loader-screen {
            position: fixed;
            inset: 0;
            z-index: 9999;
            background-color: #C62828;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
        }
        .new-loader-icon {
            font-size: 80px;
            color: white;
            animation: bounceRotate 1s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
            filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
        }
        @keyframes bounceRotate {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-25px) rotate(15deg); }
        }
        .new-loader-bar {
            width: 260px;
            height: 6px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            overflow: hidden;
            position: relative;
            margin-top: 35px;
        }
        .new-loader-fill {
            height: 100%;
            width: 0%;
            background: white;
            border-radius: 10px;
            transition: width 2s linear;
            box-shadow: 0 0 10px rgba(255,255,255,0.8);
        }

        /* ===== CARRUSEL AUTOMÁTICO DEL HERO ===== */
        .hero-carousel-slide {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transform: scale(1.04);
            transition: opacity 1.4s ease-in-out, transform 6s ease-out;
            will-change: opacity, transform;
        }
        .hero-carousel-slide.active {
            opacity: 1;
            transform: scale(1);
            z-index: 1;
        }

        .btn-pop {
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            /* Modificación 1: Se añade padding vertical extra y overflow visible para que las animaciones de los botones no se corten */
            overflow: visible !important;
            padding-top: 0.65rem !important;
            padding-bottom: 0.65rem !important;
        }
        .btn-pop:hover {
            transform: translateY(-4px) scale(1.03);
            box-shadow: 0 12px 20px -8px rgba(198, 40, 40, 0.6);
        }
        .btn-pop:active {
            transform: translateY(1px) scale(0.98);
        }

        #navDrawer {
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        #navDrawerOverlay {
            transition: opacity 0.4s ease;
        }

        /* ===== MENÚ: lectura limpia y responsive ===== */
        #menuGrid .menu-item {
            min-width: 0;
            height: 100%;
        }
        #menuGrid .menu-item > div:first-child {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        #menuGrid .menu-item .relative.h-64 {
            height: 190px;
            flex-shrink: 0;
        }
        #menuGrid .menu-item .p-6 {
            padding: 1rem;
            display: flex;
            flex-direction: column;
            flex: 1;
        }
        #menuGrid .menu-item .p-6 > .flex.justify-between {
            display: block;
            margin-bottom: .45rem;
        }
        #menuGrid .menu-item h3 {
            font-size: 1.45rem;
            line-height: 1.05;
            overflow-wrap: anywhere;
        }
        #menuGrid .menu-item .p-6 > .flex.justify-between > span {
            display: block;
            margin-top: .35rem;
            font-size: 1.35rem;
        }
        #menuGrid .menu-item p {
            line-height: 1.45;
            margin-bottom: .65rem;
        }
        #menuGrid .menu-item .px-6.pb-6 {
            padding: 0 1rem 1rem;
            margin-top: auto;
        }
        #menuGrid .menu-item button {
            min-height: 44px;
            white-space: normal;
            line-height: 1.2;
        }

        /* ===== SUCURSALES ===== */
        .branch-card {
            overflow: hidden;
        }
        .branch-photo {
            width: 100%;
            height: 230px;
            object-fit: cover;
            display: block;
        }
        .branch-map {
            width: 100%;
            height: 260px;
            border: 0;
            display: block;
        }
        .branch-info {
            padding: 1.25rem;
        }

        /* ===== PROMOCIONES DEL DÍA: tarjetas con imagen de fondo ===== */
        #promoContainer .promo-card {
            min-height: 330px;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            isolation: isolate;
        }
        #promoContainer .promo-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.58);
            z-index: -1;
            transition: background 0.3s ease;
        }
        #promoContainer .promo-card:hover::before {
            background: rgba(0, 0, 0, 0.48);
        }
        #promoContainer .promo-card h3,
        #promoContainer .promo-card p {
            color: #FFFFFF !important;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
        }
        #promoContainer .promo-card p {
            max-width: 330px;
        }
        #promoContainer .promo-card > button {
            margin-left: auto;
            margin-right: auto;
            justify-content: center;
        }

        @media (max-width: 639px) {
            #loader-screen h2 {
                font-size: 2.5rem;
            }

            #menuGrid .menu-item .relative.h-64 {
                height: 125px;
            }
            #menuGrid .menu-item h3 {
                font-size: 1.05rem;
                line-height: 1.12;
            }
            #menuGrid .menu-item .p-6 > .flex.justify-between > span {
                font-size: 1.15rem;
            }
            #menuGrid .menu-item p {
                font-size: .72rem;
                line-height: 1.35;
            }
            #menuGrid .menu-item .flex.items-center.gap-4 {
                display: none;
            }
            #menuGrid .menu-item .p-6 {
                padding: .75rem;
            }
            #menuGrid .menu-item .px-6.pb-6 {
                padding: 0 .75rem .75rem;
            }
            #menuGrid .menu-item button {
                font-size: .68rem;
                padding: .65rem .45rem;
                gap: .3rem;
            }
            .branch-photo {
                height: 190px;
            }
            .branch-map {
                height: 230px;
            }
        }


        /* ===== CONSTRUCTOR DE PIZZA ===== */
        .builder-choice{min-height:82px;transition:all .25s ease}
        .builder-choice:not(.active):hover{border-color:#C62828!important;background:#FFF1F2!important;color:#C62828!important;transform:translateY(-2px)}
        .builder-choice.active{box-shadow:0 10px 24px rgba(198,40,40,.22)}
        .builder-topping:has(input:checked){border-color:#C62828;background:#FFF1F2;color:#C62828;box-shadow:0 5px 15px rgba(198,40,40,.10)}
        html.dark-theme .builder-choice:not(.active){background:#1e293b!important;border-color:#475569!important;color:#e2e8f0!important}
        html.dark-theme .builder-topping{background:#1e293b;border-color:#475569;color:#e2e8f0}
        html.dark-theme .builder-topping:has(input:checked){background:#3b1720;color:#fecaca;border-color:#C62828}
        @media(max-width:639px){.builder-choice{min-height:74px}}

        /* ===== CARRITO PREMIUM TIPO APP ===== */
        #cartOverlay{
            background:rgba(15,23,42,.62)!important;
            backdrop-filter:blur(7px);
            -webkit-backdrop-filter:blur(7px);
        }
        #cartDrawer{
            max-width:440px;
            background:#f8fafc!important;
            box-shadow:-24px 0 60px rgba(15,23,42,.22)!important;
        }
        .premium-cart-header{
            padding:1.15rem 1.15rem .95rem;
            background:rgba(255,255,255,.96);
            border-bottom:1px solid #e5e7eb;
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:.75rem;
        }
        .premium-cart-title-wrap{display:flex;align-items:center;gap:.75rem;min-width:0}
        .premium-cart-icon{
            width:44px;height:44px;flex-shrink:0;border-radius:15px;
            background:#FFEBEE;color:#C62828;display:flex;align-items:center;justify-content:center;
        }
        .premium-cart-title{font-family:'Bebas Neue',sans-serif;font-size:1.65rem;letter-spacing:.08em;color:#111827;line-height:1}
        .premium-cart-subtitle{font-size:.63rem;color:#9ca3af;margin-top:.25rem;font-weight:600}
        .premium-cart-close{
            width:40px;height:40px;border-radius:13px;border:1px solid #e5e7eb;
            background:#f8fafc;color:#6b7280;display:flex;align-items:center;justify-content:center;
            transition:.2s ease;
        }
        .premium-cart-close:hover{background:#FFEBEE;color:#C62828;border-color:#fecaca}
        #cartDrawer > .flex-1{padding:1rem!important}
        #cartItemsList{display:flex;flex-direction:column;gap:.65rem}
        #cartItemsList > div{
            border:1px solid #eef0f3!important;
            border-radius:18px!important;
            box-shadow:0 5px 18px rgba(15,23,42,.05)!important;
            padding:.7rem!important;
        }
        .premium-cart-section{
            background:#fff;border:1px solid #eef0f3;border-radius:18px;
            padding:.9rem;box-shadow:0 5px 18px rgba(15,23,42,.04);
        }
        .premium-section-label{
            display:flex;align-items:center;gap:.45rem;
            font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#374151;margin-bottom:.65rem;
        }
        .premium-section-label i{color:#C62828}
        .premium-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}
        .premium-choice{
            min-height:52px!important;border:1px solid #e5e7eb!important;border-radius:14px!important;
            background:#fff!important;color:#6b7280!important;box-shadow:none!important;
            font-size:.68rem!important;font-weight:800!important;padding:.7rem!important;
            transition:all .2s ease!important;
        }
        .premium-choice:hover{border-color:#d1d5db!important;background:#f9fafb!important}
        .premium-choice.active{
            border-color:#C62828!important;background:#FFF1F2!important;color:#C62828!important;
            box-shadow:0 7px 18px rgba(198,40,40,.10)!important;
        }
        .premium-choice.active::after{
            content:"✓";float:right;width:18px;height:18px;border-radius:50%;
            background:#C62828;color:#fff;font-size:11px;line-height:18px;text-align:center;
        }
        .premium-input{
            width:100%;background:#fff;border:1px solid #e5e7eb;border-radius:13px;
            padding:.72rem .8rem;font-size:.72rem;color:#1f2937;outline:none;
            transition:.2s ease;
        }
        .premium-input:focus{border-color:#C62828;box-shadow:0 0 0 3px rgba(198,40,40,.08)}
        .premium-total-box{
            background:#111827;color:#fff;border-radius:20px;padding:1rem;
            box-shadow:0 12px 28px rgba(15,23,42,.16);
        }
        .premium-total-box .shipping-row{display:flex;justify-content:space-between;align-items:center;font-size:.7rem;color:#cbd5e1;margin-bottom:.55rem}
        .premium-total-box .shipping-row strong{color:#fff}
        .premium-total-box .total-row{display:flex;justify-content:space-between;align-items:end;border-top:1px solid rgba(255,255,255,.12);padding-top:.7rem}
        .premium-total-box .total-label{font-size:.68rem;color:#94a3b8;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
        .premium-total-box .total-value{font-family:'Bebas Neue',sans-serif;font-size:2.15rem;letter-spacing:.03em;color:#fff;line-height:1}
        .premium-whatsapp{
            width:100%;border-radius:16px!important;padding:1rem!important;
            font-size:.78rem!important;font-weight:800!important;
            box-shadow:0 12px 24px rgba(16,185,129,.20)!important;
        }
        @media(max-width:639px){
            #cartDrawer{max-width:none;width:100%!important}
            .premium-cart-header{padding:.95rem 1rem .8rem}
            #cartDrawer > .flex-1{padding:.8rem!important}
        }


        /* ===== AJUSTE PREMIUM DE CATEGORÍAS ===== */
        .menu-category-card{
            display:flex!important;
            border:0!important;
            outline:0!important;
            box-shadow:0 10px 30px rgba(0,0,0,.12)!important;
            align-items:center!important;
            justify-content:center!important;
            padding:1.25rem!important;
        }
        .menu-category-card > div,
        .menu-category-card .category-content{
            position:relative!important;
            inset:auto!important;
            width:100%!important;
            max-width:100%!important;
            text-align:center!important;
            display:flex!important;
            flex-direction:column!important;
            align-items:center!important;
            justify-content:center!important;
            gap:.25rem!important;
            transform:none!important;
        }
        .menu-category-card h3,
        .menu-category-card h4,
        .menu-category-card .category-title{
            width:auto!important;
            max-width:none!important;
            margin:0!important;
            text-align:center!important;
            line-height:1.05!important;
            overflow:visible!important;
            white-space:nowrap!important;
            word-break:normal!important;
            overflow-wrap:normal!important;
            text-shadow:0 2px 8px rgba(0,0,0,.55);
        }
        .menu-category-card p,
        .menu-category-card span{
            text-align:center!important;
        }
        .menu-category-card.active{
            border:0!important;
            outline:2px solid #C62828!important;
        }

        /* ===== CATEGORÍAS DEL MENÚ ===== */
        #categoryGrid{display:flex;gap:1rem;overflow-x:auto;overflow-y:hidden;padding:.35rem .25rem 1rem;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:rgba(198,40,40,.55) transparent}
        #categoryGrid::-webkit-scrollbar{height:6px}
        #categoryGrid::-webkit-scrollbar-track{background:transparent}
        #categoryGrid::-webkit-scrollbar-thumb{background:rgba(198,40,40,.55);border-radius:999px}
        .menu-category-card{position:relative;flex:0 0 300px;width:300px;height:112px;min-height:112px;border-radius:1.35rem;overflow:hidden;background-size:cover;background-position:center;border:1px solid rgba(255,255,255,.16);outline:none;box-shadow:0 12px 26px -12px rgba(0,0,0,.42);isolation:isolate;cursor:pointer;scroll-snap-align:start;transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
        .menu-category-card::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(0,0,0,.72),rgba(0,0,0,.34));z-index:-1;transition:background .3s ease}
        .menu-category-card:hover{transform:translateY(-4px) scale(1.015);box-shadow:0 18px 32px -12px rgba(0,0,0,.5)}
        .menu-category-card:hover::before{background:linear-gradient(135deg,rgba(0,0,0,.60),rgba(0,0,0,.24))}
        .menu-category-card.active{border:2px solid #C62828!important;box-shadow:0 0 0 3px rgba(198,40,40,.16),0 18px 34px -12px rgba(0,0,0,.5)}
        .menu-category-content{height:100%;min-height:112px;padding:1rem 1.15rem;display:flex;align-items:center;justify-content:center;color:white;text-align:center}
        .menu-category-card h3{margin:0;font-family:'Bebas Neue',sans-serif;font-size:1.72rem;letter-spacing:.045em;line-height:1;text-align:center;white-space:nowrap;word-break:normal;overflow-wrap:normal;text-shadow:0 3px 10px rgba(0,0,0,.75)}
        .menu-category-card p{margin:.35rem 0 0;font-size:.7rem;font-weight:600;color:rgba(255,255,255,.82);text-align:center}
        .menu-category-icon{display:none}
        #cartDrawer .space-y-3.pt-2.border-t.border-gray-200{display:flex;align-items:center;justify-content:space-between;gap:1rem}
        #cartDrawer .space-y-3.pt-2.border-t.border-gray-200 > span:last-child{text-align:right;margin-left:auto}
        #cartDrawer #cartTotal{margin-left:auto;text-align:right}
        #subcategorySection{display:none}
        #subcategorySection.visible{display:block}
        /* ===== MENÚ POR SECCIONES + BUSCADOR/FILTROS RESTAURADOS ===== */
        #menuGrid.menu-collapsed{display:none!important}
        #menuGrid.menu-visible{display:grid!important}
        #menuEmptyState{display:none}
        #menuEmptyState.visible{display:block}
        .menu-category-card.active{outline:3px solid rgba(198,40,40,.22);transform:translateY(-2px);}
        .subcategory-btn{background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:.65rem 1rem;font-size:.75rem;font-weight:800;color:#374151;transition:.2s;box-shadow:0 2px 8px rgba(0,0,0,.05)}
        .subcategory-btn:hover,.subcategory-btn.active{background:#C62828;color:#fff;border-color:#C62828;transform:translateY(-1px)}
        #menuSectionHint{display:flex;align-items:center;justify-content:center;gap:.5rem;margin:-1rem auto 1.5rem;max-width:42rem;padding:.75rem 1rem;border:1px dashed #d1d5db;border-radius:1rem;color:#6b7280;font-size:.8rem;font-weight:700;text-align:center;background:rgba(255,255,255,.75)}
        #menuSectionHint.hidden{display:none}

        #subcategoryGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
        .subcategory-btn{
            position:relative;
            min-height:58px;
            border-radius:1rem;
            padding:.75rem 2.4rem .75rem 1rem;
            background:linear-gradient(135deg,#FFFFFF 0%,#FFF8F8 100%);
            border:1px solid #E5E7EB;
            color:#374151;
            font-size:.75rem;
            font-weight:800;
            letter-spacing:.01em;
            box-shadow:0 5px 12px rgba(15,23,42,.06);
            transition:all .25s ease;
            overflow:hidden;
        }
        .subcategory-btn::before{
            content:"";
            position:absolute;
            left:0;
            top:0;
            bottom:0;
            width:4px;
            background:linear-gradient(180deg,#C62828,#991B1B);
            transform:scaleY(0);
            transform-origin:center;
            transition:transform .25s ease;
        }
        .subcategory-btn::after{
            content:"›";
            position:absolute;
            right:.75rem;
            top:50%;
            transform:translateY(-50%);
            width:25px;
            height:25px;
            border-radius:50%;
            display:flex;
            align-items:center;
            justify-content:center;
            background:#FFEBEE;
            color:#C62828;
            font-size:1.1rem;
            font-weight:800;
            line-height:1;
            transition:all .25s ease;
        }
        .subcategory-btn:hover{
            background:linear-gradient(135deg,#FFF1F2 0%,#FFE4E6 100%);
            color:#C62828;
            border-color:#C62828;
            transform:translateY(-2px);
            box-shadow:0 10px 20px rgba(198,40,40,.14);
        }
        .subcategory-btn:hover::before,
        .subcategory-btn.active::before{
            transform:scaleY(1);
        }
        .subcategory-btn:hover::after{
            background:#C62828;
            color:#FFFFFF;
            transform:translateY(-50%) translateX(2px);
        }
        .subcategory-btn.active{
            background:linear-gradient(135deg,#C62828 0%,#991B1B 100%);
            color:#FFFFFF;
            border-color:#991B1B;
            transform:translateY(-1px);
            box-shadow:0 10px 22px rgba(198,40,40,.24);
        }
        .subcategory-btn.active::after{
            content:"✓";
            background:#FFFFFF;
            color:#C62828;
            font-size:.8rem;
        }
        @media (max-width:639px){
            .subcategory-btn{
                min-height:56px;
                padding:.7rem 2.2rem .7rem .9rem;
                font-size:.7rem;
                border-radius:.9rem;
            }
            .subcategory-btn::after{
                right:.6rem;
                width:23px;
                height:23px;
            }
        }
        #deliveryCalculator{display:none}
        #deliveryCalculator.visible{display:block}
        .delivery-fee-free{color:#2E7D32}
        @media (min-width:640px){#categoryGrid{gap:1.15rem}.menu-category-card{flex-basis:240px;width:240px;height:120px;min-height:120px}.menu-category-content{min-height:120px}.menu-category-card h3{font-size:1.85rem}#subcategoryGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
        @media (min-width:1024px){.menu-category-card{flex-basis:275px;width:310px;height:124px;min-height:124px}.menu-category-content{min-height:124px}.menu-category-card h3{font-size:1.95rem}}

    
        /* ===== SWEETALERT COMPACTO: PRODUCTO AGREGADO ===== */
        .artisanal-swal-toast{
            border-radius:16px !important;
            box-shadow:0 14px 35px rgba(0,0,0,.18) !important;
            border:1px solid #f0f0f0 !important;
        }
        .artisanal-swal-toast .swal2-icon{
            width:30px !important;
            height:30px !important;
            margin:0 .65rem 0 0 !important;
            border-width:3px !important;
        }
        .artisanal-swal-toast .swal2-icon.swal2-success .swal2-success-ring{
            width:30px !important;
            height:30px !important;
        }
        .artisanal-swal-toast-title{
            font-family:Poppins,sans-serif !important;
            font-size:.78rem !important;
            font-weight:800 !important;
            margin:0 !important;
        }
        .artisanal-swal-toast-text{
            font-family:Poppins,sans-serif !important;
            font-size:.65rem !important;
            margin:.1rem 0 0 !important;
            color:#6b7280 !important;
        }
        .artisanal-swal-toast .swal2-timer-progress-bar{background:#C62828 !important;}

        /* ===== VISOR DE GALERÍA A PANTALLA COMPLETA ===== */
        #galleryModal{padding:1rem;}
        #galleryModalImg{width:auto;max-width:calc(100vw - 7rem);max-height:78vh;}
        @media(max-width:639px){
            #galleryModal{padding:.5rem;}
            #galleryModalImg{max-width:calc(100vw - 5rem);max-height:78vh;border-radius:1rem;}
        }

        /* ===== TEMA OSCURO: preferencia persistente del cliente ===== */
        html.dark-theme body { background-color:#0f172a !important; color:#e5e7eb !important; }
        html.dark-theme .glass-panel { background:rgba(15,23,42,.94) !important; border-bottom-color:rgba(71,85,105,.55) !important; }
        html.dark-theme .bg-white { background-color:#1e293b !important; }
        html.dark-theme .bg-gray-50 { background-color:#111827 !important; }
        html.dark-theme .bg-gray-100 { background-color:#1f2937 !important; }
        html.dark-theme .text-gray-900 { color:#f8fafc !important; }
        html.dark-theme .text-gray-800 { color:#f1f5f9 !important; }
        html.dark-theme .text-gray-700 { color:#e2e8f0 !important; }
        html.dark-theme .text-gray-600 { color:#cbd5e1 !important; }
        html.dark-theme .text-gray-500 { color:#94a3b8 !important; }
        html.dark-theme .text-gray-400 { color:#94a3b8 !important; }
        html.dark-theme .border-gray-100 { border-color:#334155 !important; }
        html.dark-theme .border-gray-200 { border-color:#334155 !important; }
        html.dark-theme .border-gray-800 { border-color:#334155 !important; }
        html.dark-theme #navDrawer { background-color:#0f172a !important; }
        html.dark-theme #navDrawer .bg-gray-50 { background-color:#111827 !important; }
        html.dark-theme #cartDrawer { background:#0f172a !important; }
        html.dark-theme .premium-cart-header { background:rgba(15,23,42,.97); border-bottom-color:#334155; }
        html.dark-theme .premium-cart-title { color:#f8fafc; }
        html.dark-theme .premium-cart-close { background:#1e293b; border-color:#334155; color:#cbd5e1; }
        html.dark-theme .premium-cart-section { background:#1e293b; border-color:#334155; }
        html.dark-theme .premium-choice { background:#1e293b !important; border-color:#475569 !important; color:#cbd5e1 !important; }
        html.dark-theme .premium-input { background:#0f172a; border-color:#475569; color:#f8fafc; }
        html.dark-theme .subcategory-btn { background:linear-gradient(135deg,#1e293b 0%,#172033 100%); border-color:#475569; color:#e2e8f0; }
        html.dark-theme .theme-toggle-button { background:#1e293b !important; border-color:#475569 !important; }
        html.dark-theme .theme-toggle-button:hover { background:#334155 !important; }

        /* ===== COMANDA VISUAL PARA WHATSAPP ===== */
        #whatsappComandaCapture{
            position:fixed;
            left:-100000px;
            top:0;
            width:900px;
            background:#f8fafc;
            color:#111827;
            font-family:'Poppins',sans-serif;
            z-index:-1;
            overflow:hidden;
        }
        #whatsappComandaCapture .comanda-inner{padding:42px}
        #whatsappComandaCapture .comanda-header{
            background:linear-gradient(135deg,#C62828 0%,#991B1B 100%);
            color:#fff;
            border-radius:26px;
            padding:30px 34px;
            box-shadow:0 14px 30px rgba(198,40,40,.20);
        }
        #whatsappComandaCapture .comanda-brand{
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:20px;
        }
        #whatsappComandaCapture .comanda-title{
            font-family:'Bebas Neue',sans-serif;
            font-size:42px;
            line-height:1;
            letter-spacing:.08em;
            margin:0;
        }
        #whatsappComandaCapture .comanda-subtitle{
            margin:7px 0 0;
            font-size:13px;
            font-weight:700;
            letter-spacing:.12em;
            text-transform:uppercase;
            color:rgba(255,255,255,.82);
        }
        #whatsappComandaCapture .comanda-order{
            text-align:right;
            font-size:13px;
            font-weight:700;
            line-height:1.6;
        }
        #whatsappComandaCapture .comanda-grid{
            display:grid;
            grid-template-columns:1fr 1fr;
            gap:18px;
            margin-top:20px;
        }
        #whatsappComandaCapture .comanda-card{
            background:#fff;
            border:1px solid #e5e7eb;
            border-radius:20px;
            padding:20px;
            box-shadow:0 7px 20px rgba(15,23,42,.05);
        }
        #whatsappComandaCapture .comanda-label{
            color:#C62828;
            font-size:10px;
            font-weight:900;
            letter-spacing:.12em;
            text-transform:uppercase;
            margin-bottom:8px;
        }
        #whatsappComandaCapture .comanda-value{
            font-size:14px;
            font-weight:700;
            line-height:1.5;
            white-space:pre-wrap;
            overflow-wrap:anywhere;
        }
        #whatsappComandaCapture .comanda-section{
            margin-top:20px;
            background:#fff;
            border:1px solid #e5e7eb;
            border-radius:22px;
            padding:22px;
            box-shadow:0 7px 20px rgba(15,23,42,.05);
        }
        #whatsappComandaCapture .comanda-section-title{
            display:flex;
            align-items:center;
            gap:10px;
            color:#111827;
            font-size:15px;
            font-weight:900;
            letter-spacing:.08em;
            text-transform:uppercase;
            padding-bottom:14px;
            border-bottom:2px solid #f1f5f9;
        }
        #whatsappComandaCapture .comanda-section-title::before{
            content:"";
            width:8px;
            height:28px;
            border-radius:99px;
            background:#C62828;
        }
        #whatsappComandaCapture .comanda-item{
            display:grid;
            grid-template-columns:70px 1fr auto;
            gap:14px;
            align-items:center;
            padding:16px 0;
            border-bottom:1px dashed #d1d5db;
        }
        #whatsappComandaCapture .comanda-item:last-child{border-bottom:0;padding-bottom:2px}
        #whatsappComandaCapture .comanda-qty{
            width:58px;
            height:42px;
            border-radius:13px;
            background:#FFEBEE;
            color:#C62828;
            display:flex;
            align-items:center;
            justify-content:center;
            font-size:13px;
            font-weight:900;
        }
        #whatsappComandaCapture .comanda-item-name{font-size:15px;font-weight:800;line-height:1.35}
        #whatsappComandaCapture .comanda-item-detail{font-size:11px;color:#6b7280;margin-top:4px}
        #whatsappComandaCapture .comanda-price{font-size:15px;font-weight:900;color:#C62828;white-space:nowrap}
        #whatsappComandaCapture .comanda-totals{
            margin-top:20px;
            background:#111827;
            color:#fff;
            border-radius:22px;
            padding:22px;
        }
        #whatsappComandaCapture .comanda-total-row{
            display:flex;
            justify-content:space-between;
            align-items:center;
            gap:20px;
            font-size:13px;
            color:#cbd5e1;
            margin-bottom:10px;
        }
        #whatsappComandaCapture .comanda-total-final{
            display:flex;
            justify-content:space-between;
            align-items:end;
            gap:20px;
            border-top:1px solid rgba(255,255,255,.15);
            margin-top:14px;
            padding-top:16px;
        }
        #whatsappComandaCapture .comanda-total-final span:first-child{
            font-size:12px;
            font-weight:800;
            letter-spacing:.12em;
            text-transform:uppercase;
            color:#94a3b8;
        }
        #whatsappComandaCapture .comanda-total-final span:last-child{
            font-family:'Bebas Neue',sans-serif;
            font-size:42px;
            line-height:1;
            letter-spacing:.03em;
        }
        #whatsappComandaCapture .comanda-footer{
            text-align:center;
            margin-top:22px;
            font-size:10px;
            color:#9ca3af;
            font-weight:700;
            letter-spacing:.08em;
            text-transform:uppercase;
        }

        /* ===== ECOMMERCE ESTÁTICO: CHECKOUT PREMIUM ===== */
        .checkout-progress{
            display:flex;align-items:center;justify-content:center;gap:.35rem;
            padding:.2rem 0 .8rem;margin-bottom:.25rem;
        }
        .checkout-step{display:flex;align-items:center;gap:.35rem;color:#9ca3af;white-space:nowrap}
        .checkout-step span{
            width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;
            background:#f1f5f9;color:#64748b;font-size:10px;font-weight:900;
        }
        .checkout-step small{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
        .checkout-step.active span{background:#C62828;color:#fff;box-shadow:0 5px 12px rgba(198,40,40,.2)}
        .checkout-step.active small{color:#C62828}
        .checkout-step.current span{transform:scale(1.08)}
        .checkout-line{height:1px;background:#e5e7eb;flex:1;max-width:30px}
        .premium-input.uppercase{text-transform:uppercase}
        #bankInfoSection{box-shadow:0 8px 20px rgba(30,64,175,.06)}
        #cashChangeSection{box-shadow:0 8px 20px rgba(16,185,129,.06)}
        @media(max-width:420px){
            .checkout-step small{display:none}
            .checkout-line{max-width:22px}
        }
