/* styles.css — Mi PC y su Mundo */

:root {
  --brand-primary: #E30613;
  --brand-primary-dark: #B30410;
  --brand-accent: #1E40AF;
  --brand-accent-dark: #1E3A8A;
  --bg: #FAFAFA;
  --bg-elev: #FFFFFF;
  --bg-soft: #F5F5F5;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --text: #111827;
  --text-soft: #4B5563;
  --text-mute: #6B7280;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 28px rgba(0,0,0,.12);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --font-family: 'Inter', system-ui, sans-serif;
  --container: 1280px;
}

[data-theme="dark"] {
  --bg: #0B0F19;
  --bg-elev: #121826;
  --bg-soft: #1A2233;
  --line: #2A3344;
  --line-strong: #3B475C;
  --text: #F1F5F9;
  --text-soft: #C7D0DC;
  --text-mute: #94A3B8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 2px 8px rgba(0,0,0,.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 28px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ── HEADER ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.topbar {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  font-size: 13px;
  padding: 8px 20px;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.topbar-dot { opacity: .6; }
.header-main {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
}
.header-burger {
  display: none;
  background: none;
  border: 0;
  width: 38px;
  height: 38px;
  color: var(--text);
  cursor: pointer;
}
.header-burger svg { width: 22px; height: 22px; }
.brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
[data-theme="dark"] .brand img { filter: brightness(1.05) drop-shadow(0 0 0 #fff); }
.search {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0 6px 0 18px;
  transition: border-color .15s;
}
.search:focus-within { border-color: var(--brand-primary); background: var(--bg-elev); }
.search input {
  flex: 1;
  height: 44px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  outline: none;
  color: var(--text);
}
.search input::placeholder { color: var(--text-mute); }
.search button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search button svg { width: 18px; height: 18px; }
.header-actions { display: flex; gap: 6px; }
.header-action {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--r);
  cursor: pointer;
}
.header-action:hover { background: var(--bg-soft); }
.header-action svg { width: 22px; height: 22px; }
.header-action span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.header-action small { font-size: 11px; color: var(--text-mute); }
.header-action strong { font-size: 13px; }
.cart .cart-icon { position: relative; }
.cart-pill {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.header-nav {
  display: flex;
  gap: 4px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.header-nav a:hover { background: var(--bg-soft); color: var(--text); }
.header-nav a.active { background: var(--brand-primary); color: #fff; }
.header-nav .nav-cta {
  margin-left: auto;
  background: linear-gradient(135deg, #FB923C, #DC2626);
  color: #fff;
  font-weight: 600;
}
.nav-ic { font-size: 15px; }

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  margin: 18px auto 0;
  max-width: var(--container);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--hero-bg, var(--brand-primary));
  color: #fff;
  min-height: 360px;
  display: flex;
  align-items: stretch;
}
@media (min-width: 901px) {
  .hero { margin: 18px 20px 0; max-width: calc(var(--container) - 40px); }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  padding: 36px 48px;
  gap: 24px;
}
.hero-text { display: flex; flex-direction: column; justify-content: center; gap: 10px; max-width: 480px; }
.hero-kicker {
  display: inline-block;
  background: var(--hero-accent, #fbbf24);
  color: #111;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  width: fit-content;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.hero p { font-size: 17px; opacity: .95; margin: 0; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-blob {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 50%, rgba(255,255,255,.18), transparent 60%);
}
.hero-glyph {
  font-size: clamp(120px, 18vw, 220px);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.25));
}
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 26px;
  height: 4px;
  background: rgba(255,255,255,.45);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, width .15s;
}
.hero-dots .on { background: #fff; width: 40px; }

/* Hero B — más editorial */
.hero-b {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: var(--container);
  margin: 30px auto;
  padding: 0 20px;
  min-height: 460px;
}
.hero-b-l h1 { font-size: clamp(36px, 4.4vw, 68px); line-height: 1; margin-top: 12px; }
.hero-b-sub { color: var(--text-soft); font-size: 16px; max-width: 480px; }
.hero-b-price { display: flex; align-items: baseline; gap: 16px; margin: 18px 0 8px; flex-wrap: wrap; }
.hero-b-price .price-now { font-size: 36px; }
.hero-b-cuotas { color: var(--text-soft); font-size: 14px; }
.hero-b-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-b-r { background: var(--bg-soft); border-radius: var(--r-lg); padding: 24px; }
.hero-b-r .prod-img { aspect-ratio: 1 / 1; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r);
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .08s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-dark); box-shadow: 0 6px 18px color-mix(in oklab, var(--brand-primary) 35%, transparent); }
.btn-secondary { background: var(--brand-accent); color: #fff; }
.btn-secondary:hover { background: var(--brand-accent-dark); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--text); }
.btn-block { width: 100%; }
.btn-big { height: 50px; font-size: 15px; padding: 0 28px; }
.btn svg { width: 18px; height: 18px; }

/* ── Beneficios ──────────────────────────────────────────────────── */
.benefits {
  max-width: var(--container);
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.benefit {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.benefit-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--brand-primary) 12%, transparent);
  color: var(--brand-primary);
  flex-shrink: 0;
}
.benefit-ic svg { width: 22px; height: 22px; }
.benefit strong { display: block; font-size: 14px; }
.benefit small { color: var(--text-mute); font-size: 12px; }

/* ── Categorías circulares ───────────────────────────────────────── */
.cat-circles {
  max-width: var(--container);
  margin: 30px auto;
  padding: 0 20px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 14px;
  gap: 16px;
}
.section-head h2 { font-size: 24px; }
.section-head p { margin: 4px 0 0; color: var(--text-mute); font-size: 14px; }
.circles {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.circle {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: transform .12s, box-shadow .12s, border-color .12s;
  text-align: center;
}
.circle:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-primary); }
.circle-ic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, color-mix(in oklab, var(--brand-primary) 15%, transparent), color-mix(in oklab, var(--brand-accent) 15%, transparent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* Tiles (Home B) */
.cat-tiles { max-width: var(--container); margin: 36px auto; padding: 0 20px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color .12s, transform .12s;
  text-align: left;
  font: inherit;
  color: var(--text);
}
.tile:hover { border-color: var(--brand-primary); transform: translateY(-2px); }
.tile-ic { font-size: 28px; }
.tile-label { flex: 1; font-weight: 600; }
.tile-arrow { color: var(--text-mute); }

/* ── Banner row ──────────────────────────────────────────────────── */
.banner-row {
  max-width: var(--container);
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.promo-banner {
  --promo-color: #dc2626;
  background: linear-gradient(135deg, var(--promo-color), color-mix(in oklab, var(--promo-color) 65%, #000));
  color: #fff;
  border: 0;
  border-radius: var(--r-lg);
  padding: 24px;
  min-height: 160px;
  display: grid;
  grid-template-areas: "k k" "t b" "c c";
  grid-template-columns: 1fr auto;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font: inherit;
  transition: transform .15s;
}
.promo-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.promo-banner::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.promo-kicker { grid-area: k; font-size: 11px; font-weight: 800; letter-spacing: .12em; opacity: .9; }
.promo-title { grid-area: t; font-size: 18px; font-weight: 600; }
.promo-big { grid-area: b; font-size: 36px; font-weight: 800; align-self: end; }
.promo-cta { grid-area: c; font-size: 14px; font-weight: 600; opacity: .95; margin-top: 8px; }

/* ── CTA band ────────────────────────────────────────────────────── */
.cta-band {
  max-width: var(--container);
  margin: 40px auto;
  padding: 30px 36px;
  background: linear-gradient(110deg, var(--brand-accent) 0%, var(--brand-primary) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 26px; }
.cta-band p { margin: 6px 0 0; opacity: .9; max-width: 520px; }

/* ── Shelves (carrusel horizontal) ───────────────────────────────── */
.shelf {
  max-width: var(--container);
  margin: 40px auto;
  padding: 0 20px;
}
.shelf-nav { display: flex; gap: 6px; }
.shelf-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.shelf-nav button:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.shelf-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 6px;
}
.shelf-track::-webkit-scrollbar { height: 6px; }
.shelf-track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }
.shelf-item {
  flex: 0 0 calc((100% - 14px*3) / 4);
  min-width: 220px;
  scroll-snap-align: start;
}
@media (max-width: 900px) {
  .shelf-item { flex-basis: calc((100% - 14px) / 2); }
}

/* ── ProductCard ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .12s, box-shadow .15s, border-color .15s;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--brand-primary) 50%, transparent); }
.card-img-wrap { position: relative; aspect-ratio: 1 / 1; background: var(--bg-soft); }
.prod-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.card-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  z-index: 1;
}
.card-discount.big { font-size: 18px; padding: 8px 16px; }
.card-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 0;
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  backdrop-filter: blur(8px);
}
.card-fav:hover { color: var(--brand-primary); transform: scale(1.1); }
.card-fav svg { width: 16px; height: 16px; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.card-brand { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mute); font-weight: 700; }
.card-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.card-prices { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.price-old { font-size: 13px; color: var(--text-mute); text-decoration: line-through; }
.price-now { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1.1; }
.price-old.big { font-size: 16px; }
.price-now.big { font-size: 32px; color: var(--brand-primary); }
.card-meta { display: flex; gap: 8px; align-items: center; }
.card-shipping {
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-shipping svg { width: 14px; height: 14px; }
.card-cta {
  margin-top: 8px;
  height: 36px;
  border: 1.5px solid var(--brand-primary);
  background: transparent;
  color: var(--brand-primary);
  font-weight: 600;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 13px;
  transition: background .12s, color .12s;
}
.card-cta:hover { background: var(--brand-primary); color: #fff; }

/* Rating */
.rating { display: inline-flex; align-items: center; gap: 4px; }
.rating-stars { display: inline-flex; color: #f59e0b; }
.star { display: inline-flex; }
.star svg { width: 100%; height: 100%; }
.rating-count { color: var(--text-mute); font-size: 12px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-soft);
  color: var(--text);
}
.badge-success { background: #DCFCE7; color: #166534; }
.badge-danger { background: #FEE2E2; color: #991B1B; }

/* ── Grid ────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 14px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) {
  .grid-5, .grid-6 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Breadcrumbs ─────────────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: var(--text-mute);
  padding: 18px 0 6px;
  flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--brand-primary); }
.bc-sep { color: var(--line-strong); }

/* ── Category page ───────────────────────────────────────────────── */
.cat-head { display: flex; justify-content: space-between; align-items: end; margin: 8px 0 18px; gap: 10px; flex-wrap: wrap; }
.cat-count { color: var(--text-mute); font-size: 14px; }
.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .cat-layout { grid-template-columns: 1fr; } }

.filters {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  position: sticky;
  top: 144px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}
.filters-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.filters-close { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--text); }
.filters-close svg { width: 22px; height: 22px; }
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mute); margin-bottom: 10px; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-soft);
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all .12s;
  flex-shrink: 0;
}
.check-box svg { width: 14px; height: 14px; }
.check input:checked + .check-box {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.check-count { margin-left: auto; color: var(--text-mute); font-size: 12px; }
.range {
  width: 100%;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-primary);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-mute); margin-top: 6px; }

.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.btn-mobile-filters {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 14px;
  cursor: pointer;
  color: var(--text);
  font: inherit;
}
.btn-mobile-filters svg { width: 18px; height: 18px; }
.order { font-size: 14px; color: var(--text-soft); display: flex; gap: 8px; align-items: center; margin-left: auto; }
.order select {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font: inherit;
  color: var(--text);
  cursor: pointer;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-mute);
}
.empty-ic { font-size: 64px; }
.empty h2, .empty h3 { color: var(--text); margin: 10px 0; }

/* ── Product page ────────────────────────────────────────────────── */
.product-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  margin: 12px 0 28px;
}
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } }
.gallery-main {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb {
  width: 80px;
  height: 80px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  overflow: hidden;
  background: var(--bg-elev);
}
.thumb.active { border-color: var(--brand-primary); }
.thumb .prod-img { width: 100%; height: 100%; }
.product-info { display: flex; flex-direction: column; gap: 12px; }
.prod-brand { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-accent); font-weight: 700; }
.prod-title { font-size: clamp(22px, 2.5vw, 30px); line-height: 1.15; }
.prod-rating { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-soft); }
.prod-rating a { color: var(--brand-accent); text-decoration: underline; }
.prod-prices { background: var(--bg-soft); border-radius: var(--r); padding: 18px; }
.cuotas { color: var(--text-soft); font-size: 14px; margin-top: 6px; }
.cuotas strong { color: var(--text); }
.discount-pill {
  display: inline-block;
  margin-top: 10px;
  background: color-mix(in oklab, var(--brand-primary) 15%, transparent);
  color: var(--brand-primary);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 13px;
}
.stock-line { font-size: 14px; }
.stock-ok { color: #16a34a; font-weight: 600; }
.stock-low { color: #ea580c; font-weight: 700; }
.stock-out { color: var(--brand-primary); font-weight: 700; }
.qty-row { display: flex; align-items: center; gap: 16px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.qty-stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--bg-elev);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}
.qty-stepper button:hover { background: var(--bg-soft); }
.qty-stepper input { width: 50px; border: 0; text-align: center; font: inherit; background: var(--bg-elev); color: var(--text); }
.qty-stepper.sm button { width: 30px; height: 30px; font-size: 16px; }
.qty-stepper.sm input { width: 40px; height: 30px; }
.prod-actions { display: flex; gap: 10px; }
.prod-actions .btn { flex: 1; }
.prod-benefits { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.prod-benefit { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-soft); }
.prod-benefit svg { width: 22px; height: 22px; color: var(--brand-accent); flex-shrink: 0; }

/* Tabs */
.product-tabs { margin-top: 28px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button {
  background: none;
  border: 0;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  color: var(--text-mute);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tabs button.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.desc p { color: var(--text-soft); line-height: 1.6; max-width: 800px; }
.desc ul { color: var(--text-soft); line-height: 1.8; padding-left: 20px; }
.specs { width: 100%; max-width: 600px; border-collapse: collapse; }
.specs tr { border-bottom: 1px solid var(--line); }
.specs th { text-align: left; padding: 10px 14px; background: var(--bg-soft); font-weight: 600; width: 180px; }
.specs td { padding: 10px 14px; }

.reviews-summary { display: flex; align-items: center; gap: 18px; padding: 18px; background: var(--bg-soft); border-radius: var(--r); margin-bottom: 18px; }
.reviews-big { font-size: 48px; font-weight: 800; color: var(--brand-primary); }
.review-list { list-style: none; padding: 0; margin: 0; }
.review-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rev-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); margin-bottom: 4px; }
.review-list p { margin: 4px 0 0; color: var(--text); }

/* ── Cart ────────────────────────────────────────────────────────── */
.cart-page { padding: 0 20px 40px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; margin-top: 16px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  align-items: start;
}
.cart-item-img { width: 100px; height: 100px; background: var(--bg-soft); border-radius: var(--r-sm); overflow: hidden; cursor: pointer; }
.cart-item-body { display: flex; flex-direction: column; gap: 6px; }
.cart-item-name { font-weight: 600; line-height: 1.3; cursor: pointer; }
.cart-item-name:hover { color: var(--brand-primary); }
.cart-item-brand { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .05em; }
.cart-item-tag { font-size: 12px; color: #16a34a; font-weight: 600; }
.cart-item-bottom { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.link-del { background: none; border: 0; color: var(--text-mute); cursor: pointer; display: flex; align-items: center; gap: 4px; font-size: 13px; }
.link-del:hover { color: var(--brand-primary); }
.link-del svg { width: 14px; height: 14px; }
.cart-item-price { text-align: right; display: flex; flex-direction: column; gap: 2px; align-items: end; }
.cart-item-price small { font-size: 12px; color: var(--text-mute); }

.cart-summary {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  position: sticky;
  top: 144px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-summary h3 { margin-bottom: 10px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-soft); padding: 4px 0; }
.sum-tip { background: #FEF3C7; color: #92400E; padding: 8px 12px; border-radius: var(--r-sm); font-size: 13px; }
.sum-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; padding: 12px 0; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); margin: 6px 0; }
.trust-row { display: flex; align-items: center; gap: 8px; color: var(--text-mute); font-size: 13px; justify-content: center; padding: 8px 0; }
.trust-row svg { width: 16px; height: 16px; }
.cupon { display: flex; gap: 6px; margin-top: 6px; }
.cupon input { flex: 1; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; background: var(--bg-elev); color: var(--text); }
.cupon button { background: var(--bg-soft); border: 1px solid var(--line-strong); color: var(--text); padding: 0 14px; border-radius: var(--r-sm); cursor: pointer; font: inherit; font-weight: 600; }

.empty-cart { padding: 60px 20px; }

/* ── Checkout ────────────────────────────────────────────────────── */
.checkout-page { padding: 0 20px 40px; }
.checkout-steps { display: flex; gap: 8px; margin: 12px 0 22px; flex-wrap: wrap; }
.cstep {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mute);
}
.cstep.on { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.cstep span { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.06); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.cstep.on span { background: rgba(255,255,255,.25); }

.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }
.ch-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
}
.ch-card h2 { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-soft); font-weight: 500; }
.form-grid .full { grid-column: span 2; }
.form-grid input, .form-grid select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  background: var(--bg-elev);
  color: var(--text);
  transition: border-color .12s;
}
.form-grid input:focus, .form-grid select:focus { outline: none; border-color: var(--brand-primary); }
.ch-actions { display: flex; justify-content: space-between; gap: 10px; }
.pay-options { display: flex; flex-direction: column; gap: 8px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  background: var(--bg-elev);
  transition: border-color .12s, background .12s;
}
.pay-option:hover { border-color: var(--brand-primary); }
.pay-option.on { border-color: var(--brand-primary); background: color-mix(in oklab, var(--brand-primary) 5%, transparent); }
.pay-option input { accent-color: var(--brand-primary); }
.pay-ic { font-size: 22px; }
.checkout-summary {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  position: sticky;
  top: 144px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ch-items { list-style: none; padding: 0; margin: 0 0 12px; border-bottom: 1px dashed var(--line); padding-bottom: 12px; }
.ch-items li { display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; font-size: 13px; padding: 6px 0; align-items: start; }
.ch-it-qty { color: var(--text-mute); font-weight: 700; }
.ch-it-name { color: var(--text); }
.ch-it-price { white-space: nowrap; font-weight: 600; }

.checkout-done { padding: 60px 20px; }
.check-success { text-align: center; max-width: 540px; margin: 0 auto; }
.check-ic {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.check-ic svg { width: 48px; height: 48px; }
.check-success h1 { font-size: 32px; margin-bottom: 8px; }
.check-success p { color: var(--text-soft); }
.order-summary-card { background: var(--bg-soft); border-radius: var(--r); padding: 18px; margin: 24px 0; text-align: left; }
.order-summary-card div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.order-summary-card div:last-child { border-bottom: 0; }

/* ── Login ───────────────────────────────────────────────────────── */
.login-page { display: grid; grid-template-columns: 1fr 1fr; max-width: var(--container); margin: 30px auto; padding: 0 20px; gap: 30px; align-items: stretch; }
@media (max-width: 900px) { .login-page { grid-template-columns: 1fr; } }
.login-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-card h1 { font-size: 28px; }
.login-card p { color: var(--text-soft); margin: 0 0 8px; }
.login-card label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-soft); font-weight: 500; }
.login-card input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  background: var(--bg-elev);
  color: var(--text);
}
.login-card input:focus { outline: none; border-color: var(--brand-primary); }
.forgot { color: var(--brand-accent); font-size: 13px; align-self: flex-end; text-decoration: underline; }
.login-sep { text-align: center; color: var(--text-mute); font-size: 12px; margin: 12px 0; position: relative; }
.login-sep::before, .login-sep::after { content: ''; position: absolute; top: 50%; width: calc(50% - 60px); height: 1px; background: var(--line); }
.login-sep::before { left: 0; }
.login-sep::after { right: 0; }
.login-social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.login-social button {
  height: 44px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.login-social button:hover { background: var(--bg-soft); }
.login-toggle { font-size: 14px; color: var(--text-soft); text-align: center; }
.login-toggle a { color: var(--brand-primary); font-weight: 600; cursor: pointer; }

.login-side {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  border-radius: var(--r-lg);
  color: #fff;
  padding: 36px;
  display: flex;
  align-items: center;
}
.login-side-inner h2 { font-size: 30px; margin-bottom: 18px; }
.login-side-inner ul { list-style: none; padding: 0; line-height: 2; font-size: 15px; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer { background: var(--text); color: rgba(255,255,255,.85); margin-top: 60px; }
[data-theme="dark"] .site-footer { background: #06090F; }
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 50px 20px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; line-height: 2.2; font-size: 14px; }
.footer-grid li:hover { color: #fff; cursor: pointer; }
.socials { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.socials span { cursor: pointer; }
.newsletter { display: flex; gap: 6px; margin-top: 8px; }
.newsletter input { flex: 1; height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: rgba(255,255,255,.1); color: #fff; font: inherit; }
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter button { background: var(--brand-primary); color: #fff; border: 0; padding: 0 16px; border-radius: var(--r-sm); font: inherit; font-weight: 600; cursor: pointer; }
.footer-payments { max-width: var(--container); margin: 0 auto; padding: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.pay { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 5px 12px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.85); }
.footer-bottom { max-width: var(--container); margin: 0 auto; padding: 16px 20px 26px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.55); flex-wrap: wrap; gap: 10px; }

/* ── Toast ───────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 80px);
  background: var(--text);
  color: var(--bg);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity .22s, transform .22s cubic-bezier(.2,.7,.3,1.2);
  max-width: 90vw;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .circles { grid-template-columns: repeat(4, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .banner-row { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .header-main { grid-template-columns: auto 1fr auto; gap: 12px; }
  .header-burger { display: inline-flex; }
  .brand { display: none; }
  .header-action span { display: none; }
  .header-nav { display: none; }
  .header-nav.open { display: flex; flex-direction: column; background: var(--bg-elev); padding: 14px 20px; gap: 4px; border-top: 1px solid var(--line); }
  .header-nav.open a { white-space: normal; }
  .hero-inner { grid-template-columns: 1fr; padding: 26px; }
  .hero-art { display: none; }
  .hero-b { grid-template-columns: 1fr; }
  .banner-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .btn-mobile-filters { display: inline-flex; }
  .filters { position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 90vw; z-index: 100; transform: translateX(-105%); transition: transform .25s; border-radius: 0; max-height: none; height: 100vh; overflow-y: auto; }
  .filters.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .filters-head { display: flex; }
}
@media (max-width: 600px) {
  .circles { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .prod-actions { flex-direction: column; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item-price { grid-column: span 2; flex-direction: row; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--line); }
}
