/* tnm-revision-1 · revisión estética (entregas 28 y 33), subida con OK de Mathi del 11/11/2026.
   Tanda 1: tarjetas parejas (1), fondo sin cortes (3), títulos iguales (9), WhatsApp que no tapa (10). */
/* tnm-revision-1 · revisión estética (entrega 28). VISTA PREVIA: no está en la tienda.
   Tanda 1 · lo urgente: tarjetas parejas (1), fondo sin cortes (3), títulos iguales (9), WhatsApp que no tapa (10). */

/* ---------- 1 · Tarjetas: el formato del catálogo (foto 4:5 + sello) en «Destacados» y «Productos similares» ---------- */
.js-item-product.tnm-rev-tarjeta:not(.tnm-cat-sin) [style*="padding-bottom"] {
  padding-bottom: 125% !important;
  overflow: hidden;
}
.js-item-product.tnm-rev-tarjeta:not(.tnm-cat-sin) [style*="padding-bottom"] img.js-item-image {
  position: absolute !important;
  top: 0 !important; left: 50% !important; right: auto !important; bottom: auto !important;
  height: 116% !important; width: auto !important;
  max-width: none !important; max-height: none !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  transform: translateX(-50%) !important;
}
.js-item-product.tnm-rev-tarjeta.tnm-cat-nativa [style*="padding-bottom"] img.js-item-image {
  left: 0 !important; height: 100% !important; width: 100% !important; aspect-ratio: auto; transform: none !important;
}
/* en las tarjetas chicas del celular, el sello más chico */
@media (max-width: 767px) {
  .tnm-rev-tarjeta .tnm-cat-sello { font-size: 18px; padding: 30px 9px 9px; }
}

/* ---------- 3 · Fondo: las luces se mueven sin dejar ver la costura ----------
   Antes: la animación corría el dibujo y, como se repetía, aparecía una línea recta a la izquierda, a la derecha y abajo.
   Ahora las luces son más grandes que la pantalla, no se repiten y se mueven dentro de ese margen. */
body::before {
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat !important;
  background-size: calc(100% + 320px) calc(100% + 320px), calc(100% + 320px) calc(100% + 320px), 48px 48px, 48px 48px, auto !important;
  background-position: -160px -160px, -160px -160px, 0 0, 0 0, 0 0 !important;
  animation-name: tnm-rev-brillos !important;
}
@keyframes tnm-rev-brillos {
  from { background-position: -160px -160px, -160px -160px, 0 0, 0 0, 0 0; }
  to   { background-position: -80px -120px, -220px -210px, 0 0, 0 0, 0 0; }
}

/* ---------- 9 · «Destacados» y «Productos similares» como el resto de los títulos ---------- */
.section-featured-home .js-products-featured-title,
.section-products-related .products-section-title {
  margin: 0 0 26px !important;
  font-family: "Chakra Petch", sans-serif !important; font-size: 30px !important; font-weight: 700 !important;
  letter-spacing: .03em !important; text-transform: uppercase !important; color: #fff !important;
  text-align: center !important; line-height: 1.15 !important;
}
.section-products-related .products-section-title .tnm-pv-codigo { margin-bottom: 6px; }
@media (max-width: 767px) {
  .section-featured-home .js-products-featured-title,
  .section-products-related .products-section-title { font-size: 24px !important; margin-bottom: 20px !important; }
}

/* ---------- 10 · WhatsApp: más chico, más pegado a la esquina; en la ficha del celular no va ---------- */
.btn-whatsapp.js-btn-fixed-bottom {
  right: 10px !important; bottom: 10px !important;
  opacity: .92; box-shadow: 0 4px 14px rgba(0, 0, 0, .45) !important;
}
.btn-whatsapp.js-btn-fixed-bottom svg { width: 40px !important; height: 40px !important; padding: 9px !important; }
@media (max-width: 767px) {
  /* la ficha ya tiene «¿Dudas? Escribinos por WhatsApp» y la barra de compra */
  .template-product .btn-whatsapp.js-btn-fixed-bottom { display: none !important; }
}
