/* ═══════════════════════════════════════════════════════════
   Lindo Día Skateshop — styles.css
   Skate / street aesthetic · Dark fixed · Space Grotesk + Manrope
   SFI Catalog structural skeleton + LDS bespoke visual identity
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input { font: inherit; }

/* ── 2. CSS Custom Properties ─────────────────────────── */
:root {
  --bg-primary:     #0A0A0A;
  --bg-secondary:   #141414;
  --bg-card:        #1A1A1A;
  --text-primary:   #FFFFFF;
  --text-secondary: #A0A0A0;
  --accent:         #5FB90A;
  --accent-hover:   #7FD41A;
  --accent-glow:    rgba(95,185,10,0.25);
  --border:         #2A2A2A;

  --color-price:          #7FD41A;
  --color-whatsapp:       #25D366;
  --color-whatsapp-hover: #1EBE5A;
  --color-featured:       #5FB90A;
  --color-badge:          #5FB90A;
  --color-success:        #7FD41A;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Manrope', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --cart-drawer-width:        420px;
  --cart-drawer-width-mobile: 100vw;
  --section-padding: clamp(3rem, 8vw, 6rem);
  --container-max:   1280px;
  --container-pad:   1.5rem;
  --gap:             1.5rem;
  --radius:          0.75rem;
  --radius-lg:       1.25rem;
  --transition:      0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ── 3. Typography ────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }
.section-title { font-size: clamp(1.9rem, 4.5vw, 3.25rem); margin-bottom: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
/* Section label = "stamp": monospace + lime tick, echoing the hero corner stamps */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.section-label::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
}

/* ── 4. Utilities ─────────────────────────────────────── */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
main > section { padding: var(--section-padding) 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 3000; background: var(--accent); color: #fff; padding: 0.75rem 1rem; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  min-height: 44px;
  letter-spacing: 0.02em;
}
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; min-height: 40px; }
.btn--primary { background: var(--accent); color: #0A0A0A; font-weight: 700; }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); }
.btn--outline { border: 1px solid var(--border); color: var(--text-primary); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--whatsapp { background: var(--color-whatsapp); color: #fff; font-weight: 700; }
.btn--whatsapp:hover { background: var(--color-whatsapp-hover); transform: translateY(-1px); }

/* ── 5. Header / Nav ──────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.nav__logo { margin-right: auto; display: flex; align-items: center; gap: 9px; min-height: 44px; }
.nav__logo-img { height: 40px; width: auto; flex: none; }
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}
.nav__cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-primary);
  transition: color var(--transition);
}
.nav__cart-btn:hover { color: var(--accent); }
.nav__cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: #0A0A0A;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__hamburger span { width: 22px; height: 2px; background: var(--text-primary); transition: var(--transition); border-radius: 1px; }
.nav__menu { display: flex; align-items: center; gap: 1.5rem; }
.nav__links { display: flex; gap: 1.25rem; }
.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
/* Animated lime underline that wipes in from the left on hover / active */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 2px;
  background: var(--accent);
  transition: right var(--transition);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { right: 0; }
.nav__link--active { color: var(--accent); }
.nav__link--active::after { right: 0; }
.nav__controls { display: flex; align-items: center; gap: 0.5rem; }
.nav__toggle { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: color var(--transition); }
.nav__toggle:hover { color: var(--accent); }

/* PWA install button */
.nav__install {
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  gap: 0.35rem;
  min-height: 36px;
  border-color: var(--border);
  color: var(--text-secondary);
}
.nav__install:hover { border-color: var(--accent); color: var(--accent); }

/* ── 6. Hero — "Zine Técnico": raw skate fanzine + ficha técnica ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Layer 0 — Ken Burns bg photo, lightly desaturated so the lime duotone reads */
.hero__bg-photo {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-img.webp');
  background-size: cover;
  background-position: center 70%;
  z-index: 0;
  filter: grayscale(0.4) contrast(1.06) brightness(0.92);
  animation: heroKenBurns 32s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

/* Layer 1 — subtle lime duotone tint (blended into the photo) */
.hero__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--accent);
  mix-blend-mode: color;
  opacity: 0.14;
  pointer-events: none;
}
/* Layer 1 — dark gradient for legibility (paints above the tint) */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.62) 0%,
    rgba(10,10,10,0.38) 40%,
    rgba(10,10,10,0.86) 100%
  );
}

/* Layer 2 — animated film grain (decorative data-URI SVG noise) */
.hero__grain {
  position: absolute;
  inset: -60%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: heroGrain 0.7s steps(5) infinite;
}
@keyframes heroGrain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-6%, 4%); }
  40%  { transform: translate(5%, -5%); }
  60%  { transform: translate(-4%, -6%); }
  80%  { transform: translate(6%, 5%); }
  100% { transform: translate(0, 0); }
}

/* Layer 2 — halftone dots fading out of the bottom-right corner */
.hero__halftone {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(var(--accent) 1px, transparent 1.6px);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 100% 100%, #000 0%, transparent 62%);
          mask-image: radial-gradient(ellipse 60% 60% at 100% 100%, #000 0%, transparent 62%);
}

/* Layer 3 — corner stamps (ficha técnica, monospace) */
.hero__stamp {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}
.hero__stamp::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1px;
  background: var(--accent);
}
.hero__stamp--tl { top: 1.5rem; left: 1.5rem; }
.hero__stamp--tr { top: 1.5rem; right: 1.5rem; flex-direction: row-reverse; }
.hero__stamp--bl { bottom: 4.5rem; left: 1.5rem; }
.hero__stamp--br { bottom: 4.5rem; right: 1.5rem; flex-direction: row-reverse; }

/* Layer 3 — content */
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem var(--container-pad) 4rem;
  width: 100%;
}
.hero__headline {
  font-size: inherit;
  margin-bottom: 0;
  line-height: 1;
}
.hero__logo-img {
  --logo-y: -9rem;
  max-width: 380px;
  width: 90%;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 2px 24px rgba(0,0,0,0.7)) brightness(1.05);
  transform: translateY(var(--logo-y));
  animation: heroLogoGlitch 1.6s steps(1) 0.5s infinite both;
}
/* RGB-split glitch — a brief burst that repeats every ~1.6s. The glitch lives in
   the first ~16% of the cycle; the rest is the resting state (0%/16%/100%), so the
   logo flickers periodically rather than only once on load. translateY(var(--logo-y))
   is preserved in every keyframe so the logo keeps its position (the mobile media
   query overrides --logo-y, not the transform). */
@keyframes heroLogoGlitch {
  0%,
  16%,
  100% { transform: translateY(var(--logo-y)) translateX(0); clip-path: inset(0 0 0 0);
         filter: drop-shadow(0 2px 24px rgba(0,0,0,0.7)) brightness(1.05); }
  3%   { transform: translateY(var(--logo-y)) translateX(-4px); clip-path: inset(8% 0 62% 0);
         filter: drop-shadow(3px 0 0 #ff003c) drop-shadow(-3px 0 0 #00e5ff) brightness(1.1); }
  7%   { transform: translateY(var(--logo-y)) translateX(5px); clip-path: inset(58% 0 12% 0);
         filter: drop-shadow(-3px 0 0 #ff003c) drop-shadow(3px 0 0 #00e5ff) brightness(1.1); }
  11%  { transform: translateY(var(--logo-y)) translateX(-2px); clip-path: inset(34% 0 40% 0);
         filter: drop-shadow(2px 0 0 #ff003c) drop-shadow(-2px 0 0 #00e5ff); }
}
.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  letter-spacing: 0.01em;
  transform: translateY(-3rem);
}
.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; transform: translateY(-4rem); }

/* ── Hero staggered entrance (on load, pure CSS) ── */
/* The logo img has its own transform(-9rem) so we animate the h1 wrapper separately.
   For tagline and CTAs, their transforms ARE the final positions, so keyframes include them. */
.hero-enter-logo {
  animation: heroEnterLogo 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0ms;
}
.hero-enter-tagline {
  animation: heroEnterTagline 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 120ms;
}
.hero-enter-ctas {
  animation: heroEnterCtas 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 240ms;
}
@keyframes heroEnterLogo {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Tagline final: translateY(-3rem). Entrance starts 18px below that. */
@keyframes heroEnterTagline {
  from { opacity: 0; transform: translateY(calc(-3rem + 18px)); }
  to   { opacity: 1; transform: translateY(-3rem); }
}
/* CTAs final: translateY(-4rem). Entrance starts 18px below that. */
@keyframes heroEnterCtas {
  from { opacity: 0; transform: translateY(calc(-4rem + 18px)); }
  to   { opacity: 1; transform: translateY(-4rem); }
}

/* ── Hero CTAs — brutalist: hard edges + lime offset shadow that "presses" ── */
/* rgba(95,185,10,X) computed directly, never color-mix. */
#hero-cta-catalog,
#hero-cta-about {
  border-radius: 0;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform 0.12s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.12s ease;
}
/* Primary CTA — lime fill */
#hero-cta-catalog {
  box-shadow: 5px 5px 0 0 rgba(95,185,10,0.55);
}
#hero-cta-catalog:hover {
  background: var(--accent-hover);
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 0 rgba(95,185,10,0.45);
}
#hero-cta-catalog:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 0 rgba(95,185,10,0);
}
/* Secondary CTA — outlined, white hard border */
#hero-cta-about {
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 5px 5px 0 0 rgba(95,185,10,0.40);
}
#hero-cta-about:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 0 rgba(95,185,10,0.35);
}
#hero-cta-about:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 0 rgba(95,185,10,0);
}

/* ── Hero scroll indicator ── */
.hero__scroll-indicator {
  position: absolute;
  bottom: 4.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: rgba(255,255,255,0.8);
  border-radius: 50%;
  transition: opacity 0.4s ease, color var(--transition);
  animation: heroScrollBounce 1.8s ease-in-out infinite;
}
.hero__scroll-indicator:hover { color: var(--accent); }
.hero__scroll-indicator:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero__scroll-indicator.is-hidden { opacity: 0; pointer-events: none; }
@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── Hero marquee ticker — lime bar across the bottom edge ── */
.hero__marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  overflow: hidden;
  background: var(--accent);
  border-top: 2px solid var(--bg-primary);
  padding: 0.5rem 0;
  pointer-events: none;
}
.hero__marquee-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: heroMarquee 30s linear infinite;
}
.hero__marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-primary);
}
@keyframes heroMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── 7. About / Values ────────────────────────────────── */
.about { background: var(--bg-secondary); }
.about__paragraphs {
  max-width: 720px;
  color: var(--text-secondary);
  display: grid;
  gap: 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.about__paragraphs p { font-size: inherit; }
.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  margin-top: 2.5rem;
}
.value-card {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: border-color var(--transition),
              transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.18s ease;
}
.value-card:hover {
  border-color: var(--accent);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 0 rgba(95,185,10,0.35);
}
/* Ficha-técnica index (01–04) in the corner */
.value-card__index {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  opacity: 0.5;
}
.value-card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.value-card__icon svg { width: 24px; height: 24px; }
.value-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; font-family: var(--font-display); }
.value-card__desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ── 8. Catalog ───────────────────────────────────────── */
.catalog { background: var(--bg-primary); }
.catalog__controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.catalog__search { flex: 1; min-width: 220px; max-width: 400px; }
.catalog__search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.catalog__search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.catalog__search-input::placeholder { color: var(--text-secondary); }
.catalog__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.catalog__filter {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.catalog__filter:hover { border-color: var(--accent); color: var(--accent); }
.catalog__filter--active { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); }

.catalog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.catalog__loading, .catalog__empty { text-align: center; padding: 3rem 1rem; color: var(--text-secondary); font-size: 1rem; }
.catalog__error { text-align: center; padding: 3rem 1rem; display: grid; gap: 1rem; justify-items: center; }
.catalog__more { text-align: center; margin-top: 2rem; display: grid; gap: 0.75rem; justify-items: center; }
.catalog__count { color: var(--text-secondary); font-size: 0.9rem; }

/* ── 9. Product Cards ─────────────────────────────────── */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition),
              transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.18s ease;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 0 rgba(95,185,10,0.30);
}
.product-card__image {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  background: var(--bg-secondary);
}
.product-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card__description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.product-card__price {
  color: var(--color-price);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.product-card__add--added { background: var(--color-success) !important; color: #0A0A0A !important; }
.product-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--color-badge);
  color: #0A0A0A;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.product-card__badge svg { width: 12px; height: 12px; flex: none; }
.product-card__badge--cat { background: rgba(0,0,0,0.65); color: #fff; }

/* ── 10. Cart Drawer ──────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1999;
  opacity: 0;
  transition: opacity var(--transition);
}
.cart-overlay.active { opacity: 1; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--cart-drawer-width-mobile);
  max-width: var(--cart-drawer-width);
  background: var(--bg-primary);
  border-left: 1px solid var(--border);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition);
}
.cart-drawer.active { transform: translateX(0); }
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.cart-drawer__close { color: var(--text-secondary); transition: color var(--transition); }
.cart-drawer__close:hover { color: var(--accent); }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; display: grid; gap: 1rem; align-content: start; }
.cart-drawer__empty { text-align: center; padding: 3rem 1rem; color: var(--text-secondary); }
.cart-drawer__empty-icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.cart-drawer__footer { padding: 1.25rem; border-top: 1px solid var(--border); display: grid; gap: 0.75rem; }
.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.cart-drawer__total span:last-child { color: var(--color-price); }

.cart-item { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 0.75rem; align-items: center; }
.cart-item__image { width: 56px; height: 56px; border-radius: 0; object-fit: cover; background: var(--bg-card); }
.cart-item__info { min-width: 0; }
.cart-item__name { font-size: 0.875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 0.2rem; }
.cart-item__price { color: var(--color-price); font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; }
.cart-item__controls { display: inline-flex; align-items: center; gap: 0.4rem; }
.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-secondary);
  transition: border-color var(--transition), color var(--transition);
}
.cart-item__qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-item__qty { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item__remove { color: var(--text-secondary); transition: color var(--transition); padding: 4px; }
.cart-item__remove:hover { color: #e05252; }

/* ── 11. FAQ ──────────────────────────────────────────── */
.faq { background: var(--bg-secondary); }
.faq__list { display: grid; gap: 0.75rem; max-width: 820px; }
.faq__item { border: 1px solid var(--border); border-left: 3px solid transparent; border-radius: 0; overflow: hidden; background: var(--bg-card); transition: border-color var(--transition), border-left-color var(--transition); }
.faq__item:has(.faq__question[aria-expanded="true"]) { border-color: var(--accent); border-left-color: var(--accent); }
.faq__index { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--accent); opacity: 0.6; flex: none; }
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: color var(--transition);
}
.faq__question:hover { color: var(--accent); }
.faq__question[aria-expanded="true"] { color: var(--accent); }
.faq__q-text { flex: 1; }
.faq__icon { width: 20px; height: 20px; flex: none; color: var(--text-secondary); transition: transform var(--transition); }
.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(180deg); color: var(--accent); }
.faq__answer { padding: 0 1.25rem 1.25rem; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ── 12. Contact ──────────────────────────────────────── */
.contact { background: var(--bg-primary); }
.contact__layout { display: grid; gap: 2rem; }
.contact__content { display: grid; gap: 1rem; align-content: start; }
.contact__text { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; }
.contact__info { color: var(--text-secondary); display: grid; gap: 0.9rem; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.01em; align-content: start; }
.contact__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}
.contact__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.1em;
  color: var(--accent);
  opacity: 0.85;
}
.contact__info p { margin: 0; }
.contact__info-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.contact__info-link:hover { color: var(--accent); }
.contact__instagram {
  color: var(--accent);
  font-weight: 600;
}
.contact__instagram:hover { color: var(--accent-hover); }
/* Contact CTA — WhatsApp-green hard offset shadow that "presses" (mirrors the hero CTAs) */
#contact-cta { box-shadow: 5px 5px 0 0 rgba(37,211,102,0.40); }
#contact-cta:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 0 rgba(37,211,102,0.35); }
#contact-cta:active { transform: translate(5px, 5px); box-shadow: 0 0 0 0 rgba(37,211,102,0); }
/* ── 13. WhatsApp float & Maps float ─────────────────── */
/* Shared FAB geometry + realistic two-layer (material) elevation.
   48px keeps the ≥44px touch target while reading smaller than before. */
.maps-float,
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease;
}
.maps-float:hover,
.whatsapp-float:hover { transform: translateY(-2px) scale(1.05); }
.maps-float:active,
.whatsapp-float:active { transform: translateY(0) scale(0.97); }

/* Google Maps — white app-tile with the iconic red marker */
.maps-float {
  bottom: 7rem;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.30), 0 6px 18px rgba(0,0,0,0.22);
}
.maps-float:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.34), 0 10px 26px rgba(0,0,0,0.28); }
.maps-float svg { width: 28px; height: 28px; }
.maps-float:focus-visible { outline: 2px solid #EA4335; outline-offset: 3px; }

/* WhatsApp — official green bubble with a subtle top-down gradient for depth */
.whatsapp-float {
  bottom: 3.5rem;
  background: linear-gradient(160deg, #2DDC6D 0%, #25D366 45%, #1EBE5A 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.28), 0 6px 18px rgba(37,211,102,0.30);
}
.whatsapp-float:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.30), 0 10px 26px rgba(37,211,102,0.42); }
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float:focus-visible { outline: 2px solid var(--color-whatsapp); outline-offset: 3px; }

/* ── 14. Footer ───────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; background: var(--bg-secondary); }
.footer__stamp {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.55;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.footer__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}
.footer__links { display: flex; gap: 1.25rem; align-items: center; }
.footer__links a { transition: color var(--transition); }
.footer__links a:hover { color: var(--accent); }
.footer__dev-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; transition: color var(--transition); }
.footer__dev-link:hover { color: var(--accent); }

/* ── 15. Legal / 404 pages ────────────────────────────── */
.legal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem var(--container-pad); border-bottom: 1px solid var(--border); }
.legal { max-width: 760px; padding-top: 2.5rem; padding-bottom: 4rem; display: grid; gap: 1rem; color: var(--text-secondary); line-height: 1.75; }
.legal h1 { font-family: var(--font-display); color: var(--text-primary); font-size: clamp(1.5rem, 3vw, 2rem); }
.legal h2 { color: var(--text-primary); font-family: var(--font-display); font-size: 1.1rem; margin-top: 1.5rem; }
.error { min-height: 70vh; display: grid; gap: 1rem; place-content: center; text-align: center; }
.error__code { font-family: var(--font-display); font-size: clamp(4rem, 16vw, 9rem); color: var(--accent); font-weight: 700; line-height: 1; }
.error__msg { color: var(--text-secondary); font-size: 1.1rem; }

/* ── 16. Noscript ─────────────────────────────────────── */
.noscript-fallback { text-align: center; padding: 4rem 2rem; }

/* ── 17. PWA: Offline banner ──────────────────────────── */
.offline-banner {
  position: fixed;
  left: 50%;
  bottom: 5rem;
  transform: translateX(-50%);
  z-index: 998;
  max-width: calc(100vw - 2rem);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.875rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  white-space: nowrap;
  text-align: center;
}

/* ── 18. Animations ───────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity var(--transition-slow), transform var(--transition-slow); }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fade-in { opacity: 1; transform: none; }
  /* Hero entrance: elements must be visible at their final resting positions */
  .hero-enter-logo { opacity: 1; transform: none; }
  .hero-enter-tagline { opacity: 1; transform: translateY(-3rem); }
  .hero-enter-ctas { opacity: 1; transform: translateY(-4rem); }
  /* Ken Burns: freeze the bg photo at scale(1) */
  .hero__bg-photo { transform: scale(1); }
  /* Scroll indicator: show without bounce, still clickable */
  .hero__scroll-indicator { animation: none; }
}

/* ── 19. Media queries ────────────────────────────────── */
/* Mobile catalog grid: 2 columns, never 1. */
@media (max-width: 640px) {
  .catalog__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card__body { padding: 0.85rem; }
  .product-card__name { font-size: 0.875rem; }
  .product-card__price { font-size: 0.95rem; }
  .product-card__add { width: 100%; }
  .hero__bg-photo { background-size: auto 120%; background-position: 65% 115%; }
  .hero__logo-img { max-width: 260px; --logo-y: -5rem; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .hero__ctas .btn { width: 100%; max-width: 280px; }
  /* Declutter the corners on small screens: keep only the top stamps */
  .hero__stamp { font-size: 0.62rem; letter-spacing: 0.12em; }
  .hero__stamp::before { width: 1rem; }
  .hero__stamp--bl, .hero__stamp--br { display: none; }
  /* Nav lockup: slightly smaller icon on mobile so cart/hamburger aren't crowded */
  .nav__logo-img { height: 34px; }
  .nav__logo-text { font-size: 1rem; }
}
@media (max-width: 360px) {
  .catalog__grid { gap: 8px; }
}

@media (min-width: 768px) {
  .contact__layout { grid-template-columns: 1.4fr 1fr; }
}

/* Nav threshold: hamburger ≤ 900px, horizontal menu > 900px. */
@media (max-width: 900px) {
  .nav__menu {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.5rem var(--container-pad);
    background: rgba(10,10,10,0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .nav__menu.nav--open { transform: translateY(0); }
  .nav__links { flex-direction: column; gap: 0.25rem; }
  .nav__link { font-size: 1.05rem; padding: 0.5rem 0; display: block; }
  .nav__controls { justify-content: flex-start; padding-top: 0.5rem; border-top: 1px solid var(--border); }
}
@media (min-width: 901px) {
  .nav__hamburger { display: none; }
}
@media (min-width: 1024px) {
  .catalog__grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
