/* ===================================================================
   🌐 ZARPO PARAGUAY — styles.css
   Arquitectura: tokens → reset → layout → componentes → responsive
   Refactorizado: sin duplicados, especificidad controlada, CWV optimizado
   =================================================================== */


/* =========================================================
   🎨 TOKENS DE DISEÑO (Design Tokens)
   Fuente única de verdad para colores, espacios y tipografía
   ========================================================= */
:root {
  /* Colores base */
  --color-primario:       #0a2342;
  --color-acento:         #0A82E6;
  --color-acento-hover:   #076bb5;
  --color-fondo-suave:    #dadada;
  --color-fondo-card:     #ffffff;
  --color-texto:          #333333;
  --color-texto-suave:    #444444;
  --color-borde:          #eeeeee;

  /* Header */
  --menu-height:          90px;
  --offset-menu-top:      0px;

  /* Sombras */
  --sombra-card:          0 0 10px rgba(0,0,0,0.5);
  --sombra-card-hover:    0 20px 40px rgba(0,0,0,0.2);
  --sombra-header:        0 4px 12px rgba(0,0,0,0.15);

  /* Radios */
  --radio-sm:             6px;
  --radio-md:             8px;
  --radio-lg:             12px;
  --radio-xl:             1rem;

  /* Transición global */
  --transicion:           all 0.3s ease;
}


/* =========================================================
   🧱 RESET Y TIPOGRAFÍA BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
.header-unificado,
.header-menu a,
.header-submenu a,
.menu-item-productos > a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
}

/* Transición universal — un solo bloque */
a,
button,
input[type="submit"],
.hover-scale {
  transition: var(--transicion);
}

.hover-scale:hover {
  transform: scale(1.05);
}


/* =========================================================
   🔒 OCULTAR HEADER PREDETERMINADO DE ELEMENTOR
   ========================================================= */
header.site-header {
  display:    none       !important;
  visibility: hidden     !important;
  height:     0          !important;
  width:      0          !important;
  overflow:   hidden     !important;
  position:   absolute   !important;
  top:        -9999px    !important;
}


/* =========================================================
   🔝 PRELOADER
   ========================================================= */
.zarpo-preloader {
  position:        fixed;
  inset:           0;
  background:      #000;
  display:         flex;
  justify-content: center;
  align-items:     center;
  z-index:         99999;
}

.zarpo-preloader .spinner {
  text-align: center;
  position:   relative;
}

.zarpo-preloader .spinner .ring {
  width:            120px;
  height:           120px;
  border:           8px solid rgba(0,140,255,0.2);
  border-top-color: #008cff;
  border-radius:    50%;
  animation:        spin 1s linear infinite;
  margin:           0 auto 20px;
}

.zarpo-preloader .spinner .logo {
  width:     100px;
  opacity:   0.9;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 0.8; }
  50%       { transform: scale(1.1); opacity: 1;   }
}


/* =========================================================
   📦 LAYOUT PRINCIPAL
   ========================================================= */
main {
  display:     flex;
  align-items: flex-start;
  gap:         30px;
  margin-top:  100px;
  padding:     0 40px;
  flex-wrap:   wrap;
}

main section.productos { flex: 1; }

main section.productos h2 {
  font-size:     24px;
  margin-bottom: 20px;
  color:         var(--color-primario);
}


/* =========================================================
   🟥 HEADER UNIFICADO — Sticky + Responsive
   ========================================================= */
header.header-unificado {
  position:        sticky;
  top:             0;
  z-index:         1000;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         15px 30px;
  background-color: var(--color-primario);
  box-shadow:      var(--sombra-header);
}

.header-unificado .header-logo {
  flex:            1;
  display:         flex;
  justify-content: flex-start;
  align-items:     center;
}

.header-unificado .header-logo img {
  max-height: 60px;
  height:     auto;
  width:      auto;
}

.header-unificado .header-logo img:hover {
  transform: scale(1.05);
}

.header-unificado .header-search {
  flex:            1 1 auto;
  max-width:       500px;
  width:           100%;
  display:         flex;
  justify-content: center;
  align-items:     center;
  position:        relative;
}

.header-unificado .header-menu {
  flex:            1;
  display:         flex;
  justify-content: flex-end;
  align-items:     center;
  gap:             3px;
  flex-wrap:       wrap;
}

.header-unificado .header-menu a {
  color:           #fff;
  text-decoration: none;
  font-weight:     400;
  padding:         2px 4px;
  border-radius:   var(--radio-sm);
}

.header-unificado .header-menu a:hover {
  color:     var(--color-acento);
  transform: scale(1.1);
}

/* Submenú */
.header-unificado .menu-item-productos { position: relative; }

.header-unificado .header-submenu {
  display:          none;
  position:         absolute;
  top:              100%;
  left:             0;
  background-color: #112e57;
  padding:          10px;
  border-radius:    var(--radio-md);
  box-shadow:       0 4px 12px rgba(0,0,0,0.3);
  z-index:          10;
}

.header-unificado .menu-item-productos:hover .header-submenu {
  display:        flex;
  flex-direction: column;
}

.header-unificado .header-submenu a {
  color:       #eee;
  padding:     6px 10px;
  white-space: nowrap;
}

.header-unificado .header-submenu a:hover {
  color:            var(--color-acento);
  background-color: #1c3c63;
  transform:        scale(1.1);
}

/* Botón hamburguesa */
.menu-toggle {
  display:    none;
  background: none;
  border:     none;
  font-size:  28px;
  color:      #fff;
  cursor:     pointer;
}

.menu-toggle.rotar {
  transform: rotate(90deg);
  color:     var(--color-acento) !important;
}


/* =========================================================
   📢 BARRA DE ANUNCIO
   ========================================================= */
.header-anuncio {
  background:     linear-gradient(90deg, #0073aa, #0099cc);
  color:          #fff;
  overflow:       hidden;
  padding:        8px 15px;
  font-size:      14px;
  font-weight:    500;
  letter-spacing: 0.3px;
  position:       relative;
  z-index:        10000;
  transition:     transform 0.4s ease, opacity 0.4s ease;
  animation:      slideDown 0.6s ease;
}

.header-anuncio .anuncio-inner {
  display:   flex;
  width:     max-content;
  animation: anuncioLoop 20s linear infinite;
}

.header-anuncio .anuncio-inner span {
  display:       inline-block;
  padding-right: 120px;
  white-space:   nowrap;
}

@keyframes anuncioLoop {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}


/* =========================================================
   📚 ASIDE — MENÚ LATERAL CATEGORÍAS (DESKTOP)
   ========================================================= */
.aside-categorias-producto {
  flex:             0 0 220px;
  width:            25%;
  background-color: var(--color-fondo-card);
  padding:          10px;
  color:            var(--color-primario);
  border-radius:    var(--radio-xl);
  box-shadow:       var(--sombra-card);
}

aside h3 {
  font-size:      20px;
  margin-bottom:  15px;
  color:          var(--color-primario);
  text-transform: uppercase;
  border-bottom:  1px solid var(--color-acento);
  padding-bottom: 8px;
}

aside ul {
  list-style: none;
  padding:    0;
  margin:     0;
}

aside ul > li  { margin-bottom: 8px; }

aside li a {
  text-decoration:  none;
  color:            var(--color-primario);
  font-size:        16px;
  display:          block;
  padding:          6px 12px;
  border-radius:    var(--radio-md);
  font-weight:      500;
  background-color: transparent;
}

aside li a:hover {
  background-color: var(--color-acento);
  color:            #fff;
  transform:        scale(1.03);
}

aside ul.children {
  margin-left:  10px;
  padding-left: 10px;
  border-left:  2px solid var(--color-acento);
  display:      none;
}

aside ul.children li a { font-size: 15px; }

aside ul > li:hover > ul.children { display: block; }


/* =========================================================
   🧭 ASIDE OFF-CANVAS (MOBILE)
   ========================================================= */
.categorias-offcanvas {
  position:   fixed;
  top:        0;
  left:       -100%;
  width:      280px;
  height:     100vh;
  background-color: var(--color-primario);
  z-index:    9999;
  padding:    20px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  overflow-y: auto;
  transition: left 0.3s ease-in-out;
}

.categorias-offcanvas.abierto { left: 0; }

.categorias-offcanvas ul { list-style: none; padding: 0; margin: 0; }
.categorias-offcanvas li { margin-bottom: 14px; }

.categorias-offcanvas a {
  color:           #fff;
  text-decoration: none;
  font-size:       16px;
  display:         block;
  padding:         8px 12px;
  border-radius:   var(--radio-md);
}

.categorias-offcanvas a:hover { background-color: var(--color-acento); }

.boton-toggle-categorias {
  position:         fixed;
  bottom:           20px;
  left:             20px;
  z-index:          10000;
  background-color: var(--color-acento);
  color:            #fff;
  border:           none;
  padding:          12px 16px;
  border-radius:    50px;
  font-size:        16px;
  font-weight:      600;
  cursor:           pointer;
  box-shadow:       0 0 12px rgba(0,0,0,0.2);
}

.boton-toggle-categorias:hover { background-color: #095bbf; }

.overlay-categorias {
  position:         fixed;
  top:              0;
  left:             0;
  width:            100vw;
  height:           100vh;
  background-color: rgba(0,0,0,0.4);
  z-index:          9998;
  display:          none;
}

.overlay-categorias.visible { display: block; }


/* =========================================================
   🛍️ GRID DE PRODUCTOS EN CATEGORÍAS
   ========================================================= */
ul.grid-productos-ajustables {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 2fr));
  gap:                   10px;
  list-style:            none;
  padding:               0;
  margin:                0;
}

.grid-productos-ajustables li {
  background:    var(--color-fondo-card);
  padding:       15px;
  border-radius: var(--radio-md);
}

.grid-productos-ajustables li:hover {
  transform:  translateY(-3px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.grid-productos-ajustables .woocommerce-loop-product__title,
.grid-productos-ajustables .price,
.grid-productos-ajustables a {
  color:           var(--color-primario);
  font-weight:     500;
  text-decoration: none;
}


/* =========================================================
   🛒 TARJETAS DE PRODUCTO WOOCOMMERCE — Listados unificados
   ========================================================= */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display:         flex;
  justify-content: center;
  gap:             2rem;
  padding:         1rem;
  flex-wrap:       wrap;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  flex:           1 1 250px;
  max-width:      300px;
  background:     var(--color-fondo-card);
  border-radius:  var(--radio-xl) !important;
  overflow:       hidden;
  box-shadow:     var(--sombra-card);
  display:        flex;
  flex-direction: column;
  margin-bottom:  30px !important;
  padding:        15px;
  border:         1px solid var(--color-borde);
}

.woocommerce ul.products li.product:hover {
  transform:  translateY(-8px);
  box-shadow: var(--sombra-card-hover);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
  border-radius: 14px;
  overflow:      hidden;
  display:       block;
}

.woocommerce ul.products li.product img {
  width:         100%;
  height:        auto;
  object-fit:    cover;
  border-radius: 14px;
}

.woocommerce ul.products li.product:hover img { transform: scale(1.05); }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem;
  color:     var(--color-primario);
  padding:   1rem 1rem 0.5rem;
}

.woocommerce ul.products li.product .price {
  padding:     0 1rem 1rem;
  color:       var(--color-acento);
  font-weight: bold;
}

.woocommerce ul.products li.product .button {
  background-color: var(--color-acento);
  color:            #fff;
  margin:           0 1rem 1rem;
  padding:          0.5rem 1.2rem;
  text-align:       center;
  border-radius:    var(--radio-md);
}

.woocommerce ul.products li.product .button:hover {
  background-color: var(--color-acento-hover);
  cursor:           pointer;
}


/* =========================================================
   🛒 BOTONES — Consultar y Volver (unificados)
   ========================================================= */
ul.grid-productos-ajustables .button.product_type_external,
div.volver-contenedor button {
  background-color: var(--color-primario);
  color:            #fff;
  font-size:        14px;
  font-weight:      500;
  padding:          10px 20px;
  border:           none;
  border-radius:    var(--radio-md);
  text-transform:   uppercase;
  display:          inline-block;
  text-align:       center;
  cursor:           pointer;
  margin-top:       10px;
  text-decoration:  none;
}

ul.grid-productos-ajustables .button.product_type_external:hover,
div.volver-contenedor button:hover {
  background-color: var(--color-acento);
  transform:        scale(1.03);
}

/* EAEL — hover reveal botón consultar */
.eael-product-wrap a.button.product_type_external {
  opacity:        0;
  pointer-events: none;
  transform:      translateY(10px);
}

.eael-product-wrap:hover a.button.product_type_external {
  opacity:        1;
  pointer-events: auto;
  transform:      translateY(0);
}


/* =========================================================
   🧩 SINGLE PRODUCT — Producto individual
   ========================================================= */
body.single-product,
.archive.search {
  background-color: var(--color-fondo-suave);
}

.layout-producto-individual {
  display:   flex;
  gap:       40px;
  margin:    40px auto;
  max-width: 95%;
  padding:   20px 0;
  flex-wrap: nowrap;
}

.zona-producto-individual {
  flex:          1;
  background:    var(--color-fondo-card);
  padding:       24px;
  border-radius: var(--radio-xl);
  box-shadow:    var(--sombra-card);
}

.producto-img-principal img {
  width:         100%;
  height:        auto;
  display:       block;
  border-radius: var(--radio-lg);
}

/* CLS — reservar espacio para galería y summary */
body.single-product .woocommerce-product-gallery { min-height: 420px; }
body.single-product div.summary.entry-summary    { min-height: 420px; }

/* Galería — protección contra LiteSpeed CSS combine */
body.single-product .woocommerce-product-gallery__image img {
  width:         auto !important;
  max-width:     100%;
  height:        auto !important;
  object-fit:    contain;
  border-radius: var(--radio-lg);
}

body.single-product .flex-control-thumbs img {
  width:         100%  !important;
  height:        80px  !important;
  object-fit:    cover !important;
  border-radius: var(--radio-sm);
}

/* Detalles */
.producto-detalles {
  display:        flex;
  flex-direction: column;
  gap:            18px;
}

.producto-detalles h1       { font-size: 28px; font-weight: 700; color: var(--color-primario); }
.producto-detalles .precio  { font-size: 22px; font-weight: 600; color: var(--color-acento); }
.producto-detalles .descripcion { font-size: 16px; line-height: 1.6; color: var(--color-texto-suave); }

body.single-product .product_title {
  font-size:  2rem;
  text-align: center;
  color:      var(--color-primario);
  margin-top: 10px;
}

body.single-product .woocommerce-Price-amount {
  font-size:  1.8em;
  color:      var(--color-acento);
  display:    block;
  text-align: center;
  margin:     15px 0;
}

body.single-product .woocommerce-product-details__short-description {
  background:    var(--color-fondo-card);
  color:         var(--color-primario);
  padding:       20px;
  border-radius: var(--radio-md);
  margin:        20px 0;
}

body.single-product .cart {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  margin-top:     20px;
}

.woocommerce div.product form.cart .single_add_to_cart_button.button.alt {
  background-color: var(--color-acento)   !important;
  color:            #fff                  !important;
  font-weight:      bold;
  padding:          12px 24px;
  border-radius:    var(--radio-md);
  box-shadow:       0 4px 10px rgba(0,0,0,0.1);
}

.woocommerce div.product form.cart .single_add_to_cart_button.button.alt:hover {
  background-color: var(--color-primario) !important;
}

/* Mensajes WooCommerce */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding:          1rem 1.5rem;
  margin:           2rem auto;
  border-left:      4px solid var(--color-acento);
  background-color: #f1f9ff;
  color:            var(--color-primario);
  border-radius:    var(--radio-md);
  max-width:        900px;
}


/* =========================================================
   🧩 PESTAÑAS — Single Product
   ========================================================= */
body.single-product .woocommerce-tabs {
  margin-top:    40px;
  background:    var(--color-fondo-card);
  border-radius: var(--radio-lg);
  box-shadow:    0 4px 12px rgba(0,0,0,0.08);
  overflow:      hidden;
}

body.single-product .woocommerce-tabs.wc-tabs-wrapper { min-height: 320px; }

body.single-product .woocommerce-tabs .wc-tabs {
  display:          flex;
  justify-content:  center;
  border-bottom:    2px solid #e0e0e0;
  background-color: #f8f8f8;
  margin:           0;
  padding:          0;
  list-style:       none;
}

body.single-product .woocommerce-tabs .wc-tabs li a {
  display:         block;
  padding:         14px 28px;
  font-size:       15px;
  font-weight:     600;
  color:           var(--color-primario);
  text-decoration: none;
  border-bottom:   3px solid transparent;
}

body.single-product .woocommerce-tabs .wc-tabs li.active a,
body.single-product .woocommerce-tabs .wc-tabs li a:hover {
  color:               var(--color-acento);
  border-bottom-color: var(--color-acento);
}

body.single-product .woocommerce-Tabs-panel {
  padding:     30px;
  color:       var(--color-texto);
  font-size:   15px;
  line-height: 1.7;
  background:  var(--color-fondo-card);
}

body.single-product .woocommerce-Tabs-panel h1 { margin: 0 10px 0 15px; }

body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-Tabs-panel h3 {
  color:         var(--color-primario);
  margin:        20px 20px 10px;
  font-weight:   700;
}

body.single-product .woocommerce-Tabs-panel p   { margin: 0 30px 12px; }
body.single-product .woocommerce-Tabs-panel ul  { list-style: disc; margin: 0 20px 15px; }
body.single-product .woocommerce-Tabs-panel a   { color: var(--color-acento); text-decoration: underline; }


/* =========================================================
   🟩 CATEGORÍA DE PRODUCTO (taxonomy-product_cat.php)
   ========================================================= */
body.tax-product_cat { background-color: var(--color-fondo-suave); }

.product-category {
  flex:          1;
  max-width:     80%;
  background:    var(--color-fondo-card);
  padding:       24px;
  border-radius: var(--radio-xl);
  box-shadow:    var(--sombra-card);
}

.product-category h1.page-title {
  font-weight:   700;
  color:         var(--color-primario);
  text-align:    left;
  margin-bottom: 20px;
}

.product-category .term-description { font-size: 1px; }


/* =========================================================
   📁 PESTAÑAS EAEL
   ========================================================= */
.eael-cat-tab .post-list-filter-item {
  background-color: var(--color-fondo-card) !important;
  color:            #333                    !important;
  padding:          10px 15px;
  border-radius:    var(--radio-md);
  margin:           5px;
  display:          inline-block;
  text-decoration:  none;
}

.eael-cat-tab .post-list-filter-item:hover {
  background-color: var(--color-acento)   !important;
  color:            var(--color-primario) !important;
}

.eael-cat-tab .post-list-filter-item.active {
  background-color: var(--color-primario) !important;
  color:            #fff                  !important;
}


/* =========================================================
   🔍 BUSCADOR AJAX
   ========================================================= */
#zarpo-search-results {
  position:      absolute;
  top:           100%;
  left:          50%;
  transform:     translateX(-50%);
  width:         min(640px, 100%);
  max-height:    50vh;
  overflow-y:    auto;
  background:    var(--color-fondo-card);
  border:        1px solid #ddd;
  border-radius: 10px;
  box-shadow:    0 6px 20px rgba(0,0,0,0.12);
  z-index:       9999;
  display:       none;
  visibility:    hidden;
  opacity:       0;
}

#zarpo-search-results:empty  { display: none !important; }
#zarpo-search-results.active { display: block; visibility: visible; opacity: 1; }

#zarpo-search-results::-webkit-scrollbar       { width: 6px; }
#zarpo-search-results::-webkit-scrollbar-track { background: #f9f9f9; border-radius: 10px; }
#zarpo-search-results::-webkit-scrollbar-thumb { background: #bbb; border-radius: 10px; }
#zarpo-search-results::-webkit-scrollbar-thumb:hover { background: var(--color-primario); }

.zarpo-search-list { list-style: none; margin: 0; padding: 0; }

.search-result-item               { border-bottom: 1px solid var(--color-borde); }
.search-result-item:last-child    { border-bottom: none; }
.search-result-item:hover         { background: #f7fbff; }

.search-result-item > a {
  display:         flex;
  align-items:     center;
  gap:             14px;
  padding:         14px 16px;
  text-decoration: none;
}

.search-result-item:hover > a { transform: translateX(2px); }

.result-thumb {
  width:         60px !important;
  height:        60px !important;
  border-radius: var(--radio-md);
  object-fit:    cover;
  flex-shrink:   0;
  box-shadow:    0 2px 6px rgba(0,0,0,0.08);
  border:        1px solid #e0e0e0;
}

.result-title {
  font-size:   14px;
  color:       var(--color-primario);
  font-weight: 500;
  flex:        1;
  line-height: 1.4;
}

.search-result-item:hover .result-title { color: var(--color-acento); }

.result-price {
  font-size:   15px;
  font-weight: 600;
  color:       #0073aa;
  white-space: nowrap;
  margin-left: auto;
}

.result-price del { color: #999; font-size: 12px; margin-right: 4px; }
.result-price ins { text-decoration: none; color: #e74c3c; }

.no-results {
  padding:    30px 20px;
  text-align: center;
  color:      #666;
  font-size:  14px;
  font-style: italic;
}

.search-view-all {
  display:         block;
  width:           100%;
  padding:         14px;
  margin:          0;
  background:      var(--color-primario);
  color:           #fff;
  font-size:       14px;
  font-weight:     600;
  text-align:      center;
  text-decoration: none;
  border:          none;
  border-radius:   0 0 10px 10px;
  cursor:          pointer;
}

.search-view-all:hover { background: var(--color-acento); }


/* =========================================================
   💀 SKELETON LOADER
   ========================================================= */
.skeleton-container { padding: 10px 16px; }

.skeleton-item {
  display:       flex;
  align-items:   center;
  gap:           14px;
  margin-bottom: 14px;
}

.skeleton-item:last-child { margin-bottom: 0; }

.skeleton-item::before {
  content:         '';
  width:           60px;
  height:          60px;
  border-radius:   var(--radio-md);
  flex-shrink:     0;
  background:      linear-gradient(90deg, #e6e9ee 0%, #d0d4db 50%, #e6e9ee 100%);
  background-size: 200% 100%;
  animation:       skeleton-loading 1.4s ease-in-out infinite;
}

.skeleton-item::after {
  content:         '';
  flex:            1;
  height:          14px;
  border-radius:   4px;
  background:      linear-gradient(90deg, #e6e9ee 0%, #d0d4db 50%, #e6e9ee 100%);
  background-size: 200% 100%;
  animation:       skeleton-loading 1.4s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* =========================================================
   🌀 ANIMACIONES GLOBALES
   ========================================================= */
@keyframes fadeIn    { to { opacity: 1; } }
@keyframes slideInLeft { to { transform: translateX(0); opacity: 1; } }
@keyframes slideUp     { to { transform: translateY(0); opacity: 1; } }

.fade-in      { opacity: 0; animation: fadeIn 0.6s ease forwards; }
.slide-in-left { transform: translateX(-30px); opacity: 0; animation: slideInLeft 0.5s ease-out forwards; }
.slide-up      { transform: translateY(20px);  opacity: 0; animation: slideUp 0.6s ease-out forwards; }


/* =========================================================
   📱 RESPONSIVE
   ========================================================= */

/* ── 1025px+: Desktop — aside visible, off-canvas oculto ── */
@media (min-width: 1025px) {
  .aside-categorias-producto {
    display:        block   !important;
    visibility:     visible;
    opacity:        1;
    position:       static;
    pointer-events: auto;
  }

  .categorias-offcanvas,
  .boton-toggle-categorias,
  .overlay-categorias {
    display: none !important;
  }
}

/* ── 1024px: Tablet / Mobile ── */
@media (max-width: 1024px) {
  body.single-product aside.aside-categorias-producto,
  body.archive.tax-product_cat aside.aside-categorias-producto {
    display:        none      !important;
    visibility:     hidden    !important;
    position:       absolute  !important;
    height:         0         !important;
    width:          0         !important;
    overflow:       hidden    !important;
    pointer-events: none      !important;
    opacity:        0         !important;
  }

  .layout-producto-individual { flex-direction: column; gap: 0; }
  .zona-producto-individual   { width: 100%; padding: 16px; }
  .producto-img-principal     { max-width: 100%; margin-bottom: 16px; }

  .producto-detalles h1    { font-size: 24px; }
  .producto-detalles .precio { font-size: 20px; }

  body.single-product .woocommerce-tabs.wc-tabs-wrapper { min-height: 360px; }
  body.single-product div.summary.entry-summary         { min-height: 520px; }

  #zarpo-search-results { top: calc(100% + 5px); width: 95%; max-height: 50vh; }
  .search-result-item > a { padding: 12px; gap: 10px; }
  .result-thumb  { width: 50px !important; height: 50px !important; }
  .result-title  { font-size: 13px; }
  .result-price  { font-size: 13px; }
}

/* ── 767px: Mobile estricto ── */
@media (max-width: 767px) {
  .menu-toggle {
    display:         flex    !important;
    align-items:     center;
    justify-content: center;
    background:      none;
    border:          none;
    color:           #fff   !important;
    font-size:       28px;
    cursor:          pointer;
    padding:         8px;
  }

  .menu-toggle:hover,
  .menu-toggle:focus,
  .menu-toggle:active { color: var(--color-acento) !important; }

  .header-unificado .header-menu {
    display:          none;
    flex-direction:   column;
    gap:              14px;
    background-color: var(--color-primario);
    position:         absolute;
    top:              100%;
    left:             0;
    width:            100%;
    padding:          20px;
    z-index:          1000;
  }

  .header-unificado .header-menu.menu-activo { display: flex !important; }

  .header-unificado .menu-item-productos:hover .header-submenu,
  .header-unificado .header-submenu {
    position:         static;
    box-shadow:       none;
    background-color: #112e57;
    margin-top:       10px;
  }

  .header-unificado .header-search {
    max-width:  100%;
    order:      3;
    margin-top: 10px;
  }

  .product-category ul.products  { grid-template-columns: 1fr; }
  .product-category h1.page-title { font-size: 1.5rem; }

  #zarpo-search-results { max-height: 45vh; }
  .search-result-item > a { padding: 10px; gap: 8px; }
  .result-thumb  { width: 45px !important; height: 45px !important; }
  .result-title  { font-size: 12px; }
  .result-price  { font-size: 12px; }
  .no-results    { font-size: 12px; padding: 20px; }

  .woocommerce-product-gallery__image,
  .producto-img-principal {
    aspect-ratio: 1 / 1;
    overflow:     hidden;
  }
}
