
        @font-face {
            font-family: 'Norms-light';
            src: url('./fonts/TT Norms Pro Light.ttf') format('truetype');
            font-weight: normal; font-style: normal; font-display: swap;
        }

        @font-face {
            font-family: 'Norms-medium';
            src: url('./fonts/TT Norms Pro Medium.ttf') format('truetype');
            font-weight: normal; font-style: normal; font-display: swap;
        }

        @font-face {
            font-family: 'Norms-regular';
            src: url('./fonts/TT Norms Pro Regular.ttf') format('truetype');
            font-weight: normal; font-style: normal; font-display: swap;
        }

        /* Aplica la fuente corporativa Norms */

        body {
            background-color: white;
        }

        body, h1, h2, h3, h4, h5, h6, p, .product-details, .filters, .category-menu, .buy-button, .info-button {
            font-family: 'Norms-regular', Arial, sans-serif;
        }

        html, body {
            overflow-x: hidden;
            max-width: 100%;
        }

        .campaign-cover {
            background: url('./cover_asus_black_friday.jpg') center center/cover no-repeat, linear-gradient(120deg,#f7cf7b 0%, #ffeabe 100%);
            display: block;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            min-width: 100vw;
            transition: opacity 0.5s;
}

            .campaign-cover-inner {
            background: rgba(255, 255, 255, 0.9);
            padding: 48px 32px 36px 32px;
            border-radius: 24px;
            box-shadow: 0 8px 48px 0 rgba(80,40,180,0.15);
            text-align: center;
            max-width: 90vw;
            }

            .cover-title {
            font-size: 2.1em;
            color: #c35b0a;
            font-family: 'Norms-medium', Arial, sans-serif;
            font-weight: bold;
            margin-bottom: 22px;
            letter-spacing: 1px;
            }

            .campaign-countdown {
            display: inline-block;
            padding: 12px 28px;
            border-radius: 20px;
            background: linear-gradient(90deg, #f8e6ff 0%, #e0eaff 100%);
            color: #c35b0a;
            font-size: 2em;
            font-family: 'Norms-medium', Arial, sans-serif;
            font-weight: bold;
            letter-spacing: 1.5px;
            box-shadow: 0 2px 12px rgba(140,30,220,0.08);
            border: 2px solid #b7a7e3;
            }

            .campaign-countdown strong {
            color: #c35b0a;
            }
            .campaign-countdown .cc-sep {
            color: #c35b0a;
            margin: 0 8px;
            font-weight: normal;
            font-size: 1.2em;
            }

            @keyframes cc-beat {
                0%   {transform: scale(1); }
                30%  {transform: scale(1.10); }
                60%  {transform: scale(0.95);}
                100% {transform: scale(1);}
            }

            .campaign-countdown.cc-beat {
                animation: cc-beat 0.32s;
            }

        .campaign-countdown.cc-urgent {
            animation: cc-pulse 0.7s infinite alternate;
            background: linear-gradient(90deg, #ffe6e6 0%, #ffe9f7 100%);
            color: #aa0000;
            border-color: #e57ac0;
        }
        @keyframes cc-pulse {
            0% { box-shadow: 0 2px 12px #ffb3b3; }
            100% { box-shadow: 0 4px 24px #ffb3b3; }
        }


.campaign-inactive-message {
    display: none;
    align-content: center;
    
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    justify-content: center;
    background: url('bg_preblack-friday.jpg') center center/cover no-repeat;
}

.inactive-message-text {
    background: rgba(255,255,255,0.85);
    padding: 40px 60px;
    border-radius: 24px;
    color: #c35b0a;
    font-size: 2em;
    font-family: 'Norms-medium', Arial, sans-serif;
    font-weight: bold;
    box-shadow: 0 8px 48px 0 rgba(80,40,180,0.15);
    text-align: center;
    letter-spacing: 1px;
}




        /* Banner escritorio: sólo visible en desktop */
        .promo-banner-desktop { display: block; }
        .promo-banner-desktop img {
            width: 100%;
            height: auto;
            display: block;
            /* margin-bottom: 8px; */
        }

        /* Banner móvil: sólo visible en móvil */
        .promo-banner-mobile { display: none; }

        .logo-asus {
            float: left;
            max-width: 68px;     /* Límite máximo para desktop */
            width: 25%;           /* O el % que mejor encaje en tu header */
            height: auto;         /* Mantiene la proporción */
            min-width: 68px;      /* Opcional: nunca más pequeño que desktop mínimo */
            display: block;
        }


        h2 {
            font-family: "Norms-regular";
            color: #264e18;
            font-size: 17px;
            text-decoration: none;
            min-height: 65px;
            line-height: 140%;
            padding: 0 20px;
            /* background-color: #222222; */
        }

        h3 {
            font-family: "Norms-regular";
            color: #ffffff;
            font-size: 15px;
            text-decoration: none;
            text-align: left;
            margin:20px 0 0 0;

        }

        .description {
            font-family: "Norms-regular";
            color:#555555;
            font-size: 15px;
            line-height: 130%;
            text-decoration: none;
            flex-wrap: wrap;
            flex-direction: column-reverse;
            justify-content: flex-end;
            min-height: 130px;
            /* padding: 0 20px; */
        }

        a {text-decoration: none;}

        .product-counter {
            font-family: "Norms-light";
            font-size: 14px;
            background-color: #335b25;
            border-radius: 10px;
            padding: 0 10px;
            color: white;
        }

        .form-title {
            font-family: Norms-light;
            font-weight: normal;
            font-size: 15px;
            margin: 10px 5px 5px 5px;
            color: #ffffff;
            background-color: #335b25;
        }

        .form-title-vip {
            color: #ffffff;
        }

    .form-labels{
            font-family:'Norms-light';
            font-weight: normal;
            font-size: 13px;
            margin:0 5px 10px 2px;
            color:#ffffff;
        }

        input.form-labels, select.form-labels{
            color:#4f6caa;
            width:80%;
            padding: 2px 14px 2px 9px;
            margin-bottom: 10px;
        }

        fieldset {
            border-radius: 10px;
            font-family: 'Norms-light';
            border-color: #a3a3a3
        }

   
    
        .container {
          display: grid;
          grid-template-columns: 1fr 4fr;
          grid-template-rows: auto auto auto 1fr;
          grid-template-areas:
            "filters comparerow"
            "filters topdeals"
            "filters products"
            "filters products";
          gap: 10px;
          margin-top:140px;
        }



        .filters {
            grid-area: filters;
            background: #03430685;
            /* border-right: 1px solid #ddd; */
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 10px;
            /* grid-row: 1 / span 2;  <-- ELIMINAR ESTA LÍNEA */
        }

.vip-filter {
    background-color: #d51706;
    border-radius: 7px;
    padding: 2px 14px 2px 9px;
    margin-bottom: 10px;
    /*box-shadow: 0 2px 8px rgba(106,48,182,0.08); */
    display: flex;
    align-items: center;
}

        .vip-checkbox-label {
            display: flex;
            align-items: center;
            cursor: pointer;
            color: #fff;
            font-weight: bold;
        }

        .vip-checkbox-icon {
            display: flex;
            align-items: center;
            font-weight: bold;
            color: #fff;
            font-size: 15px;
            margin-left: 4px;
        }

        .vip-filter input[type="checkbox"] {
            accent-color: #b0bdf7;
            margin-right: 8px;
            width: 18px;
            height: 18px;
        }

        .vip-filter input[type="checkbox"]:checked + .vip-checkbox-icon {
            color: #ffdf00;
            text-shadow: 0 0 4px #fff;
        }


        /* BRAND FILTERS */
        .brand-filter label {
            display: flex; /* Para alinear el checkbox y el texto */
            align-items: center;
            margin-bottom: 5px; /* Espacio entre opciones */
            cursor: pointer;
        }

        .brand-filter input[type="checkbox"] {
            margin-right: 8px; /* Espacio entre el checkbox y el texto */
            accent-color: #c346d3; /* Color del checkbox al seleccionarlo */
            width: 16px; /* Ajusta el tamaño si lo deseas */
            height: 16px; /* Ajusta el tamaño si lo deseas */
        }

        .brand-filter .form-title {
            /* Asegura que el texto de la marca tenga el estilo deseado */
            color: white; /* O el color que uses para los textos de los filtros */
            font-family: 'Norms-light', Arial, sans-serif;
            font-size: 15px;
        }


        /* Puedes añadir esto al final de tu style.css o ajustar los existentes */
        .model-type-filter label {
            display: flex; /* Para alinear el checkbox y el texto */
            align-items: center;
            margin-bottom: 5px; /* Espacio entre opciones */
            cursor: pointer;
        }

        .model-type-filter input[type="checkbox"] {
            margin-right: 8px; /* Espacio entre el checkbox y el texto */
            accent-color: #c346d3; /* Color del checkbox al seleccionarlo */
            width: 16px; /* Ajusta el tamaño si lo deseas */
            height: 16px; /* Ajusta el tamaño si lo deseas */
        }

        .model-type-filter .form-title {
            /* Asegura que el texto del tipo de modelo tenga el estilo deseado */
            color: white; /* O el color que uses para los textos de los filtros */
            font-family: 'Norms-light', Arial, sans-serif;
            font-size: 15px;
        }

.filter-group-label {
    margin-right: 5px;
    font-size: 13px;
    border-radius: 5px;
    padding: 4px 8px;
    color: #ffffff;
    background-color: #5f8743;
}



.clear-filters-btn {
    display: block; /* Para que ocupe su propia línea */
    width: 100%; /* Ocupa todo el ancho disponible en el contenedor de filtros */
    padding: 10px 15px;
    margin-bottom: 15px; /* Espacio debajo del botón */
    background-color: #d51706; /* Un color rojo para "limpiar" */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s ease;
}

        .clear-filters-btn:hover {
            background-color: #c82333;
        }

.product-list {
    grid-column: 2 / -1; /* Ocupa desde la segunda columna hasta el final */
    display: grid;
    grid-area: products;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    justify-content: start; /* Alinear a la izquierda */
    align-items: start;
}
    
        #compare-row  { grid-area: comparerow; }
        #product-list  { grid-area: products; }
        #top-deals { grid-area: topdeals; }
    
        .product {
            background-color: #ffffff;
            border:1px solid #444444;
            border-radius:10px;
            font-family: arial;
            font-size: 18px;
            padding: 10px;
            text-align: center;
            position: relative;
            box-sizing: border-box;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 350px;
            max-width: 300px; /* Ancho máximo para las columnas de producto */
        }

        .product-visited {
            background: linear-gradient(180deg, #e7fbff 40% 0%, #c9e2e7 100%);
            /* Color de fondo para productos visitados */
}

        .product p {
            margin: 5px 0; /* Ajustar el margen para los párrafos dentro de los productos */
            /* background-color: #222222; */
        }
        .product img {
            width: 100%;
            height: auto;
            max-height: 200px; /* Altura máxima para las imágenes */
            object-fit: contain; /* Ajustar la imagen manteniendo proporciones */
        }
        .image-container {
            width: 100%;
            height: 200px; /* Altura fija para el contenedor de la imagen */
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius:10px;
        }


        .price-label {
            color: #888 !important;
            font-size: 16px !important;
            font-family: 'Norms-light', Arial, sans-serif;
            font-weight: normal;
            text-decoration: none;
            vertical-align: baseline;
        }

.price-value {
    color: #5f8545; /* Un gris oscuro o negro para más contraste */
    font-size: 32px;
    font-weight: 700;
    font-family: 'Norms-regular', Arial, sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

        .original-price {
            text-decoration: line-through;
            color: #aaa !important;
            font-size: 13px;
            font-family: 'Norms-light', Arial, sans-serif;
            font-weight: normal;
        }

        .price-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0; /* Sin gap entre hijos */
            height:70px;
        }

        .sale-price {
            display: inline-block;
            min-width: 0;
            text-align: center;
            background: #d51706;
            color: #fff !important;
            font-weight: bold;
            border-radius: 5px 0 0 5px;
            font-size: 22px;
            line-height: 40px;
            padding: 0 10px;
            text-decoration: none !important;
            cursor: pointer;
            box-sizing: border-box;
            transition: background 0.15s;
            margin: 0;
        }

        .sale-price:hover {
            background: #d93636;
        }



        .discount-label {
            background: #662BC9;
            background: linear-gradient(180deg, rgb(191 156 94) 0%, rgb(233 191 157) 100%);
            color: #ffffff;
            font-weight: bold;
            border-radius: 0 5px 5px 0;
            font-size: 18px;
            padding: 0 8px;
            min-width: unset;
            display: inline-block;
            align-items: center;
            line-height: 40px;
            margin-left: 0; /* Sin margen */
        }

        .buy-button {
            color: white;
            font-size: 20px;
            font-weight: bold;
            background-color: #507933;
            padding: 5px 40px;
            border-radius: 5px;
            display: inline-block;
            height: 40px;
        }

        .info-button {
            color: white;
            font-size: 13px;
            font-size: 13px;
            font-weight: bold;
            background-color: darkgray;
            padding: 0 8px;
            border-radius: 5px;
            display: inline-block;
        }



        /* Estilos para la lista de especificaciones en las tarjetas de producto */
        .product-specs-list {
            list-style: none; /* Quitar los puntos de la lista */
            padding: 0;
            margin: 10px 0;
            font-size: 11px; /* Un poco más pequeño que el texto normal */
            color: #555;
            text-align: left; /* Alinear el texto a la izquierda */
            line-height: 10px;
            max-height: 100px; /* Limitar la altura para que no ocupe demasiado */
            overflow: hidden; /* Ocultar el contenido que exceda la altura */
            border:1px solid gray;
            padding:10px;
            min-height:80px;
        }

            .product-specs-list li {
                margin-bottom: 3px;
                white-space: nowrap; /* Evitar que el texto se rompa en varias líneas */
                overflow: hidden; /* Ocultar el texto que excede el ancho */
                text-overflow: ellipsis; /* Mostrar puntos suspensivos si el texto es demasiado largo */
            }

                .product-specs-list li strong {
                    font-weight: bold;
                    color: #333;
                }

        /* Ajustes para la descripción si las specs están debajo */
        .product .description {
            margin-bottom: 5px; /* Espacio entre descripción y specs */
        }

        /* Si quieres que las specs en las recomendaciones sean un poco diferentes */
        .product.recommendation .product-specs-list {
            font-size: 0.8em;
            max-height: 80px; /* Quizás un poco más compacto en el modal */
        }




        /* Estilos para el icono de llama (imagen PNG) */
        .flame-icon {
            width: 20px; /* Ajusta el tamaño del icono según tu imagen y diseño */
            height: 20px; /* Mantén el mismo valor que width para que sea cuadrado */
            vertical-align: middle; /* Alinea el icono con el texto */
            margin-right: 5px; /* Espacio entre el icono y el texto */
            object-fit: contain; /* Asegura que la imagen se ajuste sin distorsionarse */
            /* Puedes añadir una pequeña animación si quieres que "parpadee" */
            animation: flame-pulse 1.5s infinite alternate;
        }

        @keyframes flame-pulse {
            0% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.05);
                opacity: 0.9;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Ajuste para el botón de comprar si el icono lo desplaza */
        .buy-button {
            display: inline-flex; /* Permite alinear el icono y el texto */
            align-items: center; /* Centra verticalmente el icono y el texto */
            justify-content: center; /* Centra horizontalmente el contenido si hay espacio */
            gap: 5px; /* Espacio entre el icono y el texto, si no usas margin-right en el icono */
            /* Asegúrate de que el padding sea suficiente para el icono */
            padding: 5px 20px; /* Ajusta si es necesario */
        }


        .visited-label {
            font-family: 'Norms-light';
            z-index: 2;
            background-color: #1a8193;
            color: white;
            border-radius: 5px;
            padding: 5px 10px;
            font-size: 14px;
            font-weight: bold;
            position: relative;
            top: 0;
            left: 0;
            right: 0;
            text-align: center;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
    
        .visited-label .remove-icon {
            cursor: pointer;
            margin-left: 10px;
            font-weight: bold;
            font-size: 16px;
        }

        a .price-label,
        a .price-value,
        a .original-price {
        color: #888 !important;
        font-size: inherit;
        text-decoration: none;
        }
        a .original-price {
        color: #aaa !important;
        text-decoration: line-through;
        }
        .sale-price {
        color: #fff !important;
        }

.search-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: white url('./bg_body_xmas.jpg') repeat fixed center;
    /* padding: 20px; */
    min-height: 50px;
    grid-column: 1 / -1; /* Hacer que el buscador ocupe toda la fila */
    justify-content: center;
    /* border-bottom: 1px solid #ddd; */
    position: sticky;
    top: 0;
    z-index: 999;
    background:#015412 url('./header_background.jpg') repeat center;
    background-size: auto 100%;
    box-shadow: 0 2px 8px rgba(12,28,140,0.07);
}

.search-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: none;
}



.promo-banner {
    display: none; /* Oculta el banner como elemento en desktop */
}

.search-left,
.search-center,
.search-right {
    width: 33%;
    min-width: 200px;
    box-sizing: border-box;
}

.search-container input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    max-width: 400px;
    margin-left: 10px;
}
    
    
        .filters input[type="number"],
        .filters select {
            padding: 5px;
            border: 1px solid #ccc;
            border-radius: 5px;
            width: 100%;
        }
        .filters input[type="checkbox"] {
            margin-right: 10px;
        }
        .filters .availability-filter,
        .filters .sale-filter {
            display: flex;
            align-items: center;
        }


.category-menu {
    grid-column: 1 / -1; /* Hacer que el menú de categorías ocupe toda la fila */
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 5px;
    background-color: #dd0a0a;
    /* background: linear-gradient(90deg, rgb(171 38 25) 0%, rgb(235 93 80) 100%); */
    /* border-bottom: 1px solid #ddd; */
    font-family: Norms-light;
    font-size: 15px;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap; /* <-- Importante: no permite salto de línea --> */
    min-height: 40px;
}
          
        
        
        .category-menu a {
            padding: 10px 20px;
            text-decoration: none;
            color: #ffffff;
            font-weight: bold;
            margin-right: 10px;
            border-radius: 5px;

        }
            .category-menu a:hover,
            .category-menu a.active {
                background-color: #28511a;
            }

*/
        
        .category-menu {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: nowrap;   /* <-- Importante: no permite salto de línea */
        }
        .category-menu a,
        .category-menu button,
        .category-menu .vertical-divider {
            display: inline-flex;
            align-items: center;
            margin: 0;
            font-size: 15px;
        }
        .vertical-divider {
            width: 1px;
            height: 28px;
            background: #c8c8c8;
            margin: 0 10px;
            display: inline-block;
        }

        
        .countdown{
            font-family: "Norms-regular";
            font-size: 13px;
            color: red;
            background-color:#222222;
        }


        .product .countdown {
            font-family: 'Norms-medium', Arial, sans-serif; /* Fuente más impactante */
            background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%); /* Fondo oscuro con gradiente */
            border: 1px solid #333; /* Borde sutil */
            border-radius: 7px; /* Bordes redondeados */
            padding: 8px 10px; /* Espaciado interno */
            margin: 10px auto; /* Centrado y con margen */
            display: none; /* <-- ¡AHORA ESTÁ OCULTO POR DEFECTO! */
            text-align: center; /* Centra el texto */
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); /* Sombra para profundidad */
            line-height: 1.3;
            max-width: 220px; /* Ancho máximo para que no se estire demasiado */
            color: #f7d057; /* Color base para el texto del contador (dorado/ámbar) */

            min-height: 60px; /* Ajusta este valor si el contador activo es más alto o más bajo */
            box-sizing: border-box; /* Incluye padding y border en el min-height */
            visibility: visible;
        }

        .product .countdown:empty {
            visibility: hidden !important; /* Oculta el contenido pero mantiene el espacio */
            height: auto !important; /* Asegura que min-height siga funcionando */
            padding: 0 !important; /* Elimina padding si está vacío */
            margin: 0 auto !important; /* Elimina margin si está vacío */
        }


        /* Estilo para el mensaje "La oferta finaliza en" */
        .product .countdown .countdown-message {
            color: #aaaaaa;
            font-size: 12px;
            margin-bottom: 4px;
            display: block;
        }

        .product .countdown .countdown-timer-display {
            display: flex;
            justify-content: center;
            gap: 4px;
            font-size: 15px;
        }

        .product .countdown .countdown-segment {
            display: flex;
            flex-direction: column;
            align-items: center;
            line-height: 1;
        }

        .product .countdown .countdown-segment strong {
            color: #ffcc00;
            font-size: 1.5em;
            font-weight: bold;
            display: block;
            margin-bottom: 2px;
        }

        .product .countdown .countdown-segment {
            font-size: 0.7em;
            font-weight: normal;
            color: #f7d057;
        }







        .carousel-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
            opacity: 0;
            transition: opacity 1s ease-in-out; /* Transición de desvanecimiento */
            z-index: 1; /* Asegura que esté debajo de la etiqueta de historial */
        }

        .image-container {
            position: relative;
            border: 0px solid gray;
            background-color: white;
            border-radius: 10px;
        }

        .image-container img.main-image {
            display: block;
            opacity: 1;
            transition: opacity 1s ease-in-out; /* Transición de desvanecimiento */
        }

        .image-container img.carousel-image.visible {
            display: block;
            opacity: 1;
        }

        .image-container img.main-image.hidden {
            opacity: 0;
        }

        .product-details {
            text-align: left;
            list-style-type: disc;
            padding-left: 20px;
            font-family: "Norms-light";
            font-size:11px;
            line-height: 140%;
            min-height: 110px;
        }
    
        .product-details li {
            margin-bottom: 5px;
        }
   
        .error-message {
            grid-column: 1 / -1; /* Ocupa desde la primera columna hasta el final */
            background-color: #ffdddd;
            color: #d8000c;
            padding: 10px;
            border: 1px solid #d8000c;
            margin-bottom: 10px;
            text-align: center;
            display: none; /* Ocultar inicialmente */
            align-self: start; /* Asegura que el contenedor de error solo ocupe el alto necesario */
            position: relative; /* Necesario para el botón de cerrar */
        }
    
        .chat-window {
            border-radius: 10px;
            font-family: arial;
            grid-column: 1 / -1; /* Ocupa desde la primera columna hasta el final */
            background-color: #FFF6DA;
            color: #555555;
            padding: 10px;
            border: 1px solid #0c00d8;
            margin-bottom: 10px;
            text-align: justify;
            display: none; /* Ocultar inicialmente */
            align-self: start; /* Asegura que el contenedor de error solo ocupe el alto necesario */
            position: relative; /* Necesario para el botón de cerrar */
        }

        .close-button {
            position: absolute;
            top: 5px;
            right: 10px;
            background-color: transparent;
            border: none;
            font-size: 20px;
            cursor: pointer;
        }
    
    
        .compare-container {
            display: flex;
            align-items: center;
            background-color: #3b3a3a; /* Color de fondo gris */
            padding: 5px 10px;
            border-radius: 5px; /* Esquinas anguladas */
            margin: 10px;
        }

        .product.product-visited .compare-container {
            background-color: #276168; /* Por ejemplo, un color amarillo */
        }

        .compare-legend {
            margin-top:10px;
        }
    
        .compare-checkbox {
            margin-right: 5px;
            pointer-events: none;
            opacity: 0.5;
        }   

        .compare-label {
            font-family: 'Norms-light';
            font-size: 14px;
            color: #aaaaaa;
            cursor: pointer; /* Asegura que el cursor cambie al pasar sobre la etiqueta */
            opacity: 0.5;
        }
    
        .compare-checkbox:not(.disabled) {
            pointer-events: auto;
            opacity: 1;
        }

        .compare-label:not(.disabled) {
            pointer-events: auto;
            opacity: 1;
        }
    
        .container-compare{
            border:1px solid lightblue;
            padding:10px;
            font-family: 'Norms-light';
            font-size:12px;
            background-color: aliceblue;
            border-radius: 10px;
        }
    
    
        .autocomplete-list {
            list-style: none;
            padding: 0;
            margin: 0;
            background: white;
            border: 1px solid #eee;
            max-height: 200px;
            overflow-y: auto;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            z-index: 100;
            box-shadow: 0 2px 8px rgba(12,28,140,0.08);
            width: 480px; /* Por ejemplo, ajústalo a tu gusto */
            min-width: 320px;
            max-width: 600px;
            text-align: left; /* Añadido para alinear el texto a la izquierda */
        }


    
        .autocomplete-list li {
            padding: 10px 14px;
            cursor: pointer;
            font-family: 'Norms-light', Arial, sans-serif;
            border-bottom: 1px solid #f0f0f0;
        }
        .autocomplete-list li:last-child {
            border-bottom: none;
        }
    
        .autocomplete-list li:hover {
            background: #f0f6ff;
        }
    
        .autocomplete-partnumber {
            color: #999;
            font-size: 13px;
            margin-top: 2px;
            display: block;
        }
    
        mark {
            background: #ffe36b;
            color: #0C1C8C;
            font-weight: bold;
            padding: 0 2px;
            border-radius: 3px;
        }

        #clear-search {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 20px;
            color: #888;
            top: 11px;
            right: 5px;
            padding: 0;
            display: none;
        }
        #clear-search:hover {
            color: #0C1C8C;
        }
    
        .spinner {
            border: 6px solid #aaaaaa;
            border-top: 6px solid #0C568C;
            border-radius: 50%;
            width: 48px;
            height: 48px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        #loading-overlay {
            display: flex;
        }
    
        .product {
            transition: box-shadow 0.2s, transform 0.2s;
        }
        .product:hover {
            box-shadow: 0 8px 24px rgba(50,50,100,0.5);
/*            transform: scale(1.027);*/
            z-index: 2;
        }
/*        .product img {*/
/*            transition: transform 0.2s;*/
/*        }*/
/*        .product:hover img {*/
/*            transform: scale(1.07);*/
/*        }*/

        .product-topdeal {
            border: 2px solid #bc6c5c;
            background: linear-gradient(180deg, #fff 40%, #ffeabe 100%);
            /* box-shadow: 0 0 10px #ffeaea; */
        }

.badge-topdeal {
    font-family: 'Norms-light';
    display: inline-block;
    background: #d51706;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    border-radius: 7px;
    padding: 4px 10px;
    margin-bottom: 8px;
    margin-right: 6px;
    letter-spacing: 1px;
}
    
        #top-deals {
            margin-bottom: 24px;
            padding: 20px;
            /* border-bottom: 2px solid #FF5858; */
            
            /* background: pink; */
            border-radius: 12px;
            grid-area: topdeals;
        }


        .badge-newdeal {
            display: inline-block;
            width:100px;
            padding: 3px 5px 3px 5px !important;
            margin: 5px 0px 4px 5px!important;
            background: #4169e1;
            color: white;
            font-size: 12px;
            font-weight: normal;
            border-radius: 6px;

            vertical-align: middle;
            letter-spacing: 0.5px;
/*            border:1px solid gray;*/
        }

        .badge-oferta {
            height: 15px;
            display: inline-block;
            /* width:50px; */
            padding: 3px 5px 3px 5px !important;
            margin: 5px 0px 4px 5px!important;
            background: #4169e1;
            color: white;
            font-size: 12px;
            font-weight: normal;
            border-radius: 6px;
            vertical-align: middle;
            letter-spacing: 0.5px;
/*            border:1px solid #555555;*/
        }
    
        .badge-row {
            min-height: 15px;
            display: flex;
            align-items: flex-start;
            gap: 4px;
            margin-bottom: 6px;
            justify-content: flex-start;
            height:30px;
        }

        
        .badge-vip {
            font-family: "Norms-regular";
            display: inline-block;
            background: #6A30B6;
            color: #fff;
            font-size: 12px;
            font-weight: normal;
            border-radius: 7px;
            padding: 4px 11px 4px 6px;
            margin-right: 6px;
            letter-spacing: 1px;
            position: relative;
            cursor: pointer;
        }
        
        .badge-vip .vip-overlay {
            display: none;
            position: absolute;
            left: 50%;
            bottom: 120%; /* Aparece encima y centrado respecto al badge */
            transform: translateX(-50%);
            min-width: 190px;
            max-width: 320px;
            background: #fff;
            color: #333;
            border: 1px solid #bbb;
            border-radius: 7px;
            box-shadow: 0 6px 24px rgba(40,16,120,0.16);
            padding: 10px 14px;
            z-index: 11000;
            font-family:'Norms-light';
            font-size: 13px;
            line-height: 1.4;
            font-weight: normal;
            white-space: normal;
        }

        .badge-vip svg {
            margin-bottom: -2px;
        }



        .badge-vip:hover .vip-overlay,
        .badge-vip:focus .vip-overlay {
            display: block;
        }
     
        .badge-vip .vip-overlay::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 100%;
            transform: translateX(-50%);
            border-width: 8px 8px 0 8px;
            border-style: solid;
            border-color: #fff transparent transparent transparent;
            filter: drop-shadow(0 2px 2px rgba(40,16,120,0.10));
        }


        /* NEW: Coupon Badge Style */
        .badge-coupon {
            display: inline-block;
            padding: 3px 8px;
            margin: 5px 0px 4px 5px;
            background: linear-gradient(90deg, #ff6b6b 0%, #ffa07a 100%);
            color: white;
            font-size: 12px;
            font-weight: bold;
            border-radius: 6px;
            vertical-align: middle;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            position: relative; /* ¡IMPORTANTE! Para posicionar el overlay respecto a este elemento */
            cursor: pointer; /* Indica que es interactivo */
        }

        /* NEW: Coupon Badge Overlay Style */
        .badge-coupon-overlay {
            display: none; /* Oculto por defecto */
            position: absolute;
            left: 50%; /* Centrar horizontalmente respecto al padre */
            bottom: 120%; /* Posicionar encima del badge (ajusta este valor si necesitas más/menos espacio) */
            transform: translateX(-50%); /* Ajuste para centrado perfecto */
            min-width: 220px;
            max-width: 300px;
            background: #fff;
            color: #333;
            border: 1px solid #bbb;
            border-radius: 7px;
            box-shadow: 0 6px 24px rgba(40,16,120,0.16);
            padding: 10px 14px;
            z-index: 11000; /* Asegura que aparezca por encima de otros elementos */
            font-family: 'Norms-light', Arial, sans-serif;
            font-size: 13px;
            line-height: 1.4;
            font-weight: normal;
            white-space: normal; /* Permite que el texto se ajuste en varias líneas */
            text-align: center; /* Centra el texto dentro del overlay */
        }

        /* Mostrar el overlay al pasar el ratón o al enfocar (para accesibilidad) */
        .badge-coupon:hover .badge-coupon-overlay,
        .badge-coupon:focus .badge-coupon-overlay {
            display: block;
        }

        /* Flecha para el overlay (apunta hacia el badge) */
        .badge-coupon-overlay::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 100%; /* Posicionar en la parte inferior del overlay */
            transform: translateX(-50%);
            border-width: 8px 8px 0 8px; /* Crea un triángulo */
            border-style: solid;
            border-color: #fff transparent transparent transparent; /* El color de la flecha coincide con el fondo del overlay */
            filter: drop-shadow(0 2px 2px rgba(40,16,120,0.10)); /* Sombra para la flecha */
        }




        /* NEW: Estilos para el área del cupón debajo del botón de comprar */
        .coupon-display-area {
            margin-top: 10px; /* Espacio entre el botón de comprar y el cupón */
            margin-bottom: 10px; /* Espacio entre el cupón y el contenedor de comparar */
            min-height: 40px; /* Altura mínima para reservar el espacio y mantener la consistencia */
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            box-sizing: border-box;
            padding: 0 5px; /* Pequeño padding horizontal */
        }

        /* Estilo para el contenedor del cupón cuando está presente */
        .coupon-box {
            background-color: #333; /* Fondo oscuro para el cupón */
            border: 1px dashed #ffcc00; /* Borde punteado llamativo */
            border-radius: 8px;
            padding: 8px 12px;
            display: block;
            align-items: center;
            gap: 8px;
            color: white;
            font-family: 'Norms-medium', Arial, sans-serif;
            font-size: 12px;
            max-width: 100%;
            overflow: hidden; /* Para que el contenido no se desborde */
            line-height: 20px;
        }

        .coupon-label {
            color: #ffcc00; /* Color distintivo para la etiqueta */
            font-weight: bold;
            white-space: nowrap; /* Evita que se rompa la línea */
        }

        .coupon-code {
            font-family: 'Norms-regular', monospace; /* Fuente monoespaciada para el código */
            font-weight: bold;
            color: #fff;
            background-color: #555;
            padding: 4px 8px;
            border-radius: 4px;
            white-space: nowrap; /* Evita que se rompa la línea */
            overflow: hidden;
            text-overflow: ellipsis; /* Para códigos largos */
        }

        .copy-coupon-btn {
            background: none;
            border: none;
            color: #ffcc00;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            font-family: 'Norms-light', Arial, sans-serif;
            padding: 0;
            white-space: nowrap;
            transition: color 0.2s ease;
            width: 100%;
        }

        .copy-coupon-btn:hover {
            color: #fff;
        }

        .copy-coupon-btn svg {
            min-width: 16px; /* Asegura que el icono no se encoja */
            min-height: 16px;
            stroke: currentColor; /* Usa el color del texto del botón */
        }






/* --- Estilos para el botón flotante de recomendaciones (sin cambios) --- */
#recommendation-trigger {
    position: fixed;
    bottom: 32px;
    right: 100px; /* AUMENTADO: Moverlo un poco más a la izquierda en desktop */
    background-color: #e05dff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    transform: translateX(100px);
    pointer-events: none; /* AÑADIDO: No interactivo cuando está oculto */
}

    #recommendation-trigger.show {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto; /* AÑADIDO: Interactivo cuando está visible */
    }

#recommendation-trigger:hover {
    background-color: #c330e7;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#recommendation-trigger svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

@keyframes pulse-recommendation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

#recommendation-trigger.animate {
    animation: pulse-recommendation 1.5s infinite ease-in-out;
}

/* --- Estilos para el modal de recomendaciones (AHORA MÁS ESPECÍFICO) --- */
.custom-static-modal.recommendation-modal {
    /* Estas reglas sobrescribirán las de .custom-static-modal */
    max-width: 1000px; /* Ancho máximo deseado para el overlay (ajusta a tu gusto) */
    width: calc(100% - 40px); /* Ocupa casi todo el ancho disponible, con 20px de margen a cada lado */

    max-height: 90vh; /* Limita la altura del modal al 90% del viewport */
    overflow-y: auto; /* Permite scroll interno si el contenido es demasiado alto */

    background-color: #2e003d; /* Mantener tu color de fondo */
    border-color: #e05dff; /* Mantener tu color de borde */
    padding: 30px; /* Mantener el padding */
    height:80%;
}

    .custom-static-modal.recommendation-modal h2 {
        color: #e05dff;
        font-size: 1.8em;
        margin-bottom: 15px;
        padding: 0;
        min-height: auto;
    }

#recommended-products-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forzamos 3 columnas */
    gap: 15px; /* Espacio entre productos */
    /* padding: 10px 0; /* Padding interno del contenedor de productos, ajustado */
    justify-items: center;
    grid-column: auto; /* Anula cualquier herencia de .product-list */
    grid-area: auto; /* Anula cualquier herencia de .product-list */
}

    /* --- Estilos para las tarjetas de producto DENTRO del overlay --- */
    #recommended-products-container .product {
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        min-height: 250px; /* REDUCIDO: Altura mínima para que quepan */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%; /* Ocupa el 100% del ancho de su celda de grid */
    }

        #recommended-products-container .product .image-container {
            /* height: 100px; /* REDUCIDO: Altura fija para la imagen */
        }

        #recommended-products-container .product h2 {
            font-size: 1em; /* REDUCIDO: Tamaño de fuente del título */
            min-height: 40px; /* REDUCIDO: Espacio para 2 líneas de texto */
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            padding: 0;
            margin: 8px 0; /* REDUCIDO: Márgenes del título */
            color: #333;
        }

        #recommended-products-container .product .price-row {
            margin-top: 8px; /* REDUCIDO: Margen del bloque de precio */
            height: auto; /* Dejar que el contenido defina la altura */
        }

        #recommended-products-container .product .price-value {
            font-size: 24px; /* REDUCIDO: Tamaño de fuente del precio */
        }

        #recommended-products-container .product .sale-price {
            font-size: 18px; /* REDUCIDO: Tamaño de fuente del precio de oferta */
            line-height: 32px; /* Ajuste para que el texto quepa */
        }

        #recommended-products-container .product .discount-label {
            font-size: 15px; /* REDUCIDO: Tamaño de fuente del descuento */
            line-height: 32px; /* Ajuste para que el texto quepa */
        }

        #recommended-products-container .product .buy-button {
            margin-top: 8px; /* REDUCIDO: Margen del botón de comprar */
            padding: 6px 12px; /* REDUCIDO: Padding del botón */
            font-size: 14px; /* REDUCIDO: Tamaño de fuente del botón */
            height: auto; /* Dejar que el contenido defina la altura */
        }



        /* Ajustes para móvil */
        @media (max-width: 600px) {
            .coupon-display-area {
                min-height: 35px; /* Ajuste para móvil */
                margin-top: 8px;
                margin-bottom: 8px;
            }

            .coupon-box {
                padding: 6px 8px;
                font-size: 12px;
                gap: 6px;
            }

            .coupon-code {
                padding: 3px 6px;
                font-size: 11px;
            }

            .copy-coupon-btn {
                font-size: 10px;
            }

                .copy-coupon-btn svg {
                    width: 14px;
                    height: 14px;
                }
        }


    
        #back-to-top {
            position: fixed;
            bottom: 32px;
            right: 32px;
            background: transparent;
            border: none;
            outline: none;
            z-index: 1999;
            cursor: pointer;
            padding: 0;
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(12,28,140,0.10);
            transition: opacity 0.3s;
            opacity: 0.7;
        }
    
        #back-to-top:hover {
            opacity: 1;
            box-shadow: 0 4px 16px rgba(12,28,140,0.22);
        }
    
        #back-to-top svg {
            display: block;
        }

    
/*        .product-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 0;
            position: relative;
            border-bottom: 1px solid #4169e1; /* Línea horizontal
            padding-bottom: 2px;
        } */
    
        .tab-btn {
            background: #CCD7F6;
            border: none;
            padding: 3px 10px;
            border-radius: 4px 4px 0 0;
            cursor: pointer;
            font-size: 14px;
            color: #333;
            transition: background 0.2s;
            position: relative;
            top: 2px; /* Opcional: sube un poco la pestaña activa para dar relieve */
        }
    
        .tab-btn.active {
            background: #8FA6ED;
            color: #0C1C8C;
            font-weight: bold;
            z-index: 1;
        }
    
        .tab-content {
            position: relative;
            min-height: 32px;
            transition: opacity 0.25s;
            opacity: 1;
        }

        .tab-content.fade-out {
            opacity: 0;
            transition: opacity 0.17s;
        }

        .tab-content.fade-in {
            opacity: 1;
            transition: opacity 0.25s;
        }    
    
        .search-box {
            display: flex;
            align-items: center;
            position: relative;
            width: 100%;
            max-width: 400px;
        }

        .input-wrapper {
            position: relative;
            flex: 1;
            display: flex;
        }

        #search {
            width: 100%;
            padding-right: 30px;
            font-size: 16px;
            border: 1px solid #aaaaaa;
            border-radius: 10px 0 0 10px;
            box-sizing: border-box;
        }

        #clear-search {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            font-size: 20px;
            color: #888;
            display: none;
            z-index: 2;
        }

        #search-btn {
            flex: 0 0 auto;
            padding: 10px 28px;
            font-size: 20px;
            /* border: 1px solid #ccc; */
            border-left: none;
            background: royalblue;
            color: #fff;
            border-radius: 0 10px 10px 0;
            cursor: pointer;
            height: 100%;
        }

        .autocomplete-list {
            box-shadow: 0 2px 8px rgba(12,28,140,0.08);
            border: 1px solid #eee;
            /* ...otros estilos... */
            transition: box-shadow 0.15s, border 0.15s;
        }

        .autocomplete-list:empty {
            box-shadow: none !important;
            border: none !important;
        }
    
        .product-tabs {
            display: flex;
            align-items: center;
            gap: 8px;
            border-bottom: 1px solid #4169e1;
            padding-bottom: 2px;
        }
        .tab-group {
            display: flex;
            gap: 10px;
            flex: 1;
        }
        .tab-global-group {
            display: flex;
            gap: 8px;
            align-items: center;
        }
        .tab-global-icon {
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.15s;
        }
        .tab-global-icon:hover,
        .tab-global-icon:focus {
            opacity: 1;
        }
        
        
        .tab-btn {
    display: flex;
    align-items: center;
    gap: 4px;
}
.tab-global-icon {
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.15s;
}
.tab-global-icon:hover,
.tab-global-icon:focus {
    opacity: 1;
}
     
        
    .tabs-global-bar {
        position: sticky;
        top: 60px;
        z-index: 50;
        background: #fff;
        padding-top: 4px;
    }
        
    .tab-global-btn {
        font-family: "Norms-light";
        font-size: 11px;
/*        background: #f3f7ff;*/
        border: none;
        border-bottom: 1px solid #aaaaaa;
        color: #555555;
        border-radius: 5px;
        padding: 6px 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: background 0.15s;
    }
        
    .tab-global-btn:hover {
        background: #d7e3fa;
    }

    .badge-row {
        min-height: 15px;
        display: flex;
        align-items: center;
        gap: 4px;
        margin-bottom: 6px;
        justify-content: flex-start;
        position: relative;
        height: 30px;
    }


    .share-product-btn {
        margin-left: auto;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0 0 0 8px;
        display: flex;
        align-items: center;
        opacity: 0.7;
        transition: opacity 0.2s;
    }
    .share-product-btn:hover {
        opacity: 1;
    }




        .subscription-block {
            border-radius: 10px;
            padding: 10px;
            text-align: right;
            display: inline-block;
            background-color: #517b34;
        }

        .subscription-form {
            display: flex;
            align-items: center;
            gap: 12px;
            justify-content: flex-end;
        }

        .subscription-text {
            margin-left: 20px;
            white-space: nowrap;
            color: #ffffff;
            font-size: 13px;
        }

        .subscription-input {
            flex: 1;
            font-size: 14px;
            border: 1px solid #ccc;
            height:30px;
        }

        .subscription-button {
            background-color: #00a121;
            border: 1px solid #374E7F;
            color: #ffffff;
            border-radius: 5px;
            padding: 8px 16px;
            cursor: pointer;
            height: 30px;
        }

        .subscription-button:hover {
            background-color: #699f63;
        }


        /* Pre-register Form Block */

        .subscription-block-prelaunch {
            margin-top:20px;
            border: 1px solid gray;
            border-radius: 10px;
            padding: 10px;
            text-align: right;
            display: inline-block;
            background-color: #ffe6b8;
            box-shadow: 0 1px 10px rgba(0,0,0,0.5);
        }

        .subscription-form-prelaunch {
            display: flex;
            align-items: center;
            gap: 12px;
            justify-content: flex-end;
        }

        .subscription-text-prelaunch {
            font-size: 22px;
            text-align: center;
            padding-right: 20px;
            margin-left: 20px;
            white-space: nowrap;
            color: #555;
        }

        .subscription-input-prelaunch {
            height: 40px;
            border-radius: 10px;
            font-size: 18px;
            font-family: "norms-light";
            flex: 1;
            border: 1px solid #ccc;
        }

        .subscription-button-prelaunch {
            font-family:"Norms-regular";
            font-weight:bold;
            font-size: 18px;
            height: 40px;
            background-color: #ffc964;
            border: 1px solid #374E7F;
            color: #555555;
            border-radius: 5px;
            padding: 8px 16px;
            cursor: pointer;
    
        }

        .subscription-button-prelaunch:hover {
            background-color: #ffbc3e;
        }

        /* Estilos específicos para la campaña (ejemplo) */
        .halloween-campaign .subscription-block {
            background-color: #FFDAB9; /* Un color naranja claro */
        }

        .halloween-campaign .subscription-button {
            background-color: #D2691E; /* Un color marrón anaranjado */
            border: 1px solid #8B4513; /* Un color marrón oscuro */
        }        



        
        
        .compare-row {
            grid-area: comparerow;
            display: flex;
            flex-direction: row;
            gap: 18px;
            overflow-x: auto;
            padding: 16px 0 8px 0;
            background: #f8f8f8;
            border-bottom: 2px solid #ddd;
            margin-bottom: 16px;
            scroll-behavior: smooth;
        }

        .compare-slot {
            min-width: 145px;
            max-width: 190px;
            background: #e0ebfa;
            border: 1px solid #4169e1;
            border-radius: 7px;
            padding: 10px 10px 10px 10px;
            text-align: center;
            position: relative;
            flex: 0 0 auto;
            font-size: 11px;
            margin: 0 2px;
            box-shadow: 0 1px 6px rgba(0,0,0,0.04);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            height: 100%; /* Para igualar */
        }
        .compare-slot img {
            height: 45px;
            max-width: 90px;
            object-fit: contain;
            margin-bottom: 5px;
            margin-top: 2px;
        }
        .compare-slot .remove-compare {
            position: absolute;
            top: 2px;
            right: 4px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 13px;
            color: #aa0000;
            font-weight: bold;
            padding: 0;
            line-height: 1;
        }
        .compare-slot .remove-compare:hover { color: #e74c3c; }
        .compare-slot .title {
            font-size: 11px;
            font-weight: 600;
            margin-bottom: 1px;
            color: #0C1C8C;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 140px;
        }
        .compare-slot .price {
            color: #4169e1;
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 1px;
        }
        .compare-slot .desc {
            font-size: 10px;
            color: #777;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 150px;
            margin-top: 2px;
        }

        
        #compare-row.compare-row-fixed,
        .compare-row.compare-row-fixed {

            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100vw;
            max-width: 100vw;
            background: #f8f8f8;
            border-top: 2px solid #4169e1;
            box-shadow: 0 -2px 12px rgba(0,0,0,0.10);
            z-index: 3000;
            padding: 8px 0 8px 0;
            margin: 0;
            display: flex;
            flex-direction: row;
            gap: 10px;
            overflow-x: auto;
            scroll-behavior: smooth;
            min-height: 62px;
            align-items: flex-start;
        }
        
        .compare-row,
        .compare-row.compare-row-fixed,
        #compare-row.compare-row-fixed {
            display: flex !important;
            flex-direction: column !important;
            gap: 0;
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            max-width: 100%;
            background: #ffffff;
            border-top: 2px solid #4169e1;
            box-shadow: 0 -2px 12px rgba(0,0,0,0.10);
            z-index: 3000;
            padding: 0;
            margin: 0;
        }

        .compare-bar-header {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding: 0 8px;
            min-height: 32px;
            background: #f8f8f8;
            border-bottom: 1px solid #ddd;
            gap: 8px;
            box-sizing: border-box;
        }

        .compare-row-products {
            display: flex;
            flex-direction: row;
            gap: 18px;
            overflow-x: auto;
            padding: 8px 0 8px 0;
            width: 100%;
            min-width: 0;
            box-sizing: border-box;
        }

        body.has-compare-bar {
            padding-bottom: 120px; /* Deja espacio al fondo para que no tape contenido */
        }

        .compare-row, .compare-row-products, .compare-bar-header {
            max-width: 100vw;
            overflow-x: hidden;
        }


        .block-vip {
            /* display: flex; */
            align-items: center;
            /* background: #6A30B6; */
            border-radius: 9px;
            min-width: 40px;
            min-height: 40px;
            margin-left: 10px;
            /* box-shadow: 0 0 0 1px #fff, 0 8px 20px 1px rgba(106,48,182,0.14); */
            cursor: pointer;
            padding: 5px 5px 0 5px;
        }

        .block-vip,
            .block-vip a,
            .vip-link {
            position: relative; /* El overlay se posiciona respecto a este contenedor */
        }
        
        .block-vip .vip-overlay {
            display: none;
            position: absolute;
            left: 50%;
            bottom: 100%; /* Aparece encima y centrado */
            transform: translateX(-50%);
            overflow-y: visible;
            background: #fff;
            color: #333;
            border: 1px solid #bbb;
            border-radius: 9px;
            box-shadow: 0 8px 32px rgba(40,16,120,0.19);
            padding: 18px 22px 14px 22px;
            z-index: 11000;
            font-family:'Norms-light';
            font-size: 13px;
            line-height: 1.5;
            font-weight: normal;
            white-space: normal;
            padding-bottom: 20px; /* Suficiente para dejar espacio a la flecha */
            min-width:200px
        }
        
        .block-vip:hover .vip-overlay,
        .block-vip:focus .vip-overlay {
            display: block;
        }
        
        .block-vip .vip-overlay::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 100%;
            transform: translateX(-50%);
            border-width: 12px 12px 0 12px;
            border-style: solid;
            border-color: #fff transparent transparent transparent;
            filter: drop-shadow(0 2px 2px rgba(40,16,120,0.10));
            pointer-events: none;
            z-index: 9999;
        }
        
        .block-vip-icon {
        width: 30px !important;
        height: 30px !important;
        display: block;
        /* object-fit: contain;*/
        }
        
        .block-vip-label {
            color: #fff;
            font-family: "Norms-medium", Arial, sans-serif;
            font-size: 14px;
            font-weight: bold;
            letter-spacing: 1px;
            margin-left: 5px;
            /* line-height: 40px; */
        }
        
        .badge-member {
            display: inline-block;
            background: #6A30B6;
            color: #fff;
            font-size: 12px;
            font-weight: normal;
            border-radius: 6px;
            padding: 4px;
            margin: 4px;
            letter-spacing: 0.5px;
        }



/* --- Estilos para Overlays Estáticos (REVISADO) --- */
.custom-static-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .custom-static-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.custom-static-modal {
    background-color: #222222;
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    /* Estas propiedades serán sobrescritas por .recommendation-modal si es más específico */
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.custom-static-overlay.active .custom-static-modal {
    transform: translateY(0);
}

.close-static-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

    .close-static-modal-btn:hover {
        color: #ff00ff;
    }

.custom-static-modal h2 {
    font-family: 'Norms-medium', Arial, sans-serif;
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #e05dff;
    padding: 0;
    min-height: auto;
}

/* REGLA GENERAL PARA DIVS DENTRO DE MODALES (más específica que solo 'div') */
.custom-static-modal > div {
    font-family: 'Norms-light', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

/* Evitar scroll en el body cuando el modal está activo */
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px); /* Compensación de scrollbar */
}

/* --- Estilos para el botón flotante de recomendaciones --- */
#recommendation-trigger {
    position: fixed;
    bottom: 32px;
    right: 90px;
    background-color: #e05dff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    transform: translateX(100px);
}

    #recommendation-trigger.show {
        opacity: 1;
        transform: translateX(0);
    }

    #recommendation-trigger:hover {
        background-color: #c330e7;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

    #recommendation-trigger svg {
        width: 20px;
        height: 20px;
        stroke: white;
    }

@keyframes pulse-recommendation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

#recommendation-trigger.animate {
    animation: pulse-recommendation 1.5s infinite ease-in-out;
}

/* --- Estilos para el modal de recomendaciones (AHORA SÍ, ESPECÍFICO) --- */
.custom-static-modal.recommendation-modal {
    /* Estas reglas sobrescriben las de .custom-static-modal */
    max-width: 1000px; /* Ancho máximo deseado para el overlay (ajusta a tu gusto) */
    width: calc(100% - 40px); /* Ocupa casi todo el ancho disponible, con 20px de margen a cada lado */

    max-height: 90vh; /* Limita la altura del modal al 90% del viewport */
    overflow-y: auto; /* Permite scroll interno si el contenido es demasiado alto */

    background-color: #2e003d;
    border-color: #e05dff;
    padding: 30px;
    height: auto; /* Importante: dejar que la altura se ajuste al contenido */
}

    .custom-static-modal.recommendation-modal h2 {
        color: #e05dff;
        font-size: 1.8em;
        margin-bottom: 15px;
        padding: 0;
        min-height: auto;
    }

#recommended-products-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forzamos 3 columnas */
    gap: 15px; /* Espacio entre productos */
    padding: 10px 0; /* Padding interno del contenedor de productos, ajustado */
    justify-items: center;
    grid-column: auto; /* Anula cualquier herencia de .product-list */
    grid-area: auto; /* Anula cualquier herencia de .product-list */
    align-items: stretch;
}

    /* --- Estilos para las tarjetas de producto DENTRO del overlay --- */
    #recommended-products-container .product {
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        min-height: 220px; /* Altura mínima de la tarjeta, ajustada para ser compacta */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%; /* Ocupa el 100% del ancho de su celda de grid */
    }

        #recommended-products-container .product .image-container {
            /* height: 90px; /* Altura fija para la imagen, reducida */
        }

        #recommended-products-container .description {
            height:100px;
            min-height:160px;
        }

        #recommended-products-container .product h2 {
            font-size: 0.9em; /* Tamaño de fuente del título, reducido */
            min-height: 35px; /* Espacio para 2 líneas de texto, reducido */
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            padding: 0;
            margin: 5px 0; /* Márgenes del título, reducidos */
            color: #333;
        }

        /* --- NUEVO: Estilos específicos para la descripción en el overlay --- */
        /* Este selector es más específico que el .description general */
        #recommended-products-container .product .description.recommendation-description {
            font-size: 0.75em; /* Más pequeño que el general */
            line-height: 1.3;
            min-height: 95px; /* Altura mínima para la descripción */
            max-height: 40px; /* Limitar a unas 2-3 líneas de texto */
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 3; /* Limitar a 3 líneas de texto */
            -webkit-box-orient: vertical;
            padding: 0 5px; /* Menos padding */
            margin: 0; /* Eliminar márgenes para compactar */
        }

        #recommended-products-container .product .price-row {
            margin-top: 5px; /* Margen del bloque de precio, reducido */
            height: auto; /* Dejar que el contenido defina la altura */
        }

        #recommended-products-container .product .price-value {
            font-size: 20px; /* Tamaño de fuente del precio, reducido */
        }

        #recommended-products-container .product .sale-price {
            font-size: 16px; /* Tamaño de fuente del precio de oferta, reducido */
            line-height: 28px; /* Ajuste para que el texto quepa */
            padding: 0 8px; /* Reducir padding */
        }

        #recommended-products-container .product .discount-label {
            font-size: 13px; /* Tamaño de fuente del descuento, reducido */
            line-height: 28px; /* Ajuste para que el texto quepa */
            padding: 0 6px; /* Reducir padding */
        }

        #recommended-products-container .product .buy-button {
            margin-top: 5px; /* Margen del botón de comprar, reducido */
            padding: 5px 10px; /* Padding del botón, reducido */
            font-size: 13px; /* Tamaño de fuente del botón, reducido */
            height: auto; /* Dejar que el contenido defina la altura */
        }




@media (max-width: 600px) {

    .campaign-cover {
        background-image: url('bg_preblack-friday_m.jpg'); /* Mantener tu imagen de fondo móvil */
        background-position-x: center;
        background-position-y: top;
        background-repeat: no-repeat;
        background-size: cover;
        background-color: black; /* O un color que combine con tu imagen */
        min-height: 100vh;
        min-width: 100vw;
        padding: 0;
    }

    .campaign-cover-inner {
        margin: 20px;
        padding: 24px 8vw 24px 8vw;
        border-radius: 14px;
        max-width: 98vw;
        background: rgba(255, 255, 255, 0.92); /* Fondo blanco semitransparente */
        box-shadow: 0 2px 18px 0 rgba(80,40,180,0.08); /* Sombra ligera */
    }

    .cover-title {
        font-size: 1.18em;
        margin-bottom: 16px;
        letter-spacing: 0.5px;
        color: #d51706; /* Rojo de Navidad */
    }

    .campaign-countdown {
        font-size: 1.2em;
        padding: 8px 10px;
        border-radius: 14px;
        letter-spacing: 0.5px;
        border-width: 1.5px;
        box-shadow: 0 1px 6px rgba(140,30,220,0.07);
        background: linear-gradient(90deg, #e6ffe6 0%, #e0ffe0 100%); /* Degradado de verdes claros */
        color: #d51706; /* Rojo de Navidad */
        border-color: #507933; /* Verde de Navidad */
    }

        .campaign-countdown strong {
            color: #d51706; /* Rojo de Navidad */
        }

        .campaign-countdown .cc-sep {
            margin: 0 3px;
            font-size: 1em;
            color: #d51706; /* Rojo de Navidad */
        }
    /* cc-urgent ya tiene rojo, se mantiene */


    /* Mostrar el banner móvil a pantalla completa */
    .promo-banner-mobile {
        display: block;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        text-align: center;
        border-bottom: 1px solid #d51706; /* Rojo de Navidad */
        z-index: 999;
        background: #e0ffe0; /* Verde claro de Navidad */
    }

        .promo-banner-mobile img {
            width: 100vw;
            max-width: 100vw;
            height: auto;
            display: block;
        }

    /* Oculta el banner desktop en móvil */
    .promo-banner-desktop {
        display: none;
    }

    .search-left {
        background: none;
    }

    .container {
        margin: 0;
        padding: 0;
        margin-top: 220px;
    }

    .description {
        font-family: "Norms-regular";
        color: #555555;
        font-size: 12px;
        line-height: 110%;
        text-decoration: none;
        flex-wrap: wrap;
        flex-direction: column-reverse;
        justify-content: flex-end;
        min-height: 200px;
        padding: 0 5px;
    }

    .product .price-label {
        font-size: 13px !important;
        color: #999 !important;
        font-family: 'Norms-light', Arial, sans-serif !important;
        font-weight: normal !important;
        text-decoration: none !important;
        vertical-align: baseline !important;
        line-height: 1.2 !important;
    }

    .price-value {
        font-size: 17px;
    }

    .product-topdeal {
        border-width: 1.5px !important;
        border-radius: 10px !important;
        background: #fff5f5 !important; /* Mantener un fondo claro */
        border-color: #d51706; /* Borde rojo */
        box-shadow: 0 0 5px rgba(213, 23, 6, 0.3) !important; /* Sombra rojiza */
    }

    .badge-topdeal {
        font-size: 11px !important;
        padding: 3px 7px !important;
        margin-bottom: 4px !important;
        margin-right: 4px !important;
        border-radius: 6px !important;
        background: #d51706; /* Rojo de Navidad */
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 4px;
    }


    .search-left, .search-center, .search-right {
        width: 100%;
        margin-bottom: 10px;
    }

    #search {
        font-size: 16px;
        padding: 8px;
        width: 100%;
        height: 48px;
        ;
    }


    #search-btn {
        flex: 0 0 auto;
        padding: 10px 28px;
        font-size: 20px;
        border-left: none;
        background: #d51706; /* Rojo de Navidad */
        color: #fff;
        border-radius: 0 10px 10px 0;
        cursor: pointer;
        height: 50px;
    }

    .search-box {
        display: flex;
        align-items: center;
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 100%;
    }

    .container, .product-list {
        width: 100vw;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .product-list {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        margin: 0;
        padding: 10px;
    }

    .product {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 6px 0;
    }

    .image-container {
        aspect-ratio: 1 / 1;
        width: 90%;
        height: auto;
        max-width: 90%;
        max-height: auto;
        box-sizing: border-box;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        margin: auto;
    }

        .image-container img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            margin: 0 auto;
            box-sizing: border-box;
        }

        .image-container img,
        .image-container .main-image,
        .image-container .carousel-image {
            width: 100%;
            max-width: 100%;
            height: 100%;
            max-height: 120px; /* igual que el contenedor */
            object-fit: contain;
            display: block;
            margin: 0 auto;
            box-sizing: border-box;
        }


    .badge-vip {
        font-size: 11px !important;
        padding: 3px 5px 3px 5px !important;
        margin: 5px 0px 4px 5px !important;
        border-radius: 5px !important;
        line-height: 1.2 !important;
        height: 22px !important;
        min-width: unset !important;
        display: inline-flex !important;
        align-items: center !important;
        background: linear-gradient(180deg, rgb(191 156 94) 0%, rgb(233 191 157) 100%); /* Degradado dorado */
    }

        .badge-vip img,
        .badge-vip > img {
            width: 13px !important;
            height: 11px !important;
            margin: 0 3px 0 0 !important;
            vertical-align: middle;
            display: inline-block;
        }

    .badge-oferta,
    .badge-newdeal {
        font-size: 11px !important;
        padding: 3px 5px 3px 5px !important;
        margin: 5px 0px 4px 5px !important;
        height: 22px !important;
        display: inline-flex !important;
        align-items: center !important;
        background: #507933; /* Verde de Navidad */
    }

    .badge-row {
        gap: 2px !important;
        margin-bottom: 4px !important;
        min-height: 22px !important;
    }

    .compare-row, .compare-row-products {
        overflow-x: auto !important;
        width: 100%;
        box-sizing: border-box;
        padding: 8px 0;
        gap: 12px;
        scroll-behavior: smooth;
    }

    .compare-slot {
        min-width: 90px;
        max-width: 110px;
        font-size: 10px;
        padding: 4px 2px;
        box-sizing: border-box;
        word-break: break-word;
        background: #fff; /* Fondo blanco */
        border: 1px solid #507933; /* Borde verde */
    }

    .logo-asus {
        max-width: 180px;
        width: 38vw;
        min-width: 80px;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .product, product-visited, .product-topdeal {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
        padding: 6px 0;
    }

        .product img {
            max-height: 120px;
        }

    .product-details {
        font-size: 10px;
        min-height: 60px;
    }

    .badge-topdeal {
        font-size: 11px !important;
        padding: 3px 7px !important;
        margin: 0 4px !important;
        border-radius: 6px !important;
    }

    .compare-row.compare-row-fixed {
        min-height: 95px;
        padding: 12px 0;
        gap: 12px;
        border-top: 2px solid #d51706; /* Rojo de Navidad */
    }

    .compare-slot {
        min-width: 80px;
        max-width: 106px;
        font-size: 9px;
        padding: 2px 3px 4px 3px;
    }

        .compare-slot img {
            height: 24px;
            max-width: 44px;
        }

        .compare-slot .title {
            color: #015412; /* Verde oscuro */
        }

        .compare-slot .price {
            color: #d51706; /* Rojo */
        }


    .category-menu {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-left: 0;
        margin-left: 0;
        width: 100%;
    }

        .category-menu a {
            flex: 0 0 auto;
            min-width: 0;
            max-width: none;
            padding: 8px 14px;
        }

    .filters input,
    .filters select {
        font-size: 13px;
        padding: 3px 10px;
    }

    .vip-overlay,
    .block-vip .vip-overlay {
        min-width: 120px;
        max-width: 90vw;
        font-size: 12px;
        padding: 8px;
    }

    .vip-overlay {
        display: none;
        position: absolute;
        left: 50%;
        bottom: 100%;
        transform: translateX(-50%);
        min-width: 300px;
        background: #fff;
        box-shadow: 0 6px 24px rgba(40,16,120,0.16);
        z-index: 11000;
    }

    .block-vip:hover .vip-overlay,
    .block-vip:focus .vip-overlay {
        display: block;
    }

    #back-to-top {
        bottom: 12px;
        right: 12px;
    }

        #back-to-top svg {
            width: 22px;
            height: 22px;
        }

    body.has-compare-bar {
        padding-bottom: 160px;
    }

    .autocomplete-list {
        min-width: 0;
        max-width: 98vw;
        width: 98vw;
        left: 1vw;
        font-size: 13px;
    }

    .price-row {
        gap: 0;
    }

    .sale-price {
        font-size: 16px;
        padding: 0 6px;
        width: auto;
        display: inline-block;
    }

    .discount-label {
        font-size: 13px;
        padding: 0 4px;
    }

    .block-vip {
        min-width: 30px;
        height: 28px;
        padding: 5px;
        line-height: 10px;
    }

    .block-vip-label {
        font-size: 11px;
        margin-left: 3px;
    }

    .block-vip-icon {
        height: 15px !important;
    }



    .product .countdown {
        padding: 6px 8px;
        margin: 8px auto;
        max-width: 180px;
    }

        .product .countdown .countdown-message {
            font-size: 11px;
            margin-bottom: 3px;
        }

        .product .countdown .countdown-timer-display {
            gap: 6px;
            font-size: 13px;
        }

        .product .countdown .countdown-segment strong {
            font-size: 1.4em;
        }

        .product .countdown .countdown-segment {
            font-size: 0.6em;
        }

    .buy-button {
        padding: 5px 10px; /* Reduce el padding en móvil */
        font-size: 16px; /* Ajusta el tamaño de fuente si es necesario */
    }

    .flame-icon {
        width: 16px; /* Tamaño más pequeño en móvil */
        height: 16px;
        margin-right: 3px;
    }



    .custom-static-modal {
        padding: 20px;
        width: 95%;
    }

        .custom-static-modal h2 {
            font-size: 1.4em;
        }

        .custom-static-modal div {
            font-size: 1em;
        }

    .close-static-modal-btn {
        font-size: 24px;
        top: 5px;
        right: 10px;
    }




    /* Estilos para el botón flotante de recomendaciones */
    #recommendation-trigger {
        bottom: 12px;
        right: 70px; /* Moverlo un poco más a la izquierda en móvil para evitar solapamiento con back-to-top */
        padding: 8px 15px;
        font-size: 14px;
        gap: 5px;
        background-color: #d51706; /* Rojo de Navidad */
    }

        #recommendation-trigger svg {
            width: 18px;
            height: 18px;
        }

    .custom-static-modal.recommendation-modal {
        max-width: 95%;
        padding: 15px;
        background-color: #015412; /* Verde oscuro de Navidad */
        border-color: #d51706; /* Rojo de Navidad */
    }

    #recommended-products-container {
        grid-template-columns: repeat(2, 1fr); /* En móviles, 2 columnas */
        gap: 10px;
        padding: 5px;
    }

        #recommended-products-container .product {
            min-height: 180px; /* Ajustado para tarjetas más pequeñas en móvil */
            padding: 8px;
        }

            #recommended-products-container .product .image-container {
                height: 60px; /* Contenedor de imagen más pequeño en móvil */
            }

            #recommended-products-container .product h2 {
                font-size: 0.75em;
                min-height: 25px;
                margin: 3px 0;
            }

            #recommended-products-container .product .description.recommendation-description {
                font-size: 0.65em; /* Aún más pequeño en móvil */
                min-height: 25px;
                max-height: 35px;
                -webkit-line-clamp: 3;
                padding: 0 3px;
            }

            #recommended-products-container .product .buy-button {
                padding: 3px 6px;
                font-size: 11px;
            }

            #recommended-products-container .product .price-value {
                font-size: 18px;
            }

            #recommended-products-container .product .sale-price {
                font-size: 14px;
                line-height: 24px;
            }

            #recommended-products-container .product .discount-label {
                font-size: 12px;
                line-height: 24px;
            }

    .custom-static-modal.recommendation-modal h2 {
        color: #f7d057; /* Dorado de Navidad */
    }

    #back-to-top {
        bottom: 12px;
        right: 12px;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "filters"
            "visited" /* Aseguramos que la sección de visitados se muestre */
            "topdeals"
            "products";
        margin-top: 220px; /* Ajusta según el alto real del header en móvil */
    }
}

@media (max-width: 900px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas para pantallas pequeñas */
        justify-items: start; /* Alinear a la izquierda */
    }

    #recommended-products-container {
        grid-template-columns: repeat(2, 1fr); /* También 2 columnas en el modal de recomendación */
    }
}

@media (max-width: 1200px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas para pantallas medianas */
        justify-items: start; /* Alinear a la izquierda */
    }

    #recommended-products-container {
        grid-template-columns: repeat(2, 1fr); /* También 2 columnas en el modal de recomendación */
    }
}

        
   