/* SmartBiker — tema claro "biker aventurero" */

:root {
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f0f0f0;
  --accent: #111111;
  --accent-dark: #000000;
  --text: #111111;
  --text-muted: #666666;
  --text-dim: #999999;
  --border: rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 260px;
  --success: #2e7d4f;
  --error: #c0392b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; }

.btn {
  position: relative;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  transition: background 0.15s ease, opacity 0.15s ease, transform .2s cubic-bezier(.2,.8,.2,1);
  transform: translate(var(--tx,0px), var(--ty,0px));
}
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(140px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.35), transparent 60%);
  mix-blend-mode: overlay; transition: opacity .3s ease;
}
.btn:hover::after { opacity: 1; }
.btn svg { vertical-align: -3px; margin-right: 0.4rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ─── BANNER DE ACTUALIZACIÓN (dismissible, no bloqueante) ─── */
:root { --update-banner-h: 42px; }
.update-banner {
  display: none;
  background: #111;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.update-banner.is-visible { display: block; }
.update-banner-inner {
  max-width: 1300px;
  margin: 0 auto;
  height: var(--update-banner-h);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
}
.update-banner-icon.progress-icon-top { width: 22px; height: 20px; margin: 0; flex-shrink: 0; filter: invert(1); }
.update-banner-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.update-banner-btn {
  background: #fff; color: #111; border: none; border-radius: 999px;
  padding: 0.32rem 1rem; font-size: 0.8rem; font-weight: 700; cursor: pointer;
  flex-shrink: 0; transition: opacity .15s ease;
}
.update-banner-btn:hover { opacity: 0.82; }
.update-banner-close {
  background: none; border: none; color: rgba(255,255,255,0.65); cursor: pointer;
  display: inline-flex; padding: 4px; flex-shrink: 0; border-radius: 50%;
}
.update-banner-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
@media (max-width: 560px) {
  .update-banner-text { font-size: 0.78rem; }
}

/* ─── HEADER (oscuro, global) ─── */
.site-header {
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo { display: inline-flex; flex-shrink: 0; font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }

/* ─── MAIN NAV (desktop, con dropdowns) ─── */
.main-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25rem; row-gap: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 0.75rem 0.8rem; font-size: 0.92rem; font-weight: 600;
  color: #ccc; border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .15s ease;
}
.main-nav > ul > li > a.active, .main-nav > ul > li > a:hover { color: #fff; border-bottom-color: #fff; }
.main-nav .has-dropdown > a::after { content: '▾'; margin-left: 0.3em; font-size: 0.7em; opacity: 0.6; }
.main-nav .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  list-style: none; margin: 0; padding: 0.4rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
.main-nav .has-dropdown:hover > .dropdown,
.main-nav .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .dropdown a { display: block; padding: 0.5rem 0.7rem; font-size: 0.88rem; font-weight: 500; color: #ccc; border-radius: var(--radius-sm); white-space: nowrap; }
.main-nav .dropdown a:hover { background: rgba(255,255,255,0.08); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; margin-left: auto; }

.header-search { position: relative; display: flex; align-items: center; }
.search-toggle {
  background: none; border: none; cursor: pointer;
  padding: 0.4rem; color: #ccc;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s ease;
}
.search-toggle:hover { color: #fff; }
.search-form {
  position: absolute; top: 100%; right: 0; margin-top: 0.5rem;
  width: 240px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.header-search.open .search-form { opacity: 1; visibility: visible; transform: translateY(0); }
.header-search input {
  width: 100%;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.header-search input::placeholder { color: #888; }
.cart-link { position: relative; display: inline-flex; align-items: center; }
.cart-icon { width: 40px; height: auto; display: block; filter: none; }
.cart-count {
  position: absolute;
  top: -6px; right: -10px;
  background: #fff;
  color: #111;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px #111;
}
.cart-link.pulse .cart-icon { animation: cartPulse .5s ease; }
@keyframes cartPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.25) rotate(-6deg); }
  70% { transform: scale(0.95) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ─── HAMBURGUESA + MENÚ MÓVIL (off-canvas) ─── */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; padding: 0; background: none; border: none; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 219;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
body.nav-open .mobile-menu-overlay { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; left: 0; width: min(85vw, 340px); height: 100vh; height: 100dvh;
  background: var(--bg-card); z-index: 220; display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  box-shadow: 4px 0 20px rgba(0,0,0,.2);
}
body.nav-open .mobile-menu { transform: translateX(0); }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.mobile-menu-title { font-weight: 800; font-size: 1.05rem; }
#mobile-menu-close { background: none; border: 1px solid var(--border); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.mobile-menu-search { position: relative; margin: 1rem 1.25rem 0.25rem; display: flex; align-items: center; }
.mobile-menu-search svg { position: absolute; left: 0.8rem; color: var(--text-dim); pointer-events: none; }
.mobile-menu-search input {
  width: 100%; padding: 0.6rem 0.9rem 0.6rem 2.4rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-hover); color: var(--text); font-size: 0.9rem;
}
.mobile-menu-body { flex: 1 1 auto; overflow-y: auto; padding: 0.5rem 0 1.5rem; }
.mobile-menu-item { border-bottom: 1px solid var(--border); }
.mobile-menu-link, .mobile-menu-cat-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 0.9rem 1.25rem; font-size: 0.95rem; font-weight: 700; color: var(--text);
  background: none; border: none; text-align: left; cursor: pointer;
}
.mobile-menu-link.active { color: var(--accent); }
.mobile-menu-cat-toggle .chev { transition: transform .25s ease; color: var(--text-muted); flex-shrink: 0; }
.mobile-menu-item.open .mobile-menu-cat-toggle .chev { transform: rotate(180deg); }
.mobile-submenu { max-height: 0; overflow: hidden; transition: max-height .3s ease; background: var(--bg-hover); }
.mobile-menu-item.open .mobile-submenu { max-height: 600px; }
.mobile-submenu a { display: block; padding: 0.65rem 1.25rem 0.65rem 1.75rem; font-size: 0.88rem; color: var(--text-muted); }
.mobile-submenu a.active, .mobile-submenu a:hover { color: var(--accent); }
.mobile-submenu-all { font-weight: 600; }

/* ─── MAIN / LAYOUT ─── */
main { max-width: 1200px; margin: 0 auto; padding: 1.5rem; min-height: 60vh; }
body.page-home main { max-width: none; padding: 0; min-height: 0; }
html.page-home, body.page-home { background: #000; overscroll-behavior-y: none; }

/* ─── HEADER SUPERPUESTO (solo home) ─── */
body.page-home .site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  background: transparent; border-bottom: none;
}
/* El header del home es absolute (flota sobre el video) — con el banner visible hay que
   bajarlo a mano, ya que al estar fuera del flujo no lo empuja el banner como al resto de páginas. */
body.page-home.has-update-banner .site-header { top: var(--update-banner-h); }
body.page-home .site-header .logo { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
body.page-home .main-nav > ul > li > a { color: rgba(255,255,255,0.9); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
body.page-home .main-nav > ul > li > a.active, body.page-home .main-nav > ul > li > a:hover { color: #fff; border-bottom-color: #fff; }
body.page-home .search-toggle { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
body.page-home .cart-link { color: #fff; }

/* ─── HERO (video) ─── */
.hero-wrapper { width: 100%; height: 100vh; height: 100dvh; overflow: hidden; position: relative; background: #000; }
.hero-double { display: flex; width: 100%; height: 100vh; height: 100dvh; }
.hero-section { position: relative; flex: 1; cursor: pointer; overflow: hidden; display: block; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform-origin: center center;
  transition: transform .5s ease; z-index: 0; transform: scale(var(--vzoom, 1.85));
}
.hero-section:hover .hero-video { transform: scale(calc(var(--vzoom, 1.85) + 0.10)); }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); z-index: 1; transition: background .4s ease; }
.hero-section:hover .hero-overlay { background: rgba(0,0,0,0.35); }
.hero-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  max-width: 65%; height: auto; z-index: 2;
  filter: drop-shadow(0 0 8px rgba(0,0,0,.6)); transition: transform .4s ease; pointer-events: none;
}
.hero-section:hover .hero-logo { transform: translate(-50%, -50%) scale(1.08); }
.biker-woman-logo { width: 320px; max-width: 65%; }
.hero-section:hover .biker-woman-logo { transform: translate(-50%, -50%) scale(1.05); }
.center-logo { width: 320px; }
.hero-mobile { display: none; width: 100%; height: 100vh; height: 100dvh; position: relative; overflow: hidden; }
.hero-mobile-buttons {
  position: absolute; left: 50%; bottom: clamp(90px, 18vh, 160px); transform: translateX(-50%);
  width: min(92vw, 420px); display: grid; grid-template-columns: 1fr; gap: 14px; z-index: 2; padding: 0 10px;
}
.hero-btn {
  display: block; width: 100%; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 16px; padding: 16px 14px; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.hero-btn:active { transform: scale(0.98); }
.hero-btn:hover { background: rgba(0,0,0,0.65); border-color: rgba(255,255,255,0.28); }
.hero-btn-inner { display: grid; grid-template-columns: 1fr; align-items: center; justify-items: center; gap: 12px; }
.hero-btn img { height: clamp(58px, 7vh, 76px); width: auto; display: block; filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)); }
.hero-btn-text { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.92); }

@media (max-width: 768px) {
  .hero-double { display: none; }
  .hero-mobile { display: block; }
  .hero-video { --vzoom: 2.15; }
}
@media (max-width: 420px) {
  .hero-video { --vzoom: 2.35; }
  .hero-btn { padding: 14px 12px; }
}
@media (max-width: 360px) {
  .hero-video { --vzoom: 2.55; }
  .hero-btn img { height: 54px; }
  .hero-btn-text { font-size: 13px; }
}
@media (min-width: 769px) {
  .hero-mobile { display: none; }
  .hero-double { display: flex; }
  .hero-video { --vzoom: 1.85; }
}

/* ─── CONTENT LAYOUT (home con sidebar) ─── */
.content-layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; gap: 2rem; align-items: start; }
.sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: 90px;
}
.sidebar h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-top: 1.25rem; }
.sidebar h3:first-child { margin-top: 0; }
.sidebar-search {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.6rem 0.9rem; margin-bottom: 0.25rem;
}
.sidebar-search svg { color: var(--text-dim); flex-shrink: 0; }
.sidebar-search .catalog-search-input {
  border: none; background: none; outline: none; width: 100%; min-width: 0;
  padding: 0; font-size: 0.88rem; color: var(--text);
}
.sidebar-search .catalog-search-input::placeholder { color: var(--text-dim); }
.sidebar-search:focus-within { border-color: var(--accent); }

/* ─── FILTRO DE CATEGORÍAS CON SUBCATEGORÍAS (tipo Shein "Ver Más") ─── */
.filter-cat-group { margin-bottom: 0.15rem; }
.filter-expand-btn {
  display: flex; align-items: center; gap: 0.25rem;
  background: none; border: none; padding: 0.2rem 0 0.35rem 1.6rem;
  color: var(--text-dim); font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: color .15s ease;
}
.filter-expand-btn:hover { color: var(--accent); }
.filter-expand-btn .chevron { font-size: 0.7rem; transition: transform .15s ease; }
.filter-subcats { display: none; padding-left: 1.1rem; border-left: 1px solid var(--border); margin: 0 0 0.4rem 0.4rem; }
.filter-cat-group.expanded .filter-subcats { display: block; }
.filter-suboption { padding: 0.28rem 0; font-size: 0.85rem; }
.filter-suboption span:first-of-type { color: var(--text-muted); }

/* ─── PRICE RANGE SLIDER (tipo Shein) ─── */
.price-range-slider { position: relative; height: 20px; margin: 0.9rem 0.4rem 0.6rem; }
.price-range-track {
  position: absolute; top: 50%; left: 0; right: 0; height: 4px;
  background: var(--border); border-radius: 2px; transform: translateY(-50%);
}
.price-range-fill {
  position: absolute; top: 50%; height: 4px; background: var(--accent);
  border-radius: 2px; transform: translateY(-50%);
}
.price-range-input {
  position: absolute; top: 0; left: 0; width: 100%; height: 20px; margin: 0;
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none;
}
.price-range-input::-webkit-slider-runnable-track { -webkit-appearance: none; height: 4px; background: transparent; }
.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 18px; height: 18px; margin-top: -7px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent); cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.price-range-input::-moz-range-track { height: 4px; background: transparent; border: none; }
.price-range-input::-moz-range-thumb {
  pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent); cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.filter-option { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; font-size: 0.9rem; cursor: pointer; }
.filter-option .count { color: var(--text-dim); margin-left: auto; font-size: 0.8rem; }
.filter-option .tag-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.catalog-toolbar { margin-bottom: 1rem; color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sort-select { padding: 0.45rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); font-size: 0.85rem; cursor: pointer; }

/* ─── FILTROS DE CATEGORÍA (estilo Mercado Libre) ─── */
.filter-toggle-btn {
  display: none; width: 100%; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.7rem; font-weight: 700; font-size: 0.9rem; cursor: pointer; margin-bottom: 1rem;
}
.subcategory-links { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 0.25rem; }
.subcat-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.85rem; font-size: 0.88rem; font-weight: 600; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.subcat-link::after {
  content: '→'; opacity: .35; transition: opacity .15s ease, transform .15s ease;
}
.subcat-link:hover {
  background: var(--accent); color: #fff; border-color: var(--accent); transform: translateX(2px);
}
.subcat-link:hover::after { opacity: 1; transform: translateX(2px); }
.price-filter { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.price-filter input {
  width: 100%; min-width: 0; padding: 0.5rem 0.6rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.85rem; background: var(--bg-card); color: var(--text);
}
.price-filter span { color: var(--text-dim); flex-shrink: 0; }
.is-hidden { display: none !important; }
.card-tag {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2;
  background: #111; color: #fff; font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; padding: 0.25rem 0.55rem; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Etiquetas de merchandising configurables desde el admin (ej. "Top vendidos") — esquina opuesta a
   .card-tag (Oferta/Agotado) para que no se pisen; apiladas si un producto tiene más de una. */
.card-tags-custom {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2;
  display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-start;
}
.card-tag-custom {
  display: flex; align-items: center; gap: 0.25rem;
  color: #fff; font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; padding: 0.25rem 0.55rem; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.card-tag-custom svg { flex-shrink: 0; }

@media (max-width: 860px) {
  .filter-toggle-btn { display: flex; }
  .category-sidebar .sidebar-body { display: none; }
  .category-sidebar.open .sidebar-body { display: block; }
}

/* ─── PRODUCT GRID / CARD ─── */
/* Grid denso estilo Shein: cards más chicas, más columnas, gap angosto. 2 columnas fijas en mobile
   (con minmax(220px,1fr) quedaba 1 sola columna abajo de ~440px). */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.85rem;
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}
.btn-load-more {
  display: block; margin: 2rem auto 0; padding: 0.8rem 2.2rem;
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background .2s ease;
}
.btn-load-more:hover { background: var(--accent-dark); }
.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-5px) translate(var(--tx,0px), var(--ty,0px));
  box-shadow:
    0 12px 28px rgba(0,0,0,0.12),
    calc(var(--tx,0px) * -3) calc(var(--ty,0px) * -3) 42px -6px rgba(17,17,17,.45);
}
.product-card img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--bg-hover); transition: transform .5s ease; }
.product-card:hover img { transform: scale(1.05); }
.product-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--mx,50%) var(--my,50%), rgba(0,0,0,.14), transparent 65%);
  transition: opacity .3s ease;
}
.product-card:hover::after { opacity: 1; }
.product-card h3 { font-size: 0.95rem; padding: 0.75rem 0.9rem 0; font-weight: 600; }
.product-card .price { padding: 0.25rem 0.9rem 0.9rem; color: var(--accent); font-weight: 700; }
.product-card .price .price-old { margin-left: 0.4rem; font-weight: 500; font-size: 0.85em; }
.product-card .price-centered { text-align: center; padding-bottom: 0.6rem; }
@media (max-width: 640px) {
  .product-card h3 { font-size: 0.82rem; padding: 0.55rem 0.6rem 0; line-height: 1.3; }
  .product-card .price { padding: 0.2rem 0.6rem 0.6rem; font-size: 0.9rem; }
}

/* Botón de agregar al motico en flujo normal (no superpuesto sobre la imagen), usado en /linea
   debajo del precio centrado — mismos colores/estados que .quick-add-btn, solo cambia el posicionamiento.
   Selector combinado (no solo .quick-add-btn-static) para ganarle en especificidad a .quick-add-btn
   sin importar el orden de las reglas en la hoja de estilos. */
.quick-add-btn.quick-add-btn-static {
  position: static; width: calc(100% - 1.2rem); margin: 0 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
}
.price { color: var(--accent); font-weight: 700; }
.price-lg { font-size: 1.6rem; }

.loading-spinner, .empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }

/* ─── BREADCRUMB ─── */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.4rem; }

/* ─── CATEGORY PAGE ─── */
.category-hero { margin-bottom: 1.5rem; }
.category-hero p { color: var(--text-muted); }
.subcategory-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.pill {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s cubic-bezier(.2,.8,.2,1);
  transform: translate(var(--tx,0px), var(--ty,0px));
}
.pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── LÍNEA DE MARCA (Biker Woman / Smart Biker) ─── */
/* Galería asimétrica y contenida (imágenes chicas: la fuente no aguanta más tamaño) */
.line-gallery {
  display: grid; grid-template-columns: 1.1fr 0.9fr; grid-template-rows: 180px 140px 180px;
  gap: 0.85rem; margin-top: 0.75rem; margin-bottom: 2.5rem;
}
.line-gallery-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.line-gallery-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.line-gallery-3 { grid-column: 2 / 3; grid-row: 2 / 4; }
.line-gallery-4 { grid-column: 1 / 2; grid-row: 3 / 4; }
.line-gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; background: #0b0b0b; }
.line-gallery-item img {
  position: absolute; inset: -5%; width: 110%; height: 110%; object-fit: cover;
  will-change: transform; transition: transform .5s ease;
}
.line-gallery-item:hover img { transform: scale(1.05); }
.line-gallery-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 1rem; background: rgba(0,0,0,0.35); transition: background .25s ease; pointer-events: none;
}
.line-gallery-item:hover .line-gallery-overlay { background: rgba(0,0,0,0.5); }
.line-gallery-overlay span {
  color: #fff; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; font-size: 0.85rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
/* spotlight de color que sigue el cursor */
.line-gallery-item::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(180px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.22), transparent 60%);
  mix-blend-mode: overlay; transition: opacity .3s ease;
}
.line-gallery-item:hover::before { opacity: 1; }

/* Reveal en scroll (usado también por .line-story-card y .product-card) */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--delay, 0s); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 768px) {
  .product-card.reveal { opacity: 1; transform: none; transition: none; }
}

.line-story { margin-bottom: 3rem; }
.line-story h2 { font-size: 1.5rem; margin-bottom: 1.5rem; text-align: center; }
.line-story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.line-story-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.line-story-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0,0,0,0.12); border-color: transparent; }
.line-story-card .story-index {
  font-size: 2.4rem; font-weight: 900; color: var(--bg-hover); line-height: 1; margin-bottom: 0.5rem;
  transition: color .3s ease;
}
.line-story-card:hover .story-index { color: var(--accent); }
.line-story-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.line-story-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.line-story-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--mx,50%) var(--my,50%), rgba(0,0,0,.06), transparent 65%);
  transition: opacity .3s ease;
}
.line-story-card:hover::after { opacity: 1; }
.line-story-card > * { position: relative; z-index: 1; }

.line-products h2 { font-size: 1.5rem; margin-bottom: 1.25rem; text-align: center; }

@media (max-width: 768px) {
  .line-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px; }
  .line-gallery-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
  .line-gallery-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
  .line-gallery-3 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .line-gallery-4 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .line-story-grid { grid-template-columns: 1fr; }
}

/* ─── PRODUCT DETAIL ─── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; align-items: start; }

.product-gallery { position: sticky; top: 1rem; }
.gallery-main {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-hover);
  border: 2px solid #111; box-shadow: 0 20px 45px rgba(0,0,0,.12);
}
.gallery-main img#product-main-image {
  aspect-ratio: 1; object-fit: cover; width: 100%; display: block;
  transition: opacity .15s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.gallery-main:hover img#product-main-image { transform: scale(1.08); }
.card-tag-sale { background: #fff; color: #111; border: 1px solid #111; }
.gallery-main .card-tag { top: 0.85rem; right: 0.85rem; }
.gallery-main .card-tag-sale { right: auto; left: 0.85rem; }

.product-thumbs { display: flex; gap: 0.6rem; margin-top: 0.85rem; }
.product-thumb {
  width: 68px; height: 68px; object-fit: cover; border-radius: var(--radius-sm);
  border: 2px solid #111; cursor: pointer; opacity: .55;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}
.product-thumb:hover { opacity: 1; transform: translateY(-2px); }
.product-thumb.active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111; }

.product-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.5rem;
}
.product-eyebrow:hover { color: var(--accent); }
.product-info h1 { font-size: 2rem; letter-spacing: -0.01em; }

.product-sku {
  font-size: 0.8rem; color: var(--text-dim); letter-spacing: 0.03em;
  margin: 0.35rem 0 0;
}

.price-row { display: flex; align-items: baseline; gap: 0.75rem; margin: 0.5rem 0 1.25rem; }
.price-old { color: var(--text-dim); text-decoration: line-through; font-size: 1.05rem; }

.product-info label { display: block; font-weight: 600; font-size: 0.85rem; margin: 0 0 0.5rem; }
.variant-selector { margin-bottom: 1.25rem; }
.variant-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.variant-pill {
  padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-card); font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: all .15s ease;
}
.variant-pill:hover:not(.is-disabled) { border-color: var(--accent); transform: translateY(-1px); }
.variant-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.variant-pill.is-disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

.qty-selector { margin-bottom: 1.25rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn { width: 42px; height: 42px; border: none; background: var(--bg-card); font-size: 1.2rem; cursor: pointer; transition: background .15s ease; line-height: 1; }
.qty-btn:hover { background: var(--bg-hover); }
.qty-stepper input {
  width: 56px; height: 42px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

#add-to-cart-btn { margin-top: 0.25rem; position: relative; }
#add-to-cart-btn .btn-label { display: inline-block; transition: transform .25s ease; }
#add-to-cart-btn.is-added .btn-label::before { content: "✓ "; }
#add-to-cart-btn.is-added { animation: addPulse .4s ease; }
@keyframes addPulse { 0% { transform: scale(1); } 40% { transform: scale(0.97); } 100% { transform: scale(1); } }
.add-to-cart-message { font-size: 0.85rem; margin-top: 0.5rem; min-height: 1.2em; }
.add-to-cart-message.success { color: var(--success); }
.add-to-cart-message.error { color: var(--error); }

.trust-badges { display: grid; gap: 0.6rem; margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-hover); }
.trust-badge { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--text-muted); }
.trust-badge svg { flex-shrink: 0; color: var(--text); }

.product-details-card { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.details-heading { font-size: 1.1rem; }
.product-short-description { color: var(--text-muted); margin: 0.5rem 0 1rem; }
.product-description {
  position: relative; max-height: 340px; overflow: hidden;
  transition: max-height .4s ease;
}
.product-description.expanded { max-height: none; }
.product-description:not(.expanded)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
}
.desc-toggle-btn {
  display: block; margin-top: 0.85rem; background: none; border: 1px solid var(--border); border-radius: 999px;
  padding: 0.45rem 1.1rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all .15s ease;
}
.desc-toggle-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── CTA DISTRIBUIDOR ─── */
.distributor-cta {
  margin-top: 1.5rem; padding: 1.1rem 1.25rem; border: 2px solid #111; border-radius: var(--radius);
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; background: var(--bg-hover);
}
.distributor-cta svg { flex-shrink: 0; }
.distributor-cta > div { flex: 1 1 200px; }
.distributor-cta-title { font-weight: 800; margin: 0; }
.distributor-cta-text { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--text-muted); }
.distributor-cta .btn { flex-shrink: 0; background: #25D366; }
.distributor-cta .btn:hover { background: #1ebe57; }
@media (max-width: 480px) {
  .distributor-cta { flex-direction: column; align-items: flex-start; }
  .distributor-cta .btn { width: 100%; }
}

/* ─── RELATED PRODUCTS + QUICK ADD ─── */
.related-products { margin-top: 3rem; }
.section-heading { font-size: 1.35rem; margin-bottom: 1.25rem; }
.product-card-link { display: block; }
.product-card-media { position: relative; }
.quick-add-btn {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem 0.5rem; border: none;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.01em;
  cursor: pointer;
  transition: background .2s ease;
}
.quick-add-btn .quick-add-icon { width: 20px; height: auto; flex-shrink: 0; background: #000; border-radius: 4px; padding: 2px; }
.quick-add-btn:hover { background: var(--accent-dark); }
.quick-add-btn.is-loading { opacity: 0.6; pointer-events: none; }
.quick-add-btn.is-added { background: var(--success); }
@media (max-width: 640px) {
  .quick-add-btn { font-size: 0.7rem; padding: 0.5rem 0.4rem; }
  .quick-add-btn .quick-add-icon { width: 17px; }
}

/* ─── CART ─── */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cart-table th { text-align: left; font-size: 0.8rem; color: var(--text-muted); padding: 0.5rem; border-bottom: 1px solid var(--border); }
.cart-table td { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-info { display: flex; align-items: center; gap: 0.75rem; }
.cart-qty-input { width: 60px; padding: 0.35rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.cart-remove-btn { color: var(--error); background: none; border: none; cursor: pointer; font-size: 0.85rem; }
.cart-totals { max-width: 320px; margin-left: auto; }
.cart-totals div { display: flex; justify-content: space-between; padding: 0.4rem 0; }
.cart-totals .total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--border); margin-top: 0.4rem; padding-top: 0.6rem; }
.cart-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
.free-shipping-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ─── CHECKOUT ─── */
.checkout-form { max-width: 640px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 2rem 2rem; }
.checkout-form label { display: block; font-weight: 600; font-size: 0.85rem; margin: 1rem 0 0.35rem; }
.checkout-form input, .checkout-form textarea {
  width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-summary { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.checkout-summary-item { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.3rem 0; }
#checkout-submit-btn { margin-top: 1.5rem; }
.checkout-message { font-size: 0.85rem; margin-top: 0.5rem; }
.checkout-message.error { color: var(--error); }
.checkout-paused-notice { max-width: 640px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; }
.checkout-paused-notice p { margin: 0 0 1rem; }
.checkout-paused-notice .btn { max-width: 320px; margin: 0 auto; }

/* ─── ORDER CONFIRMATION ─── */
.order-confirmation { max-width: 560px; margin: 0 auto; text-align: center; }
.order-number { font-size: 1.1rem; }
.status-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--bg-hover); }
.status-processing, .status-completed { background: #e3f3e9; color: var(--success); }
.status-pending_payment { background: #fdf3e3; color: #a06b0a; }
.status-cancelled, .status-failed { background: #fbe6e3; color: var(--error); }
.order-items-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; text-align: left; }
.order-items-table th, .order-items-table td { padding: 0.5rem; border-bottom: 1px solid var(--border); }
.order-totals { max-width: 280px; margin: 0 auto 1.5rem; }
.order-totals div { display: flex; justify-content: space-between; padding: 0.3rem 0; }
.order-totals .total { font-weight: 700; border-top: 1px solid var(--border); padding-top: 0.5rem; }
.order-wa-cta { margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.order-wa-cta p { margin: 0 0 0.75rem; font-size: 0.9rem; color: var(--text-muted); }

/* ─── LEGAL PAGES ─── */
.legal-page { max-width: 720px; margin: 0 auto; }
.legal-page h2 { margin-top: 1.5rem; }

/* ─── 404 ─── */
.page-404 { text-align: center; padding: 4rem 1rem; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--accent); }

/* ─── MODAL ─── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal-content { background: var(--bg-card); border-radius: var(--radius); max-width: 480px; width: 100%; padding: 1.5rem; max-height: 85vh; overflow-y: auto; }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--text); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; z-index: 200;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--error); }

/* ─── FOOTER (tal como en WordPress) ─── */
.smartbiker-footer {
  background: #111; color: #ddd; margin: 0; display: block;
  border-top: 1px solid #555; padding: 1rem 6vw 0;
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; max-width: 1300px; margin: 0 auto; }
.footer-left h3 { color: #fff; font-size: 17px; margin: 0 0 4px; display: flex; align-items: center; }
.contact-line { margin: 3px 0; font-size: 13px; display: flex; align-items: center; gap: 7px; }
.contact-line a { color: #ddd; text-decoration: none; transition: color .2s; }
.contact-line a:hover { color: #fff; }
.footer-right { display: flex; gap: 14px; align-items: center; }
.social-icon svg { transition: transform .2s, opacity .2s; }
.social-icon:hover svg { transform: scale(1.15); opacity: .75; }
.footer-links { text-align: center; margin-top: 12px; max-width: 1300px; margin-left: auto; margin-right: auto; }
.footer-links a { color: #bbb; text-decoration: none; margin: 0 8px; font-size: 12.5px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; color: #999; font-size: 12px; padding: 8px 0; border-top: 1px solid #444; margin-top: 8px; }
.footer-bottom a { color: #fff; text-decoration: underline; font-weight: 600; }
.footer-bottom a:hover { color: #ccc; }
@media (max-width: 768px) {
  .footer-top { flex-direction: column; text-align: center; align-items: center; }
  .footer-right { margin-top: 10px; }
}

/* ─── WHATSAPP FLOTANTE ─── */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 190;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; border: 2px solid #111;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform .2s, background .2s;
}
.wa-float:hover { transform: scale(1.08); background: #1ebe57; }
@media (max-width: 768px) {
  .wa-float { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}

/* ─── FLOATING CART (motico) ─── */
.fc-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 199; display: none; opacity: 0; transition: opacity .3s ease;
}
body.fc-open .fc-overlay { display: block; opacity: 1; }
.floating-cart {
  position: fixed; top: 0; right: 0; width: 100%; max-width: 420px; height: 100vh;
  background: var(--bg-card); z-index: 200;
  transform: translateX(100%); transition: transform .35s ease;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,.2);
}
body.fc-open .floating-cart { transform: translateX(0); }
.floating-cart-inner { display: flex; flex-direction: column; height: 100%; padding: 1.25rem; overflow: hidden; }
.floating-cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.floating-cart-header h3 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.fc-header-icon { flex-shrink: 0; }
#fc-close, #upsell-close {
  background: none; border: 1px solid var(--border); border-radius: 50%; width: 32px; height: 32px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--text);
  transition: transform .15s ease, background .15s ease;
}
#fc-close:hover, #upsell-close:hover { background: var(--bg-hover); transform: rotate(90deg); }

.mini-cart-wrapper { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.mini-cart-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 0.75rem; align-items: start;
  border-bottom: 1px solid var(--border); padding-bottom: 0.75rem;
  animation: cartItemIn .35s cubic-bezier(.2,.8,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * .05s);
}
@keyframes cartItemIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
.mini-cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.mini-cart-item-name { font-weight: 600; font-size: 0.9rem; margin: 0 0 0.4rem; }
.mini-cart-item-variant { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.mini-cart-line { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.mini-cart-line .line-subtotal { margin-left: auto; font-weight: 700; }

.qty-ctrl { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-ctrl button { width: 24px; height: 26px; background: none; border: 0; font-weight: 700; cursor: pointer; transition: background .15s ease; }
.qty-ctrl button:hover { background: var(--bg-hover); }
.qty-ctrl .qty-value { width: 28px; text-align: center; font-size: 0.85rem; }

.remove-from-cart {
  background: none; border: none; cursor: pointer; color: var(--error); padding: 5px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease, transform .15s ease;
}
.remove-from-cart:hover { background: rgba(192,57,43,.12); transform: scale(1.12); }

.mini-cart-wrapper .empty-state { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.mini-cart-wrapper .empty-state svg { opacity: 0.3; }
.mini-cart-wrapper .empty-state p { margin: 0; }

.cart-summary { margin-top: 0.75rem; border-top: 1px dashed var(--border); padding-top: 0.6rem; display: grid; grid-template-columns: 1fr auto; row-gap: 0.35rem; font-size: 0.9rem; }
.cart-summary .value { font-weight: 700; text-align: right; }

.free-shipping-progress { margin-top: 1.25rem; padding: 0.6rem 0 0.25rem; text-align: center; }
.progress-icon-top { width: 56px; height: 56px; margin: 0 auto 0.4rem; background: url("/assets/hero/shipping-progress-icon.png") no-repeat center center; background-size: contain; transition: transform .3s ease; }
.free-shipping-progress.goal-reached .progress-icon-top { transform: scale(1.1) rotate(-4deg); }
.progress-bar { position: relative; width: 100%; height: 10px; background: var(--bg-hover); border-radius: 20px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--accent); transition: width .4s ease; position: relative; }
.progress-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  transform: translateX(-100%); animation: progressShimmer 1.8s ease-in-out infinite;
}
@keyframes progressShimmer { to { transform: translateX(100%); } }
.goal-reached .progress-fill { background: var(--success); }
.progress-goal { position: absolute; right: -6px; top: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--accent); transition: border-color .3s ease; }
.goal-reached .progress-goal { border-color: var(--success); }
.progress-text { text-align: center; font-size: 0.85rem; font-weight: 600; margin-top: 0.5rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 0.35rem; }
.goal-reached .progress-text { color: var(--success); }

.slideout-actions { margin-top: 1rem; }

.confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 210; }

@media (max-width: 768px) { .floating-cart { max-width: 100%; } }

/* ─── UPSELL / CROSS-SELL MODAL ─── */
.upsell-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 199; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.upsell-overlay.open { opacity: 1; pointer-events: auto; }
.upsell-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.95);
  background: var(--bg-card); border-radius: var(--radius); box-shadow: 0 25px 60px rgba(0,0,0,.3);
  width: min(1000px, 92vw); max-height: 88vh;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  z-index: 200;
}
.upsell-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.upsell-progress { padding: 1rem 1.25rem 0.5rem; border-bottom: 1px solid var(--border); }
.upsell-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.upsell-title { font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.upsell-body { padding: 1rem 1.25rem; overflow: auto; }
.upsell-actions { display: flex; gap: 0.6rem; justify-content: flex-end; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.upsell-btn-secondary { background: var(--bg-card); border: 2px solid var(--text); color: var(--text); }
.upsell-btn-secondary:hover { background: var(--bg-hover); }

@media (max-width: 768px) { .upsell-body { padding: 0.75rem; } .upsell-title { font-size: 1rem; } }

/* ─── EFECTOS GLOBALES: cursor con inercia + blend de color ─── */
#cursor-glow {
  position: fixed; top: 0; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; pointer-events: none; z-index: 9999;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0) 70%);
  mix-blend-mode: difference; will-change: transform; transform: translate(-100px, -100px);
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) { #cursor-glow { display: none; } }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .product-info h1 { font-size: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ─── HEADER RESPONSIVE: pasa a hamburguesa antes de que el nav se apriete ─── */
@media (max-width: 1000px) {
  .header-search { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .logo { font-size: 1.2rem; }
}
@media (min-width: 1001px) {
  .mobile-menu, .mobile-menu-overlay { display: none; }
}
