/* ═══════════════════════════════════════════════════════
   POLIRUBRO — TikTok-style Feed
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:    #c9a227;
  --gold2:   #e8c14e;
  --dark:    #0d0d0d;
  --dark2:   #1a1a1a;
  --dark3:   #252525;
  --text:    #f0f0f0;
  --muted:   #888;
  --radius:  14px;
  --header-h-base: 58px;
  --header-h: var(--header-h-base);
  --nav-h:    60px;
  --app-vh: 1vh;

  /* Escala mobile por alto de pantalla */
  --mobile-foto-ratio: 80%;
  --mobile-thumb-size: 40px;
  --mobile-thumb-radius: 8px;
  --mobile-varcard-w: 58px;
  --mobile-varimg-size: 40px;
  --mobile-name-size: 26px;
  --mobile-popup-name-size: 34px;
  --mobile-popup-desc-size: 20px; 
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

.header-hamburger {
  display: none; /* solo mobile */
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer; padding: 0; flex-shrink: 0;
  align-items: center; justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
}
.header-hamburger-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,162,39,.18);
  display: flex; align-items: center;
  padding: 0 16px; gap: 12px;
  z-index: 100;
}
.header-logo {
  font-size: 20px; font-weight: 800; color: var(--gold);
  text-decoration: none; letter-spacing: -.3px; flex-shrink: 0;
}
.header-logo span { color: var(--text); }

.header-search {
  flex: 1; max-width: 480px;
  display: flex; align-items: center;
  background: var(--dark3); border-radius: 30px;
  padding: 0 14px; gap: 8px;
  border: 1px solid transparent;
  transition: border-color .2s;
}
.header-search:focus-within { border-color: var(--gold); }
.header-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 13.5px; height: 38px;
  font-family: inherit;
}
.header-search input::placeholder { color: var(--muted); }
.header-search button {
  background: none; border: none; cursor: pointer;
  color: var(--muted); display: flex; align-items: center;
  transition: color .2s;
}
.header-search button:hover { color: var(--gold); }
/* El × solo existe en mobile (oculto en desktop) */
.search-close-btn { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.btn-header {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 30px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: none; border: none;
  transition: all .18s;
}
.btn-header-outline {
  border: 1px solid rgba(255,255,255,.15);
  color: var(--text); background: transparent;
}
.btn-header-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-header-gold { background: var(--gold); color: #000; }
.btn-header-gold:hover { background: var(--gold2); }

/* Botón lupa del header */
.header-search-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.6); padding: 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: color .2s, background .2s;
  flex-shrink: 0;
}
.header-search-btn:hover { color: var(--gold); background: rgba(201,162,39,.1); }

.cart-btn {
  position: relative;
  background: var(--dark3); border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px; padding: 7px 14px;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text); text-decoration: none;
  transition: border-color .2s;
}
.cart-btn:hover { border-color: var(--gold); }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--gold); color: #000;
  border-radius: 50%; min-width: 18px; height: 18px;
  font-size: 10px; font-weight: 700; padding: 0 3px;
  display: none; align-items: center; justify-content: center;
}
.cart-badge.visible { display: flex; }

/* ── LAYOUT ─────────────────────────────────────────── */
.main-layout {
  display: flex;
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* ── SIDEBAR FILTROS ────────────────────────────────── */
.sidebar-filtros {
  width: 220px; flex-shrink: 0;
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto; overflow-x: hidden;
  padding: 0 0 18px;
  border-right: 1px solid rgba(255,255,255,.06);
  background: rgba(17,17,17,.98);
  scrollbar-width: thin; scrollbar-color: #333 transparent;
  display: flex; flex-direction: column;
}
.sidebar-filtros::-webkit-scrollbar { width: 4px; }
.sidebar-filtros::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* Header del sidebar con título y X */
.sb-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky; top: 0;
  background: rgba(17,17,17,.98); z-index: 2;
}
.sb-title {
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .6px; color: var(--gold);
}
.sb-close {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px; border-radius: 6px;
  display: flex; align-items: center; transition: color .15s;
}
.sb-close:hover { color: var(--text); }

.filtro-seccion { padding: 10px 12px 4px; }

.filtro-titulo {
  font-size: 9px; text-transform: uppercase; letter-spacing: 1.2px;
  color: rgba(201,162,39,.7); font-weight: 800; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 2px;
}
.filtro-titulo::before {
  content: '';
  display: inline-block; width: 3px; height: 12px;
  background: var(--gold); border-radius: 2px; flex-shrink: 0;
}

.filtro-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px;
  cursor: pointer; font-size: 13px; color: rgba(255,255,255,.65);
  transition: all .18s; user-select: none;
  border: 1px solid transparent;
  margin-bottom: 2px;
}
.filtro-item:hover {
  background: rgba(201,162,39,.07);
  border-color: rgba(201,162,39,.15);
  color: rgba(255,255,255,.9);
}
.filtro-item.active {
  background: linear-gradient(135deg, rgba(201,162,39,.2), rgba(201,162,39,.1));
  border-color: rgba(201,162,39,.35);
  color: var(--gold); font-weight: 700;
  box-shadow: 0 2px 10px rgba(201,162,39,.12);
}
.filtro-item .fn { flex:1; min-width:0; }
.filtro-count {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 1px 8px;
  line-height: 1.6;
  flex-shrink: 0;
}
.filtro-item.active .filtro-count {
  color: #000;
  background: var(--gold);
  border-color: var(--gold);
}

/* ── ÁRBOL ACORDEÓN ────────────────────────────────── */
.arbol-nombre { flex: 1; }
.arbol-chevron {
  flex-shrink: 0; color: var(--muted);
  transition: transform .2s;
}
.arbol-chevron.open { transform: rotate(180deg); }

/* Categorías (nivel 2) */
.arbol-cats { padding-left: 10px; }
.filtro-cat-item { font-size: 12px; padding: 5px 10px; }
.filtro-cat-item .arbol-chevron { width: 10px; height: 10px; }

/* Subcategorías (nivel 3) */
.arbol-subs { padding-left: 10px; }
.filtro-sub-item {
  font-size: 11px; padding: 4px 10px;
  color: rgba(255,255,255,.5);
}
.filtro-sub-item::before {
  content: '–'; margin-right: 4px; color: var(--muted);
}
.filtro-sub-item.active { color: var(--gold); }

/* ── FEED CENTRAL ───────────────────────────────────── */
.feed-wrap {
  flex: 1;
  height: calc(100vh - var(--header-h));
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch; /* iOS momentum scroll */
  touch-action: pan-y;               /* permite swipe vertical nativo */
  overscroll-behavior-y: contain;    /* evita que el swipe escape al browser */
}
.feed-wrap::-webkit-scrollbar { display: none; }

/* ── CARD PRODUCTO ──────────────────────────────────── */
.prod-card {
  scroll-snap-align: start;
  height: calc(100vh - var(--header-h));
  display: flex; align-items: stretch;
  padding: 20px 24px;
  gap: 28px;
  position: relative;
}

/* Foto lado izquierdo */
.prod-fotos {
  width: 44%;
  max-width: 480px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--dark2);
  flex-shrink: 0;
  box-shadow: 0 12px 48px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.07);
}
.prod-foto-main {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity .3s;
}
.prod-foto-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 64px;
}

/* Thumbnails de fotos */
.prod-thumbs {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.prod-thumb {
  width: 36px; height: 36px; border-radius: 6px;
  overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: border-color .15s;
  flex-shrink: 0;
}
.prod-thumb.active { border-color: var(--gold); }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Navegación fotos */
.foto-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); border: none; cursor: pointer;
  color: #fff; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.prod-fotos:hover .foto-nav { opacity: 1; }
.foto-nav.prev { left: 8px; }
.foto-nav.next { right: 8px; }

/* Info lado derecho */
.prod-info {
  flex: 1; display: flex; flex-direction: column;
  padding: 6px 0 6px 4px; overflow-y: auto;
  scrollbar-width: none;
}
.prod-info::-webkit-scrollbar { display: none; }

/* ── DESKTOP: fila nombre + botón compartir ── */
.prod-info-row {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  margin-bottom: 6px;
}
.prod-info-left { flex: 1; min-width: 0; }
.prod-share-label { font-size: 12px; font-weight: 700; }
.prod-share-btn {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 30px;
  background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.3);
  color: #25d366; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background .18s, border-color .18s, transform .12s;
  white-space: nowrap;
}
.prod-share-btn:hover {
  background: rgba(37,211,102,.2);
  border-color: rgba(37,211,102,.55);
  transform: translateY(-1px);
}

.prod-touch-hint,
.prod-precio-quick,
.prod-info-backdrop,
.prod-info-popup {
  display: none;
}

.prod-badges {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.badge {
  padding: 3px 10px; border-radius: 30px;
  font-size: 11px; font-weight: 600; letter-spacing: .3px;
}
.badge-rubro  { background: rgba(201,162,39,.15); color: var(--gold); }
.badge-cat    { background: rgba(255,255,255,.07); color: rgba(255,255,255,.6); }
.badge-marca  { background: rgba(96,165,250,.12); color: #60a5fa; }
.badge-stock  { background: rgba(74,222,128,.1); color: #4ade80; }
.badge-agotado{ background: rgba(239,68,68,.1); color: #f87171; }

/* Breadcrumb Rubro > Cat > Sub + Marca */
.prod-breadcrumb {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; gap: 8px; flex-wrap: nowrap;
}
.bc-path {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}
.bc-right {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.bc-marca {
  font-size: 11px; font-weight: 700; color: #60a5fa;
  background: rgba(96,165,250,.12); border-radius: 20px;
  padding: 2px 9px; white-space: nowrap;
}

/* Total bar (precio × cant) */
.total-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(201,162,39,.07);
  border-radius: 14px;
  padding: 14px 18px; margin-bottom: 16px;
  border: 1.5px solid rgba(201,162,39,.22);
  box-shadow: 0 4px 18px rgba(201,162,39,.08);
}
.total-bar-info { display: flex; flex-direction: column; gap: 3px; }
.total-bar-label { font-size: 10px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.total-bar-val {
  font-size: 24px; font-weight: 900; color: var(--gold); line-height: 1;
  text-shadow: 0 2px 14px rgba(201,162,39,.3);
}
.total-bar-controls {
  display: flex; align-items: center; gap: 12px;
}
.qty-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(201,162,39,.15); border: 1.5px solid var(--gold);
  color: var(--gold); font-size: 22px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s; line-height: 1; font-family: inherit;
}
.qty-btn:hover { background: rgba(201,162,39,.3); }
.qty-num {
  min-width: 32px; text-align: center;
  font-size: 20px; font-weight: 900; color: var(--text);
}

/* Bottom nav */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 89;
}
.sidebar-overlay.visible { display: block; }

.bottom-nav {
  display: none; /* visible solo en mobile */
}

/* Drawer: oculto en desktop, se activa solo en mobile */
.drawer-overlay { display: none; }
.drawer-agregar { display: none; }

.prod-nombre {
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 900; line-height: 1.15;
  color: #fff; margin-bottom: 10px;
  letter-spacing: -.3px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.prod-desc {
  font-size: 14px; color: rgba(255,255,255,.55);
  line-height: 1.65; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5;
  -webkit-box-orient: vertical; overflow: hidden;
  border-left: 2px solid rgba(201,162,39,.25);
  padding-left: 10px;
}

/* Variantes (selector) */
.variantes-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); font-weight: 700; margin-bottom: 8px;
}
.variantes-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.variante-btn {
  padding: 6px 14px; border-radius: 8px; font-size: 13px;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent; color: rgba(255,255,255,.75);
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.variante-btn:hover { border-color: var(--gold); color: var(--gold); }
.variante-btn.selected {
  background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700;
}

/* Precios */
.precios-wrap {
  margin-bottom: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 14px;
  margin-top: 2px;
}
.precio-minorista {
  font-size: clamp(28px, 4.2vw, 40px); font-weight: 900; color: var(--gold);
  line-height: 1; transition: all .2s;
  text-shadow: 0 4px 20px rgba(201,162,39,.25);
}
.precio-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.precio-desde { font-size: 12px; color: var(--muted); margin-top: 4px; min-height: 16px; }

/* Selector de modo de compra — 3 columnas iguales */
.modo-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.modo-tab {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2px;
  padding: 8px 4px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.18);
  background: transparent; color: rgba(255,255,255,.65);
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .15s; font-family: inherit;
  text-align: center; line-height: 1.2;
}
.modo-tab:hover { border-color: var(--gold); color: var(--gold); }
.modo-tab.active {
  background: var(--gold); color: #000;
  border-color: var(--gold); font-weight: 800;
}
.modo-tab-icon { display: none; } /* se eliminan iconos, texto centrado */
.modo-cant {
  font-size: 10px; font-weight: 600; letter-spacing: .2px;
  color: inherit; opacity: .75;
}
.modo-tab.active .modo-cant { opacity: .65; }

/* Acciones */
.prod-acciones {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.btn-comprar {
  flex: 1; min-width: 140px;
  padding: 15px 24px; border-radius: 12px;
  background: linear-gradient(135deg, #e8c14e, #c9a227);
  color: #000; font-size: 15px; font-weight: 900;
  border: none; cursor: pointer; transition: all .2s; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(201,162,39,.25);
  letter-spacing: .1px;
}
.btn-comprar:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,162,39,.38); }
.btn-comprar:active { transform: translateY(0); box-shadow: 0 2px 10px rgba(201,162,39,.2); }
/* Botón REPONER (sin stock) */
.btn-reponer {
  flex: 1; min-width: 140px;
  padding: 15px 24px; border-radius: 12px;
  background: linear-gradient(135deg, #4a6fa5, #3a5a8a);
  color: #fff; font-size: 15px; font-weight: 900;
  border: none; cursor: pointer; transition: all .2s; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(60,100,180,.25);
  letter-spacing: .3px;
}
.btn-reponer:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-reponer:active { transform: translateY(0); }
.btn-wsp {
  padding: 15px 22px; border-radius: 12px;
  background: rgba(37,211,102,.13); color: #25d366;
  border: 1.5px solid rgba(37,211,102,.35);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all .2s; font-family: inherit;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(37,211,102,.1);
}
.btn-wsp:hover { background: rgba(37,211,102,.24); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(37,211,102,.2); }

/* Barra lateral acciones (como TikTok) */
.prod-sidebar-actions {
  position: absolute; right: 30px; bottom: 90px;
  display: flex; flex-direction: column; gap: 16px;
  align-items: center;
}
.action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; color: rgba(255,255,255,.6); font-size: 11px;
  background: none; border: none; font-family: inherit;
  transition: color .2s;
}
.action-btn:hover { color: var(--gold); }
.action-btn svg { width: 26px; height: 26px; }
.action-btn .action-num { font-size: 11px; font-weight: 600; }

/* Separador entre cards */
.prod-card + .prod-card {
  border-top: 1px solid rgba(255,255,255,.04);
}

/* ── PANEL DERECHO info tienda ──────────────────────── */
.sidebar-tienda {
  display: none;
  position: fixed;
  bottom: 72px; right: 12px;
  width: 220px;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 12px;
  z-index: 200;
  flex-direction: column; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: tiendaFadeIn .18s ease;
}
.sidebar-tienda.open { display: flex; }
@keyframes tiendaFadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.tienda-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2px;
}
/* Botón flotante */
/* ── FAB INFO TIENDA ──────────────────────────────────── */
.tienda-fab {
  position: fixed; bottom: 22px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--dark2); border: 1px solid rgba(255,255,255,.15);
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 201;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transition: background .15s, color .15s, border-color .15s;
}
.tienda-fab:hover, .tienda-fab.active {
  background: rgba(201,162,39,.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── PANEL NOSOTROS — MODERNO ─────────────────────────── */

/* Botón X flotante */
.tienda-close-x {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  transition: background .15s, color .15s;
}
.tienda-close-x:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Hero branding */
.tienda-hero {
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 16px 20px;
  background: linear-gradient(160deg, rgba(201,162,39,.12) 0%, transparent 60%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: center;
  position: relative;
}
.tienda-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,162,39,.08), transparent);
  pointer-events: none;
}
.tienda-hero-logo-wrap {
  position: relative; width: 72px; height: 72px; margin-bottom: 14px;
}
.tienda-hero-logo {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,162,39,.5);
  box-shadow: 0 0 24px rgba(201,162,39,.2), 0 4px 20px rgba(0,0,0,.5);
}
.tienda-hero-logo-ring {
  position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(201,162,39,.2);
  animation: tiendaRingPulse 3s ease-in-out infinite;
}
@keyframes tiendaRingPulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.04); }
}
.tienda-hero-name {
  font-size: 22px; font-weight: 900; letter-spacing: 1.5px;
  color: #fff; margin: 0 0 6px; line-height: 1;
}
.tienda-hero-name span { color: var(--gold); }
.tienda-hero-tag {
  font-size: 11px; color: rgba(255,255,255,.45);
  line-height: 1.5; letter-spacing: .2px; margin: 0;
}

/* Hilera de logos de confianza */
.tienda-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 10px 0 0;
  padding: 9px 8px;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  width: 100%;
}
.trust-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 4px 10px 4px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand, rgba(255,255,255,.7));
  white-space: nowrap;
  transition: background .15s;
}
.trust-logo-item:hover {
  background: rgba(255,255,255,.11);
}
/* ── Redes sociales del catálogo ── */
.tienda-redes-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 8px 4px;
  flex-wrap: wrap;
}
.tienda-red-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  transition: background .18s, color .18s;
}
.tienda-red-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.tienda-red-link--ig:hover { background: linear-gradient(135deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); border-color: transparent; color:#fff; }
.tienda-red-link--fb:hover { background: #1877f2; border-color: transparent; color:#fff; }
.tienda-red-link--tt:hover { background: #010101; border-color: #69c9d0; color:#fff; }
.tienda-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.tienda-hero-action {
  min-height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  transition: transform .15s, border-color .15s, background .15s;
}
.tienda-hero-action:hover { transform: translateY(-1px); }
.tienda-hero-action--install {
  background: linear-gradient(135deg, #c9a227, #e8c44a);
  border-color: rgba(232,196,74,.55);
  color: #050505;
  box-shadow: 0 4px 16px rgba(201,162,39,.22);
}
.tienda-hero-action--share {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
}
.tienda-hero-action--share:hover {
  border-color: rgba(201,162,39,.42);
  background: rgba(201,162,39,.1);
  color: var(--gold);
}
.tienda-hero-action.hidden { display: none !important; }

/* Contenedor de cards */
.tienda-cards-wrap {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 14px 8px;
  flex: 1;
}

/* Card v2 */
.tienda-card2 {
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 14px 15px;
  backdrop-filter: blur(8px);
  transition: border-color .2s, background .2s;
}
.tienda-card2:hover { border-color: rgba(201,162,39,.2); }

.tienda-card2-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.tienda-card2-icon {
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(201,162,39,.12);
  border: 1px solid rgba(201,162,39,.2);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tienda-card2-icon--wsp {
  background: rgba(37,211,102,.1);
  border-color: rgba(37,211,102,.2);
  color: #25d366;
}
.tienda-card2-title {
  font-size: 12px; font-weight: 700; letter-spacing: .4px;
  color: rgba(255,255,255,.85); text-transform: uppercase;
}
.tienda-card2-text {
  font-size: 12px; color: rgba(255,255,255,.45);
  line-height: 1.65; margin: 0;
}

/* Botón WhatsApp */
.tienda-wsp-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; min-height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(37,211,102,.18), rgba(37,211,102,.08));
  border: 1px solid rgba(37,211,102,.3);
  color: #2dce6e; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: .1px;
  font-family: inherit;
  box-shadow: 0 0 16px rgba(37,211,102,.08);
  transition: background .2s, box-shadow .2s;
}
.tienda-wsp-btn:hover {
  background: linear-gradient(135deg, rgba(37,211,102,.26), rgba(37,211,102,.14));
  box-shadow: 0 0 22px rgba(37,211,102,.18);
}

/* Grid horarios */
.tienda-horarios-grid {
  display: grid; grid-template-columns: 1fr auto;
  gap: 5px 12px; align-items: center;
}
.tienda-hor-dia {
  font-size: 12px; color: rgba(255,255,255,.5);
}
.tienda-hor-hora {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8);
  text-align: right;
}
.tienda-hor-cerrado {
  color: rgba(255,80,80,.55); font-weight: 500;
}

/* Botón CTA */
.tienda-seguir-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: calc(100% - 28px); margin: 0 14px 14px;
  min-height: 46px;
  border-radius: 13px;
  border: none;
  background: linear-gradient(135deg, #c9a227, #e8c44a, #b8901f);
  color: #000;
  font-size: 13px; font-weight: 800; letter-spacing: .3px;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 20px rgba(201,162,39,.35);
  transition: box-shadow .2s, transform .1s;
}
.tienda-seguir-btn:hover {
  box-shadow: 0 6px 28px rgba(201,162,39,.5);
  transform: translateY(-1px);
}

/* ── INDICADOR DE SCROLL ────────────────────────────── */
.scroll-indicator {
  position: fixed; right: 12px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px;
  z-index: 50;
}
.scroll-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.2); cursor: pointer;
  transition: all .2s;
}
.scroll-dot.active { background: var(--gold); transform: scale(1.4); }

/* ── LOADING ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--dark2) 25%, var(--dark3) 50%, var(--dark2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.loading-card {
  scroll-snap-align: start;
  height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  padding: 20px 24px; gap: 28px;
}
.loading-foto { width: 44%; border-radius: var(--radius); }
.loading-info { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }

/* ── EMPTY STATE ────────────────────────────────────── */
.empty-feed {
  height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; color: var(--muted);
  scroll-snap-align: start;
}
.empty-feed svg { opacity: .3; }
.empty-feed p { font-size: 15px; }

/* ── MODAL CARRITO ──────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 200; display: none;
  align-items: flex-start; justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal-carrito {
  background: #111;
  border-radius: 0;
  width: 100%; max-width: 540px;
  padding: 0;
  animation: slideUp .3s cubic-bezier(.32,1,.45,1);
  height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column;
}
.carrito-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 14px;
  flex-shrink: 0;
}
.carrito-header-left { display: flex; align-items: center; gap: 10px; }
.carrito-header-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(201,162,39,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0;
}
.carrito-header h3 { font-size: 17px; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.carrito-header-badge {
  background: var(--gold); color: #000;
  font-size: 10px; font-weight: 900;
  padding: 2px 7px; border-radius: 20px; margin-left: 4px;
}
.carrito-close-btn {
  background: rgba(255,255,255,.07); border: none; color: var(--text);
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.carrito-close-btn:hover { background: rgba(255,255,255,.14); }

.carrito-items-wrap {
  flex: 1; overflow-y: auto; padding: 4px 14px 8px;
  scrollbar-width: none;
}
.carrito-items-wrap::-webkit-scrollbar { display: none; }

.carrito-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  margin-bottom: 8px;
  transition: background .15s;
}
.carrito-item-foto {
  width: 50px; height: 50px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0; background: var(--dark3);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.carrito-item-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carrito-item-info { flex: 1; min-width: 0; }
.carrito-item-nombre {
  font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px;
}
.carrito-item-sub { font-size: 11px; color: var(--muted); }
/* Sin stock */
.carrito-item--sin-stock { opacity: .6; }
.carrito-item--sin-stock .carrito-item-foto { filter: grayscale(1); }
.carrito-item-sin-stock {
  font-size: 10px; font-weight: 700; color: #ef4444;
  margin-top: 3px; letter-spacing: .02em;
}
.carrito-item-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0;
}
.carrito-item-subtotal { font-size: 13px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.carrito-qty-row {
  display: flex; align-items: center;
  background: rgba(255,255,255,.07); border-radius: 20px; overflow: hidden;
}
.carrito-qty-btn {
  background: none; border: none; color: var(--text);
  width: 28px; height: 26px; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s;
}
.carrito-qty-btn:hover { background: rgba(255,255,255,.1); }
.carrito-qty-num { font-size: 12px; font-weight: 800; min-width: 20px; text-align: center; }
.carrito-item-del {
  background: none; border: none; color: rgba(239,68,68,.5);
  cursor: pointer; font-size: 15px; padding: 2px 0; transition: color .15s;
}
.carrito-item-del:hover { color: #ef4444; }

.carrito-footer {
  flex-shrink: 0;
  padding: 12px 16px env(safe-area-inset-bottom, 20px);
  background: #111;
}
.btn-seguir-comprando {
  display: block; width: 100%; margin-top: 10px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 14px; font-weight: 700;
  font-family: inherit; text-align: center;
  padding: 10px 0;
  letter-spacing: .01em;
  transition: color .15s;
}
.btn-seguir-comprando:hover { color: var(--text); }
.carrito-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: rgba(201,162,39,.07);
  border: 1px solid rgba(201,162,39,.18);
  border-radius: 14px;
  margin-bottom: 12px;
}
.carrito-total-label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .8px; text-transform: uppercase; }
.carrito-total-amount { font-size: 22px; font-weight: 900; color: var(--gold); letter-spacing: -.5px; }
.btn-wsp-pedir {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, #25d366 0%, #1aad54 100%);
  color: #fff; font-size: 15px; font-weight: 900; font-family: inherit;
  letter-spacing: .2px; border: none; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,.3);
  transition: opacity .15s, transform .15s;
}
.btn-wsp-pedir:hover { opacity: .92; transform: translateY(-1px); }
.btn-wsp-pedir:active { transform: translateY(0); }

.carrito-vacio {
  display: flex; flex-direction: column; align-items: center;
  padding: 52px 20px 44px; text-align: center; gap: 12px;
}
.carrito-vacio-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  opacity: .5;
}
.carrito-vacio p { font-size: 16px; font-weight: 800; margin: 0; color: var(--text); }
.carrito-vacio span { font-size: 12px; color: var(--muted); }

@keyframes slideUp { from{transform:translateY(100%);opacity:.6} to{transform:translateY(0);opacity:1} }

/* ── MODAL BIENVENIDA ─────────────────────────────── */
.modal-bienvenida {
  background: #111;
  border-radius: 28px;
  width: calc(100% - 40px);
  max-width: 380px;
  padding: 36px 28px 28px;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.8);
  animation: popIn .32s cubic-bezier(.34,1.56,.64,1);
}
.bienvenida-emoji { font-size: 44px; line-height: 1; margin-bottom: 4px; }
.bienvenida-titulo { font-size: 22px; font-weight: 900; margin: 0; letter-spacing: -.4px; }
.bienvenida-sub { font-size: 13px; color: var(--muted); margin: 0 0 12px; text-align: center; }
.bienvenida-form { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.bienvenida-field { display: flex; flex-direction: column; gap: 5px; }
.bienvenida-field label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .6px; text-transform: uppercase; }
.bienvenida-field input {
  height: 48px; border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text); font-size: 15px; font-family: inherit;
  padding: 0 14px;
  outline: none; transition: border-color .15s;
}
.bienvenida-field input:focus { border-color: var(--gold); }
.bienvenida-btn {
  width: 100%; height: 52px; margin-top: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  color: #000; font-size: 15px; font-weight: 900; font-family: inherit;
  border: none; border-radius: 14px; cursor: pointer;
  letter-spacing: .2px;
  box-shadow: 0 6px 20px rgba(201,162,39,.3);
  transition: opacity .15s, transform .15s;
}
.bienvenida-btn:hover { opacity: .9; transform: translateY(-1px); }
.bienvenida-skip {
  background: none; border: none; color: var(--muted);
  font-size: 12px; font-family: inherit; cursor: pointer;
  margin-top: 2px; padding: 4px 8px;
}
.bienvenida-skip:hover { color: var(--text); }
@keyframes popIn { from{transform:scale(.88);opacity:0} to{transform:scale(1);opacity:1} }

/* ── PANEL CLIENTE ────────────────────────────────── */
.modal-panel-cliente {
  background: #111;
  border-radius: 28px 28px 0 0;
  width: 100%; max-width: 540px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  animation: slideUp .3s cubic-bezier(.32,1,.45,1);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -12px 60px rgba(0,0,0,.8);
  overflow: hidden;
}
.panel-cliente-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 14px;
  flex-shrink: 0;
  position: relative;
}
.panel-cliente-header::before {
  content: '';
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 4px; background: rgba(255,255,255,.15); border-radius: 4px;
}
.panel-seccion {
  padding: 0 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.panel-seccion:last-child { border-bottom: none; flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.panel-seccion-titulo {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; color: var(--muted);
  letter-spacing: .7px; text-transform: uppercase;
  margin-bottom: 12px;
}
.panel-datos-form { display: flex; flex-direction: column; gap: 10px; }
.panel-guardar-btn {
  height: 44px; border-radius: 12px; margin-top: 2px;
  background: rgba(201,162,39,.12); border: 1px solid rgba(201,162,39,.25);
  color: var(--gold); font-size: 13px; font-weight: 800; font-family: inherit;
  cursor: pointer; transition: background .15s;
}
.panel-guardar-btn:hover { background: rgba(201,162,39,.2); }

.panel-pedidos-lista { flex: 1; overflow-y: auto; scrollbar-width: none; padding-bottom: 24px; }
.panel-pedidos-lista::-webkit-scrollbar { display: none; }
.panel-pedidos-vacio {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 0; gap: 10px; color: var(--muted); opacity: .5;
}
.panel-pedidos-vacio p { margin: 0; font-size: 13px; font-weight: 700; }
.panel-pedido-card {
  background: rgba(255,255,255,.04); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px;
  transition: background .18s;
}
.pp-card-link:hover, .pp-card-link:active { background: rgba(255,255,255,.09); }
.pp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pp-fecha { font-size: 10px; color: var(--muted); }
.pp-total { font-size: 14px; font-weight: 900; color: var(--gold); }
.pp-item { font-size: 11px; color: var(--text); opacity: .8; padding: 1px 0; }
.pp-estado-chip {
  display: inline-block; margin-top: 8px;
  font-size: 10px; font-weight: 800; color: var(--gold2);
  background: rgba(201,162,39,.12); border: 1px solid rgba(201,162,39,.3);
  padding: 3px 10px; border-radius: 20px;
}

/* ── Modal confirmación pedido ─────────────────────── */
.modal-pedido-ok {
  background: #111; border-radius: 24px;
  width: calc(100% - 40px); max-width: 340px;
  padding: 36px 24px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  animation: popIn .32s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 24px 80px rgba(0,0,0,.8);
}
.mpok-icon { font-size: 52px; line-height: 1; }
.modal-pedido-ok h3 { font-size: 20px; font-weight: 900; margin: 0; }
.modal-pedido-ok p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.mpok-btns { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mpok-btn-seguir {
  height: 50px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000; font-size: 14px; font-weight: 900; font-family: inherit;
  border: none; cursor: pointer;
}

.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 18px; }

/* ── TOAST ──────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 300; pointer-events: none;
}
.toast {
  padding: 10px 20px; border-radius: 30px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  animation: toastIn .25s ease, toastOut .25s ease 2.5s forwards;
}
@keyframes toastIn  { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
@keyframes toastOut { from{opacity:1} to{opacity:0} }
.toast-success { background: rgba(74,222,128,.18); color: #4ade80; border: 1px solid rgba(74,222,128,.3); }
.toast-error   { background: rgba(239,68,68,.18);  color: #f87171; border: 1px solid rgba(239,68,68,.3);  }
.toast-info    { background: rgba(201,162,39,.18);  color: var(--gold); border: 1px solid rgba(201,162,39,.3); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  /* sidebar-tienda ya es flotante, no necesita override */
}

/* ═══ MÓVIL: layout TikTok vertical (foto arriba, info abajo) ═══ */
@media (max-width: 800px) {
  :root {
    --header-h-base: 52px;
    --header-h: var(--header-h-base);
  }

  .sidebar-filtros {
    position: fixed; left: 0;
    top: var(--header-h); bottom: var(--nav-h);
    z-index: 90; transform: translateX(-100%);
    transition: transform .3s; display: flex !important;
    flex-direction: column; width: 100vw; max-width: 100vw;
    height: auto;
  }
  .sb-title { font-size: 15px; }
  .filtro-titulo { font-size: 13px; }
  .filtro-item { font-size: 14px; padding: 10px 14px; }
  .sb-back-btn { font-size: 13px; }
  .sb-nivel-titulo { font-size: 13px; }
  .sidebar-filtros.open { transform: translateX(0); }

  .scroll-indicator   { display: none; }
  .prod-sidebar-actions { display: none; }

  /* Hamburger visible */
  .header-hamburger { display: flex; }
  .tienda-fab { display: none; }
  .sidebar-tienda {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    bottom: auto;
    right: auto;
    border-radius: 0;
    border: none;
    padding: 8px 12px;
    background: linear-gradient(180deg, rgba(8,12,21,.98), rgba(5,8,15,.98));
    box-shadow: none;
    z-index: 330;
    overflow-y: auto;
    gap: 12px;
  }
  .sidebar-tienda.open {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  .tienda-panel-header { display: none; }
  .tienda-hero {
    padding: 44px 16px 20px;
    flex-shrink: 0;
  }
  .tienda-cards-wrap {
    padding: 12px 14px 8px;
    overflow-y: auto;
    flex: 1;
  }
  .tienda-seguir-btn {
    position: sticky;
    bottom: 0; z-index: 2;
    margin: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: 0 -8px 24px rgba(5,8,15,.5);
    min-height: 52px;
    font-size: 14px;
  }

  /* ── BOTTOM NAV con carrito elevado ── */
  .bottom-nav {
    display: flex; align-items: center;
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(13,13,13,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(201,162,39,.18);
    z-index: 100; padding: 0 4px;
    overflow: visible; /* permite que el carrito sobresalga */
  }
  .bnav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: 3px; background: none; border: none; color: rgba(255,255,255,.5);
    font-size: 10px; font-weight: 600; cursor: pointer;
    font-family: inherit; padding: 6px 0;
    text-decoration: none; transition: color .15s;
  }
  .bnav-item:hover { color: var(--gold); }

  /* Wrapper + central — mismo flex:1 que los demás */
  .bnav-cart-wrap {
    flex: 1; display: flex; align-items: center; justify-content: center;
    position: relative;
  }
  /* Botón + verde elevado */
  @keyframes fab-pulse {
    0%   { box-shadow: 0 -4px 18px rgba(22,163,74,.5), 0 4px 16px rgba(0,0,0,.5), 0 0 0 0 rgba(22,163,74,.55); }
    60%  { box-shadow: 0 -4px 18px rgba(22,163,74,.5), 0 4px 16px rgba(0,0,0,.5), 0 0 0 10px rgba(22,163,74,0); }
    100% { box-shadow: 0 -4px 18px rgba(22,163,74,.5), 0 4px 16px rgba(0,0,0,.5), 0 0 0 0 rgba(22,163,74,0); }
  }
  .bnav-cart-fab {
    position: absolute;
    width: 72px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(160deg, #1ec65a 0%, #16a34a 100%);
    color: #fff;
    border: 3px solid rgba(13,13,13,.96);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px;
    cursor: pointer;
    animation: fab-pulse 2.2s ease-out infinite;
    transition: background .15s, transform .15s;
  }
  .bnav-cart-fab:hover { background: #15803d; transform: scale(1.06); animation: none; box-shadow: 0 -4px 22px rgba(22,163,74,.7); }
  .bnav-cart-fab:active { transform: scale(.93); animation: none; }

  /* Ocultar AGREGAR duplicado y acciones desktop */
  .bnav-agregar { display: none; }
  .total-bar    { display: none; }
  .prod-acciones { display: none; }

  /* ── LAYOUT DE CARD: split superior ── */
  .main-layout {
    padding-top: 0;      /* el feed-wrap se posiciona solo */
    min-height: unset;
  }
  .feed-wrap {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: var(--nav-h);
    height: auto;        /* lo define top+bottom */
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
  }
  .prod-card {
    flex-direction: column;
    height: calc(100dvh - var(--header-h) - var(--nav-h));
    padding: 0; gap: 0; overflow: hidden;
  }

  /* ── FOTO: ancho completo ── */
  .prod-fotos {
    width: 100%; max-width: 100%;
    flex: 0 0 calc((100dvh - var(--header-h) - var(--nav-h)) * 0.72);
    height:      calc((100dvh - var(--header-h) - var(--nav-h)) * 0.72);
    flex-shrink: 0; border-radius: 0;
    position: relative;
    touch-action: pan-y;
  }
  .prod-fotos::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26%;
    background: linear-gradient(to top, rgba(5,8,14,.95), rgba(5,8,14,0));
    pointer-events: none;
    z-index: 1;
  }
  .prod-foto-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
  }
  .prod-thumbs {
    bottom: 12px;
    gap: 6px;
    z-index: 4;
  }
  .prod-thumb {
    width: var(--mobile-thumb-size);
    height: var(--mobile-thumb-size);
    border-radius: var(--mobile-thumb-radius);
    border: 1.5px solid rgba(255,255,255,.5);
    background: rgba(0,0,0,.35);
    box-shadow: 0 3px 9px rgba(0,0,0,.32);
  }
  .prod-thumb.active {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201,162,39,.22), 0 4px 12px rgba(0,0,0,.35);
  }
  .foto-nav {
    display: none !important;
  }

  /* ── VARIANTES: fila horizontal tarjetas foto+nombre ── */
  .prod-vars-row {
    display: flex; gap: 7px;
    padding: 7px 14px;
    overflow-x: auto; overflow-y: hidden; flex-shrink: 0;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    background: rgba(8,12,20,.97);
    border-top: 1px solid rgba(255,255,255,.07);
    align-items: center;
  }
  .prod-vars-row::-webkit-scrollbar { display: none; }

  /* Tarjeta de variante */
  .var-card {
    flex-shrink: 0;
    display: flex; flex-direction: row; align-items: center;
    gap: 7px;
    height: 44px;
    padding: 0 10px 0 5px;
    background: rgba(255,255,255,.05);
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 22px;
    cursor: pointer; transition: all .18s;
    font-family: inherit;
    white-space: nowrap;
  }
  .var-card.selected {
    border-color: #16a34a;
    background: rgba(22,163,74,.14);
    box-shadow: 0 0 0 1px #16a34a, 0 2px 12px rgba(22,163,74,.2);
  }
  .var-card-img {
    width: 34px; height: 34px;
    border-radius: 50%; overflow: hidden;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .var-card-img img { width:100%; height:100%; object-fit:cover; display:block; }
  .var-card-nofoto { font-size: 22px; }
  .var-card-nombre {
    font-size: 12px; font-weight: 700; color: var(--text);
    line-height: 1.2; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    max-width: 90px;
  }
  .var-card-precio  { display: none; }
  .var-card-stock   { display: none; }
  .var-card-info    { display: none; }

  /* ── INFO: area scrollable ── */
  .prod-info {
    flex: 1;
    min-height: 0;
    padding: 10px 16px 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    background: linear-gradient(180deg, rgba(11,16,26,.98), rgba(7,10,17,.98));
    border-top: 1px solid rgba(255,255,255,.09);
    margin-top: -14px;
    position: relative;
    z-index: 2;
    box-shadow: 0 -8px 24px rgba(0,0,0,.35);
    gap: 4px;
  }

  /* Mobile: share como círculo sin texto */
  .prod-share-label { display: none; }
  .prod-share-btn {
    width: 42px; height: 42px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .prod-vars-row + .prod-info {
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    padding-top: 6px;
  }

  /* ── Fila info: nombre+precio a la izquierda, botón compartir a la derecha ── */
  .prod-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }
  .prod-info-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  /* Botones apilados flotantes sobre la imagen */
  .prod-side-btns {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex; flex-direction: column; gap: 6px;
    align-items: center;
    background-color: #000000b5;
    border-radius: 24px;
    padding: 10px 6px;
  }
  /* Item lateral: botón + contador */
  .side-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
  }
  .side-count {
    font-size: 10px; font-weight: 800; color: rgba(255,255,255,.85);
    text-shadow: 0 1px 4px rgba(0,0,0,.8);
    line-height: 1;
  }
  /* Corazón favorito: igual que compartir/WhatsApp en la columna */
  .prod-fav-overlay-card {
    flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,45,102,.15);
    border: 1.5px solid rgba(255,45,102,.45);
    color: #c6c6c6; font-size: 19px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-family: inherit;
    box-shadow: 0 0 8px rgba(255,45,102,.2);
    transition: background .18s, transform .15s, color .15s, box-shadow .18s;
  }
  .prod-fav-overlay-card:active { transform: scale(.88); }
  .prod-fav-overlay-card.active {
    background: rgba(255,45,102,.35);
    border-color: rgba(255,45,102,.8);
    color: #ff4d72;
    box-shadow: 0 0 14px rgba(255,45,102,.5);
  }
  /* Botón compartir */
  .prod-share-btn {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.75);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .18s, transform .15s;
    font-family: inherit;
  }
  .prod-share-btn:active { transform: scale(.92); background: rgba(255,255,255,.15); }
  /* Botón WhatsApp lateral */
  .prod-wsp-side-btn {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(37,211,102,.14);
    border: 1.5px solid rgba(37,211,102,.38);
    color: #25d366;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .18s, transform .15s;
    font-family: inherit;
  }
  .prod-wsp-side-btn:active { transform: scale(.92); background: rgba(37,211,102,.28); }

  /* Botón mute video */
  .prod-vid-mute-btn {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.85);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .18s, transform .15s;
    font-family: inherit;
  }
  .prod-vid-mute-btn:active { transform: scale(.92); }
  .prod-vid-mute-btn.muted { background: rgba(255,80,80,.15); border-color: rgba(255,80,80,.4); color: #ff6060; }

  /* Botón play/pause video */
  .prod-vid-play-btn {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.85);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .18s, transform .15s;
    font-family: inherit;
  }
  .prod-vid-play-btn:active { transform: scale(.92); }
  .prod-vid-play-btn.paused { background: rgba(255,200,40,.12); border-color: rgba(255,200,40,.4); color: #ffc828; }

  /* Barra de progreso de video */
  .vid-progress-wrap {
    position: absolute;
    top: 8px; left: 10px; right: 10px;
    display: flex; align-items: center; gap: 7px;
    z-index: 11; pointer-events: none;
  }
  .vid-time-cur, .vid-time-dur {
    font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,.9);
    text-shadow: 0 1px 4px rgba(0,0,0,.7);
    min-width: 28px; flex-shrink: 0;
  }
  .vid-time-dur { text-align: right; }
  .vid-progress-bar {
    flex: 1; height: 3px; border-radius: 2px;
    background: rgba(255,255,255,.28);
    overflow: hidden;
  }
  .vid-progress-fill {
    height: 100%; width: 0%;
    background: #fff;
    border-radius: 2px;
    transition: width .1s linear;
  }

  .prod-breadcrumb {
    margin-bottom: 9px;
  }
  .bc-path {
    font-size: 11px;
    color: rgba(255,255,255,.58);
    letter-spacing: .2px;
  }
  .bc-right {
    gap: 7px;
  }
  .badge-stock {
    background: rgba(22,163,74,.16);
    border: 1px solid rgba(22,163,74,.35);
  }

  /* Ocultar en prod-info mobile: breadcrumb, descripcion, todo lo desktop */
  .prod-breadcrumb,
  .prod-desc,
  .variantes-label,
  .variantes-list,
  .price-row-wrap,
  .precios-wrap { display: none !important; }

  /* ── LISTA DE PRECIOS MOBILE ── */
  .precios-mobile-list { display: none; }
  .pml-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    margin-bottom: 6px;
    background: rgba(255,255,255,.03);
  }
  .pml-row:last-child { margin-bottom: 0; }
  .pml-label {
    font-size: 10.5px; font-weight: 800; color: rgba(255,255,255,.6);
    text-transform: uppercase; letter-spacing: .7px;
  }
  .pml-val {
    font-size: 18px;
    font-weight: 900;
    color: #f6d267;
    text-shadow: 0 2px 10px rgba(201,162,39,.2);
  }

  /* Texto compacto */
  .prod-breadcrumb { display: none; }
  .prod-desc { display: none; }
  .prod-nombre {
    font-size: clamp(16px, 5vw, 26px);
    margin-bottom: 0;
    line-height: 1.15;
    letter-spacing: .15px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-weight: 900;
    /* truncar a 2 líneas si es muy largo */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .prod-touch-hint {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    font-weight: 700;
  }

  /* Precio rápido en info panel */
  .prod-precio-quick {
    display: flex; align-items: baseline; gap: 5px;
    flex-wrap: nowrap; justify-content: flex-start;
  }
  .ppq-desde {
    font-size: 9px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .6px; color: rgba(255,255,255,.35);
    flex-shrink: 0;
  }
  .ppq-val {
    font-size: clamp(18px, 5.5vw, 26px);
    font-weight: 900; color: #f6d267;
    text-shadow: 0 2px 14px rgba(201,162,39,.3);
    line-height: 1;
    letter-spacing: -.3px;
  }
  .ppq-tag {
    font-size: 9px; font-weight: 800; padding: 2px 7px;
    border-radius: 20px; letter-spacing: .4px; text-transform: uppercase;
    flex-shrink: 0;
  }
  .ppq-agotado {
    background: rgba(239,68,68,.15);
    border: 1px solid rgba(239,68,68,.3);
    color: rgba(239,68,68,.7);
  }

  /* ── POPUP DETALLE: fullscreen bottom sheet ── */
  .prod-info-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(2,6,14,.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none;
    transition: opacity .28s ease; z-index: 319;
  }
  .prod-card.info-open .prod-info-backdrop { opacity: 1; pointer-events: auto; }

  .prod-info-popup {
    display: flex; flex-direction: column;
    position: fixed;
    left: 0; right: 0;
    top: var(--header-h);
    bottom: 0;
    background: #080c16;
    border-radius: 20px 20px 0 0;
    padding: 0;
    /*box-shadow: 0 -16px 48px rgba(0,0,0,.8);*/
    transform: translateY(100%);
    pointer-events: none;
    transition: transform .32s cubic-bezier(.32,.72,0,1);
    z-index: 320;
    overflow: hidden;
  }
  .prod-card.info-open .prod-info-popup {
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Handle pill — oculto en fullscreen */
  .pip-handle { display: none; }

  /* Top bar */
  .pip-topbar {
    position: relative;
    z-index: 10; flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    background: rgba(8,12,22,.98);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .pip-topbar-label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .8px;
    color: rgba(255,255,255,.5);
  }
  .pip-close-btn {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.07);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    transition: background .15s; font-family: inherit;
  }
  .pip-close-btn:hover { background: rgba(255,255,255,.14); }

  /* Body scrollable */
  .pip-body {
    flex: 1; overflow-y: auto;
    padding: 12px 18px 4px;
    display: flex; flex-direction: column; gap: 12px;
    scrollbar-width: none;
  }
  .pip-body::-webkit-scrollbar { display: none; }

  /* Footer sticky */
  .pip-footer {
    flex-shrink: 0;
    padding: 12px 16px env(safe-area-inset-bottom, 20px);
    background: rgba(8,12,22,.98);
    display: flex; flex-direction: column; gap: 6px;
  }
  /* Fila inferior del footer: favorito + seguir comprando */
  .pip-footer-row {
    display: flex; justify-content: space-between; align-items: center;
  }
  /* Botón favorito en footer */
  .pip-fav-footer {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,.38); font-size: 13px; font-weight: 700;
    font-family: inherit; padding: 6px 0;
    transition: color .15s;
  }
  .pip-fav-footer.active { color: #ff4d72; }
  .pip-footer-main {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  }
  .pip-footer-links {
    display: grid; grid-template-columns: 1fr 1fr;
  }
  /* Botón único ancho completo */
  .pip-btn-full {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 17px; min-height: 56px;
  }
  .pip-seguir-btn {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,.4); font-size: 13px; font-weight: 700;
    font-family: inherit;
    padding: 6px 0;
    transition: color .15s;
  }
  .pip-seguir-btn:hover { color: rgba(255,255,255,.75); }

  .pip-img-wrap {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    background: rgba(255,255,255,.05);
    flex-shrink: 0;
  }
  .pip-img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
  }

  .prod-info-popup-name {
    margin: 0; color: #fff;
    font-size: clamp(20px, 5.8vw, 28px);
    line-height: 1.15; font-weight: 900; letter-spacing: -.1px;
  }
  .prod-info-popup-desc {
    font-size: 13px; line-height: 1.5;
    color: rgba(255,255,255,.55); margin: 0;
  }
  .prod-info-popup-vars {
    display: flex; gap: 8px;
    overflow-x: auto; padding-bottom: 2px;
    scrollbar-width: none;
  }
  .prod-info-popup-vars::-webkit-scrollbar { display: none; }
  .pip-var-btn {
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.9); border-radius: 999px;
    padding: 7px 14px; font-size: 12px; font-weight: 800;
    letter-spacing: .2px; font-family: inherit; cursor: pointer;
    transition: all .18s;
  }
  .pip-var-btn.active {
    background: linear-gradient(135deg, #24c26e, #16a34a);
    border-color: transparent; color: #fff;
    box-shadow: 0 4px 14px rgba(22,163,74,.28);
  }
  /* Tabs de modo de precio (solo multi-tier) */
  .prod-info-popup-precios { /* contenedor vacío o con tabs */ }
  .pip-mode-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
  .pip-mode-tab {
    flex: 1; padding: 9px 10px; border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05); color: rgba(255,255,255,.5);
    font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
    text-align: center; transition: all .15s; line-height: 1.3;
  }
  .pip-mode-tab small { display: block; font-size: 10px; opacity: .7; margin-top: 2px; }
  .pip-mode-tab.active {
    background: rgba(246,210,103,.14); border-color: rgba(246,210,103,.42);
    color: #f6d267;
  }
  /* Cabecera de precio en pip-calc */
  .pip-price-header {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .pip-price-mode-lbl {
    font-size: 10px; color: rgba(255,255,255,.4);
    text-transform: uppercase; letter-spacing: .6px; font-weight: 700;
  }
  .pip-price-hero-val {
    font-size: 36px; font-weight: 900; line-height: 1;
    color: #f6d267; text-shadow: 0 2px 18px rgba(201,162,39,.35);
  }
  /* Tira de total al pie del pip-calc */
  .pip-total-strip {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,.07); padding-top: 12px;
  }
  .pip-total-strip-lbl {
    font-size: 10px; color: rgba(255,255,255,.4);
    text-transform: uppercase; letter-spacing: .5px; font-weight: 700;
  }
  .pip-calc {
    border: none;
    border-radius: 18px; background: rgba(255,255,255,.05);
    padding: 14px 16px; display: grid; gap: 12px;
  }
  .pip-calc-qty {
    display: flex; align-items: center; justify-content: center; gap: 20px;
  }
  .pip-qty-btn {
    width: 46px; height: 46px; border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.1); color: #fff;
    font-size: 28px; line-height: 1; font-weight: 300;
    cursor: pointer; font-family: inherit; transition: background .12s;
  }
  .pip-qty-btn:active { background: rgba(255,255,255,.2); scale: .93; }
  .pip-qty-info { min-width: 54px; display: flex; flex-direction: column; align-items: center; }
  .pip-qty-num { font-size: 28px; line-height: 1; font-weight: 900; color: #fff; }
  .pip-qty-label {
    font-size: 10px; color: rgba(255,255,255,.45);
    letter-spacing: .3px; text-transform: uppercase; font-weight: 700;
  }
  .pip-total-val {
    font-size: 22px; line-height: 1; font-weight: 900; color: #f6d267;
    text-shadow: 0 2px 12px rgba(201,162,39,.25);
  }
  .prod-info-popup-actions { display: none; }
  .pip-btn {
    border: none; border-radius: 16px;
    min-height: 54px; font-size: 16px; font-weight: 900;
    letter-spacing: .2px; cursor: pointer; font-family: inherit;
    transition: transform .12s ease, filter .15s ease;
  }
  .pip-btn:active { transform: scale(.97); }
  .pip-btn:disabled { opacity: .4; pointer-events: none; box-shadow: none; }
  .pip-btn:hover { filter: brightness(1.06); }
  .pip-btn-buy {
    background: linear-gradient(135deg, #f4d36e, #c9a227);
    color: #101010; box-shadow: 0 6px 18px rgba(201,162,39,.28);
  }
  .pip-btn-add {
    background: linear-gradient(135deg, #24c26e, #16a34a);
    color: #fff; box-shadow: 0 6px 18px rgba(22,163,74,.3);
  }
  .pip-btn-link {
    background: none; border: none;
    color: rgba(255,255,255,.6); font-size: 13px;
    letter-spacing: .3px; text-transform: lowercase;
    font-weight: 700; font-family: inherit; cursor: pointer;
    padding: 8px 6px; text-align: center; transition: color .15s;
  }
  .pip-btn-link:hover { color: #fff; }
  .pip-btn-link-contacto { color: #25d366; }
  .pip-btn-link-contacto:hover { color: #4ade80; }
  .prod-info-close,
  .prod-info-popup-title,
  .prod-info-popup-media,
  .prod-info-popup-img,
  .prod-info-popup-img-placeholder { display: none; }

  /* ── POPUP abierto: pantalla completa (ocultar header + nav) ── */
  body:has(.prod-card.info-open) .site-header,
  body:has(.prod-card.info-open) .bottom-nav { display: none !important; }
  body:has(.prod-card.info-open) .prod-info-popup { top: 0; border-radius: 0; }
  body:has(.prod-card.info-open) .prod-info-backdrop { top: 0; }

  /* ── PERFIL abierto: pantalla completa ── */
  body:has(#modal-panel-cliente.open) .site-header,
  body:has(#modal-panel-cliente.open) .bottom-nav { display: none !important; }
  body:has(#modal-panel-cliente.open) .modal-overlay#modal-panel-cliente {
    align-items: stretch;
  }
  body:has(#modal-panel-cliente.open) .modal-panel-cliente {
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    max-width: 100%;
  }

  /* Pantallas bajas: compactar para evitar cortes */
  @media (max-height: 740px) {
    :root {
      --header-h-base: 50px;
      --header-h: var(--header-h-base);
      --mobile-foto-ratio: 66%;
      --mobile-thumb-size: 34px;
      --mobile-thumb-radius: 7px;
      --mobile-varcard-w: 52px;
      --mobile-varimg-size: 34px;
      --mobile-name-size: 22px;
      --mobile-popup-name-size: 30px;
      --mobile-popup-desc-size: 17px;
    }
    /* popup: imagen más chica */
    .pip-hero { flex: 0 0 14dvh; height: 14dvh; }
    .pip-body { padding: 10px 16px 2px; gap: 7px; }
    .pip-topbar { padding: 6px 12px 8px; }
    .pip-footer { padding: 8px 14px 14px; gap: 6px; }
    .pip-price-hero-val { font-size: 26px; }
    .pip-calc { padding: 9px 12px; gap: 8px; }
    .pip-qty-btn { width: 40px; height: 40px; font-size: 22px; }
    .pip-qty-num { font-size: 20px; }
    .pip-btn { min-height: 44px; font-size: 14px; }
    .prod-info-popup-name { font-size: clamp(17px, 5vw, 22px); }
    .prod-info-popup-desc { font-size: 12px; }
  }

  /* Pantallas muy bajas (≤640px alto): ocultar imagen, máxima compresión */
  @media (max-height: 640px) {
    .pip-hero { display: none; }
    .pip-handle { margin: 6px auto 0; }
    .pip-topbar { padding: 4px 12px 6px; }
    .pip-body { padding: 8px 14px 2px; gap: 5px; }
    .pip-footer { padding: 6px 12px 10px; gap: 4px; }
    .pip-row { padding: 6px 10px; }
    .pip-val { font-size: 17px; }
    .pip-label { font-size: 11px; }
    .pip-calc { padding: 7px 10px; gap: 6px; }
    .pip-qty-btn { width: 36px; height: 36px; font-size: 20px; }
    .pip-qty-num { font-size: 18px; }
    .pip-calc-totals { padding-top: 7px; }
    .pip-btn { min-height: 40px; font-size: 13px; border-radius: 11px; }
    .pip-btn-link { font-size: 12px; padding: 5px 4px; }
    .prod-info-popup-name { font-size: clamp(15px, 4.8vw, 19px); }
    .prod-info-popup-desc { display: none; }
  }

  /* Pantallas altas: un poco mas de aire */
  @media (min-height: 820px) {
    :root {
      --header-h-base: 54px;
      --header-h: var(--header-h-base);
      --mobile-foto-ratio: 72%;
      --mobile-thumb-size: 42px;
      --mobile-varcard-w: 60px;
      --mobile-varimg-size: 42px;
      --mobile-name-size: 28px;
      --mobile-popup-name-size: 36px;
      --mobile-popup-desc-size: 21px;
    }
  }

  /* ── DRAWER AGREGAR ──────────────────────────────────────── */
  .drawer-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 300; backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .drawer-overlay.visible { display: block; }

  .drawer-agregar {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0;
    background: var(--dark2); border-radius: 22px 22px 0 0;
    border-top: 1px solid rgba(201,162,39,.25);
    box-shadow: 0 -8px 40px rgba(0,0,0,.7);
    padding: 12px 20px 28px;
    z-index: 301;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
  }
  .drawer-agregar.open { transform: translateY(0); }

  .drawer-top {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
  }
  .drawer-handle {
    width: 40px; height: 4px; border-radius: 4px;
    background: rgba(255,255,255,.2); margin: 0;
  }
  .drawer-close-btn {
    position: absolute;
    top: -6px;
    right: -4px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.9);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: background .15s, transform .12s;
  }
  .drawer-close-btn:hover {
    background: rgba(255,255,255,.16);
  }
  .drawer-close-btn:active {
    transform: scale(.96);
  }
  .drawer-prod-nombre {
    font-size: 16px; font-weight: 800; color: var(--text);
    line-height: 1.2; margin-bottom: 8px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .drawer-prod-desc {
    font-size: 12px;
    color: rgba(255,255,255,.68);
    line-height: 1.35;
    margin-bottom: 10px;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .drawer-prod-desc:empty {
    display: none;
    margin-bottom: 0;
  }
  .drawer-info-resumen {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
  }
  .drawer-res-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    padding: 7px 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.11);
  }
  .drawer-res-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .6px;
    color: rgba(255,255,255,.66);
  }
  .drawer-res-val {
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    color: #f6d267;
    text-shadow: 0 2px 10px rgba(201,162,39,.22);
  }
  .drawer-res-empty {
    font-size: 11px;
    color: rgba(255,255,255,.55);
    padding: 6px 0;
  }
  .drawer-var-single { font-size: 12px; color: var(--muted); font-weight: 600; }
  .drawer-variante {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; min-height: 16px;
  }
  .drawer-var-btn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    width: 56px;
    background: var(--dark3); border: 1.5px solid rgba(255,255,255,.12);
    border-radius: 9px; color: var(--text); font-family: inherit;
    padding: 5px 4px 6px; cursor: pointer; transition: all .15s;
  }
  .drawer-var-btn.active { background: rgba(22,163,74,.15); border-color: #16a34a; box-shadow: 0 0 0 1px #16a34a; }
  .drawer-var-img {
    width: 36px; height: 36px; border-radius: 6px; overflow: hidden;
    background: rgba(255,255,255,.05);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .drawer-var-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .drawer-var-img span { font-size: 18px; }
  .drawer-var-nombre {
    font-size: 9px; font-weight: 700; color: var(--text);
    text-align: center; line-height: 1.2;
    white-space: normal; word-break: break-word; max-width: 100%;
  }

  .drawer-modo-wrap { display: flex; gap: 8px; margin-bottom: 16px; }
  .drawer-tab {
    flex: 1; background: var(--dark3); border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 10px; color: var(--text); font-family: inherit;
    font-size: 11px; font-weight: 800; padding: 8px 4px; cursor: pointer;
    text-align: center; line-height: 1.3; transition: all .15s;
  }
  .drawer-tab small { font-size: 11px; font-weight: 600; color: var(--muted); }
  .drawer-tab.active { background: var(--gold); color: #000; border-color: var(--gold); }
  .drawer-tab.active small { color: rgba(0,0,0,.7); }

  .drawer-calc {
    background: var(--dark3); border-radius: 14px;
    padding: 14px 16px; margin-bottom: 16px;
    display: flex; flex-direction: column; gap: 12px;
  }
  .drawer-calc-qty {
    display: flex; align-items: center; justify-content: center; gap: 18px;
  }
  .drawer-qty-btn {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.15);
    color: var(--text); font-size: 24px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s; line-height: 1;
  }
  .drawer-qty-btn:hover { background: rgba(255,255,255,.2); }
  .drawer-qty-info {
    display: flex; flex-direction: column; align-items: center; min-width: 44px;
  }
  .drawer-qty-num   { font-size: 22px; font-weight: 900; color: var(--text); line-height: 1; }
  .drawer-qty-label { font-size: 10px; color: var(--muted); font-weight: 600; }
  .drawer-calc-precios {
    display: flex; justify-content: space-between; align-items: flex-end;
    border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px;
  }
  .drawer-total-block { min-width: 0; }
  .drawer-total-block:last-child { text-align: right; }
  .drawer-precio-label { font-size: 10px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
  .drawer-precio-unit  { font-size: 15px; font-weight: 800; color: var(--text); }
  .drawer-total-val    { font-size: 20px; font-weight: 900; color: var(--gold); line-height: 1; }

  .drawer-btn-agregar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 54px; border: none; border-radius: 16px;
    background: var(--gold); color: #000;
    font-family: inherit; font-size: 16px; font-weight: 900;
    letter-spacing: .5px; cursor: pointer;
    transition: background .15s; box-shadow: 0 4px 18px rgba(201,162,39,.35);
  }
  .drawer-btn-agregar:hover { background: var(--gold2); }

  .toast-agregar {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: 12px;
    left: auto;
    transform: translateY(-8px);
    background: #16a34a;
    border: none;
    color: #fff;
    border-radius: 14px;
    padding: 10px 16px;
    font-size: 13px; font-weight: 800;
    opacity: 0; transition: opacity .22s, transform .22s;
    pointer-events: none; white-space: nowrap; z-index: 9000;
    box-shadow: 0 6px 24px rgba(0,0,0,.45);
    max-width: calc(100vw - 24px);
    overflow: hidden; text-overflow: ellipsis;
  }
  .toast-agregar.visible { opacity: 1; transform: translateY(0); }
}

/* Desktop: ocultar elementos solo-mobile */
@media (min-width: 801px) {
  .prod-vars-row     { display: none; }
  .precios-mobile-list { display: none; }
}

@media (max-width: 600px) {
  .site-header      { padding: 28px 10px; gap: 6px; }
  .header-logo      { font-size: 16px; flex-shrink: 0; }
  .btn-header-outline { display: none; }
  .header-search    { display: none; }
  .header-search.search-open {
    display: flex;
    position: absolute; left: 10px; right: 10px; top: 10px;
    z-index: 200; max-width: none;
    background: var(--dark3);
    border: 1.5px solid var(--gold);
    border-radius: 30px;
  }
  .header-search input { font-size: 13px; height: 34px; }
  .search-close-btn {
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: var(--muted); padding: 0 10px; transition: color .15s;
  }
  .search-close-btn:hover { color: var(--text); }
  .header-actions   { margin-left: auto; flex-shrink: 0; gap: 4px; }
  #btn-install-app { padding: 7px 9px; gap: 4px; }

/* ─── Botón comentarios lateral ─────────────────────────── */
  .prod-comment-btn {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(100,160,255,.14);
    border: 1.5px solid rgba(100,160,255,.38);
    color: rgba(180,210,255,.9);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .18s, transform .15s;
    font-family: inherit;
  }
  .prod-comment-btn:active { transform: scale(.92); background: rgba(100,160,255,.28); }

/* ─── Mute fijo en área de video ─────────────────────────── */
  .vid-mute-fixed {
    position: absolute;
    top: calc(2px + 20px + 2px);   /* debajo de la barra de progreso */
    right: 15px;
    z-index: 12;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    border: 1.5px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.85);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .18s, transform .15s;
    font-family: inherit;
  }
  .vid-mute-fixed:active { transform: scale(.9); }
  

/* ─── Overlay centro play/pause (toca el video) ──────────── */
  .vid-center-overlay {
    position: absolute;
    inset: 0;
    z-index: 11;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
  }
  .vid-center-overlay.show { opacity: 1; }
  .vid-center-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(0,0,0,.50);
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s;
  }
  .vid-center-overlay.show .vid-center-icon { transform: scale(1.08); }

/* ─── bnav-cart-fab variante reponer ─────────────────────── */
  .bnav-cart-fab.reponer-mode {
    background: linear-gradient(135deg, #4a6fa5, #3a5a8a);
    box-shadow: 0 -4px 22px rgba(60,100,180,.55);
    animation: none;
  }
  .bnav-cart-fab.reponer-mode:hover { background: #4a7fc5; }

/* ─── Modal comentarios ───────────────────────────────────── */
  .modal-comentarios-wrap {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgba(0,0,0,.65);
    padding: 0;
    opacity: 0; pointer-events: none;
    transition: opacity .22s;
  }
  .modal-comentarios-wrap.open { opacity: 1; pointer-events: auto; }
  .modal-comentarios {
    width: 100%; max-width: 520px;
    background: #1a1a2e;
    border-radius: 18px 18px 0 0;
    display: flex; flex-direction: column;
    height: 90vh;
    transform: translateY(30px);
    transition: transform .22s;
  }
  .modal-comentarios-wrap.open .modal-comentarios { transform: translateY(0); }
  .cmt-header {
    padding: 16px 20px 10px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
  }
  .cmt-header-title {
    font-size: 16px; font-weight: 800; color: #fff;
    display: flex; align-items: center; gap: 8px;
  }
  .cmt-close-btn {
    background: rgba(255,255,255,.08); border: none;
    color: rgba(255,255,255,.6); border-radius: 50%;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; font-family: inherit;
    transition: background .15s;
  }
  .cmt-close-btn:hover { background: rgba(255,255,255,.15); }
  .cmt-feed {
    overflow-y: auto; flex: 1;
    padding: 12px 16px;
    display: flex; flex-direction: column; gap: 12px;
  }
  .cmt-item {
    display: flex; gap: 10px; align-items: flex-start;
  }
  .cmt-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #4a6fa5, #c9a227);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; color: #fff;
    flex-shrink: 0;
  }
  .cmt-body { flex: 1; }
  .cmt-meta {
    display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
  }
  .cmt-author { font-size: 13px; font-weight: 800; color: rgba(255,255,255,.9); }
  .cmt-time { font-size: 11px; color: rgba(255,255,255,.4); }
  .cmt-stars-display { color: #f5b700; font-size: 12px; letter-spacing: 1px; }
  .cmt-text { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.5; }
  /* Replies anidadas */
  .cmt-replies {
    margin-left: 46px; margin-top: 6px;
    display: flex; flex-direction: column; gap: 8px;
    border-left: 2px solid rgba(255,255,255,.1);
    padding-left: 10px;
  }
  .cmt-reply-item {
    display: flex; gap: 8px; align-items: flex-start;
  }
  .cmt-avatar-sm {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, #3a5a8a, #8a3a5a);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: #fff;
    flex-shrink: 0;
  }
  /* Formulario inline de respuesta */
  .cmt-reply-form {
    margin: 4px 0 4px 46px;
    padding: 10px 12px;
    background: rgba(255,255,255,.04);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.1);
    display: flex; flex-direction: column; gap: 7px;
  }
  /* Formulario inline de edición */
  .cmt-edit-form {
    display: flex; flex-direction: column; gap: 7px;
    margin-top: 6px;
  }
  .cmt-form-btns {
    display: flex; gap: 8px; margin-top: 2px;
  }
  .cmt-btn-cancel {
    padding: 8px 12px; font-size: 12px;
    background: rgba(255,255,255,.08); border-radius: 8px;
    border: none; color: rgba(255,255,255,.7);
    cursor: pointer; font-family: inherit;
    transition: background .15s;
  }
  .cmt-btn-cancel:hover { background: rgba(255,255,255,.14); }
    display: flex; gap: 14px; margin-top: 5px;
  }
  .cmt-action-btn {
    background: none; border: none; padding: 0;
    font-size: 11px; font-weight: 800; cursor: pointer;
    font-family: inherit; letter-spacing: .2px;
    transition: opacity .15s;
  }
  .cmt-action-btn:hover { opacity: .65; }
  .cmt-action-reply  { color: rgba(100,160,255,.9); }
  .cmt-action-edit   { color: rgba(255,200,60,.9); }
  .cmt-action-delete { color: rgba(255,80,80,.8); }
  .cmt-reply-hint {
    font-size: 12px; color: rgba(100,160,255,.7);
    padding: 4px 0 2px;
    font-style: italic;
  }
  .cmt-empty {
    text-align: center; color: rgba(255,255,255,.35);
    padding: 32px 0; font-size: 14px;
  }
  .cmt-form {
    padding: 14px 16px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
    display: flex; flex-direction: column; gap: 10px;
  }
  .cmt-form-title {
    font-size: 13px; font-weight: 700;
    color: rgba(255,255,255,.65);
  }
  .cmt-textarea {
    padding: 10px 14px; border-radius: 10px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff; font-size: 13px; font-family: inherit;
    resize: none; min-height: 72px; outline: none;
    transition: border-color .15s;
  }
  .cmt-textarea:focus { border-color: rgba(100,160,255,.5); }
  .cmt-stars-picker {
    display: flex; gap: 6px;
  }
  .cmt-star {
    font-size: 28px; cursor: pointer; color: rgba(255,255,255,.2);
    transition: color .1s, transform .1s;
    line-height: 1;
    user-select: none;
  }
  .cmt-star.on { color: #f5b700; }
  .cmt-star:hover { transform: scale(1.2); }
  .btn-publicar-opinion {
    padding: 13px 20px; border-radius: 11px;
    background: linear-gradient(135deg, #4a6fa5, #3a5a8a);
    color: #fff; font-size: 14px; font-weight: 800;
    border: none; cursor: pointer; font-family: inherit;
    transition: filter .2s, transform .15s;
    letter-spacing: .2px;
  }
  .btn-publicar-opinion:hover { filter: brightness(1.12); transform: translateY(-1px); }
  .btn-publicar-opinion:active { transform: translateY(0); }

  #btn-install-app .install-app-text { font-size: 0; }
  #btn-install-app .install-app-text::after { content: 'App'; font-size: 12px; }
  .cart-btn { padding: 7px 10px; gap: 4px; }
  .cart-btn-text { display: none; }
}

@media (max-width: 400px) {
  .header-logo span { display: none; }
  .precio-minorista { font-size: 22px; }
}

/* Toast sobre bottom-nav en mobile */
@media (max-width: 800px) {
  .toast-container { bottom: calc(var(--nav-h) + 16px); }
}

/* ═══ DRILL-DOWN SIDEBAR ═══════════════════════════════ */
@keyframes sbSlideIn {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes sbSlideInBack {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: translateX(0); }
}
.sb-slide-in      { animation: sbSlideIn .28s cubic-bezier(.4,0,.2,1) both; }
.sb-slide-in-back { animation: sbSlideInBack .28s cubic-bezier(.4,0,.2,1) both; }

/* Barra de retroceso */
.sb-back-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 8px;
  margin: 0 0 4px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 8px;
}
.sb-back-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  color: rgba(255,255,255,.6); font-size: 11px; font-weight: 800;
  font-family: inherit; padding: 5px 10px; border-radius: 20px;
  transition: color .15s, background .15s, border-color .15s;
  letter-spacing: .4px; text-transform: uppercase;
  white-space: nowrap;
}
.sb-back-btn:hover { color: var(--gold); background: rgba(201,162,39,.1); border-color: rgba(201,162,39,.3); }
.sb-back-btn svg { flex-shrink: 0; }

/* Título del nivel activo */
.sb-nivel-titulo {
  font-size: 11px; font-weight: 800; color: var(--gold);
  letter-spacing: .3px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 110px;
}

/* Flecha → en items de rubro/categoria */
.sb-arrow-right {
  flex-shrink: 0; margin-left: auto; color: rgba(255,255,255,.25);
  transition: transform .15s, color .15s;
}
.filtro-item:hover .sb-arrow-right { color: var(--gold); transform: translateX(3px); }
.filtro-item.active .sb-arrow-right { color: var(--gold); }

/* Panel marcas con separador superior */
#sb-panel-marcas > .filtro-seccion {
  border-top: 1px solid rgba(201,162,39,.12);
  padding-top: 12px;
  margin-top: 6px;
  position: relative;
}
#sb-panel-marcas > .filtro-seccion::before {
  content: '';
  position: absolute; top: -1px; left: 14px; right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,.3), transparent);
}

/* ── ONBOARDING SWIPE HINT ──────────────────────────── */
.swipe-hint {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-end; justify-content: center;
  padding-bottom: calc(var(--nav-h) + 30px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
.swipe-hint.visible {
  display: flex;
  pointer-events: auto;
  animation: swipeHintIn .35s ease forwards;
}
@keyframes swipeHintIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.swipe-hint-inner {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  user-select: none;
}
.swipe-hand {
  animation: swipeBounce 1.1s ease-in-out infinite;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.6));
}
.swipe-arrow {
  animation: swipeBounce 1.1s ease-in-out infinite .18s;
  opacity: .85;
}
@keyframes swipeBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}
.swipe-hint-txt {
  font-size: 14px; font-weight: 800;
  color: rgba(255,255,255,.9);
  letter-spacing: .2px;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
  margin-top: 4px;
}

/* ── CHIP FILTRO FAVORITOS ACTIVO ── */
.chip-favs-activo {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,45,102,.22), rgba(255,45,102,.12));
  border: 1px solid rgba(255,45,102,.4);
  color: #ff6b8a; font-size: 12px; font-weight: 800;
  font-family: inherit; cursor: pointer;
  letter-spacing: .3px;
  transition: background .15s, border-color .15s;
}
.chip-favs-activo:hover {
  background: linear-gradient(135deg, rgba(255,45,102,.32), rgba(255,45,102,.2));
  border-color: rgba(255,45,102,.6);
}
