/* ==========================================================================
   Juguetería — hoja de estilos
   Paleta, tipografías y formas tomadas de claude-design/*.dc.html
   (Baloo 2 + Nunito, esquinas muy redondeadas, colores cálidos de juguetería).
   ========================================================================== */

:root {
  /* Fondo y superficies */
  --bg: #ECE7DC;
  --surface: #FFFDF8;
  --surface-solid: #FFFFFF;
  --surface-muted: #F6F1E6;
  --border: #E3DCCE;
  --border-soft: #F2EDE2;

  /* Texto */
  --text: #2B2620;
  --text-muted: #6B6459;
  --text-faint: #9A8F7B;
  --text-faint-2: #A89B72;

  /* Acento amarillo (CTA principal / precios en oferta) */
  --yellow: #FFC53D;
  --yellow-hover: #FFB700;
  --yellow-text: #4A3800;
  --yellow-border: #E8A800;

  /* Azul (marca / enlaces / etiquetas de edad) */
  --blue: #2E62D9;
  --blue-hover: #1E4FC0;
  --blue-bg: #EAF0FF;

  /* Verde (WhatsApp / stock / éxito) */
  --green: #21B25F;
  --green-hover: #189A50;
  --green-text: #17874A;
  --green-bg: #EFFAF3;
  --green-border: #B9E4C9;

  /* Rojo (ofertas / quitar / errores) */
  --red: #E5484D;
  --red-text: #C03035;
  --red-bg: #FDE7E8;

  /* Gris agotado */
  --gray-out: #756D61;

  /* Footer (azul noche) */
  --footer-bg: #24418F;
  --footer-bg-alt: #33509F;
  --footer-text: #D6E2FF;
  --footer-text-muted: #8FA6DE;
  --footer-accent: #8FE6B4;

  --radius-pill: 999px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;

  --shadow-card: 0 2px 10px rgba(43, 38, 32, 0.08);
  --shadow-float: 0 12px 40px rgba(43, 38, 32, 0.16);
  --shadow-modal: 0 24px 80px rgba(43, 38, 32, 0.35);

  --font-display: 'Baloo 2', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* alto aproximado del header sticky (marca + barra de búsqueda). Lo usa el
     panel de filtros para no quedar tapado al hacer scroll. */
  --header-h: 108px;
}
@media (min-width: 960px) { :root { --header-h: 138px; } }

/* ---- reset básico ---- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
input, textarea, select { font-family: inherit; outline: none; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 960px) {
  .container { padding: 0 32px; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface-solid);
  border-bottom: 3px solid var(--yellow);
}
/* 3 columnas: redes | marca centrada | carrito. Las columnas laterales tienen
   el mismo ancho minimo para que la marca quede centrada de verdad. */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 7px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .header-inner { padding: 14px 24px 10px; gap: 16px; }
}
@media (min-width: 960px) { .header-inner { padding: 13px 32px 9px; } }

.header-side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.header-actions { justify-content: flex-end; }
@media (min-width: 720px) { .header-side { gap: 10px; } }

.brand {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  text-align: center; text-decoration: none; min-width: 0;
}
.brand:hover { color: inherit; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; color: var(--text);
  font-size: clamp(19px, 6.4vw, 34px); line-height: 1.05; white-space: nowrap;
}
.brand-sub {
  font-weight: 800; color: var(--text-faint); text-transform: uppercase;
  font-size: clamp(8.5px, 2.5vw, 13px); letter-spacing: 0.07em; line-height: 1.2;
  white-space: nowrap;
}

/* ---- redes sociales ---- */
.social-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: var(--surface-muted); color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.social-btn svg { width: 19px; height: 19px; display: block; flex-shrink: 0; }
.social-btn[hidden] { display: none; }
.social-btn.fb { background: #EAF1FE; color: #1877F2; }
.social-btn.fb:hover { background: #1877F2; color: #fff; }
.social-btn.ig { background: #FDEDF3; color: #D62A79; }
.social-btn.ig:hover { background: #D62A79; color: #fff; }
.social-btn.wa { background: var(--green-bg); color: var(--green-text); }
.social-btn.wa:hover { background: var(--green); color: #fff; }
/* el nombre de la red solo aparece en pantallas grandes: en mobile no hay
   lugar y los logos solos ya se entienden. */
.social-label { display: none; }
@media (min-width: 720px) {
  .social-btn { width: 40px; height: 40px; }
  .social-btn svg { width: 22px; height: 22px; }
}
@media (min-width: 1160px) {
  .social-btn {
    width: auto; height: 42px; gap: 9px;
    padding: 0 18px 0 15px; border-radius: var(--radius-pill);
  }
  .social-label {
    display: block;
    font-family: var(--font-display); font-weight: 700; font-size: 15px;
    line-height: 1; white-space: nowrap;
  }
}

/* ---- barra de búsqueda (misma en mobile y desktop) ---- */
.search-bar { padding: 0 12px 10px; }
@media (min-width: 720px) { .search-bar { padding: 0 24px 11px; } }
@media (min-width: 960px) { .search-bar { padding: 0 32px 12px; } }

.header-search {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface-muted);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 10px 14px;
  width: 100%; max-width: 560px; margin: 0 auto;
  min-width: 0;
}
/* en pantallas grandes la barra se agranda para acompañar el ancho del header */
@media (min-width: 960px) {
  .header-search { max-width: 640px; padding: 11px 18px; gap: 11px; }
  .header-search .search-icon { width: 19px; height: 19px; }
}
.header-search:focus-within { border-color: var(--blue); background: var(--surface-solid); }
.header-search .search-icon { flex-shrink: 0; color: var(--text-faint); }
.header-search input {
  /* min-width:0 es lo que evita que el input se desborde de la pastilla en
     pantallas chicas (los inputs traen un ancho intrinseco propio), y los 16px
     evitan el zoom automatico de iOS al enfocar. */
  flex: 1 1 auto; min-width: 0; width: 100%;
  border: none; background: transparent; padding: 0;
  font-size: 16px; font-weight: 600; color: var(--text);
  -webkit-appearance: none; appearance: none;
  text-overflow: ellipsis;
}
.header-search input::placeholder { color: var(--text-faint); font-weight: 600; }
/* el foco ya se ve en el borde de la pastilla: evitamos el doble recuadro */
.header-search input:focus-visible { outline: none; }
.header-search input::-webkit-search-decoration,
.header-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search-clear {
  border: none; background: var(--border-soft); color: var(--text-muted);
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900;
  padding: 0;
}
.search-clear:hover { background: var(--border); }
.search-clear[hidden] { display: none; }

.icon-btn {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; background: var(--surface-muted);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--border); }
.icon-btn.cart-btn { background: #FFF3D1; color: var(--yellow-text); }
.icon-btn.cart-btn:hover { background: #FFE9AD; }

.cart-badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 900; border-radius: 999px;
  min-width: 19px; height: 19px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.cart-badge[hidden] { display: none; }

/* Celulares: la columna de redes (3 botones) es más ancha que la del carrito
   (1 botón), así que achicamos los botones para que el nombre quede lo más
   centrado posible y no se pegue al carrito en pantallas angostas. */
@media (max-width: 479px) {
  .header-inner { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .header-side { gap: 4px; }
  .social-btn { width: 30px; height: 30px; }
  .social-btn svg { width: 17px; height: 17px; }
  .icon-btn { width: 36px; height: 36px; }
  .search-bar { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 359px) {
  .social-btn { width: 28px; height: 28px; }
  .social-btn svg { width: 16px; height: 16px; }
  .brand-sub { font-size: 7.8px; letter-spacing: 0.04em; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  margin: 16px auto 0;
  max-width: 1280px;
  padding: 0 16px;
}
@media (min-width: 960px) { .hero { padding: 0 32px; margin-top: 24px; } }
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--blue);
  color: #fff;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (min-width: 720px) {
  .hero-banner { padding: 40px 48px; min-height: 180px; justify-content: center; }
}
.hero-banner::before {
  content: '';
  position: absolute; right: -60px; bottom: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--yellow); opacity: 0.9;
}
.hero-banner::after {
  content: '';
  position: absolute; right: 140px; top: -60px;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--red); opacity: 0.85;
}
.hero-eyebrow {
  position: relative; z-index: 1;
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #BBD0FF;
}
.hero-title {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.15;
  max-width: 560px; text-wrap: pretty;
}
@media (min-width: 720px) { .hero-title { font-size: 34px; } }
.hero-sub {
  position: relative; z-index: 1;
  font-size: 14px; color: #D6E2FF; max-width: 520px;
}

/* ==========================================================================
   Toolbar (contador de resultados, chips activos, orden)
   ========================================================================== */
.toolbar {
  max-width: 1280px; margin: 0 auto;
  padding: 18px 16px 4px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
@media (min-width: 960px) { .toolbar { padding: 22px 32px 4px; } }

.filter-toggle-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--text); color: #fff; border: none; border-radius: var(--radius-pill);
  padding: 9px 16px; font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
@media (min-width: 960px) { .filter-toggle-btn { display: none; } }
.filter-count {
  background: var(--yellow); color: var(--yellow-text); border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 800; padding: 1px 7px; min-width: 18px; text-align: center;
}
.filter-count[hidden] { display: none; }

.results-count { font-size: 13px; color: var(--text-faint); font-weight: 700; }

.active-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-bg); color: var(--blue); font-weight: 800; font-size: 12.5px;
  border-radius: var(--radius-pill); padding: 6px 12px; border: none;
}
.active-chip .x { font-weight: 900; }

.sort-select {
  margin-left: auto;
  border: 2px solid var(--border); border-radius: var(--radius-pill);
  padding: 7px 14px; font-size: 13.5px; font-weight: 800; color: var(--text-muted);
  background: var(--surface-solid);
}

/* ==========================================================================
   Layout: filtros + grilla
   ========================================================================== */
.catalog-layout {
  max-width: 1280px; margin: 0 auto;
  padding: 8px 16px 48px;
  display: flex; gap: 24px; align-items: flex-start;
}
@media (min-width: 960px) { .catalog-layout { padding: 8px 32px 56px; } }

.filters-panel {
  width: 250px; flex-shrink: 0;
  display: none;
  flex-direction: column; gap: 20px;
  background: var(--surface-solid); border: 2px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 20px;
  position: sticky; top: calc(var(--header-h) + 16px);
  /* La columna de filtros scrollea sola: si es más alta que la pantalla, se
     llega al fondo sin tener que bajar todo el catálogo. */
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.filters-panel::-webkit-scrollbar { width: 8px; }
.filters-panel::-webkit-scrollbar-track { background: transparent; }
.filters-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.filters-panel::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
@media (min-width: 960px) { .filters-panel { display: flex; } }

.filter-section { display: flex; flex-direction: column; gap: 9px; }
.filter-title { font-family: var(--font-display); font-weight: 800; font-size: 15px; }

.age-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.age-chip {
  border: 2px solid var(--border); background: var(--surface-solid);
  border-radius: 14px; padding: 10px; text-align: center; font-family: var(--font-display);
}
.age-chip .n { font-weight: 800; font-size: 16px; color: var(--blue); }
.age-chip .u { font-size: 11px; color: var(--text-faint); font-weight: 700; }
.age-chip.active { background: var(--yellow); border-color: var(--yellow-border); }
.age-chip.active .n { color: var(--yellow-text); }
.age-chip.active .u { color: #7A5F00; }

.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row .box {
  width: 19px; height: 19px; border-radius: 6px; border: 2px solid #D8D0BF; background: #fff;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 900;
}
.checkbox-row.checked .box { background: var(--blue); border-color: var(--blue); }
.checkbox-row .label { font-size: 14px; font-weight: 700; color: var(--text); }
.checkbox-row .count { margin-left: auto; font-size: 12px; color: #B3A88F; font-weight: 700; }
.checkbox-row input { position: absolute; opacity: 0; pointer-events: none; }

.brand-chip {
  border: 2px solid var(--border); border-radius: var(--radius-pill);
  padding: 5px 12px; font-size: 12.5px; font-weight: 700; color: var(--text-muted);
  background: var(--surface-solid);
}
.brand-chip.active { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); font-weight: 800; }
.chip-wrap { display: flex; gap: 7px; flex-wrap: wrap; }

.price-range-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.price-range-value { font-size: 12px; font-weight: 800; color: var(--text-muted); white-space: nowrap; }

/* Slider de precio con dos manijas (mínimo y máximo). Los dos inputs se
   superponen: se ignoran los clicks salvo en las manijas, y el track que se
   ve es el div de atrás. */
.price-slider-wrap { position: relative; height: 32px; }
.price-track {
  position: absolute; top: 50%; left: 0; right: 0; height: 6px;
  transform: translateY(-50%);
  background: var(--border); border-radius: var(--radius-pill);
}
.price-track-fill { position: absolute; top: 0; bottom: 0; background: var(--blue); border-radius: var(--radius-pill); }
.price-slider {
  position: absolute; top: 0; left: 0; width: 100%; height: 32px; margin: 0;
  background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.price-slider.desde { z-index: 3; }
.price-slider.hasta { z-index: 3; }
.price-slider:focus { outline: none; }
.price-slider::-webkit-slider-runnable-track { height: 32px; background: transparent; border: none; }
.price-slider::-moz-range-track { height: 32px; background: transparent; border: none; }
.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 20px; height: 20px; margin-top: 6px; box-sizing: border-box;
  border-radius: 50%; background: #fff; border: 3px solid var(--blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22); cursor: pointer;
}
.price-slider::-moz-range-thumb {
  pointer-events: auto;
  width: 20px; height: 20px; box-sizing: border-box;
  border-radius: 50%; background: #fff; border: 3px solid var(--blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22); cursor: pointer;
}
.price-slider:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--blue); outline-offset: 2px; }
.price-slider:focus-visible::-moz-range-thumb { outline: 2px solid var(--blue); outline-offset: 2px; }

.stock-toggle-row { display: flex; align-items: center; justify-content: space-between; }
.toggle-switch {
  width: 44px; height: 26px; border-radius: var(--radius-pill); border: none;
  background: var(--border); position: relative; flex-shrink: 0;
}
.toggle-switch .knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: left 0.15s ease;
}
.toggle-switch.on { background: var(--green); }
.toggle-switch.on .knob { left: 21px; }

.clear-filters-btn {
  border: none; background: transparent; color: var(--blue); font-weight: 800; font-size: 13px;
  padding: 0; align-self: flex-start;
}

/* ==========================================================================
   Grilla de productos
   ========================================================================== */
.product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.empty-state {
  grid-column: 1 / -1;
  text-align: center; padding: 56px 20px; color: var(--text-faint);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-state strong { font-family: var(--font-display); font-size: 18px; color: var(--text); }

/* ---- product card ---- */
.product-card {
  background: var(--surface-solid);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;
}

.card-gallery { position: relative; }
.card-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 1 / 1;
}
.card-gallery-track::-webkit-scrollbar { display: none; }
.card-gallery-track .slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-muted);
}
.card-gallery-track img {
  width: 100%; height: 100%; object-fit: cover;
}
.card-gallery-placeholder {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, #FDF6E3, #FDF6E3 14px, #F7EED6 14px, #F7EED6 28px);
  display: flex; align-items: center; justify-content: center;
  font-family: monospace; font-size: 10.5px; color: var(--text-faint-2);
  text-align: center; padding: 8px;
}
.card-gallery-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; gap: 5px; justify-content: center;
  pointer-events: none;
}
.card-gallery-dots[hidden] { display: none; }
.card-gallery-dots .dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.65);
  box-shadow: 0 0 0 1px rgba(43,38,32,0.15);
}
.card-gallery-dots .dot.active { background: var(--blue); width: 16px; border-radius: 999px; }

.card-gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.9); color: var(--text-muted);
  display: none; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; box-shadow: var(--shadow-card);
}
.card-gallery:hover .card-gallery-arrow { display: flex; }
.card-gallery-arrow.prev { left: 8px; }
.card-gallery-arrow.next { right: 8px; }
.card-gallery-arrow[hidden] { display: none !important; }

.card-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--blue); color: #fff; font-weight: 700; border-radius: var(--radius-pill);
  padding: 3px 11px; font-size: 12px; font-family: var(--font-display);
  pointer-events: none;
}
.card-badge.offer { left: auto; right: 10px; background: var(--red); font-weight: 800; }
.card-badge.soldout { left: auto; right: 10px; background: var(--gray-out); font-weight: 800; }

.card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-brand { font-size: 10.5px; font-weight: 800; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.07em; }
.card-name {
  font-weight: 800; color: var(--text); font-size: 14.5px; line-height: 1.25;
  text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.card-price { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); }
.card-price-before { font-size: 12.5px; color: var(--text-faint-2); text-decoration: line-through; }
.card-discount { background: var(--red-bg); color: var(--red-text); font-weight: 900; font-size: 11px; border-radius: var(--radius-pill); padding: 2px 8px; }

.card-actions { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 10px; }
.btn-add {
  background: var(--yellow); border: none; border-radius: var(--radius-pill);
  padding: 9px 12px; font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--yellow-text);
}
.btn-add:hover { background: var(--yellow-hover); }
.btn-add[disabled] {
  background: var(--border-soft); color: var(--text-faint-2); cursor: default;
}
.btn-consult {
  background: var(--surface-solid); border: 2px solid var(--green-border); border-radius: var(--radius-pill);
  padding: 7px 12px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--green-text);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-consult:hover { background: var(--green-bg); }
.btn-consult .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ==========================================================================
   Botones genéricos / whatsapp
   ========================================================================== */
.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green); color: #fff; border: none; border-radius: var(--radius-pill);
  padding: 15px; font-family: var(--font-display); font-weight: 700; font-size: 16px; width: 100%;
}
.btn-whatsapp:hover { background: var(--green-hover); }
.wa-icon { width: 15px; height: 13px; border: 2.5px solid currentColor; border-radius: 7px 7px 7px 1px; flex-shrink: 0; }

/* ==========================================================================
   Overlay genérico (fondo oscuro para drawers y modal)
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; background: rgba(43, 38, 32, 0.45);
  z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Drawer de filtros (mobile)
   ========================================================================== */
.filters-drawer {
  position: fixed; z-index: 70; inset: auto 0 0 0;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  max-height: 88vh;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  box-shadow: 0 -16px 48px rgba(43,38,32,0.25);
}
.filters-drawer.open { transform: translateY(0); }
@media (min-width: 960px) { .filters-drawer { display: none; } }

.drawer-header {
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--border-soft); flex-shrink: 0;
}
.drawer-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.drawer-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; }
.drawer-footer { padding: 14px 20px 20px; border-top: 2px solid var(--border-soft); flex-shrink: 0; }
.btn-primary-pill {
  width: 100%; background: var(--text); color: #fff; border: none; border-radius: var(--radius-pill);
  padding: 14px; font-family: var(--font-display); font-weight: 700; font-size: 16px;
}

.close-circle {
  width: 32px; height: 32px; border-radius: 50%; background: var(--border-soft); border: none;
  position: relative; flex-shrink: 0; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.close-circle:hover { background: var(--border); }

/* ==========================================================================
   Carrito: drawer lateral (desktop) / pantalla completa (mobile)
   ========================================================================== */
.cart-panel {
  position: fixed; z-index: 70;
  background: var(--surface);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease;
  box-shadow: -16px 0 48px rgba(43,38,32,0.25);
}
/* mobile: pantalla completa desde abajo */
.cart-panel {
  inset: auto 0 0 0; border-radius: 24px 24px 0 0; max-height: 92vh;
  transform: translateY(100%);
}
.cart-panel.open { transform: translateY(0); }
@media (min-width: 720px) {
  .cart-panel {
    inset: 0 0 0 auto; width: 420px; max-width: 92vw; max-height: none; border-radius: 0;
    transform: translateX(100%);
  }
  .cart-panel.open { transform: translateX(0); }
}

.cart-header { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--border-soft); flex-shrink: 0; }
.cart-count { color: var(--text-faint); font-weight: 700; }
.cart-items { flex: 1; padding: 16px 22px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }

.cart-empty { text-align: center; color: var(--text-faint); padding: 40px 10px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.cart-empty strong { color: var(--text); font-family: var(--font-display); font-size: 16px; }

.cart-item { display: flex; gap: 12px; align-items: flex-start; }
.cart-item-thumb {
  width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; overflow: hidden;
  background: repeating-linear-gradient(45deg,#FDF6E3,#FDF6E3 10px,#F7EED6 10px,#F7EED6 20px);
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-item-top { display: flex; justify-content: space-between; gap: 10px; }
.cart-item-name { font-weight: 800; font-size: 14px; line-height: 1.25; }
.cart-item-remove { font-size: 12px; font-weight: 800; color: var(--red-text); flex-shrink: 0; background: none; border: none; padding: 0; }
.cart-item-meta { font-size: 12px; color: var(--text-faint); font-weight: 700; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; }

.qty-stepper { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.qty-stepper button { width: 30px; height: 28px; border: none; background: #fff; font-size: 16px; font-weight: 900; color: var(--text-muted); }
.qty-stepper button.plus { color: var(--blue); }
.qty-stepper button:disabled { color: var(--text-faint); opacity: 0.45; cursor: not-allowed; }
.qty-stepper .qty-value { width: 26px; text-align: center; font-weight: 900; font-size: 14px; }

.cart-item-total { font-family: var(--font-display); font-weight: 700; font-size: 16px; }

.gift-banner {
  display: flex; align-items: center; gap: 10px;
  background: #FFF3D1; border-radius: 14px; padding: 12px 14px;
}
.gift-banner .box {
  width: 20px; height: 20px; border-radius: 6px; background: var(--yellow); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--yellow-text); font-size: 13px; font-weight: 900;
}
.gift-banner span:last-child { font-size: 13.5px; font-weight: 800; color: var(--yellow-text); }
.gift-banner input { position: absolute; opacity: 0; pointer-events: none; }
.gift-banner { border: none; text-align: left; cursor: pointer; width: 100%; }

.cart-footer { padding: 16px 22px 22px; border-top: 2px solid var(--border-soft); display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.cart-subtotal-row { display: flex; justify-content: space-between; align-items: baseline; }
.cart-subtotal-label { font-size: 15px; font-weight: 800; color: var(--text-muted); }
.cart-subtotal-value { font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.cart-footnote { font-size: 12px; color: var(--text-faint); text-align: center; text-wrap: pretty; }
.cart-continue { text-align: center; font-size: 13.5px; font-weight: 800; color: var(--blue); background: none; border: none; padding: 4px; }

/* ==========================================================================
   Modal de producto
   ========================================================================== */
.product-modal-wrap {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.product-modal-wrap.open { opacity: 1; pointer-events: auto; }
@media (min-width: 720px) { .product-modal-wrap { align-items: center; } }

.product-modal {
  background: var(--surface);
  width: 100%; max-width: 860px;
  max-height: 94vh;
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-modal);
  transform: translateY(24px);
  transition: transform 0.2s ease;
}
.product-modal-wrap.open .product-modal { transform: translateY(0); }
@media (min-width: 720px) {
  .product-modal { border-radius: 24px; display: flex; max-height: 90vh; }
}

.modal-content-inner { display: contents; }

.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; background: var(--border-soft); border: none;
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-muted);
}
.modal-close:hover { background: var(--border); }

.modal-gallery-wrap { position: relative; }
@media (min-width: 720px) { .modal-gallery-wrap { width: 380px; flex-shrink: 0; } }
.modal-gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 1/1;
}
.modal-gallery-track::-webkit-scrollbar { display: none; }
.modal-gallery-track .slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1/1; overflow: hidden; background: var(--surface-muted); }
.modal-gallery-track img { width: 100%; height: 100%; object-fit: cover; }
.modal-gallery-placeholder {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, #FDF6E3, #FDF6E3 16px, #F7EED6 16px, #F7EED6 32px);
  display: flex; align-items: center; justify-content: center;
  font-family: monospace; font-size: 12px; color: var(--text-faint-2); text-align: center; padding: 12px;
}
.modal-gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.modal-gallery-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.7); box-shadow: 0 0 0 1px rgba(43,38,32,0.15); }
.modal-gallery-dots .dot.active { background: var(--blue); width: 18px; border-radius: 999px; }
.modal-gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,0.92);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 900;
  box-shadow: var(--shadow-card);
}
.modal-gallery-arrow.prev { left: 12px; }
.modal-gallery-arrow.next { right: 12px; }
.modal-gallery-arrow[hidden] { display: none; }
.modal-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--blue); color: #fff; font-weight: 700; border-radius: var(--radius-pill);
  padding: 4px 13px; font-size: 13px; font-family: var(--font-display);
}
.modal-badge.offer { left: auto; right: 14px; background: var(--red); font-weight: 800; }

.modal-body { padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.modal-eyebrow { font-size: 11.5px; font-weight: 800; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.07em; }
.modal-title { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.15; text-wrap: pretty; }
.modal-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.modal-price { font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.modal-price-before { font-size: 15px; color: var(--text-faint-2); text-decoration: line-through; }
.modal-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-tag { font-weight: 800; font-size: 12.5px; border-radius: var(--radius-pill); padding: 5px 12px; }
.modal-tag.age { background: var(--blue-bg); color: var(--blue); }
.modal-tag.stock-ok { background: var(--green-bg); color: var(--green-text); }
.modal-tag.stock-out { background: var(--border-soft); color: var(--gray-out); }
.modal-tag.cat { background: var(--surface-muted); color: var(--text-muted); }
.modal-desc-box {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--surface-solid); border: 2px solid var(--border-soft); border-radius: 16px; padding: 14px 16px;
}
.modal-desc-label { font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.modal-desc-text { font-size: 14px; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.modal-actions .btn-add,
.modal-actions .btn-consult { flex: 1; min-width: 160px; padding: 13px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 48px; }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 36px 16px 24px;
  display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 960px) { .footer-inner { padding: 40px 32px 28px; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; } }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: #fff; }
.footer-desc { font-size: 14px; line-height: 1.6; text-wrap: pretty; }
.footer-label { font-weight: 900; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--footer-text-muted); }
.footer-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; color: var(--footer-accent);
  /* es un link: que se note y que tenga area de toque cómoda en el celu */
  text-decoration: none; padding: 6px 0; min-height: 40px;
}
.footer-whatsapp:hover { text-decoration: underline; }
.footer-whatsapp .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.footer-social { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.footer-social a { color: var(--footer-text); font-size: 14px; }
.footer-social a:hover { color: #fff; }
.footer-payments { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-payments span { background: var(--footer-bg-alt); border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.footer-bottom { border-top: 1px solid var(--footer-bg-alt); padding-top: 14px; font-size: 12.5px; color: var(--footer-text-muted); }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--text); color: #fff; padding: 12px 20px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 14px; box-shadow: var(--shadow-float);
  z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.toast-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* rebote para el 2do producto agregado seguido (ver showToast en main.js) */
.toast.bump { animation: toast-bump 0.3s ease; }
@keyframes toast-bump {
  0%   { transform: translate(-50%, 0) scale(1); }
  35%  { transform: translate(-50%, -5px) scale(1.04); }
  100% { transform: translate(-50%, 0) scale(1); }
}

/* saltito del globito del carrito al agregar */
.cart-badge.pop { animation: badge-pop 0.35s ease; }
@keyframes badge-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity 0.15s ease; transform: translate(-50%, 0); }
  .toast.bump, .cart-badge.pop { animation: none; }
}

/* focus visibility para accesibilidad con teclado */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}

body.no-scroll { overflow: hidden; }
