/* ============================================================
   ROKI Market — Design System
   Poppins · Naranja #FF6B35 · moderno, con transiciones suaves
   ============================================================ */

@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/poppins-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/poppins-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/poppins-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/poppins-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/poppins-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --roki-orange:      #FF6B35;
  --roki-orange-dark: #E5541F;
  --roki-orange-soft: #FFF1EA;
  --ink:              #1E2330;
  --ink-soft:         #5A6072;
  --surface:          #FFFFFF;
  --surface-alt:      #F6F7F9;
  --line:             #E6E8EE;
  --success:          #1F9D55;
  --danger:           #D64545;
  --star:             #FFB020;

  /* La Brand Store sobreescribe estos en su página */
  --store-primary:      var(--roki-orange);
  --store-primary-dark: var(--roki-orange-dark);
  --store-accent:       var(--roki-orange-dark);
  --store-soft:         var(--roki-orange-soft);
  --store-on-primary:   #FFFFFF;

  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(30,35,48,.06);
  --shadow-md: 0 6px 24px rgba(30,35,48,.10);
  --shadow-lg: 0 16px 48px rgba(30,35,48,.16);
  --t-fast: 160ms cubic-bezier(.4,0,.2,1);
  --t-med:  280ms cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 15px; line-height: 1.6;
  color: var(--ink); background: var(--surface-alt);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilidades ---------- */
.container { max-width: 1360px; margin: 0 auto; padding: 0 16px; }
.eyebrow { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; line-height: 1;
  padding: 13px 22px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast),
              transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--roki-orange); color: #fff; }
.btn-primary:hover { background: var(--roki-orange-dark); box-shadow: 0 6px 18px rgba(255,107,53,.35); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-store { background: var(--store-primary); color: var(--store-on-primary); }
.btn-store:hover { background: var(--store-primary-dark); box-shadow: 0 6px 18px color-mix(in srgb, var(--store-primary) 35%, transparent); }
.btn-store-outline { background: transparent; color: var(--store-primary); border-color: var(--store-primary); }
.btn-store-outline:hover { background: var(--store-soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c3242; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Formularios ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--roki-orange);
  box-shadow: 0 0 0 3px rgba(255,107,53,.15);
}
.textarea { min-height: 110px; resize: vertical; }
.field .error { color: var(--danger); font-size: 12.5px; margin-top: 4px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 999px;
}
.badge-orange { background: var(--roki-orange-soft); color: var(--roki-orange-dark); }
.badge-success { background: #E7F6EE; color: var(--success); }
.badge-danger { background: #FBEAEA; color: var(--danger); }
.badge-muted { background: var(--surface-alt); color: var(--ink-soft); }
.badge-store { background: var(--store-soft); color: var(--store-primary); }
.badge-discount { background: var(--danger); color: #fff; }

/* ---------- Tarjetas ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* ---------- Header marketplace ---------- */
.top-strip {
  background: var(--ink); color: rgba(255,255,255,.85);
  font-size: 12.5px; height: 32px; display: flex; align-items: center;
}
.top-strip .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.top-strip a:hover { color: var(--roki-orange); }

.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 60; box-shadow: var(--shadow-md); }
.site-header .bar { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { font-weight: 700; font-size: 24px; letter-spacing: -.02em; color: #fff; flex-shrink: 0; }
.logo em { color: var(--roki-orange); font-style: normal; }

.search-wrap { flex: 1; position: relative; }
.site-header .header-actions { margin-left: auto; }
.search-form { display: flex; }
.search-form input {
  flex: 1; padding: 11px 16px; border: none; border-radius: 10px 0 0 10px;
  font-size: 14px; background: #fff; color: var(--ink);
}
.search-form input:focus { outline: 2px solid var(--roki-orange); }
.search-form button {
  background: var(--roki-orange); color: #fff; border: none;
  padding: 0 18px; border-radius: 0 10px 10px 0; cursor: pointer; font-size: 17px;
  transition: background var(--t-fast);
}
.search-form button:hover { background: var(--roki-orange-dark); }
.suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70;
  background: #fff; color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg);
  overflow: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.suggestions.open { opacity: 1; transform: none; pointer-events: auto; }
.suggestions a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; transition: background var(--t-fast); }
.suggestions a:hover { background: var(--surface-alt); }
.suggestions img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.suggestions .s-label { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-action {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #fff; font-size: 11.5px; padding: 6px 10px; border-radius: 8px;
  transition: background var(--t-fast);
}
.header-action:hover { background: rgba(255,255,255,.10); }
.header-action .ico { font-size: 19px; line-height: 1; }
.cart-count {
  position: absolute; top: -4px; right: -6px; background: var(--roki-orange);
  color: #fff; font-size: 10.5px; font-weight: 700; min-width: 17px; height: 17px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.cat-row { background: #272d3d; height: 40px; overflow-x: auto; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-row .container { display: flex; gap: 4px; height: 100%; align-items: center; }
.cat-row a {
  color: rgba(255,255,255,.85); font-size: 13px; font-weight: 500;
  padding: 5px 12px; border-radius: 8px; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast);
}
.cat-row a:hover { background: rgba(255,255,255,.10); color: #fff; }

/* ---------- Hero carousel ---------- */
.hero-carousel { position: relative; border-radius: var(--radius); overflow: hidden; margin: 16px 0; box-shadow: var(--shadow-md); }
.hero-track { display: flex; transition: transform 600ms cubic-bezier(.4,0,.2,1); }
.hero-slide { min-width: 100%; position: relative; }
.hero-slide img { width: 100%; height: 380px; object-fit: cover; }
@media (max-width: 720px) { .hero-slide img { height: 300px; } }
.hero-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,.55); transition: all var(--t-fast);
}
.hero-dots button.active { background: #fff; width: 26px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--ink); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; transition: opacity var(--t-fast), background var(--t-fast);
}
.hero-carousel:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: #fff; }
.hero-arrow.prev { left: 14px; } .hero-arrow.next { right: 14px; }

/* ---------- Tira de categorías ---------- */
.cat-strip { display: flex; gap: 20px; overflow-x: auto; padding: 8px 2px 16px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 92px; }
.cat-circle .ring {
  width: 84px; height: 84px; border-radius: 999px; overflow: hidden;
  border: 2.5px solid var(--line); background: #fff;
  transition: border-color var(--t-fast), transform var(--t-med), box-shadow var(--t-med);
}
.cat-circle:hover .ring { border-color: var(--roki-orange); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-circle .ring img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle span { font-size: 12.5px; font-weight: 500; text-align: center; line-height: 1.3; }

/* ---------- Secciones / grids ---------- */
.section { margin: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-weight: 600; font-size: 24px; margin: 0; letter-spacing: -.01em; }
.section-head a { color: var(--roki-orange-dark); font-weight: 600; font-size: 13.5px; }
.section-head a:hover { text-decoration: underline; }

.grid-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px)  { .grid-products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-products { grid-template-columns: repeat(5, 1fr); gap: 16px; } }

/* ---------- Product card ---------- */
.pcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative; display: flex; flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.pcard .pimg { aspect-ratio: 1; background: #fff; position: relative; overflow: hidden; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--t-med), opacity var(--t-med); }
.pcard:hover .pimg img.primary { transform: scale(1.05); }
.pcard .pimg img.secondary { position: absolute; inset: 0; opacity: 0; }
.pcard:hover .pimg img.secondary { opacity: 1; }
.pcard:hover .pimg img.secondary + img.primary,
.pcard .pimg img.secondary:hover { opacity: 1; }
.pcard .pbadges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.pcard .pbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .ptitle {
  font-weight: 500; font-size: 14px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.8em;
}
.pcard .pstore { font-size: 12px; color: var(--ink-soft); }
.pcard .pstore:hover { color: var(--roki-orange-dark); }
.pcard .pstars { font-size: 12.5px; color: var(--star); letter-spacing: 1px; }
.pcard .pstars .n { color: var(--ink-soft); letter-spacing: 0; margin-left: 4px; }
.pcard .pprice { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; }
.pcard .pprice .now { font-weight: 700; font-size: 17px; color: var(--ink); }
.pcard .pprice .was { font-size: 12.5px; color: var(--ink-soft); text-decoration: line-through; }
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-fast), background var(--t-fast);
}
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.active { color: var(--danger); }

/* ---------- Banners dobles ---------- */
.tiles-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .tiles-2 { grid-template-columns: 1fr 1fr; } }
.tile { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t-med), box-shadow var(--t-med); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tile img { width: 100%; height: 220px; object-fit: cover; }

/* ---------- Tarjeta de tienda destacada ---------- */
.grid-stores { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px)  { .grid-stores { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-stores { grid-template-columns: repeat(4, 1fr); } }
.store-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.store-card .shead { display: flex; align-items: center; gap: 12px; }
.store-card .slogo { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.store-card .sname { font-weight: 600; font-size: 15px; }
.store-card .spalette { display: flex; gap: 4px; margin-top: 3px; }
.store-card .spalette i { width: 14px; height: 14px; border-radius: 4px; }
.store-card .sprods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.store-card .sprods img { aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }

/* ---------- Franja de confianza ---------- */
.trust { display: grid; grid-template-columns: 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (min-width: 720px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.trust-item .ico { font-size: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); margin-top: 48px; padding: 40px 0 24px; font-size: 13.5px; }
.site-footer .cols { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.site-footer a { display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--roki-orange); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: rgba(255,255,255,.55); }

/* ---------- Página de producto ---------- */
.product-layout { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 20px; }
@media (min-width: 960px) { .product-layout { grid-template-columns: 55fr 45fr; } }
.gallery { display: flex; gap: 12px; }
.gallery .thumbs { display: flex; flex-direction: column; gap: 8px; width: 64px; flex-shrink: 0; }
.gallery .thumbs img {
  width: 64px; height: 64px; object-fit: contain; background: #fff;
  border: 2px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color var(--t-fast);
}
.gallery .thumbs img.active, .gallery .thumbs img:hover { border-color: var(--roki-orange); }
.gallery .main { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery .main img { width: 100%; aspect-ratio: 1; object-fit: contain; cursor: zoom-in; }

/* Zoom de lupa con panel lateral (solo desktop con puntero fino) */
.zoom-lens {
  position: absolute; width: 160px; height: 160px; border: 2px solid var(--roki-orange);
  background: rgba(255,107,53,.12); border-radius: 8px; pointer-events: none; display: none; z-index: 5;
}
.zoom-pane {
  position: absolute; top: 0; left: calc(100% + 14px); width: 460px; height: 460px;
  background: #fff no-repeat; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: none; z-index: 40;
}
@media (min-width: 1100px) and (pointer: fine) {
  .gallery .main.zoom-active:hover .zoom-lens, .gallery .main.zoom-active:hover ~ .zoom-pane,
  .gallery .main.zoom-active:hover + .zoom-pane { display: block; }
}

.buybox { display: flex; flex-direction: column; gap: 12px; }
.buybox h1 { font-weight: 600; font-size: clamp(20px, 3vw, 26px); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.seller-line { font-size: 13.5px; color: var(--ink-soft); }
.seller-line a { color: var(--roki-orange-dark); font-weight: 600; }
.seller-line a:hover { text-decoration: underline; }
.price-row { display: flex; align-items: baseline; gap: 12px; }
.price-row .now { font-weight: 700; font-size: 32px; letter-spacing: -.02em; }
.price-row .was { font-size: 16px; color: var(--ink-soft); text-decoration: line-through; }
.stock-line { font-size: 14px; font-weight: 500; }
.stock-line.ok { color: var(--success); } .stock-line.out { color: var(--danger); }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty-stepper button { width: 40px; height: 44px; border: none; background: var(--surface-alt); font-size: 18px; cursor: pointer; transition: background var(--t-fast); }
.qty-stepper button:hover { background: var(--line); }
.qty-stepper input { width: 52px; height: 44px; border: none; text-align: center; font-weight: 600; font-size: 15px; }
.ship-summary { background: var(--surface-alt); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.trust-micro { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }

.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.specs-table td:first-child { font-weight: 500; width: 38%; color: var(--ink-soft); }

/* barra móvil fija */
.mobile-buybar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(30,35,48,.12);
  padding: 10px 16px; display: flex; align-items: center; gap: 14px;
}
@media (min-width: 960px) { .mobile-buybar { display: none; } }

/* ---------- Carrito drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(30,35,48,.5); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity var(--t-med);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); z-index: 95;
  background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform var(--t-med);
  /* El JS ajusta top para respetar el header; el cuerpo escrolea internamente:
     la página nunca necesita scroll vertical sin importar cuántos productos haya. */
}
.cart-drawer.open { transform: none; }
.cart-drawer .dhead { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-drawer .dhead h3 { margin: 0; font-size: 17px; font-weight: 600; }
.cart-drawer .dbody { flex: 1; overflow-y: auto; padding: 14px 20px; }
.cart-drawer .dfoot { border-top: 1px solid var(--line); padding: 16px 20px; }
.drawer-close { border: none; background: var(--surface-alt); width: 34px; height: 34px; border-radius: 999px; cursor: pointer; font-size: 15px; transition: background var(--t-fast); }
.drawer-close:hover { background: var(--line); }
.cart-line { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--surface-alt); }
.cart-line img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cart-line .cl-title { font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.cart-line .cl-price { font-weight: 700; font-size: 14px; }

/* ---------- Filtros catálogo ---------- */
.catalog-layout { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 20px; }
@media (min-width: 960px) { .catalog-layout { grid-template-columns: 240px 1fr; } }
.filter-rail { display: flex; flex-direction: column; gap: 18px; align-self: start; position: sticky; top: 84px; }
.filter-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filter-group h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 4px 0; cursor: pointer; }

/* ---------- Brand Store ---------- */
.store-utility-bar { background: var(--ink); color: #fff; height: 48px; position: sticky; top: 0; z-index: 60; }
.store-utility-bar .container { display: flex; align-items: center; gap: 14px; height: 100%; }
.store-utility-bar .monogram { font-weight: 700; font-size: 19px; color: #fff; }
.store-utility-bar .monogram em { color: var(--roki-orange); font-style: normal; }

.store-masthead { position: relative; }
.store-masthead .banner { height: 280px; background-size: cover; background-position: center; }
@media (max-width: 720px) { .store-masthead .banner { height: 180px; } }
.store-idcard {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 18px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: -56px; position: relative;
}
.store-idcard .slogo { width: 96px; height: 96px; border-radius: 16px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.store-idcard h1 { margin: 0; font-weight: 700; font-size: clamp(20px, 3vw, 28px); letter-spacing: -.02em; }
.verified-badge { color: var(--store-primary); font-weight: 600; font-size: 13px; }

.store-nav { position: sticky; top: 48px; z-index: 55; background: #fff; border-bottom: 2px solid var(--line); margin-top: 18px; }
.store-nav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.store-nav a {
  padding: 14px 18px; font-weight: 600; font-size: 14px; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -2px; color: var(--ink-soft);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.store-nav a:hover { color: var(--store-primary); }
.store-nav a.active { color: var(--store-primary); border-color: var(--store-primary); }

.store-hero2 {
  border-radius: var(--radius); overflow: hidden; position: relative; margin: 24px 0;
  background: linear-gradient(120deg, var(--store-primary), var(--store-accent));
  color: var(--store-on-primary); padding: 40px; display: flex; flex-direction: column; gap: 12px;
}
.store-hero2 h2 { margin: 0; font-size: clamp(22px, 4vw, 34px); font-weight: 700; letter-spacing: -.02em; }

/* ============================================================
   Temas de layout de tienda (el vendedor elige uno de 5)
   ============================================================ */

/* --- MINIMAL: limpio, sin banner, foco en productos --- */
.sm-minimal { background: #fff; border-bottom: 1px solid var(--line); }
.sm-minimal-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.sm-minimal .slogo-sm { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.sm-minimal h1 { margin: 0; font-size: clamp(18px, 2.5vw, 24px); font-weight: 600; letter-spacing: -.01em; }
.sm-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink-soft); }
.store-layout-minimal .store-nav { margin-top: 0; border-bottom-width: 1px; }
.store-layout-minimal .pcard { border-color: transparent; box-shadow: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.store-layout-minimal .pcard:hover { transform: none; box-shadow: none; }
.store-layout-minimal .pcard:hover .pimg img.primary { transform: scale(1.03); }
.store-layout-minimal .section-head h2 { font-weight: 500; letter-spacing: .02em; }
.store-layout-minimal .store-hero2 { background: var(--store-soft); color: var(--ink); }
.store-layout-minimal .store-hero2 .btn { background: var(--store-primary); color: var(--store-on-primary); }

/* --- BOUTIQUE: hero alto con identidad centrada --- */
.sm-boutique .banner {
  height: 420px; background-size: cover; background-position: center; position: relative;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 720px) { .sm-boutique .banner { height: 340px; } }
.sm-boutique .banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,23,31,.25), rgba(20,23,31,.66)); }
.sm-boutique-overlay { position: relative; text-align: center; color: #fff; padding: 0 20px; max-width: 640px; }
.sm-boutique-overlay .slogo-b {
  width: 104px; height: 104px; border-radius: 999px; object-fit: contain; background: #fff;
  margin: 0 auto 14px; box-shadow: var(--shadow-lg); border: 3px solid rgba(255,255,255,.85);
}
.sm-boutique-overlay h1 { margin: 0; font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -.02em; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.sm-boutique-overlay .sm-tagline { margin: 6px 0 0; font-size: 15px; opacity: .92; }
.sm-meta-light { justify-content: center; color: rgba(255,255,255,.85); margin-top: 10px; }
.sm-meta-light a, .sm-meta-light .verified-badge { color: #fff !important; }
.store-layout-boutique .store-nav .container { justify-content: center; }
.store-layout-boutique .grid-products { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .store-layout-boutique .grid-products { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.store-layout-boutique .pcard .ptitle { font-size: 15px; }
.store-layout-boutique .section-head { justify-content: center; text-align: center; }
.store-layout-boutique .section-head h2 { font-size: 26px; }

/* --- VITRINA: fondo oscuro dramático, los productos brillan --- */
.store-layout-vitrina { background: #14171F; color: #E8EAF0; }
.store-layout-vitrina .store-masthead .banner { height: 300px; }
.store-layout-vitrina .store-idcard { background: #1D2230; color: #E8EAF0; box-shadow: 0 16px 48px rgba(0,0,0,.5); }
.store-layout-vitrina .store-idcard h1 { color: #fff; }
.store-layout-vitrina .sm-meta { color: #9AA3B5; }
.store-layout-vitrina .store-nav { background: #1D2230; border-bottom-color: #2A3040; }
.store-layout-vitrina .store-nav a { color: #9AA3B5; }
.store-layout-vitrina .store-nav a.active, .store-layout-vitrina .store-nav a:hover { color: var(--store-primary); }
.store-layout-vitrina .pcard { background: #1D2230; border-color: #2A3040; }
.store-layout-vitrina .pcard .ptitle, .store-layout-vitrina .pcard .pprice .now { color: #E8EAF0; }
.store-layout-vitrina .pcard .pstore, .store-layout-vitrina .pcard .pprice .was { color: #8A93A6; }
.store-layout-vitrina .section-head h2 { color: #fff; }
.store-layout-vitrina .empty-state { background: #1D2230; border-color: #2A3040; color: #E8EAF0; }
.store-layout-vitrina .card, .store-layout-vitrina .filter-group { background: #1D2230; border-color: #2A3040; color: #E8EAF0; }
.store-layout-vitrina .review-item { border-color: #2A3040; }
.store-layout-vitrina .review-reply { background: #232939; }
.store-layout-vitrina .input, .store-layout-vitrina .select { background: #232939; border-color: #2A3040; color: #E8EAF0; }

/* --- MERCADO: denso estilo bazar, máximo producto por pantalla --- */
.sm-mercado .banner { height: 150px !important; }
.store-layout-mercado .store-idcard { padding: 12px 16px; margin-top: -34px; }
.store-layout-mercado .store-idcard .slogo { width: 60px; height: 60px; }
.store-layout-mercado .store-idcard h1 { font-size: 19px; }
.store-layout-mercado .grid-products { gap: 10px; }
@media (min-width: 1024px) { .store-layout-mercado .grid-products { grid-template-columns: repeat(6, 1fr); } }
.store-layout-mercado .pcard .pbody { padding: 8px 10px 10px; gap: 2px; }
.store-layout-mercado .pcard .ptitle { font-size: 12.5px; min-height: 2.6em; }
.store-layout-mercado .pcard .pprice .now { font-size: 14.5px; }
.store-layout-mercado .section { margin: 18px 0; }
.store-layout-mercado .section-head h2 { font-size: 18px; }
.store-layout-mercado .store-hero2 { padding: 22px 26px; }
.store-layout-mercado .store-hero2 h2 { font-size: 22px; }

/* ---------- Paneles (seller y admin) ---------- */
.panel-layout { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 960px) { .panel-layout { grid-template-columns: 240px 1fr; } }
.panel-side { background: var(--ink); color: rgba(255,255,255,.8); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.panel-side .plogo { font-weight: 700; font-size: 20px; color: #fff; padding: 4px 12px 18px; }
.panel-side .plogo em { color: var(--roki-orange); font-style: normal; }
.panel-side a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; transition: background var(--t-fast), color var(--t-fast);
}
.panel-side a:hover { background: rgba(255,255,255,.08); color: #fff; }
.panel-side a.active { background: var(--roki-orange); color: #fff; }
.panel-side .psec { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.4); padding: 14px 12px 4px; }
.panel-badge {
  margin-left: auto; background: var(--roki-orange); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
}
.panel-main { padding: 24px; background: var(--surface-alt); }
.panel-main h1 { font-size: 24px; font-weight: 600; margin: 0 0 20px; letter-spacing: -.01em; }

.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
@media (min-width: 960px) { .stat-cards { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: box-shadow var(--t-med); }
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.stat-card .value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.stat-card .sub { font-size: 12.5px; color: var(--ink-soft); }
.stat-card.alert .value { color: var(--roki-orange-dark); }

.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: 13.5px; box-shadow: var(--shadow-sm); }
.data-table th { background: var(--surface-alt); text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); padding: 12px 14px; }
.data-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.data-table tr { transition: background var(--t-fast); }
.data-table tbody tr:hover { background: #FCFCFD; }
.data-table img.thumb { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.table-wrap { overflow-x: auto; }

/* ---------- Timeline de pedido ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; padding-left: 8px; }
.timeline .titem { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.timeline .titem::before { content: ''; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline .titem:last-child::before { display: none; }
.timeline .tdot { width: 16px; height: 16px; border-radius: 999px; background: var(--line); flex-shrink: 0; margin-top: 3px; z-index: 1; transition: background var(--t-med); }
.timeline .titem.done .tdot { background: var(--success); }
.timeline .titem.current .tdot { background: var(--roki-orange); box-shadow: 0 0 0 5px var(--roki-orange-soft); }

/* ---------- OTP boxes ---------- */
.otp-boxes { display: flex; gap: 10px; justify-content: center; }
.otp-boxes input {
  width: 48px; height: 58px; text-align: center; font-size: 24px; font-weight: 700;
  border: 2px solid var(--line); border-radius: 12px; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.otp-boxes input:focus { outline: none; border-color: var(--roki-orange); box-shadow: 0 0 0 3px rgba(255,107,53,.15); }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 24px 0; }
@media (min-width: 960px) { .checkout-layout { grid-template-columns: 1fr 380px; } }
.checkout-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.checkout-step .step-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 600; }
.checkout-step .step-num {
  width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.checkout-step.done .step-num { background: var(--success); }
.checkout-step .step-body { padding: 0 20px 20px; }
.sandbox-badge {
  background: #FFF8E6; border: 1px solid #F0DCA8; color: #8A6D1A;
  border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.package-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.package-box .pk-head { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.ship-option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.ship-option:hover { border-color: var(--roki-orange); }
.ship-option.selected { border-color: var(--roki-orange); background: var(--roki-orange-soft); }

/* ---------- Flash / alerts ---------- */
.flash-stack { position: fixed; top: 76px; right: 16px; z-index: 120; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.flash {
  background: var(--ink); color: #fff; border-radius: 12px; padding: 13px 18px; font-size: 14px;
  box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center;
  animation: flash-in var(--t-med) both;
}
.flash.success { background: var(--success); }
.flash.error { background: var(--danger); }
@keyframes flash-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 56px 20px; background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty-state .ico { font-size: 44px; margin-bottom: 10px; }
.empty-state h3 { margin: 0 0 6px; font-weight: 600; }
.empty-state p { color: var(--ink-soft); margin: 0 0 18px; }

/* ---------- Animación de aparición ---------- */
.fade-up { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ---------- Reviews ---------- */
.stars { color: var(--star); letter-spacing: 2px; }
.review-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review-item .rhead { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.review-reply { background: var(--surface-alt); border-radius: 10px; padding: 10px 14px; margin-top: 10px; font-size: 13.5px; }

/* ---------- Auth pages ---------- */
.auth-card { max-width: 440px; margin: 48px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.auth-card .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }

/* ---------- Redes sociales de la tienda ---------- */
.store-social { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-link {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
  border: 1.5px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--store-primary, var(--ink)); text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.ss-link:hover { border-color: var(--store-primary, var(--roki-orange)); background: var(--store-soft, var(--roki-orange-soft)); transform: translateY(-2px); }
.ss-link.ss-wa { color: #25D366; border-color: #25D366; }
.ss-link.ss-wa:hover { background: #25D36618; }

/* Burbuja flotante de WhatsApp (en la Brand Store) */
.wa-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 0; height: 56px;
  background: #25D366; color: #fff; border-radius: 999px; padding: 0 16px;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); text-decoration: none;
  overflow: hidden; max-width: 56px; transition: max-width var(--t-med);
}
.wa-float svg { flex-shrink: 0; }
.wa-float .wa-txt { white-space: nowrap; font-weight: 600; font-size: 14px; margin-left: 10px; opacity: 0; transition: opacity var(--t-med); }
.wa-float:hover { max-width: 280px; }
.wa-float:hover .wa-txt { opacity: 1; }
@media (max-width: 640px) { .wa-float { left: 14px; bottom: 14px; } .wa-float:hover { max-width: 220px; } }

/* ---------- Ofertas Flash ---------- */
.flash-hero {
  border-radius: var(--radius); overflow: hidden; background-size: cover; background-position: center;
  min-height: 150px; display: flex; align-items: center; box-shadow: var(--shadow-md);
}
.flash-hero-inner { padding: 24px 32px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.flash-eyebrow { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.flash-hero-inner h2 { margin: 4px 0 2px; font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -.02em; }
.flash-hero-inner p { margin: 0; font-size: 14px; opacity: .95; }
.flash-card .pimg { position: relative; }
.flash-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: linear-gradient(135deg, #FF6B35, #E5261F); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: .03em;
}
.flash-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.flash-timer {
  font-weight: 700; font-size: 13px; color: #E5261F; font-variant-numeric: tabular-nums;
  background: #FFF1EA; padding: 3px 8px; border-radius: 8px;
}
.flash-timer.ending { animation: flash-pulse 1s infinite; }
@keyframes flash-pulse { 50% { opacity: .5; } }
.flash-stock { margin-top: 8px; }
.flash-bar { height: 6px; background: var(--surface-alt); border-radius: 999px; overflow: hidden; }
.flash-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FF6B35, #E5261F); border-radius: 999px; }
.flash-stock span { font-size: 11.5px; color: var(--ink-soft); display: block; margin-top: 3px; }
.flash-card.flash-ended { opacity: .5; pointer-events: none; }

/* ---------- Tour de bienvenida ---------- */
.tour-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(15,18,26,.72); opacity: 0; transition: opacity var(--t-med); }
.tour-overlay.show { opacity: 1; }
.tour-hole {
  position: absolute; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(15,18,26,.72);
  transition: all 350ms cubic-bezier(.4,0,.2,1); pointer-events: none; border: 2px solid var(--roki-orange);
}
.tour-tip {
  position: absolute; z-index: 201; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 18px 20px; width: min(300px, calc(100vw - 32px));
}
.tour-tip h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.tour-tip p { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.tour-tip .tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-tip .tour-dots { display: flex; gap: 5px; }
.tour-tip .tour-dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--line); }
.tour-tip .tour-dots i.on { background: var(--roki-orange); }
.tour-skip { border: none; background: none; color: var(--ink-soft); font-size: 12.5px; cursor: pointer; text-decoration: underline; }

/* ---------- Sello verificado (Instagram-style) ---------- */
.verified-check { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; flex-shrink: 0; }
.verified-check svg { display: block; }

/* ---------- Ranking de tiendas (leaderboard) ---------- */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-row {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  transition: transform var(--t-med), box-shadow var(--t-med); text-decoration: none; color: var(--ink);
}
.rank-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rank-pos { font-weight: 700; font-size: 20px; width: 38px; text-align: center; color: var(--ink-soft); flex-shrink: 0; }
.rank-row.top1 .rank-pos, .rank-row.top2 .rank-pos, .rank-row.top3 .rank-pos { font-size: 26px; }
.rank-logo { width: 54px; height: 54px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex-shrink: 0; }
.rank-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.rank-meta { font-size: 12.5px; color: var(--ink-soft); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.rank-score { margin-left: auto; text-align: right; flex-shrink: 0; }
.rank-score .num { font-weight: 700; font-size: 18px; color: var(--roki-orange-dark); }
.rank-score .lbl { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }

/* Bandera de confianza del comprador (privada, solo vendedor/admin) */
.buyer-flag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.buyer-flag.trusted { background: #E7F6EE; color: var(--success); }
.buyer-flag.caution { background: #FBEAEA; color: var(--danger); }
.buyer-flag.none { background: var(--surface-alt); color: var(--ink-soft); }

/* ---------- Modal de compartir ---------- */
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.share-net {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.share-net:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.share-ic {
  width: 46px; height: 46px; border-radius: 999px; background: var(--net);
  display: flex; align-items: center; justify-content: center;
}
.share-ig svg rect, .share-ig svg circle { stroke: #fff; }
.share-net.ig-grad .share-ic { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.share-copy-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.share-copy-row { display: flex; gap: 8px; }
.share-copy-row .input { flex: 1; font-size: 13px; }
.share-copy-row .btn { flex-shrink: 0; }

/* ---------- Chat interno comprador ↔ vendedor ---------- */
.msg-list { display: flex; flex-direction: column; gap: 0; }
.msg-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface);
  transition: background var(--t-fast); text-decoration: none; color: var(--ink);
}
.msg-item:hover { background: #FCFCFD; }
.msg-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.msg-item:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: none; }
.msg-item .avatar { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex-shrink: 0; }
.msg-item .who { font-weight: 600; font-size: 14px; }
.msg-item .last { font-size: 13px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.msg-item .when { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; margin-left: auto; text-align: right; }
.msg-unread {
  background: var(--roki-orange); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}

.thread {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; height: min(66vh, 620px);
}
.thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.thread-head img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.thread-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-alt); }
.bubble {
  max-width: 78%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5;
  animation: flash-in var(--t-med) both; word-wrap: break-word;
}
.bubble.mine { background: var(--roki-orange); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.bubble.theirs { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.bubble .bwhen { display: block; font-size: 10.5px; opacity: .7; margin-top: 3px; }
.bubble .bproduct {
  display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16);
  border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; font-size: 12px; text-decoration: none; color: inherit;
}
.bubble.theirs .bproduct { background: var(--surface-alt); }
.bubble .bproduct img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; background: #fff; }
.thread-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.thread-input textarea {
  flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px;
  font-size: 13.5px; resize: none; height: 44px; transition: border-color var(--t-fast);
}
.thread-input textarea:focus { outline: none; border-color: var(--roki-orange); }
.thread-input button { align-self: flex-end; }
.msg-day { text-align: center; font-size: 11px; color: var(--ink-soft); margin: 8px 0 2px; }

/* ---------- Asistente Roki (webchat) ---------- */
#roki-chat .rc-fab {
  /* z-index bajo el drawer del carrito (95) y su overlay (90) para no tapar sus botones */
  position: fixed; right: 20px; bottom: 20px; z-index: 85;
  width: 58px; height: 58px; border-radius: 999px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--roki-orange), var(--roki-orange-dark));
  box-shadow: 0 8px 28px rgba(255,107,53,.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-med);
}
#roki-chat .rc-fab:hover { transform: scale(1.08); }
#roki-chat .rc-fab.hidden { opacity: 0; pointer-events: none; }
#roki-chat .rc-fab svg { width: 27px; height: 27px; }
#roki-chat .rc-fab-dot {
  position: absolute; top: 4px; right: 4px; width: 13px; height: 13px;
  background: var(--success); border: 2.5px solid #fff; border-radius: 999px;
}
#roki-chat .rc-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 145;
  width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 90px));
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(18px) scale(.97);
  pointer-events: none; /* cerrado NUNCA captura clics (los botones de abajo quedan libres) */
  transition: opacity var(--t-med), transform var(--t-med);
}
#roki-chat .rc-panel[hidden] { display: none; }
#roki-chat .rc-panel.open { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 480px) { #roki-chat .rc-panel { right: 12px; bottom: 12px; } }
#roki-chat .rc-head {
  background: var(--ink); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
#roki-chat .rc-avatar {
  width: 38px; height: 38px; border-radius: 999px; background: var(--roki-orange);
  color: #fff; font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center;
}
#roki-chat .rc-title { font-weight: 600; font-size: 15px; }
#roki-chat .rc-status { font-size: 11.5px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 5px; }
#roki-chat .rc-dot { width: 8px; height: 8px; background: var(--success); border-radius: 999px; display: inline-block; }
#roki-chat .rc-close { background: rgba(255,255,255,.12); border: none; color: #fff; width: 30px; height: 30px; border-radius: 999px; cursor: pointer; transition: background var(--t-fast); }
#roki-chat .rc-close:hover { background: rgba(255,255,255,.25); }
#roki-chat .rc-body { flex: 1; overflow-y: auto; padding: 16px 14px; background: var(--surface-alt); display: flex; flex-direction: column; gap: 10px; }
#roki-chat .rc-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.55; animation: flash-in var(--t-med) both; }
#roki-chat .rc-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; box-shadow: var(--shadow-sm); }
#roki-chat .rc-msg.user { background: var(--roki-orange); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
#roki-chat .rc-msg a { color: var(--roki-orange-dark); font-weight: 600; text-decoration: underline; }
#roki-chat .rc-links { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
#roki-chat .rc-links a {
  display: block; text-align: center; background: var(--roki-orange-soft); color: var(--roki-orange-dark);
  font-weight: 600; font-size: 13px; padding: 9px 12px; border-radius: 10px; text-decoration: none;
  transition: background var(--t-fast);
}
#roki-chat .rc-links a:hover { background: #FFE4D6; }
#roki-chat .rc-products { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
#roki-chat .rc-products a {
  display: flex; align-items: center; gap: 10px; background: var(--surface-alt);
  border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; text-decoration: none;
  transition: border-color var(--t-fast);
}
#roki-chat .rc-products a:hover { border-color: var(--roki-orange); }
#roki-chat .rc-products img { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
#roki-chat .rc-products .t { flex: 1; font-size: 12.5px; font-weight: 500; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#roki-chat .rc-products .p { font-weight: 700; font-size: 12.5px; color: var(--ink); white-space: nowrap; }
#roki-chat .rc-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 92%; }
#roki-chat .rc-chips button {
  background: #fff; border: 1.5px solid var(--roki-orange); color: var(--roki-orange-dark);
  font-weight: 600; font-size: 12.5px; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
#roki-chat .rc-chips button:hover { background: var(--roki-orange); color: #fff; }
#roki-chat .rc-typing { display: inline-flex; gap: 4px; padding: 3px 2px; }
#roki-chat .rc-typing i { width: 7px; height: 7px; background: var(--ink-soft); border-radius: 999px; animation: rc-bounce 1.2s infinite; }
#roki-chat .rc-typing i:nth-child(2) { animation-delay: .15s; }
#roki-chat .rc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes rc-bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
#roki-chat .rc-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
#roki-chat .rc-input input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 13.5px; transition: border-color var(--t-fast); }
#roki-chat .rc-input input:focus { outline: none; border-color: var(--roki-orange); }
#roki-chat .rc-input button { width: 42px; height: 42px; border-radius: 999px; border: none; background: var(--roki-orange); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--t-fast); }
#roki-chat .rc-input button:hover { background: var(--roki-orange-dark); }
#roki-chat .rc-input button svg { width: 18px; height: 18px; }

/* ---------- Iconos blancos del header ---------- */
.wicon { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
.search-form button .wicon { width: 19px; height: 19px; }

/* ---------- Banda superior y fila de categorías responsivas ---------- */
.top-strip .strip-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.top-strip .strip-links { display: flex; gap: 16px; flex-shrink: 0; white-space: nowrap; }
@media (max-width: 640px) { .top-strip .strip-links { display: none; } }
.cat-row { position: relative; }
.cat-row .container { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.cat-row a { scroll-snap-align: start; }
/* En móvil el scroll es natural (sin desvanecidos que "corten" los nombres al deslizar) */

/* ---------- Banner de instalación PWA ---------- */
#pwa-install {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 150;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  transform: translateY(140%); transition: transform var(--t-med);
}
#pwa-install.show { transform: none; }
#pwa-install img { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
#pwa-install .pi-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
#pwa-install .pi-txt strong { font-size: 14px; }
#pwa-install .pi-txt span { font-size: 12px; color: var(--ink-soft); }
#pwa-install .pi-share { font-size: 22px; color: var(--roki-orange); }
#pwa-install .pi-x { border: none; background: var(--surface-alt); width: 28px; height: 28px; border-radius: 999px; cursor: pointer; flex-shrink: 0; font-size: 13px; }
@media (min-width: 620px) { #pwa-install { left: auto; right: 16px; max-width: 380px; } }

/* ---------- Splash de la PWA (solo al abrir la app instalada) ---------- */
#pwa-splash {
  position: fixed; inset: 0; z-index: 999; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: opacity 420ms ease;
}
#pwa-splash.done { opacity: 0; pointer-events: none; }
#pwa-splash img { width: 168px; height: 168px; animation: splash-pop 600ms cubic-bezier(.34,1.4,.5,1) both; }
#pwa-splash .ps-bar { width: 130px; height: 4px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; }
#pwa-splash .ps-bar i { display: block; height: 100%; width: 40%; border-radius: 999px; background: var(--roki-orange); animation: splash-slide 900ms ease-in-out infinite; }
@keyframes splash-pop { from { transform: scale(.82); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes splash-slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* ---------- Modal de registro ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 130; background: rgba(30,35,48,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity var(--t-med);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-overlay[hidden] { display: flex; }
.modal-card {
  position: relative; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  width: min(440px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 22px 22px 20px;
  transform: translateY(16px) scale(.97); transition: transform var(--t-med);
}
.modal-overlay.open .modal-card { transform: none; }
.modal-card h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.modal-card .muted { margin: 2px 0 12px !important; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.rm-type { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.rm-type-opt { position: relative; cursor: pointer; }
.rm-type-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.rm-type-opt span {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 10px;
  font-weight: 600; font-size: 13px; transition: border-color var(--t-fast), background var(--t-fast);
}
.rm-type-opt input:checked + span { border-color: var(--roki-orange); background: var(--roki-orange-soft); color: var(--roki-orange-dark); }
.rm-type-opt .mico { width: 19px; height: 19px; min-width: 19px; flex-shrink: 0; fill: none; stroke: var(--roki-orange); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rm-type-opt input:checked + span .mico { stroke: var(--roki-orange-dark); }
.rm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.rm-grid .field { margin-bottom: 10px; }
.modal-card .field label { font-size: 12.5px; margin-bottom: 4px; }
.modal-card .input { padding: 10px 12px; }
@media (max-width: 420px) { .rm-grid { grid-template-columns: 1fr; } }
.rm-terms { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--ink-soft); margin: 2px 0 12px; cursor: pointer; line-height: 1.45; }
.rm-terms input { margin-top: 2px; accent-color: var(--roki-orange); flex-shrink: 0; }
.rm-terms a { color: var(--roki-orange-dark); font-weight: 600; }
/* Pantallas bajas: compacta aún más para que NUNCA haga scroll */
@media (max-height: 720px) {
  .modal-card { padding: 16px 18px 14px; }
  .modal-card h2 { font-size: 18px; }
  .modal-card .muted { display: none; }
  .rm-type span { padding: 8px 6px; }
  .rm-grid .field { margin-bottom: 7px; }
  .rm-terms { margin-bottom: 10px; }
}

/* ---------- Transiciones entre páginas + skeletons ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 140ms; }
::view-transition-new(root) { animation-duration: 200ms; }

@keyframes roki-shimmer {
  0% { background-position: -300px 0; }
  100% { background-position: 300px 0; }
}
img.is-loading {
  background: linear-gradient(90deg, #F1F2F6 25%, #FAFBFC 50%, #F1F2F6 75%);
  background-size: 600px 100%;
  animation: roki-shimmer 1.1s linear infinite;
}

/* ---------- Búsqueda instantánea (panel rico) ---------- */
.suggestions .ip-section { padding: 6px 0; border-bottom: 1px solid var(--surface-alt); }
.suggestions .ip-label { padding: 6px 14px 2px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
.suggestions .ip-product { display: flex; align-items: center; gap: 12px; padding: 8px 14px; transition: background var(--t-fast); }
.suggestions .ip-product:hover { background: var(--surface-alt); }
.suggestions .ip-product img { width: 46px; height: 46px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.suggestions .ip-product .ipt { flex: 1; min-width: 0; }
.suggestions .ip-product .ipt .t { font-size: 13.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.suggestions .ip-product .ipt .s { font-size: 11.5px; color: var(--ink-soft); }
.suggestions .ip-product .ipp { text-align: right; white-space: nowrap; }
.suggestions .ip-product .ipp .now { font-weight: 700; font-size: 14px; }
.suggestions .ip-product .ipp .was { display: block; font-size: 11px; color: var(--ink-soft); text-decoration: line-through; }
.suggestions .ip-all { display: block; text-align: center; padding: 11px 14px; font-weight: 600; font-size: 13px; color: var(--roki-orange-dark); background: var(--roki-orange-soft); transition: background var(--t-fast); }
.suggestions .ip-all:hover { background: #FFE4D6; }

/* ---------- Sugerencias del drawer «Completa tu paquete» ---------- */
.drawer-suggest { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 12px; }
.drawer-suggest h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.drawer-suggest .ds-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.drawer-suggest .ds-item img { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.drawer-suggest .ds-item .t { flex: 1; font-size: 12.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drawer-suggest .ds-item .p { font-weight: 700; font-size: 12.5px; white-space: nowrap; }

/* ---------- Logo de marca ROKI MARKET ---------- */
.brandlogo { display: inline-flex; align-items: baseline; font-weight: 700; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.brandlogo .lg-roki { color: #29B9C7; }
.brandlogo .lg-market { color: var(--roki-orange); display: inline-flex; align-items: baseline; }
.brandlogo .lg-bag { height: .82em; width: auto; margin: 0 .02em; align-self: center; transform: translateY(.02em); }

/* ---------- Texto sobre el hero ---------- */
.hero-slide .hero-caption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 8%; gap: 12px;
  background: linear-gradient(90deg, rgba(20,24,33,.62) 0%, rgba(20,24,33,.28) 45%, transparent 75%);
}
.hero-caption .hc-eyebrow { color: #FFD9C7; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.hero-caption h2 {
  margin: 0; color: #fff; font-weight: 700; letter-spacing: -.02em; line-height: 1.12;
  font-size: clamp(22px, 4vw, 42px); max-width: 560px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-caption .btn { align-self: flex-start; }
@media (max-width: 720px) {
  .hero-slide .hero-caption { padding: 0 6%; }
  .hero-caption h2 { font-size: 20px; max-width: 85%; }
}

/* ---------- Tarjeta de perfil de tienda (home y directorio) ---------- */
.store-profile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.store-profile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.store-profile .sp-banner { height: 90px; background-size: cover; background-position: center; }
.store-profile .sp-head { display: flex; align-items: center; gap: 12px; padding: 0 16px; margin-top: -26px; }
.store-profile .sp-logo {
  width: 60px; height: 60px; border-radius: 14px; object-fit: contain;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.store-profile .sp-name { font-weight: 600; font-size: 15px; line-height: 1.3; margin-top: 22px; }
.store-profile .sp-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 8px 16px 0; font-size: 12.5px; color: var(--ink-soft); }
.store-profile .sp-tagline {
  padding: 6px 16px 0; font-size: 13px; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.store-profile .sp-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 16px 0; }
.store-profile .sp-products img { aspect-ratio: 1; width: 100%; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.store-profile .sp-foot { padding: 14px 16px 16px; margin-top: auto; }

/* ============================================================
   Responsive — móvil primero de verdad
   ============================================================ */
@media (max-width: 860px) {
  /* Header: logo + acciones arriba, búsqueda en su propia fila */
  .site-header .bar { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; row-gap: 8px; }
  .logo { font-size: 21px; }
  .search-wrap { flex: 1 1 100%; order: 3; max-width: none; }
  .header-actions { margin-left: auto; }
  .header-action { padding: 4px 7px; font-size: 0; gap: 0; }  /* solo iconos en móvil */
  .header-action .ico { font-size: 20px; }
  .top-strip { font-size: 11.5px; }
  .top-strip .container > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Tira de categorías del home */
  .cat-strip { gap: 12px; }
  .cat-circle { min-width: 72px; }
  .cat-circle .ring { width: 64px; height: 64px; border-width: 2px; }
  .cat-circle span { font-size: 11.5px; }

  .section { margin: 20px 0; }
  .section-head h2 { font-size: 19px; }
  .price-row .now { font-size: 26px; }
  .store-idcard { padding: 14px 16px; gap: 12px; }
  .store-idcard .slogo { width: 64px; height: 64px; }
  .panel-main { padding: 16px 12px; }
  .stat-card .value { font-size: 21px; }
  .checkout-step .step-body { padding: 0 14px 16px; }
  .auth-card { margin: 20px 16px; padding: 22px; }
  .filter-rail { position: static; }
}

@media (max-width: 480px) {
  .grid-products { gap: 8px; }
  .pcard .pbody { padding: 10px 10px 12px; }
  .pcard .ptitle { font-size: 13px; }
  .pcard .pprice .now { font-size: 15px; }
  .hero-arrow { display: none; }
  .tiles-2 .tile img { height: 150px; }
  .otp-boxes { gap: 6px; }
  .otp-boxes input { width: 42px; height: 52px; font-size: 20px; }
}
