/* Reset mínimo */
*{box-sizing:border-box}
body{font-family:Arial,Helvetica,sans-serif;line-height:1.5;margin:0}
.wrap{max-width:1100px;margin:0 auto;}
.site-header{background:#f5f5f5;border-bottom:1px solid #ddd}
.site-branding h1{margin:0;font-size:22px}
.main-navigation{margin-top:10px}
.site-footer{background:#222;color:#fff;padding:20px;margin-top:40px;text-align:center}
.woocommerce-wrap{padding:20px 0}
.site-main {background: #F3F4F8;}


/* ==========================================================================
   HEADER GENERAL
   ========================================================================== */
.site-header {
    width: 100%;
    z-index: 999;
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    font-family: "Roboto", sans-serif;
}

/* ==========================================================================
   BARRA SUPERIOR
   ========================================================================== */
.top-bar {
    background: #ffffff;
    padding: 8px 0;
    border-bottom: 1px solid #ececec;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
}

/* Buscador */
.header-search form {
    display: flex;
    padding: 3px 10px;
    border-radius: 3px;
}

.header-search input[type="search"] {
    border: none;
    width: 180px;
    outline: none;
}

.header-search button {
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
}

/* Items derecha */
.top-right-items {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item a,
.user-item a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.cart-icon {
    font-size: 18px;
    margin-right: 5px;
}

/* Selector idioma */
.lang-switcher select,
.lang-switcher ul {
    font-size: 14px !important;
}

/* ==========================================================================
   BARRA PRINCIPAL
   ========================================================================== */
.main-bar {
    background: #ffffff;

}

.main-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}





.site-logo {
    float:left;
    align-items: center;
    margin-left: 30px;
}

.site-logo {
    margin-right: auto; /* Empuja el contenido siguiente hacia la derecha */
}

.site-logo img {
    max-height: 60px; /* Ajustá al tamaño deseado */
    width: auto;
}

/* Menú principal */
.menu-principal-ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-principal-ul li a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: 0.25s ease;
}

/* Hover rojo + subrayado */
.menu-principal-ul li a:hover {
    color: #e43c1f;
}

.menu-principal-ul li a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #e43c1f;
    transition: 0.25s ease-in-out;
}

.menu-principal-ul li a:hover::after {
    width: 100%;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .menu-principal-ul {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-bar-container {
        justify-content: space-between;
    }
}
/* ===== MENÚ SUPERIOR ===== */
.site-header {
    background: #ffffff;
    width: 100%;
    border-bottom: 1px solid #e6e6e6;
}

.site-header .main-navigation {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.site-header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
}

.site-header ul li {
    position: relative;
}

.site-header ul li a {
    font-family: "Roboto", sans-serif;
    color: #1a1485;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease-in-out;
	text-transform: uppercase;
}

/* Hover */
.site-header ul li a:hover {
    color: #e43c1f; /* rojo tipo Termofood */
}

/* Subrayado animado */
.site-header ul li a::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #e43c1f;
    transition: 0.25s ease-in-out;
}

.site-header ul li a:hover::after {
    width: 100%;
}

/* Para que el menú no se desarme en móviles */
@media (max-width: 768px) {
    .site-header .main-navigation {
        justify-content: flex-start;
    }

    .site-header ul {
        gap: 20px;
        overflow-x: scroll;
        padding: 10px 0;
    }


}

/* --- CONTENEDOR DEL BUSCADOR EN EL HEADER --- */
.header-search {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 40px; /* separa del logo */
}

/* --- INPUT DEL BUSCADOR --- */
.header-search input[type="text"] {
    width: 180px;
    height: 34px;
    border: 1px solid #ff5a00;
    border-radius: 3px;
    padding: 0 10px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

/* efecto al hacer foco */
.header-search input[type="text"]:focus {
    border-color: #ff5a00; /* naranja como la marca */
    box-shadow: 0 0 2px rgba(255, 90, 0, 0.4);
}

/* --- BOTÓN BUSCAR --- */
.header-search input[type="submit"],
.header-search button {
    height: 36px;
    padding: 0 15px;
    border: none;
    background: #ff5a00; /* naranja Termofood */
    color: white;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 6px;
    font-size: 14px;
    transition: 0.2s;
}

/* hover */
.header-search input[type="submit"]:hover,
.header-search button:hover {
    background: #d94400;
}



/* ---- CONTENEDOR ---- */
.sidebar-categories {
    width: 260px;
    padding: 15px;
    border-right: 1px solid #e5e5e5;
    background: #fff;
    font-family: inherit;
}

/* ---- CATEGORÍA PRINCIPAL ---- */
.cat-block {
    margin-bottom: 10px;
}

.cat-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5px;
    cursor: pointer;
    user-select: none;
	color: #1A1485;
}

.cat-title:hover {
    opacity: 0.8;
}

.cat-title .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- ÍCONO CATEGORÍA ---- */
.cat-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* ---- FLECHA ABRIR/CERRAR ---- */
.toggle-icon {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.2s;
}

.toggle-icon.open {
    transform: rotate(45deg); /* convierte + en x */
}

/* ---- SUBCATEGORÍAS ---- */
.subcats {
    display: none;
    flex-direction: column;
    padding-left: 32px;
    margin-top: 5px;
}

.sub-item {
    display: block;
    padding: 6px 0;
    text-decoration: none;
    color: #444;
    font-size: 14px;
}

.sub-item:hover {
    color: #000;
    font-weight: 600;
}


.home-layout {
    display: grid;
    grid-template-columns: 260px 1fr; /* izquierda: menú / derecha: slider */
    gap: 30px;
    align-items: stretch;
    width: 100%;
    background: #fff;
    padding: 30px;
    margin: 20px 0px;
}

.sidebar-categories {
    background: #fff;

    border-right: 1px solid #e5e5e5;
}

.section-full {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    display: block;
}




/* ================================
   TÍTULO DEL CARRUSEL MÁS CHICO
   ================================ */
.wpcp-carousel-wrapper .sp-wpcpro-section-title {
    font-size: 22px !important;       /* tamaño más chico */
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* ================================
   UNIFICAR ALTURA DE TODAS LAS IMÁGENES
   ================================ */
.wpcp-carousel-wrapper .wpcp-single-item figure {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;               /* << AJUSTA AQUÍ EL ALTO QUE QUIERAS */
    padding: 10px;
    overflow: hidden;            /* recorta exceso sin deformar */
}

/* Las imágenes se ajustan sin deformarse */
.wpcp-carousel-wrapper .wpcp-single-item img {
    max-height: 100%;
    width: auto !important;
    height: auto;
    object-fit: contain !important;
}

/* ================================
   OPCIONAL: HACER LOS LOGOS MÁS PAREJOS
   ================================ */
.wpcp-carousel-wrapper .swiper-slide {
    display: flex !important;
    justify-content: center;
}



/* =================================================================
   ESTILOS GENERALES Y LAYOUT DE LA TIENDA
   ================================================================= */

/* 1. Contenedor de cada producto (Product Card) */
.woocommerce ul.products li.product {
    /* Ajusta el ancho para 4 columnas, 22.5% es un buen punto 
       si WooCommerce no lo maneja automáticamente, pero el PHP debería hacerlo */
    width: auto; 
    margin-right: 3.333%; /* Espaciado entre columnas */
    margin-bottom: 20px;
    background-color: #ffffff; /* Fondo blanco para las cajas */
    border: 1px solid #A09F9F; /* Borde sutil como en la imagen */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Sombra suave */
    text-align: left; /* Alineación del texto dentro de la caja */
}

/* 2. Estilo del contenedor de texto (content-product) */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .excerpt {
    padding: 0 15px; /* Padding a los lados del texto */
}

/* 3. Ajuste de imágenes (para que no tengan padding raro) */
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
    margin-bottom: 10px;
    width: 100%;
    height: auto;
}

/* =================================================================
   ESTILOS DE TIPOGRAFÍA Y ETIQUETAS
   ================================================================= */

/* 4. Título del Producto (LGL, MO1, BS, DUO) */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px; /* Tamaño de fuente grande */
    font-weight: bold;
    text-transform: uppercase;
    color: #DB3C1B;
    margin-bottom: 5px;
}

.woocommerce-product-details__short-description p {
    font-size:12px;
    color: #000;
    padding:0px 15px;
}
/* 5. Descripción Corta */
.woocommerce ul.products li.product .excerpt {
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
}
.button product_type_simple add_to_cart_button ajax_add_to_cart {
    margin-top: 0px;
}
/* 6. Precio */
.woocommerce ul.products li.product .price {
    font-size: 1.2em;
    font-weight: bold;
    color: #000; /* Color oscuro para el precio */
    margin-bottom: 15px; /* Separación del fondo de la caja */
}
/* =================================================================
   ESTILOS DE CATEGORÍAS (BADGES)
   ================================================================= */

/* Estilo base de cada categoría (badge) */
.product-badges {
    display: block;
    padding: 10px 15px 5px; 
    
}
.product-badges span {
    display: inline-block;
    font-size: 8px;
    font-weight: bold;
    padding: 3px 8px;
    margin-right: 5px;
    text-transform: uppercase;
    color: white; /* Por defecto, texto blanco */
    border-radius: 5px;
    
}

/* 1. ESTILO PARA EL PRIMER BADGE (e.g., LUNCHERA, MOCHILA) */
.product-badges .badge-pos-1 {
    background-color: #cc3300; /* Naranja/Rojo */
    color: #fdd835;
}

/* 2. ESTILO PARA EL SEGUNDO BADGE (e.g., CLÁSICO) */
.product-badges .badge-pos-2 {
    background-color: #fdd835; /* Amarillo */
    color: #cc3300; /* Texto negro para contraste en fondo claro */
}

/* Estilo de respaldo para la tercera o más categorías (opcional) */
.product-badges .badge-default {
    background-color: #666;
}


/* 🔶 Contenedor de productos con grilla responsiva */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* 🔶 Cada producto: igualar alturas */
ul.products li.product {
    list-style: none;
    background: #fff;
    border-radius: 6px;
    padding: 15px;
 display: flex;
    flex-direction: column;
    height: 100%; /* Esto iguala todas las alturas */
}

/* Imagen centrada */
ul.products li.product img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
/* Eliminar el pseudo-elemento fantasma que genera el hueco */
ul.products::before,
ul.products::after {
    content: none !important;
    display: none !important;
}
/* Quitar clases old WooCommerce */
ul.products li.product.first,
ul.products li.product.last {
    clear: none !important;
}


/* El texto crece sin romper el layout */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-product-details__short-description {
    flex-grow: 1;
}

/* Botón siempre abajo */
ul.products li.product .button {
    margin-top: auto;
}

/* 🔶 Breakpoints responsivos */
@media (max-width: 1200px) {
    ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    ul.products {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Quita color azul y subrayado de las categorías principales */
.sidebar-categories .cat-title {
    text-decoration: none;
    color: #1A1485; /* usa el color original del texto */
	font-weight:bold;
 }

/* Evita el cambio de color en hover */
.sidebar-categories .cat-title:hover {
    text-decoration: none;
    color: inherit;
}

/* Quita el azul a los links de subcategorías */
.sidebar-categories .sub-item {
    text-decoration: none;
    color: inherit;
}

/* Hover de subcategorías (si querés que cambie) */
.sidebar-categories .sub-item:hover {
    color: #000; /* o lo que vos quieras */
    text-decoration: none;
}




#site-footer {
    background: linear-gradient(to bottom, #3f0914, #7c0c0a, #ad1d0a);
    padding: 40px 20px;
    color: white;
    font-size: 14px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
}

.footer-logo-col {
	max-width:80px;
}

.footer-logo {
    width: 60px;
    margin-bottom: 15px;
}

.footer-col p {
    margin: 0 0 15px;
    line-height: 1.4;
}

.footer-col .icon {
    width: 22px;
    vertical-align: middle;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-col {
        margin-bottom: 25px;
    }
    .footer-logo {
        margin: 0 auto 20px;
    }
}

/* ======================================================
   MENÚ HAMBURGUESA — DESKTOP
====================================================== */
.hamburger {
    display: none; /* oculto en desktop */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 10px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #000;
    display: block;
    transition: 0.3s ease;
}

/* ANIMACIÓN AL ABRIR */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ======================================================
   MOBILE
====================================================== */
@media (max-width: 768px) {

    /* Mostrar hamburguesa en móvil */
    .hamburger {
        display: flex;
    }

    /* Menú cerrado por defecto */
    #main-menu {
        display: none;
        position: absolute;
        top: 100px; /* debajo de tu barra superior */
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        border-top: 1px solid #ddd;
        z-index: 9999;
    }

    /* Mostrar menú cuando se abre */
    #main-menu.show {
        display: block;
    }

    /* Ajustar UL del menú */
    .menu-principal-ul {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .menu-principal-ul li a {
        padding: 10px 0;
        display: block;
    }

    /* Evitar menú horizontal en mobile */
    .main-bar-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}



/* ======================================================
   RESPONSIVE TOP BAR — Mobile
====================================================== */

@media (max-width: 768px) {

    /* El contenedor principal en columna */
    .top-bar-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    /* Logo centrado */
    .site-logo {
        width: 100%;
        text-align: center;
    }

    /* Buscador ocupa todo el ancho */
    .header-search {
        width: 100%;
        order: 2;
    }

    .header-search form {
        width: 100%;
    }

    /* Carrito + usuario + idioma */
    .top-right-items {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        order: 3;
        gap: 15px;
    }

    .top-right-items a {
        font-size: 14px;
    }

    /* Ajustar ícono del carrito si queda muy grande */
    .cart-icon {
        font-size: 20px;
    }
}

/* -------------------------------------------------------
   MOBILE HEADER BEAUTY FIXES 😍
   ------------------------------------------------------- */
@media (max-width: 768px) {

    /* ======== Contenedor general ======== */
    .top-bar {
        padding: 10px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        background: #fff;
    }

    /* ======== LOGO ======== */
    .site-logo img {
        max-width: 300px;
        height: auto;
    }

    /* ======== BUSCADOR ======== */
    .header-search {
        width: 100%;
        margin: 0;
    }

    .header-search form {
        display: flex;
        width: 100%;
    }

    .header-search input[type="search"] {
        width: 100%;
        border: 1px solid #ddd;
        border-radius: 6px 0 0 6px;
        padding: 10px;
        font-size: 15px;
    }

    .header-search button {
        background: #ff6a00; /* color termico naranja */
        border-radius: 0 6px 6px 0;
        padding: 0 15px;
        color: #fff;
        font-weight: bold;
        border: none;
    }

    /* ======== CARRITO + USUARIO + IDIOMA ======== */
    .top-right-items {
        display: flex;
        width: 100%;
        justify-content: space-around;
        align-items: center;
        gap: 15px;
        padding: 0px 0;
    }

    .top-right-items > * {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 14px;
    }

    /* Ajustar íconos */
    .cart-icon {
        font-size: 18px;
        margin-right: 3px;
    }

    /* ======== MENÚ HAMBURGUESA ======== */
    .hamburger {
        position: absolute;
        top: 15px;
        left: 5px;
        z-index: 9999;
    }

    /* Reducir la barra principal */
    .main-bar {
        padding: 0;
        margin: 0;
    }
}


@media (max-width: 768px) {
    .lang-switcher {
        display: none !important;
    }
}

/* Icono lupa */
.header-search .search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    padding: 5px;
}

/* Ocultar el form por defecto */
.header-search .search-wrapper {
    display: none;
}

/* Mostrar al abrir */
.header-search.open .search-wrapper {
    display: block;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .header-search {
        position: relative;
    }
    .header-search .search-wrapper {
        position: absolute;
        top: 40px;
        right: 0;
        background: white;
        padding: 10px;
        width: 250px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        border-radius: 5px;
    }
    .header-search.open .search-wrapper {
        display: block;
    }
}

.header-search .search-toggle .dashicons {
    color: #333 !important;
    font-size: 22px;
}

.hamburger-menu,
.hamburger-menu span {
    background: #000 !important; /* color de las barritas */
}


@media (max-width: 768px) {
    .header-search {
        margin: 0 !important;
        padding: 0;
    }
}



/* ======= MOBILE HEADER ======= */
@media (max-width: 768px) {

    /* Contenedor de la barra superior en una sola línea */
    .top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        gap: 0px;
    }

    .top-bar-container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        flex-grow: 1;
        flex-shrink: 1;
    }

    /* Logo más pequeño */
    .site-logo img {
        max-width: 250px;
        height: auto;
    }

    /* Íconos a la derecha en línea */
    .top-right-items {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Carrito y usuario más compactos */
    .cart-item a,
    .user-item a {
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    /* OCULTAR idioma en móvil */
    .lang-switcher {
        display: none !important;
    }

    /* ===== LUPA ===== */
    .header-search {
        margin: 0 !important;
        padding: 0;
    }

    .header-search .search-toggle .dashicons {
        color: #000 !important;
        font-size: 20px;
    }

    /* Dropdown del buscador */
    .header-search .search-wrapper {
        position: absolute;
        background: white;
        top: 50px;
        right: 10px;
        padding: 10px;
        width: 250px;
        border-radius: 6px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        display: none;
        z-index: 9999;
    }

    .header-search.open .search-wrapper {
        display: block;
    }

    /* ===== MENÚ HAMBURGUESA ===== */
    #menu-toggle.hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 35px;
        height: 35px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    #menu-toggle.hamburger span {
        width: 100%;
        height: 4px;
        background: #000;
        display: block;
        border-radius: 3px;
    }

    /* Ocultar menú por defecto */
    #main-menu {
        display: none;
    }

    /* Mostrar al abrir */
    #main-menu.active {
        display: block;
        background: #fff;
        padding: 20px;
    }

	.woocommerce ul.products[class*=columns-] li.product, .woocommerce-page ul.products[class*=columns-] li.product {
		width:90%;
		margin: 20px;
	}

}


/* Estilo base (desktop) */
.tf-product-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 4; /* Desktop */
}

/* Tablet */
@media (max-width: 1024px) {
    .tf-product-excerpt {
        -webkit-line-clamp: 3;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .tf-product-excerpt {
        -webkit-line-clamp: 2;
    }
}


/* MOBILE: categorías tipo botones cuadrados */
@media (max-width: 768px) {
    
    .sidebar-categories {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr); /* 3 por fila */
        gap: 12px;
        padding: 10px;
    }

    /* Cada categoría como tile */
    .sidebar-categories .mobile-tile {
        border: 1px solid #e5e5e5;
        border-radius: 10px;
        padding: 15px 5px;
        text-align: center;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 110px;
    }

    /* Ocultar subcategorías en mobile (si querés dejar sólo buttons) */
    .sidebar-categories .subcats {
        display: none !important;
    }

    /* La parte izquierda que tenías (icon + título) ahora centrado */
    .sidebar-categories .mobile-tile .left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sidebar-categories .cat-icon {
        width: 40px;
        height: 40px;
        object-fit: contain;
        margin-bottom: 8px;
    }

    .sidebar-categories .cat-title span {
        font-size: 12px;
        font-weight: 600;
        color: #333;
    }

    /* Ocultar el + en mobile */
    .sidebar-categories .toggle-icon {
        display: none !important;
    }

    /* El enlace ocupa todo el bloque */
    .sidebar-categories .cat-title {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}


/* MOBILE: categorías tipo botones cuadrados */
@media (max-width: 768px) {

    .sidebar-categories {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .sidebar-categories .cat-block {
        background: #fff;
        border-radius: 12px;
        border: 1px solid #e5e5e5;
        padding: 12px 5px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        overflow: hidden;
    }

    /* Ícono */
    .sidebar-categories .cat-icon {
        width: 38px;
        height: 38px;
        object-fit: contain;
        margin-bottom: 5px;
    }

    /* Nombre */
    .sidebar-categories .cat-title span {
        font-size: 12px;
        font-weight: 600;
        color: #333;
        text-align: center;
    }

    /* El enlace ocupa todo */
    .sidebar-categories .cat-title {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        display: flex;
        cursor: pointer;
    }

    /* Ícono + para acordeón */
    .sidebar-categories .toggle-icon {
        display: block !important;
        font-size: 18px;
        font-weight: bold;
        margin-top: 6px;
        color: #444;
        transition: transform 0.25s ease;
    }

    /* Girar + cuando abre */
    .cat-block.open .toggle-icon {
        transform: rotate(45deg);
    }

    /* Acordeón */
    .sidebar-categories .subcats {
        width: 100%;
        grid-column: 1 / -1; /* se expande fuera del cuadrito */
        background: #fafafa;
        border-radius: 8px;
        padding: 0 10px;
        margin-top: 5px;
        
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .sidebar-categories .subcats.open {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .sidebar-categories .sub-item {
        display: block;
        padding: 6px 0;
        font-size: 13px;
        color: #555;
        border-bottom: 1px solid #e5e5e5;
    }

    .sidebar-categories .sub-item:last-child {
        border-bottom: none;
    }
}



@media (max-width: 768px) {

    /* Que la columna de categorías ocupe todo el ancho disponible */
    .sidebar-categories {
        width: 100% !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr); /* ← probamos 2 por fila para que respiren mejor */
        gap: 10px;
        padding: 15px 10px;
        justify-content: center;
    }

    /* Caja de cada categoría */
    .sidebar-categories .cat-block {
        background: #fff;
        border-radius: 12px;
        border: 1px solid #e5e5e5;
        padding: 14px 5px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    /* Icono */
    .sidebar-categories .cat-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
        object-fit: contain;
    }

    /* Texto */
    .sidebar-categories .cat-title span {
        font-size: 14px;
        font-weight: 600;
        color: #333;
    }

    /* Botón */
    .sidebar-categories .cat-title {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Acordeón toggle */
    .sidebar-categories .toggle-icon {
        display: block;
        font-size: 20px;
        margin-top: 6px;
        color: #444;
        transition: transform 0.2s ease;
    }

    /* Rotación cuando abre */
    .cat-block.open .toggle-icon {
        transform: rotate(45deg);
    }

    /* Contenedor subcats animado */
    .sidebar-categories .subcats {
        width: 100%;
        grid-column: 1 / -1;
        background: #fafafa;
        border-radius: 10px;
        margin-top: 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .sidebar-categories .subcats.open {
        padding: 10px;
    }

    .sub-item {
        padding: 8px 0;
        display: block;
        font-size: 14px;
        border-bottom: 1px solid #ddd;
    }

    .sub-item:last-child {
        border-bottom: none;
    }
	.home-layout {
		padding: 5px;
		margin: 5px;
		display:inline;
	}
	.home-layout .home-slider {
		display:none;
	}

.sidebar-categories {
	border:0px;
	}
}



@media (max-width: 767px) {
    /* Oculta la imagen de fondo del slide */
    .n2-ss-slide-background-image {
        display: none !important;
    }
	div#n2-ss-2 .n-uc-mG2k8HLSPV4a-inner > .n2-ss-layer-row-inner {
		width:90%;
	}
	
	    .footer-col {
        margin-bottom: 0px;
    }
	#site-footer {
		padding:0px;
	}
	.footer-logo-col  {
		max-width: 100%;
		margin-top:20px;
	}
}


/* ============================================================
   MENÚ MI CUENTA – ESTILO TERMOFOOD
   Rojo: #ff2e2e | Amarillo: #ffd500 | Negro: #111
   ============================================================ */

/* CONTENEDOR DEL MENÚ */
.woocommerce-MyAccount-navigation {
    width: 240px;
    float: left;
    background: #ffffff;
    padding: 22px;
    border-radius: 16px;
    border: 2px solid #ffd50033; /* Amarillo suave */
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* LISTA */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ITEMS */
.woocommerce-MyAccount-navigation li {
    margin-bottom: 12px;
}

/* LINKS */
.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 13px 15px;
    border-radius: 10px;
    background: #f8f8f8;
    color: #111 !important;
    text-decoration: none !important;
    font-weight: 600;
    border: 1px solid #e2e2e2;
    transition: all 0.25s ease;
}

/* HOVER */
.woocommerce-MyAccount-navigation a:hover {
    background: #ffd500; /* Amarillo */
    border-color: #ffd500;
    color: #111 !important; /* Texto negro */
}

/* ACTIVO */
.woocommerce-MyAccount-navigation .is-active a {
    background: #ff2e2e; /* Rojo TERMOFOOD */
    border-color: #ff2e2e;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(255,46,46,0.35);
}

/* ICONO DE LOGOUT (si querés) */
/*
.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: "⟶ ";
}
*/

/* CONTENIDO */
.woocommerce-MyAccount-content {
 
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    border: 2px solid #ffd50033;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .woocommerce-MyAccount-navigation {
        width: 100%;
        float: none;
        margin-bottom: 25px;
    }

    .woocommerce-MyAccount-content {
        margin-left: 0;
    }
}

/* ====== SIDEBAR (MI CUENTA) ====== */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    width: 260px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 14px 18px;
    border-radius: 10px;
    background: #f8f8f8;
    color: #111;
    font-weight: 600;
    text-decoration: none !important;
    transition: 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #ff3a3a;
    color: #fff !important;
}

/* Hover */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #ffe2e2;
}



/* Contenedor general */
.search-results-wrapper {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Título */
.search-results-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Grid */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Card */
.search-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #eee;
    transition: all .2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

/* Imagen */
.search-card img {
    width: 100%;
    border-radius: 12px;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Títulos */
.search-card h2 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* Extracto */
.search-card p {
    color: #555;
    font-size: 15px;
}

/* Botón */
.search-card a.button {
    display: inline-block;
    margin-top: 12px;
    background: #ff4444;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease;
}

.search-card a.button:hover {
    background: #e63636;
}

/* Responsive */
@media (max-width: 500px) {
    .search-card img {
        height: 150px;
    }
    .search-results-title {
        font-size: 22px;
        text-align: center;
    }
}

.search-card a {
	color: red;
	font-weight: 400;
}

@media (max-width: 1067px) {
	.site-header ul li a {
		font-size: 13px;
		
	}
}

@media (max-width: 1192px) {
	.site-header ul li a {
		font-size: 12px;
		
	}
	.site-header ul {
		gap:25px;
	}
	article {
		padding:20px;
	}
}
@media (max-width: 887px) {
	.site-header ul li a {
		font-size: 11px;
		
	}
	.site-header ul {
		gap:15px;
	}
	.footer-container {
		gap:10px;
	}
}


/* ============================================
   MOBILE: categorías compactas sin subcats
===============================================*/
@media (max-width: 768px) {

    /* Ocultar subcategorías */
    .sidebar-categories .subcats {
        display: none !important;
    }

    /* Ocultar el + */
    .sidebar-categories .toggle-icon {
        display: none !important;
    }

    /* Cada categoría principal = bloque clickeable */
    .sidebar-categories .cat-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        border-bottom: 1px solid #eee;
        text-decoration: none !important;
    }

    .sidebar-categories .cat-title span {
        font-size: 16px;
        font-weight: 600;
        color: #222;
    }

    .sidebar-categories .cat-icon {
        width: 38px;
        height: 38px;
        object-fit: contain;
        margin-right: 10px;
    }
}

@media (max-width: 1120px) {
	.woocommerce-wrap {
		margin-left: 20px;
	}
}