/* ==========================================================
   MABI EYEWEAR — AJUSTES ESTÉTICOS V5
   Sólo los puntos 3 (badges), 4 (tipografía), 6 (espacios).
   Intencionadamente NO se modifica BRIX, contador, imágenes,
   estados de stock ni la cuadrícula de 2 columnas en móvil.
   ========================================================== */

:root { --mabi-v5-amarillo: #F2C200; --mabi-v5-negro: #111111; }

/* 3 — Etiquetas uniformes, obtenidas del catálogo maestro.
   El JS sólo añade una clase según el texto de producto.etiqueta.
   SOLD OUT usa su sistema rojo existente: no tocar. */
html body #productos-coleccion .producto .producto-imagen-doble > .producto-etiqueta:not(.producto-etiqueta-soldout) {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: max-content !important;
  max-width: calc(100% - 16px) !important;
  min-height: 22px !important;
  padding: 6px 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--mabi-v5-negro) !important;
  color: #fff !important;
  font-family: 'Space Grotesk', Arial, sans-serif !important;
  font-size: 9px !important;
  font-weight: 750 !important;
  line-height: 1.1 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 8px rgba(0,0,0,.12) !important;
}
html body #productos-coleccion .producto .producto-imagen-doble > .producto-etiqueta.mabi-v5-casi-agotado:not(.producto-etiqueta-soldout) {
  background: var(--mabi-v5-amarillo) !important;
  color: var(--mabi-v5-negro) !important;
  box-shadow: 0 3px 8px rgba(65,53,0,.12) !important;
}
html body #productos-coleccion .producto .producto-imagen-doble > .producto-etiqueta.mabi-v5-mas-vendido:not(.producto-etiqueta-soldout) {
  background: var(--mabi-v5-negro) !important;
  color: #fff !important;
}

/* 4 — Títulos de colección: mayor jerarquía, identidad editorial. */
html body .coleccion .coleccion-titulo h2,
html body .mas-vendidas .mas-vendidas-titulo h2,
html body .mabi-moods .mabi-moods-header h2,
html body .mabi-pinta h2 {
  font-family: 'Space Grotesk', Arial, sans-serif !important;
  font-size: clamp(37px, 4.4vw, 60px) !important;
  font-weight: 700 !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
  text-wrap: balance;
}
html body .coleccion .coleccion-titulo > p,
html body .mas-vendidas .mas-vendidas-titulo > p,
html body .mabi-moods .mabi-moods-eyebrow {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .23em !important;
  line-height: 1.5 !important;
  text-transform: uppercase !important;
  opacity: .75 !important;
}
html body #productos-coleccion > .producto h3 {
  font-family: 'Space Grotesk', Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(16px, 1.35vw, 19px) !important;
  line-height: 1.16 !important;
  letter-spacing: -.02em !important;
}
html body #productos-coleccion > .producto > p {
  font-size: 10px !important;
  line-height: 1.4 !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
}

/* 6 — Aire y ritmo editorial.  NO cambia ni columnas ni orden. */
html body .coleccion { padding-top: clamp(72px, 7vw, 96px) !important; padding-bottom: clamp(76px, 7vw, 100px) !important; }
html body .mas-vendidas { padding-top: clamp(66px, 6.6vw, 88px) !important; padding-bottom: clamp(66px, 6.6vw, 88px) !important; }
html body .mabi-moods { padding-top: clamp(62px, 6vw, 86px) !important; padding-bottom: clamp(62px, 6vw, 86px) !important; }
html body .coleccion .coleccion-titulo,
html body .mas-vendidas .mas-vendidas-titulo { margin-bottom: 36px !important; }
html body .mabi-moods .mabi-moods-header { margin-bottom: 28px !important; }
html body #productos-coleccion { row-gap: 22px !important; column-gap: 18px !important; }
html body #productos-coleccion > .producto:not(.producto-soldout) {
  transition: transform .25s ease, box-shadow .25s ease !important;
}
html body #productos-coleccion > .producto .boton-producto {
  transition: opacity .25s ease, color .25s ease, letter-spacing .25s ease !important;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html body #productos-coleccion > .producto:not(.producto-soldout):hover { transform: translateY(-2px) !important; }
  html body #productos-coleccion > .producto:not(.producto-soldout) .boton-producto:hover { opacity: .7 !important; }
}

/* Móvil: mantener estrictamente 2 columnas del catálogo. */
@media (max-width: 768px) {
  html body .coleccion { padding-top: 54px !important; padding-bottom: 58px !important; }
  html body .mas-vendidas { padding-top: 55px !important; padding-bottom: 55px !important; }
  html body .mabi-moods { padding-top: 48px !important; padding-bottom: 48px !important; }
  html body .coleccion .coleccion-titulo h2,
  html body .mas-vendidas .mas-vendidas-titulo h2,
  html body .mabi-moods .mabi-moods-header h2,
  html body .mabi-pinta h2 {
    font-size: clamp(30px, 8.7vw, 39px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.045em !important;
  }
  html body .coleccion .coleccion-titulo,
  html body .mas-vendidas .mas-vendidas-titulo { margin-bottom: 25px !important; }
  html body .mabi-moods .mabi-moods-header { margin-bottom: 20px !important; }
  html body #productos-coleccion { row-gap: 16px !important; column-gap: 10px !important; }
  html body #productos-coleccion > .producto h3 { font-size: 15px !important; letter-spacing: -.01em !important; }
  html body #productos-coleccion > .producto > p { font-size: 9px !important; }
  html body #productos-coleccion .producto .producto-imagen-doble > .producto-etiqueta:not(.producto-etiqueta-soldout) {
    top: 8px !important;
    left: 8px !important;
    min-height: 20px !important;
    max-width: calc(100% - 16px) !important;
    padding: 5px 7px !important;
    font-size: clamp(7px, 2vw, 9px) !important;
    letter-spacing: .02em !important;
  }
}
@media (max-width: 360px) {
  html body #productos-coleccion .producto .producto-imagen-doble > .producto-etiqueta:not(.producto-etiqueta-soldout) {
    font-size: 7px !important;
    padding: 5px 6px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body #productos-coleccion > .producto,
  html body #productos-coleccion > .producto .boton-producto { transition: none !important; }
}
