:root {
  --page: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --surface-strong: #e6edf5;
  --text: #142033;
  --muted: #667085;
  --border: #dde5ef;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --accent: #16a34a;
  --accent-soft: #dcfce7;
  --warning: #f59e0b;
  --danger: #dc2626;
  --shadow-sm: 0 4px 16px rgba(20, 32, 51, 0.07);
  --shadow-md: 0 16px 40px rgba(20, 32, 51, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.2, 1.35, 0.35, 1);

  /* Tokens de diseño (rediseño limpio) */
  --radius-card: 18px;
  --radius-pill: 999px;
  --brand-soft: #eef4ff;
  --shadow-card: 0 1px 2px rgba(20, 32, 51, 0.04);
  --shadow-card-hover: 0 20px 42px rgba(37, 99, 235, 0.13), 0 6px 14px rgba(20, 32, 51, 0.06);
}

html {
  min-height: 100%;
  overflow-x: clip;
}

* {
  scrollbar-color: var(--brand) var(--surface-soft);
}

body {
  background: var(--page);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

body > footer {
  margin-top: auto !important;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-dark);
}

/* Navbar */
.main-nav {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(20, 32, 51, 0.05);
  backdrop-filter: blur(14px);
  animation: navDropIn 0.55s var(--ease-out) both;
}

.nav-shell {
  min-height: 64px;
}

.brand-text {
  color: var(--text);
}

.brand-text:hover {
  color: var(--text);
}

.brand-accent,
.footer-brand span,
.footer-brand i {
  color: var(--brand);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
  animation: brandMarkIn 0.7s var(--ease-spring) 0.1s both;
}

.main-nav .nav-link {
  color: #44546a !important;
  font-weight: 600;
  border-radius: 8px;
  padding-inline: 0.85rem !important;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
  color: var(--brand) !important;
  background: #edf4ff;
}

.cart-badge {
  position: absolute;
  top: -3px;
  right: -7px;
  font-size: 0.65rem;
  background: var(--warning) !important;
  color: #211400 !important;
  font-weight: 800;
}

.cart-badge-pop {
  animation: cartBadgePop 0.55s cubic-bezier(0.2, 1.35, 0.35, 1);
}

.cart-target-pop {
  animation: cartTargetPop 0.5s ease;
}

.dropdown-menu {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.dropdown-item {
  color: var(--text);
}

.dropdown-item:hover {
  background: #edf4ff;
  color: var(--brand);
}

.store-main {
  flex: 1 0 auto;
  width: 100%;
}

/* Hero */
.store-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  margin: -1.5rem calc(50% - 50vw) 2.25rem;
  padding: clamp(1.5rem, 4vw, 3rem)
    max(1rem, calc((100vw - 1296px) / 2 + 1rem));
  background: linear-gradient(180deg, #f5f8fd 0%, #eef3fa 100%);
  border: 1px solid var(--border);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  animation: heroSurfaceIn 0.75s var(--ease-out) both;
}

.store-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.028) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.store-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    115deg,
    transparent 12%,
    rgba(255, 255, 255, 0.48) 44%,
    rgba(255, 255, 255, 0.08) 52%,
    transparent 70%
  );
  opacity: 0.5;
  pointer-events: none;
  transform: translateX(-120%);
  animation: heroLightSweep 7.5s ease-in-out 0.8s infinite;
}

.hero-copy,
.hero-showcase {
  position: relative;
  z-index: 2;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(16px);
  animation: heroItemIn 0.72s var(--ease-out) forwards;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.22s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.42s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.52s; }

.hero-actions .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, background 0.18s ease, border-color 0.18s ease;
}

/* Brillo que cruza el boton al pasar el cursor */
.hero-actions .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%
  );
  transform: translateX(-130%);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}

.hero-actions .btn:hover::after {
  transform: translateX(130%);
}

.hero-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(20, 32, 51, 0.18);
}

.hero-actions .btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* El icono se desplaza levemente al pasar el cursor */
.hero-actions .btn i {
  transition: transform 0.25s var(--ease-spring);
}

.hero-actions .btn:hover i {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions .btn::after {
    display: none;
  }
}

.hero-eyebrow,
.section-kicker,
.price-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-title {
  margin: 0.75rem 0 0.85rem;
  color: #101828;
  font-size: clamp(2.25rem, 5vw, 4.3rem);
  font-weight: 850;
  line-height: 1;
}

.hero-sub {
  max-width: 620px;
  color: #48566a;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.42rem 0.68rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-trust i {
  color: var(--accent);
  font-size: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 640px;
  margin-top: 1.75rem;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(221, 229, 239, 0.85);
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  backdrop-filter: blur(6px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-stat:hover {
  transform: translateY(-3px);
  border-color: #bdd0ff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.1);
}

.hero-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.15rem;
}

.hero-stat-text {
  min-width: 0;
}

.hero-stat-text strong,
.hero-stat-text span {
  display: block;
  line-height: 1.15;
}

.hero-stat-text strong {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 850;
}

.hero-stat-text span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-showcase {
  min-height: 390px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 30px rgba(20, 32, 51, 0.06);
  opacity: 0;
  transform: translateX(18px) scale(0.985);
  animation: heroShowcaseIn 0.8s var(--ease-out) 0.35s forwards;
}

.showcase-label {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  background: var(--text);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 0.9rem;
  height: 100%;
}

.showcase-item,
.showcase-empty {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(221, 229, 239, 0.7);
  border-radius: 12px;
  transform: translateY(0);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.showcase-item-featured {
  grid-row: span 2;
  animation-duration: 6.2s;
}

.showcase-item:nth-child(2) {
  animation-delay: 0.55s;
}

.showcase-item:nth-child(3) {
  animation-delay: 1.1s;
}

.showcase-item:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: #b8c9f6;
  box-shadow: 0 18px 42px rgba(20, 32, 51, 0.14);
}

.showcase-item img {
  width: 100%;
  height: 100%;
  padding: 1.1rem;
  object-fit: contain;
  transition: transform 0.28s ease, opacity 0.8s ease-in-out;
}

/* Fundido suave al rotar el destacado */
.showcase-item > img {
  transition: opacity 0.8s ease-in-out, transform 0.6s ease-in-out;
}

.showcase-item > span {
  transition: opacity 0.8s ease-in-out;
}

.showcase-item.is-swapping > img {
  opacity: 0;
  transform: scale(1.03);
}

.showcase-item.is-swapping > span {
  opacity: 0;
}

.showcase-item:hover img {
  transform: scale(1.05);
}

.showcase-item span {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: -webkit-box;
  overflow: hidden;
  padding: 0.45rem 0.6rem;
  background: rgba(16, 24, 40, 0.84);
  color: #fff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.showcase-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--muted);
}

.showcase-empty i {
  color: var(--brand);
  font-size: 3rem;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 750;
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
}

.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
}

.btn-outline-secondary {
  --bs-btn-color: #344054;
  --bs-btn-border-color: #cbd5e1;
  --bs-btn-hover-bg: #f1f5f9;
  --bs-btn-hover-border-color: #94a3b8;
  --bs-btn-hover-color: #1f2937;
}

.btn-success {
  --bs-btn-bg: #22c55e;
  --bs-btn-border-color: #22c55e;
  --bs-btn-hover-bg: #16a34a;
  --bs-btn-hover-border-color: #16a34a;
  color: #052e16;
  font-weight: 800;
}

.btn-whatsapp {
  --bs-btn-bg: #22c55e;
  --bs-btn-border-color: #22c55e;
  --bs-btn-hover-bg: #16a34a;
  --bs-btn-hover-border-color: #16a34a;
  color: #052e16;
  box-shadow: 0 10px 22px rgba(34, 197, 94, 0.18);
}

/* WhatsApp secundario (ghost): no compite con la accion principal */
.btn-whatsapp-ghost {
  --bs-btn-color: #15803d;
  --bs-btn-border-color: #bbf7d0;
  --bs-btn-bg: #ffffff;
  --bs-btn-hover-bg: #f0fdf4;
  --bs-btn-hover-border-color: #22c55e;
  --bs-btn-hover-color: #166534;
  --bs-btn-active-bg: #dcfce7;
  font-weight: 750;
}

.text-primary {
  color: var(--brand) !important;
}

/* Secciones de tienda a ancho completo */
.catalog-section,
.deal-section,
.news-section {
  margin: 0 calc(50% - 50vw) 2rem;
  padding-inline: max(0.85rem, calc((100vw - 1680px) / 2 + 1rem));
}

/* Catalog */
.catalog-section {
  scroll-margin-top: 88px;
}

.news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.news-head h2 {
  margin: 0.25rem 0 0;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 850;
}

.news-head p {
  max-width: 640px;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.3vw, 1.1rem);
}

.deal-grid .news-card {
  width: auto;
  margin-right: 0;
}

.news-seeall {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}

.news-seeall:hover {
  color: var(--brand-dark);
}

/* Carrusel continuo (marquee) que se mueve solo */
.news-marquee {
  overflow: hidden;
  padding-block: 0.4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.news-track {
  display: flex;
  width: max-content;
  animation: newsMarquee 45s linear infinite;
  will-change: transform;
}

.news-marquee:hover .news-track {
  animation-play-state: paused;
}

@keyframes newsMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.news-card {
  display: flex;
  flex: 0 0 220px;
  width: 220px;
  margin-right: clamp(0.8rem, 1.2vw, 1.1rem);
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: #c4d4fb;
  box-shadow: var(--shadow-card-hover);
}

@media (prefers-reduced-motion: reduce) {
  .news-track {
    animation: none;
  }

  .news-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.news-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  padding: 1rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f6fb 100%);
  border-bottom: 1px solid var(--border);
}

.news-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.04);
}

.news-thumb .stock-badge {
  background: var(--accent-soft) !important;
  color: #166534 !important;
}

.news-thumb.no-image::after {
  content: "\F3F0";
  font-family: "bootstrap-icons";
  color: #cbd5e1;
  font-size: 2.5rem;
}

.news-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem 1rem;
}

.news-title {
  display: -webkit-box;
  min-height: 2.4rem;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-price {
  color: var(--brand-dark);
  font-size: 1.1rem;
  font-weight: 900;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.catalog-heading h2 {
  margin: 0.25rem 0 0.2rem;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 850;
}

.catalog-heading p {
  margin: 0;
  color: var(--muted);
}

.cart-summary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.cart-summary-link:hover {
  color: var(--brand);
  border-color: #bfd0ff;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.form-control,
.form-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  background: var(--surface);
  color: var(--text);
  border-color: #93b4ff;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

.form-control::placeholder {
  color: #98a2b3;
}

.form-label {
  color: var(--text);
  font-weight: 700;
}

.search-box {
  box-shadow: var(--shadow-sm);
}

.search-box .input-group-text {
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: 0;
  color: var(--muted);
  border-radius: 8px 0 0 8px;
}

.search-box .form-control {
  border-left: 0;
  border-radius: 0;
}

.search-submit {
  border-radius: 0 8px 8px 0;
  min-width: 54px;
}

.category-select {
  box-shadow: var(--shadow-sm);
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #475467;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    background 0.15s ease, box-shadow 0.15s ease;
}

.cat-chip i {
  font-size: 1rem;
  color: var(--chip-ic, var(--brand));
  transition: color 0.15s ease;
}

/* Colores de ícono por categoría (se repiten en ciclo) */
.cat-chip--c0 { --chip-ic: #2563eb; }
.cat-chip--c1 { --chip-ic: #16a34a; }
.cat-chip--c2 { --chip-ic: #db2777; }
.cat-chip--c3 { --chip-ic: #d97706; }
.cat-chip--c4 { --chip-ic: #7c3aed; }
.cat-chip--c5 { --chip-ic: #0891b2; }

.cat-chip:hover {
  transform: translateY(-2px);
  border-color: #9bb8ff;
  color: var(--brand);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
}

.cat-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.cat-chip.active i {
  color: #fff;
}

/* En móvil: carrusel horizontal de chips, sin saltar de línea */
@media (max-width: 575.98px) {
  .cat-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cat-chips::-webkit-scrollbar {
    display: none;
  }

  .cat-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

.active-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.7rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  font-size: 0.86rem;
  font-weight: 800;
}

.active-filters a {
  color: #c2410c;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1rem, 1.55vw, 1.4rem);
  perspective: 1000px;
}

.product-col {
  min-width: 0;
}

.motion-ready .product-col {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

.motion-ready .product-col.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.48s var(--ease-out),
    transform 0.48s var(--ease-out);
}

.motion-ready .product-col:nth-child(6n + 2).is-visible { transition-delay: 45ms; }
.motion-ready .product-col:nth-child(6n + 3).is-visible { transition-delay: 90ms; }
.motion-ready .product-col:nth-child(6n + 4).is-visible { transition-delay: 135ms; }
.motion-ready .product-col:nth-child(6n + 5).is-visible { transition-delay: 180ms; }
.motion-ready .product-col:nth-child(6n + 6).is-visible { transition-delay: 225ms; }

/* Product card */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: #c4d4fb;
  box-shadow: var(--shadow-card-hover);
}

.product-card-added {
  border-color: #86efac;
  box-shadow: 0 18px 42px rgba(34, 197, 94, 0.18), var(--shadow-sm);
  animation: productAddedPulse 0.75s ease;
}

.product-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(165px, 15vw, 220px);
  padding: 1.35rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f6fb 100%);
  border-bottom: 1px solid var(--border);
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.18s ease;
}

.product-image[data-zoomable] {
  cursor: zoom-in;
}

.product-card:hover .product-image {
  transform: scale(1.03);
}

/* Pista de zoom sobre la imagen */
.image-zoom-hint {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(20, 32, 51, 0.78);
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.product-card:hover .image-zoom-hint,
.product-image[data-zoomable]:focus-visible ~ .image-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.product-image-wrap.no-image .image-zoom-hint {
  display: none;
}

/* Lightbox / imagen ampliada */
body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 13, 24, 0.82);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox.is-open {
  opacity: 1;
}

.lightbox-figure {
  margin: 0;
  max-width: min(920px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  transform: scale(0.92);
  transition: transform 0.25s var(--ease-spring);
}

.image-lightbox.is-open .lightbox-figure {
  transform: scale(1);
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-figure figcaption {
  color: #f1f5f9;
  font-weight: 600;
  text-align: center;
  max-width: 90%;
}

.lightbox-desc {
  max-width: 640px;
  margin: 0;
  max-height: 22vh;
  overflow-y: auto;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
  white-space: pre-line;
}

.lightbox-desc[hidden] {
  display: none;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1081;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  .image-lightbox,
  .lightbox-figure {
    transition: none;
  }
}

.image-placeholder,
.product-image-wrap.no-image::after {
  color: #cbd5e1;
  font-size: 3.25rem;
}

.image-placeholder {
  display: flex;
}

.product-image-wrap.no-image::after {
  content: "\F3F0";
  font-family: "bootstrap-icons";
}

.discount-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.4em 0.7em;
  font-size: 0.74rem;
  font-weight: 850;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.28);
}

.stock-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  border-radius: var(--radius-pill);
  padding: 0.42em 0.75em;
  font-size: 0.7rem;
  font-weight: 850;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(20, 32, 51, 0.08);
}

.stock-badge.is-available,
.stock-badge.bg-success {
  background: var(--accent-soft) !important;
  color: #166534 !important;
}

.stock-badge.is-empty,
.stock-badge.bg-danger {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.3rem 1.3rem 1.4rem;
}

.product-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 22px;
  margin-bottom: 0.55rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  background: var(--brand-soft);
  color: #244aa5;
  border-radius: var(--radius-pill);
  padding: 0.32em 0.55em;
  font-size: 0.62rem;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-title,
.card-title {
  color: var(--text);
}

.product-title {
  display: -webkit-box;
  min-height: 2.5rem;
  margin: 0 0 0.5rem;
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-desc {
  display: -webkit-box;
  margin: 0 0 0.8rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-buy-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  margin-bottom: 0.6rem;
}

.price-label {
  display: inline-block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-new {
  color: var(--brand-dark);
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.price-old {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: line-through;
}

.product-action {
  min-height: 46px;
  padding-inline: 0.45rem;
  border-radius: 11px;
  font-size: 0.94rem;
  font-weight: 800;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.product-action:hover {
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
}

.product-action:active {
  transform: scale(0.98);
}

.product-action.is-loading {
  box-shadow: none;
}

.product-action.is-added {
  --bs-btn-bg: #22c55e;
  --bs-btn-border-color: #22c55e;
  --bs-btn-hover-bg: #22c55e;
  --bs-btn-hover-border-color: #22c55e;
  color: #052e16;
}

.product-proof {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
  color: #5b6778;
  font-size: 0.74rem;
  font-weight: 750;
}

.product-proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.product-proof i {
  color: var(--accent);
  font-size: 0.9rem;
}

.product-actions {
  display: grid;
  gap: 0.55rem;
}

.product-actions form {
  margin: 0;
}

.product-whatsapp {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 0.9rem;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-pagination nav {
  margin-left: auto;
}

.pagination {
  gap: 0.3rem;
  margin-bottom: 0;
}

.page-link {
  min-width: 38px;
  border: 1px solid var(--border);
  border-radius: 8px !important;
  color: #475467;
  font-weight: 800;
  text-align: center;
}

.page-link:hover {
  background: #edf4ff;
  border-color: #9bb8ff;
  color: var(--brand);
}

.active > .page-link,
.page-link.active {
  background: var(--brand);
  border-color: var(--brand);
}

/* Cards, tables, forms */
.card {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: 8px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  color: var(--text);
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.table thead.table-light th,
.table-light,
.table-light > th,
.table-light > td {
  background: #f1f5f9 !important;
  color: #475467 !important;
  border-color: var(--border) !important;
}

.list-group-item {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.input-group-text {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
}

.cart-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.cart-table tbody tr {
  transition: background 0.18s ease;
}

.cart-table tbody tr:hover {
  background: #f8fbff;
}

.cart-row td {
  transition: padding 0.32s ease, border-color 0.32s ease, background 0.32s ease;
}

.cart-cell-inner {
  max-height: 96px;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0) scale(1);
  transform-origin: center left;
  transition:
    max-height 0.34s ease,
    opacity 0.22s ease,
    transform 0.28s var(--ease-out);
}

.cart-row.is-removing {
  background: #fff7ed;
}

.cart-row.is-removing td {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-color: transparent !important;
}

.cart-row.is-removing .cart-cell-inner {
  max-height: 0;
  opacity: 0;
  transform: translateX(28px) scale(0.98);
}

.cart-remove-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.cart-remove-btn:hover {
  transform: translateY(-2px) rotate(-4deg);
}

.cart-remove-btn.is-removing {
  pointer-events: none;
  transform: scale(0.94);
}

.cart-total-pop {
  animation: cartTotalPop 0.55s var(--ease-spring);
}

.cart-form-emptying {
  animation: cartFormEmptying 0.28s ease forwards;
}

.cart-empty-state {
  transform-origin: center;
}

.cart-empty-reveal {
  animation: cartEmptyReveal 0.45s var(--ease-out) both;
}

.badge.bg-secondary {
  background: #e2e8f0 !important;
  color: #344054 !important;
}

.alert {
  border: 1px solid transparent;
  border-radius: 8px;
}

.alert-success {
  background: var(--accent-soft);
  border-color: #bbf7d0;
  color: #166534;
}

.alert-info {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #075985;
}

.alert-warning {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

.alert-danger {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.alert-light {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
}

.checkout-trust {
  display: grid;
  gap: 0.5rem;
  padding: 0.8rem;
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.checkout-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #475467;
  font-size: 0.86rem;
  font-weight: 750;
}

.checkout-trust i {
  color: var(--accent);
  font-size: 1rem;
}

/* Auth */
.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  min-height: calc(100vh - 220px);
  margin: -1.5rem calc(50% - 50vw) 0;
  padding: clamp(2rem, 6vw, 5rem)
    max(1rem, calc((100vw - 1180px) / 2 + 1rem));
  background:
    linear-gradient(rgba(37, 99, 235, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.032) 1px, transparent 1px),
    linear-gradient(180deg, #f7faff 0%, #eef3fa 100%);
  background-size: 38px 38px, 38px 38px, auto;
  border-bottom: 1px solid var(--border);
}

.auth-copy h1 {
  max-width: 720px;
  margin: 0.7rem 0 0.8rem;
  color: #101828;
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.auth-copy p {
  max-width: 620px;
  margin: 0;
  color: #48566a;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.auth-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 38px;
  padding: 0.48rem 0.72rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  color: #344054;
  font-size: 0.84rem;
  font-weight: 800;
}

.auth-benefits i {
  color: var(--accent);
  font-size: 1rem;
}

.auth-panel {
  width: 100%;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.auth-panel-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.auth-panel-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
}

.auth-panel-head p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form .input-group-text {
  min-width: 48px;
  justify-content: center;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-options a,
.auth-footer a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.auth-options a:hover,
.auth-footer a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

.empty-state i {
  color: #98a2b3;
  opacity: 0.75;
}

.text-muted {
  color: var(--muted) !important;
}

.store-footer {
  flex-shrink: 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: clamp(96px, 11vh, 132px);
  padding-block: clamp(1rem, 2.2vw, 1.5rem);
}

.footer-brand {
  color: var(--text);
  margin-bottom: 0.25rem;
}

.footer-main p,
.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.45rem 0.65rem;
  color: #475467;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.footer-links a:hover {
  color: var(--brand);
  background: #edf4ff;
  border-color: #bfd0ff;
  transform: translateY(-2px);
}

.footer-copy {
  justify-self: end;
  white-space: nowrap;
}

.cart-toast {
  position: fixed;
  right: 1.25rem;
  top: 5.25rem;
  z-index: 1040;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.8rem 0.95rem;
  background: #102033;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(20, 32, 51, 0.24);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cart-toast i {
  color: #86efac;
  font-size: 1.2rem;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fly-cart-image {
  position: fixed;
  z-index: 1060;
  object-fit: contain;
  pointer-events: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(20, 32, 51, 0.24);
  transition: transform 0.72s cubic-bezier(0.2, 0.78, 0.24, 1), opacity 0.72s ease;
  will-change: transform, opacity;
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #052e16;
  border-radius: 50%;
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.35);
  font-size: 1.75rem;
  text-decoration: none;
  animation: whatsappFloat 2.8s var(--ease-out) infinite;
}

/* Anillo de pulso que se expande detras del boton */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  z-index: -1;
  animation: whatsappPulse 2.2s ease-out infinite;
}

.whatsapp-float > i {
  transition: transform 0.25s var(--ease-spring);
}

.whatsapp-float:hover {
  background: #16a34a;
  color: #052e16;
  animation-play-state: paused;
}

.whatsapp-float:hover > i {
  transform: scale(1.15);
}

@keyframes whatsappFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float::before {
    animation: none;
  }
}

@media (max-width: 1199.98px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .auth-page {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .auth-panel {
    max-width: 560px;
    margin-inline: auto;
  }

  .deal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .store-hero {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 320px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-copy {
    justify-self: center;
    white-space: normal;
  }
}

@media (max-width: 767.98px) {
  .auth-page {
    min-height: auto;
    padding-block: 1.5rem 2rem;
  }

  .auth-copy h1 {
    font-size: 2rem;
  }

  .auth-benefits {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-options,
  .auth-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .nav-shell {
    min-height: 58px;
  }

  .store-hero {
    padding: 1.25rem;
    margin-top: -1.5rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .hero-showcase {
    min-height: 112px;
  }

  .showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 0.5rem;
  }

  .showcase-item,
  .showcase-empty {
    min-height: 108px;
  }

  .showcase-item-featured {
    grid-row: auto;
  }

  .showcase-label,
  .showcase-item span {
    display: none;
  }

  .showcase-item img {
    padding: 0.45rem;
  }

  .hero-stat {
    padding: 0.55rem 0.6rem;
    gap: 0.5rem;
  }

  .hero-stat-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .hero-stat-text strong {
    font-size: 1rem;
  }

  .hero-stat-text span {
    font-size: 0.72rem;
  }

  .catalog-heading {
    align-items: start;
    flex-direction: column;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .catalog-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-pagination nav {
    margin-left: 0;
    width: 100%;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 52px;
    height: 52px;
    font-size: 1.55rem;
  }

  .cart-toast {
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 5rem;
    max-width: none;
    transform: translateY(12px) scale(0.98);
  }

  .cart-toast.is-visible {
    transform: translateY(0) scale(1);
  }

  .cat-chips {
    flex-wrap: nowrap;
    margin-inline: -0.25rem;
    padding: 0 0.25rem 0.25rem;
    overflow-x: auto;
  }

  .cat-chip {
    flex: 0 0 auto;
  }

  .product-image-wrap {
    height: 150px;
  }

  .product-action {
    font-size: 0.8rem;
  }

  .product-proof {
    font-size: 0.7rem;
  }

  .product-whatsapp {
    min-height: 40px;
    font-size: 0.78rem;
  }

  .footer-inner {
    min-height: auto;
    padding-block: 1rem;
  }

  .footer-links {
    width: 100%;
  }

  .footer-links a {
    flex: 1 1 96px;
    justify-content: center;
  }
}

@keyframes cartBadgePop {
  0% { transform: scale(0.65); }
  55% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

@keyframes cartTargetPop {
  0% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

@keyframes productAddedPulse {
  0% { transform: translateY(-4px) scale(1); }
  45% { transform: translateY(-6px) scale(1.015); }
  100% { transform: translateY(-4px) scale(1); }
}

@keyframes cartTotalPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); color: #16a34a; }
  100% { transform: scale(1); }
}

@keyframes cartFormEmptying {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

@keyframes cartEmptyReveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes navDropIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brandMarkIn {
  from {
    opacity: 0;
    transform: scale(0.7) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes heroSurfaceIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroGridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 68px 34px, 68px 34px;
  }
}

@keyframes heroLightSweep {
  0%, 58% {
    transform: translateX(-120%);
  }
  78%, 100% {
    transform: translateX(120%);
  }
}

@keyframes heroItemIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroShowcaseIn {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes showcaseFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -5px;
  }
}

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

  .fly-cart-image {
    display: none;
  }

  .motion-ready .product-col {
    opacity: 1;
    transform: none;
  }
}
