
        .bgimg {
            background-repeat: no-repeat;
            background-size: cover;
            background-color: "black";
        }

        /* --- All CSS styles remain the same as the version with working quantity/total --- */
        :root {
            --nav-width: 237px;
            --sidebar-width: 300px;
        }

        body {
            background-color: #efefef;
            font-family: 'Poppins', sans-serif;
            margin: 0;
            padding-left: var(--nav-width);
            padding-right: 0;
            padding-top: 50px;
            box-sizing: border-box;
            transition: padding-right 0.3s ease-in-out;
        }

        body.sidebar-open {
            padding-right: var(--sidebar-width);
        }

        nav {
            position: fixed;
            left: 0;
            top: 10%;
            width: var(--nav-width);
            bottom: 0;
           /* height: 100vh;*/
            background: #2D6653;
            transition: .4s ease;
            z-index: 1001;
            padding-top: 50px;
            box-sizing: border-box;
            overflow-y: auto;
        }

        .navigation li {
            list-style: none;
            width: 100%;
            border-bottom: 1px solid rgba(255, 255, 255, .5);
        }

        .navigation li:last-child {
            border-bottom: none;
        }

        .navigation a {
            color: white;
            display: flex;
            align-items: center;
            gap: 3px;
            line-height: 2.5;
            padding: 10px 15px;
            text-decoration: none;
            transition: .4s ease;
            font-size: 0.9em;
        }

        .navigation a img {
            width: 43px;
            height: 43px;
            flex-shrink: 0;
        }

        .navigation a:hover {
            background-color: rgba(255, 255, 255, 0.1);
            transform: translateX(5px);
        }

        #menu-content-area {
            padding: 20px;
            box-sizing: border-box;
            width: 100%;
        }

        .menu {
            display: none;
            padding: 120px;
        }

        .product-section {
            width: 100%;
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
            flex-wrap: wrap;
            gap: 25px;
            padding: 10px 0;
        }

        .tile {
            height: 190px;
            width: 190px;
            position: relative;
            margin-bottom: 5px;
        }

        .tile input[type="checkbox"] {
            -webkit-appearance: none;
            appearance: none;
            position: relative;
            height: 100%;
            width: 100%;
            background-color: #ffffff;
            border-radius: 10px;
            cursor: pointer;
            border: 3px solid transparent;
            outline: none;
            box-shadow: 10px 10px 20px rgba(2, 28, 53, 0.08);
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        .tile input[type="checkbox"]:hover {
            transform: translateY(-5px);
        }

        .tile input[type="checkbox"]:checked {
            border: 3px solid #2D6653;
        }

        .tile label {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            height: 90%;
            width: 90%;
            position: absolute;
            bottom: 0;
            cursor: pointer;
            text-align: center;
            padding: 0px;
            box-sizing: border-box;
        }

        .tile label img {
            padding: 0px;
            max-width: 115px;
            max-height: 115px;
            object-fit: contain;
        }

        .tile label h6 {
            padding: 3px;
            font-size: 0.9em;
            margin: 0;
            font-weight: 600;
            justify-content: center;
            align-items: center;
        }

        .tile {
            padding: 10px;
            /* background-color: green;*/
            transition: transform .2s;
        }

        .tile:active {
            -ms-transform: scale(1.5);
            /* IE 9 */
            -webkit-transform: scale(1.5);
            /* Safari 3-8 */
            transform: scale(1.5);
        }

        #cart-sidebar {
            position: fixed;
            top: 0;
            right: 0;
            width: var(--sidebar-width);
            height: 100vh;
            background-color: #f8f9fa;
            border-left: 1px solid #dee2e6;
            box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
            padding: 20px;
            padding-top: 60px;
            box-sizing: border-box;
            transform: translateX(100%);
            transition: transform 0.3s ease-in-out;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        #cart-sidebar.open {
            transform: translateX(0);
        }

        #cart-sidebar h3 {
            margin-top: 0;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #ccc;
            flex-shrink: 0;
            font-size: 1.1em;
        }

        #cart-items-list {
            list-style: none;
            padding: 0;
            margin: 0;
            overflow-y: auto;
            flex-grow: 1;
        }

        #cart-items-list li {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 5px;
            border-bottom: 1px solid #eee;
            font-size: 0.9em;
        }

        #cart-items-list li:last-child {
            border-bottom: none;
        }

        #cart-items-list img {
            width: 45px;
            height: 45px;
            object-fit: cover;
            border-radius: 3px;
            flex-shrink: 0;
        }

        #cart-items-list .item-details {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            min-width: 0;
            gap: 3px;
        }

        #cart-items-list .item-name {
            font-weight: bold;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #cart-items-list .item-price {
            color: #666;
            font-size: 0.9em;
        }

        .item-quantity-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 5px;
        }

        .qty-btn {
            background-color: #e9ecef;
            border: 1px solid #ced4da;
            color: #495057;
            width: 24px;
            height: 24px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            font-size: 1em;
            line-height: 1;
            padding: 0;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            transition: background-color 0.2s ease;
        }

        .qty-btn:hover {
            background-color: #dee2e6;
        }

        .qty-btn:active {
            background-color: #adb5bd;
        }

        .item-quantity {
            font-weight: bold;
            min-width: 20px;
            text-align: center;
        }

        #cart-total {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #ccc;
            flex-shrink: 0;
            font-size: 1.1em;
        }

        #cart-total-label {
            font-weight: normal;
            color: #555;
        }

        #cart-total-value {
            float: right;
            font-weight: bold;
            color: #000;
        }

        /* --- Address and WhatsApp Button Styles --- */
        #address-container {
            margin-top: -100px;
            padding: 15px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        #address-container label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
        }

        #address-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
            /* Include padding in width */
            font-size: 1em;
        }

        #whatsapp-button-container {
            padding: 20px 0;
            /* Adjusted padding */
            text-align: center;
        }

        button#sendWhatsAppButton {
            padding: 12px 25px;
            font-size: 16px;
            cursor: pointer;
            background-color: #25D366;
            color: white;
            border: none;
            border-radius: 5px;
            transition: background-color 0.3s ease, opacity 0.3s ease;
        }

        button#sendWhatsAppButton:hover:not(:disabled) {
            /* Only change hover color if not disabled */
            background-color: #128C7E;
        }

        button#sendWhatsAppButton:disabled {
            /* Style for disabled state */
            background-color: #9de6b5;
            /* Lighter green */
            cursor: not-allowed;
            opacity: 0.7;
        }

        .menuimages {
            border: solid white;
            padding: 3px;
            border-radius: 10px 10px;
        }

        #errorMessage {
            color: red;
            margin-top: 10px;
            font-weight: bold;
            text-align: center;
            max-width: 20%;
        }

        /*topbar*/

        body,
        html {
            height: 100%
        }

        .cursiveword {
            font-family: "Pacifico", sans-serif
        }

        /* --- AÑADIDO: ESTILOS PARA LA VERSIÓN MÓVIL --- */
        .mobile-nav {
            display: none;
        }

        @media screen and (max-width: 992px) {
            .desktop-nav {
                display: none;
            }

            .mobile-nav {
                display: block;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                z-index: 1002;
            }

            body {
                padding-left: 0;
                padding-top: 60px;
            }

            body.sidebar-open {
                padding-right: 0;
            }

            nav#category-nav {
                position: relative;
                top: 0;
                width: 100%;
                height: auto;
                padding-top: 5px;
                padding-bottom: 5px;
                overflow-x: auto;
                white-space: nowrap;
            }

            .navigation {
                display: flex;
                padding-left: 10px;
                border: none;
            }

            .navigation li {
                flex: 0 0 auto;
                border-bottom: none;
                margin-right: 10px;
            }

            .product-section {
                justify-content: space-around;
            }

            .tile {
                width: calc(50% - 15px);
            }

            #cart-sidebar {
                width: 90%;
                max-width: 350px;
            }

            #mobileSidebar .w3-bar-item {
                padding: 16px !important;
            }
        }

        /* here new part */
        /* --- INICIO: NUEVOS ESTILOS PARA MÓVIL (NO AFECTAN ESCRITORIO) --- */
        @media screen and (max-width: 992px) {

            /* 1. Ajustes generales del cuerpo para móvil */
            body {
                padding-left: 0;
                /* Eliminamos el espacio lateral de la barra verde */
                /* Dejamos un espacio arriba para la barra negra y la nueva barra de categorías */
                padding-top: 135px;
            }

            body.sidebar-open {
                /* Evitamos que el carrito empuje el contenido en móvil */
                padding-right: 0;
            }

            /* 2. Ocultar el menú de navegación superior de escritorio y mostrar el de móvil */
            .desktop-nav {
                display: none;
            }

            .mobile-nav {
                display: block;
            }

            /* Aseguramos que el menú hamburguesa se vea */

            /* 3. Transformamos la barra verde lateral en el "Carrusel" horizontal */
            nav {
                top: 60px;
                /* Se posiciona justo debajo de la barra negra superior (que mide aprox 60px) */
                width: 100%;
                height: auto;
                /* La altura se ajusta al contenido */
                padding-top: 5px;
                padding-bottom: 5px;
                z-index: 1001;
                overflow-x: auto;
                /* ¡La magia del carrusel! Permite deslizar horizontalmente */
                white-space: nowrap;
                /* Evita que los elementos salten de línea */
                border-bottom: 1px solid rgba(0, 0, 0, 0.1);
                -webkit-overflow-scrolling: touch;
                /* Scroll suave en iOS */
            }

            /* 4. Ajustamos los elementos del carrusel para que sean más pequeños */
            .navigation {
                display: flex;
                /* Alinea los <li> en horizontal */
                border: none;
                padding-left: 10px;
            }

            .navigation li {
                flex: 0 0.15 auto;
                /* Evita que los items se encojan o estiren */
                border-bottom: none;
                margin-right: 5px;
            }

            .navigation a {
                flex-direction: column;
                /* Icono arriba, texto abajo */
                gap: 2px;
                font-size: 0.7em;
                /* Texto más pequeño */
                line-height: 1.2;
                padding: 5px 8px;
                /* Menos espaciado */
                text-align: center;
            }

            .navigation a img {
                width: 43px;
                /* Imágenes más pequeñas */
                height: 43px;
            }

            /* 5. Ajustamos los productos para que se vean bien en móvil */
            .product-section {
                justify-content: space-around;
                /* Centra mejor las 2 columnas de productos */
            }

            .tile {
                width: calc(50% - 10px);
                /* Dos productos por fila con un pequeño espacio */
                height: auto;
                /* Altura automática para que quepa todo */
                padding: 10px;
                background-color: #ffffff;
                border-radius: 10px;
            }

            .tile label img {
                max-width: 85px;
                max-height: 85px;
            }

            .tile label {
                position: relative;
                left: -0px;
            }

            .tile label h6 {
                font-size: 0.8em;
            }

            .menu {
                padding: 0px;
                /* font-size: 0.1em; */
            }

            /* 6. Hacemos que el carrito (sidebar) se vea bien en móvil cuando aparezca */
            #cart-sidebar {
                top: 130px;
                /* position: fixed; */
                height: 75%;
                width: 100%;
                /* Ocupa casi toda la pantalla para mejor visibilidad */
                max-width: 250px;
            }

            /* 7. Ajustamos el formulario de dirección y el botón de WhatsApp */
            #address-container {
                margin-top: 5px;
                /* Le damos un poco de espacio arriba */
            }

            /*boton cerrar de lista de items seleccionados*/
            #cart-sidebar h3 {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            #close-cart-btn {
                background: none;
                border: none;
                font-size: 2em;
                line-height: 1;
                cursor: pointer;
                color: #888;
            }

            #close-cart-btn:hover {
                color: #000;
            }

        }

        /*carro contador*/
        #nav-cart-toggle-button,
        #mobile-nav-cart-toggle-button {
            position: relative;
            /* Necesario para el posicionamiento absoluto del hijo */
        }

        /* Estilos de la "burbuja" del contador */
        .cart-counter {
            position: absolute;
            top: 18px;
            /* Ajusta para centrar verticalmente */
            right: 12px;
            /* Ajusta para centrar horizontalmente */
            background-color: #d9534f;
            /* Un color rojo llamativo */
            color: white;
            border-radius: 50%;
            /* Para que sea un círculo */
            padding: 2px 7px;
            font-size: 12px;
            /* Tamaño de letra del número */
            font-weight: bold;
            line-height: 1;
            min-width: 20px;
            text-align: center;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);

            /* Transición para que aparezca y desaparezca suavemente */
            transform: scale(0);
            transition: transform 0.2s ease-in-out;
        }

        /* Estilo específico para la versión móvil para que quede bien posicionado */
        #mobile-nav-cart-toggle-button .cart-counter {
            top: 5px;
            right: 5px;
        }

        /* Cuando el contador tiene contenido, se hace visible */
        .cart-counter:not(:empty) {
            transform: scale(1);
        }

        /* --- FIN: NUEVOS ESTILOS PARA MÓVIL --- */

        /* buble message */
        /* --- ADD THIS CSS FOR THE DATA-TITLE TOOLTIP --- */
        [data-title] {
            position: relative;
            /* Needed for the ::after element to be positioned correctly */
            cursor: help;
            /* Optional: shows a question mark cursor */
        }

        /* This creates the tooltip bubble itself */
        [data-title]::after {
            /* The content comes from the data-title attribute */
            content: attr(data-title);
            /* Positioning */
            position: absolute;
            top: 110%;
            /* Position it above the element */
            left: 50%;
            transform: translateX(-50%);
            /* This is a better way to center it */
            z-index: 1012;
            /* The Look (colors, padding, etc.) */
            background: #f05112;
            /* Your site's green color */
            color: #fff;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 14px;
            white-space: nowrap;
            /* Prevents the text from wrapping to a new line */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

            /* Hide it by default */
            opacity: 0;
            pointer-events: none;
            /* The tooltip can't be clicked or hovered */
            transition: opacity 0.3s;
        }

        /* Show it on hover */
        [data-title]:hover::after {
            opacity: 1;
        }

        /* --- ADD THIS AT THE VERY END TO FIX MOBILE TOOLTIPS --- */

        @media (max-width: 992px) {

            [data-title]::after {
                white-space: normal;
                /* This allows the text to wrap */
                max-width: 250px;
                /* A good width for a phone screen */
            }

        }
    