/* ============================================================
   Humart Design System — component classes.
   Subset del UI kit (ui_kits/storefront/storefront.css) con sólo
   las clases nuevas que añadimos en esta migración. Las clases
   existentes (.humart-*, .variant-option, .accordion-trigger, etc.)
   NO se tocan aquí — se siguen estilando desde sus partials.

   Convención: clases con prefijo h-* o nombres NO usados antes
   (.paychip, .pcard, .payrow, .h-hero, .h-trust-strip…).
   .btn / .btn-primary EXISTE ya en product.liquid con su propio
   estilo — para no chocar, exponemos .h-btn-* aquí y luego
   migramos selectores en pasos posteriores.
   ============================================================ */

/* ---------- Botones DS (no colisiona con .btn-primary del PDP) ---- */
.h-btn {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background var(--dur-2) var(--ease-out), transform 80ms, box-shadow var(--dur-2) var(--ease-out);
}
.h-btn:active { transform: scale(0.99); }
.h-btn-primary { background: var(--navy); color: #fff; }
.h-btn-primary:hover { background: var(--navy-900); }
.h-btn-on-dark { background: #fff; color: var(--navy); }
.h-btn-on-dark:hover { background: rgba(255,255,255,0.92); }
.h-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.32); }
.h-btn-ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); }
.h-btn-secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.h-btn-secondary:hover { background: var(--navy); color: #fff; }

/* ---------- Hero (home) ------------------------------------------ */
.h-hero {
  position: relative;
  min-height: 460px;
  background: linear-gradient(135deg, #0e1530 0%, #162041 60%, #1e2c54 100%);
  color: #fff;
  padding: clamp(40px, 8vw, 80px) clamp(20px, 4vw, 48px) clamp(48px, 9vw, 100px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.h-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 95%, rgba(58,99,255,0.28) 0%, transparent 55%),
    radial-gradient(circle at 90% 8%, rgba(46,204,143,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.h-hero > * { position: relative; z-index: 1; }
.h-hero .h-hero-inner { max-width: var(--page-width); margin: 0 auto; text-align: center; width: 100%; }
.h-hero .eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin: 0 0 16px;
}
.h-hero h1 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 12px 0 18px;
  text-wrap: balance;
  color: #fff;
}
.h-hero h1 em { font-style: italic; font-weight: 400; color: rgba(255,255,255,0.86); }
.h-hero p {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  margin: 0 auto 28px;
}
.h-hero .ctas {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}

/* ---------- Sección genérica DS ---------------------------------- */
.h-section { padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 48px); }
.h-section-inner { max-width: var(--page-width); margin: 0 auto; }
.h-section-heading {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px;
  flex-wrap: wrap;
}
.h-section-heading .eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 6px;
}
.h-section-heading h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.h-section-heading .more {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid var(--navy);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ---------- Product card DS -------------------------------------- */
.pcard {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  display: block;
}
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pcard .pic {
  aspect-ratio: 1/1;
  background: var(--bg-tint);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pcard .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease-out); }
.pcard:hover .pic img { transform: scale(1.05); }
.pcard .badge-disc {
  position: absolute; top: 8px; left: 8px;
  background: var(--coral); color: #fff; font-weight: 800; font-size: 10px;
  padding: 3px 7px; border-radius: var(--radius-xs); letter-spacing: 0.04em;
}
.pcard .badge-best {
  position: absolute; top: 8px; right: 8px;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 9px;
  padding: 3px 7px; border-radius: var(--radius-xs); letter-spacing: 0.08em; text-transform: uppercase;
}
.pcard .body { padding: 12px 14px 16px; }
.pcard .title {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 14px; color: var(--ink);
  line-height: 1.3; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard .rating {
  font-size: 11px; color: var(--fg-3); margin-bottom: 6px;
  display: flex; align-items: center; gap: 4px;
}
.pcard .rating .stars { color: #f59e0b; letter-spacing: 0.5px; }
.pcard .price-row { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.pcard .p-old { color: var(--fg-muted); text-decoration: line-through; font-size: 12px; font-weight: 500; }
.pcard .p-now { color: var(--coral); font-weight: 800; font-size: 16px; }
.pcard .p-flat { color: var(--ink); font-weight: 800; font-size: 16px; }
.pcard .stock {
  font-size: 11px; color: var(--mint-700); font-weight: 600; margin-top: 6px;
  display: inline-flex; align-items: center; gap: 4px;
}
.pcard .stock .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.pcard .stock.low { color: var(--coral-700); }
.pcard .stock.low .dot { background: var(--coral); }

/* ---------- Trust strip (h-trust) -------------------------------- */
.h-trust {
  background: #fff;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 32px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(18px, 3vw, 32px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: var(--page-width);
  margin: 0 auto;
}
.h-trust .item { display: flex; gap: 12px; align-items: flex-start; }
.h-trust .icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--mint-50);
  color: var(--mint-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.h-trust .icon svg { width: 20px; height: 20px; }
.h-trust .tt { font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.2; margin-bottom: 4px; }
.h-trust .sub { font-size: 12px; color: var(--fg-3); line-height: 1.4; }

/* ---------- Payment row + chips ---------------------------------- */
.payrow {
  background: #fff;
  padding: 20px clamp(16px, 3vw, 24px);
}
.payrow .lab {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
  text-align: center;
}
.payrow .row {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; align-items: center;
}
.paychip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; min-width: 50px;
  padding: 0 10px; gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  box-shadow: 0 1px 2px rgba(22,32,65,0.04);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.paychip:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.paychip svg { display: block; max-width: 100%; max-height: 20px; }
.paychip.wide { min-width: 60px; padding: 0 10px; }
.paychip.cod {
  background: var(--mint-50);
  border-color: rgba(46,204,143,0.45);
  color: var(--mint-700);
  padding: 0 12px;
}
.paychip.cod svg { width: 14px; height: 14px; }

/* Payment row en footer dark — chips fondo blanco siguen funcionando */
.humart-footer .payrow,
.h-footer-dark .payrow { background: transparent; padding: 0; }
.humart-footer .payrow .lab,
.h-footer-dark .payrow .lab { color: rgba(255,255,255,0.6); }

/* ---------- Modal scrim (para reuso COD futuro) ------------------ */
.h-modal-scrim { background: rgba(22,32,65,0.45); }

/* ---------- Utilidad rápida -------------------------------------- */
.h-tabular { font-variant-numeric: tabular-nums; }
.h-eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-3);
}
