/* =========================================================================
   THEME 17 — STUDIO — sistema visual del tema a medida.
   El esqueleto es el de theme16 (por eso la paridad con Focuson es exacta),
   pero TODO color, tipografía, radio y ancho sale de tokens sobreescribibles
   por tienda: ver App\Studio\Tokens y el <style> que inyecta el layout.
   Prefijo .st- — sin conflictos con otros temas.
   ========================================================================= */

/* ── Variables / paletas por variante ───────────────────────────────────── */
body[class*="theme17"] {
  --orange: #f1b038;
  --orange-2: #ffc457;
  --blue: #0f4060;
  --blue-2: #2f6690;
  --navy: #0b405f;
  --navy-2: #0f4060;
  --ink: #14202b;
  --muted: #64717d;
  --line: #e8edf1;
  --shadow: 0 26px 60px rgba(15, 64, 96, .16);
  --bg-1: #fff;
  --bg-2: #f4f7f9;
  --bg-3: #f4f7f9;
  --card-grad-a: #f4f7f9;
  --card-grad-b: #eef2f5;
  --orange-rgb: 241, 176, 56;
  --blue-rgb: 15, 64, 96;
}
body.theme17-v2 {
  --orange: #12b76a; --orange-2: #32d583;
  --blue: #66c61c;   --blue-2: #a6ef67;
  --navy: #08281c;   --navy-2: #0e3b2a;
  --ink: #07281c;
  --card-grad-a: #f7fdf9; --card-grad-b: #ecfaf1;
  --bg-2: #f6fdf9; --bg-3: #f2fbf6;
  --orange-rgb: 18, 183, 106; --blue-rgb: 102, 198, 28;
}
body.theme17-v3 {
  --orange: #7c3aed; --orange-2: #a78bfa;
  --blue: #ec4899;   --blue-2: #f9a8d4;
  --navy: #1e1038;   --navy-2: #2d1a52;
  --ink: #22143c;
  --card-grad-a: #faf8ff; --card-grad-b: #f3edff;
  --bg-2: #faf8ff; --bg-3: #f7f3ff;
  --orange-rgb: 124, 58, 237; --blue-rgb: 236, 72, 153;
}
body.theme17-v4 {
  --orange: #e03131; --orange-2: #ff6b6b;
  --blue: #f59f00;   --blue-2: #ffd43b;
  --navy: #33080b;   --navy-2: #4a0f14;
  --ink: #330d10;
  --card-grad-a: #fff9f8; --card-grad-b: #ffefed;
  --bg-2: #fff8f7; --bg-3: #fff4f2;
  --orange-rgb: 224, 49, 49; --blue-rgb: 245, 159, 0;
}
body.theme17-v5 {
  --orange: #0d9488; --orange-2: #2dd4bf;
  --blue: #0ea5e9;   --blue-2: #7dd3fc;
  --navy: #042f2e;   --navy-2: #0a4342;
  --ink: #073231;
  --card-grad-a: #f6fdfc; --card-grad-b: #e9faf7;
  --bg-2: #f5fdfc; --bg-3: #f0fbf9;
  --orange-rgb: 13, 148, 136; --blue-rgb: 14, 165, 233;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
body[class*="theme17"] {
  margin: 0;
  font-family: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink, #1c2530);
  background: var(--bg-1, #fff);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}
html { scroll-behavior: smooth; }
body[class*="theme17"] * { box-sizing: border-box; }
body[class*="theme17"] img { max-width: 100%; display: block; }
body[class*="theme17"] button { font-family: inherit; cursor: pointer; }
/* :where() → especificidad 0: es el color por defecto de los enlaces de contenido,
   pero NUNCA pisa el color propio de un componente (.st-pill, .st-icon-btn, footer…) */
:where(body[class*="theme17"] a) { text-decoration: none; color: var(--blue); }
:where(body[class*="theme17"] a:hover) { color: var(--orange); }
body[class*="theme17"] ::-webkit-scrollbar { width: 10px; height: 10px; }
body[class*="theme17"] ::-webkit-scrollbar-thumb { background: #cfd8de; border-radius: 20px; }

@keyframes st-float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes st-drawer-in { from { transform: translateX(100%) } to { transform: translateX(0) } }
@keyframes st-modal-in { from { opacity: 0; transform: scale(.96) translateY(8px) } to { opacity: 1; transform: none } }
@keyframes st-fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes st-spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }

.st-container { width: min(1240px, calc(100% - 36px)); margin-inline: auto; }

/* ── Header (calcado del prototipo: navy sólido, sticky, nav en texto plano) ─ */
.st-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--blue);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.st-nav {
  width: min(1240px, calc(100% - 36px)); margin-inline: auto;
  min-height: 61px; display: flex; align-items: center; gap: 16px; padding-block: 10px;
}
.st-logo { display: flex; align-items: center; gap: 10px; min-width: max-content; border: 0; background: none; cursor: pointer; padding: 0; color: #fff; }
.st-logo:hover { color: #fff; }
.st-logo img { height: 40px; width: auto; border-radius: 6px; }
.st-logo-text { font-weight: 900; font-size: 20px; letter-spacing: -.8px; color: #fff; }
.st-logo-text b { color: var(--orange); }
.st-navpills {
  display: flex; align-items: center; gap: 22px; margin-left: 6px; flex: 1;
  /* visible en escritorio para que no recorte el desplegable de género;
     en ≤1024px vuelve a ser un rail con scroll horizontal */
  overflow: visible; scrollbar-width: none;
}
.st-navpills::-webkit-scrollbar { display: none; }
.st-pill {
  display: inline-block; border: 0; cursor: pointer; padding: 0; border-radius: 0;
  font-weight: 500; font-size: 15px; background: transparent; color: rgba(255, 255, 255, .88); white-space: nowrap;
}
.st-pill:hover, .st-pill.active { color: var(--orange); }

/* Categoría del menú con subcategorías por género (Hombre/Mujer/Unisex/Niño) */
.st-navgroup { position: relative; display: inline-flex; }
.st-pill--has-sub { display: inline-flex; align-items: center; gap: 5px; }
.st-pill-caret { transition: transform .18s ease; opacity: .8; }
.st-navgroup:hover .st-pill-caret, .st-navgroup:focus-within .st-pill-caret { transform: rotate(180deg); }
.st-navdrop {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 168px; padding: 8px; margin-top: 12px; z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(11, 42, 63, .18);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
/* Puente invisible para que el mouse pueda bajar del pill al panel */
.st-navdrop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.st-navgroup:hover .st-navdrop, .st-navgroup:focus-within .st-navdrop {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.st-navdrop a {
  display: block; padding: 9px 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--navy); white-space: nowrap;
}
.st-navdrop a:hover { background: var(--bg-2); color: var(--blue); }

.st-cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 16px; min-height: 0; border-radius: 999px; font-weight: 600;
  background: transparent; border: 1px solid rgba(255, 255, 255, .4); color: #fff; font-size: 14px;
}
.st-cart-btn:hover { border-color: var(--orange); color: var(--orange); }
.st-badge {
  background: var(--orange); color: #14202b; border-radius: 999px; min-width: 20px; height: 20px;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 900; padding: 0 4px;
}
.st-icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; background: transparent; color: #fff; cursor: pointer; flex: 0 0 auto;
}
.st-icon-btn:hover { border-color: var(--orange); color: var(--orange); }
.st-header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* ── Botones ────────────────────────────────────────────────────────────── */
.st-btn-primary {
  width: max-content; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; padding: 14px 28px; border-radius: 999px; font-weight: 600;
  background: var(--blue); color: #fff; font-size: 15px; transition: background .2s ease, color .2s ease;
}
.st-btn-primary:hover { background: var(--orange); color: #14202b; }
.st-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: #fff; color: var(--blue); border: 1px solid #d7e0e7; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.st-btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.st-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: #fff; color: var(--blue); border: 1px solid var(--blue); cursor: pointer;
}
.st-btn-outline:hover { background: var(--blue); color: #fff; }
.st-btn-add {
  width: 100%; border: 0; cursor: pointer; padding: 12px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; background: var(--blue); color: #fff;
  transition: background .2s ease, color .2s ease;
}
.st-btn-add:hover { background: var(--orange); color: #14202b; }
.st-btn-add.loading, .st-btn-primary.loading { opacity: .6; pointer-events: none; }
.st-arrow-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d7e0e7; background: #fff;
  cursor: pointer; display: grid; place-items: center; color: var(--blue); font-size: 17px;
  transition: border-color .2s ease;
}
.st-arrow-btn:hover { border-color: var(--blue); }
.st-arrow-btn:disabled { opacity: .4; cursor: default; }

/* ── Secciones ──────────────────────────────────────────────────────────── */
.st-section { width: min(var(--st-container, 1240px), calc(100% - 36px)); margin-inline: auto; padding: 62px 0; }
.st-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
/* Bandas full-bleed (fondos de sección del prototipo) */
.st-band { width: 100%; }
.st-band--soft { background: var(--bg-2, #f4f7f9); border-bottom: 1px solid var(--line); }
.st-band--soft-top { background: var(--bg-2, #f4f7f9); border-top: 1px solid var(--line); }
.st-kicker {
  display: block; background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); font-weight: 600;
}
.st-dot-grad { display: none; }
.st-h2 { margin: 10px 0 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -.8px; color: var(--ink); font-weight: 400; }
.st-h1 { margin: 12px 0 0; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -1.2px; color: var(--ink); font-weight: 300; }
.st-lead { max-width: 640px; margin: 12px 0 0; color: #64717d; line-height: 1.6; font-weight: 400; font-size: 16px; }

/* ── Carrusel destacados ────────────────────────────────────────────────── */
.st-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.st-carousel > * { scroll-snap-align: start; flex: 0 0 260px; }

/* ── Grid de productos ──────────────────────────────────────────────────── */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.st-grid--related { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }

/* ── Card de producto (calcada del prototipo) ───────────────────────────── */
.st-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease; display: flex; flex-direction: column;
}
.st-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 64, 96, .13); }
.st-card-media {
  position: relative; display: block; background: #fff; cursor: pointer;
}
.st-card-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.st-card-badge {
  position: absolute; left: 14px; top: 14px; right: auto; background: rgba(15, 64, 96, .92); color: #fff;
  font-weight: 600; border-radius: 999px; padding: 6px 12px; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase;
}
.st-card-badge--navy { right: auto; left: 14px; background: rgba(15, 64, 96, .92); }
.st-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.st-card-cat { color: #8b98a3; font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 1.2px; margin: 0; }
.st-card-name { font-size: 18px; line-height: 1.25; letter-spacing: 0; color: var(--ink); margin: 0; cursor: pointer; font-weight: 500; }
.st-card-prices { display: flex; align-items: baseline; gap: 10px; margin: 0; margin-top: auto; }
.st-card-price { display: inline-block; color: var(--blue); font-size: 21px; letter-spacing: 0; font-weight: 600; }
.st-card-del { display: inline-block; color: #97a4b3; font-weight: 400; font-size: 13px; }
.st-card-cuotas { color: #8b98a3; font-size: 13px; font-weight: 400; }
.st-card-actions { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.st-card-actions .st-btn-add { flex: 1; }
.st-wish-btn {
  flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #d7e0e7; background: #fff;
  border-radius: 999px; cursor: pointer; display: grid; place-items: center; color: var(--blue); padding: 0;
}
.st-wish-btn.active, .st-wish-btn:hover { color: var(--orange); border-color: var(--orange); }

/* ── Stepper de cantidad ────────────────────────────────────────────────── */
.st-stepper {
  display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center;
  background: #fff; border: 1px solid #e2e9ee; border-radius: 999px; padding: 6px; width: 150px;
}
.st-stepper button { border: 0; background: #f4f7f9; border-radius: 50%; height: 40px; cursor: pointer; display: grid; place-items: center; color: var(--blue); }
.st-stepper span, .st-stepper input {
  text-align: center; font-weight: 900; color: var(--navy); border: 0; background: transparent; width: 100%; font-size: 15px; outline: none;
}
.st-stepper input::-webkit-outer-spin-button, .st-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-stepper input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ── Cards de categoría ─────────────────────────────────────────────────── */
.st-catgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.st-catgrid--page { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.st-catcard {
  position: relative; overflow: hidden; border-radius: 26px; min-height: 230px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(8, 27, 55, .08); cursor: pointer;
  transition: .25s ease; display: block;
}
.st-catcard:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(8, 27, 55, .12); }
.st-catcard-media { position: relative; height: 120px; overflow: hidden; background: linear-gradient(135deg, var(--card-grad-a), var(--card-grad-b)); }
.st-catgrid--page .st-catcard-media { height: 150px; }
.st-catcard-media img { width: 100%; height: 100%; object-fit: cover; }
.st-catcard-icon {
  position: absolute; left: 12px; top: 12px; width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--navy);
  box-shadow: 0 10px 22px rgba(7, 23, 45, .16);
}
.st-catcard-body { padding: 16px 18px 20px; }
.st-catcard-body h3 { margin: 0 0 6px; font-size: 17px; color: var(--navy); letter-spacing: -.3px; font-weight: 800; }
.st-catcard-body p { margin: 0 0 10px; color: #5b7188; line-height: 1.4; font-weight: 600; font-size: 13px; }
.st-catcard-link { color: var(--orange); font-weight: 950; font-size: 13px; }

/* ── Toolbar de búsqueda / orden (página productos) ─────────────────────── */
.st-toolbar {
  display: flex; gap: 12px; align-items: center;
  justify-content: space-between; margin-bottom: 6px;
  background: transparent; border: 0; border-radius: 0;
  padding: 0; box-shadow: none; flex-wrap: wrap;
}
.st-search {
  flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid #dde5ea; border-radius: 999px; padding: 0 18px; min-height: 48px; color: #8b98a3;
}
.st-search input { border: 0; outline: 0; width: 100%; font-weight: 400; background: transparent; color: var(--ink); font-size: 15px; font-family: inherit; }
.st-select { border: 1px solid #dde5ea; border-radius: 999px; padding: 0 18px; min-height: 48px; font-weight: 500; color: var(--ink); background: #fff; font-family: inherit; font-size: 14px; }
.st-chips { display: flex; gap: 10px; flex-wrap: wrap; overflow-x: auto; padding: 0; margin: 28px 0; }
.st-chip {
  display: inline-block; border: 1px solid #dde5ea; border-radius: 999px; padding: 10px 20px;
  font-weight: 500; cursor: pointer; white-space: nowrap; background: #fff; color: #46545f; font-size: 14px;
}
.st-chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Fila de género dentro de una categoría: más chica y en dorado */
.st-chips--genero { margin: -14px 0 26px; gap: 8px; }
.st-chips--genero .st-chip { padding: 8px 16px; font-size: 13.5px; background: var(--bg-2); border-color: transparent; }
.st-chips--genero .st-chip:hover { border-color: var(--orange); color: var(--navy); }
.st-chips--genero .st-chip.active { background: var(--orange); color: var(--navy); border-color: var(--orange); font-weight: 700; }

/* ── Detalle de producto ────────────────────────────────────────────────── */
.st-breadcrumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; font-weight: 400; font-size: 13px; color: #8b98a3; }
.st-breadcrumb a { color: #8b98a3; }
.st-breadcrumb a:hover { color: var(--blue); }
.st-breadcrumb .current { color: #46545f; }
.st-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 44px; align-items: start; }
.st-detail-media {
  background: #f4f7f9;
  border-radius: 24px; border: 0; aspect-ratio: 1 / 1; display: block; position: relative; overflow: hidden;
}
.st-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.st-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.st-thumb {
  width: 84px; height: 84px; border-radius: 14px; border: 2px solid var(--line); background: #fff;
  display: block; cursor: pointer; overflow: hidden; padding: 0;
}
.st-thumb img { width: 100%; height: 100%; object-fit: cover; }
.st-thumb.active { border-color: var(--blue); box-shadow: none; }
.st-detail-cat { display: inline-flex; align-items: center; gap: 8px; color: #8b98a3; font-size: 12.5px; font-weight: 400; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 12px; }
.st-detail-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -1px; color: var(--ink); margin: 0 0 16px; font-weight: 400; }
/* Sin línea inferior: el precio y el bloque «en efectivo» van pegados */
.st-detail-prices { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; padding: 18px 0 0; border-top: 1px solid #eef2f5; flex-wrap: wrap; }
.st-detail-price { font-size: 38px; color: var(--blue); letter-spacing: -1px; font-weight: 600; }
.st-detail-del { color: #97a4b3; font-weight: 400; font-size: 16px; }
.st-detail-cuotas { color: #64717d; font-size: 14.5px; }
.st-detail-badge { background: var(--blue); color: #fff; font-weight: 600; border-radius: 999px; padding: 6px 12px; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; }
.st-detail-desc { color: #56626e; line-height: 1.6; font-weight: 400; font-size: 17px; margin: 0 0 22px; }
.st-detail-info { display: grid; gap: 12px; margin-top: 18px; padding: 20px; border-radius: 18px; background: #f4f7f9; border: 1px solid var(--line); }
.st-detail-info div { display: flex; gap: 12px; font-size: 14.5px; color: #46545f; }
.st-detail-info div span { color: var(--blue); }
.st-spec-card { background: #f4f7f9; border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 22px; }
.st-spec-card h3 { margin: 0 0 8px; font-size: 13px; color: var(--blue); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; }
.st-spec-card p, .st-spec-card div { margin: 0; color: #5b7188; line-height: 1.55; font-weight: 600; font-size: 14px; }
.st-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.st-variants { display: grid; gap: 14px; margin-bottom: 22px; }
.st-variant-label { font-weight: 800; font-size: 13px; color: var(--navy); display: block; margin-bottom: 8px; }
.st-variant-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.st-variant-opt {
  border: 1px solid #dde5ea; border-radius: 999px; background: #fff; color: var(--ink);
  padding: 10px 18px; font-weight: 500; font-size: 14px; cursor: pointer;
}
.st-variant-opt.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.st-related { margin-top: 64px; }
.st-related h2 { font-size: 26px; letter-spacing: -.4px; color: var(--ink); margin: 0 0 22px; font-weight: 500; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.st-footer { background: #fff; color: var(--navy); padding: 32px 0; margin-top: 20px; border-top: 1px solid var(--line); }
.st-footer-inner {
  width: min(1240px, calc(100% - 36px)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.st-footer small { color: #64717d; font-weight: 650; font-size: 13px; }
.st-footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.st-footer-pill {
  display: inline-block; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--navy); border-radius: 999px; padding: 10px 13px; font-weight: 850; font-size: 13px; cursor: pointer;
}
/* Logo cuadrado en el footer */
.st-footer-logo { width: 86px; height: 86px; object-fit: cover; border-radius: 14px; }

/* ── FAB carrito ────────────────────────────────────────────────────────── */
.st-fab {
  position: fixed; right: 20px; bottom: 24px; z-index: 80; display: inline-flex; align-items: center; gap: 10px;
  border: 0; cursor: pointer; padding: 16px 20px; border-radius: 22px; font-weight: 900; font-size: 15px;
  background: var(--navy); color: #fff; box-shadow: 0 20px 48px rgba(6, 26, 56, .32);
  animation: st-float 4s ease-in-out infinite;
}

/* ── Drawer de carrito ──────────────────────────────────────────────────── */
.st-cart-overlay { position: fixed; inset: 0; background: rgba(6, 14, 28, .5); z-index: 90; display: none; }
.st-cart-overlay.show { display: block; animation: st-fade-in .25s ease; }
.st-cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 95;
  box-shadow: -20px 0 60px rgba(3, 18, 43, .25); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .3s ease; visibility: hidden;
}
.st-cart-panel.open { transform: translateX(0); visibility: visible; }
.st-cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.st-cart-head h2 { margin: 0; font-size: 20px; color: var(--navy); letter-spacing: -.4px; }
.st-cart-x { border: 0; background: var(--bg-2); border-radius: 12px; width: 36px; height: 36px; cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.st-cart-items { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.st-cart-empty { color: #5b7188; font-weight: 650; text-align: center; margin-top: 40px; }
.st-cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.st-cart-item-img { width: 64px; height: 64px; border-radius: 14px; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.st-cart-item-img img { width: 80%; height: 80%; object-fit: contain; }
.st-cart-item b { display: block; font-size: 13.5px; color: var(--navy); line-height: 1.25; margin-bottom: 4px; }
.st-cart-item-variant { color: #5b7188; font-size: 11px; font-weight: 700; display: block; margin-bottom: 4px; }
.st-cart-qty { display: flex; align-items: center; gap: 8px; }
.st-cart-qty button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 26px; height: 26px;
  cursor: pointer; display: grid; place-items: center; color: var(--navy); font-weight: 900; padding: 0;
}
.st-cart-qty span { font-weight: 800; font-size: 13px; }
.st-cart-item-right { text-align: right; }
.st-cart-item-right strong { display: block; color: var(--navy); font-size: 14px; }
.st-cart-remove { border: 0; background: none; color: #c23434; font-weight: 800; font-size: 12px; cursor: pointer; padding: 4px 0; }
.st-cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.st-cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.st-cart-total-row span { font-weight: 800; color: #5b7188; }
.st-cart-total-row strong { font-size: 24px; color: var(--navy); letter-spacing: -.5px; }
.st-cart-checkout {
  display: block; text-align: center; width: 100%; border: 0; cursor: pointer; padding: 16px;
  border-radius: 999px; font-weight: 600; font-size: 16px;
  background: var(--blue); color: #fff;
}
.st-cart-checkout:hover { background: var(--orange); color: #14202b; }
.st-cart-continue { width: 100%; border: 0; background: none; color: #8b98a3; font-weight: 500; font-size: 13px; cursor: pointer; padding: 12px 0 0; }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.st-toast {
  position: fixed; bottom: 100px; left: 50%; z-index: 200; display: flex; align-items: center; gap: 10px;
  background: #14202b; color: #fff; padding: 13px 22px; border-radius: 999px; font-weight: 500; font-size: 14.5px;
  box-shadow: 0 12px 30px rgba(11, 32, 47, .28); opacity: 0; transform: translateX(-50%) translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.st-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.st-toast svg { color: var(--orange); }

/* ── WhatsApp ───────────────────────────────────────────────────────────── */
.st-btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px;
  border-radius: 999px; font-weight: 600; font-size: 16px;
  background: #25d366; color: #fff; border: 0; cursor: pointer;
}
.st-btn-wa:hover { background: #1fb857; color: #fff; }

/* ── Spinner ────────────────────────────────────────────────────────────── */
.st-spinner { display: flex; justify-content: center; padding: 34px 0 6px; }
.st-spinner svg { animation: st-spin .8s linear infinite; }

/* ── Auth (login / registro / reset) ────────────────────────────────────── */
.st-auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 18px; }
.st-auth-card {
  width: min(480px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow); padding: 34px;
}
.st-auth-card h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.8px; color: var(--navy); }
.st-auth-card .st-auth-sub { color: #5b7188; font-weight: 600; font-size: 14px; margin: 0 0 22px; line-height: 1.5; }
.st-auth-card label, .st-field-label { font-weight: 800; font-size: 13px; color: var(--navy); display: block; margin-bottom: 6px; }
.st-auth-card input[type="text"], .st-auth-card input[type="email"], .st-auth-card input[type="password"], .st-input {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font-size: 14px;
  font-weight: 650; color: var(--navy); background: #fff; outline: none; font-family: inherit;
}
.st-auth-card input:focus, .st-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), .15); }
.st-auth-field { margin-bottom: 16px; }
.st-auth-links { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; font-weight: 700; font-size: 13px; color: #5b7188; flex-wrap: wrap; }
.st-auth-links a { color: var(--orange); font-weight: 850; }
.st-error { color: #c23434; font-weight: 750; font-size: 13px; margin: 6px 0 0; display: block; }

/* ── Página común (banner de sección) ───────────────────────────────────── */
.st-page-head { width: min(1240px, calc(100% - 36px)); margin-inline: auto; padding: 48px 0 8px; }

/* ── Blog ───────────────────────────────────────────────────────────────── */
.st-blog-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 16px 40px rgba(8, 27, 55, .08); display: flex; flex-direction: column; }
.st-blog-card img { width: 100%; height: 200px; object-fit: cover; }
.st-blog-card .st-blog-body { padding: 18px 20px 22px; }
.st-blog-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); letter-spacing: -.4px; }
.st-blog-card p { margin: 0 0 12px; color: #5b7188; font-weight: 600; font-size: 14px; line-height: 1.5; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

/* Tablet / small laptop: la barra de píldoras pasa a una tira scrollable */
@media (max-width: 1024px) {
  .st-nav { min-height: 62px; gap: 12px; }
  .st-navpills {
    order: 3; width: 100%; justify-content: flex-start;
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; border-radius: 16px;
  }
  .st-navpills::-webkit-scrollbar { display: none; }
  .st-pill { flex: 0 0 auto; padding: 10px 13px; }
  /* El rail scrollea, así que el desplegable se recortaría: en táctil el género
     se elige con los chips de la página de categoría. */
  .st-navgroup { flex: 0 0 auto; }
  .st-navdrop, .st-pill-caret { display: none; }
  .st-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
}

/* Móvil grande */
@media (max-width: 760px) {
  .st-nav { padding-block: 8px; }
  .st-logo img { height: 48px; width: auto; }
  .st-logo-text { font-size: 19px; }

  .st-hero { height: 440px; }
  .st-hero-content { padding: 0 20px; gap: 14px; width: 100%; }
  .st-hero-sub { font-size: 15px; }
  .st-hero-dots { left: 20px; bottom: 20px; }

  .st-section { padding: 40px 0 16px; }
  .st-section-head { margin-bottom: 18px; }

  .st-toolbar { position: static; padding: 10px; }
  .st-select { flex: 1 1 100%; }

  /* Detalle: una sola columna, imagen más grande */
  .st-detail-grid { grid-template-columns: 1fr; gap: 22px; }
  .st-detail-media img { width: 74%; height: 74%; }
  .st-detail-title { font-size: clamp(22px, 6vw, 30px); }
  .st-detail-price { font-size: 28px; }
  .st-detail-actions { gap: 10px; }
  .st-detail-actions .st-btn-primary,
  .st-detail-actions .st-btn-wa { flex: 1 1 100%; width: 100%; }
  .st-related { margin-top: 40px; }

  .st-footer { padding: 26px 0; }
}

/* Teléfonos (≤560): 2 columnas compactas, carrito solo icono en el header */
@media (max-width: 560px) {
  .st-cart-btn { font-size: 0; gap: 6px; padding: 11px; min-height: 44px; }
  .st-cart-btn .st-badge { font-size: 12px; }

  .st-hero { height: 400px; }
  .st-hero-title { letter-spacing: -1px; }
  .st-btn-primary { padding: 13px 18px; min-height: 48px; font-size: 14px; }

  .st-grid,
  .st-grid--related,
  .st-catgrid,
  .st-catgrid--page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .st-card { border-radius: 20px; }
  .st-card-body { padding: 12px; }
  .st-card-name { font-size: 13.5px; min-height: 34px; margin-bottom: 8px; }
  .st-card-cat { font-size: 10px; }
  .st-card-prices { margin-bottom: 10px; }
  .st-card-price { font-size: 16px; }
  .st-card-del { font-size: 11px; }
  .st-btn-add { padding: 10px; font-size: 13px; min-height: 40px; }
  .st-card-actions { gap: 6px; }
  .st-wish-btn { flex: 0 0 40px; width: 40px; height: 40px; }

  .st-carousel > * { flex: 0 0 200px; }

  .st-catcard { min-height: 0; border-radius: 20px; }
  .st-catcard-media { height: 96px; }
  .st-catgrid--page .st-catcard-media { height: 110px; }
  .st-catcard-body { padding: 12px 12px 14px; }
  .st-catcard-body h3 { font-size: 15px; }
  .st-catcard-body p { font-size: 12px; }

  /* Toolbar de búsqueda apilado */
  .st-search { min-width: 100%; }

  /* FAB más compacto */
  .st-fab { right: 14px; bottom: 16px; padding: 13px 16px; font-size: 14px; }

  /* Drawer del carrito a ancho completo con menos padding */
  .st-cart-head { padding: 18px 16px 14px; }
  .st-cart-items { padding: 14px 16px; }
  .st-cart-foot { padding: 16px; }
  .st-cart-item { grid-template-columns: 56px 1fr auto; gap: 10px; }
  .st-cart-item-img { width: 56px; height: 56px; }

  /* Tabla de carrito genérica: se comporta como bloque en móvil */
  body[class*="theme17"] .cart-page-sec table,
  body[class*="theme17"] .cart-page-sec thead,
  body[class*="theme17"] .cart-page-sec tbody,
  body[class*="theme17"] .cart-page-sec tr,
  body[class*="theme17"] .cart-page-sec td { display: block; width: 100%; }
  body[class*="theme17"] .cart-page-sec thead { display: none; }
  body[class*="theme17"] .cart-page-sec tr {
    border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; padding: 8px;
  }
  body[class*="theme17"] .cart-page-sec td { border-bottom: 0; padding: 8px 10px; }
}

/* Teléfonos muy angostos (≤380): 1 columna para respirar */
@media (max-width: 380px) {
  .st-grid,
  .st-grid--related,
  .st-catgrid,
  .st-catgrid--page { grid-template-columns: 1fr; }
  .st-card-name { min-height: 0; }
}

/* =========================================================================
   CART / CHECKOUT / PÁGINAS COMPARTIDAS (markup genérico de StoreGo)
   Scopeado para no romper otras vistas.
   ========================================================================= */
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec, .empty-cart-section, .wishlist-sec, .common-banner-sec, .blog-sec) {
  width: min(1240px, calc(100% - 36px));
  margin-inline: auto;
  padding: 34px 0 64px;
}
body[class*="theme17"] .common-banner-sec { padding: 40px 0 6px; }
body[class*="theme17"] .common-banner-sec h1,
body[class*="theme17"] .common-banner-sec h2 {
  font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -1.5px; color: var(--navy); margin: 0 0 8px; line-height: 1.05;
}
body[class*="theme17"] .common-banner-sec ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 10px 0 0; font-weight: 800; font-size: 14px; color: #5b7188; flex-wrap: wrap; }
body[class*="theme17"] .common-banner-sec ul a { color: #5b7188; }

body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) .row { display: flex; flex-wrap: wrap; gap: 24px; }
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) [class*="col-lg-8"],
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) [class*="col-md-8"] { flex: 2 1 560px; min-width: 0; }
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) [class*="col-lg-4"],
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) [class*="col-md-4"] { flex: 1 1 300px; min-width: 0; }
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) [class*="col-12"],
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) [class*="col-lg-6"],
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) [class*="col-md-6"] { flex: 1 1 300px; min-width: 0; }

/* Tabla del carrito */
body[class*="theme17"] .cart-page-sec table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(8, 27, 55, .07);
}
body[class*="theme17"] .cart-page-sec table th {
  background: var(--bg-2); color: var(--navy); text-align: left; font-weight: 900; font-size: 13px;
  text-transform: uppercase; letter-spacing: .4px; padding: 16px 18px; border-bottom: 1px solid var(--line);
}
body[class*="theme17"] .cart-page-sec table td { padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 650; vertical-align: middle; font-size: 14px; }
body[class*="theme17"] .cart-page-sec table tr:last-child td { border-bottom: 0; }
body[class*="theme17"] .cart-page-sec table img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: var(--bg-2); padding: 4px; }

/* Cards genéricas (resumen de pedido, direcciones, métodos de pago) */
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) :is(.card, .order-detail-card, .order-summary, .address-card) {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 16px 40px rgba(8, 27, 55, .07); padding: 22px; margin-bottom: 18px;
}
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) :is(h1, h2, h3, h4, h5) { color: var(--navy); letter-spacing: -.4px; }
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) p { color: #4f6780; font-weight: 600; }

/* Inputs */
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) :is(.form-control, .form-select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px;
  font-weight: 650; color: var(--navy); background: #fff; outline: none; font-family: inherit;
}
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) :is(.form-control, .form-select, select, textarea):focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), .15);
}
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) label { font-weight: 800; font-size: 13px; color: var(--navy); margin-bottom: 6px; display: inline-block; }

/* Botones genéricos */
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec, .empty-cart-section, .wishlist-sec) :is(.btn, button[type="submit"], .checkout-btn, a.btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 13px 24px; min-height: 48px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--blue); color: #fff;
  box-shadow: none; text-decoration: none;
}
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) :is(.btn-outline, .btn-secondary, .btn-light) {
  background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: none;
}
body[class*="theme17"] :is(.cart-page-sec, .checkout-sec, .payment-sec) .btn-danger { background: #c23434; box-shadow: 0 14px 30px rgba(194, 52, 52, .22); }

/* Spinner de cantidad en tabla del carrito */
body[class*="theme17"] .cart-page-sec .qty-spinner { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
body[class*="theme17"] .cart-page-sec .qty-spinner button { border: 0; background: #fff; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; color: var(--navy); font-weight: 900; }
body[class*="theme17"] .cart-page-sec .qty-spinner input { width: 44px; text-align: center; border: 0; background: transparent; font-weight: 900; color: var(--navy); outline: none; }

/* Radios de métodos de pago */
body[class*="theme17"] .payment-sec :is(.form-check, .payment-method) { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; background: #fff; font-weight: 750; color: var(--navy); }
body[class*="theme17"] .payment-sec input[type="radio"] { accent-color: var(--orange); width: 18px; height: 18px; }

/* Carrito vacío */
body[class*="theme17"] .empty-cart-section { text-align: center; padding: 80px 0; }
body[class*="theme17"] .empty-cart-section h3 { color: var(--navy); font-size: 26px; letter-spacing: -.8px; }

/* =========================================================================
   THEME 16 — Secciones adicionales del prototipo OPTICA FOCUS
   ========================================================================= */

/* ── Botones extra ──────────────────────────────────────────────────────── */
.st-btn-gold {
  width: max-content; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; padding: 15px 28px; border-radius: 999px; font-weight: 600;
  background: var(--orange); color: #14202b; font-size: 15.5px; box-shadow: none;
}
.st-btn-gold:hover { background: var(--orange-2); color: #14202b; }
.st-btn-outline-light {
  width: max-content; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #fff;
  padding: 15px 28px; border-radius: 999px; font-weight: 500; font-size: 15.5px; cursor: pointer;
}
.st-btn-outline-light:hover { color: #fff; }
.st-btn-outline-light:hover { background: rgba(255, 255, 255, .12); }

/* ── FAB WhatsApp ───────────────────────────────────────────────────────── */
.st-wa-fab {
  position: fixed; right: 20px; bottom: 24px; z-index: 70; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.24);
}
.st-wa-fab:hover { background: #1fb857; color: #fff; }
.st-fab { display: none !important; }
.st-wa-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--orange); color: #14202b; font-size: 13.5px; font-weight: 800; white-space: nowrap;
}
.st-wa-pill:hover { background: var(--orange-2); color: #14202b; }
.st-wa-pill-text { display: inline; }

/* ── Hero con video ─────────────────────────────────────────────────────── */
.st-hero-video { position: relative; min-height: 620px; height: calc(100vh - 61px); overflow: hidden; background: var(--bg-2); }
.st-hero-video--full { height: 100vh; }
.st-hero-poster, .st-hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.st-hero-vid { opacity: 0; transition: opacity .5s ease; }
.st-hero-vid.is-loaded { opacity: 1; }
.st-hero-vid--mobile { display: none; }
.st-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,32,47,.94) 0%, rgba(15,64,96,.76) 44%, rgba(15,64,96,.16) 78%, rgba(15,64,96,0) 100%); }
.st-hero-content {
  position: relative; z-index: 2; width: min(1240px, calc(100% - 36px)); max-width: none;
  margin-inline: auto; height: 100%; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; gap: 18px; padding: 0;
}
.st-hero-content .st-hero-title,
.st-hero-content .st-hero-sub,
.st-hero-content .st-hero-actions,
.st-hero-content .st-hero-stats { width: 100%; max-width: 620px; }
.st-hero-eyebrow {
  display: inline-flex; width: max-content; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(var(--orange-rgb), .55);
  color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
}
.st-hero-title { font-size: clamp(44px, 6vw, 86px); line-height: .98; font-weight: 300; color: #fff; letter-spacing: -1.5px; margin: 0; }
.st-hero-title b { font-weight: 600; color: var(--orange); }
.st-hero-sub { font-size: 20px; line-height: 1.55; color: rgba(255,255,255,.86); max-width: 520px; margin: 0; }
.st-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.st-hero-actions .st-btn-primary { background: var(--orange); color: #14202b; padding: 16px 30px; font-size: 16px; }
.st-hero-actions .st-btn-primary:hover { background: var(--orange-2); color: #14202b; }
.st-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); }
.st-hero-stat { display: flex; flex-direction: column; gap: 2px; }
.st-hero-stat span { font-size: 26px; font-weight: 600; color: #fff; }
.st-hero-stat small { font-size: 13px; color: rgba(255,255,255,.7); }

/* ── Hero slider (múltiples slides configurables desde el editor) ───────── */
/* Las imágenes se muestran completas, sin recortar: ancho 100% y alto automático
   (mismo criterio que .st-editorial-slide: display none/block, no crossfade absoluto). */
.st-hero-slider { position: relative; width: 100%; background: var(--bg-2); overflow: hidden; }
.st-hero-slide { display: none; position: relative; }
.st-hero-slide.active { display: block; }
/* La variante móvil la elige <picture> vía media query, no el CSS: sólo existe UN <img>. */
.st-hero-slide-pic { display: block; }
.st-hero-slide-img { display: block; width: 100%; height: auto; }
.st-hero-slide-link { display: block; }
/* Fondo de video: sí ocupa la pantalla y recorta (una toma de video tolera el recorte,
   a diferencia de un banner con texto/precio ya compuesto en la imagen). */
.st-hero-slide--video { min-height: 620px; height: calc(100vh - 61px); overflow: hidden; }
.st-hero-slider--full .st-hero-slide--video { height: 100vh; }
.st-hero-slide--video .st-hero-vid,
.st-hero-slide--video .st-hero-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.st-hero-slide .st-hero-shade { z-index: 1; }
.st-hero-slide .st-hero-content { z-index: 2; }
.st-hero-slide-cta {
  position: absolute; z-index: 2; left: 24px; bottom: 30px;
  padding: 15px 26px; font-size: 15px;
}
/* Flechas a los costados de la imagen (izquierda/derecha, centradas verticalmente).
   El contenedor no capta clicks (pointer-events:none) para no tapar el link de la slide;
   sólo los botones en sí son clickeables. */
.st-hero-arrows {
  position: absolute; z-index: 3; inset: 0; display: flex; align-items: center;
  justify-content: space-between; padding: 0 16px; pointer-events: none;
}
.st-hero-arrows .st-arrow-btn { pointer-events: auto; }
.st-hero-dots { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 20px; display: flex; gap: 8px; }
.st-hero-dot { width: 10px; height: 6px; border-radius: 999px; border: 0; background: rgba(255,255,255,.55); padding: 0; cursor: pointer; }
.st-hero-dot.active { width: 30px; background: var(--orange); }
/* Refuerzo: sólo la slide .active debe verse (por si algún estilo de una versión anterior quedó cacheado). */
.st-hero-slide:not(.active) { display: none !important; }

/* ── Confianza / Géneros / Ofertas (debajo del hero) ─────────────────────── */
.st-trust-band { width: min(1240px, calc(100% - 36px)); margin: 34px auto; }
.st-trust-band img { display: block; width: 100%; height: auto; border-radius: 18px; }

.st-generos-grid {
  width: min(1240px, calc(100% - 36px)); margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.st-genero-card { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 2/3; }
.st-genero-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.st-genero-card:hover img { transform: scale(1.04); }
.st-genero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,32,47,.85) 0%, rgba(11,32,47,.05) 55%, rgba(11,32,47,0) 100%); }
.st-genero-label--overlay { position: absolute; left: 18px; right: 18px; bottom: 18px; color: #fff; font-size: 19px; font-weight: 600; letter-spacing: -.2px; }
.st-genero-label--outside { display: block; margin-top: 12px; text-align: center; color: var(--navy); font-size: 16px; font-weight: 600; letter-spacing: -.2px; }

.st-ofertas-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.st-oferta-card { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--bg-2); }
.st-oferta-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; transition: transform .4s ease; }
.st-oferta-card:hover img { transform: scale(1.04); }
.st-oferta-label {
  position: absolute; left: 14px; bottom: 14px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--navy); font-size: 13px; font-weight: 700;
}
.st-section-subtitle { margin: 10px 0 0; font-size: 15.5px; color: #56626e; max-width: 560px; }

/* Ofertas rectangulares (distinta de "Lentes sin receta", que usa chips cuadrados).
   Una sola columna: cada imagen debajo de la otra, a lo ancho del contenedor. */
.st-ofertas-rect-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
.st-ofertarect-card { position: relative; display: block; border-radius: 16px; overflow: hidden; }
.st-ofertarect-card img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.st-ofertarect-card:hover img { transform: scale(1.02); }

/* Te ayudamos a elegir */
.st-ayuda-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.st-ayuda-card { position: relative; display: block; border-radius: 18px; overflow: hidden; }
.st-ayuda-card img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.st-ayuda-card:hover img { transform: scale(1.03); }
.st-ayuda-label {
  position: absolute; left: 14px; bottom: 14px; padding: 8px 15px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--navy); font-size: 13.5px; font-weight: 700;
}

/* ── Beneficios ─────────────────────────────────────────────────────────── */
.st-benefits { background: var(--bg-2); color: var(--navy); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.st-benefits-inner {
  width: min(1240px, calc(100% - 36px)); margin-inline: auto; padding: 18px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px;
}
.st-benefit-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--navy); font-weight: 650; }
.st-benefit-dot { color: var(--orange); font-size: 18px; }

/* ── Slider editorial ───────────────────────────────────────────────────── */
.st-editorial { width: min(1240px, calc(100% - 36px)); margin-inline: auto; padding: 70px 0; position: relative; min-height: 420px; }
.st-editorial-slide {
  display: none; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 46px; align-items: center;
}
.st-editorial-slide.active { display: grid; animation: st-fade-in .4s ease both; }
.st-editorial-p { margin: 0 0 22px; font-size: 17.5px; line-height: 1.65; color: #56626e; max-width: 520px; }
.st-editorial-bullets { margin: 0 0 28px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.st-editorial-bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: #33424f; font-weight: 400; }
.st-editorial-bullets li span { color: var(--blue); }
.st-editorial-arrows { display: flex; gap: 8px; margin-left: 6px; }
.st-editorial-dots { display: flex; gap: 8px; margin-top: 26px; }
.st-editorial-dot { width: 10px; height: 6px; border-radius: 999px; border: 0; background: #d3dce3; padding: 0; cursor: pointer; }
.st-editorial-dot.active { width: 30px; background: var(--blue); }
.st-editorial-media { position: relative; }
.st-editorial-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 26px; background: #f4f7f9; }
.st-editorial-media img { position: relative; width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 26px; box-shadow: 0 26px 60px rgba(15,64,96,.16); }

/* ── Rail de categorías ─────────────────────────────────────────────────── */
.st-cats-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
.st-cats-rail::-webkit-scrollbar { display: none; }
.st-catrail-card {
  flex: 0 0 300px; scroll-snap-align: start; position: relative; border-radius: 22px; overflow: hidden;
  background: var(--navy); display: block; height: 300px; transition: box-shadow .25s ease;
}
.st-catrail-card:hover { box-shadow: 0 20px 44px rgba(15, 64, 96, .2); }
.st-catrail-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.st-catrail-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,32,47,.85) 0%, rgba(11,32,47,.15) 55%, rgba(11,32,47,0) 100%); }
.st-catrail-info { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.st-catrail-info b { font-size: 23px; font-weight: 600; color: #fff; }
.st-catrail-note { font-size: 13.5px; color: rgba(255,255,255,.78); }
.st-catrail-count { margin-top: 8px; align-self: flex-start; padding: 8px 16px; border-radius: 999px; background: var(--orange); color: #14202b; font-size: 13.5px; font-weight: 600; }

/* ── Elegí tu estilo ────────────────────────────────────────────────────── */
.st-style-sec { background: var(--blue); color: #fff; }
.st-style-inner {
  width: min(1240px, calc(100% - 36px)); margin-inline: auto; padding: 74px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 46px; align-items: center;
}
.st-style-logo { width: 108px; height: 108px; border-radius: 18px; margin-bottom: 26px; object-fit: cover; }
.st-style-title { color: #fff; font-weight: 300; letter-spacing: -1px; margin: 0 0 18px; }
.st-style-p { margin: 0 0 16px; font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.84); max-width: 540px; }
/* Si el cliente elige un fondo claro para esta sección, el texto tiene que
   dejar de ser blanco: el título y los párrafos lo traen fijo del diseño. */
.st-style-sec.st-bg-white, .st-style-sec.st-bg-soft, .st-style-sec.st-bg-accent { color: var(--navy, #0b405f); }
.st-style-sec.st-bg-white .st-style-title, .st-style-sec.st-bg-soft .st-style-title, .st-style-sec.st-bg-accent .st-style-title,
.st-style-sec.st-bg-white .st-style-p, .st-style-sec.st-bg-soft .st-style-p, .st-style-sec.st-bg-accent .st-style-p { color: inherit; }

.st-style-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.st-style-model { position: relative; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.06); }
.st-style-model img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.st-style-model span { position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px; background: rgba(11,32,47,.72); font-size: 11.5px; color: #fff; }

/* ── Servicios ──────────────────────────────────────────────────────────── */
.st-servicios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.st-servicio-card { padding: 28px; border-radius: 20px; background: #f4f7f9; border: 1px solid var(--line); }
.st-servicio-icon { font-size: 30px; color: var(--blue); line-height: 1; }
.st-servicio-card h3 { margin: 16px 0 8px; font-size: 20px; font-weight: 500; color: var(--ink); }
.st-servicio-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #64717d; }

/* ── Nosotros ───────────────────────────────────────────────────────────── */
.st-nosotros { position: relative; color: #fff; background-size: cover; background-position: center; background-attachment: fixed; }
.st-nosotros-inner {
  width: min(1240px, calc(100% - 36px)); margin-inline: auto; padding: 70px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 46px; align-items: center;
}
.st-nosotros-p { margin: 0 0 16px; font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.82); }
.st-nosotros-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.st-nosotros-photos figure { margin: 0; position: relative; border-radius: 20px; overflow: hidden; }
.st-nosotros-photos img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.st-nosotros-photos figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(11,32,47,.72); font-size: 12px; color: #fff; }

/* ── Visitanos ──────────────────────────────────────────────────────────── */
.st-visitanos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.st-visitanos-card { padding: 34px; border-radius: 22px; border: 1px solid var(--line); background: #fff; }
.st-visitanos-title { margin: 12px 0 22px; font-size: 32px; font-weight: 400; color: var(--ink); letter-spacing: -.6px; }
.st-visitanos-info { display: flex; flex-direction: column; gap: 16px; font-size: 15.5px; color: #46545f; line-height: 1.55; }
.st-visitanos-info > div { display: flex; gap: 12px; }
.st-visitanos-info > div > span:first-child { color: var(--blue); }
.st-visitanos-info a { font-weight: 600; color: var(--blue); }
.st-visitanos-map { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--bg-2); }
.st-visitanos-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ── Instagram ──────────────────────────────────────────────────────────── */
.st-instagram-sec { background: var(--bg-2); border-top: 1px solid var(--line); padding: 62px 0; }
.st-instagram-sec .st-section-head, .st-instagram-sec .st-instagram-grid { width: min(1240px, calc(100% - 36px)); margin-inline: auto; }
.st-instagram-sec .st-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.st-instagram-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.st-instagram-item { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--navy); }
.st-instagram-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.st-instagram-item span { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px; font-size: 12px; color: #fff; background: linear-gradient(0deg, rgba(11,32,47,.72), rgba(11,32,47,0) 55%); }

/* ── Footer completo ────────────────────────────────────────────────────── */
.st-footer-full { padding: 52px 0 0; }
.st-footer-cols {
  width: min(1240px, calc(100% - 36px)); margin-inline: auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 34px; padding-bottom: 30px;
}
.st-footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.st-footer-col a, .st-footer-col span { color: #4a5762; }
.st-footer-col a:hover { color: var(--orange); }
.st-footer-h { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); font-weight: 800; margin-bottom: 6px; }
.st-footer-brand p { margin: 14px 0 0; font-size: 14px; line-height: 1.6; max-width: 280px; color: #4a5762; }
.st-footer-bottom {
  border-top: 1px solid var(--line); width: 100%;
  display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap;
  padding: 18px; font-size: 13px; color: #64717d;
}

/* ── Barra inferior móvil ───────────────────────────────────────────────── */
.st-mobilebar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.st-mobilebar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0;
  font-size: 11px; color: #64717d; font-weight: 700; background: none; border: 0; cursor: pointer;
}
.st-mobilebar-item.active { color: var(--navy); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  /* Hero móvil: el video ocupa TODO el alto (como en escritorio) y encima va el
     mismo degradado, girado a vertical: opaco arriba → transparente abajo. */
  .st-hero-video { height: calc(84svh - 61px); min-height: 480px; max-height: 640px; background: var(--bg-2); }
  .st-hero-slide--video { height: calc(84svh - 61px); min-height: 480px; max-height: 640px; }
  .st-hero-vid--desktop { display: none; }
  .st-hero-vid--mobile { display: block; }
  .st-hero-poster, .st-hero-vid { inset: 0; top: 0; bottom: 0; height: 100%; object-position: 85% 40%; }
  .st-hero-slide--video .st-hero-vid,
  .st-hero-slide--video .st-hero-slide-img { object-position: 50% 30%; }
  .st-generos-grid { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .st-genero-label--overlay { font-size: 15px; left: 12px; right: 12px; bottom: 12px; }
  .st-genero-label--outside { font-size: 14px; }
  .st-hero-shade {
    background: linear-gradient(180deg, rgba(11,32,47,.94) 0%, rgba(15,64,96,.76) 44%, rgba(15,64,96,.16) 78%, rgba(15,64,96,0) 100%);
  }
  .st-hero-content { height: 100%; justify-content: flex-start; padding: 26px 20px 0; gap: 14px; width: 100%; max-width: none; margin: 0; }
  .st-hero-eyebrow { padding: 6px 12px; font-size: 11px; letter-spacing: 1.2px; }
  .st-hero-title { font-size: 44px; letter-spacing: -1px; }
  .st-hero-br { display: none; }
  .st-hero-sub { font-size: 16px; }
  .st-hero-actions { margin-top: 4px; gap: 10px; }
  .st-hero-actions > * { flex: 1 1 140px; text-align: center; justify-content: center; }
  .st-hero-stats { display: none; }
  .st-editorial-slide { gap: 26px; }
  .st-style-inner, .st-nosotros-inner { padding: 46px 0; }
  .st-nosotros { background-attachment: scroll; }
  .st-mobilebar { display: flex; }
  .st-footer-full { padding-bottom: 78px; }
  .st-wa-fab { bottom: 86px; }

  /* Header: se prioriza logo + nav scrolleable + carrito; se ocultan extras */
  .st-header-wish { display: none; }
  .st-wa-pill-text { display: none; }
  .st-wa-pill { padding: 10px; }
}
@media (max-width: 560px) {
  .st-hero-stats { flex-direction: column; gap: 10px; }
  .st-nosotros-photos { grid-template-columns: 1fr 1fr; }
  .st-catrail-card { flex-basis: 240px; height: 220px; }

  .st-header-account { display: none; }
  .st-nav { gap: 10px; }
  .st-navpills { gap: 16px; }
}

/* =========================================================================
   FILTROS CON IMAGEN (Editar tema → «Filtros con imagen»)
   ========================================================================= */
.st-imgfilter { margin: 6px 0 26px; }
.st-imgfilter-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.st-imgfilter-clear { font-size: 13px; color: #8b98a3; }
.st-imgfilter-clear:hover { color: var(--orange); }
.st-imgfilter-rail { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.st-imgfilter-rail::-webkit-scrollbar { display: none; }
.st-imgfilter-item {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 104px; padding: 14px 8px 12px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; color: var(--ink); text-align: center; transition: border-color .2s ease, box-shadow .2s ease;
}
.st-imgfilter-item:hover { border-color: var(--blue); color: var(--ink); }
.st-imgfilter-item.active { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.st-imgfilter-thumb {
  width: 56px; height: 56px; border-radius: 50%; background: #f4f7f9;
  display: grid; place-items: center; overflow: hidden;
}
.st-imgfilter-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.st-imgfilter-thumb b { color: var(--blue); font-size: 17px; font-weight: 600; }
.st-imgfilter-name { font-size: 13px; font-weight: 500; line-height: 1.2; }
.st-imgfilter-count { font-size: 11.5px; color: #8b98a3; }

/* =========================================================================
   EDITOR EN VIVO (solo el dueño de la tienda, en la home)
   ========================================================================= */
.st-edit-fab {
  position: fixed; left: 20px; bottom: 24px; z-index: 120;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 0; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 30px rgba(11, 32, 47, .3); opacity: .9;
}
.st-edit-fab:hover { opacity: 1; }
.st-edit-fab.active { opacity: 1; background: var(--orange); color: #14202b; }
.st-edit-fab svg { flex: none; }
.st-edit-toolbar {
  position: fixed; left: 20px; bottom: 84px; z-index: 120; display: none;
  flex-wrap: wrap; align-items: center; gap: 10px; width: min(420px, calc(100% - 40px));
  padding: 14px 16px; border-radius: 18px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(11, 32, 47, .18);
}
.st-edit-toolbar.show { display: flex; }
.st-edit-toolbar-hint { font-size: 12.5px; color: #64717d; flex: 1 1 100%; line-height: 1.4; }
#st-edit-save.dirty { box-shadow: 0 0 0 3px rgba(var(--orange-rgb), .4); }

body.st-editing [data-st-edit] {
  outline: 1px dashed rgba(var(--orange-rgb), .8); outline-offset: 3px;
  border-radius: 4px; cursor: text; transition: background .15s ease;
}
body.st-editing [data-st-edit]:hover,
body.st-editing [data-st-edit]:focus { background: rgba(var(--orange-rgb), .12); outline-style: solid; }
body.st-editing [data-st-link] { outline: 1px dashed rgba(var(--blue-rgb), .8); outline-offset: 3px; cursor: pointer; }

.st-edit-chipbar { position: absolute; left: 12px; top: 12px; z-index: 30; display: flex; gap: 6px; flex-wrap: wrap; }
.st-edit-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0;
  border-radius: 999px; background: rgba(11, 32, 47, .88); color: #fff; font-size: 12px; font-weight: 500;
}
.st-edit-chip:hover { background: var(--orange); color: #14202b; }

.st-edit-modal { position: fixed; inset: 0; z-index: 130; display: none; }
.st-edit-modal.open { display: block; }
.st-edit-modal-backdrop { position: absolute; inset: 0; background: rgba(11, 32, 47, .55); }
.st-edit-modal-card {
  position: relative; margin: 8vh auto 0; width: min(460px, calc(100% - 32px));
  background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(11, 32, 47, .32);
}
.st-edit-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.st-edit-modal-head b { font-size: 17px; font-weight: 500; color: var(--ink); }
.st-edit-modal-body { padding: 18px 20px 22px; }
.st-edit-modal-body .st-input { width: 100%; margin-bottom: 6px; }
.st-edit-modal-label { display: block; font-size: 12px; color: #8b98a3; text-transform: uppercase; letter-spacing: 1.2px; margin: 12px 0 6px; }
.st-edit-modal-label:first-child { margin-top: 0; }
.st-edit-modal-note { font-size: 13px; color: #64717d; margin: 8px 0; line-height: 1.5; }

/* ── Gestor de slides del hero ──────────────────────────────────────────── */
.st-edit-modal--wide .st-edit-modal-card { width: min(620px, calc(100% - 32px)); }
.st-edit-modal--wide .st-edit-modal-body { max-height: 72vh; overflow-y: auto; }
.st-slides-mgr .st-slides-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 4px; }
.st-slide-row {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.st-slide-thumb {
  flex: 0 0 84px; height: 52px; border-radius: 9px; overflow: hidden;
  background: var(--bg-2); display: grid; place-items: center;
}
.st-slide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.st-slide-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.st-slide-info b { font-size: 13.5px; font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-slide-meta { font-size: 11.5px; color: #8b98a3; }
.st-slide-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.st-slide-mini {
  border: 1px solid var(--line); background: var(--bg-2); color: var(--navy);
  border-radius: 999px; padding: 5px 11px; font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.st-slide-mini:hover { border-color: var(--blue); }
.st-slide-mini--danger { color: #b4232a; }
.st-slide-mini--danger:hover { border-color: #b4232a; }
.st-slide-move { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; }
.st-slide-arrow {
  width: 30px; height: 26px; border: 1px solid var(--line); background: #fff; color: var(--navy);
  border-radius: 8px; cursor: pointer; font-size: 13px; line-height: 1; display: grid; place-items: center;
}
.st-slide-arrow:hover:not(:disabled) { border-color: var(--blue); }
.st-slide-arrow:disabled { opacity: .35; cursor: default; }
.st-slide-add {
  width: 100%; padding: 12px; border: 1px dashed var(--line); background: transparent;
  border-radius: 14px; color: var(--blue); font-size: 13px; font-weight: 600; cursor: pointer;
}
.st-slide-add:hover { border-color: var(--blue); background: var(--bg-2); }

/* ── Formulario multipaso de receta ─────────────────────────────────────── */
.st-receta { margin-top: 26px; border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: #fff; }
.st-receta-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.st-receta-step {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: #8b98a3; cursor: pointer;
}
.st-receta-step b {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); color: #8b98a3; font-size: 11.5px;
}
.st-receta-step.active { color: var(--navy); border-color: var(--blue); }
.st-receta-step.active b { background: var(--blue); color: #fff; }
.st-receta-panel { display: none; }
.st-receta-panel.active { display: block; animation: st-fade-in .25s ease both; }
.st-receta-help { font-size: 14.5px; color: #56626e; line-height: 1.55; margin: 0 0 14px; }
.st-receta-hint { display: block; font-size: 12px; color: #8b98a3; margin-top: 6px; }
.st-receta-label { display: block; font-weight: 700; font-size: 13px; color: var(--navy); margin: 14px 0 6px; }
.st-receta-label em { font-style: normal; font-weight: 500; color: #8b98a3; }
.st-receta-tabla { width: 100%; border-collapse: separate; border-spacing: 6px; }
.st-receta-tabla th { font-size: 12px; font-weight: 700; color: #64717d; text-align: left; }
.st-receta-tabla tbody th { white-space: nowrap; font-size: 13px; color: var(--navy); }
.st-receta-tabla .st-input { width: 100%; min-width: 72px; }
.st-receta-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.st-receta-resumen { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.st-receta-resumen li {
  display: flex; justify-content: space-between; gap: 14px; padding: 9px 12px;
  background: var(--bg-2); border-radius: 10px; font-size: 13.5px;
}
.st-receta-resumen span { color: #64717d; }
.st-receta-resumen b { color: var(--navy); text-align: right; }
.st-receta-status { font-size: 13.5px; color: var(--blue); font-weight: 600; min-height: 20px; }
@media (max-width: 560px) {
  .st-receta-tabla { border-spacing: 4px; font-size: 12.5px; }
  .st-receta-tabla .st-input { min-width: 56px; padding: 8px; }
}

/* ── Reordenar secciones ────────────────────────────────────────────────── */
.st-order-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 4px; }
.st-order-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: grab;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.st-order-row.dragging { opacity: .45; }
.st-order-row.over { border-color: var(--blue); background: var(--bg-2); }
.st-order-grip { color: #b3bec7; font-size: 15px; line-height: 1; }
.st-order-name { flex: 1 1 auto; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.st-order-move { display: flex; gap: 4px; }
.st-order-eye {
  width: 30px; height: 26px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; cursor: pointer; font-size: 13px; line-height: 1; display: grid; place-items: center;
}
.st-order-eye:hover { border-color: var(--blue); }
.st-order-row.is-hidden { opacity: .5; background: var(--bg-2); }
.st-order-row.is-hidden .st-order-name { text-decoration: line-through; }

@media (max-width: 860px) {
  .st-edit-fab { bottom: calc(88px + env(safe-area-inset-bottom)); left: 14px; padding: 10px 14px; }
  .st-edit-toolbar { bottom: calc(146px + env(safe-area-inset-bottom)); left: 14px; }
}

/* =========================================================================
   CARRITO · CHECKOUT · PAGO · GRACIAS  (vistas propias del tema)
   ========================================================================= */
.st-checkout { width: min(1240px, calc(100% - 36px)); margin-inline: auto; padding: 34px 0 72px; }

/* ── Pasos ──────────────────────────────────────────────────────────────── */
.st-steps {
  list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 34px; padding: 0;
}
.st-steps li { display: flex; align-items: center; gap: 10px; color: #8b98a3; font-size: 14px; }
.st-steps li + li::before {
  content: ""; width: 34px; height: 1px; background: #dde5ea; display: block; margin-right: 4px;
}
.st-steps-dot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid #dde5ea; background: #fff; font-size: 13px; font-weight: 600; color: #8b98a3;
}
.st-steps li.is-done .st-steps-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.st-steps li.is-current { color: var(--ink); font-weight: 500; }
.st-steps li.is-current .st-steps-dot { background: var(--orange); border-color: var(--orange); color: #14202b; }
.st-steps-label { white-space: nowrap; }

/* ── Estructura ─────────────────────────────────────────────────────────── */
.st-checkout-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .9fr); gap: 34px; align-items: start; }
.st-checkout-h { font-size: 24px; font-weight: 400; letter-spacing: -.4px; color: var(--ink); margin: 0 0 16px; }
.st-checkout-h + .st-checkout-card { margin-top: 0; }
.st-checkout-count { color: #8b98a3; font-size: 17px; }
.st-checkout-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 22px; margin-bottom: 22px;
}
.st-checkout-summary { position: sticky; top: 90px; }
.st-checkout-back { display: inline-block; margin-top: 4px; font-size: 14.5px; color: #64717d; }
.st-checkout-back:hover { color: var(--blue); }
.st-checkout-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.st-checkout-actions .st-btn-primary { flex: 1 1 220px; }

/* ── Líneas del carrito ─────────────────────────────────────────────────── */
.st-cartpage-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; }
.st-cartpage-item {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 18px; border-bottom: 1px solid var(--line);
}
.st-cartpage-item:last-child { border-bottom: 0; }
.st-cartpage-img { display: block; width: 96px; height: 96px; border-radius: 16px; overflow: hidden; background: #f4f7f9; }
.st-cartpage-img img { width: 100%; height: 100%; object-fit: cover; }
.st-cartpage-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-cartpage-name { font-size: 17px; font-weight: 500; color: var(--ink); }
.st-cartpage-name:hover { color: var(--blue); }
.st-cartpage-variant, .st-cartpage-unit, .st-cartpage-tax { font-size: 13px; color: #8b98a3; }
.st-cartpage-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.st-cartpage-remove { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #a7b3bd; }
.st-cartpage-remove:hover { color: #d0453f; }
.st-cartpage-total { font-size: 19px; font-weight: 600; color: var(--blue); white-space: nowrap; }

/* ── Resumen ────────────────────────────────────────────────────────────── */
.st-sum-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid #eef2f5; font-size: 14.5px; color: #46545f;
}
.st-sum-row b { display: block; font-weight: 500; color: var(--ink); }
.st-sum-row--muted, .st-sum-row--muted span { color: #8b98a3; }
.st-sum-variant, .st-sum-qty { display: inline-block; font-size: 12.5px; color: #8b98a3; margin-right: 6px; }
.st-sum-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding-top: 16px; margin-top: 6px;
}
.st-sum-total span { font-size: 14.5px; color: #64717d; }
.st-sum-total strong { font-size: 26px; font-weight: 600; color: var(--blue); }
.st-checkout-cta {
  display: block; text-align: center; margin-top: 16px; padding: 16px;
  border-radius: 999px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 600;
}
.st-checkout-cta:hover { background: var(--orange); color: #14202b; }
.st-checkout-secure {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 12px 0 0; font-size: 12.5px; color: #8b98a3; text-align: center; line-height: 1.4;
}
.st-coupon { display: flex; gap: 8px; margin: 16px 0 4px; }
.st-coupon .st-input { flex: 1; min-width: 0; }

/* ── Formularios ────────────────────────────────────────────────────────── */
.st-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.st-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-field--full { grid-column: 1 / -1; }
.st-label { font-size: 13px; font-weight: 500; color: #64717d; }
.st-field sup { color: #d0453f; }
.st-input {
  width: 100%; border: 1px solid #dde5ea; border-radius: 14px; padding: 13px 16px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; outline: none;
}
.st-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), .12); }
textarea.st-input { border-radius: 16px; resize: vertical; }
.st-help { font-size: 12.5px; color: #8b98a3; }
.st-check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #46545f; cursor: pointer; }
.st-check input { width: 18px; height: 18px; accent-color: var(--blue); }

/* ── Métodos de pago ────────────────────────────────────────────────────── */
.st-paylist { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.st-paycard { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; transition: border-color .2s ease; }
.st-paycard.is-open { border-color: var(--blue); }
.st-paycard-head {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: none; border: 0; text-align: left; cursor: pointer;
}
.st-paycard-radio {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #cfd8de; position: relative;
}
.st-paycard.is-open .st-paycard-radio { border-color: var(--blue); }
.st-paycard.is-open .st-paycard-radio::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--blue);
}
.st-paycard-ico { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 14px; background: #f4f7f9; display: grid; place-items: center; color: var(--blue); }
.st-paycard-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-paycard-tt b { font-size: 16px; font-weight: 500; color: var(--ink); }
.st-paycard-tt small { font-size: 13px; color: #8b98a3; }
.st-paycard-body { display: none; padding: 0 20px 20px; }
.st-paycard.is-open .st-paycard-body { display: block; }
.st-paycard-note { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: #64717d; }
.st-paycard-bankinfo {
  background: #f4f7f9; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; margin-bottom: 14px; font-size: 14px; line-height: 1.6; color: #46545f;
}
.st-paycard-btn { width: 100%; }
.st-upload {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin-bottom: 14px;
  border: 1px dashed #cfd8de; border-radius: 16px; font-size: 14px; color: #64717d; cursor: pointer;
}
.st-upload:hover { border-color: var(--blue); color: var(--blue); }
.st-upload input[type="file"] { display: none; }

/* ── Carrito vacío ──────────────────────────────────────────────────────── */
.st-checkout-empty { text-align: center; padding: 60px 20px 80px; color: #8b98a3; }
.st-checkout-empty svg { color: var(--orange); margin-bottom: 18px; display: inline-block; }
.st-checkout-empty b { display: block; font-size: 24px; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.st-checkout-empty p { max-width: 420px; margin: 0 auto 24px; font-size: 15px; line-height: 1.6; }
.st-checkout-empty .st-btn-primary { margin-inline: auto; }

/* ── Gracias ────────────────────────────────────────────────────────────── */
.st-complete-card {
  max-width: 660px; margin-inline: auto; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 44px 34px 38px;
}
.st-complete-check {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center; background: rgba(var(--blue-rgb), .08); color: var(--blue);
}
.st-complete-title { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); font-weight: 300; letter-spacing: -.8px; color: var(--ink); }
.st-complete-lead { margin: 0 auto 28px; max-width: 460px; font-size: 16px; line-height: 1.6; color: #64717d; }
.st-complete-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px;
  padding: 20px; border-radius: 18px; background: #f4f7f9; border: 1px solid var(--line); margin-bottom: 22px;
}
.st-complete-meta div { display: flex; flex-direction: column; gap: 4px; }
.st-complete-meta span { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: #8b98a3; }
.st-complete-meta b { font-size: 16px; font-weight: 500; color: var(--ink); }
.st-complete-total { color: var(--blue) !important; font-weight: 600 !important; }
.st-complete-items { text-align: left; border: 1px solid var(--line); border-radius: 18px; padding: 6px 18px 10px; margin-bottom: 22px; }
.st-complete-items-h { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange); font-weight: 600; padding: 14px 0 8px; }
.st-complete-item { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid #eef2f5; font-size: 14.5px; color: #46545f; }
.st-complete-item small { display: block; font-size: 12.5px; color: #8b98a3; }
.st-complete-item b { font-weight: 500; color: var(--ink); white-space: nowrap; }
.st-complete-track { text-align: left; margin-bottom: 22px; }
.st-complete-track label { display: block; font-size: 13px; color: #64717d; margin-bottom: 6px; }
.st-complete-copy { display: flex; gap: 8px; }
.st-complete-copy input {
  flex: 1; min-width: 0; border: 1px solid #dde5ea; border-radius: 14px; padding: 13px 16px;
  font-family: inherit; font-size: 13.5px; color: #64717d; background: #f4f7f9; outline: none;
}
.st-complete-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 900px) {
  .st-checkout-grid { grid-template-columns: 1fr; gap: 26px; }
  .st-checkout-summary { position: static; }
}
@media (max-width: 560px) {
  .st-checkout { padding: 24px 0 60px; }
  .st-steps { gap: 6px; font-size: 13px; }
  .st-steps li + li::before { width: 16px; }
  .st-steps-label { display: none; }
  .st-steps li.is-current .st-steps-label { display: inline; }
  .st-cartpage-item { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .st-cartpage-img { width: 72px; height: 72px; }
  .st-cartpage-total { grid-column: 2; text-align: right; }
  .st-checkout-card { padding: 18px; border-radius: 18px; }
  .st-complete-card { padding: 32px 20px 28px; border-radius: 20px; }
  .st-complete-actions .st-btn-primary,
  .st-complete-actions .st-btn-wa,
  .st-complete-actions .st-btn-ghost { width: 100%; }
}

/* Widget de Instagram externo (modo «embed») */
.st-instagram-embed { width: min(1240px, calc(100% - 36px)); margin-inline: auto; }
.st-instagram-embed iframe { width: 100%; border: 0; display: block; }

/* =========================================================================
   ARMÁ TU LENTE (detalle de producto) — tipo de cristal + graduación
   ========================================================================= */
.st-lentes {
  margin-top: 56px; padding: 34px; border: 1px solid var(--line); border-radius: 24px;
  background: var(--bg-2);
}
.st-lentes-head h2 { margin: 10px 0 8px; font-size: clamp(24px, 3vw, 32px); font-weight: 400; color: var(--navy); }
.st-lentes-head p { margin: 0 0 26px; color: var(--muted); font-size: 15.5px; max-width: 62ch; line-height: 1.6; }

.st-lentes-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.st-lentes-label {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 14px;
}
.st-lentes-label em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; color: var(--orange); }

.st-lentes-opts { display: grid; gap: 10px; }
.st-lentes-opt {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.st-lentes-opt:hover { border-color: var(--orange); }
.st-lentes-opt input { margin: 3px 0 0; accent-color: var(--blue); width: 17px; height: 17px; flex: 0 0 auto; }
.st-lentes-opt:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(var(--blue-rgb), .14); }
.st-lentes-opt-body { display: grid; gap: 3px; }
.st-lentes-opt-body b { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.st-lentes-opt-body small { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.st-lentes-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.st-lentes-chip { cursor: pointer; }
.st-lentes-chip input { position: absolute; opacity: 0; pointer-events: none; }
.st-lentes-chip span {
  display: inline-block; padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: #46545f;
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
}
.st-lentes-chip:hover span { border-color: var(--orange); }
.st-lentes-chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }

.st-lentes-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
}
.st-lentes-resumen { margin: 0; font-size: 15px; color: var(--muted); }
.st-lentes-resumen b { color: var(--navy); font-weight: 600; }

/* Esquema de medidas del armazón */
.st-medidas {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 26px; align-items: center;
  margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line);
}
.st-medidas-text h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; color: var(--navy); }
.st-medidas-text p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.st-medidas-img {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  display: grid; place-items: center;
}
.st-medidas-img img { width: 100%; height: auto; display: block; border-radius: 12px; }
.st-medidas-svg { width: 100%; height: auto; color: var(--navy); }

@media (max-width: 860px) {
  .st-lentes { padding: 24px 20px; border-radius: 20px; }
  .st-lentes-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .st-medidas { grid-template-columns: minmax(0, 1fr); }
  .st-lentes-foot .st-btn-wa { width: 100%; justify-content: center; }
}

/* =========================================================================
   PRECIO EN EFECTIVO (descuento por efectivo / transferencia)
   ========================================================================= */
.st-efectivo-badge {
  display: inline-block; background: #12b76a; color: #fff;
  border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .02em; line-height: 1.5; white-space: nowrap;
}

/* En la tarjeta del catálogo, debajo de las cuotas */
.st-card-efectivo {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-top: 6px; font-size: 13.5px; color: var(--muted);
}
.st-card-efectivo b { color: #0b8a52; font-weight: 700; font-size: 15px; }

/* En el detalle del producto y en el resumen del carrito */
.st-efectivo-card {
  margin: 0 0 22px; padding: 16px 18px; border-radius: 18px;
  background: #effaf4; border: 1px solid #bfe9d3;
}
.st-efectivo-card--sum { margin: 16px 0 0; padding: 14px 16px; border-radius: 16px; }
.st-efectivo-top { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.st-efectivo-price { font-size: 26px; font-weight: 700; color: #0b8a52; line-height: 1.1; }
.st-efectivo-card--sum .st-efectivo-price { font-size: 21px; }
.st-efectivo-label { font-size: 15px; font-weight: 600; color: #14202b; }
.st-efectivo-nota { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: #4a6459; }

/* =========================================================================
   FORMULARIO PERSONALIZADO DEL PRODUCTO  (Ajustes del tema → Carrito)
   ========================================================================= */
.st-pf {
  margin: 22px 0 0; padding: 20px; border-radius: 20px;
  border: 1px solid var(--line); background: #fff;
}
.st-pf-hidden { display: none !important; }

/* Barra de pasos */
.st-pf-progress { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.st-pf-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 7px 14px 7px 7px; font: inherit; font-size: 13.5px; font-weight: 600;
}
.st-pf-chip b {
  width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.st-pf-chip.active { border-color: var(--blue); color: var(--navy); }
.st-pf-chip.active b { background: var(--blue); color: #fff; }

/* Pasos: sólo se ve el activo (en «una sola página» se ven todos, separados por una línea) */
.st-pf-step { display: none; }
.st-pf-step.st-pf-step--active { display: block; }
.st-pf--single .st-pf-step { display: block; }
.st-pf--single .st-pf-step + .st-pf-step { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.st-pf-step-title { margin: 0 0 4px; font-size: 20px; font-weight: 600; color: var(--navy); }
.st-pf-step-sub { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* Campos */
.st-pf-field { margin-bottom: 20px; }
.st-pf-field--error { outline: 2px solid #e5484d; outline-offset: 6px; border-radius: 12px; }
.st-pf-label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--navy); }
.st-pf-req { color: #e5484d; margin-left: 2px; }
.st-pf-help { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.st-pf-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.st-pf-info {
  padding: 14px 16px; border-radius: 14px; background: var(--bg-2); font-size: 14px; line-height: 1.6;
}
.st-pf-info p { margin: 6px 0 0; color: var(--muted); }

/* Opciones en lista */
.st-pf-opts { display: grid; gap: 10px; }
.st-pf-opt { display: block; cursor: pointer; }
.st-pf-opt input { position: absolute; opacity: 0; pointer-events: none; }
.st-pf-opt-body {
  display: block; padding: 13px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; transition: border-color .15s, background .15s;
}
.st-pf-opt-body b { display: block; font-size: 15px; font-weight: 600; color: var(--navy); }
.st-pf-opt-body small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.st-pf-opt input:checked + .st-pf-opt-body { border-color: var(--blue); background: #f5f9fc; }
.st-pf-opt input:focus-visible + .st-pf-opt-body { outline: 2px solid var(--orange); outline-offset: 2px; }
.st-pf-opt-price { display: inline-block; margin-top: 4px; font-style: normal; font-size: 13.5px; font-weight: 700; color: #0b8a52; }

/* Opciones con imagen */
/* Por defecto 2 columnas; desde el editor se puede fijar otra cantidad (style en línea) */
.st-pf-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.st-pf-tile { display: block; cursor: pointer; }
.st-pf-tile input { position: absolute; opacity: 0; pointer-events: none; }
.st-pf-tile-body {
  display: block; height: 100%; padding: 14px 12px; text-align: center;
  border-radius: 16px; border: 1.5px solid var(--line); background: #fff; transition: border-color .15s, background .15s;
}
.st-pf-tile-body img { width: 84px; height: 84px; object-fit: contain; margin: 0 auto 8px; display: block; }
.st-pf-tile-body b { display: block; font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.st-pf-tile-body small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.st-pf-tile input:checked + .st-pf-tile-body { border-color: var(--blue); background: #f5f9fc; }
.st-pf-tile input:focus-visible + .st-pf-tile-body { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Casilla suelta */
.st-pf-check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--navy); cursor: pointer; }
.st-pf-check input { width: 18px; height: 18px; accent-color: var(--blue); }

/* Repetidor */
.st-pf-row { padding: 14px; border: 1px dashed var(--line); border-radius: 14px; margin-bottom: 12px; }
.st-pf-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.st-pf-row-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.st-pf-delrow {
  border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.st-pf-delrow:hover { color: #e5484d; }

/* WhatsApp de una opción */
.st-pf-wa {
  margin: 4px 0 18px; padding: 16px 18px; border-radius: 16px;
  background: #effaf4; border: 1px solid #bfe9d3;
}
.st-pf-wa p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: #14202b; }

/* Resumen y total */
.st-pf-foot { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.st-pf-resumen { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 7px; }
.st-pf-resumen li { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.st-pf-resumen li span { color: var(--muted); }
.st-pf-resumen li b { color: var(--navy); font-weight: 600; text-align: right; }
.st-pf-resumen li em { font-style: normal; color: #0b8a52; font-weight: 700; }
.st-pf-total { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.st-pf-total span { font-size: 15px; font-weight: 600; color: var(--muted); }
.st-pf-total strong { font-size: 26px; font-weight: 700; color: var(--navy); }

.st-pf-status { min-height: 20px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.st-pf-status--error { color: #e5484d; font-weight: 600; }

.st-pf-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.st-pf-buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1 1 auto; }
.st-pf-buy .st-btn-primary { flex: 1 1 220px; }

/* Descripción breve editable por producto */
.st-pf-intro { margin: 0 0 20px; font-size: 15px; line-height: 1.75; color: var(--navy); }
.st-pf-intro p { margin: 0 0 8px; }

/* Medidas del armazón, versión compacta en la columna derecha */
.st-medidas-toggle { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.st-medidas-toggle > summary {
  cursor: pointer; list-style: none; padding: 13px 16px; font-size: 14.5px; font-weight: 600; color: var(--navy);
  background: var(--bg-2);
}
.st-medidas-toggle > summary::-webkit-details-marker { display: none; }
.st-medidas-toggle > summary::after { content: ' ▾'; color: var(--muted); }
.st-medidas-toggle[open] > summary::after { content: ' ▴'; }
.st-medidas-toggle .st-medidas-body { padding: 16px; }
.st-medidas-toggle .st-medidas-body p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.st-medidas-toggle .st-medidas-body img,
.st-medidas-toggle .st-medidas-body svg { width: 100%; height: auto; display: block; color: var(--navy); }

/* Información del producto a una columna, debajo de la ficha */
.st-detail-below { margin-top: 48px; display: grid; gap: 22px; }
.st-detail-below .st-detail-desc,
.st-detail-below .st-spec-card { max-width: 100%; }

/* Respuestas del formulario en la lista del carrito */
.st-cartpage-form { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.st-cartpage-form li { font-size: 12.5px; color: var(--muted); }
.st-cartpage-form li b { color: var(--navy); font-weight: 600; }
.st-cartpage-form li em { font-style: normal; color: #0b8a52; font-weight: 700; }

@media (max-width: 760px) {
  .st-pf { padding: 16px; border-radius: 16px; }
  .st-pf-tile-body img { width: 68px; height: 68px; }
  .st-pf-buy .st-btn-primary { flex: 1 1 100%; }
}

/* =========================================================================
   PÁGINA DE PEDIDO DEL CLIENTE  (storefront/theme17/userorder.blade.php)
   ========================================================================= */
.st-order-sec { padding: 34px 0 72px; }

.st-order-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; margin-bottom: 26px;
}
.st-order-title { margin: 6px 0 4px; font-size: clamp(26px, 4vw, 34px); font-weight: 400;
  letter-spacing: -.5px; color: var(--ink); }
.st-order-date { margin: 0; font-size: 14.5px; color: #8b98a3; }
.st-order-badge {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.st-order-badge--ok { background: #e7f7ee; color: #0b8a52; }
.st-order-badge--wait { background: #fff4e5; color: #b26a00; }
.st-order-badge--off { background: #fdecec; color: #c92a2a; }

/* Ítems */
.st-order-items {
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; margin-bottom: 22px;
}
.st-order-item {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: start;
  padding: 18px; border-bottom: 1px solid var(--line);
}
.st-order-item:last-child { border-bottom: 0; }
.st-order-item-img { display: block; width: 96px; height: 96px; border-radius: 16px; overflow: hidden; background: #f4f7f9; }
.st-order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.st-order-item-name { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.st-order-item-variant, .st-order-item-unit { display: block; font-size: 13px; color: #8b98a3; margin-top: 3px; }
.st-order-item-total { font-size: 17px; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Bloque de respuestas del formulario / receta */
.st-order-block {
  margin-top: 12px; padding: 13px 15px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.st-order-block-title {
  display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: #64717d;
}

/* Lista etiqueta / valor, reutilizada en datos de envío y resumen */
.st-order-dl { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.st-order-dl li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.st-order-dl li span { color: #8b98a3; flex: 0 0 auto; }
.st-order-dl li b { font-weight: 600; color: var(--ink); text-align: right; word-break: break-word; }

.st-order-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.st-order-cols .st-checkout-card { margin-bottom: 0; }
.st-order-h { margin: 0 0 14px; font-size: 18px; font-weight: 600; color: var(--ink); }

.st-sum-row--total {
  border-bottom: 0; padding-top: 16px; margin-top: 4px; align-items: baseline;
  border-top: 2px solid var(--line);
}
.st-sum-row--total div { font-size: 15px; font-weight: 600; color: var(--ink); }
.st-sum-row--total strong { font-size: 26px; font-weight: 600; color: var(--blue); }

.st-order-pay { margin: 14px 0 0; font-size: 14px; color: #64717d; }
.st-order-pay b { color: var(--ink); font-weight: 600; }
.st-order-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: #8b98a3; }

.st-order-actions { display: grid; gap: 10px; }
.st-order-actions .st-btn-wa,
.st-order-actions .st-btn-ghost { width: 100%; justify-content: center; text-align: center; }

@media (max-width: 760px) {
  .st-order-sec { padding: 22px 0 56px; }
  .st-order-item { grid-template-columns: 68px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .st-order-item-img { width: 68px; height: 68px; border-radius: 14px; }
  .st-order-item-total { grid-column: 1 / -1; }
  .st-order-dl li { flex-direction: column; gap: 1px; }
  .st-order-dl li b { text-align: left; }
}

/* =========================================================================
   CAPA STUDIO — lo que agrega el tema a medida sobre el esqueleto heredado
   ========================================================================= */

/* ── Tokens con respaldo ─────────────────────────────────────────────────
   Toda regla nueva lee `var(--st-x, respaldo)`: un token vacío no puede
   dejar una regla CSS rota. Los tokens de color se mapean sobre las
   variables del esqueleto en el <style> que inyecta el layout. */
body[class*="theme17"] {
  --st-radius-card: 20px;
  --st-radius-btn: 999px;
  --st-radius-img: 16px;
  --st-container: 1240px;
  --st-section-y: 56px;
}

.st-container { width: min(var(--st-container, 1240px), calc(100% - 36px)); }

/* ── Slots de estilo por instancia de bloque ─────────────────────────────
   Los declara el manifiesto en `style_slots` y el editor los escribe como
   clases en la raíz del bloque. Son deliberadamente pocos: lo que hace una
   media query no se resuelve con un `columns: 4`. */
.st-block { position: relative; }

.st-pad-none   { padding-top: 0 !important; padding-bottom: 0 !important; }
.st-pad-sm     { padding-top: 26px !important; padding-bottom: 26px !important; }
.st-pad-md     { padding-top: 48px !important; padding-bottom: 48px !important; }
.st-pad-lg     { padding-top: 72px !important; padding-bottom: 72px !important; }
.st-pad-xl     { padding-top: 104px !important; padding-bottom: 104px !important; }

.st-bg-white   { background: var(--bg-1, #fff); }
.st-bg-soft    { background: var(--bg-2, #f4f7f9); }
.st-bg-dark    { background: var(--navy, #0b405f); color: #fff; }
.st-bg-accent  { background: var(--orange, #f1b038); }
.st-bg-dark :where(h1, h2, h3, p, span, small, li) { color: inherit; }

.st-align-left   { text-align: left; }
.st-align-center { text-align: center; }
.st-align-center .st-section-head { justify-content: center; text-align: center; }

.st-width-full .st-container { width: 100%; }
.st-width-narrow .st-container { width: min(900px, calc(100% - 36px)); }

/* Columnas de las grillas que lo permiten. El bloque decide si lo usa. */
.st-cols-2 .st-tiles-grid { grid-template-columns: repeat(2, 1fr); }
.st-cols-3 .st-tiles-grid { grid-template-columns: repeat(3, 1fr); }
.st-cols-4 .st-tiles-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .st-cols-3 .st-tiles-grid, .st-cols-4 .st-tiles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .st-cols-4 .st-tiles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Grilla de mosaicos (tiles.grid) ─────────────────────────────────────
   Un solo bloque cubre lo que antes eran cuatro secciones distintas con el
   mismo HTML: géneros, promos cuadradas, promos anchas y guías de compra.
   Lo único que cambia entre ellas es la proporción y las columnas. */
.st-tiles-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.st-tile-item { min-width: 0; }
.st-tile-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--st-radius-card, 20px); background: var(--bg-2, #f4f7f9);
}
.st-tile-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.st-tile-card:hover img { transform: scale(1.04); }
.st-tile-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,32,47,.85) 0%, rgba(11,32,47,.05) 55%, rgba(11,32,47,0) 100%);
}
.st-tile-label--overlay {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  color: #fff; font-size: 19px; font-weight: 600; letter-spacing: -.2px;
}
.st-tile-label--outside {
  display: block; margin-top: 12px; text-align: center;
  color: var(--navy); font-size: 16px; font-weight: 600; letter-spacing: -.2px;
}

/* Cuadrados: la proporción la fija el bloque, no la foto. */
.st-tiles-grid--square .st-tile-card img { aspect-ratio: 1 / 1; }
/* Verticales: el formato de una foto de catálogo de moda. */
.st-tiles-grid--portrait .st-tile-card { aspect-ratio: 2 / 3; }
.st-tiles-grid--portrait { grid-template-columns: repeat(3, 1fr); }
/* Anchos: se respeta el alto real de la pieza — son banners diseñados aparte,
   y recortarlos a una proporción fija les corta el texto. */
.st-tiles-grid--wide { grid-template-columns: 1fr; }
.st-tiles-grid--wide .st-tile-card img { height: auto; }
.st-tiles-grid--wide .st-tile-card:hover img { transform: scale(1.02); }
.st-tiles-grid--wide .st-tile-label--overlay {
  left: 14px; right: auto; bottom: 14px; padding: 8px 15px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--navy); font-size: 13.5px; font-weight: 700;
}
.st-tiles-grid--square .st-tile-label--overlay {
  left: 14px; right: auto; bottom: 14px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--navy); font-size: 13px; font-weight: 700;
}
.st-tiles-grid--square .st-tile-shade, .st-tiles-grid--wide .st-tile-shade { display: none; }

.st-cols-1 .st-tiles-grid { grid-template-columns: 1fr; }
@media (max-width: 700px) {
  .st-tiles-grid--portrait, .st-cols-3 .st-tiles-grid, .st-cols-4 .st-tiles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Grilla de categorías (categories.grid) ──────────────────────────── */
.st-cats-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.st-cat-card {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: var(--st-radius-card, 20px); background: var(--navy, #0b405f);
}
.st-cat-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .4s ease; }
.st-cat-card:hover img { transform: scale(1.04); }
.st-cat-card-info { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.st-cat-card-info b { color: #fff; font-size: 20px; font-weight: 600; }
.st-cat-card-info small { color: rgba(255,255,255,.78); font-size: 13px; }
.st-cat-grid--circle .st-cat-card { aspect-ratio: 1 / 1; border-radius: 50%; }
.st-cat-grid--circle .st-cat-card-info { left: 0; right: 0; bottom: 22px; text-align: center; }

/* ── Variantes de las grillas de producto ────────────────────────────── */
.st-grid--dense { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.st-grid--carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.st-grid--carousel::-webkit-scrollbar { display: none; }
.st-grid--carousel > * { flex: 0 0 min(280px, 78%); scroll-snap-align: start; }

/* ── Texto libre ─────────────────────────────────────────────────────── */
.st-richtext { max-width: 68ch; color: var(--muted); line-height: 1.7; }
.st-richtext :where(h3, h4) { color: var(--ink); margin: 26px 0 8px; }
.st-richtext :where(ul, ol) { padding-left: 20px; }
.st-richtext li { margin-bottom: 6px; }

/* ── Llamada a la acción ─────────────────────────────────────────────── */
.st-cta-banner { padding: 72px 0; background: var(--navy, #0b405f); }
.st-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.st-cta-banner .st-h2 { color: #fff; margin: 0; }
.st-cta-sub { margin: 0; max-width: 60ch; color: rgba(255,255,255,.82); font-size: 16.5px; }
.st-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.st-align-left .st-cta-inner { align-items: flex-start; text-align: left; }
.st-align-left .st-cta-actions { justify-content: flex-start; }

/* ── Espejados: la misma sección con el orden invertido ──────────────── */
.st-style-inner--reverse > :first-child { order: 2; }
.st-editorial-slide--reverse .st-editorial-media { order: -1; }
.st-visitanos-grid--reverse .st-visitanos-map { order: -1; }

/* Encabezado que no queda fijo al bajar. */
.st-header--static { position: static; }

/* ── Aire propio de cada bloque ──────────────────────────────────────────
   Estas dos secciones nunca tuvieron el aire estándar: la tira de categorías
   respira arriba y se pega a lo que sigue, y el catálogo hace lo contrario.
   Va en el CSS del bloque y no en un slot de estilo para que un bloque recién
   insertado ya se vea bien, sin que nadie tenga que ajustarle el espaciado. */
.b-categories-rail.st-section { padding-top: 56px; padding-bottom: 20px; }
.b-products-grid.st-section   { padding-top: 40px; padding-bottom: 70px; }

/* =========================================================================
   EDITOR EN VIVO — sólo se dibuja para el dueño de la tienda
   Todo va prefijado .ste- para que no pueda chocar con un bloque.
   ========================================================================= */

.ste-fab {
  position: fixed; right: 24px; bottom: 96px; z-index: 9500;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 0; border-radius: 999px;
  background: var(--navy, #0b405f); color: #fff;
  font: 600 14px/1 inherit; box-shadow: 0 12px 30px rgba(11,32,47,.32);
}
.ste-fab:hover { background: var(--blue, #0f4060); }
.ste-on .ste-fab { display: none; }

.ste-bar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 9600;
  display: none; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 16px; background: #0d1b26; color: #fff;
  box-shadow: 0 6px 22px rgba(0,0,0,.28);
}
.ste-on .ste-bar { display: flex; }
.ste-on { padding-top: 58px; }
.ste-bar-hint { flex: 1 1 240px; font-size: 13px; color: rgba(255,255,255,.72); }
.ste-btn {
  padding: 9px 15px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px;
  background: transparent; color: #fff; font: 600 13px/1 inherit; white-space: nowrap;
}
.ste-btn:hover { background: rgba(255,255,255,.12); }
.ste-btn--go { background: var(--orange, #f1b038); border-color: transparent; color: #14202b; }
.ste-btn--go:hover { background: #fff; }
.ste-btn--danger { border-color: rgba(255,120,120,.5); color: #ff9b9b; }
.ste-dirty { display: none; font-size: 12px; color: var(--orange, #f1b038); }
.ste-has-changes .ste-dirty { display: inline; }

/* Lo editable se hace evidente sólo en modo edición. */
.ste-on [data-st-edit] { outline: 1px dashed rgba(15,64,96,.45); outline-offset: 3px; cursor: text; border-radius: 3px; }
.ste-on [data-st-edit]:hover { outline-color: var(--orange, #f1b038); background: rgba(241,176,56,.10); }
.ste-on [data-st-edit]:focus { outline: 2px solid var(--orange, #f1b038); background: rgba(241,176,56,.14); }

/* ── Los lápices ─────────────────────────────────────────────────────────
   Todos los de un mismo elemento viven en UN riel: antes cada lápiz se
   posicionaba solo y dos botones hermanos —o una foto y su enlace— caían en
   la misma esquina, uno encima del otro. El riel los pone en fila. */
.ste-pins {
  position: absolute; z-index: 48; left: 8px; bottom: 8px;
  display: flex; flex-wrap: wrap; gap: 6px;
  max-width: calc(100% - 16px);
}
.ste-pins--block { left: auto; right: 8px; justify-content: flex-end; }
.ste-media-pin, .ste-link-pin {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 220px; padding: 6px 11px; border: 0; border-radius: 999px;
  background: rgba(13,27,38,.86); color: #fff; font: 600 12px/1 inherit;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: .82; transition: opacity .12s, background .12s;
}
.ste-media-pin:hover, .ste-link-pin:hover { opacity: 1; background: var(--orange, #f1b038); color: #14202b; }

/* Marco y barra de cada sección. */
.ste-on .st-block { outline: 1px dashed rgba(15,64,96,.28); outline-offset: -1px; }
.ste-on .st-block:hover { outline: 2px solid var(--orange, #f1b038); }
.ste-on .st-block--hidden { opacity: .42; }
.ste-block-bar {
  position: absolute; z-index: 45; top: 0; left: 0;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 5px 7px; background: #0d1b26; color: #fff; border-radius: 0 0 10px 0;
  font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .12s;
}
.ste-on .st-block:hover > .ste-block-bar,
.ste-on .st-block:focus-within > .ste-block-bar { opacity: 1; pointer-events: auto; }
.ste-block-bar b { font-weight: 600; margin-right: 6px; padding-left: 3px; }
.ste-mini {
  border: 0; background: rgba(255,255,255,.14); color: #fff;
  border-radius: 6px; padding: 5px 8px; font: 600 12px/1 inherit;
}
.ste-mini:hover { background: var(--orange, #f1b038); color: #14202b; }

.ste-item-bar {
  position: absolute; z-index: 46; top: 6px; right: 6px;
  display: flex; gap: 4px; opacity: 0; transition: opacity .12s;
}
/* La posición relativa la pone el JS y sólo si el elemento era estático: hay
   ítems que su diseño posiciona a propósito (las slides de un carrusel), y
   pisarles la posición desde acá desarmaba el bloque en modo edición. */
.ste-on [data-st-item]:hover > .ste-item-bar { opacity: 1; }

/* Panel lateral: secciones, biblioteca, diseño, historial. */
.ste-panel {
  position: fixed; top: 58px; bottom: 0; right: 0; width: min(420px, 100%);
  z-index: 9550; display: none; flex-direction: column;
  background: #fff; border-left: 1px solid var(--line, #e8edf1);
  box-shadow: -18px 0 44px rgba(11,32,47,.16);
}
.ste-panel.is-open { display: flex; }
.ste-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line, #e8edf1);
}
.ste-panel-head b { font-size: 15px; color: var(--ink, #14202b); }
.ste-panel-body { flex: 1; overflow-y: auto; padding: 16px 18px 40px; }
.ste-x { border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--muted, #64717d); padding: 4px 8px; }

.ste-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid var(--line, #e8edf1); border-radius: 10px; background: #fff;
}
.ste-row.is-hidden { opacity: .5; }
.ste-row-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink, #14202b); }
.ste-row-sub { display: block; font-weight: 400; font-size: 12px; color: var(--muted, #64717d); }
.ste-grip { cursor: grab; color: var(--muted, #64717d); font-size: 15px; }
.ste-row.is-drag { opacity: .4; }
.ste-row.is-over { border-color: var(--orange, #f1b038); }

.ste-field { margin-bottom: 14px; }
.ste-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted, #64717d); margin-bottom: 5px; }
.ste-field input, .ste-field select, .ste-field textarea {
  width: 100%; padding: 9px 11px; font: 400 14px/1.4 inherit;
  border: 1px solid var(--line, #e8edf1); border-radius: 8px; background: #fff; color: var(--ink, #14202b);
}
.ste-field input[type="color"] { padding: 3px; height: 40px; }
.ste-help { display: block; margin-top: 4px; font-size: 12px; color: var(--muted, #64717d); }

.ste-cat { margin-bottom: 18px; }
.ste-cat h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted, #64717d); }
.ste-block-opt { display: block; width: 100%; text-align: left; margin-bottom: 8px; }
.ste-block-opt small { display: block; margin-top: 3px; font-weight: 400; color: var(--muted, #64717d); font-size: 12px; }

.ste-lib { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ste-lib-item { position: relative; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--bg-2, #f4f7f9); padding: 0; }
.ste-lib-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.ste-lib-item:hover { border-color: var(--orange, #f1b038); }
.ste-lib-del {
  position: absolute; top: 4px; right: 4px; border: 0; border-radius: 6px;
  background: rgba(13,27,38,.8); color: #fff; font-size: 11px; padding: 3px 6px;
}
.ste-lib-video { display: grid; place-items: center; aspect-ratio: 1/1; font-size: 26px; color: var(--muted); }

.ste-drop {
  display: block; padding: 22px; margin-bottom: 14px; text-align: center;
  border: 2px dashed var(--line, #e8edf1); border-radius: 12px;
  color: var(--muted, #64717d); font-size: 13.5px; cursor: pointer;
}
.ste-drop:hover, .ste-drop.is-over { border-color: var(--orange, #f1b038); color: var(--ink, #14202b); }

.ste-modal { position: fixed; inset: 0; z-index: 9700; display: none; }
.ste-modal.is-open { display: block; }
.ste-modal-bg { position: absolute; inset: 0; background: rgba(11,32,47,.5); }
.ste-modal-card {
  position: relative; margin: 8vh auto 0; width: min(560px, calc(100% - 32px));
  max-height: 80vh; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; box-shadow: 0 30px 70px rgba(11,32,47,.35);
}
.ste-modal-body { padding: 18px; overflow-y: auto; }
.ste-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line, #e8edf1); }
.ste-modal .ste-btn { border-color: var(--line, #e8edf1); color: var(--ink, #14202b); }
.ste-modal .ste-btn:hover { background: var(--bg-2, #f4f7f9); }
.ste-modal .ste-btn--go { background: var(--blue, #0f4060); color: #fff; border-color: transparent; }

.ste-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  z-index: 9800; padding: 12px 20px; border-radius: 999px;
  background: #0d1b26; color: #fff; font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.ste-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.ste-toast--bad { background: #a4262c; }

@media (max-width: 640px) {
  .ste-panel { top: auto; height: 74vh; width: 100%; border-left: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; }
  .ste-lib { grid-template-columns: repeat(2, 1fr); }
}

/* Un botón sin texto —o que es sólo una imagen, como un mosaico— no tiene
   dónde hacer clic que se vea. El lápiz lo dice a la vista. */
.ste-on [data-st-link] { outline: 1px dashed rgba(15,64,96,.4); outline-offset: 3px; }
.ste-on [data-st-link]:hover { outline-color: var(--orange, #f1b038); }

/* ── Panel de elementos (slides, mosaicos, tarjetas) ─────────────────── */
.ste-item-row { align-items: flex-start; flex-wrap: wrap; }
.ste-item-thumb {
  width: 62px; height: 46px; flex: none; object-fit: cover;
  border-radius: 8px; background: var(--bg-2, #f4f7f9);
}
.ste-item-thumb--none { display: grid; place-items: center; font-size: 18px; color: var(--muted, #64717d); }
.ste-item-acts { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; margin-top: 2px; }
.ste-item-acts .ste-mini { background: var(--bg-2, #f4f7f9); color: var(--ink, #14202b); }
.ste-item-acts .ste-mini:hover { background: var(--orange, #f1b038); }

/* ── Pestañas del modal ──────────────────────────────────────────────── */
.ste-tabs { display: flex; gap: 4px; margin: -4px 0 16px; border-bottom: 1px solid var(--line, #e8edf1); }
.ste-tab {
  border: 0; background: transparent; padding: 9px 12px;
  font: 600 13px/1 inherit; color: var(--muted, #64717d);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.ste-tab:hover { color: var(--ink, #14202b); }
.ste-tab.is-on { color: var(--ink, #14202b); border-bottom-color: var(--orange, #f1b038); }

.ste-search { display: flex; gap: 8px; margin-bottom: 12px; }
.ste-search input {
  flex: 1; padding: 9px 11px; font: 400 14px/1.4 inherit;
  border: 1px solid var(--line, #e8edf1); border-radius: 8px; background: #fff; color: var(--ink, #14202b);
}
.ste-search .ste-btn { border-color: transparent; }

.ste-lib-cred {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 4px 6px; font-size: 10.5px; text-align: left; color: #fff;
  background: linear-gradient(transparent, rgba(11,32,47,.78));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ste-lib-item.is-busy { opacity: .45; pointer-events: none; }

.ste-preview { margin-bottom: 12px; }
.ste-preview img { max-width: 100%; max-height: 200px; border-radius: 10px; display: block; }

/* ── Buscador de productos del modal de botón ────────────────────────── */
.ste-picks { max-height: 260px; overflow-y: auto; }
.ste-pick {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 7px 9px; margin-bottom: 6px; background: #fff;
  border: 1px solid var(--line, #e8edf1); border-radius: 10px;
  font: 500 13.5px/1.3 inherit; color: var(--ink, #14202b);
}
.ste-pick img { width: 38px; height: 38px; object-fit: cover; border-radius: 7px; flex: none; }
.ste-pick:hover { border-color: var(--orange, #f1b038); }
.ste-pick.is-on { border-color: var(--orange, #f1b038); background: rgba(241,176,56,.12); }

/* ══════════════════════════════════════════════════════════════════════════
   PÁGINAS DEL COMERCIO — opciones de presentación
   Las emite `App\Studio\Pagina::clases()`. Son clases y no estilos en línea
   para que los tokens de la tienda las sigan pintando igual que al resto.
   ══════════════════════════════════════════════════════════════════════════ */

/* Una columna: el resumen baja debajo del formulario y deja de ser pegajoso.
   En un teléfono ya era así; esto lo vuelve una decisión, no una consecuencia. */
.st-pg-layout-one-col .st-checkout-grid { grid-template-columns: minmax(0, 1fr); }
.st-pg-layout-one-col .st-checkout-summary { position: static; }

.st-pg-width-narrow { width: min(860px, calc(100% - 36px)); }

/* Tarjetas: con borde (el de fábrica), fondo suave, o sin caja. */
.st-pg-cards-soft .st-checkout-card { background: var(--bg-2, #f4f7f9); border-color: transparent; }
.st-pg-cards-flat .st-checkout-card {
  background: transparent; border-color: transparent; border-radius: 0;
  padding: 0 0 8px; border-bottom: 1px solid var(--line, #e8edf1);
}
.st-pg-cards-flat .st-checkout-card:last-child { border-bottom: 0; }
/* El resumen conserva su caja aunque el resto sea plano: es el que lleva el
   total, y un total sin caja se pierde entre los datos del formulario. */
.st-pg-cards-flat .st-checkout-summary .st-checkout-card {
  background: var(--bg-2, #f4f7f9); border-radius: 22px; padding: 22px; border-bottom: 0;
}

/* ── Panel «Páginas de compra» ───────────────────────────────────────── */
.ste-sec-h {
  margin: 20px 0 10px; font-size: 12px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--muted, #64717d);
}
.ste-pgfield {
  padding: 12px; margin-bottom: 10px;
  border: 1px solid var(--line, #e8edf1); border-radius: 12px;
}
.ste-pgfield > b { display: block; font-size: 14px; color: var(--ink, #14202b); margin-bottom: 8px; }
/* Un campo apagado se ve apagado: si no, la lista miente sobre lo que el
   cliente va a ver en el checkout. */
.ste-pgfield.is-off { opacity: .62; background: var(--bg-2, #f4f7f9); }
.ste-pgflags { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.ste-pgfield input[type="text"] {
  width: 100%; padding: 8px 10px; font: 400 13.5px/1.4 inherit;
  border: 1px solid var(--line, #e8edf1); border-radius: 8px; color: var(--ink, #14202b);
}
.ste-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink, #14202b); }
.ste-switch input { width: 16px; height: 16px; accent-color: var(--orange, #f1b038); }

/* ── Ficha de producto: opciones de presentación ─────────────────────── */

/* Miniaturas al costado. Debajo de 720px vuelven abajo igual: en un teléfono
   una columna de miniaturas se come el ancho de la foto. */
@media (min-width: 721px) {
  .st-pg-gallery-side .st-detail-grid > div:first-child {
    display: flex; flex-direction: row-reverse; gap: 12px; align-items: flex-start;
  }
  .st-pg-gallery-side .st-detail-media { flex: 1 1 auto; min-width: 0; }
  .st-pg-gallery-side .st-thumbs {
    flex: 0 0 84px; flex-direction: column; flex-wrap: nowrap;
    margin-top: 0; max-height: 480px; overflow-y: auto;
  }
}

.st-pg-cards-soft .st-spec-card { background: var(--bg-2, #f4f7f9); border-color: transparent; }
.st-pg-cards-flat .st-spec-card {
  background: transparent; border-color: transparent; border-radius: 0;
  padding: 0 0 14px; border-bottom: 1px solid var(--line, #e8edf1);
}

/* ── Bloque: HTML libre ──────────────────────────────────────────────── */
.b-content-html__body { max-width: 100%; overflow-x: auto; }
.b-content-html__body img, .b-content-html__body iframe, .b-content-html__body video { max-width: 100%; }
.b-content-html__body iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--st-radius-img, 16px); }
.b-content-html__body table { width: 100%; border-collapse: collapse; }
.b-content-html__body th, .b-content-html__body td { padding: 10px 12px; border-bottom: 1px solid var(--line, #e8edf1); text-align: left; }
.b-content-html--full .b-content-html__full { width: 100%; }
.b-content-html--full .st-kicker, .b-content-html--full .st-h2 { margin-left: 18px; margin-right: 18px; }

/* ── Bloque: Horarios de atención ────────────────────────────────────── */
.b-content-hours__card {
  max-width: 640px; padding: 28px; border-radius: var(--st-radius-card, 20px);
  background: var(--bg-2, #f4f7f9); border: 1px solid var(--line, #e8edf1);
}
.b-content-hours--inline .b-content-hours__card { max-width: none; background: transparent; border: 0; padding: 0; }
.b-content-hours__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.b-content-hours__head .st-kicker { width: 100%; }
.b-content-hours__head .st-h2 { margin: 0; }
.b-content-hours__status {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.b-content-hours__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.b-content-hours__status.is-open { color: #1f7a3a; background: rgba(31, 122, 58, .12); }
.b-content-hours__status.is-closed { color: #9b2c2c; background: rgba(155, 44, 44, .12); }
.b-content-hours__list { margin: 0; }
.b-content-hours__row {
  display: flex; justify-content: space-between; gap: 16px; padding: 10px 0;
  border-bottom: 1px solid var(--line, #e8edf1);
}
.b-content-hours__row:last-child { border-bottom: 0; }
.b-content-hours__row dt { margin: 0; font-weight: 600; color: var(--ink, #14202b); }
.b-content-hours__row dd { margin: 0; color: var(--muted, #64717d); text-align: right; }
.b-content-hours__row.is-closed dd { color: var(--muted, #64717d); opacity: .7; }
.b-content-hours--inline .b-content-hours__list { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.b-content-hours--inline .b-content-hours__row { border: 0; padding: 4px 0; gap: 10px; }
.b-content-hours__note { margin: 14px 0 0; font-size: 14px; color: var(--muted, #64717d); }
