/* ══════════════════════════════════════════════════════════════════
   MIURA ACCESORIOS — Public Store
   Warm minimalism · Manrope · Mobile-first
   ══════════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────────── */
:root {
  --brown:        #1A1A1A;
  --brown-dark:   #000000;
  --brown-soft:   #2D2D2D;
  --cream:        #F4F4F5;

  --gold:         #CC0000;
  --gold-dark:    #A30000;
  --gold-light:   #FDE8E8;
  --gold-bg:      #FEF2F2;
  --gold-border:  #FCA5A5;

  --bg:           #F4F4F5;
  --bg-soft:      #ECECEE;
  --surface:      #FFFFFF;

  --text:         #1A1A1A;
  --muted:        #6B7280;
  --light:        #9CA3AF;

  --success:      #5A9E6F;
  --success-soft: #EEF6EB;
  --danger:       #C0392B;
  --danger-soft:  #FDEEEC;
  --warning-soft: #FEF2F2;

  --border:       #E5E7EB;
  --border-soft:  #F0F0F2;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.05);
  --shadow:    0 2px 8px rgba(0,0,0,.09), 0 8px 28px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.14), 0 24px 60px rgba(0,0,0,.11);

  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 24px;
  --pill: 999px;

  --font: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  --ease:       cubic-bezier(.2, .7, .2, 1);    /* estándar — hovers */
  --ease-out:   cubic-bezier(.16, 1, .3, 1);    /* desaceleración — entradas, zoom de foto */
  --ease-press: cubic-bezier(.34, 1.2, .64, 1); /* leve overshoot — release táctil */

  --header-h: 62px;
  --topbar-h: 32px;
}

/* ── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); }
img { display: block; max-width: 100%; }

/* Foco visible accesible — solo con teclado (focus-visible), no al clickear */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Buscadores de tienda: el foco sutil ya lo da el contenedor (:focus-within),
   por lo que se anula el outline/box-shadow del input para evitar el doble foco. */
#st-nav-search-input:focus,
#st-nav-search-input:focus-visible,
#st-nav-search-mobile-input:focus,
#st-nav-search-mobile-input:focus-visible {
  outline: none;
  box-shadow: none;
}

/* ── HEADER ─────────────────────────────────────────────────────── */
.st-header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 1000;
  background: var(--brown);
  box-shadow: 0 1px 0 var(--brown-dark), 0 2px 16px rgba(0,0,0,.18);
  height: var(--header-h);
}
.st-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.st-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Botón hamburguesa del header — oculto: el trigger pasó al section nav */
.st-menu-btn { display: none; }
/* Botón favoritos en header (hereda estilos de .st-account-btn) */
.st-favorites-header-btn { position: relative; }
/* activo: corazón marrón/dorado MIURA, sin rojo ni blanco */
.st-favorites-header-btn.is-active i { color: #a20909; }
.st-favorites-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 17px; height: 17px; border-radius: var(--pill);
  background: #5c5c5c; color: #fffaf2;
  font-size: 10px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px; box-shadow: 0 2px 6px rgba(50,50,50,.25);
}
.st-favorites-count[hidden] { display: none !important; }
/* Botones unificados del modal Mi cuenta */
.st-account-actions {
  width: min(100%, 260px); margin: 18px auto 0;
  display: flex; flex-direction: column; gap: 10px;
}
.st-account-action-btn {
  width: 100%; height: 44px; border-radius: var(--pill);
  border: 1px solid rgba(204,0,0,.35);
  background: rgba(255,252,244,.86);
  color: var(--brown);
  font-family: var(--font); font-size: 14px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: border-color .14s, background .14s;
}
.st-account-action-btn:hover { border-color: rgba(204,0,0,.7); background: rgba(255,248,233,.96); }
.st-account-signout-btn {
  border-color: rgba(185,71,63,.32); color: #9f3f38;
  background: rgba(255,247,244,.68);
}
.st-account-signout-btn:hover { border-color: rgba(185,71,63,.55); background: rgba(255,238,235,.88); }
/* Legacy — no borrar para no romper si algún render viejo los usa */
.st-account-favorites-btn, .st-account-profile-btn { display: none; }
/* ── Formulario de perfil de cliente ─────────────────────────────────────────── */
.st-profile-form { padding: 0 0 8px; }
.st-profile-intro { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.st-profile-opt   { font-weight: 400; color: var(--light); font-size: .9em; }
.st-profile-field { margin-bottom: 12px; }
.st-profile-field label {
  display: block; font-size: 11px; font-weight: 700; color: var(--muted);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em;
}
.st-profile-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 9px 12px; font-size: 13.5px; font-family: var(--font);
  background: var(--surface); color: var(--text); resize: none;
  transition: border-color .14s, box-shadow .14s;
}
.st-profile-input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(204,0,0,.14);
}
.st-profile-actions { display: flex; gap: 10px; margin-top: 18px; }
.st-profile-save-btn {
  flex: 1; background: var(--brown); color: var(--cream);
  border: none; border-radius: var(--r-sm); padding: 11px;
  font-family: var(--font); font-size: 13.5px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .14s;
}
.st-profile-save-btn:hover { background: var(--brown-dark); }
.st-profile-back-btn {
  background: none; border: 1.5px solid var(--border-soft); border-radius: var(--r-sm);
  color: var(--muted); font-family: var(--font); font-size: 13px; font-weight: 700;
  padding: 11px 16px; cursor: pointer;
  display: flex; align-items: center; gap: 5px; transition: border-color .14s, color .14s;
}
.st-profile-back-btn:hover { border-color: var(--border); color: var(--text); }

/* ── Mis pedidos ──────────────────────────────────────────────────────────────── */

/* Navegación de lista */
.st-orders-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.st-orders-title {
  font-size: 14px; font-weight: 800; color: var(--brown); flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Botón volver en detalle — pill compacto, no compite con contenido */
.st-od-back-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px; margin-bottom: 18px;
  border: 1px solid var(--border-soft); border-radius: 99px;
  background: none; color: var(--muted);
  font-family: var(--font); font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: border-color .14s, color .14s;
}
.st-od-back-btn:hover { border-color: var(--border); color: var(--brown); }

/* Estados vacíos y loading */
.st-orders-loading { text-align: center; padding: 28px 0; color: var(--muted); font-size: 13px; }
.st-orders-empty   { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 0 0; }
.st-orders-empty-block { text-align: center; padding: 32px 0 8px; }
.st-orders-empty-icon { font-size: 40px; color: var(--border); margin-bottom: 12px; display: block; }
.st-orders-empty-block p { color: var(--muted); font-size: 14px; margin: 0; }
.st-orders-empty-sub  { font-size: 12px; color: var(--light); margin-top: 5px !important; }

/* ── Lista de pedidos ────────────────────────────────────────────────────────── */
.st-orders-list { display: flex; flex-direction: column; gap: 8px; }

.st-order-card {
  border: 1px solid var(--border-soft); border-radius: 14px;
  padding: 14px 15px; cursor: pointer;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.st-order-card:hover, .st-order-card:focus-visible {
  border-color: rgba(204,0,0,.45);
  box-shadow: 0 2px 12px rgba(26,26,26,.07);
  outline: none;
}
/* fila 1: número + flecha */
.st-order-card-row1 {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 7px;
}
.st-order-num { font-weight: 800; font-size: 13px; color: var(--brown); letter-spacing: .01em; }
.st-order-card-arrow { color: rgba(99,99,99,.35); font-size: 11px; }

/* fila 2: chip de estado */
.st-order-card-row2 { margin-bottom: 8px; }

/* chip compartido lista/detalle */
.st-order-chip {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
}

/* fila 3: método · fecha */
.st-order-card-row3 { margin-bottom: 9px; }
.st-order-card-meta-text { font-size: 12px; color: var(--muted); }

/* fila 4: total */
.st-order-card-row4 {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--border-soft); padding-top: 9px; margin-top: 2px;
}
.st-order-card-total-label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.st-order-card-total { font-size: 15px; font-weight: 800; color: var(--brown); }

/* ── Detalle de pedido ────────────────────────────────────────────────────────── */
.st-order-detail { display: flex; flex-direction: column; }

/* Header: label "Pedido" + número */
.st-od-head { margin-bottom: 11px; }
.st-od-head-label {
  font-size: 10px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 3px;
}
.st-od-head-num {
  font-size: 18px; font-weight: 800; color: var(--brown); letter-spacing: .01em;
}

/* Chips: estado + método */
.st-od-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-bottom: 8px;
}
.st-od-chip-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 99px;
  border: 1px solid rgba(204,0,0,.25);
  font-size: 12px; font-weight: 700;
}
.st-od-chip-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.st-od-chip-method {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 99px;
  border: 1px solid var(--border-soft);
  font-size: 11.5px; font-weight: 600;
  background: transparent; color: var(--muted);
}

/* Fecha: debajo de los chips, discreta */
.st-od-head-date {
  font-size: 11.5px; color: var(--light); margin-bottom: 20px;
}

/* Labels de sección */
.st-od-label {
  font-size: 10px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .09em;
  margin: 20px 0 9px;
}

/* Productos */
.st-od-items { display: flex; flex-direction: column; }
.st-od-item {
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
}
.st-od-item:first-child { border-top: 1px solid var(--border-soft); }
.st-od-item-name {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 5px; line-height: 1.35;
}
.st-od-item-foot {
  display: flex; justify-content: space-between; align-items: center;
}
.st-od-item-unit { font-size: 12px; color: var(--muted); }
.st-od-item-sub  { font-size: 14px; font-weight: 800; color: var(--brown); }

/* Tarjeta de resumen */
.st-od-totals-card {
  background: rgba(248,248,248,.85);
  border: 1px solid rgba(204,0,0,.18);
  border-radius: 14px;
  overflow: hidden;
}
.st-od-trow {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px; font-size: 13px; color: var(--text);
}
.st-od-trow-disc { }
.st-od-trow-disc span:first-child  { color: var(--muted); }
.st-od-trow-disc span:last-child   { color: #b03020; font-weight: 700; }
.st-od-trow-sep {
  height: 1px; background: rgba(204,0,0,.2); margin: 3px 14px;
}
.st-od-trow-final {
  padding: 11px 14px;
  font-size: 15px; font-weight: 800; color: var(--brown);
  background: rgba(204,0,0,.07);
}
.st-od-free { color: #1e8a4a; font-weight: 700; }

/* Cards de info: envío y facturación */
.st-od-info-card {
  background: rgba(248,248,248,.85);
  border: 1px solid rgba(204,0,0,.18);
  border-radius: 14px;
  padding: 13px 15px;
}
.st-od-info-line { font-size: 13px; color: var(--text); line-height: 1.65; }
.st-od-cp        { color: var(--muted); font-size: 12px; }
.st-od-info-note {
  font-size: 12px; color: var(--muted); font-style: italic;
  margin-top: 7px; line-height: 1.5;
}
.st-od-bill-row  { font-size: 13px; color: var(--text); line-height: 1.65; }

/* Acciones del cliente en detalle de pedido */
.st-od-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.st-od-action-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 99px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  border: 1.5px solid currentColor; background: transparent;
  transition: opacity .15s;
}
.st-od-action-btn:hover { opacity: .75; }
.st-od-action-btn:disabled { opacity: .4; cursor: not-allowed; }
.st-od-action-cancel { color: #c62828; }
.st-od-action-mp     { color: var(--brown); background: rgba(204,0,0,.08); border-color: rgba(204,0,0,.4); }

/* Tarjeta de seguimiento de envío */
.st-od-tracking-card { border-color: rgba(30,138,74,.22); background: rgba(240,250,244,.9); }
.st-od-track-label {
  display: inline-block;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin-right: 6px;
}
.st-od-track-link {
  color: #1e8a4a; font-weight: 700; font-size: 13px;
  text-decoration: none;
}
.st-od-track-link:hover { text-decoration: underline; }

/* ── Autocomplete de ubicaciones ─────────────────────────────────────────────── */
.st-autocomplete-list {
  position: fixed;
  z-index: 9999;
  background: var(--surface, #fffaf2);
  border: 1px solid rgba(204,0,0,.35);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.08);
  max-height: 220px;
  overflow-y: auto;
  padding: 5px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.st-autocomplete-list[hidden] { display: none !important; }
.st-autocomplete-option {
  display: block; width: 100%;
  border: 0; background: transparent; text-align: left;
  padding: 9px 12px; border-radius: 10px;
  color: var(--brown); font-family: var(--font);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .12s;
}
.st-autocomplete-option small {
  display: block; margin-top: 1px;
  color: var(--muted); font-size: 11px; font-weight: 600;
}
.st-autocomplete-option:hover,
.st-autocomplete-option.is-active { background: rgba(204,0,0,.10); }

/* Botón Mi cuenta en header */
.st-account-btn {
  position: relative;
  background: transparent;
  border: 1.5px solid rgba(244,244,245,.3);
  border-radius: var(--r-sm);
  color: var(--cream);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.st-account-btn:hover { background: rgba(244,244,245,.12); border-color: rgba(244,244,245,.6); }

/* ── Modal de cuenta ─────────────────────────────────────────────────────────── */
.st-account-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.52); z-index: 1070;
  transition: opacity .22s ease;
}
.st-account-overlay.open { display: block; }

/* Modal cuenta: oculto por defecto */
.st-account-modal {
  display: none;            /* cerrado hasta que JS agregue .open */
  position: fixed; z-index: 1075;
  bottom: 0; left: 0; right: 0;
  background: var(--bg);
  border-radius: 22px 22px 0 0;
  max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateY(4px);
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
  flex-direction: column;
}
.st-account-modal.open {
  display: flex;            /* visible y animado */
  transform: translateY(0);
}
.st-stock-alert-modal {
  z-index: 1076;
}
.st-stock-alert-intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Desktop: modal centrado */
@media (min-width: 600px) {
  .st-account-modal {
    top: 50%; left: 50%; right: auto; bottom: auto;
    width: min(420px, calc(100vw - 32px));
    border-radius: 20px;
    max-height: 80vh;
    transform: translate(-50%, -48%) scale(.96);
  }
  .st-account-modal.open { transform: translate(-50%, -50%) scale(1); }
  .st-stock-alert-modal {
    width: min(440px, calc(100vw - 32px));
  }
}

.st-account-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.st-account-title {
  font-family: Georgia, serif;
  font-size: 18px; font-weight: 400; color: var(--brown); letter-spacing: .01em;
}
.st-account-close {
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--border-soft);
  color: var(--muted); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .14s;
}
.st-account-close:hover { background: var(--border); color: var(--text); }
.st-account-body { padding: 22px; }

/* Form elements */
.st-acct-intro  { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.st-acct-msg    { font-size: 12.5px; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.st-acct-msg.success { background: var(--success-soft); color: var(--success); }
.st-acct-msg.error   { background: var(--danger-soft);  color: var(--danger);  }
.st-acct-continue-link {
  display: inline-block; margin-top: 8px;
  background: none; border: none; padding: 0;
  font-family: var(--font); font-size: 12px; font-weight: 700;
  color: var(--brown); cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px;
}
.st-acct-field  { margin-bottom: 14px; }
.st-acct-field label {
  display: block; font-size: 11px; font-weight: 700; color: var(--muted);
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: .06em;
}
.st-acct-field input {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 10px 14px; font-size: 14px; font-family: var(--font);
  background: var(--surface); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.st-acct-field input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(204,0,0,.16);
}
.st-acct-actions { display: flex; gap: 10px; margin-top: 6px; }
.st-acct-btn-primary {
  flex: 1; background: var(--brown); color: var(--cream);
  border: none; border-radius: var(--r-sm); padding: 12px;
  font-family: var(--font); font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background .14s;
}
.st-acct-btn-primary:hover { background: var(--brown-dark); }
.st-acct-btn-secondary {
  flex: 1; background: transparent; color: var(--brown);
  border: 1.5px solid var(--brown); border-radius: var(--r-sm); padding: 12px;
  font-family: var(--font); font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background .14s, color .14s;
}
.st-acct-btn-secondary:hover { background: var(--gold-bg); border-color: var(--gold-border); }
.st-acct-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px; color: var(--muted); font-size: 12px;
}
.st-acct-divider::before,
.st-acct-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-soft); }
.st-acct-btn-ghost {
  width: 100%; background: none; border: none; color: var(--muted);
  font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 8px; text-decoration: underline; text-underline-offset: 2px;
  transition: color .14s;
}
.st-acct-btn-ghost:hover { color: var(--brown); }
.st-acct-btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--card); color: var(--text);
  font-family: var(--font); font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background .14s, border-color .14s;
}
.st-acct-btn-google:hover { background: var(--gold-bg); border-color: var(--gold-border); }
/* Logged in */
.st-acct-loggedin { text-align: center; padding: 8px 0; }
.st-acct-avatar   { font-size: 54px; color: var(--gold); margin-bottom: 12px; }
.st-acct-email    { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.st-acct-welcome  { font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.st-acct-btn-signout {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1.5px solid var(--border);
  color: var(--muted); border-radius: var(--r-sm);
  padding: 10px 20px; font-family: var(--font);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: border-color .14s, color .14s;
}
.st-acct-btn-signout:hover { border-color: var(--danger); color: var(--danger); }

/* ── Productos relacionados en modal de producto ─────────────────── */
.st-related-section {
  border-top: 1px solid var(--border-soft);
  padding-top: 14px; margin-top: 4px;
  overflow: hidden; /* evitar que la lista ensanche el modal */
}
.st-related-head {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 10px;
}
.st-related-list {
  display: flex; gap: 10px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 2px;
  overscroll-behavior-x: contain; /* no propagar scroll horizontal a la página */
}
.st-related-list::-webkit-scrollbar { display: none; }
.st-related-card {
  flex-shrink: 0; width: 116px; border: none; padding: 0; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-sm); text-align: left;
  display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow .15s, border-color .15s;
}
.st-related-card:hover { box-shadow: var(--shadow-sm); border-color: var(--border); }
.st-related-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.st-related-img-ph {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--light); font-size: 1.5rem;
}
.st-related-name {
  font-size: 11px; font-weight: 700; color: var(--text);
  line-height: 1.3; padding: 6px 7px 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.st-related-price {
  font-size: 11.5px; font-weight: 800; color: var(--gold-dark);
  padding: 2px 7px 7px; display: block;
}
.st-related-tax-price {
  font-size: 9px;
  padding: 0 7px 7px;
  margin-top: -3px;
}
/* Mobile: incluir en el flujo de orden flex del modal */
@media (max-width: 599px) {
  .st-related-section { order: 9; }
}
.st-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.st-logo {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  object-fit: contain;
  background: var(--cream);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  flex-shrink: 0;
}
.st-logo-fallback {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--brown-dark);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  flex-shrink: 0;
}
.st-brand-text { display: flex; flex-direction: column; gap: 1px; }
.st-brand-name {
  font-family: Georgia, serif;
  font-size: 15px; font-weight: 700;
  color: var(--cream);
  letter-spacing: .06em; line-height: 1;
}
.st-brand-sub {
  font-size: 10px;
  color: rgba(244,244,245,.65);
  letter-spacing: .05em; font-weight: 600;
  text-transform: uppercase;
}
.st-cart-btn {
  position: relative;
  background: transparent;
  border: 1.5px solid rgba(244,244,245,.3);
  border-radius: var(--r-sm);
  color: var(--cream);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  transition: background .15s, border-color .15s;
}
.st-cart-btn:hover { background: rgba(244,244,245,.12); border-color: rgba(244,244,245,.6); }
.st-cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--gold);
  color: #ffffff;
  font-size: 10px; font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: var(--pill);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* ── HERO ────────────────────────────────────────────────────────── */
.st-hero {
  background: linear-gradient(170deg, var(--bg-soft) 0%, var(--bg) 48%, var(--gold-bg) 100%);
  padding: 60px 20px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.st-hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(204,0,0,.08) 0%, transparent 70%);
  pointer-events: none;
}
.st-hero::after {
  content: '';
  position: absolute; bottom: -40px; left: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(26,26,26,.06) 0%, transparent 70%);
  pointer-events: none;
}
.st-hero-inner {
  position: relative; z-index: 1;
  max-width: 540px; margin: 0 auto;
}
/* Imagen de ambiente: el fundido está horneado en el archivo (hero.webp
   tiene bordes transparentes feather) — no depende de soporte CSS */
.st-hero-img {
  display: block;
  width: 100%; max-width: 560px;
  margin: 18px auto 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 62% center;
}
/* Imagen izquierda: solo existe en desktop ancho */
.st-hero-img--left { display: none; }
/* Desktop: texto centrado, fotos fundidas desde ambos bordes de la página */
@media (min-width: 1024px) {
  .st-hero { padding: 84px 20px 56px; }
  /* inner estático para que la img derecha se ancle al hero, no al inner */
  .st-hero .st-hero-inner { position: static; max-width: 540px; }
  .st-hero-text { position: relative; z-index: 1; }
  .st-hero .st-hero-inner .st-hero-img {
    position: absolute;
    right: 0; top: 0;
    height: 100%;
    width: auto; max-width: none;
    margin: 0;
    aspect-ratio: auto;
    object-fit: unset;
  }
  .st-hero-img--left {
    display: block;
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: auto; max-width: none;
    margin: 0;
    aspect-ratio: auto;
  }
}
.st-hero-eyebrow {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--gold); margin-bottom: 14px;
}
.st-hero-title {
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 700; color: var(--brown);
  line-height: 1.04; letter-spacing: .055em;
  margin-bottom: 16px;
}
.st-hero-sub {
  font-size: 15px; color: var(--muted);
  font-weight: 500; line-height: 1.6;
  margin-bottom: 28px;
}
.st-hero-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--brown); color: var(--cream);
  font-size: 14px; font-weight: 700; letter-spacing: .03em;
  padding: 14px 34px; border-radius: var(--pill);
  margin-top: 6px;
  transition: background .18s, transform .16s, box-shadow .18s;
  box-shadow: var(--shadow);
}
.st-hero-cta:hover { transform: translateY(-1px); }
.st-hero-cta .bi { transition: transform .18s var(--ease); }
.st-hero-cta:hover {
  background: var(--brown-dark); color: var(--cream);
}
/* ── HERO BENEFITS MARQUEE ───────────────────────────────────────── */
.st-hero-benefits {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 16px auto 0;
  overflow: hidden;
  position: relative;
  padding: 9px 0;
  border-top: 1px solid rgba(204,0,0,.18);
  border-bottom: 1px solid rgba(204,0,0,.18);
  background: linear-gradient(
    180deg,
    rgba(246,246,246,0) 0%,
    rgba(255,248,233,.58) 28%,
    rgba(255,248,233,.58) 72%,
    rgba(246,246,246,0) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 -1px 0 rgba(255,255,255,.28);
}
/* Fades laterales que se funden con el fondo crema del hero */
.st-hero-benefits::before,
.st-hero-benefits::after {
  content: '';
  position: absolute; top: 0; height: 100%; width: 48px; z-index: 2; pointer-events: none;
}
.st-hero-benefits::before { left: 0;  background: linear-gradient(90deg,  rgba(246,246,246,1), rgba(246,246,246,0)); }
.st-hero-benefits::after  { right: 0; background: linear-gradient(270deg, rgba(246,246,246,1), rgba(246,246,246,0)); }

/* Track: dos grupos idénticos para loop continuo */
.st-hero-marquee-track {
  display: flex;
  width: max-content;
  animation: fecaHeroBenefitsMarquee 26s linear infinite;
  will-change: transform;
}
.st-hero-marquee-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
  flex-shrink: 0;
}

/* Chip individual — limpio, sin shimmer animado */
.st-hero-ben-chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 7px 15px;
  border: 1px solid rgba(204,0,0,.42);
  border-radius: var(--pill);
  background: rgba(255,252,244,.82);
  color: var(--brown);
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(59,59,59,.06);
}
/* 10% OFF transferencia: el lever de conversión más fuerte del hero — se
   destaca en color sólido para que no compita en igualdad con cuotas/envío */
.st-hero-ben-chip.st-hero-ben-chip--highlight {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(59,59,59,.22);
}
.st-hero-ben-chip.st-hero-ben-chip--highlight i { color: var(--cream) !important; }
.st-hero-ben-chip i {
  color: #ae0909; font-size: 13px; flex-shrink: 0;
}
@keyframes fecaHeroBenefitsMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Desktop: 2×3 grilla centrada — sin marquesina, sin scroll */
@media (min-width: 768px) {
  .st-hero-benefits {
    width: min(760px, calc(100% - 48px));
    margin: 24px auto 0;
    padding: 0;
    overflow: visible;
    border: 0; border-radius: 0;
    background: transparent; box-shadow: none;
  }
  .st-hero-benefits::before,
  .st-hero-benefits::after { display: none; }
  .st-hero-marquee-track {
    animation: none; transform: none;
    width: 100%; display: block;
  }
  .st-hero-marquee-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
    padding-right: 0; width: 100%;
  }
  .st-hero-marquee-group[aria-hidden="true"] { display: none; }
  .st-hero-ben-chip {
    width: 100%; min-height: 38px;
    justify-content: center;
    padding: 8px 14px; font-size: 12.5px;
    border-radius: var(--pill);
    background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,248,233,.72));
    border: 1px solid rgba(204,0,0,.42);
    box-shadow: 0 5px 16px rgba(59,59,59,.07), inset 0 0 0 1px rgba(255,236,185,.26);
  }
  .st-hero-ben-chip i { font-size: 13px; }
  /* Sin botón CTA, padding ajustado */
  .st-hero { padding-bottom: 44px; }
  .st-hero-sub { margin-bottom: 0; }
  /* Centrar inner y beneficios horizontalmente */
  .st-hero-inner { display: flex; flex-direction: column; align-items: center; }
  .st-hero-benefits { margin-left: auto; margin-right: auto; }
}
/* Tablet/desktop chico */
@media (min-width: 768px) and (max-width: 980px) {
  .st-hero-benefits { width: min(680px, calc(100% - 36px)); }
  .st-hero-ben-chip { font-size: 12px; padding-inline: 11px; }
}

/* Mobile: hero simple, sin foto — fondo de color liso, texto centrado */
@media (max-width: 767px) {
  .st-hero { padding: 30px 18px 16px; }
  .st-hero::before,
  .st-hero::after { opacity: .45; transform: scale(.72); }
  .st-hero-title { margin-bottom: 8px; font-size: 31px; }
  .st-hero-sub { margin-bottom: 0; }

  .st-hero-benefits {
    width: 100%; margin-top: 14px; padding: 4px 18px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden;
  }
  .st-hero-benefits::before,
  .st-hero-benefits::after { display: none !important; }
  .st-hero-marquee-track { animation: fecaHeroBenefitsMarquee 22s linear infinite; }
  .st-hero-marquee-group { gap: 9px; padding-right: 9px; }
  .st-hero-ben-chip {
    min-height: 29px; padding: 5px 11px; font-size: 11px;
    background: rgba(255,252,244,.76);
    box-shadow: 0 2px 8px rgba(59,59,59,.045);
  }
}

/* Accesibilidad: sin movimiento → scroll manual */
@media (prefers-reduced-motion: reduce) {
  .st-hero-marquee-track { animation: none; }
  .st-hero-benefits { overflow-x: auto; scrollbar-width: none; }
  .st-hero-benefits::-webkit-scrollbar { display: none; }
}

/* ── MAIN ────────────────────────────────────────────────────────── */
.st-main { max-width: 1200px; margin: 0 auto; padding: 36px 20px 80px; }
.st-catalog-head {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.st-catalog-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.st-catalog-title {
  margin: 0;
  color: var(--brown);
  font-family: Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.1;
}

/* ── FILTRO — panel boutique ─────────────────────────────────────── */
/* Botón "Filtrar" en la fila de búsqueda desktop */
.st-snav-filter-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 34px;
  border: 1px solid rgba(204,0,0,.22);
  border-radius: 20px;
  background: rgba(255,252,244,.9);
  color: var(--brown);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: border-color .14s, background .14s;
}
.st-snav-filter-btn:hover,
.st-snav-filter-btn[aria-expanded="true"] {
  border-color: rgba(204,0,0,.4);
  background: rgba(255,248,228,.95);
}
.st-snav-filter-btn .bi { font-size: 12px; }

/* Panel desktop de filtros — sibling a .st-snav-search-panel, sin overflow clipping */
.st-snav-desktop-filter { display: none; }
@media (min-width: 768px) {
  .st-snav-desktop-filter.is-open {
    display: block;
    padding: 14px 20px 16px;
    background: rgba(251,239,239,.98);
    border-top: 1px solid rgba(224,79,79,.13);
    border-bottom: 1px solid rgba(224,79,79,.13);
  }
  .st-snav-desktop-filter .st-fp-cols { max-width: 980px; margin: 0 auto; }
}

/* Panel de filtros mobile */
.st-snav-mobile-filter-panel { display: none; }
@media (max-width: 767px) {
  .st-snav-mobile-filter-panel.is-open {
    display: block;
    padding: 14px 16px 16px;
    background: rgba(251,239,239,.96);
    border-top: 1px solid rgba(224,79,79,.18);
    box-shadow: 0 3px 10px rgba(0,0,0,.04);
  }
}

/* Contenido del panel: 2 columnas (Ordenar + Disponibilidad) */
.st-fp-cols {
  display: flex;
  gap: 12px 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.st-fp-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 130px;
}
.st-fp-col-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 8px 5px;
}
.st-fp-opt {
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 5px;
  text-align: left;
  white-space: nowrap;
  transition: color .11s, background .11s;
}
.st-fp-opt:hover { color: var(--brown); background: rgba(204,0,0,.06); }
.st-fp-opt.is-active {
  color: var(--brown-dark);
  font-weight: 600;
  background: rgba(204,0,0,.07);
}
.st-fp-clear {
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .12s;
  align-self: flex-end;
}
.st-fp-clear:hover { color: var(--gold-dark); }

/* ── SECTION NAV (editorial) ─────────────────────────────────────── */
.st-section-nav {
  position: sticky;
  top: calc(var(--topbar-h) + var(--header-h));
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
/* Contenedor centrado (desktop). En mobile actúa como fila: scroll + menú */
.st-snav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  overflow: visible;
}
/* Área scrolleable real — contiene ítems + "Ver todo" */
.st-snav-scroll {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.st-snav-scroll::-webkit-scrollbar { display: none; }
.st-snav-group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.st-snav-item.is-active {
  color: var(--brown);
  border-bottom-color: var(--gold);
}
.st-mega-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  background: rgba(251,239,239, .99);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  box-shadow: 0 8px 14px rgba(0,0,0,.045);
  padding: 9px max(22px, calc((100vw - 1120px) / 2 + 20px)) 11px;
  transition: opacity .14s ease;
}
.st-section-nav.is-mega-open .st-mega-menu {
  opacity: 1;
  pointer-events: auto;
}
.st-section-nav.is-mega-suppressed .st-mega-menu {
  opacity: 0;
  pointer-events: none;
}
.st-mega-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 6px;
  margin-bottom: 7px;
  border-bottom: 1px solid var(--border-soft);
}
.st-mega-head-title,
.st-mega-head-all {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.st-mega-head-title {
  font-family: var(--font);
  color: var(--brown);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.1;
}
.st-mega-head-title:hover,
.st-mega-head-title.is-active {
  color: var(--gold-dark);
}
.st-mega-head-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.st-mega-head-all i {
  font-size: 11px;
}
.st-mega-head-all:hover {
  color: var(--brown);
  text-decoration: underline;
}
.st-mega-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px 14px;
}
.st-mega-link {
  display: block;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  padding: 5px 6px;
  border-radius: 5px;
  transition: background .12s, color .12s;
}

/* Los links de navegación (solapas/mega menú/menú mobile) ahora son <a href>
   reales (antes <button>) para que cada uno tenga URL propia y compartible —
   este reset evita que aparezca el subrayado/color de link por defecto. */
.st-snav-item,
.st-mega-link,
.st-mega-head-title,
.st-mega-head-all,
.st-mmenu-item,
.st-mmenu-subitem,
.st-home-end-btn,
.st-section-more {
  text-decoration: none;
}
.st-mega-head-title { display: inline-block; }
.st-mega-link:hover,
.st-mega-link.is-active {
  background: var(--gold-bg);
  color: var(--brown);
}
/* Mobile: acciones compactas, sin duplicar categorias del drawer */
@media (max-width: 767px) {
  .st-section-nav {
    min-height: 0 !important;
    overflow-x: clip;
    overflow-y: visible;
    background: rgba(251,239,239, .96);
    border-bottom: 1px solid rgba(224,79,79, .24);
    box-shadow: 0 1px 8px rgba(0,0,0, .05);
    padding: 0;
  }
  .st-snav-inner {
    height: 46px;
    min-height: 0 !important;
    max-width: 100%;
    padding: 0 14px;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden;
  }
  .st-snav-scroll {
    display: none !important;
    flex: 0 0 auto;
    width: 0;
    min-width: 0;
    max-width: 0;
    padding: 0;
    overflow: hidden;
  }
  .st-snav-scroll .st-snav-group { display: none; }
  #st-mega-menu,
  .st-mega-menu {
    display: none !important;
    position: static !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
  .st-section-nav.is-mega-open,
  .st-section-nav.is-mega-suppressed {
    min-height: 0 !important;
  }
  .st-hero { padding-bottom: 12px !important; }
  .st-hero-benefits { margin-top: 10px !important; margin-bottom: 0; }
}
/* Desktop: compacta y sobria */
@media (min-width: 768px) {
  .st-section-nav { min-height: 54px; }
  .st-snav-inner  { height: 54px; }
  .st-snav-scroll { padding: 0 24px; justify-content: center; overflow: visible; }
  .st-snav-item {
    font-size: 15px; font-weight: 800;
    letter-spacing: .08em;
    padding: 0 12px; height: 54px;
  }
  .st-snav-sep  { font-size: 15px; }
  .st-snav-item--all { gap: 7px; }
  .st-snav-item--all i { font-size: 15px; }
}
.st-snav-item {
  display: inline-flex; align-items: center;
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 0 14px; height: 42px;
  white-space: nowrap; cursor: pointer;
  transition: color .15s, border-bottom-color .15s;
}
.st-snav-item:hover { color: var(--brown); border-bottom-color: var(--gold); }
.st-snav-sep {
  color: var(--gold-dark);
  font-size: 13px; line-height: 1; font-weight: 700;
  flex-shrink: 0; user-select: none; pointer-events: none;
  display: flex; align-items: center; padding: 0 3px;
  transform: translateY(-1px);
}
.st-snav-item--all {
  color: var(--brown);
  display: inline-flex; align-items: center; gap: 6px;
}
.st-snav-item--all:hover { border-bottom-color: var(--gold-border); }
.st-snav-search-desktop { display: none; }
.st-snav-search-panel { display: none; }
.st-snav-inline-search { display: none; position: relative; }

/* ── Mini-preview de resultados bajo la barra de búsqueda ────────── */
.st-search-suggest {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid rgba(204,0,0,.24);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  max-height: 340px;
  overflow-y: auto;
  z-index: 40;
  padding: 6px;
}
.st-search-suggest.is-open { display: block; }
/* Versión desktop: vive fuera de .st-snav-search-panel (que usa
   overflow:hidden para animar su alto), así que se posiciona relativa a
   .st-section-nav en vez de al input directamente. */
@media (min-width: 768px) {
  .st-search-suggest--desktop {
    top: 100%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(640px, calc(100% - 40px));
  }
}
.st-search-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.st-search-suggest-item:hover,
.st-search-suggest-item:focus-visible {
  background: rgba(253,232,232,.55);
  outline: none;
}
.st-search-suggest-photo {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 15px;
}
.st-search-suggest-info {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.st-search-suggest-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-search-suggest-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
}
.st-search-suggest-empty {
  padding: 14px 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
/* Botón "Menú" en nav editorial */
.st-snav-item--menu {
  color: var(--brown);
  display: inline-flex; align-items: center; gap: 5px;
}
.st-snav-item--menu:hover { color: var(--brown-dark); border-bottom-color: var(--gold-border); }
/* "Ver todo": visible en desktop, oculto en mobile */
.st-snav-ver-todo  { display: inline-flex; }
/* "Menú": oculto en desktop; en mobile está fuera del scroll → siempre visible */
.st-snav-open-menu { display: none; }
.st-snav-search-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--brown);
}
.st-snav-search-mobile:hover { color: var(--brown-dark); border-bottom-color: var(--gold-border); }
@media (max-width: 767px) {
  .st-search-wrap { display: none; }
  .st-snav-search-panel { display: none !important; }
  .st-snav-mobile-search-slot {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
  }
  .st-snav-ver-todo,
  .st-snav-ver-todo-sep { display: none; }
  .st-snav-scroll .st-snav-sep { display: none; }
  .st-snav-search-mobile,
  .st-snav-open-menu {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    align-self: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(204,0,0,.28);
    border-radius: var(--pill);
    background: rgba(255,252,244,.82);
    color: var(--brown);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1;
    gap: 6px;
  }
  .st-snav-search-mobile {
    flex: 1 1 auto;
    justify-content: flex-start;
    max-width: none;
    padding-left: 14px;
    color: var(--muted);
    text-transform: none;
    letter-spacing: .02em;
  }
  .st-snav-mobile-search-slot.is-open .st-snav-search-mobile {
    display: none;
  }
  .st-snav-mobile-inline-search {
    display: none;
  }
  .st-snav-mobile-inline-search.is-open {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(204,0,0,.28);
    border-radius: var(--pill);
    background: rgba(255,252,244,.9);
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    position: relative;
  }
  .st-snav-mobile-inline-search:focus-within {
    border-color: rgba(204,0,0,.62);
    box-shadow: 0 0 0 2px rgba(204,0,0,.12);
  }
  .st-snav-mobile-inline-search-icon {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
  }
  .st-snav-mobile-inline-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
  }
  .st-snav-mobile-inline-search-input::placeholder {
    color: var(--light);
  }
  .st-snav-mobile-inline-search-input:focus,
  .st-snav-mobile-inline-search-input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }
  .st-snav-mobile-inline-search-close {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 9px;
  }
  .st-snav-mobile-inline-search-close:hover,
  .st-snav-mobile-inline-search-close:active {
    background: rgba(253,232,232,.45);
    color: var(--brown-dark);
  }
  .st-snav-open-menu { flex: 0 0 auto; }
  .st-snav-search-mobile i,
  .st-snav-open-menu i { line-height: 1; }

  /* ── Botón "Filtrar y ordenar" — mobile only ─────────────────── */
  .st-snav-open-filter {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(204,0,0,.28);
    border-radius: 50%;
    background: rgba(255,252,244,.82);
    color: var(--brown);
    font-size: 13px;
    position: relative;
    transition: background .14s, border-color .14s, color .14s;
  }
  .st-snav-open-filter:hover,
  .st-snav-open-filter.is-panel-open {
    background: rgba(255,248,230,.95);
    border-color: rgba(204,0,0,.52);
    color: var(--gold-dark);
  }
  .st-snav-open-filter.has-active-filters {
    background: rgba(255,244,218,.95);
    border-color: rgba(204,0,0,.55);
    color: var(--gold-dark);
  }
  .st-snav-open-filter i { line-height: 1; font-size: 13px; }
}

/* Dot indicador de filtros activos — visible en mobile (dentro del botón)
   y en desktop (junto al label del trigger) */
.st-filter-active-dot {
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  border: 1.5px solid rgba(251,239,239,.92);
  flex-shrink: 0;
}
/* Mobile: absolute en esquina del botón filtrar */
@media (max-width: 767px) {
  .st-snav-open-filter .st-filter-active-dot {
    display: block;
    position: absolute;
    top: -2px;
    right: -2px;
    opacity: 0;
    transform: scale(0);
    transition: opacity .14s, transform .14s;
  }
  .st-snav-open-filter.has-active-filters .st-filter-active-dot {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Botón oculto en desktop, visible en mobile ──────────────────── */
.st-snav-open-filter { display: none; }
@media (max-width: 767px) {
  .st-snav-open-filter { display: inline-flex; }
}

/* ── CATEGORY CARDS ──────────────────────────────────────────────── */
.st-cat-cards-wrap { max-width: 1200px; margin: 0 auto; padding: 36px 20px 0; }
.st-cat-cards-title {
  font-family: Georgia, serif; font-size: clamp(14px, 2vw, 17px); font-weight: 400;
  color: var(--muted); letter-spacing: .05em; text-transform: uppercase;
  margin: 0 0 16px;
}
.st-cat-cards-scroll-wrap {
  position: relative;
}
.st-cat-cards-grid {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.st-cat-cards-grid::-webkit-scrollbar { display: none; }
.st-cat-cards-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: #ffffff; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: box-shadow .2s, opacity .2s;
  padding: 0;
}
.st-cat-cards-arrow:hover { box-shadow: var(--shadow); }
.st-cat-cards-arrow--l { left: -18px; }
.st-cat-cards-arrow--r { right: -18px; }
.st-cat-card {
  display: block; position: relative; border-radius: var(--r-sm); overflow: hidden;
  flex: 0 0 160px; aspect-ratio: 3/4; cursor: pointer; text-decoration: none;
  background: var(--brown) center/cover no-repeat;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}
.st-cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.st-cat-card:active { transform: scale(.97); }
.st-cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.18) 55%, transparent 100%);
}
.st-cat-card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 10px 12px;
}
.st-cat-card-name {
  color: #ffffff; font-size: 13px; font-weight: 700;
  letter-spacing: .01em; line-height: 1.2;
}
.st-cat-card-count {
  color: rgba(255,255,255,.72); font-size: 10px; font-weight: 500;
  margin-top: 2px;
}
@media (max-width: 767px) {
  .st-cat-cards-wrap { padding: 24px 12px 0; }
  .st-cat-cards-arrow { display: none; }
  .st-cat-card { flex: 0 0 44vw; }
  .st-cat-card-content { padding: 8px 8px 10px; }
}

/* ── HOME SECTIONS ───────────────────────────────────────────────── */
.st-home-sections { max-width: 1200px; margin: 0 auto; padding: 40px 20px 0; }
@media (max-width: 767px) {
  .st-home-sections { padding: 18px 20px 0; }
}
/* scroll-margin-top compensa header (62px) + nav (~52px) para que la sección
   no quede tapada al navegar con scrollToHomeSection(). */
.st-section { margin-bottom: 52px; scroll-margin-top: calc(var(--header-h) + 46px); }
#catalogo    { scroll-margin-top: calc(var(--header-h) + 46px); }
.st-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.st-section-head-left { display: flex; flex-direction: column; gap: 3px; }
.st-section-title {
  font-family: Georgia, serif;
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 400; color: var(--brown); margin: 0;
}
.st-section-sub { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.st-section-more {
  flex-shrink: 0;
  border: 1.5px solid var(--border); color: var(--brown); background: transparent;
  border-radius: var(--pill); font-family: var(--font); font-size: 12px; font-weight: 700;
  padding: 7px 16px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .15s, background .15s, color .15s; white-space: nowrap;
}
.st-section-more:hover { border-color: var(--gold-border); background: var(--gold-bg); color: var(--gold-dark); }
.st-section-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 640px) { .st-section-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px) { .st-section-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.st-home-end { display: flex; justify-content: center; padding: 8px 0 16px; }
.st-home-end-btn {
  border: 1.5px solid var(--border); color: var(--muted); background: transparent;
  border-radius: var(--pill); font-family: var(--font); font-size: 13px; font-weight: 700;
  padding: 11px 28px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .15s, color .15s, background .15s;
}
.st-home-end-btn:hover { border-color: var(--gold-border); color: var(--gold-dark); background: var(--gold-bg); }

/* ── SEARCH ──────────────────────────────────────────────────────── */
.st-search-wrap { display: none; margin-bottom: 28px; }
.st-search { position: relative; max-width: 480px; }
.st-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--light); font-size: 15px; pointer-events: none;
}
.st-search-input {
  width: 100%; padding: 11px 42px 11px 40px;
  border: 1.5px solid var(--border); border-radius: var(--pill);
  font-family: var(--font); font-size: 14px; font-weight: 500;
  background: var(--surface); color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
.st-search-input::placeholder { color: var(--light); }
.st-search-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(204,0,0,.16); }
.st-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--light);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 13px;
  transition: background .15s, color .15s;
}
.st-search-clear:hover { background: var(--border-soft); color: var(--text); }

@media (min-width: 768px) {
  .st-search-wrap { display: none; }
  .st-snav-inner { justify-content: center; gap: 0; }
  .st-snav-scroll { justify-content: center; }
  .st-snav-mobile-search-slot { display: none; }
  .st-snav-search-mobile,
  .st-snav-open-menu { display: none; }
  .st-snav-search-desktop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brown);
    flex: 0 0 auto;
    margin-left: 12px;
  }
  .st-snav-search-desktop[aria-expanded="true"] {
    color: var(--brown);
    border-bottom-color: var(--gold);
  }
  .st-snav-search-panel {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height .22s ease, opacity .16s ease, padding-top .16s ease, padding-bottom .16s ease;
  }
  .st-snav-search-panel.is-open {
    max-height: 148px;
    opacity: 1;
    pointer-events: auto;
    padding-top: 10px;
    padding-bottom: 12px;
  }
  .st-snav-search-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    width: min(980px, 100%);
    margin: 0 auto;
    justify-content: center;
  }
  .st-snav-inline-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 360px;
    min-width: 0;
    height: 44px;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid rgba(59,59,59,.22);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: border-color .18s ease, transform .18s ease, opacity .18s ease;
    transform: translateY(-4px);
  }
  .st-snav-search-panel.is-open .st-snav-inline-search {
    transform: translateY(0);
  }
  .st-snav-inline-search:focus-within {
    border-bottom-color: rgba(204,0,0,.72);
  }
  .st-snav-inline-search-icon {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 13px;
  }
  .st-snav-inline-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
  }
  .st-snav-inline-search-input::placeholder {
    color: var(--light);
  }
  .st-snav-inline-search-input:focus,
  .st-snav-inline-search-input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }
  .st-snav-inline-search-close {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    transition: background .15s, color .15s;
  }
  .st-snav-inline-search-close:hover {
    background: rgba(253,232,232,.45);
    color: var(--brown-dark);
  }
}

/* ── STATES ──────────────────────────────────────────────────────── */
.st-state-wrap {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 80px 20px;
  color: var(--muted); font-weight: 600; font-size: 14px; text-align: center;
}
.st-state-icon { font-size: 44px; opacity: .35; }
.st-state-sub {
  font-size: 13px; color: var(--light); font-weight: 500;
  line-height: 1.55; max-width: 280px; margin: -4px 0 0; text-align: center;
}
.st-product-loading {
  min-height: 220px;
  padding: 56px 20px 64px;
}
.st-product-loading p {
  margin: 0;
  color: var(--brown);
  font-weight: 600;
}
.st-catalog-loading {
  min-height: 140px;
  padding: 34px 20px 46px;
}
.st-catalog-loading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.st-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border); border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Skeleton cards (loading inicial) ───────────────────────────────── */
.st-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 0 0 40px;
}
.st-skeleton-card {
  background: var(--surface);
  border-radius: var(--r-sm);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}
.st-skeleton-img {
  width: 100%; aspect-ratio: 1/1;
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--bg) 50%, var(--bg-soft) 75%);
  background-size: 400% 100%;
  animation: st-shimmer 1.4s ease-in-out infinite;
}
.st-skeleton-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.st-skeleton-line {
  height: 11px; border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--bg) 50%, var(--bg-soft) 75%);
  background-size: 400% 100%;
  animation: st-shimmer 1.4s ease-in-out infinite;
}
.st-skeleton-line--title  { width: 80%; }
.st-skeleton-line--short  { width: 45%; }
.st-skeleton-line--btn    { height: 34px; width: 100%; border-radius: var(--r-sm); margin-top: 4px; }
@keyframes st-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.st-btn-outline {
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--text); border-radius: var(--pill);
  padding: 10px 22px; font-size: 13px; font-weight: 700; font-family: var(--font);
  transition: border-color .15s, background .15s, color .15s;
}
.st-btn-outline:hover { border-color: var(--gold-border); background: var(--gold-bg); color: var(--gold-dark); }

/* ── PRODUCT GRID ────────────────────────────────────────────────── */
.st-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px)  { .st-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px)  { .st-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ── PRODUCT CARD ────────────────────────────────────────────────── */
.st-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .18s;
  display: flex; flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.st-card:hover { box-shadow: var(--shadow); border-color: var(--border); }
.st-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--r); }
.st-card.out-of-stock { opacity: .72; }

.st-card-photo-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-soft); overflow: hidden;
}
.st-card-photo {
  position: relative; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease-out), opacity .20s ease, filter .20s ease;
  transform-origin: center 42%;
  will-change: transform, opacity, filter;
}
/* Fundición suave: fade out + blur antes de cambiar src (flechitas) */
.st-card-photo.is-fading-photo { opacity: 0; filter: blur(1.5px); }
@media (hover: none) {
  .st-card.is-in-view .st-card-photo.is-fading-photo { opacity: 0; filter: blur(1.5px); }
}
/* Imagen fantasma que aparece durante swipe interactivo */
.st-card-photo-next {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; pointer-events: none;
  z-index: 1;
  transform: scale(1.02);
  transition: opacity .18s ease, transform .18s ease;
}
/* Durante el dedo: sin transición (responde en tiempo real) */
.st-card-photo-wrap.is-swiping .st-card-photo,
.st-card-photo-wrap.is-swiping .st-card-photo-next { transition: none; }
/* Al soltar: animación suave de vuelta o confirmación */
.st-card-photo-wrap.snap-photo .st-card-photo,
.st-card-photo-wrap.snap-photo .st-card-photo-next {
  transition: opacity .22s ease, transform .22s ease;
}
.st-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--light); background: var(--bg-soft);
}

.st-stock-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 4px 10px; border-radius: var(--pill);
  white-space: nowrap; pointer-events: none;
}
.st-stock-badge.out  { background: var(--danger-soft); color: var(--danger); }
.st-stock-badge.coming {
  background: rgba(241,241,241,.92);
  color: var(--brown-soft);
  border: 1px solid rgba(223,74,74,.42);
  box-shadow: 0 1px 5px rgba(0,0,0,.08);
}
.st-stock-badge.low  { background: var(--warning-soft); color: var(--gold-dark); border: 1px solid var(--gold-border); }
.st-stock-badge.ok   { background: var(--success-soft); color: var(--success); }
/* Última unidad — mismo lenguaje visual que el badge Novedad (crema
   translúcida + borde fino + blur), levemente más destacado sin alarmar */
.st-stock-badge.last {
  background: rgba(241,241,241,.88);
  color: var(--brown-soft);
  border: 1px solid var(--gold-border);
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: 0 1px 5px rgba(0,0,0,.08);
}

.st-card-body { padding: 12px 14px 8px; flex: 1; display: flex; flex-direction: column; }
.st-new-badge {
  position: absolute;
  left: 10px;
  bottom: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 74px);
  padding: 3px 8px;
  border-radius: var(--pill);
  border: 1px solid rgba(87,87,87,.16);
  background: rgba(241,241,241,.82);
  color: var(--brown-soft);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .045em;
  text-transform: uppercase;
  box-shadow: 0 1px 5px rgba(0,0,0,.08);
  pointer-events: none;
}
.st-card-cat {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 4px;
}
.st-card-name {
  font-size: 15px; font-weight: 800; color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
  flex: 1;
}
/* Precio efectivo/transferencia (verde, igual color que la leyenda) y
   precio de lista (dorado) uno al lado del otro, mismo tamaño — sin
   tachado, sin chip/pill. */
.st-card-price { font-size: 16px; font-weight: 800; color: var(--success); }
.st-card-price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.st-card-price-list {
  font-size: 16px; font-weight: 800; color: var(--gold-dark);
}
.st-card-cash-note { font-size: 10px; color: var(--success); font-weight: 700; }
.st-card-price-cash {
  font-size: 11px; font-weight: 700;
  color: var(--success); margin-top: 2px;
}
.st-card-pays { margin-top: 4px; line-height: 1.5; }
.st-card-pay-cash { font-size: 10px; color: var(--success); font-weight: 700; }
.st-card-install { font-size: 10px; color: var(--muted); font-weight: 600; margin-top: 0; }
.st-tax-price {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.15;
  color: rgba(61,61,61, .45);
  font-weight: 400;
  letter-spacing: 0;
}
@media (max-width: 599px) {
  .st-tax-price {
    font-size: 9px;
    line-height: 1.1;
    margin-top: 0;
  }
}
.st-card-footer { padding: 0 14px 14px; }

/* ── CARD PHOTO NAV (multi-photo cycling) ────────────────────────── */
.st-card-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.85); backdrop-filter: blur(3px);
  border: none; border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--brown); cursor: pointer;
  box-shadow: 0 1px 5px rgba(0,0,0,.22);
  opacity: 0; transition: opacity .2s, background .15s;
  z-index: 3;
}
.st-card-nav-prev { left: 6px; }
.st-card-nav-next { right: 6px; }
.st-card-nav:hover { background: #ffffff; }
.st-card:hover .st-card-nav { opacity: 1; }
/* ── Mobile táctil: foco progresivo basado en distancia al centro ── */
@media (hover: none) {
  /* Flechas: chevron semitransparente, sin globito */
  .st-card-nav {
    background: transparent; backdrop-filter: none; box-shadow: none;
    color: rgba(255,255,255,.9); font-size: 15px;
    opacity: 0; pointer-events: none;
  }
  .st-card-nav i { filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
  /* Dots base */
  .st-card-dot        { background: rgba(255,255,255,.32); }
  .st-card-dot.active { background: rgba(255,255,255,.82); }
  /* Mobile: sin transforms de scroll — fluidez ante todo */
  .st-card       { transition: box-shadow .14s ease-out; }
  .st-card-photo { transition: opacity .20s ease, filter .20s ease; will-change: auto; }

  /* is-in-view: solo activa controles táctiles, sin transforms */
  .st-card.is-in-view {
    box-shadow: 0 7px 18px rgba(0,0,0,.11);
  }
  .st-card.is-in-view .st-card-nav {
    opacity: .42;
    pointer-events: auto;
  }
  .st-card.is-in-view .st-card-dot        { background: rgba(255,255,255,.55); }
  .st-card.is-in-view .st-card-dot.active { background: rgba(255,255,255,1); }

  /* Swipe o tap explícito: flechas al máximo */
  .st-card.show-controls .st-card-nav { opacity: .9; pointer-events: auto; }
}

/* Dot indicators */
.st-card-dots {
  position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; z-index: 3; pointer-events: none;
}
.st-card-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .18s;
}
.st-card-dot.active { background: rgba(255,255,255,.95); }
.st-btn-add-card {
  width: 100%; background: var(--brown); color: var(--cream);
  border: none; border-radius: var(--r-sm);
  padding: 9px 12px; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s; min-height: 36px;
}
.st-btn-alert-card {
  width: 100%;
  background: linear-gradient(180deg, #fff9ef 0%, #f3cece 100%);
  color: var(--brown-dark);
  border: 1.5px solid rgba(26,26,26,.38);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  box-shadow: 0 6px 14px rgba(26,26,26,.10), inset 0 1px 0 rgba(255,255,255,.9);
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.st-btn-alert-card:hover {
  background: linear-gradient(180deg, #fffdf7 0%, #f4d5d5 100%);
  border-color: rgba(26,26,26,.56);
  box-shadow: 0 10px 18px rgba(26,26,26,.14), inset 0 1px 0 rgba(255,255,255,.92);
  transform: translateY(-1px);
}
.st-btn-alert-card i {
  font-size: 12px;
  color: #525252;
}
.st-btn-add-card:hover:not(.disabled) { background: var(--brown-dark); }
.st-btn-add-card.in-cart { background: var(--success); }
.st-btn-add-card.disabled { background: var(--bg-soft); color: var(--light); cursor: default; }

/* ── CARD "AGREGADO" — estado transitorio ────────────────────────── */
.st-card-added {
  width: 100%; min-height: 36px;
  background: var(--success-soft); color: var(--success);
  border: 1.5px solid #b6dfbf;
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  cursor: default;
  animation: stAddedPop .32s var(--ease) both;
}
@keyframes stAddedPop {
  0%   { opacity: 0; transform: scale(.88); }
  62%  { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1.00); }
}

/* ── CARD QTY CONTROL ────────────────────────────────────────────── */
.st-card-qty-ctrl {
  display: flex; align-items: stretch;
  width: 100%; min-height: 36px;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--r-sm);
  background: var(--cream);
  overflow: hidden;
  animation: stQtyIn .26s var(--ease) both;
}
@keyframes stQtyIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1.00); }
}
.st-card-qty-btn {
  flex: 0 0 38px;
  background: none; border: none;
  color: var(--brown); font-size: 20px;
  font-weight: 300; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; touch-action: manipulation;
  transition: background .12s;
  padding: 0;
}
.st-card-qty-btn:hover  { background: rgba(204,0,0,.10); }
.st-card-qty-btn:active { background: rgba(204,0,0,.22); }
.st-card-qty-btn:disabled { color: var(--light); cursor: default; }
.st-card-qty-btn:disabled:hover { background: none; }
/* Hint de tope de stock en la card */
.st-card-stock-hint {
  font-size: 11px; font-weight: 600; color: var(--brown-soft);
  text-align: center; margin-top: 4px; opacity: .85;
}
.st-card-qty-val {
  flex: 1; text-align: center;
  font-size: 13px; font-weight: 800; color: var(--brown);
  border-left: 1px solid var(--gold-border);
  border-right: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  user-select: none;
}

/* ── CLOSE BUTTON ────────────────────────────────────────────────── */
.st-close-btn {
  background: none; border: none; color: var(--muted);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-xs); font-size: 15px;
  transition: background .15s, color .15s; flex-shrink: 0;
}
.st-close-btn:hover { background: var(--bg-soft); color: var(--text); }

/* ── QTY CONTROL ─────────────────────────────────────────────────── */
.st-qty-ctrl {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0;
}
.st-qty-btn {
  background: var(--bg-soft); border: none;
  width: 36px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text); transition: background .15s;
}
.st-qty-btn:hover { background: var(--gold-bg); color: var(--gold-dark); }
.st-qty-val {
  width: 36px; text-align: center;
  font-size: 15px; font-weight: 800; color: var(--text);
  border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border);
  height: 40px; display: flex; align-items: center; justify-content: center;
}

/* ── PRODUCT MODAL ───────────────────────────────────────────────── */
.st-prod-dialog { max-width: min(1120px, calc(100vw - 48px)); margin: 12px auto; }
.st-modal-content {
  border: none; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; /* columna: main arriba, relacionados abajo */
}
/* Tablet/desktop: tope de alto CON scroll funcional. Sin este tope, un
   producto con texto muy largo queda más alto que la ventana y, como el
   body tiene overflow:hidden mientras el modal está abierto, esa parte de
   más NO se puede alcanzar de ninguna forma (queda "detrás" de la barra de
   tareas, inaccesible) — peor que tener que scrollear un poco. Con la
   tipografía/espaciado ya achicados, la gran mayoría de los productos ni
   llegan a este límite y no se nota ningún scroll. */
@media (min-width: 600px) {
  .st-modal-content { max-height: 95vh; overflow-y: auto; }
}
.st-modal-content .st-close-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
}

/* st-modal-main: contiene las dos columnas (imagen + info).
   align-items:stretch en tablet/desktop: la galería iguala el alto de la
   fila (= alto del texto) de forma NATIVA, recalculada por el navegador en
   cada reflow — sin JS midiendo nada, así que no puede quedar desincronizada.
   La foto se posiciona absolute;inset:0 dentro de esa galería ya estirada y
   usa object-fit:cover, por lo que siempre llena el espacio (con zoom/recorte
   si hace falta) sin dejar nunca un hueco en blanco arriba/abajo. */
.st-modal-main { display: flex; flex-direction: column; }
@media (min-width: 600px) {
  /* Sin tope de alto acá — foto+texto crecen lo que necesiten, sin scroll
     interno. El único límite es el de .st-modal-content (ver arriba, 97vh)
     como red de seguridad para textos realmente extremos. */
  .st-modal-main { flex-direction: row; align-items: stretch; }
  .st-modal-gallery { width: 340px; position: relative; overflow: hidden; }
}
@media (min-width: 780px) { .st-modal-gallery { width: 460px; } }

/* Gallery: ancho fijo en tablet */
.st-modal-gallery {
  flex-shrink: 0;
  display: flex; flex-direction: column;
  background: var(--bg-soft);
}

/* Photo-wrap: aspect-ratio fijo solo en mobile (columna, ver @media
   max-width:599px más abajo). En tablet/desktop pasa a position:absolute;
   inset:0 para llenar la galería ya estirada por flex (ver arriba). */
.st-modal-photo-wrap {
  position: relative; background: var(--bg-soft);
  width: 100%; aspect-ratio: 1/1; overflow: hidden;
}
@media (min-width: 600px) {
  .st-modal-photo-wrap { position: absolute; inset: 0; aspect-ratio: unset; }
}

/* ── DESKTOP ≥960px: modal más ancho, foto protagonista ── */
@media (min-width: 960px) {
  /* Modal más ancho: aprovechar la pantalla horizontalmente */
  .st-prod-dialog { max-width: min(1280px, calc(100vw - 64px)); }

  .st-modal-main {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 440px;
  }

  /* Gallery: 60 % del modal, alto = alto de la fila (stretch, ver arriba). */
  .st-modal-gallery {
    flex: 0 0 60%;
    min-width: 0;
    position: relative;
    overflow: hidden;
  }

  /* Body: ocupa el 45 % restante, crece libre según su contenido.
     padding-bottom fijo (no 0): deja aire entre "Materiales" y el borde
     antes de la sección de relacionados. */
  .st-modal-body {
    flex: 1;
    min-width: 0;
    padding-bottom: 24px;
  }
}

.st-modal-photo {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center center;
  transition: opacity .18s ease;
}
.st-modal-gallery,
.st-modal-photo-wrap { background: var(--surface); }
@media (min-width: 600px) {
  .st-modal-photo {
    object-fit: cover;
    object-position: center center;
  }
}
.st-modal-photo.is-loading { opacity: 0; }
/* Mobile: modal compacto y premium — no pantalla completa */
@media (max-width: 599px) {
  /* Evitar que el contenedor Bootstrap compita con el scroll interno.
     iOS Safari scrollea el elemento MÁS EXTERNO cuando hay nested scroll;
     bloqueando el scroll del #product-modal, el scroll pasa al content. */
  #product-modal { overflow: hidden !important; }

  .st-prod-dialog {
    width: calc(100% - 24px) !important;
    margin: 10px auto !important;
    /* dvh = dynamic viewport height: descuenta el chrome del browser en iOS Safari,
       evita que el max-height se calcule sobre un viewport que no incluye la barra inferior */
    max-height: 94dvh;
    overflow: hidden;
  }
  .st-modal-content {
    max-height: 94dvh;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* padding extra: iOS necesita espacio físico al final para que el scrollHeight
       cuente el contenido del carrusel y permita llegar hasta las cards */
    padding-bottom: max(28px, env(safe-area-inset-bottom, 16px));
    border-radius: var(--r-lg) !important;
  }
  /* Forzar que ningún contenedor intermedio corte el scroll vertical */
  .st-modal-main,
  .st-modal-body {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }
  /* Close button: circular y del mismo estilo visual que fav/compartir */
  .st-modal-content .st-close-btn {
    z-index: 20 !important;
    top: 10px; right: 10px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(81,81,81,.18);
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    color: rgba(63,63,63,.62);
  }
  /* Foto 4/5 (más alta que ancha) en mobile, con tope de alto. .st-modal-photo
     usa object-fit:cover (ver más abajo), así que el cap de alto simplemente
     recorta la imagen por arriba/abajo, sin franjas blancas. */
  .st-modal-photo-wrap {
    aspect-ratio: 4 / 5 !important;
    max-height: 380px !important;
    height: auto !important;
    overflow: hidden;
  }

  /* Deja lugar abajo para que la franja fija de "También te puede gustar"
     (.st-related-section--fixed, colgada de <body>) no tape el último
     contenido (agregar al carrito, dimensiones, etc.) al hacer scroll. */
  .st-modal-main { padding-bottom: 250px; }
}
.st-modal-photo-zoom { cursor: zoom-in; }
.st-modal-photo-ph {
  width: 100%; height: 100%; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--light);
}

/* Thumbnails: permanentemente ocultas — la navegación ahora es con flechas overlay */
.st-modal-thumbs { display: none !important; }

/* ── Flechas de navegación overlay en el modal ───────────────────── */
.st-modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.76); backdrop-filter: blur(6px);
  border: 1px solid rgba(81,81,81,.18);
  border-radius: 50%;
  color: var(--brown-soft); font-size: 16px;
  cursor: pointer;
  transition: background .15s, color .15s, transform .12s;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.st-modal-nav:hover { background: rgba(255,255,255,.96); color: var(--brown); }
.st-modal-nav:active { transform: translateY(-50%) scale(.93); }
.st-modal-nav-prev { left: 14px; }
.st-modal-nav-next { right: 14px; }

/* Dots indicadores overlay — mínimos y elegantes */
.st-modal-nav-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; gap: 5px; pointer-events: none;
}
.st-modal-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .2s, transform .2s;
}
.st-modal-dot.active {
  background: rgba(255,255,255,.96);
  transform: scale(1.3);
}

.st-modal-body { padding: 24px 22px; flex: 1; min-width: 0; overflow-x: hidden; display: flex; flex-direction: column; gap: 10px; }
/* Desktop: sin scroll propio — el body crece libre, ver .st-modal-main arriba.
   gap más chico: gana aire vertical para que entre todo sin scroll. */
@media (min-width: 600px) {
  .st-modal-body { overflow-y: visible; gap: 5px; padding: 16px 22px; }
}

@media (min-width: 900px) {
  #product-modal .st-modal-main {
    position: relative;
    background: var(--surface);
  }

  #product-modal .st-modal-gallery,
  #product-modal .st-modal-photo-wrap,
  #product-modal .st-modal-photo {
    border: 0;
    outline: 0;
    box-shadow: none;
  }

  #product-modal .st-modal-gallery {
    border-bottom: 0;
  }

  #product-modal .st-modal-body {
    position: relative;
    z-index: 1;
    margin-left: 0;
    overflow-x: hidden;
    background: var(--surface);
    border-left: 0;
    outline: 0;
    box-shadow: none;
  }
}

/* ── Relacionados: carrusel full-width bajo las dos columnas ──── */
#product-modal .st-modal-stock-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#product-modal .st-modal-stock-wrap .st-stock-badge {
  position: static;
  top: auto;
  left: auto;
  display: inline-flex;
  align-items: center;
}

#st-related-section.st-related-section {
  border-top: 1px solid var(--border-soft);
  padding: 20px 24px 22px;
  background: var(--surface);
}
.st-related-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.st-related-head { font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brown-soft); margin: 0; }
.st-related-arrows { display: flex; gap: 6px; }
.st-related-arrow {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--brown-soft); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .14s, color .14s;
}
.st-related-arrow:hover { border-color: var(--gold-border); color: var(--brown); }

/* Carrusel scrolleable, sin scrollbar visible */
.st-related-carousel {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 4px;
}
.st-related-carousel::-webkit-scrollbar { display: none; }

/* Mobile: franja fija abajo. Se cuelga de <body> (ver renderRelatedProducts
   en store.js) — NO es descendiente del modal, así que ningún overflow:hidden
   de sus contenedores (a propósito, para controlar el scroll interno) la
   afecta, y position:fixed no sufre el bug de iOS con
   -webkit-overflow-scrolling:touch. left/right/bottom calzan con el margen
   del propio .st-prod-dialog (12px / 10px).
   Arranca oculta (translateY + opacity 0) y aparece con transición recién
   cuando el usuario scrollea el modal hacia abajo — ver .is-visible y
   _bindRelatedBarScrollReveal en store.js. */
#st-related-section.st-related-section--fixed {
  position: fixed;
  left: 12px; right: 12px; bottom: 10px;
  z-index: 1060;
  border-top: none;
  border-radius: var(--r-lg);
  box-shadow: 0 -6px 18px rgba(0,0,0,.16), 0 2px 10px rgba(0,0,0,.12);
  padding: 10px 14px max(10px, env(safe-area-inset-bottom, 10px));
  transform: translateY(calc(100% + 20px));
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .22s ease;
}
#st-related-section.st-related-section--fixed.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
/* Cards a tamaño completo (nombre + precio + precio sin impuestos) —
   misma info que en desktop, no la versión mini de antes. */
.st-related-section--fixed .st-related-header { margin-bottom: 8px; }

/* Ordenar por mobile en el flujo de columna (fallback si por algún motivo
   no se aplicó la clase --fixed; en el uso normal no llega a pintarse así) */
@media (max-width: 599px) {
  #st-related-section.st-related-section:not(.st-related-section--fixed) { order: 9; padding: 14px 16px 18px; }
}
.st-modal-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.st-modal-name { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.25; }
/* Precio efectivo/transferencia (verde) como precio principal del modal,
   con el de lista (dorado) al lado — mismo tratamiento que en las cards. */
.st-modal-price-row { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.st-modal-price { font-size: 26px; font-weight: 800; color: var(--success); }
.st-modal-price-list { font-size: 26px; font-weight: 800; color: var(--gold-dark); }
.st-modal-price-row + .st-tax-price { margin-top: -2px; font-size: 11px; }
/* ── MODAL FORMAS DE PAGO ────────────────────────────────────────── */
.st-modal-pay-info {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 10px; padding: 10px 0;
  border-top: 1px solid var(--border-soft);
}
@media (min-width: 600px) { .st-modal-pay-info { margin-top: 6px; padding: 6px 0; gap: 4px; } }
.st-mpay-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.st-mpay-lbl {
  font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: .01em; flex-shrink: 0;
}
.st-mpay-val {
  font-size: 12px; font-weight: 700; color: var(--brown); white-space: nowrap;
}
.st-mpay--transfer .st-mpay-val { color: var(--success); }
.st-mpay-gc-disc {
  font-size: 10px; color: var(--brown-soft); margin: 0; line-height: 1.4;
}
.st-modal-stock-wrap { display: flex; gap: 8px; }
/* Descripción del producto en el modal */
.st-modal-desc {
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
  margin-top: 2px;
}
@media (min-width: 600px) { .st-modal-desc { padding-top: 6px; } }
.st-modal-desc-text {
  font-size: 13px; color: var(--text); opacity: .82;
  line-height: 1.65; font-weight: 500; margin: 0;
}
/* Cada renglón de la descripción como párrafo propio, con espaciado parejo
   sin importar cuántos \n haya en el texto original (ver store.js). Todos
   los renglones (párrafos y "- características") con el mismo interlineado
   — se probó achicar solo el de las características y quedaba peor. */
.st-desc-line { margin: 0 0 8px 0; }
.st-desc-line:last-child { margin-bottom: 0; }
/* Tablet/desktop: texto un poco más compacto — sin scroll interno en el
   modal, hay que ganar pixels en productos con descripción larga. */
@media (min-width: 600px) {
  .st-modal-desc-text { font-size: 13px; line-height: 1.5; }
  .st-desc-line { margin-bottom: 4px; }
}
/* Pantallas de menor altura (monitores chicos, notebooks): achicar un poco
   más automáticamente, para depender menos del scroll de seguridad de
   .st-modal-main (ver más arriba, max-height:88vh — con menos alto de
   ventana ese 88vh ya es menor de por sí, pero el contenido no se achica
   solo si no le bajamos la letra también). */
@media (min-width: 600px) and (max-height: 820px) {
  .st-modal-desc-text { font-size: 12px; line-height: 1.35; }
  .st-desc-line { margin-bottom: 3px; }
  .st-modal-body { gap: 4px; padding: 12px 22px; }
}
/* En mobile: descripción siempre completa, sin clamp ni botón "ver más" —
   el usuario scrollea el modal entero para llegar a materiales/dimensiones. */
@media (max-width: 599px) {
  .st-desc-toggle { display: none !important; }
}
/* Botón toggle "Ver descripción completa / Ver menos" */
.st-desc-toggle {
  display: inline-block;
  background: none; border: none;
  color: var(--brown-soft);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 0 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color .14s;
}
.st-desc-toggle:hover { color: var(--gold-dark); }
/* En tablet (600-960px): ocultar toggle, descripción completa */
@media (min-width: 600px) {
  .st-desc-toggle { display: none !important; }
}
/* En desktop (≥960px): descripción completa, sin clamp, sin toggle.
   El espacio disponible en el panel derecho se usa para mostrar el texto. */
/* ── Variantes de producto en modal ─────────────────────────────────────────── */
.st-variants-wrap { display: flex; flex-direction: column; gap: 10px; padding: 10px 0 4px; }
.st-variant-axis  { display: flex; flex-direction: column; gap: 6px; }
.st-variant-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
}
.st-variant-options { display: flex; flex-wrap: wrap; gap: 6px; }

/* Swatch (imagen) */
.st-variant-swatch {
  width: 44px; height: 44px;
  border-radius: 8px; overflow: hidden;
  border: 2px solid var(--border-soft);
  padding: 0; cursor: pointer; background: none;
  transition: border-color .15s;
  flex-shrink: 0;
}
.st-variant-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-variant-swatch:hover { border-color: var(--gold); }
.st-variant-swatch.active { border-color: var(--gold-dark); box-shadow: 0 0 0 2px var(--gold-dark); }

/* Pill (texto: tamaño, etc.) */
.st-variant-pill {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border-soft);
  background: none; cursor: pointer;
  font-size: 13px; font-weight: 500;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.st-variant-pill:hover { border-color: var(--gold); background: var(--bg-soft); }
.st-variant-pill.active {
  border-color: var(--gold-dark); background: var(--gold-dark);
  color: #ffffff; font-weight: 600;
}

/* "Envío gratis" — vive dentro de .st-modal-pay-info, junto a las cuotas
   (antes estaba cerca del CTA, repitiendo espacio con cuotas/transferencia
   que ya se muestran arriba en detalle). */
.st-modal-trust {
  display: flex; flex-wrap: wrap;
  gap: 6px 16px;
  padding: 10px 0 0;
  font-size: 12px; font-weight: 600;
  color: var(--muted);
}
@media (min-width: 600px) { .st-modal-trust { padding-top: 6px; gap: 4px 14px; } }
.st-modal-trust:empty { display: none; }
.st-modal-trust-item { display: inline-flex; align-items: center; gap: 6px; }
.st-modal-trust-item i { color: var(--gold-dark); font-size: 13px; flex-shrink: 0; }
.st-modal-actions { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
/* Aviso de tope de stock — aparece inline debajo del carrito */
.st-modal-stock-hint {
  font-size: 12px; font-weight: 600;
  color: var(--brown-soft);
  opacity: .85;
  margin: 0; padding: 0;
  line-height: 1.4;
  width: 100%; /* ocupa fila completa en el flex wrap */
}
/* Desktop ≥960px: material+acciones juntos al fondo — el espacio vacío queda
   entre la descripción y el bloque inferior, no entre material y carrito */
@media (min-width: 960px) {
  .st-modal-actions { margin-top: 0; padding-top: 0; }
}
.st-btn-add-full {
  flex: 1; min-width: 160px;
  background: var(--brown); color: var(--cream); border: none;
  border-radius: var(--pill); padding: 12px 20px;
  font-size: 14px; font-weight: 700; font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s;
}
.st-btn-add-full.is-stock-alert {
  background: linear-gradient(180deg, #484848 0%, #1A1A1A 100%);
  color: #fff7eb;
  box-shadow: 0 10px 24px rgba(26,26,26,.18);
}
.st-btn-add-full.is-stock-alert i {
  color: #e87d7d;
}
.st-btn-add-full:hover:not(:disabled) { background: var(--brown-dark); }
.st-btn-add-full:disabled { background: var(--bg-soft); color: var(--light); cursor: default; }

/* ── FAVORITOS — corazón en card (sin círculo de fondo) ──────────── */
.st-card-fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 36px; height: 36px;           /* área táctil amplia */
  display: flex; align-items: center; justify-content: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  backdrop-filter: none;
  color: rgba(63,63,63,.62); font-size: 20px; cursor: pointer;
  transition: color .15s, transform .12s;
}
.st-card-fav-btn i {
  filter: drop-shadow(0 1px 4px rgba(255,252,244,.9));
  line-height: 1;
}
.st-card-fav-btn:hover    { color: #5c5c5c; }
/* activo: solo cambia el color del ícono, sin ningún fondo */
.st-card-fav-btn.is-fav   { color: #5c5c5c; }
.st-card-fav-btn.is-fav i {
  filter: drop-shadow(0 1px 4px rgba(255,252,244,.9));
  animation: favPop .28s var(--ease) both;
}
@keyframes favPop { 0% { transform: scale(.7); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* ── FAVORITOS — corazón en modal ────────────────────────────────── */
.st-modal-fav-btn {
  width: 38px; height: 38px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1.5px solid var(--border-soft);
  border-radius: 50%; color: var(--muted); font-size: 16px; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
/* hover: acento suave */
.st-modal-fav-btn:hover  { color: rgba(63,63,63,.85); border-color: rgba(204,0,0,.28); }
/* activo: mismo botón claro, corazón marrón/dorado */
.st-modal-fav-btn.is-fav { color: #5c5c5c; border-color: rgba(204,0,0,.38); background: rgba(255,252,244,.92); }

/* ── FAVORITOS — panel lateral ───────────────────────────────────── */
.st-favs-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 1044;
}
.st-favs-overlay.open { display: block; }
.st-favs-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(400px, 96vw); z-index: 1045;
  background: var(--bg); border-left: 1px solid var(--border-soft);
  box-shadow: -4px 0 28px rgba(0,0,0,.14);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.st-favs-panel.open { transform: translateX(0); }
.st-favs-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border-soft); flex-shrink: 0;
  background: var(--surface);
}
.st-favs-title { font-size: 15px; font-weight: 800; color: #5c5c5c; display: flex; align-items: center; gap: 8px; }
.st-favs-body  { flex: 1; overflow-y: auto; padding: 12px 16px; }
.st-favs-foot  { padding: 14px 16px; border-top: 1px solid var(--border-soft); flex-shrink: 0; background: var(--surface); }
/* Empty state */
.st-favs-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 60px 20px; color: var(--muted); text-align: center; }
.st-favs-empty-icon { font-size: 48px; opacity: .2; display: block; margin-bottom: 4px; }
.st-favs-empty p { font-size: 14px; font-weight: 700; margin: 0; }
.st-favs-empty-sub { font-size: 12px; color: var(--light); }
/* Item */
.st-favs-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-sm); padding: 10px; margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.st-favs-item-photo {
  width: 54px; height: 54px; object-fit: cover;
  border-radius: var(--r-xs); flex-shrink: 0; cursor: pointer;
}
.st-favs-nophoto {
  width: 54px; height: 54px; border-radius: var(--r-xs); flex-shrink: 0;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--light); cursor: pointer;
}
.st-favs-item-info  { flex: 1; min-width: 0; }
.st-favs-item-name  { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.st-favs-item-price { font-size: 13px; font-weight: 800; color: var(--gold-dark); margin-top: 3px; cursor: pointer; }
/* Acciones dentro del ítem de favorito */
.st-fav-item-actions { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.st-fav-cart-btn {
  border: 0; border-radius: var(--pill);
  background: var(--brown); color: var(--cream);
  height: 30px; padding: 0 12px;
  font-family: var(--font); font-size: 11.5px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; white-space: nowrap;
  transition: background .14s, color .14s, border-color .14s;
  min-width: 0;
}
.st-fav-cart-btn:hover:not(:disabled) { background: var(--brown-dark); }
.st-fav-cart-btn.is-in-cart {
  background: rgba(204,0,0,.13); color: var(--brown);
  border: 1px solid rgba(204,0,0,.38);
}
.st-fav-cart-btn.is-in-cart:hover { background: rgba(204,0,0,.22); }
.st-fav-cart-btn:disabled { opacity: .45; cursor: not-allowed; background: var(--bg-soft); color: var(--muted); }
/* Control de cantidad en panel Mis favoritos */
.st-fav-qty-control {
  display: inline-flex; align-items: center;
  height: 34px; border-radius: var(--pill); overflow: hidden;
  border: 1px solid rgba(204,0,0,.28);
  background: var(--gold-bg);
  box-shadow: 0 4px 10px rgba(0,0,0,.07);
}
.st-fav-qty-control button {
  width: 34px; height: 34px; border: 0; flex-shrink: 0;
  background: rgba(204,0,0,.15); color: var(--brown);
  font-size: 16px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .12s;
}
.st-fav-qty-control button:hover { background: rgba(204,0,0,.28); }
.st-fav-qty-control button:active { transform: scale(.93); }
.st-fav-qty-control span {
  min-width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brown); font-weight: 900; font-size: 14px;
  background: var(--gold-bg);
}
.st-favs-item-remove {
  flex-shrink: 0; width: 32px; height: 32px;
  border: none; background: transparent; color: #5c5c5c;
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color .14s, transform .12s;
}
.st-favs-item-remove:hover { color: var(--brown); transform: scale(1.12); }
/* Badge contador en drawer */
.st-mmenu-fav-count {
  margin-left: auto; background: var(--danger); color: #ffffff;
  font-size: 10px; font-weight: 800; min-width: 18px; height: 18px;
  border-radius: var(--pill); display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ── Favorito + Compartir: overlay sobre la foto del modal ──────── */
.st-modal-photo-actions {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  display: flex; gap: 8px; align-items: center;
}
/* Estilo compartido para ambos botones */
.st-modal-photo-actions .st-modal-fav-btn,
.st-modal-photo-actions .st-photo-share-btn {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.82); backdrop-filter: blur(6px);
  border: 1px solid rgba(81,81,81,.18);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  font-size: 16px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
/* Colores base: favorito */
.st-modal-photo-actions .st-modal-fav-btn { color: rgba(63,63,63,.62); }
.st-modal-photo-actions .st-modal-fav-btn:hover { background: rgba(255,252,244,.96); color: #5c5c5c; }
.st-modal-photo-actions .st-modal-fav-btn.is-fav { color: #5c5c5c; border-color: rgba(204,0,0,.38); background: rgba(255,252,244,.92); }
/* Colores base: compartir */
.st-modal-photo-actions .st-photo-share-btn { color: rgba(63,63,63,.62); font-size: 14px; }
.st-modal-photo-actions .st-photo-share-btn:hover { background: rgba(255,252,244,.96); color: var(--brown-soft); }
/* Mobile: botones más chicos y desplazados a la izquierda de la X.
   X ocupa right: 10px..46px → fav/compartir empiezan en right: 56px */
@media (max-width: 599px) {
  .st-modal-photo-actions .st-modal-fav-btn,
  .st-modal-photo-actions .st-photo-share-btn { width: 36px; height: 36px; min-width: 36px; font-size: 14px; }
  .st-modal-photo-actions { top: 10px; right: 56px; }
}

/* Bloque share del panel derecho — vacío, mantener compatibilidad */
.st-modal-share { display: none; }
.st-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .02em;
  padding: 6px 16px;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.st-share-btn:hover {
  border-color: var(--gold-border);
  color: var(--brown);
  background: var(--gold-bg);
}
.st-share-btn:disabled { opacity: .7; cursor: default; }
.st-share-btn .bi { font-size: 13px; }

/* ── CART OFFCANVAS ──────────────────────────────────────────────── */
.st-cart-canvas { width: min(400px, 96vw) !important; background: var(--bg); border-left: 1px solid var(--border-soft); }
.st-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border-soft); background: var(--surface); flex-shrink: 0;
}
.st-cart-title { font-size: 15px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
.st-cart-body { flex: 1; overflow-y: auto; padding: 16px; }
.st-cart-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 60px 20px; color: var(--muted); text-align: center;
}
.st-cart-empty-icon { font-size: 48px; opacity: .25; display: block; margin-bottom: 4px; }
.st-cart-empty p { font-size: 14px; font-weight: 700; margin: 0; }
.st-cart-empty-sub { font-size: 12px; color: var(--light); }
.st-cart-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-sm);
  padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.st-ci-photo { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-xs); flex-shrink: 0; }
.st-ci-photo-placeholder {
  width: 72px; height: 72px; border-radius: var(--r-xs);
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--light); flex-shrink: 0;
}
.st-ci-info { flex: 1; min-width: 0; }
.st-ci-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 3px; }
.st-ci-price { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.st-ci-controls { display: flex; align-items: center; }
.st-qty-btn-sm {
  background: var(--bg-soft); border: 1px solid var(--border);
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text);
  transition: background .12s; border-radius: 0;
}
.st-qty-btn-sm:first-child { border-radius: var(--r-xs) 0 0 var(--r-xs); }
.st-qty-btn-sm:last-child  { border-radius: 0 var(--r-xs) var(--r-xs) 0; }
.st-qty-btn-sm:hover { background: var(--gold-bg); color: var(--gold-dark); }
.st-qty-btn-sm:disabled { background: var(--bg-soft); color: var(--light); cursor: default; }
.st-qty-btn-sm:disabled:hover { background: var(--bg-soft); color: var(--light); }
/* Hint de tope de stock en el carrito */
.st-ci-stock-hint {
  font-size: 11px; font-weight: 600; color: var(--brown-soft);
  opacity: .85; margin-top: 3px;
}
.st-ci-qty {
  width: 28px; text-align: center; font-size: 13px; font-weight: 800;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  height: 26px; display: flex; align-items: center; justify-content: center; background: var(--surface);
}
.st-ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.st-ci-subtotal { font-size: 13px; font-weight: 800; color: var(--brown); }
.st-ci-right .st-tax-price { display: none; }
.st-ci-remove { background: none; border: none; color: var(--light); font-size: 13px; padding: 3px; display: flex; transition: color .12s; }
.st-ci-remove:hover { color: var(--danger); }
.st-cart-foot { padding: 16px 20px; border-top: 1px solid var(--border-soft); background: var(--surface); flex-shrink: 0; }
.st-cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.st-cart-total-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.st-cart-total-val { font-size: 22px; font-weight: 800; color: var(--brown); }
/* "Continuar compra" no es una acción de WhatsApp: usa el marrón MIURA
   (el verde de marca queda reservado para .st-btn-wa, que sí abre WhatsApp). */
.st-btn-checkout {
  width: 100%; background: var(--brown); color: var(--cream); border: none;
  border-radius: var(--pill); padding: 14px; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font);
  transition: background .15s, transform .12s; box-shadow: var(--shadow); margin-bottom: 8px;
  letter-spacing: .01em;
}
.st-btn-checkout:hover { background: var(--brown-dark); }
.st-btn-clear {
  width: 100%; background: none; border: 1.5px solid var(--border); color: var(--muted);
  border-radius: var(--pill); padding: 8px 14px; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font);
  transition: border-color .15s, color .15s, background .15s;
}
.st-btn-clear:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
/* Confirmación inline de "Vaciar carrito" — on-brand, sin diálogo nativo */
.st-clear-confirm { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.st-clear-confirm-q { font-size: 12px; font-weight: 700; color: var(--muted); }
.st-clear-confirm-row { display: flex; gap: 8px; width: 100%; }
.st-btn-clear-cancel,
.st-btn-clear-yes {
  flex: 1; border-radius: var(--pill); padding: 8px 14px;
  font-size: 12px; font-weight: 700; font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease);
}
.st-btn-clear-cancel { background: none; border: 1.5px solid var(--border); color: var(--muted); }
.st-btn-clear-cancel:hover { border-color: var(--brown-soft); color: var(--brown); }
.st-btn-clear-yes { background: var(--danger); border: 1.5px solid var(--danger); color: #ffffff; }
.st-btn-clear-yes:hover { background: #a5281b; border-color: #a5281b; }
.st-btn-clear-cancel:active,
.st-btn-clear-yes:active { transform: scale(.96); }

/* ── CHECKOUT MODAL ──────────────────────────────────────────────── */
.st-co-content { border: none; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.st-co-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 24px 14px; border-bottom: 1px solid var(--border-soft);
}
.st-co-head-left { display: flex; flex-direction: column; gap: 7px; }
.st-co-title { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }

/* ── STEP INDICATOR ──────────────────────────────────────────────── */
.st-co-stepper { display: flex; align-items: center; gap: 5px; }
.st-co-step-pip {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--border); color: var(--muted);
  font-size: 10px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s; flex-shrink: 0;
}
.st-co-step-pip.active { background: var(--brown); color: var(--cream); }
.st-co-step-pip-lbl {
  font-size: 11px; font-weight: 600;
  color: var(--light); letter-spacing: .02em;
  transition: color .2s;
}
.st-co-step-pip-lbl.active { color: var(--brown); font-weight: 700; }
.st-co-step-arr { color: var(--border); font-size: 14px; line-height: 1; }

.st-co-body { padding: 16px 24px; max-height: 62vh; overflow-y: auto; }
.st-co-summary {
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 20px;
}
.st-co-item { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text); padding: 3px 0; }
.st-co-num { font-weight: 800; color: var(--gold-dark); flex-shrink: 0; width: 18px; }
.st-co-name { flex: 1; }
.st-co-qty { color: var(--muted); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.st-co-sub { font-weight: 700; color: var(--brown); flex-shrink: 0; }
.st-co-total {
  display: flex; justify-content: space-between;
  font-size: 14px; font-weight: 800; color: var(--brown);
  border-top: 1px solid var(--gold-border); margin-top: 8px; padding-top: 8px;
}
.st-co-form { display: flex; flex-direction: column; gap: 18px; }
.st-field { display: flex; flex-direction: column; gap: 5px; }
.st-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.st-input {
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--font); font-size: 14px; font-weight: 500;
  background: var(--surface); color: var(--text);
  transition: border-color .18s, box-shadow .18s; resize: none;
}
.st-input::placeholder { color: var(--light); }
.st-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(204,0,0,.16); }
.st-radios { display: flex; gap: 20px; }
.st-radio { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
.st-radio input { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }
.st-co-foot { padding: 10px 24px 20px; border-top: 1px solid var(--border-soft); }

/* ── FOOT STEP SECTIONS ──────────────────────────────────────────── */
.st-co-foot-section { display: flex; flex-direction: column; gap: 10px; }
/* Microcopy de confianza antes de pagar */
.st-co-trust-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.45;
  padding: 8px 12px; margin: 0;
  background: rgba(90,158,111,.06);
  border: 1px solid rgba(90,158,111,.16);
  border-radius: var(--r-sm);
}
.st-co-trust-note i { color: var(--success); font-size: 13px; flex-shrink: 0; }
.st-co-foot-section .st-co-disclaimer { margin-top: 0; }
.st-co-foot-section .st-co-divider { margin: 0; }

/* ── CHECKOUT CONTINUE BUTTON ────────────────────────────────────── */
.st-btn-continue {
  width: 100%; background: var(--brown); color: var(--cream); border: none;
  border-radius: var(--pill); padding: 15px 20px;
  font-size: 15px; font-weight: 800; font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .15s, transform .12s; box-shadow: var(--shadow);
  letter-spacing: .01em;
}
.st-btn-continue:hover { background: var(--brown-dark); }
.st-btn-continue .bi { font-size: 15px; }

/* ── CHECKOUT BACK STEP BUTTON ───────────────────────────────────── */
.st-btn-back-step {
  width: 100%; background: none; color: var(--muted); border: none;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px; transition: color .15s; border-radius: var(--r-xs);
}
.st-btn-back-step:hover { color: var(--brown); }

.st-btn-wa {
  width: 100%; background: #25D366; color: #ffffff; border: none;
  border-radius: var(--pill); padding: 15px; font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font);
  transition: background .15s, transform .12s; box-shadow: 0 2px 8px rgba(37,211,102,.3); letter-spacing: .01em;
}
.st-btn-wa:hover { background: #20b858; }
.st-co-disclaimer { font-size: 11px; color: var(--brown-soft); text-align: center; line-height: 1.5; margin-top: 10px; margin-bottom: 0; }

/* ── NEWSLETTER ──────────────────────────────────────────────────── */
.st-newsletter {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 52px 20px;
}
.st-newsletter-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px;
}
.st-newsletter-title {
  font-family: Georgia, serif; font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400; color: var(--brown-dark); margin: 0 0 6px;
}
.st-newsletter-sub {
  font-size: 14px; color: var(--muted); margin: 0;
}
.st-newsletter-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 9px;
  background: #25D366; color: #ffffff;
  padding: 13px 24px; border-radius: var(--pill);
  font-family: var(--font); font-size: 14px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 2px 12px rgba(37,211,102,.35);
}
.st-newsletter-btn:hover {
  background: #1ebe5d; color: #ffffff;
  transform: translateY(-2px); box-shadow: 0 4px 20px rgba(37,211,102,.45);
}
.st-newsletter-btn:active { transform: scale(.97); }
.st-newsletter-btn .bi { font-size: 18px; }
.st-newsletter-actions {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.st-newsletter-form {
  display: flex; gap: 8px; flex-wrap: nowrap;
}
.st-newsletter-input {
  width: 230px; max-width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--pill);
  font-family: var(--font); font-size: 14px;
  background: #ffffff; color: var(--brown-dark);
  outline: none; transition: border-color .15s;
}
.st-newsletter-input:focus { border-color: var(--brown); }
.st-newsletter-btn-email {
  background: var(--brown-dark); border: none; cursor: pointer;
}
.st-newsletter-btn-email:hover {
  background: var(--brown);
  box-shadow: 0 4px 20px rgba(26,26,26,.35);
}
.st-newsletter-msg {
  font-size: 13px; color: var(--brown-dark); font-weight: 600;
  margin: 0; display: none;
}
.st-newsletter-msg.is-error { color: #b3261e; }
.st-newsletter-wa-alt {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: #1ebe5d;
  text-decoration: none;
  padding: 6px 14px;
  border: 1.5px solid rgba(30,190,93,.35);
  border-radius: var(--pill);
  background: rgba(30,190,93,.08);
  transition: background .15s, border-color .15s, color .15s;
}
.st-newsletter-wa-alt .bi { font-size: 13px; }
.st-newsletter-wa-alt:hover {
  color: #128c43; text-decoration: none;
  background: rgba(30,190,93,.14); border-color: rgba(30,190,93,.5);
}
@media (max-width: 640px) {
  .st-newsletter-inner { flex-direction: column; text-align: center; }
  .st-newsletter { padding: 40px 20px; }
  .st-newsletter-actions { align-items: center; width: 100%; }
  .st-newsletter-form { width: 100%; justify-content: center; }
  .st-newsletter-input { flex: 1; min-width: 0; }
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.st-footer {
  background: linear-gradient(160deg, var(--brown-dark) 0%, var(--brown) 100%);
  color: var(--cream); padding: 48px 20px 24px;
}
.st-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px;
}
@media (min-width: 640px)  { .st-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .st-footer-inner { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 1100px) { .st-footer-inner { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.st-footer-col { display: flex; flex-direction: column; gap: 14px; }
.st-footer-col-title {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(244,244,245,.55); margin: 0;
}
.st-footer-links { display: flex; flex-direction: column; gap: 12px; }
.st-footer-info { font-size: 12px; color: rgba(244,244,245,.55); line-height: 1.6; margin: 0; }
.st-footer-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 9px;
}
.st-footer-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(244,244,245,.8); font-weight: 600; line-height: 1.4;
}
.st-footer-list .bi { font-size: 14px; color: var(--gold); flex-shrink: 0; }
.st-footer-list strong { color: var(--cream); }

.st-footer-brand { display: flex; align-items: center; gap: 14px; }
.st-footer-logo { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: contain; background: var(--cream); flex-shrink: 0; }
.st-footer-name { font-family: Georgia, serif; font-size: 17px; font-weight: 700; color: var(--cream); letter-spacing: .04em; }
.st-footer-tagline { font-size: 11px; color: rgba(244,244,245,.55); margin-top: 3px; }
.st-footer-wa-link { display: flex; align-items: center; gap: 12px; color: var(--cream); transition: opacity .15s; }
.st-footer-wa-link:hover { opacity: .8; color: var(--cream); }
.st-footer-wa-link .bi { font-size: 20px; color: #6ee49a; flex-shrink: 0; }
.st-footer-wa-label { font-size: 10px; color: rgba(244,244,245,.55); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.st-footer-wa-num { font-size: 14px; font-weight: 700; }
.st-footer-copy { max-width: 1200px; margin: 0 auto; font-size: 11px; color: rgba(244,244,245,.50); border-top: 1px solid rgba(244,244,245,.1); padding-top: 20px; text-align: center; line-height: 2; }
.st-footer-legal-link { color: rgba(244,244,245,.45); text-decoration: underline; text-underline-offset: 2px; transition: color .15s; }
.st-footer-legal-link:hover { color: rgba(244,244,245,.8); }
.st-footer-legal-sep { margin: 0 4px; }
.st-footer-ig-link .bi { color: var(--cream) !important; }
.st-footer-cuit { font-size: 11px; color: rgba(244,244,245,.45); margin: 0; }
.st-footer-hours {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(244,244,245,.8); font-weight: 600;
  margin: 10px 0 0;
}
.st-footer-hours .bi { color: var(--cream); }

/* ── MERCADO PAGO BUTTON ─────────────────────────────────────────── */
.st-btn-mp {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 14px 20px;
  background: #009ee3; color: #ffffff;
  border: none; border-radius: var(--pill);
  font-family: var(--font); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s, opacity .15s;
}
.st-btn-mp:hover:not(:disabled) { background: #007bbf; }
.st-btn-mp:disabled { opacity: .65; cursor: not-allowed; }
.st-btn-mp .bi { font-size: 17px; }

/* ── GOCUOTAS BUTTON ─────────────────────────────────────────────── */
.st-btn-gocuotas {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 14px 20px; margin-top: 10px;
  background: #6c3ce0; color: #ffffff;
  border: none; border-radius: var(--pill);
  font-family: var(--font); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s, opacity .15s;
}
.st-btn-gocuotas:hover:not(:disabled) { background: #5a2fc2; }
.st-btn-gocuotas:disabled { opacity: .65; cursor: not-allowed; }
.st-btn-gocuotas .bi { font-size: 17px; }
.st-co-gc-note {
  font-size: 11px; color: var(--muted); margin: 3px 0 0;
  text-align: center; line-height: 1.4;
}
.st-gc-disclaimer { font-size: 10px; color: var(--light); }
.st-co-pay-note {
  font-size: 11px; color: var(--muted); margin: 3px 0 6px;
  text-align: center; line-height: 1.4;
}

/* ── PAYMENT METHOD CARDS ────────────────────────────────────────── */
.st-co-pay-lbl {
  font-size: 10px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
  margin: 4px 0 0;
}
.st-pay-cards { display: flex; flex-direction: column; gap: 10px; }
.st-pay-card {
  background: var(--surface);
  border: 1px solid var(--gold-border);
  border-left-width: 3px;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 5px;
}
.st-pay-card-head {
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.st-pay-card-amount {
  font-size: 20px; font-weight: 800; color: var(--brown-dark);
  line-height: 1.15; letter-spacing: -.01em;
}
.st-pay-card-note { font-size: 11px; color: var(--muted); line-height: 1.4; margin-bottom: 4px; }
.st-pay-card--wa { border-left-color: #25D366; }
.st-pay-card--mp { border-left-color: #009ee3; }
.st-pay-card--gc { border-left-color: #6c3ce0; }

/* ── CHECKOUT DIVIDER ────────────────────────────────────────────── */
.st-co-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 12px; font-weight: 600;
  margin: 2px 0;
}
.st-co-divider::before,
.st-co-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--gold-border);
}

/* ── MP LOADING SPINNER (inline) ─────────────────────────────────── */
.st-spinner-sm {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}

/* ── PAYMENT RESULT BANNER ───────────────────────────────────────── */
.st-payment-banner {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  z-index: 1090;
  display: flex; align-items: center; gap: 12px;
  max-width: 520px; width: calc(100% - 32px);
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  animation: slideDown .3s ease;
}
.st-payment-banner .bi { font-size: 20px; flex-shrink: 0; }
.st-payment-banner span { flex: 1; }
.st-payment-close {
  background: none; border: none; cursor: pointer;
  opacity: .6; transition: opacity .15s; padding: 0; line-height: 1;
  flex-shrink: 0;
}
.st-payment-close:hover { opacity: 1; }
.st-payment-banner.success { background: var(--success-soft); color: var(--success); border: 1px solid #b6dfbf; }
.st-payment-banner.pending { background: #fff8e6; color: #8a6200; border: 1px solid #e98181; }
.st-payment-banner.failure { background: var(--danger-soft); color: var(--danger); border: 1px solid #f1c0bb; }

@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── CART HINTS ──────────────────────────────────────────────────── */
.st-cart-hints {
  display: flex; flex-direction: column; gap: 8px;
  margin: 0 0 12px;
}
.st-hint-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 8px 12px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--pill);
  transition: background .15s, border-color .15s, color .15s;
}
.st-hint-row.good { color: var(--success); background: var(--success-soft); border-color: #b6dfbf; }
.st-hint-row .bi  { font-size: 13px; flex-shrink: 0; }

/* ── CHECKOUT PRICING TABLE ──────────────────────────────────────── */
.st-co-pricing {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 14px;
}
.st-pr-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px;
  font-size: 13px; color: var(--text);
  border-bottom: 1px solid var(--gold-border);
}
.st-pr-row:last-child { border-bottom: none; }
.st-pr-row em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 4px; }
.st-pr-row .bi { font-size: 13px; color: var(--muted); }
.st-pr-value-stack { display: flex; flex-direction: column; align-items: flex-end; }
.st-pr-value-stack .st-tax-price { text-align: right; }
.st-pr-discount { color: var(--muted); font-size: 12px; }
.st-pr-minus    { color: var(--success); font-weight: 700; }
.st-pr-cash     { font-weight: 700; background: rgba(204,0,0,.08); }
.st-pr-shipping { font-size: 12px; color: var(--muted); }
.st-pr-free     { color: var(--success); font-weight: 700; }
.st-pr-sep      { height: 1px; background: var(--gold-border); }
.st-pr-lista    { font-size: 12px; color: var(--muted); }
.st-pr-savings  { background: rgba(34,197,94,.05); }
.st-pr-savings-val { color: var(--success); font-weight: 700; }

/* ── CHECKOUT RECAP (products + pricing, bottom of foot) ─────────── */
.st-co-recap { display: flex; flex-direction: column; gap: 0; margin-bottom: 6px; }

/* ── CHECKOUT PASO 3: CONFIRMACIÓN ───────────────────────────────── */
.st-co-done { text-align: center; padding: 20px 8px 8px; }
.st-co-done-icon { font-size: 46px; color: var(--success); margin-bottom: 12px; line-height: 1; }
.st-co-done-title { font-size: 18px; font-weight: 800; color: var(--text); margin: 0 0 6px; letter-spacing: -.01em; }
.st-co-done-order { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.st-co-done-order strong { color: var(--brown); }
.st-co-done-text { font-size: 13.5px; color: var(--text); line-height: 1.6; margin: 0; max-width: 380px; margin-left: auto; margin-right: auto; }
.st-co-done-text strong { color: var(--brown-dark); }

/* ── CHECKOUT SUMMARY — EDITORIAL LAYOUT ────────────────────────── */
.st-rs-head {
  display: flex; flex-direction: column; gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.st-rs-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
}
.st-rs-meta { font-size: 13px; color: var(--text); font-weight: 500; }

.st-rs-items {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.st-rli {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; font-size: 13px; color: var(--text);
}
.st-rli-name { flex: 1; font-weight: 500; line-height: 1.35; }
.st-rli-name em { font-style: normal; font-size: 11px; color: var(--muted); }

/* ── Método de envío (Paso 2 del checkout) ─────────────────────────── */
.st-rs-envio {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.st-rs-envio-title { font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 3px; }
.st-rs-envio-sub { font-size: 12px; color: var(--muted); margin: 0; }
.st-rs-envio-opts {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 6px;
}
.st-rs-envio-opt {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text); cursor: pointer;
}
.st-rs-envio-opt input { accent-color: var(--gold-dark); width: 16px; height: 16px; }
.st-rs-sucursal-wrap {
  margin-top: 10px; padding: 10px 12px;
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  border-radius: var(--r-sm); display: flex; flex-direction: column; gap: 8px;
}
.st-rs-sucursal-link {
  font-size: 12.5px; font-weight: 700; color: var(--gold-dark);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.st-rs-sucursal-link:hover { text-decoration: underline; }

.st-rs-pilar-wrap {
  margin-top: 10px; padding: 10px 12px; background: var(--gold-bg);
  border: 1px solid var(--gold-border); border-radius: var(--r-sm);
}
.st-rs-ca-row { display: flex; gap: 8px; margin-top: 8px; }
.st-rs-ca-row select { flex: 1; min-width: 0; }
.st-rs-ca-sucursales {
  display: flex; flex-direction: column; gap: 6px; margin-top: 8px;
  max-height: 220px; overflow-y: auto;
}
.st-rs-ca-loading { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.st-rs-ca-opt {
  display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text);
  cursor: pointer; padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: var(--r-sm);
  background: var(--surface);
}
.st-rs-ca-opt:has(input:checked) { border-color: var(--gold-dark); background: var(--gold-bg); }
.st-rs-ca-opt input { accent-color: var(--gold-dark); width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.st-rs-ca-horario { color: var(--muted); }

.st-rli-price { font-weight: 700; white-space: nowrap; }

.st-rs-totals {
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--border-soft);
}
.st-rs-main-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.st-rs-main-lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.st-rs-main-val {
  font-size: 24px; font-weight: 800; color: var(--brown-dark);
  letter-spacing: -.02em; line-height: 1;
}

.st-rs-pay { padding-top: 14px; display: flex; flex-direction: column; gap: 0; }
.st-rs-pay-lbl {
  font-size: 10px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px;
}
.st-rs-pay .st-btn-wa,
.st-rs-pay .st-btn-mp       { margin-top: 0; }
.st-rs-pay .st-btn-mp       { margin-top: 14px; }
.st-rs-pay .st-btn-gocuotas { margin-top: 14px; }
.st-rs-pay .st-co-pay-note  { text-align: center; margin: 4px 0 0; }
.st-rs-pay .st-co-gc-note   { text-align: center; margin: 4px 0 0; font-size: 10px; }
.st-co-pay-chip {
  display: inline-block; vertical-align: baseline;
  font-size: 10px; font-weight: 800; color: var(--gold-dark);
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  border-radius: var(--pill); padding: 1px 7px; margin-left: 3px;
  white-space: nowrap;
}
.st-rs-trust {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  margin: 16px 0 0; padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.st-rs-trust .bi { color: var(--success); font-size: 13px; }
.st-recap-products {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-sm); overflow: hidden;
}
.st-recap-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--brown);
  cursor: pointer; list-style: none; user-select: none;
}
.st-recap-toggle::-webkit-details-marker { display: none; }
.st-recap-toggle .bi-bag { color: var(--gold); margin-right: 2px; }
.st-recap-chevron { color: var(--muted); font-size: 12px; transition: transform .2s; flex-shrink: 0; }
details[open] .st-recap-chevron { transform: rotate(180deg); }
.st-recap-items { padding: 2px 14px 12px; display: flex; flex-direction: column; gap: 4px; }

/* ── CHECKOUT FORM — SECTIONS & GRID ────────────────────────────── */
.st-form-section-title {
  font-size: 11px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--gold-border);
  padding-bottom: 6px; margin: 8px 0 -4px;
}
.st-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.st-form-row--street {
  grid-template-columns: 3fr 1fr;
}
.st-form-row > .st-field { min-width: 0; }
.st-optional {
  font-weight: 400; color: var(--muted); font-size: 11px;
}
.st-field--half {
  max-width: calc(50% - 6px);
}
@media (max-width: 400px) {
  .st-form-row, .st-form-row--street { grid-template-columns: 1fr; }
  .st-field--half { max-width: 100%; }
}
.st-select { appearance: auto; cursor: pointer; }
.st-billing-fields {
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px 16px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
}

/* ── TOAST ────────────────────────────────────────────────────────── */
.st-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--brown-dark); color: var(--cream);
  padding: 12px 22px; border-radius: var(--pill);
  font-size: 13px; font-weight: 700; z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  white-space: nowrap; box-shadow: var(--shadow-lg);
}
.st-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── PHOTO ZOOM LIGHTBOX ─────────────────────────────────────────── */
.st-zoom-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0, .93);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  outline: none;
}
.st-zoom-overlay.open { opacity: 1; pointer-events: auto; }
.st-zoom-inner {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: calc(100vh - 80px);
  display: flex; align-items: center; justify-content: center;
}
.st-zoom-img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 20px 80px rgba(0,0,0,.55);
  display: block;
  user-select: none;
}
/* El overlay es position:fixed inset:0 — los hijos con position:absolute
   se posicionan relativo a él, que equivale a la pantalla completa.
   Evitamos position:fixed en hijos porque backdrop-filter en el padre
   crea un containing block que rompe fixed de forma inconsistente. */
.st-zoom-close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  color: #ffffff; border-radius: 50%;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: pointer;
  transition: background .15s, transform .12s;
  z-index: 3;
}
.st-zoom-close:hover { background: rgba(255,255,255,.32); transform: scale(1.08); }
.st-zoom-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #ffffff; border-radius: 50%;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer;
  transition: background .15s, transform .12s;
  z-index: 3;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.st-zoom-nav:hover { background: rgba(255,255,255,.32); transform: translateY(-50%) scale(1.08); }
.st-zoom-prev { left: 16px; }
.st-zoom-next { right: 16px; }
.st-zoom-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.65); font-size: 13px; font-weight: 700;
  pointer-events: none; letter-spacing: .06em;
  background: rgba(0,0,0,.3); padding: 4px 12px; border-radius: var(--pill);
}
@media (max-width: 480px) {
  .st-zoom-nav { width: 44px; height: 44px; font-size: 17px; }
  .st-zoom-prev { left: 8px; }
  .st-zoom-next { right: 8px; }
  .st-zoom-close { width: 42px; height: 42px; font-size: 15px; top: 10px; right: 10px; }
}

/* ── MOBILE ───────────────────────────────────────────────────────── */
@media (max-width: 400px) {
  .st-main { padding: 24px 14px 60px; }
  .st-card-price, .st-card-price-list { font-size: 14px; }
  .st-btn-add-card { font-size: 11px; padding: 8px; }
  .st-toast { left: 12px; right: 12px; transform: translateY(8px); white-space: normal; text-align: center; }
  .st-toast.show { transform: translateY(0); }
  .st-co-body { padding: 16px 18px; }
  .st-co-head, .st-co-foot { padding-left: 18px; padding-right: 18px; }
}

/* ── Material section in product modal ───────────────────────────────────────── */
.st-modal-material { margin-top: 2px; }
/* Desktop: aire fijo arriba (antes era margin-top:auto, que colapsaba a 0
   cuando el body ya llenaba el alto de la fila, dejando "Materiales" pegado
   a la descripción de arriba). */
@media (min-width: 960px) { .st-modal-material { margin-top: 6px; } }

/* Mini-card compacta horizontal */
.st-material-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  transition: border-color .18s;
}
@media (min-width: 600px) { .st-material-card { padding: 5px 12px; } }
.st-material-card:hover { border-color: var(--gold); }

/* Eyebrow + nombre del material (columna, lado izquierdo) */
.st-material-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.st-material-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1;
}
.st-material-value {
  font-size: 12px;
  font-weight: 800;
  color: var(--brown);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botón compacto (lado derecho), claramente tocable */
.st-material-care {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.75);
  border: 1.5px solid var(--gold-border);
  border-radius: 8px;
  padding: 5px 10px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  color: var(--brown-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s, transform .12s;
  min-height: 30px;
}
.st-material-care:hover {
  border-color: var(--gold);
  color: var(--brown);
  background: rgba(255,255,255,.96);
}
.st-material-care:active { transform: scale(.97); }
.st-material-care-arrow {
  font-size: 12px;
  color: var(--gold-dark);
  transition: transform .14s;
  display: inline-block;
}
.st-material-care:hover .st-material-care-arrow { transform: translateX(2px); }

/* ── Multi-material layout ──────────────────────────────────────────────────── */
/* Variante vertical: label arriba, pills abajo */
.st-material-card--multi {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.st-material-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* Cada pill individual de material */
.st-material-pill {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid rgba(204,0,0,.38);
  background: rgba(255,252,244,.82);
  color: var(--brown);
  border-radius: var(--pill);
  padding: 6px 12px;
  font-family: var(--font);
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  transition: border-color .14s, background .14s;
  min-height: 32px;
}
.st-material-pill::after { content: '›'; font-size: 13px; opacity: .6; margin-left: 2px; }
.st-material-pill:hover { border-color: rgba(204,0,0,.7); background: rgba(255,248,233,.96); }
.st-material-pill:active { transform: scale(.97); }

/* ── Material info modal ─────────────────────────────────────────────────────── */
/*
 * z-index stack:
 *   Bootstrap product modal  → 1055
 *   Bootstrap backdrop       → 1050
 *   Payment banner           → 1090
 *   Material modal overlay   → 1500  ← safely above all
 *   Photo zoom               → 2000
 */
.st-mat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1500;
  display: flex;
  align-items: center;       /* centrado siempre — no más bottom sheet */
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.st-mat-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Panel centrado — misma forma en mobile y desktop */
.st-mat-panel {
  background: var(--surface, #ffffff);
  width: min(440px, calc(100vw - 32px));
  border-radius: 22px;
  padding: 24px 22px 28px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  transform: scale(.95) translateY(10px);
  transition: transform .25s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.12);
}
.st-mat-overlay.open .st-mat-panel {
  transform: scale(1) translateY(0);
}

/* Desktop: más padding */
@media (min-width: 600px) {
  .st-mat-overlay { padding: 24px; }
  .st-mat-panel {
    padding: 32px 32px 36px;
    max-height: min(80vh, calc(100dvh - 80px));
  }
}

.st-mat-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--border-soft, #e9e9e9);
  color: var(--muted, #888888);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.st-mat-close:hover { background: var(--border, #cfcfcf); color: var(--text); }
.st-mat-eyebrow {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted, #999999);
  margin: 0 0 6px;
}
.st-mat-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0 40px 16px 0;
  line-height: 1.15;
}
.mat-modal-desc {
  font-size: 13.5px;
  color: var(--text-secondary, #555555);
  line-height: 1.7;
  margin: 0 0 20px;
}
.mat-modal-section {
  margin-top: 18px;
}
.mat-modal-section-title {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted, #999999);
  margin: 0 0 10px;
}
.mat-modal-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mat-modal-list li {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 7px;
  padding-left: 20px;
  position: relative;
}
.mat-modal-list li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: var(--brown, #4d4d4d);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
}
.st-mat-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft, #e9e9e9);
}
.st-mat-btn-close {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: var(--brown, #4d4d4d);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s;
}
.st-mat-btn-close:hover { background: var(--brown-dark, #1a1a1a); }

/* ── MOBILE: product modal compact ──────────────────────────────────────────── */
@media (max-width: 599px) {
  /* Contenedor 4/5 + tope de alto (ver !important arriba, ~línea 2384, que
     es el que realmente manda) — repetido aquí sin !important solo por si
     ese bloque se limpia en el futuro, para no volver a quedar sin ratio. */
  .st-modal-photo-wrap {
    aspect-ratio: 4 / 5;
    max-height: 380px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
  }
  /* Imagen cover: llena el recuadro sin franjas, recortando el sobrante */
  .st-modal-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  /* Tighter thumbnails */
  .st-modal-thumbs { padding: 4px 10px; gap: 3px; }
  .st-thumb        { width: 38px; height: 38px; }

  /* Compact body — gap más chico y cards más finas para que el modal, con
     una foto de nuevo grande (300px), no quede larguísimo. El scroll del
     modal entero (.st-modal-content, ver arriba) queda como red de
     seguridad para productos con descripción muy larga. */
  .st-modal-body  { padding: 12px 18px; gap: 6px; }
  .st-modal-name  { font-size: 17px; }
  .st-modal-price, .st-modal-price-list { font-size: 21px; }
  .st-modal-pay-info { margin-top: 6px; padding: 6px 0; gap: 4px; }
  .st-modal-trust { padding-top: 6px; gap: 4px 14px; }
  .st-modal-desc  { padding-top: 6px; }
  .st-modal-desc-text { line-height: 1.45; }
  .st-material-card, .st-material-card--multi { padding: 8px 10px; }

  /* Orden explícito: cantidad+agregar aparece antes que desc y material.
     Todos los hijos directos de .st-modal-body necesitan order explícito —
     los que no lo tienen caen en el default (order:0) y se van al principio
     del flex, adelante de .st-modal-cat/.st-modal-name/.st-modal-price. */
  .st-modal-cat        { order: 1; }
  .st-modal-name       { order: 2; }
  /* .st-modal-price ahora vive DENTRO de .st-modal-price-row (ver index.html)
     — el order va en el contenedor, no en el span; si quedaba en el span
     interfería con el propio flex de la fila (precio efectivo/lista) y los
     invertía en mobile. */
  .st-modal-price-row  { order: 3; }
  .st-tax-price        { order: 4; }
  .st-modal-pay-info   { order: 5; }
  /* .st-modal-trust ahora vive DENTRO de .st-modal-pay-info (ver index.html),
     ya no es hijo directo de .st-modal-body — el order de acá no le aplica. */
  #modal-variants-section { order: 6; }
  .st-modal-stock-wrap { order: 8; }
  .st-modal-actions    { order: 9; margin-top: 0; }
  .st-modal-share      { order: 10; }
  .st-modal-desc       { order: 11; padding-top: 6px; }
  .st-modal-material   { order: 12; border-top: none; padding-top: 0; margin-top: 0; }

  /* Material multi-pill: más compacto en mobile.
     Con 3 pills ("Madera de bamboo", "Vidrio", "Cerámica") ocupa demasiado alto. */
  .st-material-card--multi { gap: 5px; }
  .st-material-pills        { gap: 4px; }
  .st-material-pill {
    font-size: 11px;
    padding: 4px 9px;
    min-height: 26px;
  }
  /* Descripción expandida: sin scroll propio, sin overflow interno.
     iOS Safari: display: block fuerza salida del -webkit-box para que
     la descripción crezca normalmente dentro del scroll general del modal. */
  .st-modal-desc { overflow: visible; }
  .st-modal-body { overflow: visible; }
  .st-modal-desc-text:not(.is-collapsed) {
    display: block;
    overflow: visible;
    max-height: none;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
  }

  /* Related section: padding-bottom generoso para que iOS cuente el contenido
     del carrusel en el scrollHeight y permita scrollear hasta las cards */
  #st-related-section.st-related-section {
    padding: 10px 14px 20px;
    overflow: visible !important;
    max-height: none !important;
    display: block;
  }
  /* Carrusel: overflow-x para scroll horizontal de cards,
     overflow-y visible para que no corte la altura del contenedor padre */
  .st-related-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── MOBILE HAMBURGER MENU ───────────────────────────────────────────────────── */
/*
 * z-index stack:
 *   Header                  → 1000
 *   Bootstrap offcanvas     → 1045
 *   Bootstrap modal         → 1055
 *   Mobile menu overlay     → 1060  ← sobre offcanvas, bajo modal
 *   Mobile menu panel       → 1065
 *   Material modal          → 1500
 *   Photo zoom              → 2000
 */

/* Overlay: oculto en desktop, gestionado por JS en mobile */
.st-mmenu-overlay { display: none; }
.st-mmenu         { display: none; }

@media (max-width: 767px) {
  /* Backdrop oscuro */
  .st-mmenu-overlay {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1060;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .st-mmenu-overlay.open { opacity: 1; pointer-events: auto; }

  /* Drawer lateral desde la derecha */
  .st-mmenu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 85vw);
    z-index: 1065;
    background: var(--bg);
    border-left: 1px solid var(--border-soft);
    box-shadow: -4px 0 32px rgba(0,0,0,.18);
    transform: translateX(105%);
    transition: transform .28s cubic-bezier(.2,.7,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .st-mmenu.open { transform: translateX(0); }

  /* Header del menú */
  .st-mmenu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--brown);
    flex-shrink: 0;
  }
  .st-mmenu-brand {
    font-family: Georgia, serif;
    font-size: 14px; font-weight: 700;
    color: var(--cream);
    letter-spacing: .06em;
  }
  .st-mmenu-close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(244,244,245,.15);
    border: 1.5px solid rgba(244,244,245,.3);
    border-radius: var(--r-sm);
    color: var(--cream);
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
  }
  .st-mmenu-close:hover { background: rgba(244,244,245,.28); }

  /* Cuerpo del menú */
  .st-mmenu-body {
    flex: 1;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
  }

  /* Ítem de menú */
  .st-mmenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 20px;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: background .12s, color .12s;
    -webkit-tap-highlight-color: transparent;
  }
  .st-mmenu-item:hover,
  .st-mmenu-item:active { background: var(--bg-soft); color: var(--brown); }
  .st-mmenu-item .bi { font-size: 16px; color: var(--muted); flex-shrink: 0; }
  .st-mmenu-item:hover .bi { color: var(--gold); }

  /* Sub-ítem (categorías) */
  .st-mmenu-item--sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    padding: 10px 20px 10px 28px;
  }
  .st-mmenu-item--sub .bi { font-size: 12px; }

  .st-mmenu-cat { border-bottom: 1px solid var(--border-soft); }
  .st-mmenu-cat-toggle {
    justify-content: space-between;
    color: var(--brown);
  }
  .st-mmenu-cat-toggle span { flex: 1; }
  .st-mmenu-cat-toggle .bi { transition: transform .16s ease; }
  .st-mmenu-cat.open .st-mmenu-cat-toggle .bi { transform: rotate(180deg); }
  .st-mmenu-sublist {
    display: none;
    padding: 0 0 10px;
    background: rgba(255,253,248,.62);
  }
  .st-mmenu-cat.open .st-mmenu-sublist { display: block; }
  .st-mmenu-subitem {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 9px 22px 9px 42px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
    text-align: left;
  }
  .st-mmenu-subitem:hover,
  .st-mmenu-subitem:active,
  .st-mmenu-subitem.is-active {
    background: var(--gold-bg);
    color: var(--brown);
  }
  .st-mmenu-subitem--all {
    color: var(--gold-dark);
    font-weight: 800;
  }

  /* Badge del carrito dentro del menú */
  .st-mmenu-badge {
    margin-left: auto;
    background: var(--gold);
    color: #ffffff;
    font-size: 10px; font-weight: 800;
    min-width: 18px; height: 18px;
    border-radius: var(--pill);
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 4px;
  }

  /* Separador */
  .st-mmenu-divider {
    height: 1px;
    background: var(--border-soft);
    margin: 4px 0;
  }

  /* Label de sección */
  .st-mmenu-sec-label {
    padding: 8px 20px 4px;
    font-size: 9px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--muted);
  }
}

/* ══════════════════════════════════════════════════════════════════
   MIURA ACCESORIOS — Phase 3F: Microinteracciones premium
   Solo transform + opacity. Sin layout shifts. Sin librerías.
   ══════════════════════════════════════════════════════════════════ */

/* ── Extender transitions para incluir transform ─────────────────── */
.st-btn-add-card    { transition: background .15s, transform .18s var(--ease), box-shadow .18s; }
.st-btn-add-full    { transition: background .16s, transform .18s var(--ease), box-shadow .18s; }
.st-btn-mp          { transition: background .15s, opacity .15s, transform .18s var(--ease); }
.st-btn-outline     { transition: border-color .15s, background .15s, color .15s, transform .15s var(--ease); }
.st-close-btn       { transition: background .15s, color .15s, transform .12s; }
.st-account-close   { transition: background .14s, transform .12s; }
.st-qty-btn-sm      { transition: background .12s, transform .1s; }
.st-qty-btn         { transition: background .15s, transform .1s; }
.st-snav-filter-clear { transition: color .15s, border-color .15s, background .15s, transform .13s; }
.st-cart-item       { transition: border-color .18s, box-shadow .18s; }
.st-snav-item       { transition: color .15s, border-bottom-color .15s, opacity .08s; }

/* ── Hover lift — solo dispositivos con puntero real ────────────── */
@media (hover: hover) and (pointer: fine) {
  .st-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .st-card:hover .st-card-photo { transform: scale(1.05); }
  .st-btn-add-card:hover:not(.disabled):not(.in-cart) {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0,0,0,.20);
  }
  .st-btn-add-full:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0,0,0,.20);
  }
  .st-btn-mp:hover:not(:disabled) { transform: translateY(-1px); }
  .st-btn-checkout:hover,
  .st-btn-continue:hover,
  .st-btn-wa:hover { transform: translateY(-1px); }
  .st-hero-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .st-hero-cta:hover .bi { transform: translateY(3px); }
}

/* ── Active / press — todos los CTAs principales ─────────────────── */
.st-btn-add-card:active:not(.disabled),
.st-btn-add-full:active:not(:disabled),
.st-btn-checkout:active,
.st-btn-continue:active,
.st-btn-wa:active,
.st-hero-cta:active {
  transform: scale(.96) !important;
  transition: transform 90ms var(--ease-press) !important;
}
.st-btn-mp:active:not(:disabled),
.st-btn-gocuotas:active:not(:disabled) {
  transform: scale(.96) !important;
  transition: transform 90ms var(--ease-press) !important;
}

/* ── Outline & close buttons — active sink ───────────────────────── */
.st-btn-outline:active            { transform: scale(.97); }
.st-close-btn:active              { transform: scale(.88); }
.st-account-close:active          { transform: scale(.88); }

/* ── Carrito — hover sutil en ítem ──────────────────────────────── */
.st-cart-item:hover { border-color: var(--border); box-shadow: var(--shadow); }

/* ── Cantidad — active press ─────────────────────────────────────── */
.st-qty-btn-sm:active:not(:disabled) { transform: scale(.92); }
.st-qty-btn:active:not(:disabled)    { transform: scale(.90); }

/* ── Filter clear — active tap ───────────────────────────────────── */
.st-snav-filter-clear:active { transform: scale(.96); }

/* ── Nav items — feedback táctil ─────────────────────────────────── */
.st-snav-item:active { opacity: .7; }

/* ── Card — active tap (solo dispositivos con hover real) ────────── */
@media (hover: hover) {
  .st-card:active {
    transform: translateY(-1px) scale(.99);
    transition-duration: 80ms;
  }
}

/* ── prefers-reduced-motion: desactivar todas las animaciones ────── */
@media (prefers-reduced-motion: reduce) {
  .st-card,
  .st-card-photo,
  .st-btn-add-card,
  .st-btn-add-full,
  .st-btn-checkout,
  .st-btn-continue,
  .st-btn-wa,
  .st-btn-mp,
  .st-hero-cta,
  .st-btn-outline,
  .st-close-btn,
  .st-account-close,
  .st-qty-btn-sm,
  .st-qty-btn,
  .st-snav-filter-clear,
  .st-cart-item,
  .st-snav-item {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .st-card:hover,
  .st-card:active,
  .st-card:hover .st-card-photo,
  .st-btn-add-card:hover:not(.disabled):not(.in-cart),
  .st-btn-add-full:hover:not(:disabled),
  .st-btn-mp:hover:not(:disabled),
  .st-btn-checkout:hover,
  .st-btn-continue:hover,
  .st-btn-wa:hover,
  .st-hero-cta:hover {
    transform: none !important;
    box-shadow: unset;
  }
}

/* ── TOPBAR ─────────────────────────────────────────────────────────────────── */
.st-topbar {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: var(--brown-dark, #262626);
  color: rgba(255,255,255,.85);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 7px 16px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
}
.st-topbar i { font-size: 11px; opacity: .9; }
.st-topbar-sep { opacity: .4; }
.st-topbar-wa a { color: rgba(255,255,255,.85); text-decoration: none; white-space: nowrap; }
.st-topbar-wa a:hover { color: #ffffff; text-decoration: underline; }
/* Carrusel: dos grupos idénticos en loop continuo, mismo patrón que
   usaba el marquee de beneficios del hero */
.st-topbar-marquee {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.st-topbar-marquee-track {
  display: flex;
  width: max-content;
  animation: fecaTopbarMarquee 22s linear infinite;
  will-change: transform;
}
.st-topbar-marquee-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}
@keyframes fecaTopbarMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .st-topbar-marquee-track { animation: none; }
  .st-topbar-marquee { overflow-x: auto; scrollbar-width: none; }
  .st-topbar-marquee::-webkit-scrollbar { display: none; }
}
@media (max-width: 599px) {
  :root { --topbar-h: 30px; }
  .st-topbar-wa { display: none; }
  .st-topbar { font-size: 10.5px; padding: 0 12px; gap: 6px; }
}
/* Desktop: hay espacio de sobra — mostrar todo fijo, sin animar ni duplicar */
@media (min-width: 600px) {
  .st-topbar-marquee { flex: 0 1 auto; overflow: visible; }
  .st-topbar-marquee-track { animation: none; transform: none; width: auto; }
  .st-topbar-marquee-group[aria-hidden="true"] { display: none; }
  /* Sin animación, el padding-right del grupo (pensado para empalmar con
     el próximo grupo del loop) sobraba y se sumaba al gap del padre,
     dejando un hueco enorme antes de "Consultas por WhatsApp". El "·"
     de cierre se mantiene — separa igual que el resto. */
  .st-topbar-marquee-group { padding-right: 0; }
}

/* ── FILTROS POR MATERIAL (colapsable) ──────────────────────────────────────── */
.st-material-filters {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px 4px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
/* Botón trigger */
.st-mat-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 99px;
  border: 1px solid var(--border-soft);
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.st-mat-trigger i { font-size: 10px; transition: transform .2s; }
.st-mat-trigger:hover,
.st-mat-trigger.active { background: var(--bg-soft); border-color: var(--border); color: var(--brown); }
.st-mat-trigger.active { border-color: var(--brown); }
/* Panel de chips — oculto por defecto, visible en hover (desktop) o clase is-open (mobile) */
.st-mat-filter-panel {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 20px;
  z-index: 80;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  flex-wrap: wrap;
  gap: 7px;
  max-width: calc(100vw - 40px);
}
/* Hover solo en dispositivos con mouse real (no aplica en touch) */
@media (hover: hover) {
  .st-material-filters:hover .st-mat-filter-panel { display: flex; }
  .st-material-filters:hover .st-mat-trigger i.bi-chevron-down { transform: rotate(180deg); }
}
/* Toggle por clase (mobile tap + desktop click) */
.st-material-filters.is-open .st-mat-filter-panel { display: flex; }
.st-material-filters.is-open .st-mat-trigger i.bi-chevron-down { transform: rotate(180deg); }
.st-mat-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-soft);
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.st-mat-chip:hover { background: var(--bg-soft); border-color: var(--border); color: var(--brown); }
.st-mat-chip.active { background: var(--brown); border-color: var(--brown); color: #ffffff; }
@media (max-width: 599px) {
  .st-material-filters { padding: 6px 12px 2px; }
  .st-mat-filter-panel { left: 12px; }
}

/* ── BOTÓN FLOTANTE WHATSAPP (mobile) ───────────────────────────────────────── */
.st-wa-float {
  display: none;
  position: fixed;
  bottom: 76px;
  right: 16px;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  z-index: 800;
  box-shadow: 0 4px 16px rgba(37,211,102,.35), 0 2px 6px rgba(0,0,0,.18);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.st-wa-float:hover { transform: scale(1.07); box-shadow: 0 6px 20px rgba(37,211,102,.45); }
@media (max-width: 767px) {
  .st-wa-float { display: flex; }
}

/* ── Menú principal (desktop): las categorías de Miura son más largas que las de Feca.
   Texto más compacto + scroll horizontal oculto si no entra, para que nunca se pisen
   con "Buscar y filtrar". ─────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .st-snav-inner { max-width: 1360px; gap: 10px; }
  .st-snav-scroll {
    overflow-x: auto; overflow-y: hidden;
    justify-content: safe center;
    padding: 0 6px;
  }
  .st-snav-group { flex: 0 0 auto; }
  .st-snav-item {
    font-size: 12.5px; letter-spacing: .05em;
    padding: 0 8px; white-space: nowrap;
  }
  .st-snav-search-desktop { flex: 0 0 auto; white-space: nowrap; }
}
@media (min-width: 768px) and (max-width: 1320px) {
  .st-snav-item { font-size: 12px; padding: 0 7px; letter-spacing: .04em; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .st-snav-item { font-size: 11.5px; padding: 0 8px; letter-spacing: .03em; }
}
