/* ELECTROBOOM — Frontend marketplace (electrodomésticos y electrónica) */

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --orange: #f97316;
  --orange-hover: #ea580c;
  --orange-soft: #fff7ed;
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --teal: #0f766e;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 12px;
  --radius-pill: 999px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}


/* Main header */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--bg);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
.header-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 20px;
}
.header-main .hamburger {
  display: none;
}
.header-logo {
  display: flex;
  align-items: center;
  min-width: 0;
}
.header-logo img,
.brand-logo-img {
  height: clamp(52px, 4.5vw, 72px);
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
}
.logo-text-fallback {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.header-search {
  grid-column: 2;
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.header-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9375rem;
  outline: none;
}
.header-search input::placeholder {
  color: #94a3b8;
}
.header-search input:focus {
  box-shadow: none;
}
.search-btn {
  position: static;
  transform: none;
  flex-shrink: 0;
  width: 52px;
  min-height: 44px;
  border-radius: 0;
  background: #e8000d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.search-btn:hover { background: #c4000b; }
.search-btn:active { transform: scale(0.98); }
.search-btn-text { display: none; }

.header-accent-strip {
  height: 4px;
  background: linear-gradient(90deg, #e8000d 0%, #e8000d 33%, #fff 33%, #fff 66%, #1d4ed8 66%, #1d4ed8 100%);
}

.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  max-height: 380px; overflow-y: auto; z-index: 950;
}
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--surface); }
.search-result-img {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--surface); object-fit: contain; flex-shrink: 0;
}
.search-result-name { font-weight: 600; font-size: 0.9rem; }
.search-result-price { font-size: 0.85rem; color: var(--orange); font-weight: 700; margin-top: 2px; }
.search-no-results { padding: 16px; text-align: center; color: var(--muted); font-size: 0.9rem; }

.header-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.icon-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 26px; height: 26px; }
.icon-btn--cart {
  color: #1d4ed8;
}
.icon-btn--cart svg {
  stroke: #1d4ed8;
}
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #e8000d;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.icon-btn--account {
  display: none;
}

.btn-offers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 45%, #a855f7 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
  max-width: 160px;
}
.btn-offers:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.45);
}
.btn-offers-text--short { display: none; }

.hamburger {
  display: none;
  grid-column: 1;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
}
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 1px; }
.hamburger:hover { background: var(--surface); }

/* Category nav */
.nav-categories {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.nav-categories-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 12px;
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-categories-inner::-webkit-scrollbar { display: none; }
.nav-pill {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem; font-weight: 600;
  color: var(--muted); white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-pill:hover { color: var(--text); background: rgba(255,255,255,0.8); }
.nav-pill.active {
  background: #fff; color: var(--orange);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: var(--shadow-sm);
}

/* Promo strip */
.promo-strip {
  background: linear-gradient(90deg, #0f172a, #1e293b);
  color: #e2e8f0; font-size: 0.875rem;
}
.promo-strip-inner {
  max-width: var(--container); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.promo-strip strong { color: #fff; font-weight: 700; }

/* Hero */
.hero-wrap { background: #0f172a; color: #fff; }
.hero-carousel { position: relative; overflow: hidden; }
.hero-track {
  display: flex;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.hero-track.hero-track--transitioning {
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px; align-items: center;
  padding: 48px 5%;
  min-height: 380px;
  position: relative;
}
.hero-slide--muted {
  background: #111827;
}
.hero-slide h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 12px;
}
.hero-slide p { color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 420px; margin-bottom: 20px; }
.hero-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-primary-solid {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: var(--radius-pill);
  background: var(--orange); color: #fff; font-weight: 700; font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary-solid:hover { background: var(--orange-hover); }
a.btn-primary-solid,
a.hero-cta-link {
  text-decoration: none;
  color: #fff;
}
.btn-ghost-light {
  display: inline-flex; align-items: center; padding: 12px 20px;
  border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-weight: 600; font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); }
.hero-slide__copy {
  opacity: 0.35;
  transform: translateX(-20px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-slide.is-active .hero-slide__copy,
.hero-slide.hero-slide--animate .hero-slide__copy {
  opacity: 1;
  transform: translateX(0);
}

.hero-visual {
  position: relative;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  aspect-ratio: auto;
  min-height: 260px;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 5% 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(249, 115, 22, 0.14) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(400px, 42vh);
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: translateX(36px) scale(0.9);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
}
.hero-slide.is-active .hero-visual img,
.hero-slide.hero-slide--animate .hero-visual img {
  opacity: 1;
  transform: translateX(0) scale(1);
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes heroImgIn {
  from {
    opacity: 0;
    transform: translateX(48px) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
.hero-slide.hero-slide--animate .hero-slide__copy {
  animation: heroCopyIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-slide.hero-slide--animate .hero-visual img {
  animation: heroImgIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

.hero-visual-hit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: transparent;
  text-align: center;
}
a.hero-visual-hit {
  text-decoration: none;
  color: inherit;
}
.hero-visual-hit:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.hero-visual-hit img {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-track { transition: transform 0.3s ease; }
  .hero-slide__copy,
  .hero-visual img,
  .hero-slide.hero-slide--animate .hero-slide__copy,
  .hero-slide.hero-slide--animate .hero-visual img {
    animation: none !important;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.hero-prev, .hero-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: background 0.2s;
}
.hero-prev:hover, .hero-next:hover { background: rgba(249, 115, 22, 0.9); }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: none; padding: 0; cursor: pointer;
}
.hero-dots button.active { background: var(--orange); width: 22px; border-radius: 99px; }

/* Section */
.section { padding: 40px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.section-title {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text);
}
.section-link {
  font-size: 0.875rem; font-weight: 700; color: var(--orange);
  display: inline-flex; align-items: center; gap: 6px;
}
.section-link:hover { text-decoration: underline; }

/* Flash deals — Solo por hoy */
.flash-deals-section {
  padding: 28px 0 36px;
  background: #fff;
}
.flash-deals-wrap {
  padding-left: 20px;
  padding-right: 20px;
}
.flash-deal-block {
  display: grid;
  grid-template-columns: 252px 1fr;
  gap: 0;
  align-items: start;
  border: 1px solid #7dd3fc;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.12);
}
.promo-aside {
  background: linear-gradient(180deg, #67e8f9 0%, #38bdf8 45%, #0ea5e9 100%);
  color: #0f172a;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  min-height: 0;
  align-self: start;
}
.promo-aside-brand {
  flex: 0 0 auto;
}
.promo-aside-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  line-height: 0;
  padding: 8px 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  align-self: center;
}
.promo-aside-logo {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  filter: none;
}
.promo-solo-title {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #0e7490;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 rgba(255, 255, 255, 0.5);
  margin: 0 0 10px;
}
.promo-solo-title span {
  display: block;
  color: #0369a1;
}
.promo-exclusivo {
  display: block;
  margin: 0;
  padding: 9px 10px;
  background: #14532d;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  border-radius: 4px;
  text-align: center;
}
.promo-aside-countdown {
  background: #fff;
  border-radius: 8px;
  padding: 10px 10px 8px;
  margin-top: 8px;
  flex: 0 0 auto;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.promo-countdown-urgent {
  font-size: 0.72rem;
  font-weight: 900;
  color: #e8000d;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.promo-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1.25;
  text-align: center;
}
.promo-countdown span {
  display: block;
}
.promo-countdown strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 2px;
}
.flash-deals-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  padding: 14px 10px 10px;
}
.flash-carousel-box {
  flex: 1;
  position: relative;
  min-height: 320px;
}
.flash-carousel-scroll {
  gap: 12px;
  padding: 2px 40px 6px;
  align-items: stretch;
}
.flash-deals-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 10px;
  flex-wrap: wrap;
}
.flash-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}
.flash-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.flash-page-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.flash-page-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.flash-see-all {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--orange);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}
.flash-see-all:hover { text-decoration: underline; }

.carousel-box { position: relative; min-width: 0; }
.carousel-scroll {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.carousel-scroll::-webkit-scrollbar { height: 6px; }
.carousel-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; color: var(--orange);
  transition: background 0.2s, border-color 0.2s;
}
.carousel-nav:hover { border-color: var(--orange); background: var(--orange-soft); }
.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }
.flash-carousel-box .carousel-nav {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--orange);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}
.flash-carousel-box .carousel-nav:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* Flash deal product card */
.pc-card--flash {
  min-width: min(280px, 32%);
  flex: 0 0 min(280px, 32%);
  max-width: none;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100%;
}
.pc-card--flash:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}
.pc-flash-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px 6px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0284c7;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  margin: 0;
}
.pc-flash-ribbon-logo {
  height: 14px;
  width: auto;
  object-fit: contain;
}
.pc-flash-img-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.pc-card--flash .pc-img-wrap {
  aspect-ratio: 1 / 0.92;
  padding: 12px 14px;
  background: #f1f5f9;
  position: relative;
}
.pc-card--flash .pc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.pc-card--flash .pc-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pc-card--flash .pc-meta {
  margin-bottom: 6px;
  font-size: 0.72rem;
}
.pc-card--flash .pc-cod {
  color: #64748b;
  font-weight: 600;
}
.pc-card--flash .pc-disc-pct {
  color: #e8000d;
  font-weight: 800;
}
.pc-card--flash .pc-stock {
  font-size: 0.72rem;
  font-weight: 700;
}
.pc-card--flash .pc-name {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 4px;
  padding: 0;
  min-height: 2.65em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-card--flash .pc-name a {
  color: #0f172a;
  text-decoration: none;
}
.pc-card--flash .pc-name a:hover {
  color: var(--orange);
}
.pc-card--flash .pc-detail-link {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0 0 8px;
  text-decoration: underline;
  align-self: flex-start;
}
.pc-card--flash .pc-contado-bar {
  background: #e8000d;
  margin-top: 8px;
  border-radius: 6px;
  min-height: 48px;
}
.pc-card--flash .pc-contado-bar .pc-add {
  width: 48px;
  background: rgba(0, 0, 0, 0.15);
}
.pc-card--flash .pc-price-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 12px 8px 8px;
  text-align: right;
  gap: 2px;
}
.pc-card--flash .pc-price-row {
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}
.pc-card--flash .pc-price-old {
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: line-through;
  opacity: 0.95;
  color: #fff;
  order: -1;
}
.pc-card--flash .pc-price-main {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
}
.pc-card--flash .pc-label {
  display: none;
}
.pc-card--flash .pc-pay-hint--flash {
  display: block;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 6px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  background: #f8fafc;
  border-radius: 6px;
}

@media (min-width: 1024px) {
  .flash-deal-block {
    grid-template-columns: 268px 1fr;
  }
  .promo-aside-logo {
    height: 48px;
  }
  .pc-card--flash {
    min-width: calc((100% - 24px) / 3);
    flex: 0 0 calc((100% - 24px) / 3);
  }
  .flash-carousel-scroll {
    scroll-snap-type: x mandatory;
  }
  .pc-card--flash {
    scroll-snap-align: start;
  }
}

/* Product card v2 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
  scroll-snap-align: start;
  min-width: 260px;
  flex: 0 0 min(280px, 85vw);
}
.pc-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(249, 115, 22, 0.35);
}
a.pc-card-hero {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.pc-card-hero:hover .pc-name {
  color: var(--orange);
}
a.pc-card-hero .pc-name {
  padding: 10px 14px 0;
}
.pc-pay-hint {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 10px 0 0;
  padding: 8px 10px;
  background: var(--surface);
  border-radius: 8px;
}
.pc-img-wrap {
  position: relative;
  background: var(--surface);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.pc-img-wrap img { max-height: 100%; object-fit: contain; }
.pc-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--orange); color: #fff;
  padding: 4px 8px; border-radius: 99px;
}
.pc-stock {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.7rem; font-weight: 700;
  color: var(--green);
}
.pc-stock.out { color: var(--muted); }
.pc-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.pc-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.7rem; color: var(--muted); margin-bottom: 6px;
}
.pc-name {
  font-size: 0.82rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.02em; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.5em;
}
.pc-detail-link {
  font-size: 0.72rem; font-weight: 700; color: var(--orange);
  margin-top: 4px; display: inline-block;
  background: none; border: none; padding: 0;
  text-align: left; cursor: pointer;
  text-decoration: none;
}
.pc-detail-link:hover { text-decoration: underline; }

.pc-label { font-size: 0.65rem; font-weight: 700; color: var(--muted); margin-top: 12px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.pc-contado-bar {
  display: flex; align-items: stretch;
  border-radius: 8px; overflow: hidden;
  background: var(--orange);
}
.pc-contado-bar .pc-add {
  flex-shrink: 0; width: 44px;
  background: rgba(0,0,0,0.12);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  transition: background 0.2s;
}
.pc-contado-bar .pc-add:hover { background: rgba(0,0,0,0.2); }
.pc-price-block {
  flex: 1; padding: 8px 10px; color: #fff;
}
.pc-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pc-price-main { font-size: 1rem; font-weight: 800; }
.pc-price-old {
  font-size: 0.75rem; text-decoration: line-through; opacity: 0.9;
}

.pc-cuotas-row {
  display: flex; gap: 6px; margin-top: 8px; align-items: stretch;
}
.pc-cuotas-row select {
  flex: 1; min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.78rem; font-weight: 600;
  color: var(--text);
}
.pc-cuotas-add {
  width: 40px; flex-shrink: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none;
  transition: background 0.2s;
}
.pc-cuotas-add:hover { background: var(--orange-hover); }

.section-muted { background: var(--surface); }

/* Category / search views */
.page-view { padding: 28px 0 48px; }
.view-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.875rem; font-weight: 600; color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.btn-back:hover { border-color: var(--orange); background: var(--orange-soft); }
.view-title { font-size: 1.5rem; font-weight: 800; }

/* Cart sidebar */
.cart-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; right: 0; z-index: 1110;
  width: min(420px, 100%); height: 100%;
  background: var(--bg);
  box-shadow: -8px 0 40px rgba(15, 23, 42, 0.15);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-head h2 { font-size: 1.1rem; font-weight: 800; }
.cart-close { padding: 8px; border-radius: 8px; color: var(--muted); }
.cart-close:hover { background: var(--surface); color: var(--text); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty { text-align: center; padding: 40px 16px; color: var(--muted); font-size: 0.9rem; }
.cart-item {
  display: flex; gap: 12px; padding: 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; background: var(--surface);
}
.cart-item-img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; background: #fff; border-radius: 8px; }
.cart-item-name { font-weight: 700; font-size: 0.85rem; line-height: 1.3; }
.cart-item-meta { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.cart-item-price { font-weight: 800; color: var(--orange); margin-top: 6px; font-size: 0.9rem; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--border); background: #fff; font-weight: 800;
  font-size: 1rem; line-height: 1;
}
.qty-btn:hover { border-color: var(--orange); color: var(--orange); }
.qty-count { font-weight: 800; min-width: 22px; text-align: center; font-size: 0.9rem; }
.cart-remove { margin-left: auto; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.cart-remove:hover { color: var(--red); }

.cart-foot {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-weight: 700;
}
.cart-total-amount { font-size: 1.25rem; font-weight: 800; color: var(--orange); }
.btn-checkout-wa {
  width: 100%; padding: 14px; border-radius: 10px;
  background: #25d366; color: #fff; font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 10px;
  transition: filter 0.2s, transform 0.15s;
}
.btn-checkout-wa:hover { filter: brightness(1.05); }
.btn-clear {
  width: 100%; padding: 10px; border-radius: 10px;
  border: 1px solid var(--border); font-weight: 600; color: var(--muted);
  font-size: 0.85rem;
}
.btn-clear:hover { border-color: var(--red); color: var(--red); }

/* Checkout modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(15, 23, 42, 0.5);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.checkout-modal {
  background: var(--bg);
  border-radius: 14px;
  width: min(480px, 100%);
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}
.checkout-modal header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.checkout-modal header h3 { font-size: 1.05rem; font-weight: 800; }
.checkout-body { padding: 18px 20px 22px; display: grid; gap: 12px; }
.checkout-body label { font-size: 0.78rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: 4px; }
.checkout-body input, .checkout-body select, .checkout-body textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface);
}
.checkout-body textarea { min-height: 72px; resize: vertical; }
.checkout-actions { display: flex; gap: 10px; margin-top: 8px; }
.checkout-actions button {
  flex: 1; padding: 12px; border-radius: 10px; font-weight: 700;
}
.btn-cancel-modal { border: 1px solid var(--border); background: #fff; color: var(--text); }
.btn-cancel-modal:hover { background: var(--surface); }
.btn-send-wa { background: #25d366; color: #fff; border: none; }
.btn-send-wa:hover { filter: brightness(1.05); }

/* Product detail modal */
.detail-modal .checkout-body p { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* Sugerencias (fin de home) */
.suggested-section {
  background: #fff;
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
}
.suggested-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}
.suggested-title {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark, #1e3a8a);
  margin: 0 0 10px;
}
.suggested-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.suggested-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 1100px) {
  .suggested-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .suggested-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .suggested-grid { grid-template-columns: 1fr; }
}

/* Footer (estilo marketplace claro) */
.site-footer.site-footer--full {
  background: #f1f5f9;
  color: var(--text);
}
.footer-top {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.footer-top-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 20px 32px;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 28px 24px;
  align-items: start;
}
.footer-brand-block { max-width: 300px; }
.footer-logo-link { display: inline-block; margin-bottom: 10px; max-width: 100%; }
.footer-logo-img {
  height: clamp(52px, 7vw, 68px);
  width: auto;
  max-width: min(380px, 100%);
  object-fit: contain;
  object-position: left center;
}
.footer-logo-fallback { font-size: 1.25rem; font-weight: 900; color: var(--blue-dark); }
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 16px;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: var(--blue-dark);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.footer-social-btn:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social-btn--wa {
  background: #dcfce7;
  color: #15803d;
}
.footer-social-btn--wa:hover {
  background: #25d366;
  color: #fff;
}
.footer-info-card {
  padding-top: 4px;
}
.footer-info-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-dark);
  margin: 0 0 10px;
}
.footer-info-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 8px;
}
.footer-info-text:last-child { margin-bottom: 0; }
.footer-info-text a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}
.footer-info-text a:hover { text-decoration: underline; }
.footer-info-label { font-weight: 700; color: var(--text); }

.footer-mid {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.footer-mid-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 20px 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 20px;
}
.footer-mid-grid h4 {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-dark);
  margin: 0 0 12px;
}
.footer-mid-grid a,
.footer-cat-links a {
  display: block;
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-mid-grid a:hover,
.footer-cat-links a:hover {
  color: var(--orange);
}
.footer-link-btn {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  background: none;
  border: none;
  padding: 0 0 8px;
  cursor: pointer;
  font-family: inherit;
}
.footer-link-btn:hover { color: var(--orange); }
.footer-news-col { grid-column: span 1; }
.footer-news-hint {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 12px;
}
.footer-news-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-news-form input {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  background: #fff;
}
.footer-news-form input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.footer-news-form button {
  padding: 11px 18px;
  border-radius: 8px;
  border: none;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  cursor: pointer;
  transition: filter 0.2s;
}
.footer-news-form button:hover { filter: brightness(1.08); }

.footer-bottom {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.55);
  padding: 16px 20px;
  font-size: 0.8rem;
}
.footer-bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.footer-bottom-note { font-size: 0.78rem; opacity: 0.85; }
.back-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 800;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}
.back-top.visible { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-3px); }

/* Auth modal */
.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 1250;
  background: rgba(15, 23, 42, 0.5); display: none;
}
.auth-modal-overlay.show { display: block; }
.auth-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 24px)); background: var(--bg);
  border-radius: 14px; box-shadow: var(--shadow); z-index: 1260;
  display: none; max-height: 90vh; overflow-y: auto;
}
.auth-modal.show { display: block; }
.auth-modal-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 18px 0; }
.auth-tab {
  padding: 8px; border-radius: 8px; border: 1px solid var(--border);
  font-weight: 700; background: #fff;
}
.auth-tab.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.auth-form { padding: 14px 18px 18px; display: grid; gap: 8px; }
.auth-form label { font-size: 0.8rem; font-weight: 700; }
.auth-form input {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
}
.auth-submit {
  margin-top: 6px; padding: 10px; border-radius: 8px;
  background: var(--text); color: #fff; font-weight: 800; border: none;
}
.auth-feedback { margin: 0 18px; padding: 10px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; }
.auth-feedback.error { background: #fef2f2; color: #b91c1c; }
.auth-feedback.success { background: #f0fdf4; color: #15803d; }
.auth-user-box { padding: 16px 18px; border-top: 1px solid var(--border); }

/* Wa float */
.wa-float {
  position: fixed; bottom: 88px; right: 24px; z-index: 799;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.06); }

/* Menú lateral (móvil: estilo panel tienda — logo, mi cuenta, lista + subpantalla categorías) */
.cat-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.cat-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cat-drawer {
  position: fixed;
  top: 0;
  height: 100vh;
  width: min(380px, 92vw);
  max-width: 100%;
  background: #fff;
  z-index: 9001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 768px) {
  .cat-drawer {
    left: 0;
    right: auto;
    width: min(360px, 88vw);
    box-shadow: 8px 0 40px rgba(15, 23, 42, 0.2);
    transform: translateX(-100%);
  }
  .cat-drawer.open {
    transform: translateX(0);
  }
}
@media (min-width: 769px) {
  .cat-drawer {
    right: 0;
    left: auto;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
  }
  .cat-drawer.open {
    transform: translateX(0);
  }
}
body.cat-drawer-open {
  overflow: hidden;
}

.mobile-nav-panels {
  display: flex;
  width: 200%;
  height: 100%;
  flex: 1;
  min-height: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav-panels.mobile-nav-panels--sub {
  transform: translateX(-50%);
}
.mobile-nav-panel {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
.mobile-nav-brand {
  position: relative;
  padding: 22px 52px 18px 20px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}
.mobile-nav-close {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-close:hover {
  background: #f1f5f9;
  color: var(--orange);
}
.mobile-nav-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-logo-img {
  height: clamp(52px, 11vw, 72px);
  width: auto;
  max-width: min(360px, 92vw);
  object-fit: contain;
  object-position: center;
}
.mobile-nav-logo-fallback {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.mobile-menu-account {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.mobile-menu-account:hover {
  background: #fafafa;
}
.mobile-menu-account svg {
  flex-shrink: 0;
  color: #334155;
}

.mobile-menu-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 17px 20px;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.mobile-menu-row:hover,
.mobile-menu-row:active {
  background: #f8fafc;
}
.mobile-menu-row--chevron .mobile-menu-chevron {
  display: flex;
  align-items: center;
  color: #94a3b8;
}

.mobile-nav-subhead {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 8px 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.mobile-nav-back {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  color: #0f172a;
  flex-shrink: 0;
}
.mobile-nav-back:hover {
  background: #f1f5f9;
}
.mobile-nav-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.mobile-menu-cat-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-cat-row {
  display: block;
  width: 100%;
  padding: 17px 20px;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.mobile-cat-row:hover,
.mobile-cat-row:active {
  background: #f8fafc;
}

.nav-pill--drawer-only {
  display: none;
}
@media (max-width: 768px) {
  .nav-pill--drawer-only {
    display: inline-flex;
    align-items: center;
  }
}

.boom-product-slot {
  width: 100%;
  min-height: 0;
}
.boom-product-slot .pc-card--boom {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}
.boom-product-slot .pc-card--boom .pc-img-wrap {
  aspect-ratio: 4 / 3;
  max-height: 140px;
}
.boom-product-slot .pc-card--boom .pc-body {
  padding: 10px 12px 12px;
}
.boom-product-slot .pc-card--boom .pc-name {
  font-size: 0.82rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-boom-hint {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.85;
  margin: 4px 0 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .carousel-section { grid-template-columns: 1fr; }
  .promo-aside {
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
  }
  .promo-aside-countdown {
    margin-top: 0;
    flex: 1 1 100%;
  }
  .promo-countdown { max-width: 280px; }
}
@media (max-width: 1024px) {
  .footer-top-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand-block {
    grid-column: 1 / -1;
    max-width: none;
  }
  .footer-mid-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-news-col {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top-inner {
    grid-template-columns: 1fr;
  }
  .hero-slide {
    display: flex;
    flex-direction: column;
    padding: 28px 18px 24px;
    min-height: auto;
    gap: 18px;
  }
  .hero-slide h1 {
    font-size: clamp(1.35rem, 4.8vw, 2rem);
    margin-bottom: 10px;
  }
  .hero-slide p {
    font-size: clamp(0.92rem, 2.4vw, 1rem);
    max-width: none;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-cta-row .btn-primary-solid,
  .hero-cta-row .btn-ghost-light,
  .hero-cta-row .hero-cta-link {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .hero-visual {
    aspect-ratio: auto;
    max-height: none;
    background: transparent;
  }
  .hero-visual img {
    max-height: 220px;
  }
  .carousel-nav { display: none; }
  .promo-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.45;
  }
}
@media (max-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 950;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
  }

  .header-main .hamburger {
    display: flex;
  }

  .header-row,
  .header-main {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-rows: 50px auto;
    grid-template-areas:
      "menu logo actions"
      "search search search";
    gap: 10px 8px;
    padding: 10px 14px 14px;
    align-items: center;
  }

  .hamburger {
    grid-area: menu;
    align-self: center;
    justify-self: start;
    width: 44px;
    height: 44px;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-logo {
    grid-area: logo;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 50px;
    max-height: 50px;
    padding: 0 6px;
    line-height: 0;
  }

  .header-actions {
    grid-area: actions;
    align-self: center;
    gap: 8px;
    margin-left: 0;
  }

  .header-search {
    grid-area: search;
    display: flex;
    align-items: stretch;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  }

  .header-logo img,
  .brand-logo-img {
    height: 46px;
    width: auto;
    max-width: min(100%, calc(100vw - 128px));
    max-height: 46px;
    object-fit: contain;
    object-position: center;
  }

  .header-actions .icon-btn:first-child {
    display: none;
  }

  .icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    padding: 0;
    border: 1px solid #d1d5db;
    background: #fff;
  }

  .icon-btn span {
    display: none;
  }

  .icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .btn-offers {
    height: 42px;
    padding: 0 9px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3524b8, #1d4ed8);
  }

  .btn-offers span { display: none; }
  .btn-offers svg { width: 16px; height: 16px; }

  .header-search input {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: none;
    border-radius: 0;
    background: #fff;
    padding: 0 12px;
    font-size: 1rem;
    box-shadow: none;
  }

  .header-search input:focus {
    box-shadow: none;
    border: none;
  }

  .search-btn {
    position: static;
    transform: none;
    flex-shrink: 0;
    width: 68px;
    height: auto;
    min-height: 46px;
    border-radius: 0;
    font-size: 1.05rem;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 0.02em;
    background: #f59e0b;
  }

  .search-btn:hover {
    background: #ea8a06;
  }

  .search-btn:active {
    transform: none;
  }

  .search-btn svg {
    display: none;
  }

  .search-btn-text {
    display: block;
    line-height: 1;
    font-style: normal;
  }

  .hero-wrap { overflow: hidden; }

  .hero-slide {
    display: flex;
    flex-direction: column;
    padding: 18px 16px 24px;
    gap: 16px;
  }

  .hero-slide > div:first-child {
    order: 1;
    min-width: 0;
  }

  .hero-slide .hero-visual {
    order: 2;
    flex-shrink: 0;
  }

  .hero-slide h1 {
    font-size: clamp(1.1rem, 4.6vw, 1.45rem);
    line-height: 1.22;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-slide p {
    font-size: clamp(0.88rem, 3.4vw, 0.98rem);
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .hero-tag {
    font-size: 0.68rem;
    margin-bottom: 8px;
  }

  .hero-visual {
    border-radius: 0;
    background: transparent;
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
    width: 100%;
    margin-top: 4px;
    padding: 0;
  }
  .hero-visual img {
    max-height: clamp(160px, 44vw, 220px);
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-carousel {
    padding-bottom: 8px;
  }

  .hero-prev,
  .hero-next {
    display: none;
  }

  .hero-dots {
    bottom: 10px;
    gap: 6px;
  }

  .nav-categories {
    border-top: 1px solid var(--border);
    box-shadow: inset 0 -8px 8px -8px rgba(15, 23, 42, 0.06);
  }

  .nav-categories-inner {
    padding: 8px 14px 10px;
    gap: 8px;
    scroll-padding-inline: 14px;
  }

  .nav-pill {
    padding: 8px 14px;
    font-size: 0.8125rem;
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .promo-strip-inner {
    padding: 12px 16px;
    font-size: 0.8125rem;
    gap: 8px;
    line-height: 1.45;
  }

  .section {
    padding: 24px 0;
  }

  .section.container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-head {
    margin-bottom: 12px;
    align-items: center;
  }

  .section-title {
    font-size: clamp(1.35rem, 4.8vw, 1.75rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .section-link {
    font-size: clamp(0.85rem, 3.2vw, 1rem);
    font-weight: 800;
    text-transform: lowercase;
  }

  #ofertas .section-title {
    font-size: 1.35rem;
    line-height: 1.15;
  }

  #ofertas .section-link {
    font-size: 0.9rem;
  }

  #ofertas .section-head {
    padding: 0 2px;
  }

  .carousel-section {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #ofertas .promo-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    min-height: 0;
  }

  #ofertas .promo-aside-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
  }

  #ofertas .promo-boom-day {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    margin: 0;
    line-height: 1.2;
  }

  #ofertas .promo-aside h3 {
    font-size: 1.35rem;
    line-height: 1.1;
    margin: 0;
  }

  #ofertas .promo-aside p {
    font-size: 0.8125rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.92;
  }

  #ofertas .boom-product-slot {
    width: 100%;
  }

  #ofertas .boom-product-slot .pc-card--boom {
    border-radius: 14px;
    overflow: hidden;
    min-width: 0;
  }

  #ofertas .boom-product-slot .pc-card--boom .pc-img-wrap {
    aspect-ratio: 16 / 10;
    max-height: 200px;
    padding: 12px;
  }

  #ofertas .boom-product-slot .pc-card--boom .pc-body {
    padding: 12px 14px 14px;
  }

  #ofertas .boom-product-slot .pc-card--boom .pc-name {
    font-size: 0.875rem;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
    min-height: 0;
    -webkit-line-clamp: 3;
  }

  #ofertas .boom-product-slot .pc-card--boom .pc-meta,
  #ofertas .boom-product-slot .pc-card--boom .pc-detail-link {
    font-size: 0.75rem;
  }

  #ofertas .boom-product-slot .pc-card--boom .pc-label {
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 0.68rem;
  }

  #ofertas .boom-product-slot .pc-card--boom .pc-contado-bar .pc-add {
    width: 40px;
  }

  #ofertas .boom-product-slot .pc-card--boom .pc-price-block {
    padding: 8px 10px;
  }

  #ofertas .boom-product-slot .pc-card--boom .pc-price-main {
    font-size: 1.05rem;
  }

  #ofertas .boom-product-slot .pc-card--boom .pc-pay-hint {
    margin-top: 8px;
    padding: 8px 10px;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  #ofertas .promo-aside-bottom {
    margin: 0;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
  }

  #ofertas .promo-countdown-label {
    font-size: 0.7rem;
    margin-top: 0;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
  }

  #ofertas .promo-countdown {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 0;
  }

  #ofertas .promo-countdown strong {
    font-size: 1.1rem;
    line-height: 1;
  }

  #ofertas .promo-countdown span {
    font-size: 0.68rem;
    padding: 8px 4px;
    border-radius: 8px;
  }

  .carousel-scroll {
    gap: 12px;
    padding-bottom: 4px;
  }

  .wa-float {
    width: 52px;
    height: 52px;
    bottom: 72px;
    right: 14px;
  }

  .back-top {
    width: 44px;
    height: 44px;
    bottom: 14px;
    right: 14px;
  }

  /* Barra de pastillas siempre visible; el hamburguesa abre el drawer de categorías (no expande esta fila). */
  .footer-mid-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .container { padding: 0 12px; }

  .header-row {
    padding: 8px 12px 12px;
    gap: 8px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-rows: 48px auto;
  }

  .header-logo {
    height: 48px;
    max-height: 48px;
  }

  .header-logo img,
  .brand-logo-img {
    height: 42px;
    max-height: 42px;
    max-width: calc(100vw - 120px);
  }

  .hamburger {
    width: 42px;
    height: 42px;
    padding: 9px;
  }

  .hamburger span {
    width: 20px;
  }

  .icon-btn,
  .btn-offers {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .header-search input {
    height: 44px;
    font-size: 0.9375rem;
  }

  .search-btn {
    width: 62px;
    min-height: 44px;
    font-size: 0.95rem;
  }

  .hero-slide {
    padding: 14px 12px 18px;
  }

  .hero-slide h1 {
    font-size: clamp(1.15rem, 5.8vw, 1.45rem);
    line-height: 1.2;
  }

  .hero-slide p {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .hero-visual img {
    max-height: 170px;
  }

  .promo-strip-inner {
    padding: 9px 12px;
    font-size: 0.76rem;
  }

  .footer-logo-img {
    height: clamp(48px, 11vw, 58px);
  }

  #ofertas .promo-aside {
    padding: 14px;
    gap: 12px;
  }

  #ofertas .promo-aside h3 {
    font-size: 1.2rem;
  }
}
@media (max-width: 520px) {
  .products-grid { grid-template-columns: 1fr; }
  .pc-card { min-width: 100%; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .brands-track { animation: none; }
}
