/* ==========================================================================
   DivertiGarra — Neon arcade theme · Mobile-first refined
   ========================================================================== */

:root {
  --bg: #050208;
  --bg-2: #0a0512;
  --bg-3: #100822;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f3ff;
  --text-dim: #a8a3c2;
  --text-muted: #6b6781;

  --magenta: #ff1fb4;
  --magenta-2: #d61a98;
  --pink: #ff52c8;
  --cyan: #00e5ff;
  --teal: #1de9b6;
  --purple: #9c27b0;
  --indigo: #5a3aff;
  --whatsapp: #25d366;

  --grad-neon: linear-gradient(90deg, #ff1fb4 0%, #9c27b0 50%, #00e5ff 100%);
  --grad-neon-soft: linear-gradient(90deg, rgba(255,31,180,0.15), rgba(0,229,255,0.15));
  --shadow-glow-pink: 0 0 30px rgba(255, 31, 180, 0.45);
  --shadow-glow-cyan: 0 0 30px rgba(0, 229, 255, 0.35);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --header-h: 64px;
  --bottomnav-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
[x-cloak] { display: none !important; }

/* Add bottom safe area for mobile bottom nav */
@media (max-width: 768px) {
  body { padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px)); }
}

/* ===== Backdrop: pulsing dot grid ===== */
.bg-dotgrid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 31, 180, 0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.14), transparent 45%),
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 100%);
  animation: gridShift 25s ease-in-out infinite;
}
@keyframes gridShift {
  0%, 100% { background-position: 0 0, 0 0, 0 0; }
  50% { background-position: 5% 5%, -5% -3%, 14px 14px; }
}

/* Custom Heavitas font for the logo (when available).
   Drop /assets/fonts/Heavitas.ttf or .woff2 — the rule below will pick it up. */
@font-face {
  font-family: 'Heavitas';
  src: url('/assets/fonts/Heavitas.woff2') format('woff2'),
       url('/assets/fonts/Heavitas.ttf')  format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   CSS-only DivertiGarra logo — replicates the synthwave 80s neon mark
   Layer stack:
   1. Magenta/pink stroke (creates the neon edge)
   2. Vertical gradient fill: pink → light cyan → pink (chrome look)
   3. Multi-layer drop-shadow for outer glow halo
   4. Underline: white core + magenta/cyan glow
   ========================================================================== */
.dg-logo {
  --dg-size: 1.4rem;
  --dg-stroke-color: #9a1685;        /* magenta-purple outline (from logo) */
  --dg-glow: rgba(180, 25, 160, 0.9); /* tight halo color */
  position: relative;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: 'Heavitas', 'Russo One', 'Inter', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: var(--dg-size);
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1;
  padding: calc(var(--dg-size) * 0.2) 0 calc(var(--dg-size) * 0.55);
  user-select: none;
  white-space: nowrap;
}
.dg-logo--sm { --dg-size: 1rem; }
.dg-logo--md { --dg-size: 1.4rem; }
.dg-logo--lg { --dg-size: 2.2rem; }
.dg-logo--xl { --dg-size: clamp(1.9rem, 5.5vw, 3.5rem); }

.dg-logo__text {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  z-index: 2;
  /* Outer halo: tight magenta glow (per analysis: ~10px) */
  filter:
    drop-shadow(0 0 calc(var(--dg-size) * 0.06) var(--dg-glow))
    drop-shadow(0 0 calc(var(--dg-size) * 0.18) rgba(154, 22, 133, 0.55))
    drop-shadow(0 calc(var(--dg-size) * 0.04) calc(var(--dg-size) * 0.04) rgba(0, 0, 0, 0.6));
}

/* CRITICAL: every text-bearing span must carry its own background-clip — children don't inherit */
.dg-fill {
  display: inline-block;
  background: linear-gradient(180deg,
    #00f1f5 12%,
    #30c3f9 27%,
    #7881f8 36%,
    #bb45fd 45%,
    #ef15ff 49%,
    #ffffff 51%,
    #7af1ef 55%,
    #acdcea 72%,
    #fcb6db 82%,
    #bcadff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px var(--dg-stroke-color);
  line-height: 1;
}

/* D and G are 1.55× the lowercase x-height (matches original measurement) */
.dg-cap {
  font-size: 1.55em;
  position: relative;
  top: 0.06em;
}

/* Underline neon bar — white core + horizontal multicolor halo */
.dg-logo::after {
  content: '';
  position: absolute;
  left: 6%; right: 6%;
  bottom: calc(var(--dg-size) * 0.18);
  height: calc(var(--dg-size) * 0.045);
  min-height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    #9a1685 6%,
    #ff52c8 14%,
    #ffffff 30%,
    #ffffff 50%,
    #ffffff 70%,
    #00e5ff 86%,
    #048992 94%,
    transparent 100%);
  border-radius: 999px;
  box-shadow:
    0 0 calc(var(--dg-size) * 0.08) rgba(255, 255, 255, 0.9),
    0 0 calc(var(--dg-size) * 0.2)  rgba(154, 22, 133, 0.65),
    0 0 calc(var(--dg-size) * 0.45) rgba(0, 137, 146, 0.4);
  z-index: 1;
}
/* Underline neon bar — gradient pink → white → cyan → teal (matches original) */
.dg-logo::after {
  content: '';
  position: absolute;
  left: 4%; right: 4%;
  bottom: calc(var(--dg-size) * 0.15);
  height: calc(var(--dg-size) * 0.04);
  min-height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 31, 180, 0.3) 6%,
    #ff52c8 18%,
    #ffffff 38%,
    #ffffff 50%,
    #ffffff 62%,
    #00e5ff 82%,
    rgba(29, 233, 182, 0.6) 94%,
    transparent 100%);
  border-radius: 999px;
  box-shadow:
    0 0 calc(var(--dg-size) * 0.1)  rgba(255, 255, 255, 0.85),
    0 0 calc(var(--dg-size) * 0.25) rgba(255, 31, 180, 0.6),
    0 0 calc(var(--dg-size) * 0.5)  rgba(0, 229, 255, 0.35);
  z-index: 1;
}

/* Hover: subtle gradient breathing */
@keyframes dgShine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}
.dg-logo:hover .dg-fill,
.dg-logo--xl .dg-fill {
  animation: dgShine 4s ease-in-out infinite;
}

/* XL hero variant: extra background halo */
.dg-logo--xl {
  padding: calc(var(--dg-size) * 0.3) calc(var(--dg-size) * 0.15) calc(var(--dg-size) * 0.65);
}
.dg-logo--xl::before {
  content: '';
  position: absolute;
  inset: -25% -10%;
  background: conic-gradient(from 0deg, var(--magenta) 0deg, var(--cyan) 120deg, var(--purple) 240deg, var(--magenta) 360deg);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: spin 18s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* ===== Typography ===== */
.gradient-text {
  background: var(--grad-neon);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }

/* ===== Container ===== */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }
.container-narrow { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 1rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-weight: 600; font-size: 0.95rem;
  border-radius: 999px;
  border: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
  white-space: nowrap;
  min-height: 44px; /* tap target */
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-neon {
  color: white;
  background: var(--grad-neon);
  background-size: 200% 100%;
  box-shadow: var(--shadow-glow-pink);
  animation: gradShift 4s ease infinite;
}
.btn-neon:hover { box-shadow: 0 0 40px rgba(255, 31, 180, 0.7); }
.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--cyan); }
.btn-whatsapp {
  color: white;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; min-height: 36px; }
.btn-block { width: 100%; }

/* ===== Cards ===== */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.04),
    0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 31, 180, 0.4);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(255, 31, 180, 0.18);
}

/* ===== Offer badge (corner of product card) ===== */
.offer-badge {
  position: absolute; top: .5rem; left: .5rem; z-index: 3;
  background: linear-gradient(135deg, #ff1fb4, #d61a98);
  color: white; font-weight: 700;
  font-size: .75rem; letter-spacing: .02em;
  padding: .3rem .55rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(255, 31, 180, 0.4);
}

/* ===== Product card ===== */
.product-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.25s;
  display: block;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: -150%;
  background: conic-gradient(from 0deg, transparent 0%, var(--magenta) 25%, var(--cyan) 50%, transparent 75%);
  opacity: 0;
  transition: opacity 0.4s;
  animation: spin 6s linear infinite;
  pointer-events: none;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: var(--bg-2);
  z-index: 1;
}
@media (hover: hover) {
  .product-card:hover { transform: translateY(-6px); }
  .product-card:hover::before { opacity: 0.6; }
}
.product-card:active { transform: scale(0.98); border-color: rgba(255, 31, 180, 0.4); }
.product-card > * { position: relative; z-index: 2; }
@keyframes spin { to { transform: rotate(360deg); } }

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0512 0%, #1a0a2a 100%);
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.4s ease;
}
@media (hover: hover) {
  .product-card:hover .product-card__media img { transform: scale(1.05); }
}
.product-card__body { padding: 0.85rem 0.85rem 1rem; }
@media (min-width: 768px) { .product-card__body { padding: 1.25rem; } }
.product-card__name {
  font-size: 0.95rem; font-weight: 700; margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) { .product-card__name { font-size: 1.1rem; } }
.product-card__cat {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--cyan); margin-bottom: 0.35rem; font-weight: 500;
}
@media (min-width: 768px) { .product-card__cat { font-size: 0.75rem; } }
.product-card__price {
  font-size: 0.95rem; font-weight: 700;
  color: #ff1fb4;
}

/* ===== Badge ===== */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}
.badge-pink { background: rgba(255, 31, 180, 0.12); color: var(--pink); border-color: rgba(255, 31, 180, 0.3); }
.badge-warn { background: rgba(255, 196, 0, 0.1); color: #ffc400; border-color: rgba(255, 196, 0, 0.3); }
.badge-mute { background: rgba(255, 255, 255, 0.06); color: var(--text-dim); border-color: var(--border); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 2, 8, 0.75);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--border);
  transition: padding 0.2s ease;
}
.site-header.is-scrolled { background: rgba(5, 2, 8, 0.95); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0 0.7rem 0.5rem; gap: 0.75rem; min-height: var(--header-h); }
@media (min-width: 768px) { .nav { padding: 0.7rem 0; } }
.nav__logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.05rem; }
.nav__logo img { height: 32px; width: auto; max-width: 160px; object-fit: contain; }
@media (min-width: 768px) {
  .nav__logo img { height: 38px; max-width: 200px; }
}

/* Desktop nav links */
.nav__links { display: none; align-items: center; gap: 1.75rem; flex: 1; justify-content: center; }
.nav__links a {
  color: var(--text-dim); font-size: 0.95rem; font-weight: 500;
  padding: 0.5rem 0; position: relative;
  transition: color 0.2s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--grad-neon); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform 0.25s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after, .nav__links a:hover::after { transform: scaleX(1); }
@media (min-width: 900px) { .nav__links { display: flex; } }

.nav__cta { display: flex; align-items: center; gap: 0.5rem; }

/* Burger button (mobile) */
.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); cursor: pointer; padding: 0;
  transition: background 0.15s, border-color 0.15s;
}
.burger:hover { background: var(--surface-2); }
.burger svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .burger { display: none; } }

/* WhatsApp pill in header (desktop only) */
.nav__whatsapp { display: none; }
@media (min-width: 900px) {
  .nav__whatsapp {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1rem; border-radius: 999px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white; font-weight: 600; font-size: 0.88rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  }
}

/* ===== Mobile drawer ===== */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5, 2, 8, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(86vw, 360px); height: 100dvh;
  background: linear-gradient(180deg, #0a0512 0%, #050208 100%);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: inherit; z-index: 1;
}
.drawer__close {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.drawer__nav { padding: 0.75rem 0.75rem; flex: 1; }
.drawer__nav a, .drawer__group-toggle {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  color: var(--text); font-size: 1.05rem; font-weight: 500;
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  transition: background 0.15s;
  font-family: inherit;
}
.drawer__nav a:active, .drawer__group-toggle:active { background: rgba(255, 31, 180, 0.08); }
.drawer__nav a.is-active {
  background: linear-gradient(135deg, rgba(255,31,180,0.15), rgba(0,229,255,0.06));
  color: var(--text);
}
.drawer__nav .icon { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.85; }
.drawer__sublist {
  display: flex; flex-direction: column; gap: 2px;
  padding: 0 0 0.5rem 1.25rem;
  margin: -0.25rem 0 0.5rem;
}
.drawer__sublist--scroll {
  max-height: 50vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.drawer__sublist--scroll::-webkit-scrollbar { width: 4px; }
.drawer__sublist--scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
.drawer__sublist a {
  display: flex; align-items: center; gap: .55rem;
  font-size: 0.95rem; font-weight: 400;
  padding: 0.7rem 0.85rem; border-radius: 10px;
  color: var(--text-dim);
}
.drawer__sublist a:hover, .drawer__sublist a:active { color: var(--text); background: rgba(255,255,255,0.03); }
.drawer__sublist a > span:first-child { flex-shrink: 0; }
.drawer__count {
  margin-left: auto;
  font-size: .72rem; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 1px 7px; border-radius: 999px;
  min-width: 22px; text-align: center;
}
.drawer__group-toggle .chevron { margin-left: auto; transition: transform 0.2s; opacity: 0.6; }
.drawer__group-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.drawer__cta {
  padding: 1rem 1.25rem; border-top: 1px solid var(--border);
  display: grid; gap: 0.6rem;
}
.drawer__contacts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
}
.drawer__contact {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-dim); font-size: 0.85rem;
}
.drawer__contact svg { width: 18px; height: 18px; }

/* ===== Bottom nav (mobile) ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 49;
  display: none;
  background: rgba(10, 5, 18, 0.92);
  backdrop-filter: blur(18px) saturate(120%); -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-top: 1px solid var(--border);
  padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 768px) { .bottom-nav { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0.25rem; } }
.bottom-nav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 0.4rem 0.25rem;
  color: var(--text-muted); font-size: 0.68rem; font-weight: 500;
  text-decoration: none; border-radius: 10px; min-height: 56px;
  transition: color 0.15s, background 0.15s;
}
.bottom-nav__item svg { width: 22px; height: 22px; }
.bottom-nav__item:active { background: rgba(255, 255, 255, 0.04); }
.bottom-nav__item.is-active { color: var(--text); }
.bottom-nav__item.is-active svg { color: var(--cyan); }
.bottom-nav__item--cta { color: var(--whatsapp); }
.bottom-nav__item--cta svg { color: var(--whatsapp); }
.bottom-nav__item--cta:active { background: rgba(37, 211, 102, 0.08); }

/* Hide desktop floating WhatsApp on mobile (replaced by bottom-nav) */
@media (max-width: 768px) { .wa-float { display: none; } }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 1rem 0 1.75rem;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 8vw, 5rem); } }

.hero__inner { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: center; text-align: center; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; text-align: left; }
}
.hero__eyebrow {
  display: none; /* hidden on mobile for a tighter, less cluttered hero */
  align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-dim); margin-bottom: 0.75rem;
}
@media (min-width: 900px) {
  .hero__eyebrow { display: inline-flex; }
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #25d366; box-shadow: 0 0 12px #25d366; }
.hero__lead {
  font-size: 1rem; color: var(--text-dim); max-width: 540px;
  margin: 1rem auto 1.5rem;
}
@media (min-width: 900px) {
  .hero__lead { font-size: 1.15rem; margin: 1.25rem 0 2rem; }
}
.hero__cta { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
@media (min-width: 900px) { .hero__cta { justify-content: flex-start; } }

.hero__visual {
  position: relative;
  width: 100%; max-width: 540px;
  margin: 0 auto;
  padding: 2rem 0;
  display: none; /* hidden on mobile to avoid duplicating the navbar logo */
  align-items: center; justify-content: center;
  min-height: 220px;
}
@media (min-width: 900px) {
  .hero__visual { display: flex; }
}
.hero__visual::before {
  content: ''; position: absolute; inset: -20% -10%;
  background: conic-gradient(from 0deg, var(--magenta) 0deg, var(--cyan) 120deg, var(--purple) 240deg, var(--magenta) 360deg);
  border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: spin 18s linear infinite;
  z-index: 0;
}
@media (min-width: 900px) { .hero__visual::before { filter: blur(90px); inset: -30% -15%; } }
.hero__visual img {
  position: relative; z-index: 1;
  width: 100%; max-width: 100%; height: auto;
  object-fit: contain;
}

.hero__trust {
  display: flex; gap: 0.75rem; margin-top: 1rem;
  flex-wrap: wrap; justify-content: center;
  color: var(--text-dim); font-size: 0.8rem;
}
@media (min-width: 900px) { .hero__trust { justify-content: flex-start; gap: 1.25rem; font-size: 0.85rem; } }

/* ===== Sections ===== */
.section { padding: 2rem 0; }
@media (min-width: 768px) { .section { padding: clamp(3rem, 7vw, 5rem) 0; } }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
@media (min-width: 768px) { .section__head { margin-bottom: 2.5rem; } }
.section__title { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.section__sub { color: var(--text-dim); margin-top: 0.5rem; max-width: 520px; font-size: 0.95rem; }

/* ===== Grid ===== */
.grid { display: grid; gap: 0.85rem; }
@media (min-width: 768px) { .grid { gap: 1.25rem; } }
.grid-cards { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.grid-cards-lg { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-cards-lg { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
@media (min-width: 1024px) { .grid-cards-lg { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }

/* ===== Category chips (horizontal scroll on mobile) ===== */
.chips-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1rem;
  padding: 0 1rem;
  scrollbar-width: none;
}
.chips-wrap::-webkit-scrollbar { display: none; }
.chips {
  display: flex; gap: 0.5rem;
  flex-wrap: nowrap;
  padding: 0.25rem 0;
}
@media (min-width: 768px) { .chips { flex-wrap: wrap; } }
.chip {
  flex-shrink: 0;
  padding: 0.6rem 1.1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.88rem; font-weight: 500;
  transition: all 0.2s; cursor: pointer; white-space: nowrap;
  min-height: 40px; display: inline-flex; align-items: center;
}
.chip:hover, .chip.is-active {
  color: white; border-color: var(--magenta);
  background: linear-gradient(135deg, rgba(255,31,180,0.18), rgba(0,229,255,0.1));
  box-shadow: 0 0 20px rgba(255, 31, 180, 0.25);
}

/* ===== Search bar ===== */
.search-bar {
  display: flex; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar:focus-within { border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(255, 31, 180, 0.12); }
.search-bar svg { color: var(--text-muted); flex-shrink: 0; }
.search-bar input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 1rem; padding: 0.5rem 0;
  min-width: 0;
}
.search-bar button { padding: 0.5rem 1rem; min-height: 36px; font-size: 0.85rem; }

/* ===== Forms ===== */
.field { margin-bottom: 1.25rem; }
.field label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-dim); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 48px; /* tap-friendly */
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 31, 180, 0.15);
}
.field textarea { min-height: 120px; resize: vertical; }

/* ===== Map (Leaflet + CartoDB dark tiles) ===== */
.dg-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0512;
  margin-top: 0.85rem;
  z-index: 0;
}
/* Compact variant for footer */
.dg-map--compact {
  aspect-ratio: 4 / 3;
  min-height: 140px;
  border-radius: 10px;
}
.dg-map--compact .leaflet-control-attribution { font-size: 8px !important; padding: 0 4px !important; }
.dg-map--compact .leaflet-control-zoom { display: none; }
.dg-map .leaflet-container {
  background: #0a0512;
  font-family: inherit;
}
.dg-map .leaflet-tile {
  /* Tweak hue toward our magenta/cyan palette */
  filter: hue-rotate(-10deg) saturate(1.1) brightness(0.9);
}
.dg-map .leaflet-control-attribution {
  background: rgba(10, 5, 18, 0.7) !important;
  color: var(--text-muted) !important;
  font-size: 9px !important;
  padding: 1px 6px !important;
  backdrop-filter: blur(4px);
}
.dg-map .leaflet-control-attribution a { color: var(--text-dim) !important; }
.dg-map .leaflet-control-zoom a {
  background: rgba(22, 12, 42, 0.92) !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--text) !important;
  backdrop-filter: blur(8px);
}
.dg-map .leaflet-control-zoom a:hover {
  background: rgba(255, 31, 180, 0.2) !important;
  border-color: var(--magenta) !important;
}
/* Lucide icons (inline SVG) — neutral default; specific contexts color them */
.dg-icon { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.dg-icon-neon {
  color: var(--magenta);
  filter: drop-shadow(0 0 4px rgba(255, 31, 180, 0.7)) drop-shadow(0 0 8px rgba(255, 31, 180, 0.4));
}
.dg-icon-cyan { color: var(--cyan); }
.dg-icon-emoji { display: inline-block; line-height: 1; }

/* Custom magenta neon marker */
.dg-map-pin {
  width: 32px; height: 32px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #ff1fb4, #c91a8b);
  transform: rotate(-45deg);
  box-shadow: 0 0 20px rgba(255, 31, 180, 0.7), 0 0 0 4px rgba(255, 31, 180, 0.18);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  animation: pinPulse 2.4s ease-in-out infinite;
}
.dg-map-pin::after {
  content: '';
  width: 12px; height: 12px;
  background: #fff; border-radius: 50%;
  transform: rotate(45deg);
  box-shadow: inset 0 0 6px rgba(255, 31, 180, 0.4);
}
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 31, 180, 0.7), 0 0 0 4px rgba(255, 31, 180, 0.18); }
  50% { box-shadow: 0 0 30px rgba(255, 31, 180, 0.9), 0 0 0 12px rgba(255, 31, 180, 0); }
}
.dg-map-tooltip {
  background: rgba(22, 12, 42, 0.95) !important;
  border: 1px solid var(--magenta) !important;
  color: var(--text) !important;
  font-weight: 500 !important;
  font-size: 0.82rem !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(8px);
}
.dg-map-tooltip::before { display: none !important; }

/* ===== Contact quick pills ===== */
.contact-quick { display: grid; grid-template-columns: 1fr; gap: .65rem; }
@media (min-width: 768px) { .contact-quick { grid-template-columns: 1fr 1fr 1fr; gap: .85rem; } }
.contact-quick__item {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color .2s, background .2s, transform .15s;
  text-decoration: none;
  min-height: 64px;
}
.contact-quick__item:hover { border-color: var(--magenta); background: var(--surface-2); }
.contact-quick__item:active { transform: scale(.98); }
.contact-quick__item--wa { border-color: rgba(37, 211, 102, .3); }
.contact-quick__item--wa:hover { border-color: var(--whatsapp); background: rgba(37, 211, 102, .06); }
.contact-quick__ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
}
.contact-quick__ico svg { width: 22px; height: 22px; }
.contact-quick__body { flex: 1; min-width: 0; }
.contact-quick__title { font-weight: 600; font-size: .98rem; color: var(--text); }
.contact-quick__sub { color: var(--text-dim); font-size: .82rem; margin-top: 1px; }
.contact-quick__arrow { color: var(--text-muted); font-size: 1.2rem; flex-shrink: 0; }

/* ===== Wholesale price line (product detail) ===== */
.price-wholesale {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: .85rem; padding: .55rem .85rem;
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 10px;
  color: var(--text); font-size: .92rem;
}
.price-wholesale svg { color: var(--cyan); flex-shrink: 0; }
.price-wholesale strong { color: var(--cyan); }

/* ===== Captcha field (contact form) ===== */
.captcha-field label {
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.18);
  padding: 0.65rem 0.9rem; border-radius: 10px; margin-bottom: 0.5rem;
  color: var(--text); font-size: 0.95rem;
}
.captcha-field label strong { font-size: 1.1rem; color: var(--cyan); }
.captcha-field input { letter-spacing: 0.05em; text-align: center; font-size: 1.1rem !important; max-width: 200px; }

/* ===== Sticky product CTA (mobile only) ===== */
.product-sticky-cta {
  position: fixed;
  left: 0; right: 0;
  bottom: var(--bottomnav-h);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 5, 18, 0.95);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  z-index: 48;
  display: none;
  align-items: center; gap: 0.75rem;
}
@media (max-width: 768px) { .product-sticky-cta { display: flex; } }
.product-sticky-cta__price {
  flex-shrink: 0; font-weight: 700; font-size: 1rem;
}
.product-sticky-cta__price small {
  display: block; font-size: 0.7rem; color: var(--text-muted); font-weight: 500;
}
.product-sticky-cta .btn { flex: 1; padding: 0.85rem 1rem; font-size: 0.9rem; }

@media (max-width: 768px) {
  body.has-product-cta { padding-bottom: calc(var(--bottomnav-h) + 76px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-size: 0.95rem; margin-bottom: 1rem; color: var(--text); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--cyan); }

/* When the catalog column has many categories, wrap into 2 columns */
.footer-cats { columns: 1; column-gap: 1.5rem; }
.footer-cats li { break-inside: avoid; }
.footer-cats--wide .footer-cats { columns: 2; }
@media (min-width: 1024px) {
  .footer-cats--wide { grid-column: span 2; }
}
.footer-social {
  display: flex; gap: 0.5rem; margin-top: 1rem;
}
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); transition: all 0.2s;
}
.footer-social a:hover { color: white; border-color: var(--magenta); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.copy { text-align: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; }

/* ===== WhatsApp floating button (desktop only now) ===== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 47;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.3rem;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white; font-weight: 600; font-size: 0.9rem;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  animation: waPulse 2.4s ease-in-out infinite;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 22px; height: 22px; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5), 0 0 0 18px rgba(37, 211, 102, 0); }
}

/* ===== Flash messages ===== */
.flash { padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.92rem; }
.flash-success { background: rgba(29, 233, 182, 0.1); color: var(--teal); border: 1px solid rgba(29, 233, 182, 0.3); }
.flash-error { background: rgba(255, 60, 100, 0.1); color: #ff4d6d; border: 1px solid rgba(255, 60, 100, 0.3); }
.flash-info { background: rgba(0, 229, 255, 0.08); color: var(--cyan); border: 1px solid rgba(0, 229, 255, 0.25); }

/* ===== Product detail page enhancements ===== */
.product-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .product-page-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.4rem; margin-top: 0.5rem;
}
.gallery-thumb {
  aspect-ratio: 1/1; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-2);
  overflow: hidden; cursor: pointer; padding: 0;
  transition: border-color 0.15s, transform 0.15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 0.25rem; }
.gallery-thumb.is-active { border-color: var(--magenta); box-shadow: 0 0 0 1px var(--magenta); }
.gallery-thumb:active { transform: scale(0.95); }

/* ===== Utility ===== */
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.text-center { text-align: center; }
.hidden { display: none; }
.show-mobile { display: none; }
@media (max-width: 767px) {
  .hide-mobile { display: none; }
  .show-mobile { display: block; }
}
.show-desktop { display: none; }
@media (min-width: 900px) { .show-desktop { display: block; } }

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.5s ease-out backwards; }
