@import url('/fonts/jost/jost.css');
@import url('/fonts/bodoni-moda/bodoni-moda.css');

/* ═══════════════════════════════════════════════════════════════
   Mora — ropa de mujer para vendedoras de TikTok, con página por prenda
   Re-tematizar = cambiar los tokens de :root. Los iconos de interfaz
   (.i-*) se generan al final del archivo (build.py).
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #FBF6F3;
  --surface: #FFFFFF;
  --ink: #1F1419;
  --ink-2: #4A3B42;
  --muted: #6B5A62;
  --line: #EADFE2;
  --tint: #F5E9EC;
  --mora: #6D1F4C;
  --mora-2: #57173C;
  --petal: #F4D3DE;
  --sale: #B3263E;
  --ok: #1D6B45;
  /* Botones de WhatsApp con el color de la tienda (la dueña: «el verde no va con la tienda»); el ícono dice que es WhatsApp */
  --wa: var(--mora);
  --wa-2: var(--mora-2);
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(31, 20, 25, .05), 0 14px 34px -20px rgba(31, 20, 25, .35);
  --wrap: 1240px;
  /* Tipografía: Bodoni Moda (títulos, como las revistas de moda) + Jost (texto y botones). Locales, en /fonts */
  --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
}

/* La fuente se HEREDA (no `* { font-family }`): así los <span> editables dentro de un título toman su serif.
   También en body: en el editor y la vista previa el body de la plataforma trae su propia fuente */
* { box-sizing: border-box; }
html, body, button, input, select, textarea { font-family: 'Jost', 'Montserrat', system-ui, sans-serif; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.vt-lock, html.vt-lock body { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--mora); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 28px; } }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ─── Iconos de interfaz (máscaras CSS) ─── */
.i { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* ─── Botones (≥ 44 px): esquinas suaves, no píldoras ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: 14px; border: 2px solid transparent; font-size: .95rem; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn-mora { background: var(--mora); color: #fff; }
.btn-mora:hover { background: var(--mora-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: color-mix(in srgb, var(--ink) 82%, #fff); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--mora); }
.btn-light:hover { background: var(--petal); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-2); }
.btn-lg { min-height: 56px; padding-inline: 28px; font-size: 1.02rem; }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn .i-arrow { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .i-arrow { transform: translateX(3px); }

/* ─── Cinta y cabecera ─── */
.ribbon { background: var(--mora); color: #fff; font-size: .84rem; font-weight: 600; }
.ribbon-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; min-height: 38px; padding: 6px 16px; text-align: center; }
.header { position: sticky; top: 0; z-index: 60; background: rgba(251, 246, 243, .92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(0, 0, 0, .4); }
.header-inner { position: relative; display: flex; align-items: center; gap: 18px; width: min(var(--wrap), 100%); margin-inline: auto; padding: 10px 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.6rem; font-weight: 900; letter-spacing: -.06em; text-decoration: none; color: var(--mora); white-space: nowrap; }
.main-menu { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.main-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; font-size: .88rem; font-weight: 700; text-decoration: none; color: var(--ink-2); transition: background-color .2s; }
.main-menu a:hover { background: var(--tint); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-menu + .header-actions { margin-left: 0; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--tint); }
.icon-btn .i { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 800; line-height: 20px; text-align: center; }
.cart-count.has-items { background: var(--mora); }
.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--ink); border-radius: 12px; cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-menu { display: none; position: absolute; top: calc(100% + 6px); left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
  .main-menu.menu-open { display: flex; }
  .main-menu a { min-height: 48px; padding-inline: 16px; font-size: 1rem; }
  .header-actions, .main-menu + .header-actions { margin-left: auto; } /* el menú se oculta: los botones van a la derecha */
}

/* ─── Secciones ─── */
section[id] { scroll-margin-top: 80px; }
.section { padding: 60px 0; }
@media (min-width: 900px) { .section { padding: 84px 0; } }
.sec-head { display: grid; gap: 10px; max-width: 720px; margin-bottom: 28px; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mora); }
.sec-title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }
.sec-lead { font-size: 1.05rem; color: var(--ink-2); }
.stars { --r: 5; position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 2px; }
.stars::before { content: '★★★★★'; background: linear-gradient(90deg, #A86A12 calc(var(--r) / 5 * 100%), var(--line) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ─── Hero editorial: fotos de lado a lado, texto encima (como las tiendas de moda en Shopify) ─── */
.hero { position: relative; display: grid; min-height: min(86vh, 820px); background: #1A1015; color: #fff; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: 1fr; }
.hero-shot { position: relative; margin: 0; overflow: hidden; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-shot-1, .hero-shot-3 { display: none; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(20, 10, 15, .86) 0, rgba(20, 10, 15, .45) 42%, rgba(20, 10, 15, .05) 72%); }
.hero-overlay { display: flex; align-items: flex-end; pointer-events: none; } /* las fotos de debajo se pueden tocar (en el editor, para cambiarlas) */
.hero-text, .hero-pick { pointer-events: auto; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; width: min(var(--wrap), 100%); padding-top: 120px; padding-bottom: 36px; }
.hero-text { display: grid; gap: 16px; justify-items: start; max-width: 640px; }
.hero-live { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF4D6D; box-shadow: 0 0 0 0 rgba(255, 77, 109, .6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(255, 77, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); } }
.live-when { font-weight: 600; letter-spacing: .08em; opacity: .85; }
.live-when::before { content: '· '; }
.hero-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; opacity: .9; }
.hero-title { font-size: clamp(2.7rem, 7.2vw, 6.4rem); line-height: .96; letter-spacing: -.05em; text-wrap: balance; }
.ht-1 { display: block; font-weight: 400; }
.ht-2 { display: block; font-weight: 900; }
.hero-lead { max-width: 30em; font-size: 1.05rem; color: rgba(255, 255, 255, .88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn-line { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn-light { color: var(--ink); }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 6px; font-size: .86rem; font-weight: 600; color: rgba(255, 255, 255, .9); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof li + li::before { content: ''; width: 4px; height: 4px; margin-right: 14px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.hero-proof .rt-n + .hero-proof-src { margin-left: -4px; }
.hero-proof .stars::before { background: linear-gradient(90deg, #fff calc(var(--r) / 5 * 100%), rgba(255, 255, 255, .35) 0); -webkit-background-clip: text; background-clip: text; }
/* «Visto en el live»: tarjeta de vidrio con la prenda destacada */
.hero-pick { display: grid; grid-template-columns: 64px 1fr 20px; align-items: center; gap: 14px; width: min(340px, 100%); padding: 10px 16px 10px 10px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 16px; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); color: #fff; text-decoration: none; transition: background-color .2s; }
.hero-pick:hover { background: rgba(255, 255, 255, .2); }
.hero-pick-img img { width: 64px; height: 80px; border-radius: 10px; object-fit: cover; }
.hero-pick-text { display: grid; gap: 2px; min-width: 0; }
.hero-pick-k { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.hero-pick-name { font-size: .95rem; font-weight: 800; line-height: 1.25; }
.hero-pick-price { font-size: .9rem; font-weight: 600; opacity: .9; }
.hero-pick .i-arrow { width: 18px; height: 18px; transition: transform .2s; }
.hero-pick:hover .i-arrow { transform: translateX(3px); }
/* Celular: la foto respira arriba y el texto va abajo, solo lo esencial */
@media (max-width: 699px) {
  .hero { min-height: calc(100svh - 200px); }
  .hero-shot img { object-position: 50% 15%; }
  .hero-inner { padding-top: 28svh; padding-bottom: 24px; }
  .hero-text { gap: 12px; }
  .hero-eyebrow, .hero-pick, .hero-proof li + li { display: none; }
  .hero-title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hero-lead { font-size: .98rem; }
  .hero-ctas { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hero-ctas .btn { min-height: 52px; padding-inline: 10px; font-size: .9rem; }
  .hero-ctas .i-arrow { display: none; }
}
@media (min-width: 900px) {
  .hero-media { grid-template-columns: 1fr 1.15fr 1fr; gap: 3px; }
  .hero-shot-1, .hero-shot-3 { display: block; }
  .hero::after { background: linear-gradient(0deg, rgba(20, 10, 15, .8) 0, rgba(20, 10, 15, .3) 45%, rgba(20, 10, 15, .1) 75%), linear-gradient(90deg, rgba(20, 10, 15, .5), transparent 60%); }
  .hero-inner { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-shot img { animation: hero-zoom 2.2s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-shot-1 img { animation-delay: .1s; } .hero-shot-3 img { animation-delay: .2s; }
  .hero-text > * { animation: hero-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; } .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; } .hero-text > :nth-child(n+5) { animation-delay: .32s; }
}
@keyframes hero-zoom { from { transform: scale(1.08); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } }

/* ─── Beneficios: franja limpia con divisores ─── */
.benefits { padding: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0; }
.benefit { display: flex; align-items: center; gap: 14px; padding: 18px 8px; border-bottom: 1px solid var(--line); }
.benefit:last-child { border-bottom: 0; }
.benefit-ic { display: inline-flex; flex: none; color: var(--mora); }
.benefit-title { font-weight: 800; font-size: .92rem; line-height: 1.3; }
.benefit-text { font-size: .84rem; color: var(--muted); }
@media (min-width: 700px) {
  .benefit { justify-content: center; padding: 22px 16px; border-bottom: 0; border-left: 1px solid var(--line); }
  .benefit:first-child { border-left: 0; }
}

/* ─── Categorías: tarjetas verticales (foto de cuerpo entero, nombre debajo) ─── */
.cats { padding-bottom: 24px; }
.cat-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); gap: 12px; margin-inline: -16px; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-card { position: relative; display: grid; gap: 12px; text-decoration: none; scroll-snap-align: start; }
.cat-img { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--tint); }
.cat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.cat-card:hover .cat-img img { transform: scale(1.04); }
.cat-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; }
.cat-name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.cat-label .i-arrow { width: 18px; height: 18px; color: var(--mora); transition: transform .2s; }
.cat-card:hover .cat-label .i-arrow { transform: translateX(4px); }
.cat-row > .tm-add-btn { align-self: start; aspect-ratio: 3 / 4; }
@media (min-width: 760px) { .cat-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px 16px; margin: 0; padding: 0; overflow: visible; } }
@media (min-width: 1100px) { .cat-row { grid-template-columns: repeat(6, 1fr); } }

/* ─── Tienda: herramientas y chips ─── */
.shop { padding-top: 36px; }
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 20px; }
.shop-head .sec-head { margin-bottom: 0; }
.shop-tools { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 320px; justify-content: flex-end; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 240px; max-width: 380px; }
.search .i { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: 10px 16px 10px 44px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 1rem; }
.search input:focus { outline: none; border-color: var(--mora); }
.sort { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font-size: .88rem; font-weight: 700; color: var(--muted); }
.sort select { min-height: 44px; border: 0; background: transparent; font-weight: 700; color: var(--ink); cursor: pointer; font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip-grid { display: contents; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; font-weight: 700; cursor: pointer; user-select: none; transition: background-color .2s, border-color .2s; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--mora); }
.chip:has(input:checked) { background: var(--mora); border-color: var(--mora); color: #fff; }
.chip:has(input:focus-visible) { outline: 3px solid var(--mora); outline-offset: 2px; }
.chip-fav .i { width: 16px; height: 16px; }
.shop-count { margin: 6px 0 16px; font-size: .88rem; font-weight: 600; color: var(--muted); }

/* ─── Tarjeta de prenda: foto grande, datos debajo sin caja ─── */
.products { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (max-width: 699px) {
  /* «Ajustes › Prendas en el celular: 2 por fila» (editor: data-tm-mobile-cols → .is-m2) */
  .products.is-m2 { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .products.is-m2 .pd-name { font-size: .92rem; }
}
@media (min-width: 700px) { .products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px 20px; } }
.products > .tm-add-btn { order: 9999; }
.product { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pd-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: var(--tint); overflow: hidden; cursor: pointer; }
.pd-gallery { position: relative; height: 100%; }
.pd-shot { position: relative; margin: 0; height: 100%; }
.pd-shot img { width: 100%; height: 100%; object-fit: cover; }
.product:not(.is-open) .pd-main img { transition: transform .5s; }
.product:not(.is-open) .pd-shots { position: absolute; inset: 0; pointer-events: none; }
.product:not(.is-open) .pd-shots .pd-shot { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.product:not(.is-open) .pd-shots .pd-shot ~ .pd-shot { display: none; }
@media (hover: hover) { .product:not(.is-open):hover .pd-shots .pd-shot:first-child { opacity: 1; } }
/* Color elegido en la tarjeta (selector rápido): si la foto principal es de otro color, se ve la primera del elegido */
.product:not(.is-open):has(.pd-main.is-other) .pd-shots .pd-shot:not(.is-other) { display: block; opacity: 1; }
.product:not(.is-open):has(.pd-main.is-other) .pd-shots .pd-shot:not(.is-other) ~ .pd-shot { display: none; }
.pd-badge { position: absolute; top: 12px; left: 12px; z-index: 2; max-width: calc(100% - 70px); padding: 5px 11px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .76rem; font-weight: 800; line-height: 1.3; }
.pd-badge:empty { display: none; }
.pd-badge.is-sale { background: var(--sale); color: #fff; }
.pd-badge.is-hot { background: var(--ink); color: #fff; }
.pd-badge.is-new { background: var(--mora); color: #fff; }
.pd-fav { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; transition: transform .15s; }
.pd-fav:active { transform: scale(.9); }
.pd-fav[aria-pressed="true"] { color: var(--sale); }
.pd-fav[aria-pressed="true"] .i { --i: var(--i-heart-on); }
.pd-open { position: absolute; left: 50%; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .82rem; font-weight: 800; white-space: nowrap; cursor: pointer; transform: translate(-50%, 0); transition: opacity .2s, transform .2s; }
.pd-open .i { width: 16px; height: 16px; }
@media (hover: hover) {
  .product:not(.is-open) .pd-open { opacity: 0; transform: translate(-50%, 8px); }
  .product:not(.is-open):hover .pd-open, .product:not(.is-open) .pd-open:focus-visible { opacity: 1; transform: translate(-50%, 0); }
}
@media (hover: none) { .product:not(.is-open) .pd-open { display: none; } }
.product:not(.is-open) .pd-media:has(.tm-editable-image) .pd-open { display: inline-flex; opacity: 1; transform: translate(-50%, 0); } /* en el editor siempre visible */
.pd-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgba(31, 20, 25, .7); color: #fff; font-size: .75rem; font-weight: 700; }
.pd-count:empty, .product:not(.is-open) .pd-count { display: none; }
.pd-info { display: flex; flex: 1 1 auto; flex-direction: column; gap: 4px; min-width: 0; padding: 0 2px; }
.pd-cat { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pd-title { font-size: 1.02rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.pd-link { text-decoration: none; }
.pd-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-rating { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; }
.pd-rating .stars { font-size: .82rem; letter-spacing: 1px; }
.rt-c { color: var(--muted); font-weight: 600; }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.pd-now { font-size: 1.1rem; font-weight: 900; letter-spacing: -.02em; }
.pd-was { font-size: .9rem; font-weight: 600; color: var(--muted); }
.pd-was:empty { display: none; }
.pd-price:has(.pd-was:not(:empty)) .pd-now { color: var(--sale); }
.pd-dots { display: flex; align-items: center; gap: 5px; min-height: 16px; font-size: .76rem; font-weight: 700; color: var(--muted); }
.pd-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.pd-dots:empty { display: none; }
.product:not(.is-open) .pd-more, .product:not(.is-open) .pd-nav { display: none; }
/* Compra desde la tarjeta: «Comprar» por WhatsApp y «+» a la bolsa */
.pd-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; } /* abajo de la tarjeta: alineados en cada fila */
.btn-buy { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; font-size: .9rem; gap: 8px; }
.btn-buy .i { width: 18px; height: 18px; }
.btn-add-quick { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
.btn-add-quick:hover { border-color: var(--mora); color: var(--mora); }
.btn-add-quick .i { width: 22px; height: 22px; }
.products.is-m2 .btn-buy { padding-inline: 8px; font-size: .84rem; }
@media (max-width: 699px) { .products.is-m2 .btn-buy .i { display: none; } }
.product.is-open .pd-card-actions { display: none; }
.product.is-soldout .btn-add-quick { opacity: .45; }
/* «Elige tu talla» sobre la foto (lo arma el script) */
.pd-quick { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4; display: grid; gap: 10px; padding: 14px; border-radius: var(--r); background: rgba(255, 255, 255, .97); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .5); cursor: default; animation: pdq-up .2s ease; }
.pd-quick:empty, .product.is-open .pd-quick { display: none; }
.pd-media:has(.pd-quick:not(:empty)) .pd-open { display: none; }
@keyframes pdq-up { from { transform: translateY(10px); opacity: 0; } }
.pdq-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pdq-title { font-size: .92rem; font-weight: 800; }
.pdq-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--tint); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.pdq-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pdq-group { display: grid; gap: 6px; }
.pdq-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pdq-opt { display: inline-flex; align-items: center; gap: 6px; }
.pdq-opt.is-on { border-color: var(--mora); background: var(--mora); color: #fff; }
.pdq-sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.pdq-opt.is-on .pdq-sw { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.pdq-opt { min-width: 48px; min-height: 44px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .9rem; font-weight: 800; cursor: pointer; }
.pdq-opt:hover:not([disabled]) { border-color: var(--mora); background: var(--mora); color: #fff; }
.pdq-opt[disabled] { cursor: not-allowed; border-style: dashed; color: var(--muted); text-decoration: line-through; }
.pdq-more { justify-self: start; display: inline-flex; align-items: center; min-height: 32px; font-size: .84rem; font-weight: 700; color: var(--mora); }
.shop-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 16px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--r-lg); }
.shop-empty-title { font-weight: 800; font-size: 1.1rem; }

/* ─── Inicio · Tienda (#catalogo) · Prenda (#producto/…): la clase la pone script.js en <html> ─── */
html:not(.vt-catalog) .only-catalog, html.vt-catalog .only-home { display: none; }
html:not(.vt-product) .only-product, html.vt-product :is(.only-home, .only-catalog) { display: none; }
html.vt-catalog main > section:not(#catalogo) { display: none; }
html.vt-catalog .shop { padding-top: 24px; min-height: 70vh; }
/* En el inicio: las 8 primeras, salvo las que la dueña cambió con «En el inicio: Sí/No» */
html:not(.vt-catalog):not(.vt-product) .products > .product:is(:nth-child(n+9):not(.vt-home), .vt-nohome) { display: none; }
.shop-more { display: flex; justify-content: center; margin-top: 32px; }
.all-count { font-weight: 600; opacity: .8; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.crumb-name { color: var(--muted); }
.vt-pages { display: none; }
body:not(.tm-preview-mode) #tm-template-container .vt-pages { position: fixed; left: 50%; bottom: 20px; z-index: 88; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transform: translateX(-50%); max-width: calc(100vw - 24px); }
@media (max-width: 768px) { body:not(.tm-preview-mode) #tm-template-container .vt-pages { bottom: calc(80px + env(safe-area-inset-bottom)); } }
body:not(.tm-preview-mode) #tm-template-container .footer { padding-bottom: calc(var(--vt-pages-room, 84px) + env(safe-area-inset-bottom)); }
@media (max-width: 768px) { body:not(.tm-preview-mode) #tm-template-container .footer { --vt-pages-room: 150px; } }
.vt-pages-label { padding: 0 6px 0 12px; font-size: .78rem; font-weight: 700; color: rgba(255, 255, 255, .8); }
.vt-pages button { min-height: 40px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: .84rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.vt-pages button[aria-pressed="true"] { background: var(--petal); color: var(--mora-2); }
@media (max-width: 480px) { .vt-pages-label { display: none; } .vt-pages button { padding-inline: 10px; } }
#tm-template-container .pd-cat:focus::after { content: ' ← escribe una categoría de la tienda'; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--sale); }

/* ─── Página de la prenda (#producto/… o el archivo <slug>.html de la web descargada) ─── */
html.vt-product main > section:not(#catalogo) { display: none; }
html.vt-product .shop { padding-top: 14px; }
html.vt-product .shop-head { display: none; }
html.vt-product .products { display: block; }
/* Página de la prenda: solo la prenda. Nada de la grilla (los «+ Agregar…», la línea «Solo en la tienda» del editor) */
html.vt-product .products > :not(.product.is-open),
html.vt-product #tm-template-container .products > :not(.product.is-open) { display: none !important; }
html.vt-product .products > .product.is-open { display: grid; }
.product.is-open { grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.product.is-open .pd-media { aspect-ratio: auto; margin-inline: -16px; border-radius: 0; cursor: default; overflow: visible; background: transparent; }
.product.is-open .pd-gallery { display: flex; height: min(125vw, 78vh); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.product.is-open .pd-gallery::-webkit-scrollbar { display: none; }
.product.is-open .pd-shots { display: contents; }
.product.is-open .pd-shot { flex: 0 0 100%; scroll-snap-align: start; background: var(--tint); }
.product.is-open .pd-shots > .tm-add-btn { flex: 0 0 auto; align-self: center; margin: 0 16px; }
.product.is-open .pd-open { display: none; }
.pd-nav { position: absolute; top: 50%; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; }
.pd-prev { left: 12px; }
.pd-next { right: 12px; }
.product.is-open .pd-info { gap: 10px; }
.product.is-open .pd-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.04em; line-height: 1.08; }
.product.is-open .pd-link { pointer-events: none; text-decoration: none; }
.product.is-open .pd-now { font-size: 1.6rem; }
.product.is-open .pd-dots { display: none; }
.pd-more { display: grid; gap: 16px; padding-bottom: 8px; }
.pd-short { font-size: 1.02rem; color: var(--ink-2); }
.pd-model-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--tint); font-size: .9rem; font-weight: 700; }
.pd-model-row .i { color: var(--mora); }
.pd-model-row:has(.pd-model:empty) { display: none; }
#tm-template-container .pd-model-row:has(.pd-model:empty) { display: flex; }
.pd-stock { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--ok); }
.pd-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pd-stock.is-low { color: var(--sale); }
.pd-stock:empty { display: none; }
.pd-vars { display: grid; gap: 16px; }
.pd-var legend { margin-bottom: 8px; font-size: .9rem; font-weight: 800; }
.pd-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 46px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: .92rem; font-weight: 700; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { border-color: var(--ink); }
.opt:has(input:checked) { border-color: var(--mora); background: var(--mora); color: #fff; }
.opt:has(input:focus-visible) { outline: 3px solid var(--mora); outline-offset: 2px; }
.pd-size-help { margin-top: -6px; }
.pd-size-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .9rem; font-weight: 800; color: var(--mora); }
.pd-buybox { position: sticky; bottom: 0; z-index: 4; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.pd-buybox .pd-buy, .pd-buybox .pd-add { grid-column: 1 / -1; }
.pd-line-total { justify-self: end; font-size: .92rem; font-weight: 800; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.qty-btn, .cart-q { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.25rem; font-weight: 700; cursor: pointer; border-radius: 10px; }
.qty-btn:hover, .cart-q:hover { background: var(--tint); }
.qty-n { width: 36px; border: 0; background: transparent; text-align: center; font-weight: 800; }
.pd-perks { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.pd-perks:empty { display: none; }
.pd-perks li { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; font-size: .88rem; line-height: 1.35; }
.pd-perks li::before { content: '✓'; grid-row: span 2; font-weight: 900; color: var(--ok); }
.pd-perks span { color: var(--muted); }
.pd-acc { border-top: 1px solid var(--line); }
.pd-acc:last-of-type { border-bottom: 1px solid var(--line); }
.pd-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 12px 0; font-weight: 800; cursor: pointer; list-style: none; }
.pd-acc summary::-webkit-details-marker { display: none; }
.pd-acc summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; line-height: 1; transition: transform .2s; }
.pd-acc[open] summary::after { transform: rotate(45deg); }
.pd-acc > :not(summary) { margin-bottom: 16px; }
.pd-long { color: var(--ink-2); font-size: .96rem; }
.pd-specs { display: grid; }
.spec { display: grid; grid-template-columns: minmax(96px, 36%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.spec:last-of-type { border-bottom: 0; }
.spec-k { font-weight: 800; }
.spec-v { color: var(--ink-2); }
.pd-ask-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.pd-ask { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: .92rem; color: var(--wa); }
.pd-share { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: .88rem; font-weight: 800; cursor: pointer; }
.pd-share .i { width: 18px; height: 18px; }
.pd-share:hover { border-color: var(--ink); }
@media (min-width: 900px) {
  .product.is-open { grid-template-columns: minmax(0, 1fr) minmax(340px, .95fr); gap: 48px; }
  .product.is-open .pd-media { margin: 0; }
  /* Escritorio: una foto grande con deslizador, flechas y miniaturas debajo (como en las tiendas de moda) */
  .product.is-open .pd-media { position: sticky; top: 88px; }
  /* Alto de pantalla menos cabecera y miniaturas: foto y miniaturas se ven juntas sin bajar */
  .product.is-open .pd-gallery { height: clamp(460px, calc(100vh - 250px), 780px); aspect-ratio: 4 / 5; width: auto; max-width: 100%; border-radius: var(--r-lg); background: var(--tint); }
  .product.is-open .pd-media { justify-self: center; width: fit-content; max-width: 100%; }
  .product.is-open .pd-count { display: none; }
  .product.is-open .pd-shots > .tm-add-btn { margin: 0 24px; }
  .product.is-open .pd-badge { top: 16px; left: 16px; }
  .product.is-open .pd-fav { top: 12px; right: 12px; }
  .product.is-open .pd-info { position: sticky; top: 88px; }
  .pd-buybox { position: static; margin: 0; padding: 0; background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Mientras se ve una prenda en el celular, su barra de compra (fija y compacta) reemplaza la barra de abajo:
   cantidad · Comprar por WhatsApp · bolsa. Siempre a mano, como en las tiendas de moda (+8–15 % en fichas móviles) */
@media (max-width: 768px) {
  html.vt-product .mbar { display: none; }
  html.vt-product body { padding-bottom: 84px; }
  html.vt-product .product.is-open .pd-buybox { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; margin: 0; grid-template-columns: auto minmax(0, 1fr) 50px; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, .35); }
  html.vt-product .pd-buybox .pd-line-total { display: none; }
  html.vt-product .pd-buybox .qty-btn { width: 38px; }
  html.vt-product .pd-buybox .qty-n { width: 26px; }
  html.vt-product .pd-buybox .pd-buy { grid-column: auto; min-height: 50px; padding-inline: 10px; font-size: .9rem; }
  html.vt-product .pd-buybox .pd-add { grid-column: auto; width: 50px; min-height: 50px; padding: 0; gap: 0; font-size: 0; }
  html.vt-product .pd-buybox .pd-add .i { width: 22px; height: 22px; }
  html.vt-product .wa-fab { display: none; }
}
@media (max-width: 360px) { html.vt-product .pd-buybox .qty { display: none; } html.vt-product .product.is-open .pd-buybox { grid-template-columns: minmax(0, 1fr) 50px; } }
/* Miniaturas de la galería (las arma el script con las fotos visibles; las de otro color no salen) */
.pd-thumbs { display: none; }
@media (min-width: 900px) {
  .product.is-open .pd-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .pd-thumb { width: 68px; aspect-ratio: 4 / 5; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--tint); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
  .pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .pd-thumb:hover { opacity: 1; }
  .pd-thumb[aria-current="true"] { border-color: var(--mora); opacity: 1; }
  .product.is-open .pd-nav { top: calc(50% - 48px); }
  .product.is-open.is-one-shot .pd-thumbs { display: none; }
}
/* «Completa el look» */
.pdp-related { margin-top: 48px; }
.related-title { margin-bottom: 16px; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -.035em; }
.related { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 14px; margin-inline: -16px; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.related::-webkit-scrollbar { display: none; }
.rel-card { display: grid; gap: 6px; text-decoration: none; scroll-snap-align: start; }
.rel-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--tint); }
.rel-name { font-size: .92rem; font-weight: 800; line-height: 1.3; }
.rel-price { font-size: .92rem; font-weight: 700; color: var(--ink-2); }
@media (min-width: 900px) { .related { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; overflow: visible; } }

/* ─── Visto en TikTok ─── */
.tiktok { background: var(--ink); color: #fff; }
.tiktok .eyebrow { color: var(--petal); }
.tiktok .sec-lead { color: rgba(255, 255, 255, .84); }
.tk-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.tk-head .sec-head { margin-bottom: 0; }
.tk-follow { background: #fff; color: var(--ink); }
.tk-follow:hover { background: var(--petal); }
.tk-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 78%); gap: 14px; margin-inline: -16px; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tk-grid::-webkit-scrollbar { display: none; }
.tk-card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: hidden; background: color-mix(in srgb, var(--ink) 88%, #fff); scroll-snap-align: start; }
.tk-media { position: relative; margin: 0; aspect-ratio: 9 / 13; }
.tk-media img { width: 100%; height: 100%; object-fit: cover; }
.tk-media { cursor: pointer; }
.tk-play { position: absolute; left: 50%; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: -30px 0 0 -30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; transition: transform .2s; }
.tk-play:hover { transform: scale(1.08); }
/* Reproduciendo: el reproductor de TikTok ocupa la foto (formato vertical del video) */
.tk-player { display: none; }
.tk-card.is-playing .tk-media { aspect-ratio: 9 / 16; }
.tk-card.is-playing .tk-player { position: absolute; inset: 0; z-index: 3; display: block; background: #000; }
.tk-player iframe { width: 100%; height: 100%; border: 0; }
.tk-card.is-playing :is(.tk-play, .tk-views) { display: none; }
.tk-play .i { width: 24px; height: 24px; margin-left: 3px; }
.tk-views { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); font-size: .8rem; font-weight: 800; }
.tk-views .i { width: 16px; height: 16px; }
.tk-body { display: grid; gap: 10px; align-content: start; padding: 16px; }
.tk-cap { font-weight: 700; line-height: 1.35; }
.tk-product-row { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: rgba(255, 255, 255, .84); }
.tk-product-row .i { width: 18px; height: 18px; color: var(--petal); }
.tk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 4px; }
.tk-actions .btn-mora { background: var(--petal); color: var(--mora-2); }
.tk-actions .btn-mora:hover { background: #fff; }
.tk-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .88rem; font-weight: 800; color: #fff; }
.tk-link .i { width: 18px; height: 18px; }
@media (min-width: 760px) { .tk-grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 0; padding: 0; overflow: visible; } }

/* ─── Opiniones ─── */
.rev-layout { display: grid; gap: 20px; }
.rev-summary { align-self: start; display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--r-lg); background: var(--mora); color: #fff; }
.rev-score { display: flex; align-items: center; gap: 12px; }
.rev-score-n { font-size: 3.2rem; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.rev-summary .stars { font-size: 1.2rem; }
.rev-summary .stars::before { background: linear-gradient(90deg, #FFD9A0 calc(var(--r) / 5 * 100%), rgba(255, 255, 255, .3) 0); -webkit-background-clip: text; background-clip: text; }
.rev-count { font-size: .9rem; color: rgba(255, 255, 255, .88); }
.fit-title { margin-top: 12px; font-weight: 800; }
.bar-row { display: grid; grid-template-columns: 70px 1fr 42px; align-items: center; gap: 10px; font-size: .86rem; font-weight: 700; }
.bar-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--petal); transition: width .8s; }
.bar-pct { text-align: right; color: rgba(255, 255, 255, .88); }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.review { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.rev-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rev-verified { font-size: .78rem; font-weight: 800; color: var(--ok); }
.rev-text { font-size: .98rem; }
.rev-fit-row { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; color: var(--mora); }
.rev-fit-row .i { width: 18px; height: 18px; }
.rev-meta { display: grid; margin-top: auto; }
.rev-name { font-weight: 800; }
.rev-place { font-size: .85rem; color: var(--muted); }
.rev-reply { padding: 12px 14px; border-radius: var(--r-sm); background: var(--tint); font-size: .88rem; }
.rev-reply-t { font-weight: 800; margin-bottom: 2px; }
@media (min-width: 980px) { .rev-layout { grid-template-columns: 320px 1fr; } }

/* ─── Cómo comprar ─── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; counter-reset: step; }
.step { display: grid; gap: 10px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mora); color: #fff; font-weight: 900; font-size: 1.1rem; }
.step-n::before { content: counter(step); }
.step-title { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.step-text { color: var(--ink-2); font-size: .95rem; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.pay-label { font-weight: 800; }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pay { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 700; }

/* ─── Envíos ─── */
.ship-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 12px; }
.ship-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ship-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--petal); color: var(--mora-2); }
.ship-title { font-size: 1.1rem; font-weight: 800; }
.ship-meta { display: grid; gap: 2px; }
.ship-time { font-weight: 700; }
.ship-price { font-weight: 800; color: var(--ok); }
.ship-text { font-size: .92rem; color: var(--ink-2); }

/* ─── FAQ ─── */
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { position: relative; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 16px 20px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--mora); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 18px; color: var(--ink-2); }

/* ─── Comunidad ─── */
.community { padding-top: 12px; }
.community .wrap { width: min(calc(var(--wrap) - 56px), calc(100% - 32px)); padding: 36px 22px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--mora), color-mix(in srgb, var(--mora) 78%, #fff)); color: #fff; }
.community-card { display: grid; gap: 24px; align-items: center; }
.community-text { display: grid; gap: 12px; }
.community .eyebrow { color: var(--petal); }
.community .sec-lead { color: rgba(255, 255, 255, .88); }
.community-actions { display: grid; gap: 12px; justify-items: start; }
.community-hours { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
@media (min-width: 900px) { .community-card { grid-template-columns: 1.4fr 1fr; } .community .wrap { padding: 56px; } .community-actions { justify-items: end; } }

/* ─── Pie ─── */
.footer { margin-top: 64px; padding: 56px 0 24px; background: var(--ink); color: #EDE3E7; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 28px; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-logo { font-size: 1.8rem; font-weight: 900; letter-spacing: -.06em; color: #fff; }
.footer-text { font-size: .92rem; color: #D6C9CE; }
.social { display: flex; gap: 6px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; }
.social a:hover { background: rgba(255, 255, 255, .16); }
.footer-h { margin-bottom: 8px; font-weight: 800; color: #fff; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; color: #D6C9CE; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #C6B7BD; }

/* ─── Bolsa (panel lateral) ─── */
.drawer { position: fixed; inset: var(--tm-top, 0px) 0 0 0; z-index: 100; display: flex; justify-content: flex-end; background: rgba(31, 20, 25, .55); animation: fade .2s; }
.drawer-panel { display: flex; flex-direction: column; width: min(440px, 100%); height: 100%; background: var(--bg); box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .6); animation: slide-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer-title { font-size: 1.3rem; font-weight: 900; letter-spacing: -.03em; }
.drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--tint); cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 22px 24px; display: grid; gap: 18px; align-content: start; }
.ship-meter { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.ship-msg { font-size: .88rem; font-weight: 700; }
.ship-track { display: block; height: 6px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.ship-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--mora); transition: width .4s; }
.cart-list { display: grid; gap: 10px; }
.cart-list:empty { display: none; }
.cart-line { display: grid; grid-template-columns: 64px 1fr 32px; gap: 12px; align-items: start; padding: 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.cart-line img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; }
.cart-line:not(:has(img)) { grid-template-columns: 1fr 32px; }
.cart-line-info { display: grid; gap: 4px; min-width: 0; }
.cart-line-name { font-weight: 800; font-size: .92rem; line-height: 1.3; }
.cart-line-opts { font-size: .8rem; color: var(--muted); }
.cart-line-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.cart-line-price { font-weight: 800; }
.qty-sm .cart-q { width: 40px; height: 40px; }
.qty-v { min-width: 22px; text-align: center; font-weight: 800; }
.cart-rm { position: relative; width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: var(--muted); }
.cart-rm::before { content: ''; position: absolute; inset: 7px; background: currentColor; -webkit-mask: var(--i-close) center / contain no-repeat; mask: var(--i-close) center / contain no-repeat; }
.cart-rm::after { content: ''; position: absolute; inset: -6px; }
.cart-rm:hover { color: var(--sale); }
.cart-empty { display: grid; justify-items: center; gap: 10px; padding: 32px 12px; text-align: center; }
.cart-empty > .i { width: 44px; height: 44px; color: var(--muted); }
.cart-empty-title { font-weight: 800; font-size: 1.1rem; }
/* Bolsa vacía: sin formulario. En el editor se ve igual, para editar sus textos (clase, no [hidden]) */
.checkout.is-empty { display: none; }
body:not(.tm-preview-mode) #tm-template-container .checkout.is-empty { display: grid; opacity: .75; }
.checkout { display: grid; gap: 14px; padding-top: 4px; }
.co-title { font-weight: 900; font-size: 1.05rem; }
.field { display: grid; gap: 6px; }
.field label, .co-group legend, .co-extra-l { font-size: .85rem; font-weight: 800; }
.co-group legend { margin-bottom: 6px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: 1rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--mora); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; padding: 4px; border-radius: 14px; background: var(--tint); }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; border-radius: 10px; font-size: .88rem; font-weight: 700; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .3); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--mora); }
.pay-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-opts .opt { font-size: .84rem; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .92rem; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--mora); }
.drawer-foot { display: grid; gap: 10px; padding: 14px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.totals { display: grid; gap: 4px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.totals dt { color: var(--muted); font-weight: 600; }
.totals dd { font-weight: 700; }
.totals .total-row { margin-top: 4px; font-size: 1.1rem; }
.totals .total-row dt { color: var(--ink); font-weight: 800; }
.totals .total-row dd { font-weight: 900; }
.ship-rule { font-size: .8rem; color: var(--muted); }
.cart-fine { font-size: .78rem; color: var(--muted); text-align: center; }

/* ─── Aviso, barra móvil y botón flotante ─── */
.vt-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 120; max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 700; text-align: center; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.vt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
html.vt-lock .vt-toast, html.vt-product .vt-toast { top: calc(var(--tm-top, 0px) + 16px); bottom: auto; }
.vt-toast:empty { display: none; }
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.mbar a, .mbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border: 0; background: transparent; color: var(--ink); font-size: .76rem; font-weight: 700; text-decoration: none; cursor: pointer; border-radius: 12px; }
.mbar .i { width: 22px; height: 22px; }
.mbar a[data-whatsapp-btn] { color: var(--wa); }
.mbar .cart-count { top: 2px; right: calc(50% - 24px); }
body { padding-bottom: 72px; }
.wa-fab { display: none; }
@media (min-width: 769px) {
  .mbar { display: none; }
  body { padding-bottom: 0; }
  .vt-toast { bottom: 28px; }
  .wa-fab { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 999px; background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--mora) 60%, transparent); transition: transform .2s; }
  .wa-fab:hover { transform: scale(1.06); }
  .wa-fab .i { width: 28px; height: 28px; }
  html.vt-lock .wa-fab { display: none; }
}

/* ─── Movimiento: solo si no se pidió reducirlo ─── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .benefit, .step, .review, .ship-card, .faq-item, .tk-card, .measure { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ─── Información legal (ventanas del pie) ─── */
.info-modal { position: fixed; inset: var(--tm-top, 0px) 0 0 0; z-index: 95; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; background: rgba(31, 20, 25, .55); overflow-y: auto; overscroll-behavior: contain; }
.info-modal[hidden] { display: none; }
.info-panel { position: relative; width: min(720px, 100%); margin: auto 0; padding: 28px 24px 24px; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); animation: pop .25s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 700px) { .info-panel { padding: 40px 44px 36px; } }
.info-close { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--tint); color: var(--ink); cursor: pointer; }
.info-close:hover { background: var(--line); }
.info-eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mora); }
.info-title { margin: 6px 48px 4px 0; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.info-updated { font-size: .82rem; color: var(--muted); }
.info-body { display: grid; gap: 10px; margin-top: 22px; }
.info-h { margin-top: 10px; font-size: 1rem; font-weight: 800; }
.info-p { font-size: .95rem; line-height: 1.6; color: #3E3036; }
.info-business { padding: 12px 14px; border-radius: var(--r-sm); background: var(--tint); font-size: .9rem; font-weight: 700; }
.info-note { font-size: .85rem; line-height: 1.55; color: var(--muted); }
.claim-form { display: grid; gap: 14px; margin: 8px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); }
.claim-kind { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.claim-kind legend { margin-bottom: 4px; font-size: .85rem; font-weight: 800; }
.claim-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.claim-error { font-size: .88rem; font-weight: 700; color: var(--sale); }
.claim-form .field.is-bad input, .claim-form .field.is-bad textarea { border-color: var(--sale); }
.vt-open-info { display: none; }
body:not(.tm-preview-mode) #tm-template-container .vt-open-info { display: inline-flex; align-items: center; min-height: 32px; margin-left: 8px; padding: 2px 10px; border: 1.5px dashed #60eba0; border-radius: 999px; background: transparent; color: #60eba0; font: 700 .75rem/1 system-ui, sans-serif; cursor: pointer; vertical-align: middle; }

/* ═══ Tipografía editorial: títulos en Bodoni Moda (serif de alto contraste) sobre Jost ═══
   Va al final para ganar a los pesos 800/900 de cada bloque: un serif de moda se ve fino, no grueso. */
.logo, .footer-logo { font-family: var(--serif); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.logo { font-size: 1.55rem; color: var(--ink); }
.footer-logo { font-size: 1.7rem; }
.hero-title, .sec-title, .related-title, .product.is-open .pd-title, .info-title, .drawer-title, .rev-score-n, .size-out-n, .stat-n {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.hero-title { font-size: clamp(2.9rem, 7.6vw, 6.8rem); line-height: .98; }
.ht-1 { font-weight: 400; }
.ht-2 { font-weight: 400; font-style: italic; }
.sec-title { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.04; }
.product.is-open .pd-title { font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: 1.04; letter-spacing: -.015em; }
.related-title { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.rev-score-n, .size-out-n { font-weight: 500; letter-spacing: 0; }
.drawer-title { font-size: 1.6rem; }
.info-title { font-size: clamp(1.7rem, 4.4vw, 2.3rem); }
/* Texto: Jost con pesos moderados y versalitas con aire */
.btn { font-weight: 600; letter-spacing: .02em; }
.eyebrow, .pd-cat, .hero-pick-k { font-weight: 600; letter-spacing: .2em; }
.pd-title { font-weight: 500; font-size: 1.06rem; letter-spacing: 0; }
.pd-now { font-weight: 600; letter-spacing: 0; }
.main-menu a { font-weight: 500; font-size: .95rem; }
.benefit-title, .step-title, .ship-title, .measure-t, .rev-name, .tk-cap, .co-title, .fit-title, .pdq-title, .pd-acc summary, .faq-item summary { font-weight: 600; }
.hero-eyebrow, .hero-live { letter-spacing: .24em; }

/* Editor: en el inicio solo se ve lo del inicio (como la web); bajo «Ver todos» se recuerda dónde están los demás */
body:not(.tm-preview-mode) #tm-template-container .shop-more::after { content: 'Tus otras prendas se editan en «Tienda» (barra de abajo)'; display: block; flex-basis: 100%; margin-top: 10px; font: 600 .8rem/1.4 system-ui, sans-serif; color: #0f766e; text-align: center; }
body:not(.tm-preview-mode) #tm-template-container .shop-more { flex-wrap: wrap; }

/* ═══ Celular: todo a la vista, una columna (sin filas para deslizar de lado) ═══
   La dueña: «comprar por categoría y visto en TikTok no se ven todas las cards… preferiblemente que se vea todo».
   Filas horizontales (foto a la izquierda, texto a la derecha): se lee bien y ocupa poco (ver memoria «una columna»). */
@media (max-width: 759px) {
  .cat-row, .tk-grid, .related { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; gap: 10px; margin-inline: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  /* Categorías: foto cuadrada pequeña + nombre + flecha */
  .cat-card { grid-template-columns: 72px 1fr; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  .cat-card .cat-img { aspect-ratio: 1 / 1; border-radius: 12px; }
  .cat-card .cat-name { font-size: 1.15rem; }
  .cat-row > .tm-add-btn { aspect-ratio: auto; min-height: 64px; }
  /* Visto en TikTok: portada a la izquierda, texto y botones a la derecha */
  .tk-card { grid-template-rows: none; grid-template-columns: 38% 1fr; }
  .tk-card .tk-media { aspect-ratio: 9 / 14; }
  .tk-card .tk-play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .tk-card .tk-play .i { width: 20px; height: 20px; }
  .tk-card .tk-views { left: 8px; bottom: 8px; padding: 3px 8px; font-size: .74rem; }
  .tk-card .tk-body { padding: 12px 12px 12px 14px; gap: 8px; }
  .tk-card .tk-cap { font-size: .95rem; }
  .tk-card .tk-actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .tk-card .tk-actions .btn { width: 100%; }
  .tk-card .tk-link { justify-content: center; }
  /* Reproduciendo: el video ocupa la tarjeta entera (vertical) */
  .tk-card.is-playing { grid-template-columns: 1fr; }
  .tk-card.is-playing .tk-media { aspect-ratio: 9 / 16; }
  /* También te puede gustar: foto + nombre + precio en una fila */
  .rel-card { grid-template-columns: 72px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 14px; row-gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  .rel-card img { grid-row: span 2; width: 72px; height: auto; aspect-ratio: 4 / 5; border-radius: 10px; }
  .rel-card .rel-name { align-self: end; }
  .rel-card .rel-price { align-self: start; }
}
/* Tablet (760–899 px): «También te puede gustar» en una grilla de 2, sin deslizar */
@media (min-width: 760px) and (max-width: 899px) {
  .related { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); margin-inline: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
}
.vt-pick { position: relative; display: inline-flex; }
.vt-pick .vt-pick-btn { position: relative; max-width: 220px; padding: 6px 34px 6px 16px; overflow: hidden; text-overflow: ellipsis; }
.vt-pick .vt-pick-btn::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.vt-pick .vt-pick-btn[aria-expanded="true"]::after { margin-top: -2px; transform: rotate(-135deg); }
.vt-pick.is-on .vt-pick-btn { background: var(--petal); color: var(--mora-2); }
.vt-pick-list { position: absolute; left: 50%; bottom: calc(100% + 14px); z-index: 2; width: max-content; min-width: 250px; max-width: min(340px, calc(100vw - 24px)); max-height: min(60vh, 380px); margin: 0; padding: 6px; overflow-y: auto; list-style: none; border-radius: 20px; background: var(--ink); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); transform: translateX(-50%); overscroll-behavior: contain; }
.vt-pick-list[hidden] { display: none; }
.vt-pick .vt-pick-list button { display: block; width: 100%; min-height: 40px; padding: 9px 14px; border-radius: 13px; color: #fff; font-size: .9rem; font-weight: 600; text-align: left; white-space: normal; line-height: 1.3; }
.vt-pick .vt-pick-list button:hover, .vt-pick .vt-pick-list button:focus-visible { background: rgba(127, 127, 127, .24); outline: 0; }
.vt-pick .vt-pick-list button[aria-selected="true"] { background: var(--petal); color: var(--mora-2); font-weight: 800; }
@media (max-width: 480px) { .vt-pick .vt-pick-btn { max-width: 150px; padding-left: 10px; } .vt-pick-list { min-width: 220px; } }
/* ═══ Kit ecommerce — docs/template-kit/ecommerce/ecommerce.css ═══
   Lo agrega el generador al styles.css de la plantilla cuando ECOMMERCE = True.
   Envío gratis según la decisión del dueño (ecommerce.js › applyShipMode → <html data-free-ship>):
   sin el atributo (la página antes de su script) se ve el modo «desde un monto». */
.fs-none, .fs-always { display: none; }
[data-free-ship="none"] .fs-none, [data-free-ship="always"] .fs-always { display: inline; }
[data-free-ship="none"] .fs-free, [data-free-ship="none"] .fs-min { display: none; }
[data-free-ship="always"] .fs-min, [data-free-ship="always"] .fs-paid { display: none; }
/* Medidor «te faltan S/ X para el envío gratis»: se oculta cuando no hay envío gratis */
.ship-track[hidden] { display: none; }
/* Etiquetas de producto: colores extra del menú de etiqueta del editor (además de is-new,
   is-sale, is-hot de la plantilla). Ver ecommerce.py › products_grid_attrs. */
.pd-badge.is-c-green { background: #1D6B45; border-color: #1D6B45; color: #fff; }
.pd-badge.is-c-blue { background: #1F4FD1; border-color: #1F4FD1; color: #fff; }
.pd-badge.is-c-amber { background: #F2B630; border-color: #F2B630; color: #1A1406; }
.pd-badge.is-c-pink { background: #C2185B; border-color: #C2185B; color: #fff; }
/* Editor: el aviso de una sección quitada no sale en la página «Catálogo» (allí solo está el catálogo) */
html.vt-catalog .tm-sec-gone { display: none !important; }

/* ─── Opciones: circulito de color, agotadas y «Elige tu talla» (script: paintGroup) ─── */
.opt.has-sw { gap: 8px; }
.opt.has-sw::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.opt.has-sw:has(input:checked)::before { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.opt.is-out { cursor: not-allowed; border-style: dashed; color: var(--muted); background: transparent; }
.opt.is-out > span { text-decoration: line-through; opacity: .6; }
.opt.is-out:hover { border-color: var(--line); }
.opt.is-out.has-sw::before { opacity: .45; }
.opt.is-out-combo { cursor: not-allowed; border-style: dashed; color: var(--muted); background: transparent; }
.opt.is-out-combo > span { text-decoration: line-through; opacity: .6; }
.opt.is-out-combo:hover { border-color: var(--line); }
/* Fotos de otras opciones del grupo (otro color): fuera del detalle mientras se elige este */
.product.is-open .pd-shot.is-other { display: none; }
.product.is-open.is-one-shot .pd-nav { display: none; }
.pd-var.is-choose:not(:has(input:checked)) legend::after { content: ' · elige una'; font-weight: 500; color: var(--muted); }
.pd-var-msg { margin: 8px 0 0; font-size: .85rem; font-weight: 700; color: #B42A26; }
.pd-var.is-missing .pd-opts { animation: pd-shake .4s ease; }
.pd-var.is-missing .opt:not(.is-out) { border-color: #B42A26; }
@keyframes pd-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .pd-var.is-missing .pd-opts { animation: none; } }

/* Producto con la etiqueta «Agotado» (kit ecommerce › soldOut) */
.product.is-soldout .pd-media img { filter: grayscale(1); opacity: .75; }
.product.is-soldout :is(.btn-add-quick, .pd-add, .qty) { opacity: .45; }

/* Fotos de ejemplo de la plantilla que el dueño reemplazó: no se ven (editor › «Fotos del producto») */
.pd-shot:has(> img.is-sample) { display: none !important; }

/* Pedido configurable (ecommerce.py › checkout_*) */
.co-fields { display: grid; gap: 14px; }
.co-fields:empty { display: none; }
.co-fields > .tm-add-btn { justify-self: start; }
.seg { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important; }

/* Guía de tallas (ecommerce.py › size_guide) */
.size-table { display: grid; gap: 0; margin-top: 4px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 10px; overflow: hidden; font-size: .9rem; }
.size-rows { display: grid; }
.size-row { display: grid; grid-template-columns: minmax(64px, 30%) 1fr; gap: 12px; margin: 0; padding: 9px 14px; border-top: 1px solid rgba(0, 0, 0, .08); }
.size-head { border-top: 0; background: rgba(0, 0, 0, .04); font-weight: 800; }
.size-row .sz-k { font-weight: 700; }
.size-rows > .tm-add-btn { margin: 8px 14px; justify-self: start; }

/* Filtros por opción del catálogo (ecommerce.js › buildFacets): usan el estilo del «Ordenar» de la plantilla */
#shopFacets { display: contents; }
/* Con filtros la barra va en su propia fila: buscador ancho y filtros alineados (no escalonados a la derecha) */
.shop-tools:has(.facet) { flex: 1 1 100%; justify-content: flex-start; }
.shop-tools:has(.facet) .search { flex: 1 1 280px; max-width: none; }
.shop-tools:has(.facet) .sort { flex: 1 1 auto; min-width: 0; }
.shop-tools:has(.facet) .sort select { flex: 1 1 auto; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 639px) {
  /* Celular: buscador arriba, filtros de dos en dos y «Ordenar» a lo ancho */
  .shop-tools:has(.facet) { display: grid; grid-template-columns: 1fr 1fr; }
  .shop-tools:has(.facet) .search, .shop-tools:has(.facet) > .sort, #shopFacets > .facet:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .shop-tools:has(.facet) .sort { padding-left: 14px; }
  .shop-tools:has(.facet) .sort select { flex: 1 1 auto; width: 0; }
}

/* Opción con pocas unidades (editor › «Disponible: Quedan pocas»): se puede elegir y avisa */
.pd-var .opt.is-low:not(.is-out) > span::after { content: 'Últimas'; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: .68rem; font-weight: 800; letter-spacing: .02em; vertical-align: 1px; }

/* «+ Grupo de opciones» siempre visible dentro del detalle (data-tm-add-inline en .pd-vars): antes solo aparecía bajo
   el mouse y en el celular no se podía agregar «Color» */
.pd-vars > .tm-add-btn { justify-self: start; }

/* ─── Iconos de interfaz: generados por build.py (máscaras CSS, no son <svg> editables) ─── */
:root {
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
  --i-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E");
  --i-bag-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2M12 11.5v6M9 14.5h6'/%3E%3C/svg%3E");
  --i-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7a4.3 4.3 0 0 1 7.5 2.8C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E");
  --i-heart-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath fill='black' d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7a4.3 4.3 0 0 1 7.5 2.8C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E");
  --i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --i-chev-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
  --i-chev-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  --i-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
  --i-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
  --i-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
  --i-tape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h13a5 5 0 0 1 0 10H3z'/%3E%3Cpath d='M7 8v3M10 8v4M13 8v3'/%3E%3Ccircle cx='16' cy='13' r='1.6'/%3E%3C/svg%3E");
  --i-mirror: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='3' width='12' height='15' rx='6'/%3E%3Cpath d='M12 18v3M8 21h8'/%3E%3C/svg%3E");
  --i-hanger: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7a2 2 0 1 1 2-2'/%3E%3Cpath d='M12 7v2L3 16h18l-9-7'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-share: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5.5' r='2.5'/%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='18.5' r='2.5'/%3E%3Cpath d='M8.2 10.8l7.6-4M8.2 13.2l7.6 4'/%3E%3C/svg%3E");
  --i-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath fill='black' d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E");
  --i-tt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3v11.5a3.5 3.5 0 1 1-3.5-3.5'/%3E%3Cpath d='M14 3c.4 2.6 2.2 4.4 5 4.6'/%3E%3C/svg%3E");
}
.i-search { --i: var(--i-search); }
.i-bag { --i: var(--i-bag); }
.i-bag-plus { --i: var(--i-bag-plus); }
.i-heart { --i: var(--i-heart); }
.i-heart-on { --i: var(--i-heart-on); }
.i-close { --i: var(--i-close); }
.i-chev-l { --i: var(--i-chev-l); }
.i-chev-r { --i: var(--i-chev-r); }
.i-eye { --i: var(--i-eye); }
.i-arrow { --i: var(--i-arrow); }
.i-home { --i: var(--i-home); }
.i-grid { --i: var(--i-grid); }
.i-wa { --i: var(--i-wa); }
.i-tape { --i: var(--i-tape); }
.i-mirror { --i: var(--i-mirror); }
.i-hanger { --i: var(--i-hanger); }
.i-check { --i: var(--i-check); }
.i-share { --i: var(--i-share); }
.i-play { --i: var(--i-play); }
.i-tt { --i: var(--i-tt); }
