/*
Theme Name: Theme Tranqui
Theme URI: https://boticastranqui.com
Author: Helydev
Author URI: https://helydev.com
Description: Tema personalizado para Boticas Tranqui - Tu farmacia de confianza.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-tranqui
/* ===== GLOBAL VARIABLES ===== */
/* NOTE: These variables are dynamically overwritten in functions.php 
   to use Elementor Global Colors as the Single Source of Truth.
   Manage them in Elementor > Site Settings > Global Colors. */
:root {
    --color-1: #d2195d;
    --color-2: #f06598;
    --color-3: #123dac;
    --color-4: #3d5ba9;
    --color-verde: #00a624;
    --color-amarillo: #ffcc00;
    --color-blanco: #ffffff;
    --color-texto: #333333;
    --color-footer-bg: #111827;
    --color-footer-text: #d1d5db;
    --color-gray-sub: #8D8D8D;
    --color-azul-2: #E6EDFF;
    --color-rosa-2: #FFEDF3;

    /* Colores de Categorías (Pills) */
    --pill-yellow-bg: #FFF8E1;
    --pill-yellow-text: #FFB300;
    --pill-red-bg: #FFEBEE;
    --pill-red-text: #F44336;
    --pill-pink-bg: #FCE4EC;
    --pill-pink-text: #E91E63;
    --pill-blue-bg: #E8EAF6;
    --pill-blue-text: #3F51B5;
    --pill-green-bg: #E8F5E9;
    --pill-green-text: #4CAF50;
}

.bold{
    font-weight: bold;
}

.rosa{
    color: var(--color-1);
}

.rosa-2{
    color: var(--color-2);
}

.azul{
    color: var(--color-4);
}

.azul-2{
    color: var(--color-3);
}

.verde{
    color: var(--color-verde);
}

.amarillo{
    color: var(--color-amarillo);
}

.azul-suave{
    color: var(--color-azul-2);
}

.rosa-suave{
    color: var(--color-rosa-2);
}

.gris{
    color: var(--color-gris-1);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #fff;
    color: var(--color-texto);
}

h2 {
    font-size: clamp(25px, 2vw + 18px, 32px);
    line-height: 1.3;
}

/* ===== TOP BAR SLIDER ===== */
.top-bar-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.top-bar-slide {
    width: 100%;
    display: none;
    animation: fadeInSlide 0.8s ease forwards;
}

.imagen-completa-con-enlace a{
    width: 100%;
    
}

.top-bar-slide.active {
    display: block;
}

.slide-link {
    display: block;
    width: 100%;
    line-height: 0;
}

.slide-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.slide-mobile { display: none; }
.slide-desktop { display: block; }

@media (max-width: 767px) {
    .slide-mobile { display: block; }
    .slide-desktop { display: none; }
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== TOP BAR (Fallback) ===== */
.top-bar {
    background-color: var(--color-verde);
    color: var(--color-blanco);
    text-align: center;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar .highlight {
    background-color: var(--color-amarillo);
    color: var(--color-texto);
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1rem;
}

.top-bar .phone {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar .fa-whatsapp {
    font-size: 1.6rem;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== STICKY HEADER ===== */
.main-header-sticky {
    position: sticky;
    top: 0;
    z-index: 999999;
    width: 100%;
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Sombra suave para separar del contenido */
}

/* Reducir sombra en móvil para un look más limpio */
@media (max-width: 767px) {
    .main-header-sticky {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
}

/* ===== MIDDLE BAR (Logo + Search) ===== */
.middle-bar {
    background-color: #ffffff !important;
    padding: 20px 0;
}

.middle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: relative; /* Referencia para el dropdown de 1200px */
}

/* ... existing Logo styles ... */

/* Search */
.search-wrapper {
    flex-grow: 1;
    max-width: 600px;
    display: flex;
    border: 1.5px solid #a3b1d1;
    border-radius: 30px;
    background: var(--color-blanco);
    /* Ya no necesita position: relative para el dropdown de 1200px */
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: auto;
    fill: none;
    stroke: var(--color-2);
    stroke-width: 2;
}

.logo-img {
    height: 55px;
    width: auto;
    max-width: 200px; /* Evita que logos horizontales rompan el layout */
    display: block;
    object-fit: contain;
}

.logo-container.no-text .logo-img {
    height: 65px; /* Un poco más grande si no hay texto */
    max-width: 250px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-title {
    color: var(--color-4);
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: -1px;
}

.logo-subtitle {
    color: var(--color-2);
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    margin-top: -5px;
}

/* Search */
.search-container {
    flex-grow: 1;
    max-width: 600px;
}

.search-wrapper {
    width: 100%;
    display: flex;
    border: 1.5px solid #a3b1d1;
    border-radius: 30px;
    background: var(--color-blanco);
    position: relative; /* Necesario para el dropdown de resultados */
}

.search-input {
    flex-grow: 1;
    border: none;
    padding: 12px 25px;
    font-size: 0.95rem;
    color: var(--color-texto);
    outline: none;
    font-family: 'Poppins', sans-serif;
    background: transparent; /* Permite ver el fondo redondeado del wrapper */
    border-radius: 16px 0 0 16px !important; /* Redonea solo las esquinas izquierdas */
}

.search-input::placeholder {
    color: #888;
}

.search-button {
    background-color: var(--color-4);
    color: var(--color-blanco);
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s ease;
    border-radius: 0 16px 16px 0 !important; /* Redonea solo las esquinas derechas */
}

.search-button:hover {
    background-color: var(--color-3);
}

/* User Actions */
.user-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px; /* Un poco más de padding lateral */
    border-radius: 25px;
    text-decoration: none;
    color: var(--color-blanco);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease; /* Transición para todos los cambios */
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.btn-ingresar {
    background-color: var(--color-4);
    box-shadow: 0 4px 12px rgba(61, 91, 169, 0.35);
}

.btn-carrito {
    background-color: var(--color-2);
    box-shadow: 0 4px 12px rgba(240, 101, 152, 0.35);
}

.btn-ingresar:hover {
    box-shadow: 0 6px 18px rgba(61, 91, 169, 0.45);
}

.btn-carrito:hover {
    box-shadow: 0 6px 18px rgba(240, 101, 152, 0.45);
}

/* ===== BOTTOM NAV (Azul) ===== */
.bottom-nav {
    background-color: var(--color-4);
    padding: 12px 0;
    position: relative; /* Needed so mega-menu can escape */
    overflow: visible;  /* Allow dropdown to show below */
    z-index: 50;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible; /* Don't clip the mega-menu */
}

.nav-links-left {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--color-blanco);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.link-active {
    background-color: var(--color-azul-2);
    color: var(--color-4);
}

.btn-categorias {
    background-color: var(--color-2);
    color: var(--color-blanco);
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: border-radius 0.2s ease;
}

.mega-menu-wrapper:hover .btn-categorias {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-precios {
    background-color: var(--color-verde);
    color: var(--color-blanco);
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== MEGA MENU (3 COLUMNS) ===== */
.mega-menu-wrapper {
    position: relative;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 900px;
    background: #fff;
    border-radius: 0 32px 32px 32px; /* Sin radio en esquina sup-izq */
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    z-index: 200;
    overflow: hidden;
}

/* Puente invisible: evita que el menu se cierre al bajar el mouse desde el boton */
.mega-menu-wrapper::after {
    content: '';
    display: block;
    position: absolute;
    height: 12px;
    width: 100%;
    bottom: -12px;
    left: 0;
}

.mega-menu-wrapper:hover .mega-menu {
    display: block;
}

.mega-menu-content {
    display: flex;
    min-height: 380px;
}

/* COLUMN 1: Categories List */
.mega-col-1 {
    flex: 1;
    background: #fff5f8;
    padding: 20px 0;
    border-right: 1px solid #fce7ef;
}

.mega-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--color-1);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.mega-cat-link i {
    font-size: 0.8rem;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.mega-cat-link:hover,
.mega-cat-link.active {
    background: #fff;
    color: var(--color-1);
    border-left: 4px solid var(--color-1);
    padding-left: 16px;
}

.mega-cat-link.active i {
    opacity: 1;
    transform: translateX(4px);
}

/* COLUMN 2: Subcategories */
.mega-col-2 {
    flex: 1;
    padding: 30px;
    background: #fff;
    border-right: 1px solid #f3f4f6;
}

.mega-subcat-group {
    display: none;
}

.mega-subcat-group.active {
    display: block;
    animation: fadeInSub 0.3s ease;
}

@keyframes fadeInSub {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mega-subcat-title {
    color: var(--color-4);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5eaf5;
}

.mega-subcat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.mega-subcat-list a {
    color: var(--color-gray-sub);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(12px, 1.1vw, 14px);
    font-weight: 400; /* Regular */
    transition: color 0.2s;
}

.mega-subcat-list a:hover {
    color: var(--color-1);
}

.btn-ver-todo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-verde);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* COLUMN 3: Promo Image */
.mega-col-3 {
    flex: 1;
    padding: 30px; /* Mismo padding que columna 2 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

.mega-promo-box {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.mega-promo-box img {
    width: 100%;
    height: auto; /* Imagen completa, sin recorte */
    display: block;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.mega-promo-box:hover img {
    transform: scale(1.03);
}

/* ===== RESPONSIVE UTILITIES ===== */
.d-mobile { display: none !important; }

/* ===== RESPONSIVE MEDIA QUERIES ===== */

@media (max-width: 1024px) {
    /* Tablet layout: Row */
    .middle-container {
        gap: 15px;
        flex-wrap: nowrap;
    }
    .search-wrapper {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }
    .user-actions {
        width: auto;
    }
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px 0;
    }
    .nav-links-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .btn-precios {
        display: none !important;
    }
    .btn-cat-text {
        display: none !important;
    }
}

@media (max-width: 767px) {
    /* Mobile Layout */
    .d-desktop { display: none !important; }
    .d-mobile { display: flex !important; }
    
    .middle-container {
        justify-content: space-between;
        gap: 10px;
    }
    
    .mobile-menu-btn {
        background: none;
        border: none;
        color: var(--color-4);
        font-size: 1.8rem;
        cursor: pointer;
        padding: 5px;
    }

    .logo-container {
        flex: 1;
        justify-content: center;
    }

    .logo-img {
        max-height: 40px;
        width: auto;
    }

    .logo-container.no-text .logo-img {
        max-height: 45px;
    }

    .logo-title {
        font-size: 1.4rem;
    }

    .logo-subtitle {
        font-size: 1rem;
        margin-left: 0;
    }

    .search-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-blanco);
        padding: 20px;
        z-index: 998;
        border-top: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        
        /* Habilitar scroll interno */
        max-height: calc(100vh - 80px); /* 80px aprox height header */
        overflow-y: auto;
    }

    .search-container.active-mobile {
        display: block !important;
        animation: fadeInSub 0.2s ease;
    }
    
    .search-wrapper {
        width: 100%;
        display: flex !important;
        position: static;
        border: 2px solid var(--color-4); /* Borde azul como en la imagen */
    }

    .mobile-actions {
        gap: 8px;
        align-items: center;
    }

    .mobile-action-btn {
        width: 38px;
        height: 38px;
        border-radius: 50% !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        text-decoration: none;
        cursor: pointer;
        font-size: 1.2rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    .mobile-search-toggle {
        background-color: var(--color-azul-2);
        color: var(--color-4);
    }

    .mobile-btn-user {
        background: linear-gradient(180deg, var(--color-4) 0%, var(--color-3) 100%);
        color: var(--color-azul-2);
    }

    .mobile-btn-cart {
        background: linear-gradient(180deg, var(--color-2) 0%, var(--color-1) 100%);
        color: var(--color-rosa-2);
    }
    
    .bottom-nav {
        display: none !important;
    }
}

/* ===== MOBILE JS MENU ===== */
header { position: relative; }
.middle-bar { position: relative; }

.mobile-nav-overlay {
    display: none !important;
}

.mobile-sidebar-menu {
    position: absolute;
    top: 100%; left: 0; 
    width: 100%;
    max-width: 100%;
    max-height: 70vh;
    background-color: var(--color-blanco); 
    color: var(--color-texto);
    z-index: 999;
    transition: none;
    flex-direction: column;
    overflow-y: auto;
    display: none !important;
    border-top: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.mobile-sidebar-menu.active {
    display: flex !important;
}

.mobile-sidebar-header {
    display: none;
}

.mobile-sidebar-body {
    flex: 1;
    overflow-y: auto;
}

.mobile-accordion {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background-color: var(--color-rosa-2);
    transition: background-color 0.3s ease;
}
.mobile-accordion-item.active .mobile-accordion-header {
    background-color: var(--color-blanco);
}
.mobile-accordion-header a {
    color: var(--color-2);
    text-decoration: none;
    font-weight: 600;
    font-size: 17px; /* Requerimiento: Categorías 17px */
    flex: 1;
}
.mobile-accordion-toggle {
    background: transparent;
    border: none;
    color: var(--color-2);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}
.mobile-accordion-toggle i {
    transition: transform 0.3s ease;
}
.mobile-accordion-item.active .mobile-accordion-toggle i {
    transform: rotate(90deg);
}

.mobile-accordion-content {
    background-color: var(--color-blanco);
    display: none;
    padding: 5px 20px 20px 20px;
}
.mobile-accordion-item.active .mobile-accordion-content {
    display: block;
    animation: fadeInSub 0.3s ease;
}

.mobile-subcat-list {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 5px 0 15px 5px;
    border-left: 1px solid #E5E7EB; /* Línea lateral como en la imagen */
}
.mobile-subcat-list li {
    margin-bottom: 12px;
}
.mobile-subcat-list li a {
    color: var(--color-gris-1); /* #8D8D8D */
    text-decoration: none;
    font-size: 14px; /* Requerimiento: Subcategorías 14px */
    display: block;
}
.mobile-subcat-list li a:hover {
    color: var(--color-1);
}

.mobile-all-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-verde);
    color: var(--color-blanco);
    padding: 8px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-top: 5px;
    margin-left: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}
.mobile-all-btn i {
    margin-left: 8px;
    font-size: 12px;
}
.mobile-all-btn:hover {
    background-color: var(--color-verde);
    opacity: 0.9;
    transform: translateX(3px);
}

.mobile-promo-box {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px auto 0 auto;
    max-width: 250px; /* Tamaño reducido de la promo */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.mobile-promo-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Footer Links */
.mobile-footer-links {
    padding: 20px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background-color: #fff;
}
.mobile-footer-links a {
    display: inline-flex;
    align-items: center;
    color: var(--color-4); /* #3d5ba9 */
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}
.mobile-footer-links a svg {
    margin-right: 14px;
    flex-shrink: 0;
    width: 22px;
    height: auto;
}
.mobile-footer-links a span {
    line-height: 1;
}
.mobile-footer-links a:hover {
    color: var(--color-1);
}

@media (max-width: 640px) {
    .top-bar {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    .top-bar .phone {
        font-size: 1.1rem;
    }
    .logo-title {
        font-size: 1.6rem;
    }
    .logo-subtitle {
        font-size: 1.2rem;
        margin-left: 15px;
    }
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: #ebf0fc;
    padding: 60px 0 20px;
    color: #5f74a8;
    font-family: 'Nunito', 'Poppins', sans-serif;
}

.site-footer .container {
    display: block !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Layout Grid */
.site-footer .footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Brand Column */
.site-footer .brand-col {
    padding-right: 20px;
}

.site-footer .logo-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    text-decoration: none;
}

.site-footer .logo-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    margin-top: 5px;
    flex-shrink: 0;
}

.site-footer .logo-title {
    font-size: 3.2rem !important;
    color: #2d4182 !important;
    line-height: 1 !important;
    letter-spacing: -1px !important;
    font-weight: 600 !important;
}

.site-footer .logo-slogan {
    font-size: 2rem !important;
    color: #f25c89 !important;
    line-height: 1 !important;
    transform: rotate(-3deg) translateY(-5px) translateX(15px) !important;
    align-self: flex-end;
    font-family: 'Caveat', cursive !important;
}

.site-footer .brand-desc {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
    max-width: 320px;
    color: var(--color-4);
}

/* Social Media Icons */
.site-footer .social-links {
    display: flex;
    gap: 15px;
}

.site-footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-4);
    transition: opacity 0.3s ease;
}

.site-footer .social-links a:hover {
    opacity: 0.65;
}

.site-footer .social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Menu Columns */
.site-footer .footer-col h3 {
    color: var(--color-4);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
}

.site-footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-col a {
    color: var(--color-4);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-footer .footer-col a:hover,
.site-footer .contact-list a:hover {
    color: #2d4182;
}

/* Contact Details */
.site-footer .contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.site-footer .contact-list svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: #5f74a8;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-footer .contact-list a {
    color: var(--color-4);
    text-decoration: none;
}

/* Bottom Bar */
.site-footer .footer-divider {
    height: 1px;
    background-color: #b0c0df;
    margin-bottom: 20px;
}

.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #5f74a8;
    padding-bottom: 10px;
}

.site-footer .copyright-text strong {
    color: #2d4182;
    font-weight: 700;
}

.site-footer .footer-bottom-links {
    display: flex;
    gap: 20px;
}

.site-footer .footer-bottom-links a,
.site-footer .footer-bottom-nav a {
    color: var(--color-4);
    text-decoration: none;
    font-size: 12px;
}

.site-footer .footer-bottom-nav {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .site-footer .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 50px 30px;
    }
}

@media (max-width: 768px) {
    .site-footer .footer-bottom {
        flex-direction: column-reverse;
        gap: 15px;
        text-align: center;
    }
    .site-footer .logo-container {
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
    }
    .site-footer .logo-title {
        font-size: 2rem !important;
    }
    .site-footer .logo-slogan {
        font-size: 1.2rem !important;
    }
    .site-footer .logo-icon {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }
    .site-footer .brand-desc {
        text-align: center;
    }
    .site-footer .social-links {
        justify-content: center;
    }
    .site-footer .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .site-footer .footer-top {
        grid-template-columns: 1fr;
    }
    .site-footer .logo-title {
        font-size: 1.6rem !important;
    }
    .site-footer .logo-slogan {
        font-size: 1rem !important;
        transform: rotate(-3deg) translateY(0) translateX(5px) !important;
    }
    .site-footer .logo-icon {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }
    .site-footer .brand-col {
        padding-right: 0;
    }
}

/* ============================================================
   ELEMENTOR SUPPORT
   ============================================================ */

/* Full-width template reset */
.elementor-full-width-template {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.elementor-full-width-template .elementor-section-stretched {
    width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Page and Single templates container */
.site-main.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Force Elementor Boxed width to match the theme */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px !important;
}

/* Default padding for new Elementor sections/containers */
.elementor-section, 
.e-con-inner,
.e-con {
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (max-width: 767px) {
    .elementor-section, 
    .e-con-inner,
    .e-con {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* Editor specific tweak to ensure pink box is at 100% of theme container */
.elementor-editor-active .elementor-section-boxed > .elementor-container {
    max-width: 1200px !important;
}

/* Global Elementor Button Effects */
.elementor-button {
    transition: all 0.3s ease !important;
}
.elementor-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    opacity: 0.95;
}
.elementor-button:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================================
   PRODUCT CARD (SINGLE SOURCE OF TRUTH)
   ============================================================ */

/* Contenedor principal de la tarjeta */
.product-card {
    background-color: #ffffff;
    width: 100%;
    /* max-width removed to allow to fill CSS Grid cells */
    border-radius: 24px;
    padding: 24px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Efectos Hover de la Tarjeta */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Etiqueta de Oferta */
.product-card .badge-oferta {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: var(--color-1, #FF0004); /* Mapeado a color primario/secundario o fijo según diseño original */
    color: white;
    font-weight: 800;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 8px 0px 8px 0px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-card .badge-generico {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #3d5ba9 0%, #123dac 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    z-index: 2;
    box-shadow: 0 8px 18px rgba(18, 61, 172, 0.18);
}

/* Contenedor de la Imagen */
.product-card .image-container {
    width: 100%;
    height: 230px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 5px;
    overflow: hidden;
}

.product-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Efecto Hover en la Imagen (Zoom in) */
.product-card:hover .image-container img {
    transform: scale(1.08);
}

/* Etiquetas de Categoría */
.product-card .tags-container {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-card .tag,
.sl-categories-grid .tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.sl-categories-grid .tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
}

.product-card .tag-varios,
.sl-categories-grid .tag-varios {
    background-color: var(--color-azul-2, #eef2ff);
    color: var(--color-4, #4660a9);
}

.product-card .tag-oncologia,
.sl-categories-grid .tag-oncologia {
    background-color: var(--color-1, #ed629b);
    color: #ffffff;
}

.product-card .tag svg,
.product-card .tag i,
.product-card .tag img,
.sl-categories-grid .tag svg,
.sl-categories-grid .tag i,
.sl-categories-grid .tag img {
    width: 14px;
    height: 14px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-card .tag i,
.sl-categories-grid .tag i {
    width: auto; /* Allow FA icons to set their own width if needed, but flex handles alignment */
    min-width: 14px;
}

.product-card .tag:hover,
.sl-categories-grid .tag:hover {
    transform: translateY(-2px); 
    opacity: 0.9;
}

/* Título del Producto */
.product-card .product-title {
    color: var(--color-4, #3D5BA9);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: auto; /* Empuja el precio y botón hacia abajo */
    padding-bottom: 20px;
}

/* Sección de Precios */
.product-card .price-container {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}

/* El precio de promoción a la izquierda, el anterior a la derecha */
.product-card .price-container ins { order: 1; }
.product-card .price-container del { order: 2; }
.product-card .price-container .amount:only-child { order: 1; }

.product-card .price-container .amount,
.product-card .price-container ins .amount {
    color: var(--color-1, #D2195D);
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.product-card .price-container del .amount {
    color: var(--color-gris-1, #8D8D8D);
    font-size: 12px;
    font-weight: 500;
    text-decoration: line-through;
}

.product-card a,
.product-card a:focus,
.product-card a:hover,
.product-card a:active {
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
    background-image: none !important;
    display: flex !important; /* Mover flexbox aquí para que el interior empuje */
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.product-card .price-container,
.product-card .price-container * {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
    background-image: none !important;
}

.product-card .price-container del {
    text-decoration: auto !important;
    opacity: 0.7;
}

.product-card .price-container del .amount {
    text-decoration: line-through !important;
    color: var(--color-gris-1, #8D8D8D) !important;
}

.product-card .price-container del,
.product-card .price-container del * {
    text-decoration: auto !important;
}

.price ins,
.price ins .amount {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Botón de Agregar al Carrito (Sobrescribe estilos WOO por defecto) */
.product-card .add-to-cart-btn,
.product-card .add_to_cart_button {
    width: 100%;
    background-color: var(--color-rosa-2, #FFEDF3) !important;
    color: var(--color-2, #F06598) !important;
    border: none;
    padding: 12px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
}

/* Efecto Hover del Botón */
.product-card .add-to-cart-btn:hover,
.product-card .add_to_cart_button:hover {
    background-color: var(--color-2, #F06598) !important;
    color: #ffffff !important;
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(240, 94, 142, 0.15);
}

.product-card .add-to-cart-btn:active,
.product-card .add_to_cart_button:active {
    transform: scale(0.98);
}

/* ============================================================
   PRODUCT GRID WIDGET 
   ============================================================ */
.tranqui-product-grid {
    display: grid;
    gap: 30px;
}

/* Columnas dinámicas generadas por Elementor (Fallback) */
.tranqui-product-grid.grid-cols-1 { grid-template-columns: 1fr; }
.tranqui-product-grid.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tranqui-product-grid.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tranqui-product-grid.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .tranqui-product-grid {
        gap: 20px;
    }
    .tranqui-product-grid.grid-tablet-cols-1 { grid-template-columns: 1fr; }
    .tranqui-product-grid.grid-tablet-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .tranqui-product-grid.grid-tablet-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    /* Forzar siempre 2 columnas en móvil y evitar desbordes */
    .tranqui-product-grid,
    .tranqui-product-grid.grid-mobile-cols-1,
    .tranqui-product-grid.grid-mobile-cols-2 { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 8px !important; /* Menor gap lateral para que encajen bien */
    }
    
    .product-card {
        padding: 10px; /* Reducción de padding interior para dar espacio al contenido */
        border-radius: 12px;
        min-height: 290px;
    }
    
    /* Etiqueta oferta */
    .product-card .badge-oferta {
        top: 10px;
        left: 10px;
        font-size: 11px;
        padding: 2px 6px;
    }
    .product-card .badge-generico {
        top: 10px;
        right: 10px;
        font-size: 10px;
        padding: 4px 8px;
    }
    
    /* Contenedor de imagen (Protagonista visual) */
    .product-card .image-container {
        height: 145px; 
        margin-bottom: 8px;
    }
    
    /* Etiquetas de categorías reducidas */
    .product-card .tags-container {
        margin-bottom: 8px;
        gap: 4px;
    }
    .product-card .tag {
        font-size: 9px;
        padding: 2px 6px;
    }
    .product-card .tag svg,
    .product-card .tag i {
        width: 10px; height: 10px;
        font-size: 10px;
        min-width: 10px;
    }

    /* Reducción tipográfica general */
    .product-card .product-title {
        font-size: 13px;
        line-height: 1.2;
        padding-bottom: 10px;
    }
    
    .product-card .price-container {
        margin-bottom: 12px;
        gap: 8px;
    }
    .product-card .price-container .amount,
    .product-card .price-container ins .amount {
        font-size: 15px; 
    }
    .product-card .price-container del .amount {
        font-size: 11px;
    }
    
    /* Botón de Carrito más compacto */
    .product-card .add-to-cart-btn,
    .product-card .add_to_cart_button {
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 20px;
    }
}

/* ============================================================
   AJAX ADD TO CART & QTY SELECTOR
   ============================================================ */

/* Contenedor principal */
.tranqui-product-actions {
    position: relative !important;
    width: 100% !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: auto !important;
    overflow: visible !important;
}

/* Ocultar el link "View cart" de WooCommerce */
.tranqui-product-actions .added_to_cart.wc-forward {
    display: none !important;
}

/* Botón original */
.tranqui-product-actions .add-to-cart-btn {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ocultar botón cuando hay items */
.tranqui-product-actions.has-items .add-to-cart-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) scale(0.9) !important;
    pointer-events: none !important;
}

/* Selector de Cantidad */
.tranqui-qty-selector {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #f06598 !important; /* Rosa Tranqui */
    border-radius: 50px !important;
    display: flex !important; /* Importante: se activa vía JS o PHP */
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 5px !important;
    z-index: 20 !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

/* Ocultar selector cuando NO hay items */
.tranqui-product-actions:not(.has-items) .tranqui-qty-selector {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) scale(0.9) !important;
    pointer-events: none !important;
}

/* Botones internos (+ / -) */
.tranqui-qty-selector .qty-btn {
    background: rgba(255, 255, 255, 0.25) !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background 0.2s !important;
}

.tranqui-qty-selector .qty-btn:hover {
    background: rgba(255, 255, 255, 0.4) !important;
}

.tranqui-qty-selector .qty-btn i {
    font-size: 14px !important;
    line-height: 1 !important;
    border: none !important;
    box-shadow: none !important;
}

.tranqui-qty-selector .qty-number {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    font-family: 'Poppins', sans-serif !important;
    user-select: none !important;
}

/* Estado de carga */
.tranqui-product-actions.loading {
    cursor: wait !important;
}
.tranqui-product-actions.loading .add-to-cart-btn,
.tranqui-product-actions.loading .tranqui-qty-selector {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

@media (max-width: 767px) {
    .tranqui-product-actions {
        height: 36px !important;
    }
    .tranqui-qty-selector .qty-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }
    .tranqui-qty-selector .qty-number {
        font-size: 16px !important;
    }
}

/* Badge de conteo para móvil */
.mobile-btn-cart {
    position: relative !important;
}
.mobile-cart-count {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #f06598 !important; /* Rosa Tranqui */
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 2px !important;
    border: 2px solid #fff !important;
    z-index: 5 !important;
}


/* ==========================================================================
   LIVE SEARCH RESULTS (SL- PREFIX)
   Basado en el diseño de farmacia, adaptado a los colores del tema.
   ========================================================================== */

.search-live-results {
    position: absolute;
    top: calc(100% + 20px); /* Alineado al final de la barra blanca */
    left: 20px;
    width: calc(100% - 40px);
    max-width: 1160px; /* 1200 - padding */
    background-color: var(--color-blanco);
    border-radius: 0px 0px 30px 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    padding: 40px;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.sl-loading {
    padding: 20px;
    text-align: center;
    color: var(--color-4);
    font-weight: 600;
    font-style: italic;
}

.search-live-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Colores locales para el buscador */
.search-live-results {
    --sl-text-main: #666666;
    --sl-text-dark: var(--color-texto);
    --sl-text-light: #999999;
    --sl-blue-title: var(--color-4);
    --sl-green-title: var(--color-verde);
    --sl-price-color: var(--color-1);
    
    /* Pills */
    --pill-yellow-bg: #FFF8E1; --pill-yellow-text: #FFB300;
    --pill-red-bg: #FFEBEE;    --pill-red-text: #E53935;
    --pill-pink-bg: #FCE4EC;   --pill-pink-text: #F06292;
    --pill-blue-bg: #E8EAF6;   --pill-blue-text: #5C6BC0;

    /* Brand Featured */
    --brand-bg: #FFF3E0;
    --brand-orange: #FF9800;
    --brand-text: #E65100;
}

/* Títulos */
.search-live-results h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    border: none !important;
    padding: 0 !important;
}

.sl-title-sugerencias {
    color: #8D8D8D;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(12px, 1.5vw, 14px);
    margin: 0 0 20px 0;
    text-transform: uppercase;
}
.sl-title-categorias,
.sl-title-blue {
    color: var(--color-4, #3D5BA9);
    font-weight: 700;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

/* --- COLUMNA 1: SUGERENCIAS --- */
.sl-suggestions-list {
    list-style: none;
    margin-bottom: 35px;
    padding: 0 !important;
}

.sl-suggestions-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 12px;
    color: #8D8D8D;
    transition: color 0.2s;
}

.sl-suggestions-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.sl-suggestions-list li:hover {
    color: var(--sl-blue-title);
}

.sl-suggestions-list li strong {
    font-weight: 700;
    color: inherit;
}

.sl-icon-search {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Categorías (Pills) */
.sl-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* (Pill variables removed, now delegated to product-card tag classes) */

/* --- COLUMNA 2: PRODUCTOS --- */
.sl-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.sl-product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.2s;
    border: 1px solid transparent;
}

.sl-product-card:hover {
    background-color: #f8f9fa;
    border-color: #eee;
}

.sl-product-image {
    width: 50px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sl-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sl-product-brand {
    font-size: 9px;
    font-weight: 800;
    color: var(--sl-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sl-product-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #8D8D8D;
    line-height: 1.3;
}

.sl-product-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-4, #3D5BA9);
    margin-top: 2px;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 6px;
}

.sl-product-price del {
    font-size: 10px;
    color: #8D8D8D;
    font-weight: 500;
    text-decoration: line-through;
}

.sl-product-price ins {
    text-decoration: none;
}

/* --- COLUMNA 3: POPULARES --- */
.sl-popular-list {
    list-style: none;
    margin-bottom: 30px;
    padding: 0 !important;
}

.sl-popular-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 13px;
    color: var(--sl-text-main);
    transition: color 0.2s;
}

.sl-popular-list li:hover {
    color: var(--sl-green-title);
}

.sl-icon-trend {
    width: 14px;
    height: 14px;
    stroke: #9E9E9E;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Marca Destacada */
.sl-featured-brand {
    background-color: var(--brand-bg);
    border-radius: 12px;
    padding: 18px;
    position: relative;
}

.sl-featured-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--brand-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 12px;
}

.sl-featured-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sl-featured-icon {
    background-color: var(--brand-orange);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sl-featured-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.sl-featured-info {
    display: flex;
    flex-direction: column;
}

.sl-featured-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--brand-text);
}

.sl-featured-count {
    font-size: 12px;
    color: #E6A87C;
    font-weight: 600;
}

/* --- BOTON FOOTER --- */
.sl-footer-all {
    display: none; /* Ocultar en desktop */
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.sl-btn-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-2, #E6A87C);
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    padding: 12px 25px;
    border-radius: 25px;
    transition: background-color 0.2s;
    width: 100%;
    max-width: 400px;
}

.sl-btn-all:hover {
    background-color: var(--color-4, #3D5BA9);
}

/* Ajustes Responsivos */
@media (max-width: 1199px) {
    .search-live-results {
        width: calc(100% - 40px);
        left: 20px;
        grid-template-columns: 240px 1fr 240px;
    }
}

@media (max-width: 991px) {
    .search-live-results {
        width: 100% !important;
        left: 0 !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px !important;
        border-radius: 0 0 15px 15px !important;
        top: calc(100% + 15px) !important;
    }
    .sl-footer-all {
        display: block; /* Mostrar en mobile/tablet */
    }
}

@media (max-width: 767px) {
    .search-live-results {
        position: static !important;
        margin-top: 20px !important;
        padding: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        border-radius: 0 !important;
        display: none !important; /* Flujo natural cerrado */
    }
    .search-live-results.active {
        display: grid !important; /* Se abre dentro del contenedor */
        opacity: 1;
        visibility: visible;
    }
    .sl-products-grid {
        grid-template-columns: 1fr;
    }
    .sl-featured {
        display: none !important;
    }
}

.sl-loading {
    padding: 30px;
    text-align: center;
    color: var(--color-gris-1);
    font-size: 14px;
    font-weight: 600;
    grid-column: 1 / -1;
}
