/* ============================================================
   TIENDA — design system 2.0 (docs/design-system-v2/). ESCRITO A MANO.

   Solo para /ecommerce. Todo cuelga de body[data-ds="tienda"], que EcommerceApp
   pone en <body> mientras está montado y saca al desmontarse: el resto del sitio
   no lo ve nunca. Las clases van con prefijo `t-` para no chocar con las del
   sitio (styles/components.css), que viven en el mismo documento.

   El panel de contenido NO usa este archivo: sigue con el design system 1.0
   (styles/ecommerce.css + vendor/chiappo-ds.js), que no se tocó.

   A diferencia del 1.0, los componentes de la tienda son propios y llevan clases,
   así que el responsive vuelve a ser CSS: @media y listo.
   Cortes: 640 (tablet) y 960 (compu).
   ============================================================ */

body[data-ds="tienda"] {
  /* ——— Color: los mismos valores de la marca ——— */
  --t-ember: #E8472C;        /* acción y oferta */
  --t-ember-deep: #B43419;
  --t-ember-tint: #FCE9E4;
  --t-ink: #0E0E0E;          /* seleccionado, banner, aviso */
  --t-char: #2A2620;         /* texto */
  --t-bone: #F4EFE8;         /* pozo de foto */
  --t-bone-soft: #FAF6EF;
  --t-paper: #FFFFFF;        /* fondo y hojas */
  --t-fog: #E8E2D6;
  --t-hairline: #EFE9E0;
  --t-ash: #6B665E;
  --t-faint: #9A948A;
  --t-brass: #C8924A;
  --t-brass-soft: #E0B574;
  --t-brass-deep: #7A5520;
  --t-brass-tint: #F7EEDF;
  --t-ok: #4F6B2F;    --t-ok-tint: #EAF0E1;
  --t-order: #8A6A1F; --t-order-tint: #F7EEDF;
  --t-no: #8E2A18;    --t-no-tint: #F6E5E1;
  --t-red: #D32F2F;          /* solo las medidas de la tarjeta que no están en stock */
  --t-wa: #159447;           /* solo los botones que abren WhatsApp */
  --t-wa-deep: #0E7A39;
  --t-veil: rgba(14, 14, 14, .42);
  /* Lo que va sobre fondo oscuro (tinta, ember, el verde de WhatsApp) y sobre la foto. */
  --t-on-dark: #FFFFFF;                      /* letra e íconos */
  --t-on-dark-soft: rgba(255, 255, 255, .72); /* texto secundario */
  --t-on-dark-muted: rgba(255, 255, 255, .6); /* rótulos y contadores */
  --t-on-dark-line: rgba(255, 255, 255, .25); /* bordes */
  --t-on-dark-fill: rgba(255, 255, 255, .06); /* casilleros */
  --t-glass: rgba(255, 255, 255, .92);        /* botones y rótulos sobre la foto */
  --t-glass-strong: rgba(255, 255, 255, .96); /* barra superior de compu */
  --t-ink-hover: #2B2B2B;
  --t-ember-tint-hover: #F9DDD5;

  /* ——— Tipo ——— */
  --t-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --t-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* ——— Forma ——— */
  --t-r-xs: 8px; --t-r-sm: 12px; --t-r-md: 16px; --t-r-lg: 24px; --t-r-pill: 999px;
  --t-sh-rest: 0 1px 2px rgba(14, 14, 14, .05);
  --t-sh-raise: 0 8px 24px rgba(14, 14, 14, .08);
  --t-sh-float: 0 14px 36px rgba(14, 14, 14, .16);
  --t-sh-bar: 0 -6px 24px rgba(14, 14, 14, .06);    /* barra de compra fija abajo */
  --t-sh-ember: 0 6px 16px rgba(232, 71, 44, .32);  /* pastilla de la barra inferior */
  --t-fast: 150ms; --t-dur: 240ms;
  --t-ease: cubic-bezier(.2, .8, .2, 1);
  --t-spring: cubic-bezier(.34, 1.36, .64, 1);   /* solo la barra inferior */
  --t-max: 1200px;
  --t-gut-l: max(16px, env(safe-area-inset-left, 0px));
  --t-gut-r: max(16px, env(safe-area-inset-right, 0px));

  background: var(--t-paper);
  color: var(--t-char);
  font-family: var(--t-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Las reglas por elemento van dentro de :where() para que no sumen especificidad: un
   título blanco sobre negro (.t-banner h2) tiene que poder ganarle a esta base. */
:where(body[data-ds="tienda"]) :where(h1, h2, h3) { font-family: var(--t-sans); color: var(--t-ink); text-transform: none; text-wrap: balance; margin: 0; }
:where(body[data-ds="tienda"]) :where(button, input, select) { font-family: inherit; }
:where(body[data-ds="tienda"]) :focus-visible { outline: 2px solid var(--t-ember); outline-offset: 2px; }
:where(body[data-ds="tienda"]) .t-search input:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) {
  body[data-ds="tienda"] * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.t-app { min-height: 100vh; background: var(--t-paper); }
.t-wrap { max-width: var(--t-max); margin-inline: auto; padding-left: var(--t-gut-l); padding-right: var(--t-gut-r); }
.t-main { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
.t-main--bar { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
.t-ico { display: inline-grid; place-items: center; flex: none; line-height: 0; }
.t-ico svg { width: 100%; height: 100%; display: block; }
.t-mono { font-family: var(--t-mono); font-weight: 500; white-space: pre; letter-spacing: 0; }
.t-num { font-variant-numeric: tabular-nums; }
.t-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.t-block { padding-block: 12px; }
.t-block + .t-block { padding-top: 20px; }
.t-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.t-pagetitle { display: none; }
.t-muted { color: var(--t-ash); }

/* ───────── Botones: pastilla. Un solo ember por bloque. ───────── */
.t-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--t-r-pill); border: 1.5px solid transparent; font-weight: 700; font-size: 14px; letter-spacing: -.005em; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background var(--t-fast) var(--t-ease), border-color var(--t-fast) var(--t-ease), transform var(--t-fast) var(--t-ease); }
.t-btn:active { transform: scale(.97); }
.t-btn--primary { background: var(--t-ember); color: var(--t-on-dark); }
.t-btn--primary:hover { background: var(--t-ember-deep); }
.t-btn--wa { background: var(--t-wa); color: var(--t-on-dark); }
.t-btn--wa:hover { background: var(--t-wa-deep); }
.t-btn--dark { background: var(--t-ink); color: var(--t-on-dark); }
.t-btn--dark:hover { background: var(--t-ink-hover); }
.t-btn--outline { background: var(--t-paper); border-color: var(--t-fog); color: var(--t-ink); }
.t-btn--outline:hover { border-color: var(--t-ink); }
.t-btn--white { background: var(--t-paper); color: var(--t-ink); }
.t-btn--white:hover { background: var(--t-bone); }
.t-btn--ghost { background: transparent; color: var(--t-ink); padding: 0 12px; }
.t-btn--ghost:hover { background: var(--t-bone); }
.t-btn--s { height: 36px; padding: 0 14px; font-size: 13px; }
.t-btn--l { height: 52px; padding: 0 24px; font-size: 15px; }
.t-btn--block { width: 100%; }
.t-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.t-icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--t-hairline); background: var(--t-paper); color: var(--t-ink); cursor: pointer; flex: none; padding: 0; transition: border-color var(--t-fast) var(--t-ease), background var(--t-fast) var(--t-ease); }
.t-icon-btn:hover { border-color: var(--t-fog); background: var(--t-bone-soft); }
.t-icon-btn--s { width: 36px; height: 36px; }
.t-icon-btn--solid { background: var(--t-ink); border-color: var(--t-ink); color: var(--t-on-dark); }
.t-icon-btn--solid:hover { background: var(--t-ink-hover); border-color: var(--t-ink-hover); }
.t-icon-btn--glass { background: var(--t-glass); border-color: transparent; box-shadow: var(--t-sh-rest); }
.t-count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--t-r-pill); background: var(--t-ember); color: var(--t-on-dark); font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--t-paper); font-variant-numeric: tabular-nums; line-height: 1; }
.t-count.is-bump { animation: t-bump 520ms var(--t-spring); }

.t-link { all: unset; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--t-ember-deep); white-space: nowrap; }
.t-link:hover { text-decoration: underline; }
.t-link:focus-visible { outline: 2px solid var(--t-ember); outline-offset: 2px; border-radius: 4px; }

/* ───────── Chips y sobremedidas ───────── */
.t-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--t-r-pill); border: 1.5px solid var(--t-fog); background: var(--t-paper); color: var(--t-char); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; flex: none; transition: all var(--t-fast) var(--t-ease); }
.t-chip:hover { border-color: var(--t-ink); }
.t-chip.is-on { background: var(--t-ink); border-color: var(--t-ink); color: var(--t-on-dark); }
.t-chip__n { font-weight: 500; color: var(--t-faint); font-variant-numeric: tabular-nums; }
.t-chip.is-on .t-chip__n { color: var(--t-on-dark-muted); }
.t-chip--tag { background: var(--t-bone); border-color: var(--t-bone); height: 30px; padding: 0 8px 0 12px; font-size: 12.5px; }
.t-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.t-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.t-size { position: relative; min-width: 60px; height: 44px; padding: 0 14px; border-radius: var(--t-r-pill); border: 1.5px solid var(--t-fog); background: var(--t-paper); font-family: var(--t-mono); font-weight: 600; font-size: 13px; color: var(--t-ink); cursor: pointer; transition: all var(--t-fast) var(--t-ease); }
.t-size:hover { border-color: var(--t-ink); }
.t-size.is-on { background: var(--t-ink); border-color: var(--t-ink); color: var(--t-on-dark); }
/* Cada medida con el color de su disponibilidad, los de .t-stock: verde en stock, ocre a
   pedido. La elegida se rellena de su color y lleva un aro, así no pierde el color. */
.t-size--yes { border-color: var(--t-ok); background: var(--t-ok-tint); color: var(--t-ok); }
.t-size--order { border-color: var(--t-order); background: var(--t-order-tint); color: var(--t-order); }
.t-size--yes:hover, .t-size--order:hover { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.t-size.is-on.t-size--yes { background: var(--t-ok); border-color: var(--t-ok); color: var(--t-on-dark); box-shadow: 0 0 0 2px var(--t-paper), 0 0 0 4px var(--t-ok); }
.t-size.is-on.t-size--order { background: var(--t-order); border-color: var(--t-order); color: var(--t-on-dark); box-shadow: 0 0 0 2px var(--t-paper), 0 0 0 4px var(--t-order); }
/* Los puntitos de la leyenda de los botones. */
.t-mdot { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.t-mdot::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--t-ok); }
.t-mdot--order::before { background: var(--t-order); }
/* Las medidas de la tarjeta: pastilla llena con la letra blanca adentro, verde en stock y
   rojo a pedido (pedido del dueño, 2026-10-30: con los puntitos no se llegaba a ver el
   stock). Solo acá: los botones de la ficha y del "+" y la etiqueta "A pedido" no cambian. */
.t-mdots { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; font-family: var(--t-mono); font-size: 11.5px; font-weight: 600; }
.t-mdots .t-mdot { height: 22px; padding: 0 8px; border-radius: var(--t-r-pill); background: var(--t-ok); color: var(--t-on-dark); }
.t-mdots .t-mdot--order { background: var(--t-red); }
.t-mdots .t-mdot::before { content: none; }
.t-leyenda { display: inline-flex; gap: 12px; font-size: 12px; font-weight: 500; color: var(--t-ash); }

/* ───────── Etiquetas y disponibilidad ───────── */
.t-badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: var(--t-r-xs); font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-badge--ember { background: var(--t-ember); color: var(--t-on-dark); }
.t-badge--dark { background: var(--t-ink); color: var(--t-on-dark); }
.t-badge--brass { background: var(--t-brass-tint); color: var(--t-brass-deep); }
.t-badge--neutral { background: var(--t-bone); color: var(--t-char); }
.t-badge--outline { background: transparent; color: var(--t-char); box-shadow: inset 0 0 0 1.5px var(--t-fog); }
.t-badge--s { height: 20px; padding: 0 7px; font-size: 11px; }
.t-stock { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--t-r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; }
.t-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.t-stock--yes { color: var(--t-ok); background: var(--t-ok-tint); }
.t-stock--order { color: var(--t-order); background: var(--t-order-tint); }
.t-stock--no { color: var(--t-no); background: var(--t-no-tint); }
.t-stock--other { color: var(--t-ash); background: var(--t-bone); }
.t-stock--text { height: auto; padding: 0; background: none; font-size: 11.5px; font-weight: 600; }

/* ───────── Precio ───────── */
.t-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; min-width: 0; }
.t-price__now { font-weight: 800; font-size: 16px; color: var(--t-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.t-price__was { font-size: 12px; font-weight: 500; color: var(--t-faint); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.t-price__ask { font-weight: 700; font-size: 14px; color: var(--t-ash); }
.t-price__note { flex-basis: 100%; font-size: 12px; color: var(--t-faint); font-weight: 500; }
.t-price--l .t-price__now { font-size: 26px; }
.t-price--l .t-price__was { font-size: 14px; }
.t-price--l .t-price__ask { font-size: 20px; }

/* ───────── Buscador ───────── */
.t-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 18px; border-radius: var(--t-r-pill); background: var(--t-bone-soft); border: 1.5px solid var(--t-hairline); transition: border-color var(--t-fast) var(--t-ease), background var(--t-fast) var(--t-ease); }
.t-search:focus-within { border-color: var(--t-ink); background: var(--t-paper); }
.t-search > .t-ico { color: var(--t-ash); }
.t-search input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; background: transparent; font-size: 16px; font-weight: 500; color: var(--t-ink); outline: none; }
.t-search input::placeholder { color: var(--t-faint); font-weight: 500; }
.t-search .t-icon-btn { width: 40px; height: 40px; }
.t-search--mono input { font-family: var(--t-mono); font-weight: 600; }
/* La cruz azul de los campos "search" la dibuja el navegador, con su color y descentrada.
   Se esconde en todos los buscadores de la tienda: en el de arriba y en el de resultados la
   reemplaza la lupa de la derecha, que busca (dueño, 2026-11-24). */
.t-search input::-webkit-search-cancel-button,
.t-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.t-search__go { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; margin: 0 -1px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--t-ink); cursor: pointer; transition: background var(--t-fast) var(--t-ease); }
.t-search__go:hover { background: var(--t-bone); }
.t-search__go:focus-visible { outline: 2px solid var(--t-ember); outline-offset: 1px; }

/* ───────── Cantidad ───────── */
.t-stepper { display: inline-flex; align-items: center; height: 44px; border-radius: var(--t-r-pill); background: var(--t-bone); padding: 4px; }
.t-stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--t-paper); display: grid; place-items: center; cursor: pointer; color: var(--t-ink); box-shadow: var(--t-sh-rest); padding: 0; }
.t-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.t-stepper output { min-width: 36px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--t-ink); }
.t-stepper--s { height: 36px; padding: 3px; }
.t-stepper--s button { width: 30px; height: 30px; }
.t-stepper--s output { min-width: 28px; font-size: 13px; }

/* ───────── Foto: pozo hueso ─────────
   Las fotos del recorte vienen sobre blanco; multiply las funde con el hueso.
   El logo va ENCIMA de toda foto real (decisión del 2026-10-19, ver CLAUDE.md):
   un SVG del tamaño del recuadro; cuántos logos, dónde y con qué opacidad lo dice
   window.EC_LOGO (src/ecommerce/logo.js). */
.t-photo { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; width: 100%; max-width: 100%; background: var(--t-bone); overflow: hidden; color: var(--t-faint); border-radius: var(--t-r-md); }
.t-photo > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.t-photo__empty { display: grid; justify-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; text-align: center; padding: 8px; }
.t-photo--dib > img:first-child { padding: 6%; mix-blend-mode: normal; }
/* El aviso de una foto de caja, sobre o etiqueta (EC_UI.AVISO_CAJA): abajo, sobre la foto. En
   la tarjeta deja lugar al "+" de agregar; en la ficha va arriba del contador de fotos. */
.t-photo__aviso { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1; padding: 4px 8px; border-radius: var(--t-r-xs); background: var(--t-glass); color: var(--t-ink); font-size: 11px; font-weight: 600; line-height: 1.3; text-align: center; pointer-events: none; }
.t-pcard__media .t-photo__aviso { right: 58px; text-align: left; }
.t-prow .t-photo__aviso { left: 3px; right: 3px; bottom: 3px; padding: 2px 4px; border-radius: 6px; font-size: 8.5px; line-height: 1.2; }

/* ───────── Tarjeta de producto ───────── */
.t-pcard { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.t-pcard__media { position: relative; }
.t-pcard__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 1; pointer-events: none; }
.t-pcard__add { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.t-pcard__body { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; min-width: 0; }
.t-pcard__meta { font-size: 12px; font-weight: 600; color: var(--t-ash); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-pcard__name { all: unset; cursor: pointer; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--t-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.t-pcard__name::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--t-r-md); }
.t-pcard__name:focus-visible::after { outline: 2px solid var(--t-ember); outline-offset: 3px; }
.t-pcard__code { font-size: 11.5px; color: var(--t-ash); overflow: hidden; text-overflow: ellipsis; }
.t-pcard__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.t-pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.t-pcard .t-photo > img:first-child { transition: transform var(--t-dur) var(--t-ease); }
.t-pcard:hover .t-photo > img:first-child { transform: scale(1.03); }

/* Fila: la misma información en lista. */
.t-prow { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--t-hairline); }
.t-prow .t-photo { width: 84px; height: 84px; border-radius: var(--t-r-sm); }
.t-prow .t-photo__empty span { display: none; }
.t-prow__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.t-prow__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.t-prow__side { position: absolute; top: 10px; right: 0; z-index: 2; }
.t-prow--cart .t-prow__main { padding-right: 44px; }
.t-prow .t-stepper { position: relative; z-index: 2; }

.t-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 640px) { .t-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .t-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; } }
.t-skel { aspect-ratio: 3 / 4; border-radius: var(--t-r-md); background: var(--t-bone-soft); }

/* ───────── Bloques de la portada ───────── */
.t-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 8px; min-height: 168px; padding: 22px 0 22px 22px; border-radius: var(--t-r-lg); background: var(--t-ink); color: var(--t-on-dark); overflow: hidden; }
.t-banner__eyebrow { font-size: 12px; font-weight: 700; color: var(--t-ember); letter-spacing: .02em; }
.t-banner h2 { color: var(--t-on-dark); font-size: 21px; line-height: 1.2; letter-spacing: -.02em; margin: 6px 0 8px; }
.t-banner p { font-size: 13px; color: var(--t-on-dark-soft); margin: 0 0 14px; max-width: 34ch; }
.t-banner__art { align-self: stretch; display: grid; place-items: center; min-width: 0; }
.t-banner__art img { width: min(120px, 80%); height: auto; }
.t-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.t-sechead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.t-sechead h2 { font-size: 18px; letter-spacing: -.015em; }
.t-sechead p { font-size: 13px; color: var(--t-ash); margin: 2px 0 0; }
.t-sechead__side { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--t-ash); font-weight: 600; white-space: nowrap; }
.t-countdown { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--t-r-pill); background: var(--t-ember); color: var(--t-on-dark); font-weight: 800; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-infocard { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--t-r-md); border: 1.5px solid var(--t-hairline); background: var(--t-paper); min-width: 0; }
.t-infocard__ic { width: 40px; height: 40px; border-radius: 50%; background: var(--t-bone); display: grid; place-items: center; color: var(--t-ink); flex: none; }
.t-infocard__txt { flex: 1; min-width: 0; }
.t-infocard__label { font-size: 12px; color: var(--t-ash); font-weight: 500; }
.t-infocard__value { font-size: 14px; font-weight: 700; color: var(--t-ink); overflow-wrap: anywhere; }
/* Varios datos cortos en una sola tarjeta (InfoList): un renglón cada uno. */
.t-infolist { display: grid; grid-template-columns: minmax(0, 1fr); padding: 2px 14px; border-radius: var(--t-r-md); border: 1.5px solid var(--t-hairline); background: var(--t-paper); min-width: 0; }
.t-infolist__row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; font-size: 13.5px; line-height: 1.4; font-weight: 700; color: var(--t-ink); overflow-wrap: anywhere; }
.t-infolist__row + .t-infolist__row { border-top: 1px solid var(--t-hairline); }
.t-infolist__row svg { flex: none; margin-top: 1px; color: var(--t-ash); }
.t-infolist__row small { font-size: inherit; font-weight: 500; color: var(--t-ash); }
.t-home-rubros__mas { display: flex; justify-content: center; margin-top: 18px; }

/* ───────── Listas y datos ───────── */
.t-spec { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); border-radius: var(--t-r-md); background: var(--t-bone-soft); padding: 4px 16px; }
.t-spec dt, .t-spec dd { padding: 11px 0; border-bottom: 1px solid var(--t-hairline); margin: 0; font-size: 13.5px; }
.t-spec dt { color: var(--t-ash); font-weight: 500; padding-right: 16px; }
.t-spec dd { color: var(--t-ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.t-spec dt:last-of-type, .t-spec dd:last-of-type { border-bottom: 0; }
.t-spec__linea { display: block; }
.t-spec__linea + .t-spec__linea { margin-top: 4px; }

/* El "?" de un dato en duda (EC_UI.Duda) y su aviso. */
.t-duda { position: relative; display: inline-block; margin-left: 6px; vertical-align: 1px; }
.t-duda__btn { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--t-brass); background: var(--t-brass-tint); color: var(--t-brass-deep); font: 700 11px/1 var(--t-sans); cursor: help; padding: 0; }
.t-duda__btn:focus-visible { outline: 2px solid var(--t-ink); outline-offset: 2px; }
/* Centrado sobre el signo y en varias líneas: desde 2026-11-25 también lleva notas largas (la "i" del Ø semiterminado
   de las camisas), que en una línea se iban de la pantalla del celular. */
.t-duda__pop { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 6px); z-index: 4; width: max-content; max-width: min(240px, 80vw); white-space: normal; line-height: 1.35; padding: 6px 10px; border-radius: var(--t-r-xs); background: var(--t-ink); color: var(--t-on-dark); font-size: 12px; font-weight: 600; box-shadow: var(--t-sh-raise); }

/* Lo que trae un juego de juntas, renglón por renglón. */
.t-contenido { list-style: none; margin: 0; padding: 4px 16px; border-radius: var(--t-r-md); background: var(--t-bone-soft); }
.t-contenido li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--t-hairline); font-size: 13.5px; color: var(--t-ink); }
.t-contenido li:last-child { border-bottom: 0; }
.t-contenido__cant { color: var(--t-ash); font-variant-numeric: tabular-nums; text-align: right; }
.t-contenido__ref { color: var(--t-ash); font-size: 12px; }
/* Una lista de texto solo (vehículos y notas del fabricante): sin la columna de la cantidad. */
.t-contenido--texto li { grid-template-columns: minmax(0, 1fr); }
.t-pdp__sub { font-size: 13px; font-weight: 600; color: var(--t-ash); margin: 12px 0 6px; }
.t-lrow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--t-hairline); background: none; cursor: pointer; text-align: left; color: inherit; }
.t-lrow:hover { background: var(--t-bone-soft); }
.t-lrow__txt { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--t-ink); }
.t-lrow > .t-ico:last-child { color: var(--t-faint); }
.t-monomark { width: 32px; height: 32px; border-radius: 50%; background: var(--t-bone); display: grid; place-items: center; font-weight: 800; font-size: 11px; color: var(--t-ink); flex: none; }
.t-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--t-r-md); background: var(--t-bone-soft); border: 1px solid var(--t-hairline); font-size: 13.5px; color: var(--t-char); }
.t-note > .t-ico { color: var(--t-ember-deep); margin-top: 2px; }

/* Equivalencias: una fila por marca. */
.t-eq { display: grid; gap: 8px; }
.t-eq__row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border-radius: var(--t-r-md); border: 1.5px solid var(--t-hairline); background: var(--t-paper); }
.t-eq__row[data-link] { cursor: pointer; }
.t-eq__row[data-link]:hover { border-color: var(--t-ink); }
.t-eq__row.is-actual { border-color: var(--t-ink); background: var(--t-bone-soft); }
.t-eq__brand { font-size: 12px; font-weight: 700; color: var(--t-ash); }
.t-eq__code { font-size: 14px; color: var(--t-ink); }
.t-eq__app { grid-column: 1 / -1; font-size: 12.5px; color: var(--t-ash); }
.t-eq__side { grid-row: 1 / 3; grid-column: 2; display: grid; justify-items: end; align-content: start; gap: 4px; }

/* Carrusel de celular: llega hasta el borde de la pantalla, pero el primer y el último
   elemento quedan en el margen de la página.
   - scroll-padding: sin él, el imán del deslizamiento alinea el primer elemento contra el
     borde de la caja, que está 16 px afuera de la página. El navegador corre el carrusel
     esos 16 px apenas carga (pasaba en los cuatro carruseles de la tienda, 2026-10-24).
   - El aire del final es un ::after y no padding-right: en una caja flex que desliza,
     Safari no siempre cuenta el relleno del final. Ancho: el margen menos el gap. */
.t-hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--t-gut-l); scroll-padding-right: var(--t-gut-r); margin-left: calc(-1 * var(--t-gut-l)); margin-right: calc(-1 * var(--t-gut-r)); padding-left: var(--t-gut-l); padding-bottom: 4px; scrollbar-width: none; }
.t-hscroll::-webkit-scrollbar { display: none; }
.t-hscroll::after { content: ""; flex: none; width: calc(var(--t-gut-r) - 12px); }
.t-hscroll > * { scroll-snap-align: start; }
.t-hscroll__card { width: 164px; flex: none; }
.t-hscroll__pres { font-size: 12px; line-height: 1.35; color: var(--t-ash); margin: 6px 2px 0; }
/* Rubros en dos filas, llenando por columnas: A arriba, B abajo, C al lado de A, D abajo
   de C (pedido del dueño, 2026-10-24). Las dos fichas de una columna toman el ancho de la
   más larga, así las columnas quedan parejas. El ::after ocupa las dos filas para ser su
   propia columna: si cayera en el hueco de abajo de la última, no dejaría aire al final. */
.t-hscroll--2 { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: max-content; gap: 8px; }
.t-hscroll--2 > .t-chip { justify-content: center; }
.t-hscroll--2::after { grid-row: 1 / -1; width: calc(var(--t-gut-r) - 8px); }
.t-hscroll--2 > .t-chip--all { grid-row: 1 / -1; height: auto; border-radius: var(--t-r-md); }

/* ───────── Estados ───────── */
.t-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 16px; }
.t-empty__ic { width: 64px; height: 64px; border-radius: 50%; background: var(--t-bone); display: grid; place-items: center; color: var(--t-ash); }
.t-empty h3 { font-size: 17px; }
.t-empty p { color: var(--t-ash); max-width: 42ch; font-size: 13.5px; margin: 0; }
.t-empty__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.t-empty__hint { font-size: 13px; font-weight: 600; color: var(--t-ash); }
/* "Tus últimas búsquedas", arriba del cartel de arranque de Buscar. */
.t-recientes { margin-top: 18px; }
.t-recientes .t-sechead { margin-bottom: 10px; }
.t-recientes .t-sechead h2 { font-size: 15px; }
.t-recientes .t-chip svg { color: var(--t-ash); }
.t-rubros-f { margin: 4px 0 8px; }
.t-tel { color: inherit; text-decoration: underline; text-decoration-color: var(--t-fog); text-underline-offset: 3px; }
.t-cart__seguir { margin-top: 12px; }

/* ───────── Cabeceras ───────── */
.t-wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; color: var(--t-ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
/* El logo del negocio (el mismo que va sobre las fotos), arriba a la izquierda. El
   micrómetro sube por encima del nombre, así que pide más alto que una línea de texto. */
.t-wordmark img { height: 52px; width: auto; display: block; }
.t-mhead .t-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.t-mhead h1 { font-size: 22px; letter-spacing: -.025em; }
.t-mhead__lead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-mhead__lead small { display: block; font-size: 12.5px; color: var(--t-ash); font-weight: 500; }
.t-mhead__actions { display: flex; gap: 8px; }
.t-topbar { display: none; position: sticky; top: 0; z-index: 30; background: var(--t-glass-strong); border-bottom: 1px solid var(--t-hairline); }
.t-topbar .t-wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.t-topbar form { flex: 1; max-width: 460px; }
.t-topbar nav { display: flex; gap: 2px; margin-left: auto; }
.t-topbar nav button { all: unset; cursor: pointer; height: 40px; padding: 0 13px; border-radius: var(--t-r-pill); font-weight: 700; font-size: 14px; color: var(--t-ash); display: inline-flex; align-items: center; }
.t-topbar nav button:hover { color: var(--t-ink); background: var(--t-bone-soft); }
.t-topbar nav button.is-on { color: var(--t-ink); background: var(--t-bone); }
.t-topbar nav button:focus-visible { outline: 2px solid var(--t-ember); }
.t-topbar__exit { font-size: 12.5px; font-weight: 600; color: var(--t-ash); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.t-topbar__exit:hover { color: var(--t-ink); }
.t-foot { display: none; border-top: 1px solid var(--t-hairline); background: var(--t-bone-soft); }
.t-foot .t-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 28px; font-size: 13px; color: var(--t-ash); }
.t-foot a { color: var(--t-ink); font-weight: 600; text-decoration: none; }

/* Selector de modo de búsqueda */
.t-seg { display: flex; gap: 2px; padding: 4px; border-radius: var(--t-r-pill); background: var(--t-bone); }
.t-seg button { flex: 1; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: var(--t-r-pill); border: 0; background: transparent; color: var(--t-ash); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background var(--t-fast) var(--t-ease), color var(--t-fast) var(--t-ease); }
.t-seg button.is-on { background: var(--t-paper); color: var(--t-ink); box-shadow: var(--t-sh-rest); }
/* Con el buscador por medidas son tres modos: en un celular angosto no entran con el aire
   de escritorio. Se achica el relleno y la letra, nunca se corta un rótulo. */
@media (max-width: 480px) {
  .t-seg button { min-width: 0; padding: 0 6px; gap: 5px; font-size: 12.5px; }
  .t-seg button .t-ico { width: 15px !important; height: 15px !important; }
}

/* ───────── Barra inferior flotante ─────────
   La pastilla ember es un elemento aparte que se desliza (y se estira) hasta la
   pestaña tocada; los íconos se reacomodan con la misma curva. Ver BottomNav en
   src/ecommerce/ui.js: mide antes y después del cambio y anima la diferencia. */
.t-bnav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 40; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 2px; width: min(calc(100% - 32px), 420px); padding: 7px; border-radius: var(--t-r-pill); background: var(--t-paper); box-shadow: var(--t-sh-float); border: 1px solid var(--t-hairline); animation: t-bnav-in 560ms var(--t-spring) both; }
.t-bnav__pill { position: absolute; top: 7px; bottom: 7px; left: 0; width: 0; z-index: -1; opacity: 0; border-radius: var(--t-r-pill); background: var(--t-ember); box-shadow: var(--t-sh-ember); transition: transform 440ms var(--t-spring), width 440ms var(--t-spring), opacity var(--t-dur) var(--t-ease); }
.t-bnav__item { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; min-width: 46px; padding: 0 12px; border-radius: var(--t-r-pill); border: 0; background: transparent; color: var(--t-ash); cursor: pointer; font-weight: 700; font-size: 13px; transition: color var(--t-dur) var(--t-ease), transform 440ms var(--t-spring); }
.t-bnav__item:hover { color: var(--t-ink); }
.t-bnav__item .t-ico { transition: transform var(--t-fast) var(--t-ease); }
.t-bnav__item:active .t-ico { transform: scale(.84); }
.t-bnav__label { display: none; white-space: nowrap; }
.t-bnav__item.is-on { color: var(--t-on-dark); padding: 0 16px; }
.t-bnav__item.is-on .t-bnav__label { display: inline; }
.t-bnav__item.is-arriving .t-bnav__label { animation: t-bnav-label 320ms var(--t-ease) 100ms both; }
.t-bnav__item.is-arriving .t-ico { animation: t-bnav-pop 520ms var(--t-spring); }
.t-bnav__item .t-count { top: 4px; right: 2px; }
@media (max-width: 380px) { .t-bnav__item.is-on { padding: 0 12px; } .t-bnav__item { min-width: 42px; padding: 0 9px; } }

/* Barra de compra (ficha) y de cierre (pedido) */
.t-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; align-items: center; padding: 12px var(--t-gut-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--t-gut-l); background: var(--t-paper); border-top: 1px solid var(--t-hairline); box-shadow: var(--t-sh-bar); }
.t-actionbar .t-btn { flex: 1; }
.t-actionbar__total { flex: none; display: flex; flex-direction: column; line-height: 1.2; padding-right: 4px; }
.t-actionbar__total small { font-size: 12px; color: var(--t-ash); font-weight: 500; }
.t-actionbar__total strong { font-size: 18px; font-weight: 800; color: var(--t-ink); font-variant-numeric: tabular-nums; }

/* Hoja inferior */
.t-veil { position: fixed; inset: 0; z-index: 70; background: var(--t-veil); display: flex; align-items: flex-end; justify-content: center; animation: t-fade var(--t-dur) var(--t-ease); }
.t-sheet { width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; background: var(--t-paper); border-radius: var(--t-r-lg) var(--t-r-lg) 0 0; padding: 10px var(--t-gut-r) calc(20px + env(safe-area-inset-bottom, 0px)) var(--t-gut-l); animation: t-rise var(--t-dur) var(--t-ease); }
.t-sheet__grip { width: 40px; height: 4px; border-radius: 4px; background: var(--t-fog); margin: 0 auto 14px; }
.t-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.t-sheet__head h2 { font-size: 18px; }
.t-sheet__group { padding: 14px 0; border-bottom: 1px solid var(--t-hairline); }
.t-sheet__group:last-of-type { border-bottom: 0; }
.t-sheet__label { font-size: 13px; font-weight: 700; color: var(--t-ink); margin-bottom: 10px; }
.t-sheet__foot { display: flex; gap: 10px; padding-top: 14px; }
.t-sheet__foot .t-btn { flex: 1; }
/* El panel del "+" para elegir la medida (ElegirMedida, ui.js). */
.t-pick { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--t-hairline); }
.t-pick > .t-photo { width: 64px; height: 64px; flex: none; border-radius: var(--t-r-sm); }
.t-pick > .t-photo .t-photo__empty span { display: none; }
.t-pick__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-pick__name { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--t-ink); overflow-wrap: anywhere; }
.t-pick__sel { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 44px; margin-top: 14px; }
.t-pick__code { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t-ash); flex-wrap: wrap; }
.t-pick__hint { font-size: 13px; color: var(--t-ash); }
.t-pick__qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.t-pick__qty .t-sheet__label { margin: 0; }

/* Aviso */
.t-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--t-r-pill); background: var(--t-ink); color: var(--t-on-dark); font-weight: 600; font-size: 13.5px; box-shadow: var(--t-sh-float); animation: t-rise var(--t-dur) var(--t-ease); }
.t-toast .t-ico { color: var(--t-ember); }

/* ───────── Pantallas ───────── */
.t-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 8px; }
.t-results-bar strong { font-size: 14px; color: var(--t-ink); }
.t-results-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
/* En Buscar los filtros puestos van en el renglón de la cuenta: si no entran se deslizan
   de costado. (Buscar por medidas los deja en renglón aparte: pueden ser siete.) */
.t-results-bar--tags { justify-content: flex-start; gap: 10px; margin: 12px 0 10px; }
.t-results-bar--tags > strong, .t-results-bar--tags > .t-toggle { flex: none; }
.t-results-bar--tags > .t-results-tags { flex: 1; min-width: 0; flex-wrap: nowrap; margin-bottom: 0; overflow-x: auto; scrollbar-width: none; }
.t-results-bar--tags > .t-results-tags::-webkit-scrollbar { display: none; }
.t-results-bar--tags .t-chip { flex: none; }
.t-redir { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 14px; border-radius: var(--t-r-md); background: var(--t-bone-soft); font-size: 13px; color: var(--t-ash); }
.t-redir strong { color: var(--t-ink); }
.t-toggle { display: inline-flex; background: var(--t-bone); border-radius: var(--t-r-pill); padding: 3px; }
.t-toggle button { width: 34px; height: 30px; border-radius: var(--t-r-pill); border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--t-ash); padding: 0; }
.t-toggle button.is-on { background: var(--t-paper); color: var(--t-ink); box-shadow: var(--t-sh-rest); }
.t-searchrow { display: flex; gap: 10px; align-items: center; }
.t-searchrow .t-search { flex: 1; }
.t-sticky { position: sticky; top: 0; z-index: 20; background: var(--t-paper); padding-block: 8px; }
.t-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; font-size: 13px; color: var(--t-ash); }

/* Ficha */
.t-pdp { display: grid; grid-template-columns: minmax(0, 1fr); }
.t-gallery { position: relative; min-width: 0; }
.t-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.t-gallery__track::-webkit-scrollbar { display: none; }
.t-gallery__slide { flex: 0 0 100%; scroll-snap-align: start; }
.t-gallery .t-photo { border-radius: 0; max-height: 62vh; }
/* Sin foto ni dibujo, el pozo va bajo en el celular: alcanza para los botones de volver y
   compartir y el cartel. En compu sigue cuadrado (es una de las dos columnas). */
@media (max-width: 959px) { .t-gallery--vacia .t-photo { aspect-ratio: auto; height: 190px; } }
.t-gallery__tools { position: absolute; top: 14px; left: var(--t-gut-l); right: var(--t-gut-r); display: flex; justify-content: space-between; z-index: 2; }
.t-gallery__count { position: absolute; right: var(--t-gut-r); bottom: 40px; z-index: 2; height: 26px; padding: 0 10px; border-radius: var(--t-r-pill); background: var(--t-glass); font-size: 12px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.t-gallery__badge { position: absolute; left: var(--t-gut-l); bottom: 40px; z-index: 2; }
.t-gallery__thumbs { display: none; }
.t-gallery .t-photo__aviso { left: var(--t-gut-l); right: var(--t-gut-r); bottom: 76px; padding: 8px 12px; font-size: 13px; }
.t-pdp__sheet { position: relative; z-index: 3; margin-top: -24px; background: var(--t-paper); border-radius: var(--t-r-lg) var(--t-r-lg) 0 0; padding-top: 22px; }
.t-pdp__sheet > .t-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.t-pdp__brandrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.t-pdp__brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--t-ink); }
.t-pdp__brand span { color: var(--t-ash); font-weight: 500; }
.t-pdp__title { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.t-pdp__desc { font-size: 14px; color: var(--t-ash); margin: 6px 0 0; max-width: 60ch; }
.t-pdp__code { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--t-ash); min-width: 0; flex-wrap: wrap; }
.t-pdp__code .t-mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; background: var(--t-bone-soft); padding: 4px 10px; border-radius: var(--t-r-xs); color: var(--t-ink); }
.t-pdp__label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; color: var(--t-ink); margin-bottom: 10px; }
.t-pdp__label small { font-size: 12px; font-weight: 500; color: var(--t-ash); display: inline-flex; align-items: center; gap: 6px; }
.t-pdp__label small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--t-order); }
.t-pdp__qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.t-pdp__qty .t-pdp__label { margin: 0; }
.t-pdp__h { font-size: 16px; margin-bottom: 10px; }
.t-pdp__ask { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--t-wa); }
.t-pdp__ask:hover { text-decoration: underline; }
.t-pdp__ask:focus-visible { outline: 2px solid var(--t-ember); outline-offset: 2px; border-radius: 4px; }

/* Pedido */
.t-cart-sum { display: grid; gap: 10px; padding: 16px; border-radius: var(--t-r-md); background: var(--t-bone-soft); margin-top: 18px; }
.t-cart-sum__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.t-cart-sum__row strong { color: var(--t-ink); font-variant-numeric: tabular-nums; }
.t-cart-sum__note { font-size: 12.5px; color: var(--t-ash); display: flex; gap: 8px; }

/* Contacto y buscador de códigos */
.t-dark { border-radius: var(--t-r-lg); background: var(--t-ink); color: var(--t-on-dark); padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.t-dark h2 { color: var(--t-on-dark); font-size: 22px; letter-spacing: -.02em; }
.t-dark p { color: var(--t-on-dark-soft); font-size: 13.5px; max-width: 48ch; margin: 0; }
.t-dark__eyebrow { font-size: 12px; font-weight: 700; color: var(--t-ember); }
.t-dark .t-search { background: var(--t-paper); border-color: transparent; }
.t-dark .t-btn { justify-self: start; }
.t-dark__examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--t-on-dark-muted); }
.t-dark__examples button { height: 28px; padding: 0 10px; border-radius: var(--t-r-pill); border: 1px solid var(--t-on-dark-line); background: transparent; color: var(--t-on-dark); font-family: var(--t-mono); font-size: 12px; cursor: pointer; }
.t-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.t-stats div { display: grid; gap: 2px; padding: 12px; border-radius: var(--t-r-md); background: var(--t-on-dark-fill); }
.t-stats small { font-size: 11.5px; color: var(--t-on-dark-muted); }
.t-stats strong { font-size: 20px; color: var(--t-on-dark); font-variant-numeric: tabular-nums; }

@keyframes t-fade { from { opacity: 0; } }
@keyframes t-rise { from { transform: translate(-50%, 24px); opacity: .6; } }
@keyframes t-bnav-in { from { transform: translate(-50%, calc(100% + 40px)); opacity: 0; } }
@keyframes t-bnav-label { from { opacity: 0; transform: translateX(-8px); } }
@keyframes t-bnav-pop { from { transform: scale(.55) rotate(-14deg); } }
@keyframes t-bump { 0% { transform: scale(.4); } 55% { transform: scale(1.3); } }
.t-sheet { animation-name: t-rise-sheet; }
@keyframes t-rise-sheet { from { transform: translateY(24px); opacity: .6; } }

/* ═════════════ COMPU ═════════════ */
/* ── Buscar por medidas (etapa 3) ──────────────────────────────────────────
   El formulario de la demo (docs/design-system-v2/demo.html), con los tokens de la tienda.
   La medida que coincidió queda en negro motor, como todo lo seleccionado. */
.t-mform { display: grid; gap: 16px; margin-top: 12px; padding: 16px; border-radius: var(--t-r-lg); background: var(--t-bone-soft); border: 1px solid var(--t-hairline); }
.t-mform__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .t-mform__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t-mfield { min-width: 0; }
.t-mfield label, .t-mform__label { display: block; font-size: 12.5px; font-weight: 700; color: var(--t-ink); margin-bottom: 6px; }
.t-mfield__row { display: flex; gap: 6px; }
.t-mfield__input { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: var(--t-r-sm); background: var(--t-paper); border: 1.5px solid var(--t-fog); transition: border-color var(--t-fast) var(--t-ease); }
.t-mfield__input:focus-within, .t-mfield.is-set .t-mfield__input { border-color: var(--t-ink); }
.t-mfield__input input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; background: transparent; font-family: var(--t-mono); font-size: 16px; font-weight: 600; color: var(--t-ink); outline: none; }
:where(body[data-ds="tienda"]) .t-mfield__input input:focus-visible { outline: none; }
.t-mfield__input--txt input { font-family: var(--t-sans); font-weight: 500; }
.t-mfield__input input::placeholder { color: var(--t-faint); font-weight: 500; }
.t-mfield__input > span { font-size: 12.5px; font-weight: 600; color: var(--t-ash); }
.t-mfield__input > .t-ico { color: var(--t-ash); flex: none; }
.t-mfield__tol { flex: none; height: 48px; padding: 0 8px; border-radius: var(--t-r-sm); border: 1.5px solid var(--t-fog); background: var(--t-paper); font: inherit; font-size: 13px; font-weight: 700; color: var(--t-ink); cursor: pointer; }
.t-mform__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.t-chip--forma { height: auto; padding: 6px 12px; flex-direction: column; gap: 2px; border-radius: var(--t-r-sm); }
.t-chip--forma img { height: 34px; width: auto; display: block; }
.t-chip--forma.is-on img { filter: invert(1); }
.t-mhint { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px; border-radius: var(--t-r-md); background: var(--t-bone-soft); border: 1px solid var(--t-hairline); }
.t-mhint strong { display: block; font-size: 14px; color: var(--t-ink); }
.t-mhint p { font-size: 13px; color: var(--t-ash); max-width: 60ch; margin: 2px 0 0; }
.t-mhint .t-infocard__ic { flex: none; }
.t-mchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.t-mchip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: var(--t-r-xs); background: var(--t-bone); font-size: 11.5px; font-weight: 600; color: var(--t-ash); white-space: nowrap; }
.t-mchip b { font-family: var(--t-mono); font-weight: 600; color: var(--t-ink); }
.t-mchip.is-hit { background: var(--t-ink); color: var(--t-on-dark-soft); }
.t-mchip.is-hit b { color: var(--t-on-dark); }
/* El "?" de una medida en revisión (juntas): por encima del ::after del nombre, que cubre la
   tarjeta y abriría la ficha en vez del globito. */
.t-mchip .t-duda { z-index: 2; margin-left: 2px; }
.t-mrow .t-photo { background: var(--t-bone); }
/* Por encima del ::after de .t-pcard__name, que cubre toda la tarjeta para que abra la ficha:
   sin esto, tocar una medida tocaba el nombre y abría la ficha de la primera (el STD). */
.t-msizes { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--t-ash); }
.t-size--s { min-width: 0; height: 32px; padding: 0 12px; font-size: 12px; }
.t-msizes__add { width: 32px; height: 32px; }
.t-size--fija { display: inline-grid; place-items: center; cursor: default; }
.t-pdp__note { font-size: 12px; color: var(--t-faint); margin: 8px 0 0; max-width: 60ch; }
.t-gallery .t-photo--dib > img:first-child { width: auto; height: auto; max-width: 80%; max-height: 86%; margin: auto; padding: 0; }
@media (min-width: 960px) {
  .t-mlayout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: start; }
  .t-mlayout > div:first-child { position: sticky; top: 92px; max-height: calc(100vh - 108px); overflow: auto; border-radius: var(--t-r-lg); }
  .t-mlayout .t-mform { margin-top: 0; }
  .t-mlayout .t-mform__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 960px) {
  .t-topbar { display: block; }
  /* El pie va al fondo de la ventana aunque la pantalla sea corta (el pedido, el buscador
     de códigos): quedaba a media altura con blanco debajo. */
  .t-app { display: flex; flex-direction: column; }
  .t-foot { display: block; margin-top: auto; }
  .t-m-only { display: none !important; }
  .t-bnav { display: none; }
  .t-main, .t-main--bar { padding-bottom: 64px; }
  .t-pagetitle { display: block; font-size: 28px; letter-spacing: -.03em; margin: 28px 0 10px; }
  .t-banner { min-height: 240px; padding: 40px 0 40px 44px; }
  .t-banner h2 { font-size: 32px; }
  .t-banner p { font-size: 15px; }
  .t-split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
  .t-split .t-stack { align-content: start; }
  .t-toast { bottom: 28px; }
  .t-pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; max-width: var(--t-max); margin-inline: auto; padding: 28px var(--t-gut-r) 0 var(--t-gut-l); align-items: start; }
  .t-gallery { position: sticky; top: 96px; }
  .t-gallery .t-photo { border-radius: var(--t-r-lg); max-height: none; }
  .t-gallery__tools { left: 16px; right: 16px; }
  .t-gallery__count, .t-gallery__badge { bottom: 16px; }
  .t-gallery__count { right: 16px; }
  .t-gallery__badge { left: 16px; }
  .t-gallery .t-photo__aviso { left: 16px; right: 16px; bottom: 52px; }
  .t-gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .t-gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--t-r-sm); background: none; cursor: pointer; overflow: hidden; }
  .t-gallery__thumbs button.is-on { border-color: var(--t-ink); }
  .t-gallery__thumbs .t-photo { border-radius: 10px; }
  .t-pdp__sheet { margin-top: 0; border-radius: 0; padding-top: 0; }
  .t-pdp__sheet > .t-wrap { padding: 0; max-width: none; }
  .t-pdp__title { font-size: 30px; }
  .t-actionbar { position: static; box-shadow: none; border: 0; padding: 0; background: transparent; }
  .t-cart { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .t-cart .t-actionbar { flex-direction: column; align-items: stretch; margin-top: 14px; }
  /* En columna, el `flex: 1` de la barra de compra deja el botón sin alto (parte de 0 y no
     hay alto que repartir): el de WhatsApp salía como una raya de 14 px. */
  .t-cart .t-actionbar .t-btn { flex: none; }
  .t-cart .t-actionbar__total { display: none; }
  .t-sticky { position: static; }
  .t-seg { display: inline-flex; }
  .t-hscroll { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; scroll-padding-left: 0; scroll-padding-right: 0; }
  .t-hscroll::after { content: none; }
  .t-hscroll--keep { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 8px; }
  /* Las dos filas son para deslizar en el celular. En compu, una fila de rubros que no pide
     quedarse en un renglón (la de la portada) se acomoda en los renglones que haga falta. */
  .t-hscroll--2:not(.t-hscroll--keep) { display: flex; }
  .t-hscroll--2:not(.t-hscroll--keep) > .t-chip--all { height: 36px; border-radius: var(--t-r-pill); }
  .t-dark { padding: 36px 40px; }
  .t-dark h2 { font-size: 34px; }
  .t-codegrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: center; }
  .t-stats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 959px) { .t-d-only { display: none !important; } }
