:root {
  --green-dark: #566B48;
  --green-darkest: #384A2C;
  --gray-green: #C9CDB9;
  --gray-dark: #5F6459;
  --beige-suave: #F2EEE2;
  --cream: #F5EFD9;
  --ok: #4F7A3A;
  --ok-suave: #E9F1E3;
  --aviso: #C4762A;
  --aviso-suave: #FBF0E2;
  --mal: #B3423A;
  --mal-suave: #FBEAE8;
  --borde: #E3DFCF;
  --sombra: 0 2px 10px rgba(56, 74, 44, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  /* Montserrat, la letra redondeada de la tienda vieja de Tiendanube: la dueña la quiere igual. */
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--beige-suave);
  color: var(--green-darkest);
  min-height: 100vh;
  /* El carrusel de banners se sale del ancho del contenido a propósito (ver .eb-hero); sin esto,
     100vw de ese truco cuenta el ancho de la barra de scroll y deja un pelo de scroll horizontal. */
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ---------- Tira de promo ---------- */
.eb-promo {
  background: var(--green-dark); color: #fff; text-align: center; font-size: 0.8rem; font-weight: 600;
  padding: 8px 16px; letter-spacing: 0.01em;
}
/* «Se desliza al costado»: el texto entra por la derecha y sale por la izquierda, como un cartel de
   noticias. El padding del 100% lo hace arrancar fuera de la pantalla, y el -100% del final cuenta
   el ancho del propio texto más ese padding, así termina de salir del todo antes de volver a
   empezar. Una sola línea siempre: si el texto no entra, que corra, no que salte de renglón. */
.eb-promo.desliza { text-align: left; overflow: hidden; white-space: nowrap; }
.eb-promo.desliza .eb-promo-texto {
  display: inline-block; padding-left: 100%; animation: eb-promo-desliza 14s linear infinite;
}
@keyframes eb-promo-desliza { from { transform: translateX(0); } to { transform: translateX(-100%); } }
/* A quien tiene pedido en su sistema «menos movimiento» (mareos, migrañas), no se le mueve nada:
   ve la tira quieta y centrada. */
@media (prefers-reduced-motion: reduce) {
  .eb-promo.desliza { text-align: center; white-space: normal; }
  .eb-promo.desliza .eb-promo-texto { animation: none; padding-left: 0; }
}

/* ---------- Encabezado ---------- */
/* Negro con la misma decoración de hojitas de yerba que gestion-negocio usa en su propia barra
   superior (mismo archivo mate-deco.svg, misma técnica): overlay de baja opacidad, nunca tapa el
   contenido porque tiene pointer-events desactivado. */
.eb-header {
  background: #000;
  color: #fff;
  position: sticky; top: 0; z-index: 20;
  box-shadow: var(--sombra);
}
.eb-header-top {
  max-width: 1200px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative;
}
.eb-header-deco {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background-image: url('/mate-deco.svg');
  background-repeat: repeat-x;
  background-size: auto 420%;
  background-position: left -30px top -10px;
  opacity: 0.14;
}
.eb-logo { display: flex; align-items: center; cursor: pointer; flex-shrink: 0; position: relative; z-index: 1; }
.eb-logo img { height: 46px; width: auto; }
.eb-buscador {
  flex: 1; max-width: 480px; display: flex; background: #fff; border-radius: 10px; overflow: hidden;
  position: relative; z-index: 1;
}
.eb-buscador input {
  flex: 1; border: none; padding: 10px 14px; font-size: 0.88rem; color: var(--green-darkest); min-width: 0;
}
.eb-buscador input:focus { outline: none; }
.eb-buscador button {
  background: var(--green-dark); border: none; color: #fff; width: 42px; display: flex;
  align-items: center; justify-content: center;
}
.eb-header-acciones { display: flex; align-items: center; gap: 18px; flex-shrink: 0; position: relative; z-index: 1; }
.eb-accion {
  background: none; border: none; color: #fff; display: flex; flex-direction: column;
  align-items: center; gap: 2px; font-size: 0.72rem; font-weight: 600; position: relative;
  text-decoration: none; padding: 0;
}
.eb-carrito-badge {
  position: absolute; top: -4px; right: -10px; background: var(--aviso); color: #fff;
  border-radius: 999px; min-width: 16px; height: 16px; font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ---------- Menú (Inicio / Categorías / Blog / las páginas propias) ---------- */
/* Una banda verde de punta a punta, en mayúsculas y con el mismo espacio entre cada entrada, como
   la de las tiendas que la dueña tomó de referencia. Las entradas no se parten en dos renglones:
   si no entran (en el celular), la banda se corre de costado. */
.eb-nav-secundaria { background: var(--green-dark); }
.eb-nav-interior {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: center; gap: 34px;
  overflow-x: auto; scrollbar-width: none;
}
.eb-nav-interior::-webkit-scrollbar { display: none; }
.eb-nav-grupo { display: contents; }
.eb-nav-link {
  background: none; border: none; color: #fff; font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 13px 0; display: flex; align-items: center; gap: 2px; white-space: nowrap; text-decoration: none;
  border-bottom: 2px solid transparent; flex-shrink: 0;
}
.eb-nav-link:hover { border-bottom-color: #fff; }
/* La fecha especial vigente en el menú: resaltada, como un botón, para que se vea de una. */
/* El color lo elige la dueña para cada fecha (--fecha-color, ver estiloDeFecha); sin elegir, rojo. */
.eb-nav-especial { display: inline-flex; align-items: center; gap: 4px; background: var(--fecha-color, #B3423A); color: #fff; border-radius: 999px; padding: 5px 13px; border-bottom: 0; }
.eb-nav-especial:hover { filter: brightness(0.9); border-bottom: 0; }
.eb-nav-especial .material-symbols-outlined { font-size: 18px; }
/* Centrada, como los demás títulos de sección: el nombre, la frase y el «Ver todo» abajo. */
.eb-especial-cabeza { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; margin-bottom: 16px; }
.eb-especial-cabeza .eb-seccion-titulo { margin-bottom: 6px; }
.eb-especial-texto { margin: 0 0 4px; color: #5F6459; }
.eb-especial-ver { color: var(--fecha-color, #B3423A); font-weight: 600; text-decoration: none; white-space: nowrap; }
/* La sección y la página de la fecha llevan su color en el título, con una rayita debajo. */
.eb-especial .eb-seccion-titulo, .eb-especial .eb-titulo { color: var(--fecha-color, #1d2418); }
.eb-especial .eb-seccion-titulo::after, .eb-especial .eb-titulo::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; margin: 8px auto 0; background: var(--fecha-color, #B3423A);
}
.eb-especial-ver:hover { text-decoration: underline; }
.eb-nav-dropdown { position: relative; }
.eb-nav-dropdown-panel {
  position: fixed; top: 0; left: 8px; background: #fff; color: var(--green-darkest);
  border-radius: 0 0 12px 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.18); min-width: 260px;
  max-width: calc(100vw - 16px); max-height: 70vh; overflow-y: auto; padding: 14px; z-index: 30;
}
.eb-nav-dropdown-item {
  display: block; padding: 9px 12px; border-radius: 6px; font-size: 0.85rem; text-decoration: none; color: inherit;
}
.eb-nav-dropdown-item:hover, .eb-nav-dropdown-item.activo { background: var(--beige-suave); }
.eb-mega-menu { display: flex; flex-wrap: wrap; gap: 24px; }
.eb-mega-columna { display: flex; flex-direction: column; min-width: 150px; }
.eb-mega-titulo {
  font-weight: 700; font-size: 0.85rem; text-decoration: none; color: var(--green-darkest);
  padding: 6px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.02em;
}
.eb-mega-titulo:hover, .eb-mega-titulo.activo { background: var(--beige-suave); }
.eb-mega-item {
  font-size: 0.83rem; text-decoration: none; color: var(--gray-dark); padding: 5px 8px 5px 14px; border-radius: 6px;
}
.eb-mega-item:hover, .eb-mega-item.activo { background: var(--beige-suave); color: var(--green-darkest); }

/* ---------- Contenedor general ---------- */
.eb-main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
/* Los títulos de página van al medio, como los de las secciones del inicio. */
.eb-titulo { font-size: 1.6rem; font-weight: 800; text-align: center; margin: 4px 0 18px; color: #1d2418; }

/* ---------- Carrusel de banners (home) ---------- */
/* Se sale del ancho del contenido a propósito: un banner de punta a punta de la pantalla, no una
   caja de adentro de la columna de 1200px. El truco es ancho de la ventana + margen negativo hasta
   el borde; por eso no lleva ni el radio ni la sombra de una tarjeta. */
.eb-hero {
  position: relative; overflow: hidden; margin-bottom: 28px; background: var(--beige-suave);
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.eb-hero-slides { display: flex; transition: transform 0.4s ease; }
/* El banner va con su propia proporción, sin recortar. Con un alto fijo (antes 7:2) y object-fit:
   cover, cualquier diseño que no midiera justo eso perdía arriba y abajo el logo y las letras, que
   en un banner hecho en Canva llegan casi hasta el borde. Si hay banners de distinto alto, el
   carrusel toma el del más alto y los otros quedan centrados sobre el fondo. */
.eb-hero-slides { align-items: center; }
.eb-hero-slide { position: relative; flex: 0 0 100%; }
.eb-hero-slide.eb-clicable { cursor: pointer; }
.eb-hero-slide picture, .eb-hero-slide img { width: 100%; height: auto; }
.eb-hero-slide img { display: block; }
.eb-hero-titulo {
  position: absolute; left: 24px; bottom: 22px; color: #fff; font-size: 1.3rem; font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55); max-width: 70%;
}
.eb-hero-flecha {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: #fff;
  border: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; cursor: pointer;
}
.eb-hero-flecha.izq { left: 12px; }
.eb-hero-flecha.der { right: 12px; }
.eb-hero-puntos { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.eb-hero-punto {
  width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.55); padding: 0; cursor: pointer;
}
.eb-hero-punto.activo { background: #fff; }

/* ---------- Banners de categorías ---------- */
.eb-seccion { margin-bottom: 44px; }
/* Los títulos de sección van al medio y grandes, como «Nuestros Destacados» en Tiendanube. */
.eb-seccion-titulo { font-size: 1.7rem; font-weight: 800; text-align: center; margin: 0 0 20px; color: #1d2418; }
.eb-banners-categoria { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.eb-banner-categoria {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; cursor: pointer;
  box-shadow: var(--sombra);
}
.eb-banner-categoria picture, .eb-banner-categoria img { width: 100%; height: 100%; }
.eb-banner-categoria img { object-fit: cover; display: block; }
.eb-banner-categoria-nombre {
  position: absolute; inset: auto 0 0 0; padding: 20px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: #fff; font-weight: 700; font-size: 0.95rem;
}

/* ---------- Fila de productos (ofertas / destacados / más vendidos) ---------- */
.eb-fila-envoltura { position: relative; }
.eb-fila-productos {
  display: flex; gap: 20px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.eb-fila-productos::-webkit-scrollbar { display: none; }
.eb-fila-productos .eb-tarjeta { flex: 0 0 265px; scroll-snap-align: start; }
.eb-fila-flecha {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px;
  border-radius: 50%; border: 2px solid #1d2418; background: #fff; color: #1d2418;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sombra);
}
.eb-fila-flecha.izq { left: -22px; }
.eb-fila-flecha.der { right: -22px; }
.eb-fila-flecha:hover { background: #1d2418; color: #fff; }
.eb-fila-envoltura.entra-entera .eb-fila-flecha { display: none; }
.eb-fila-envoltura.entra-entera .eb-fila-productos { justify-content: center; }

/* ---------- WhatsApp ---------- */
.eb-whatsapp-flotante {
  position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25); z-index: 25; text-decoration: none;
  transition: transform 0.15s ease;
}
.eb-whatsapp-flotante:hover { transform: scale(1.08); }
.eb-whatsapp-flotante .eb-icono-wa { width: 32px; height: 32px; }
.eb-icono-wa { width: 22px; height: 22px; flex-shrink: 0; }
.eb-consulta-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px;
  color: var(--green-dark); font-weight: 600; font-size: 0.85rem; text-decoration: none;
  border: 1px solid var(--green-dark); border-radius: 10px; padding: 10px;
}

/* ---------- Datos de transferencia ---------- */
.eb-datos-transferencia {
  background: var(--cream); border-radius: 12px; padding: 14px 16px; margin: 16px 0; text-align: left;
}
.eb-vacio {
  text-align: center; padding: 60px 20px; color: var(--gray-dark);
}
.eb-vacio .material-symbols-outlined { font-size: 48px; color: var(--gray-green); }

/* ---------- Filtros y orden ---------- */
.eb-filtros {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.eb-filtros-colores { display: flex; gap: 8px; flex-wrap: wrap; }
.eb-chip-color {
  border: 1px solid var(--gray-green); background: #fff; color: var(--green-darkest);
  border-radius: 999px; padding: 6px 13px; font-size: 0.8rem;
}
.eb-chip-color.activo { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.eb-orden-select {
  border: 1px solid var(--gray-green); border-radius: 8px; padding: 8px 10px; font-size: 0.83rem;
  background: #fff; color: var(--green-darkest);
}

/* ---------- Grilla de productos ---------- */
/* ---------- Tarjeta de producto ---------- */
/* Fotos más grandes y un poco más altas que anchas, como en Tiendanube: el producto se ve antes que
   el texto. Al pasar el mouse la foto se acerca un poco, para que se note cuál está marcada. */
.eb-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.eb-tarjeta {
  background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--sombra);
  display: flex; flex-direction: column; cursor: pointer; border: 1px solid var(--borde);
  transition: box-shadow 0.2s ease;
}
.eb-tarjeta:hover { box-shadow: 0 10px 28px rgba(29, 36, 24, 0.16); }
.eb-tarjeta-foto { position: relative; aspect-ratio: 4 / 5; background: var(--beige-suave); overflow: hidden; }
.eb-tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.eb-tarjeta:hover .eb-tarjeta-foto img { transform: scale(1.07); }
@media (prefers-reduced-motion: reduce) { .eb-tarjeta:hover .eb-tarjeta-foto img { transform: none; } }
.eb-tarjeta-cuerpo {
  padding: 14px 14px 16px; display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1;
  text-align: center; border-top: 3px solid #1d2418;
}
.eb-tarjeta-nombre { font-size: 0.92rem; font-weight: 500; line-height: 1.35; color: #1d2418; margin-bottom: 4px; }
.eb-tarjeta-precios { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.eb-tarjeta-precio { font-size: 1.25rem; font-weight: 800; color: #1d2418; }
.eb-tarjeta-transferencia { font-size: 0.82rem; color: var(--ok); }
.eb-tarjeta-transferencia strong { font-weight: 800; }
.eb-tarjeta-cuotas { font-size: 0.78rem; color: var(--gray-dark); }
.eb-tarjeta-cuotas strong { font-weight: 700; color: #1d2418; }

/* Los cartelitos de arriba de la foto: el % de la oferta en un círculo y el envío gratis en una
   pastilla, los dos en el rojo de la casa, apilados a la izquierda. */
.eb-carteles { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.eb-cartel-off {
  width: 48px; height: 48px; border-radius: 50%; background: #A3201C; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 800; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.eb-cartel-off small { font-size: 0.6rem; font-weight: 700; margin-top: 2px; }
.eb-cartel {
  background: #A3201C; color: #fff; font-size: 0.66rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.03em; padding: 6px 10px; border-radius: 7px; box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.eb-tarjeta-agotado { font-size: 0.75rem; color: var(--mal); font-weight: 600; }

/* ---------- Detalle de producto ---------- */
.eb-volver {
  background: none; border: none; color: var(--green-dark); font-weight: 600; font-size: 0.88rem;
  display: flex; align-items: center; gap: 4px; padding: 0; margin-bottom: 14px;
}
.eb-detalle { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(260px, 1fr); gap: 28px; }
.eb-detalle-fotos { display: flex; flex-direction: column; gap: 10px; }
.eb-detalle-foto-principal {
  position: relative; aspect-ratio: 1; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--borde);
}
.eb-detalle-foto-principal img { width: 100%; height: 100%; object-fit: cover; }
.eb-detalle-miniaturas { display: flex; gap: 8px; }
.eb-detalle-miniatura {
  width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer;
}
.eb-detalle-miniatura.activa { border-color: var(--green-dark); }
.eb-detalle-info h1 { font-size: 1.35rem; margin: 0 0 6px; }
.eb-detalle-precio { font-size: 1.6rem; font-weight: 700; color: var(--green-dark); margin: 8px 0 18px; }
.eb-detalle-variantes { margin-bottom: 16px; }
.eb-detalle-variantes label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; color: var(--gray-dark); }
.eb-variante-opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.eb-variante-boton {
  border: 1px solid var(--gray-green); background: #fff; border-radius: 8px; padding: 8px 14px; font-size: 0.85rem;
}
.eb-variante-boton.activa { border-color: var(--green-dark); background: var(--ok-suave); font-weight: 700; }
.eb-variante-boton:disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.eb-cantidad { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.eb-cantidad button {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--gray-green); background: #fff; font-size: 1.1rem;
}
.eb-cantidad span { min-width: 24px; text-align: center; font-weight: 700; }
.eb-btn-primario {
  background: var(--green-dark); color: #fff; border: none; border-radius: 10px;
  padding: 13px 20px; font-size: 0.95rem; font-weight: 700; display: flex; align-items: center;
  justify-content: center; gap: 8px; width: 100%;
}
.eb-btn-primario:disabled { background: var(--gray-green); cursor: not-allowed; }
.eb-btn-secundario {
  background: #fff; color: var(--green-dark); border: 1px solid var(--green-dark); border-radius: 10px;
  padding: 11px 18px; font-size: 0.88rem; font-weight: 600;
}
.eb-btn-ancho { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.eb-btn-negro {
  background: #000; color: #fff; border: none; border-radius: 10px;
  padding: 13px 20px; font-size: 0.95rem; font-weight: 700; width: 100%; margin-bottom: 10px;
}
.eb-stock-nota { font-size: 0.78rem; color: var(--gray-dark); margin-top: 8px; }

/* ---------- Breadcrumb ---------- */
.eb-breadcrumb { font-size: 0.8rem; color: var(--gray-dark); margin-bottom: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.eb-breadcrumb a { color: var(--gray-dark); text-decoration: none; }
.eb-breadcrumb a:hover { text-decoration: underline; }
.eb-breadcrumb-actual { color: var(--green-darkest); font-weight: 600; }

/* ---------- Ofertas: badge y precio tachado ---------- */
.eb-badge-oferta {
  position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--mal); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 5px 9px; border-radius: 7px;
}
.eb-badge-oferta.eb-badge-chica { font-size: 0.66rem; padding: 4px 7px; }
.eb-tarjeta-precio-anterior { font-size: 0.9rem; color: var(--gray-dark); text-decoration: line-through; }
.eb-detalle-oferta { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.eb-chip-oferta { background: var(--mal); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 9px; border-radius: 7px; }
.eb-detalle-precio-anterior { font-size: 0.95rem; color: var(--gray-dark); text-decoration: line-through; }

/* ---------- Medios de pago (cuotas, transferencia) ---------- */
.eb-cuotas-info {
  margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px; background: var(--beige-suave); border-radius: 10px;
}
.eb-medio-fila {
  display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--green-darkest);
}
.eb-medio-fila .material-symbols-outlined.eb-medio-icono { font-size: 18px; color: var(--green-dark); }
.eb-medio-logo { height: 18px; width: auto; flex-shrink: 0; }
.eb-medio-logos { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.eb-medio-chip { margin-left: 4px; position: static; }
.eb-envio-gratis-nota {
  display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--ok);
  margin: 0 0 16px;
}

/* ---------- Calculadora de envío (ficha de producto) ---------- */
.eb-envio-calculadora {
  margin-top: 14px; padding: 12px 14px; border: 1px solid var(--borde); border-radius: 10px;
}
.eb-envio-calculadora-titulo {
  display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600;
  color: var(--green-darkest); margin-bottom: 8px;
}
.eb-envio-calculadora-titulo .material-symbols-outlined { font-size: 18px; color: var(--green-dark); }
.eb-envio-calculadora-fila {
  display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--gray-dark); padding: 3px 0;
}

/* ---------- Descripción y productos similares ---------- */
.eb-detalle-descripcion { max-width: 800px; margin: 36px auto 0; }
.eb-detalle-descripcion p { line-height: 1.6; margin: 0 0 14px; }
.eb-detalle-descripcion h2 { font-size: 1.1rem; margin: 20px 0 10px; color: var(--green-darkest); }
.eb-detalle-descripcion ul { margin: 0 0 14px; padding-left: 20px; line-height: 1.6; }
.eb-similares { margin-top: 48px; }
.eb-similares-titulo { text-align: center; margin-bottom: 18px; }

/* ---------- Carrito (drawer) ---------- */
.eb-fondo-oscuro { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 30; }
.eb-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #fff; z-index: 31;
  display: flex; flex-direction: column; box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.eb-drawer-head {
  padding: 16px 18px; border-bottom: 1px solid var(--borde); display: flex; align-items: center; justify-content: space-between;
}
.eb-drawer-head h2 { margin: 0; font-size: 1.1rem; }
.eb-drawer-cerrar { background: none; border: none; font-size: 1.3rem; color: var(--gray-dark); }
.eb-drawer-items { flex: 1; overflow-y: auto; padding: 12px 18px; }
.eb-item-carrito { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--borde); }
.eb-item-carrito img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.eb-item-carrito-info { flex: 1; min-width: 0; }
.eb-item-carrito-nombre { font-size: 0.85rem; font-weight: 600; }
.eb-item-carrito-precio { font-size: 0.8rem; color: var(--gray-dark); }
.eb-item-carrito-cantidad { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.eb-item-carrito-cantidad button {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--gray-green); background: #fff; font-size: 0.9rem;
}
.eb-item-carrito-quitar { background: none; border: none; color: var(--mal); font-size: 0.75rem; text-decoration: underline; margin-top: 4px; }
.eb-drawer-resumen { padding: 16px 18px; border-top: 1px solid var(--borde); }
.eb-drawer-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }

/* ---------- Checkout ---------- */
.eb-checkout { max-width: 560px; margin: 0 auto; }
.eb-campo { margin-bottom: 14px; }
/* Localidad y código postal, uno al lado del otro; en el celular, uno abajo del otro. */
.eb-campos-fila { display: grid; grid-template-columns: 1fr 140px; gap: 12px; }
@media (max-width: 480px) { .eb-campos-fila { grid-template-columns: 1fr; } }
.eb-campo label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 5px; color: var(--gray-dark); }
.eb-campo input, .eb-campo textarea, .eb-campo select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--gray-green); border-radius: 8px; font-size: 0.92rem;
  background: #fff; color: var(--green-darkest);
}
.eb-campo textarea { resize: vertical; min-height: 60px; }
.eb-envio-opciones { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.eb-envio-opcion {
  border: 1px solid var(--gray-green); border-radius: 10px; padding: 12px 14px; display: flex;
  align-items: center; gap: 10px; cursor: pointer;
}
.eb-envio-opcion.activa { border-color: var(--green-dark); background: var(--ok-suave); }
.eb-envio-opcion input { width: auto; }
.eb-envio-opcion-info { flex: 1; }
.eb-envio-opcion-nombre { font-weight: 600; font-size: 0.88rem; }
.eb-envio-opcion-costo { font-size: 0.8rem; color: var(--gray-dark); }
.eb-resumen-pedido { background: var(--cream); border-radius: 12px; padding: 14px 16px; margin: 18px 0; }
.eb-resumen-fila { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 4px 0; }
.eb-resumen-fila.total { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--borde); margin-top: 6px; padding-top: 10px; }
.eb-error {
  background: var(--mal-suave); color: var(--mal); border-radius: 8px; padding: 10px 14px; font-size: 0.85rem; margin-bottom: 14px;
}
.eb-cuenta-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.eb-cuenta-toggle button {
  flex: 1; padding: 9px; border-radius: 8px; border: 1px solid var(--gray-green); background: #fff; font-size: 0.83rem;
}
.eb-cuenta-toggle button.activo { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }

/* ---------- Páginas propias y blog ---------- */
.eb-pagina { max-width: 760px; margin: 0 auto; }
.eb-pagina-foto { width: 100%; max-height: 320px; object-fit: cover; border-radius: 14px; margin-bottom: 20px; }
.eb-pagina-contenido { line-height: 1.7; font-size: 0.95rem; }
.eb-pagina-contenido h2 { font-size: 1.1rem; margin: 24px 0 10px; color: var(--green-darkest); }
.eb-pagina-contenido p { margin: 0 0 14px; }
.eb-pagina-contenido ul { margin: 0 0 14px; padding-left: 20px; }
.eb-pagina-contenido li { margin-bottom: 4px; }

.eb-blog-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.eb-blog-tarjeta {
  background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--sombra); text-decoration: none;
  color: inherit; display: flex; flex-direction: column; border: 1px solid var(--borde);
}
.eb-blog-tarjeta-foto { aspect-ratio: 16 / 10; background: var(--beige-suave); overflow: hidden; }
.eb-blog-tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; }
.eb-blog-tarjeta-cuerpo { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.eb-blog-tarjeta-titulo { font-weight: 700; font-size: 0.98rem; }
.eb-blog-tarjeta-resumen { font-size: 0.85rem; color: var(--gray-dark); }
.eb-blog-tarjeta-fecha { font-size: 0.75rem; color: var(--gray-dark); }

/* ---------- Confirmación ---------- */
.eb-confirmacion { text-align: center; padding: 40px 20px; max-width: 480px; margin: 0 auto; }
.eb-confirmacion .material-symbols-outlined { font-size: 64px; }
.eb-confirmacion.ok .material-symbols-outlined { color: var(--ok); }
.eb-confirmacion.espera .material-symbols-outlined { color: var(--aviso); }
.eb-confirmacion h1 { font-size: 1.3rem; margin: 14px 0 6px; }
.eb-confirmacion p { color: var(--gray-dark); font-size: 0.9rem; }

/* ---------- Pie ---------- */
.eb-footer {
  background: #1d2418; color: rgba(255,255,255,0.8); text-align: center;
  padding: 40px 16px 22px; font-size: 0.78rem; margin-top: 50px;
}
.eb-footer-columnas {
  max-width: 1200px; margin: 0 auto 28px; display: grid; gap: 30px; text-align: left;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.eb-footer-col h3 { color: #fff; font-size: 0.95rem; font-weight: 700; margin: 0 0 14px; }
.eb-footer-logo { height: 44px; width: auto; margin-bottom: 14px; }
.eb-footer-enlaces { display: flex; flex-direction: column; gap: 9px; }
.eb-footer-enlaces a, .eb-footer-lista a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.86rem; }
.eb-footer-enlaces a:hover, .eb-footer-lista a:hover { color: #fff; text-decoration: underline; }
.eb-footer-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 0.86rem; }
.eb-footer-lista li { display: flex; align-items: center; gap: 10px; }
.eb-footer-lista .material-symbols-outlined { font-size: 20px; color: var(--gray-green); }
.eb-footer-lista .eb-icono-wa { width: 20px; height: 20px; color: #25D366; }
.eb-footer-instagram {
  display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700;
  font-size: 0.9rem; padding: 10px 16px 10px 10px; border-radius: 999px;
  background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF);
}
.eb-footer-instagram svg { width: 26px; height: 26px; }
.eb-footer-instagram:hover { filter: brightness(1.08); }
.eb-footer-pagos { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.eb-footer-pagos img { height: 26px; width: auto; background: #fff; border-radius: 5px; padding: 3px 6px; }
.eb-footer-copy { margin: 0 0 8px; }
.eb-footer-legal { margin: 0; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.eb-footer-legal a { color: rgba(255,255,255,0.75); text-decoration: underline; }
.eb-footer-legal a:hover { color: #fff; }

@media (max-width: 700px) {
  .eb-detalle { grid-template-columns: 1fr; }
  /* En el celular, dos tarjetas por renglón: con una sola, la lista se hace eterna. */
  .eb-grilla { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .eb-fila-productos { gap: 10px; }
  .eb-fila-productos .eb-tarjeta { flex: 0 0 calc(50% - 5px); }
  .eb-fila-flecha { display: none; }
  .eb-tarjeta-cuerpo { padding: 10px 8px 12px; }
  .eb-tarjeta-nombre { font-size: 0.82rem; }
  .eb-tarjeta-precio { font-size: 1.05rem; }
  .eb-tarjeta-transferencia, .eb-tarjeta-cuotas { font-size: 0.72rem; }
  .eb-carteles { top: 8px; left: 8px; gap: 6px; }
  .eb-cartel-off { width: 40px; height: 40px; font-size: 0.72rem; }
  .eb-cartel { font-size: 0.58rem; padding: 5px 7px; }
  .eb-seccion-titulo { font-size: 1.35rem; }
  .eb-nav-interior { justify-content: flex-start; gap: 26px; }
  .eb-header-top { flex-wrap: wrap; }
  .eb-logo img { height: 36px; }
  .eb-buscador { order: 3; max-width: none; flex: 1 1 100%; }
  .eb-accion span:last-child { display: none; }
  .eb-hero-titulo { font-size: 1.05rem; left: 16px; bottom: 16px; max-width: 85%; }
  .eb-banners-categoria { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ---------- Cada pieza es única ---------- */
/* La ventanita que sale al agregar un mate. Centrada y chica: es una pregunta, no un formulario. */
.eb-unica {
  position: fixed; z-index: 32; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px)); background: #fff; border-radius: 14px; padding: 22px 22px 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25); text-align: center;
}
.eb-unica h2 { margin: 4px 0 10px; font-size: 1.3rem; color: var(--green-darkest); }
.eb-unica p { margin: 0 0 10px; color: var(--gray-dark); line-height: 1.45; }
.eb-unica-emoji { font-size: 2.2rem; margin: 0 !important; }
.eb-unica .eb-btn-primario { margin-top: 6px; }
.eb-unica .eb-btn-secundario { width: 100%; margin-top: 8px; }
/* La nota de la ficha y la casilla del checkout. */
.eb-pieza-unica {
  display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; padding: 10px 12px;
  background: var(--beige-suave); border-radius: 10px; font-size: 0.86rem; color: var(--gray-dark); line-height: 1.4;
}
.eb-elegir-foto {
  display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; padding: 12px 14px; cursor: pointer;
  background: var(--beige-suave); border-radius: 10px; font-size: 0.9rem; line-height: 1.4;
}
.eb-elegir-foto input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.eb-elegir-foto-listo { margin-top: 16px; padding: 14px; background: var(--beige-suave); border-radius: 12px; }
.eb-elegir-foto-listo p { margin: 0 0 10px; }
/* El ícono grande de la confirmación (el tilde, el reloj) es solo el de arriba: el de un botón de
   adentro (el de WhatsApp) va del tamaño del texto. */
.eb-confirmacion .eb-btn-primario .material-symbols-outlined { font-size: 20px; color: inherit; margin: 0; }

/* ---------- Bunker a tu puerta ---------- */
.eb-envio-opcion-detalle { font-size: 0.76rem; color: var(--gray-dark); margin-top: 3px; line-height: 1.35; }
/* GoCuotas en «Cómo pagás»: con su logo, y apagado (sin poder elegirse) cuando la compra no llega al
   mínimo que acepta GoCuotas. */
.eb-logo-medio { height: 16px; width: auto; vertical-align: -3px; margin-right: 4px; }
.eb-envio-opcion.apagada { opacity: .55; cursor: not-allowed; }
.eb-puerta-aviso {
  display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 14px 16px;
  background: var(--ok-suave); border: 1px solid #cfe0c4; border-radius: 12px;
}
.eb-puerta-aviso .material-symbols-outlined { font-size: 28px; color: var(--ok); }
.eb-puerta-aviso p { margin: 4px 0 0; font-size: 0.88rem; line-height: 1.45; color: var(--green-darkest); }

.eb-mega-vacio { margin: 4px 8px; color: var(--gray-dark); font-size: 0.85rem; }

/* ---------- Carteles emergentes ---------- */
.eb-cartel-fondo {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: eb-cartel-aparece 0.25s ease;
}
.eb-cartel-ventana {
  position: relative; width: min(420px, 100%); background: #fff; border-radius: 18px; overflow: hidden;
  padding: 32px 26px 26px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  animation: eb-cartel-sube 0.3s ease;
}
.eb-cartel-banda { position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--cartel-color); }
.eb-cartel-cerrar {
  position: absolute; top: 14px; right: 12px; background: none; border: none; color: var(--gray-dark);
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.eb-cartel-cerrar:hover { background: var(--beige-suave); }
.eb-cartel-ventana h2 { font-size: 1.45rem; font-weight: 800; color: #1d2418; margin: 4px 24px 12px; }
.eb-cartel-ventana p { margin: 0 0 10px; color: var(--gray-dark); line-height: 1.55; font-size: 0.95rem; }
.eb-cartel-boton {
  display: inline-block; margin-top: 8px; background: var(--cartel-color); color: #fff; font-weight: 700;
  padding: 12px 26px; border-radius: 999px; text-decoration: none; font-size: 0.95rem;
}
.eb-cartel-boton:hover { filter: brightness(1.1); }
@keyframes eb-cartel-aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes eb-cartel-sube { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .eb-cartel-fondo, .eb-cartel-ventana { animation: none; } }

/* El menú de Categorías: solo las madres, en una grilla prolija. */
.eb-menu-madres { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; min-width: min(640px, calc(100vw - 32px)); }

/* Los filtros por tipo adentro de una categoría: una fila de botones por nivel. En el celular la
   fila se corre de costado en vez de partirse en varios renglones. */
.eb-subcats {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: -6px 0 14px;
}
.eb-subcat {
  border: 1px solid var(--gray-green); background: #fff; color: var(--green-darkest); text-decoration: none;
  border-radius: 999px; padding: 7px 14px; font-size: 0.8rem; font-weight: 600; white-space: nowrap;
}
.eb-subcat small { color: var(--gray-dark); font-weight: 500; margin-left: 2px; }
.eb-subcat:hover { border-color: var(--green-dark); }
.eb-subcat.activo { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.eb-subcat.activo small { color: rgba(255,255,255,0.8); }
@media (max-width: 700px) {
  .eb-subcats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .eb-subcats::-webkit-scrollbar { display: none; }
}
