/* =========================================================
   PRODUCTOS.CSS — COMPLETO (CORREGIDO + LISTO)
   - Premium consistente con tu estilo
   - Buscador con ícono (HTML: .productos-search-ico)
   - Toolbar + select + badge
   - Cards sin marco en imagen (transparente)
   - Estado vacío (#productosEmpty)
   - Clase utilitaria .is-hidden (para JS si la usas)
========================================================= */

/* =========================
   0) VARIABLES
========================= */
:root{
  --azul:#251bbd;
  --azul-2:#2f2ad6;
  --naranja:#f28a1a;
  --naranja-2:#ff9f3a;
  --crema:#f3ede5;

  --radio: 28px;
  --sombra: 0 18px 40px rgba(0,0,0,.16);
  --sombra2: 0 26px 60px rgba(0,0,0,.14);
  --punteado: rgba(0,0,0,.32);
  --trans: 260ms cubic-bezier(.2,.8,.2,1);
}

/* =========================
   Helpers
========================= */
img{ max-width: 100%; height: auto; }
code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* Utilidad para ocultar (por si lo usas en JS) */
.is-hidden{ display:none !important; }

/* =========================================================
   1) HERO / INTRO
========================================================= */
.productos-hero{
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
  z-index: 1;
  padding: 150px 20px 60px;
}

/* Tabla decorativa */
.productos-hero::before{
  content:"";
  position:absolute;
  top: 10px;
  left: -140px;
  width: clamp(600px, 55vw, 650px);
  height: clamp(650px, 55vw, 650px);
  background: url("imgs/tabla-productos.webp") no-repeat;
  background-size: contain;
  background-position: left top;
  opacity: 1;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.18));
  z-index: 80 !important; /* tabla encima */
}

.productos-hero-card{
  position: relative;
  z-index: 20 !important;
  background: rgba(243,237,229,.95);
  border-radius: 34px;
  box-shadow: var(--sombra2);
  overflow: visible;
  padding: 90px 78px 78px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.productos-hero-card::before{
  content:"";
  position:absolute;
  inset: 26px;
  border-radius: 22px;
  border: 2px dashed var(--punteado);
  pointer-events:none;
  z-index: 1;
}

.productos-hero-inner{
  position: relative;
  z-index: 90 !important; /* texto arriba de todo */
  max-width: 900px;
  margin: 0 auto;
}

.productos-kicker{
  height: 10px;
  width: 120px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,27,189,.22), rgba(242,138,26,.22));
}

.productos-title{
  margin: 0 0 14px;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 950;
  background: linear-gradient(90deg, var(--azul), var(--naranja), #8c3cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(255,255,255,.9))
    drop-shadow(0 18px 22px rgba(37,27,189,.10));
}

.productos-lead{
  margin: 0 auto;
  max-width: 820px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(0,0,0,.75);
  font-weight: 650;
}

/* CTA HERO: iguales de ancho */
.productos-hero-cta{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.productos-hero-cta .btn{
  width: 100%;
  min-height: 58px;
  border-radius: 22px;
  font-size: 15.8px;
}

/* =========================================================
   2) SECCIONES base
========================================================= */
.seccion{
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  margin-top: 84px;
}

.titulo-seccion{
  margin: 0 0 26px;
  text-align: center;
  font-size: 36px;
  line-height: 1.08;
  font-weight: 950;
  background: linear-gradient(90deg, var(--azul), var(--naranja), #8c3cff);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255,255,255,.88));
}

/* CTA centrada */
.pedidos-cta-bloque{
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================================================
   3) TOOLBAR (Buscador + filtro + carrito)
========================================================= */
.productos-controles{
  margin-top: 10px;
}

.productos-toolbar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  flex-wrap: wrap;

  padding: 16px 16px;
  border-radius: 22px;

  background:
    radial-gradient(700px 240px at 18% 20%, rgba(242,138,26,.14), rgba(0,0,0,0) 60%),
    radial-gradient(760px 320px at 72% 10%, rgba(37,27,189,.14), rgba(0,0,0,0) 62%),
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.66));

  box-shadow:
    0 20px 40px rgba(0,0,0,.12),
    0 16px 30px rgba(37,27,189,.08);

  border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Buscador con ícono */
.productos-busqueda{
  flex: 1 1 380px;
  max-width: 640px;
  position: relative;
}

.productos-search-ico{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: .85;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.12));
}

.productos-search-ico img{
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.productos-input{
  width: 100%;
  padding: 14px 14px 14px 48px; /* espacio para lupa */
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.90);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  min-height: 52px;
  transition: box-shadow var(--trans), border-color var(--trans);
}

.productos-input:focus{
  border-color: rgba(37,27,189,.30);
  box-shadow: 0 0 0 4px rgba(37,27,189,.14);
}

/* Select premium */
.productos-filtros{
  flex: 0 1 260px;
  min-width: 240px;
}

.productos-select{
  width: 100%;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.90);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  min-height: 52px;
  transition: box-shadow 260ms ease, border-color 260ms ease, transform 260ms ease;
}

.productos-select:focus{
  border-color: rgba(37,27,189,.30);
  box-shadow: 0 0 0 4px rgba(37,27,189,.14);
  transform: translateY(-1px);
}

/* Carrito */
.productos-carrito{
  flex: 0 0 auto;
}

.productos-carrito .btn{
  min-height: 52px;
  border-radius: 18px;
}

/* Badge */
.carrito-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  margin-left: 8px;
  border-radius: 999px;

  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 12px 22px rgba(0,0,0,.10);

  color: rgba(0,0,0,.78);
  font-weight: 950;
  font-size: 13px;
}

/* Estado vacío */
.productos-empty{
  margin: 14px auto 0;
  text-align: center;
  max-width: 980px;
  font-size: 14.8px;
  font-weight: 750;
  color: rgba(0,0,0,.74);

  padding: 12px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242,138,26,.14), rgba(37,27,189,.14));
  border: 1px solid rgba(37,27,189,.16);
}

/* =========================================================
   4) CATEGORÍAS (secciones) — badge automático
========================================================= */
.productos-seccion{
  position: relative;
  padding: 26px 0 10px;
  border-radius: 34px;
}

.productos-seccion::before{
  content:"";
  position:absolute;
  inset: -6px -6px auto -6px;
  height: 140px;
  border-radius: 34px;

  background:
    radial-gradient(520px 180px at 18% 10%, rgba(242,138,26,.14), rgba(0,0,0,0) 65%),
    radial-gradient(520px 200px at 82% 0%, rgba(37,27,189,.14), rgba(0,0,0,0) 70%);

  pointer-events: none;
  z-index: 0;
}

.productos-seccion > *{
  position: relative;
  z-index: 1;
}

.productos-seccion .titulo-seccion{
  position: relative;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  padding-top: 18px;
}

.productos-seccion .titulo-seccion::before{
  content: "CATEGORÍA";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);

  padding: 8px 14px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 950;
  letter-spacing: .35px;

  color: rgba(0,0,0,.78);
  background: linear-gradient(90deg, rgba(242,138,26,.18), rgba(37,27,189,.16));
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 14px 24px rgba(0,0,0,.10);
}

.productos-seccion .titulo-seccion::after{
  content:"";
  display:block;
  height: 10px;
  width: min(220px, 66%);
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,27,189,.22), rgba(242,138,26,.22));
  box-shadow: 0 14px 24px rgba(0,0,0,.08);
}

/* =========================================================
   5) GRID + TARJETA DE PRODUCTO
========================================================= */
.productos-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
  justify-items: center;
  margin-top: 12px;
}

.producto-card{
  width: 100%;
  max-width: 420px;
  background: rgba(243,237,229,.95);
  border-radius: 30px;
  padding: 22px 20px;
  box-shadow: var(--sombra);
  position: relative;
  overflow: hidden;
  text-align: center;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: transform var(--trans), filter var(--trans);
}

.producto-card::before{
  content:"";
  position:absolute;
  inset: 16px;
  border-radius: 20px;
  border: 2px dashed rgba(0,0,0,.22);
  pointer-events:none;
}

.producto-card:hover{
  transform: translateY(-6px);
  filter: brightness(1.02);
}

/* Imagen SIN marco */
.producto-img{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 170px;
  margin: 2px auto 10px;
  position: relative;
  z-index: 2;
}

.producto-img img{
  max-height: 170px;
  width: auto;
  object-fit: contain;
  border: none;
  background: transparent;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.18));
}

.producto-nombre{
  margin: 8px 0 8px;
  font-weight: 950;
  font-size: 18px;
  color: #1b1b1b;
  position: relative;
  z-index: 2;
}

.producto-desc{
  margin: 0 0 12px;
  font-size: 14.4px;
  line-height: 1.55;
  color: rgba(0,0,0,.70);
  font-weight: 650;
  position: relative;
  z-index: 2;
  padding: 0 8px;
}

.producto-bottom{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: 10px;
}

/* Precio tipo badge */
.producto-precio{
  display:inline-flex;
  align-items:center;
  gap: 6px;

  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;

  font-weight: 950;
  font-size: 14px;

  color: rgba(0,0,0,.78);
  background: linear-gradient(90deg, rgba(242,138,26,.14), rgba(37,27,189,.14));
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

.producto-precio .price{ font-size: 15px; }

/* Botón Agregar */
.producto-add{
  min-height: 46px;
  padding: 12px 16px !important;
  border-radius: 16px !important;
  font-weight: 950 !important;
  min-width: 140px;
  justify-content: center;
}

/* Estado agregado */
.producto-add.is-added{
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.producto-add.is-added::after{
  content:"✓ Agregado";
  margin-left: 8px;
  font-weight: 950;
}

.producto-add[disabled]{
  opacity: .65;
  cursor: not-allowed;
  transform: none !important;
}

/* =========================================================
   6) BOTONES (fallback consistente en productos)
========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  text-decoration: none;
  border: 0;
  cursor: pointer;

  border-radius: 18px;
  padding: 14px 18px;

  font-family: inherit;
  font-weight: 950;
  letter-spacing: .2px;
  line-height: 1;

  transition: transform var(--trans), filter var(--trans), box-shadow var(--trans);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn .btn-ico{
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.16));
}

.btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.btn:active{
  transform: translateY(0);
}

.btn-grande{
  padding: 16px 22px;
  border-radius: 20px;
  min-height: 54px;
  font-size: 15.5px;
}

.btn-mini{
  min-height: 42px;
  padding: 10px 14px;
  font-size: 13.5px;
  border-radius: 16px;
}

.btn-primario{
  color: #fff;
  background: linear-gradient(90deg, var(--azul), var(--azul-2));
  box-shadow: 0 18px 34px rgba(37,27,189,.22), 0 10px 22px rgba(0,0,0,.12);
}

.btn-primario:hover{
  box-shadow: 0 22px 44px rgba(37,27,189,.26), 0 12px 26px rgba(0,0,0,.14);
}

.btn-secundario{
  color: rgba(0,0,0,.86);
  background: linear-gradient(90deg, rgba(242,138,26,.22), rgba(255,159,58,.18));
  border: 1px solid rgba(242,138,26,.34);
  box-shadow: 0 18px 34px rgba(242,138,26,.16), 0 10px 22px rgba(0,0,0,.10);
}

.btn-secundario:hover{
  filter: brightness(1.04);
}

.btn-bounce:hover{
  transform: translateY(-3px);
}

/* =========================================================
   7) Accesibilidad
========================================================= */
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* =========================================================
   8) RESPONSIVE
========================================================= */

/* Desktop pequeño (900–1024) */
@media (max-width: 1024px) and (min-width: 900px){
  .productos-hero{
    padding: 140px 18px 44px;
    max-width: 1100px;
  }
  .productos-hero::before{
    top: 8px;
    left: -90px;
    width: clamp(520px, 62vw, 620px);
    height: clamp(560px, 62vw, 620px);
  }

  .productos-title{ font-size: 44px; }
  .productos-hero-card{ padding: 78px 44px 60px; }

  .productos-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* Tablet (641–899) */
@media (max-width: 899px) and (min-width: 641px){
  .productos-hero{
    padding: 130px 16px 30px;
    max-width: 980px;
  }
  .productos-hero::before{
    top: 6px;
    left: -60px;
    width: clamp(460px, 78vw, 600px);
    height: clamp(480px, 78vw, 600px);
  }

  .productos-title{ font-size: 40px; }
  .productos-lead{ font-size: 16.4px; }
  .productos-hero-card{ padding: 66px 26px 54px; }

  .titulo-seccion{ font-size: 32px; }

  .productos-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* Móvil (<= 640) */
@media (max-width: 640px){
  .productos-hero{
    padding: 118px 12px 18px;
    max-width: 100%;
  }
  .productos-hero::before{
    top: 4px;
    left: -26px;
    width: clamp(340px, 96vw, 520px);
    height: clamp(360px, 96vw, 520px);
  }

  .productos-hero-card{
    padding: 56px 14px 44px;
    border-radius: 24px;
  }
  .productos-hero-card::before{
    inset: 14px;
    border-radius: 14px;
  }

  .productos-title{
    font-size: 30px;
    line-height: 1.12;
    padding: 0 10px;
  }
  .productos-lead{
    font-size: 14.7px;
    padding: 0 10px;
  }

  .productos-hero-cta{
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .productos-hero-cta .btn{
    min-height: 56px;
  }

  .seccion{
    padding: 0 12px;
    margin-top: 64px;
  }

  .titulo-seccion{
    font-size: 28px;
    margin-bottom: 16px;
    padding: 0 10px;
  }

  .productos-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .productos-toolbar{
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 14px 12px;
    border-radius: 18px;
  }

  .productos-filtros,
  .productos-busqueda,
  .productos-carrito{
    width: 100%;
    max-width: 520px;
  }

  .productos-carrito .btn{
    width: 100%;
    justify-content: center;
  }

  .producto-img{
    height: 150px;
  }

  .producto-img img{
    max-height: 150px;
  }

  .producto-add{
    width: 100%;
    max-width: 520px;
  }

  .producto-precio{
    width: 100%;
    max-width: 520px;
    justify-content: center;
  }

  .producto-bottom{
    gap: 10px;
  }
}

/* iPad fix (768–1024) */
@media (max-width: 1024px) and (min-width: 768px){
  .productos-hero{
    max-width: 980px;
    padding: 130px 18px 80px;
  }
  .productos-hero::before{
    top: 6px;
    left: -80px;
    width: clamp(520px, 70vw, 640px);
    height: clamp(520px, 70vw, 640px);
  }
}

/* Móvil mediano (391–480) */
@media (max-width: 480px) and (min-width: 391px){
  .productos-title{ font-size: 28px; }
}

/* Móvil pequeño (<= 390) */
@media (max-width: 390px){
  .seccion{ padding: 0 10px; }
  .productos-title{ font-size: 26px; padding: 0 8px; }
  .productos-lead{ padding: 0 8px; }
}

/* =========================================================
   9) Reveal (si tu script global lo usa)
========================================================= */
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1 !important; transform: none !important; transition: none !important; filter: none !important; }
}
.reveal{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(.2,.8,.2,1),
    filter 900ms ease;
  will-change: opacity, transform, filter;
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* =========================================================
   PATCH DEFINITIVO — PRODUCTOS TOOLBAR (DESKTOP/TABLET/MÓVIL)
   Pegar AL FINAL de productos.css

   Problema que corrige (según tus capturas):
   - La lupa se “despega” del input y cae hacia abajo (se ve sola).
   - El input no ocupa el ancho correcto y el contenedor queda raro.
   - Falta espacio lateral (la UI queda “a ras” del borde).

   Solución:
   - Convertimos .productos-busqueda en contenedor real con display:flex
   - Ponemos la lupa “dentro” del mismo flujo (ya NO absolute)
   - Aseguramos padding lateral global en toolbar y en secciones
   - Ajustes por breakpoints para márgenes y tamaños
========================================================= */

/* 1) Espacio lateral general (evita “a ras”) */
.seccion{
  padding-left: clamp(12px, 3.2vw, 22px) !important;
  padding-right: clamp(12px, 3.2vw, 22px) !important;
}

/* 2) Toolbar: que no pegue al borde y respire */
.productos-toolbar{
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;

  padding-left: clamp(12px, 2.8vw, 18px) !important;
  padding-right: clamp(12px, 2.8vw, 18px) !important;
}

/* =========================================================
   3) BUSCADOR: FIX REAL (lupa dentro del input, SIN absolute)
========================================================= */
.productos-busqueda{
  /* el contenedor ahora “arma” el input + icono */
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;

  width: 100% !important;
  max-width: 720px !important;

  position: relative !important;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 16px;
  padding: 0 12px;           /* padding interno del “input-group” */
  min-height: 54px;

  box-sizing: border-box;
}

/* La lupa deja de ser absolute para que NO “se caiga” */
.productos-search-ico{
  position: static !important;
  transform: none !important;

  width: 22px !important;
  height: 22px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  opacity: .9;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.12));
}

.productos-search-ico img{
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
  display: block;
}

/* El input ya no necesita padding-left para lupa (porque la lupa está afuera) */
.productos-input{
  flex: 1 1 auto !important;
  width: 100% !important;

  border: 0 !important;
  outline: none !important;
  background: transparent !important;

  padding: 0 !important;          /* el padding lo da el contenedor */
  min-height: 54px !important;

  box-shadow: none !important;    /* evita “doble borde” */
}

/* Cuando enfoca, aplica “focus ring” al contenedor */
.productos-busqueda:focus-within{
  border-color: rgba(37,27,189,.30);
  box-shadow: 0 0 0 4px rgba(37,27,189,.14);
}

/* =========================================================
   4) SELECT + BOTÓN: tamaños y anchos coherentes
========================================================= */
.productos-filtros{
  width: 100%;
  max-width: 320px;
  min-width: 220px;
}

.productos-select{
  width: 100%;
  min-height: 54px;
}

.productos-carrito .btn{
  min-height: 54px;
}

/* =========================================================
   5) BREAKPOINTS
========================================================= */

/* Desktop amplio */
@media (min-width: 1025px){
  .productos-toolbar{
    gap: 16px;
  }

  .productos-busqueda{
    max-width: 760px !important;
  }

  .productos-filtros{
    max-width: 300px;
  }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 641px){
  .productos-toolbar{
    gap: 14px;
  }

  .productos-busqueda{
    max-width: 100% !important;
  }

  .productos-filtros{
    max-width: 320px;
  }
}

/* Móvil */
@media (max-width: 640px){
  .productos-toolbar{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .productos-busqueda{
    max-width: 100% !important;
    min-height: 56px;
    padding: 0 14px;
    border-radius: 18px;
  }

  .productos-input{
    min-height: 56px !important;
    font-size: 16px; /* evita zoom en iOS */
  }

  .productos-filtros{
    max-width: 100%;
    min-width: 0;
  }

  .productos-select{
    min-height: 56px;
    border-radius: 18px;
  }

  .productos-carrito .btn{
    width: 100%;
    justify-content: center;
    min-height: 56px;
  }
}

/* Móvil pequeño */
@media (max-width: 390px){
  .productos-busqueda{
    min-height: 54px;
    padding: 0 12px;
  }
  .productos-input{
    min-height: 54px !important;
  }
  .productos-select{
    min-height: 54px;
  }
  .productos-carrito .btn{
    min-height: 54px;
  }
}

/* =========================================================
   PATCH 5 — FIX REAL DEL “HUECO” (MÓVIL)
   Pegar AL FINAL de productos.css

   CAUSA (por qué seguía igual):
   - En tu CSS original, estos tienen:
       .productos-busqueda { flex: 1 1 380px; }
       .productos-filtros  { flex: 0 1 260px; }
     En móvil tú pones la toolbar en COLUMNA (flex-direction: column),
     y en columna el flex-basis (380px / 260px) se vuelve ALTURA.
     Eso crea el espacio gigante entre el select y el botón.

   SOLUCIÓN:
   - En móvil, anulamos esos flex-basis y dejamos auto.
========================================================= */

@media (max-width: 640px){

  .productos-toolbar{
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* ✅ Quita el flex-basis gigante (que se vuelve altura en columna) */
  .productos-busqueda,
  .productos-filtros,
  .productos-carrito{
    flex: 0 0 auto !important;     /* nada de crecer por “basis” */
    flex-basis: auto !important;   /* elimina 380px / 260px */
    min-height: 0 !important;
  }

  /* Por si algún min-width estaba empujando el layout */
  .productos-filtros{
    min-width: 0 !important;
  }

  /* Compacta un poquito más */
  .productos-toolbar{
    gap: 8px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  /* Asegura que el botón no tenga margen raro */
  .productos-carrito .btn{
    margin: 0 !important;
  }
}