/* Drew Accessories v2 — tienda interactiva (scratch, not v1 markup) */
:root {
  --bg: #0d0d0d;
  --bg2: #000;
  --neon: #39FF14;
  --neon2: #2ECC12;
  --text: #fff;
  --muted: #a0a0a0;
  --card: #141414;
  --line: #222;
  --radius: 14px;
  --font: "Montserrat", system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--neon); text-decoration: none; }
button { font: inherit; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--neon); color: #000; padding: .5rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  background: rgb(13,13,13);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-weight: 900; letter-spacing: .18em; color: #fff; font-size: 1rem;
}
.desk-nav { display: none; gap: 1rem; margin-left: 1rem; }
.desk-nav a { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.desk-nav a:hover { color: var(--neon); }
.top-actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.icon-btn, .lang-btn {
  background: #1a1a1a; border: 1px solid var(--line); color: #fff;
  border-radius: 999px; width: 40px; height: 40px; cursor: pointer;
}
.lang-btn { width: auto; padding: 0 .85rem; font-weight: 700; font-size: .75rem; }
.cart-btn { position: relative; }
.badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--neon); color: #000; font-size: .65rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px;
}
.menu-btn { display: inline-grid; place-items: center; }
.mobile-nav {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1rem; background: #111; border-bottom: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav a { color: #fff; font-weight: 600; padding: .5rem 0; }

@media (min-width: 860px) {
  .menu-btn { display: none; }
  .desk-nav { display: flex; }
  .mobile-nav { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.25rem; border-radius: 999px;
  border: 1px solid transparent; font-weight: 700; cursor: pointer;
}
.btn-neon {
  background: var(--neon); color: #000; border-color: var(--neon2);
}
.btn-neon:hover { background: var(--neon2); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }

/* Unified product hero: copy and decorative glasses, no pinned scroll. */
.hero {
  display: grid; align-items: center; gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 540px; padding: 2.5rem 1.25rem;
  background: radial-gradient(ellipse at 65% 45%, rgba(20,48,26,.45) 0%, transparent 55%);
}
.hero-copy { max-width: 650px; }
.hero-art { height: clamp(340px, 36vw, 480px); min-width: 0; overflow: hidden; }
.hero h1 {
  margin: 0 0 1rem; font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.08; font-weight: 900; letter-spacing: -.02em;
}
@media (max-width: 759px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: .25rem; min-height: 0; padding: 1.75rem 1.25rem .5rem; }
  .hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.8rem); }
  .hero-art { height: 280px; }
  .hero .lede { margin-bottom: 1rem; }
}
.eyebrow {
  color: var(--neon); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .75rem;
}
.lede { color: var(--muted); margin: 0 0 1.5rem; max-width: 46ch; line-height: 1.5; }
#hero-canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.swatches { display: flex; gap: .55rem; margin-bottom: .5rem; flex-wrap: wrap; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #333; background: var(--sw);
  cursor: pointer; box-shadow: inset 0 0 0 2px #000;
}
.swatch.is-active, .swatch:focus-visible {
  border-color: var(--neon); outline: none;
  box-shadow: 0 0 0 2px var(--neon), inset 0 0 0 2px #000;
}
.swatch-label { font-size: .8rem; color: var(--neon); font-weight: 600; margin: 0 0 .75rem !important; }
/* Categories */
.cats, .catalog, .ship, .pulse, .ig, .footer {
  padding: 3rem 1.25rem;
}
.section-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between; margin-bottom: 1.25rem; }
.cats h2, .catalog h2, .ship h2 { margin: 0; font-size: 1.6rem; font-weight: 900; }
.section-sub { color: var(--muted); margin: .35rem 0 1.5rem; }
.cat-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.cat-tabs button {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: .45rem .9rem; cursor: pointer; font-weight: 600; font-size: .8rem;
}
.cat-tabs button[aria-selected="true"] {
  border-color: var(--neon); color: #000; background: var(--neon);
}
.cat-rail {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .5rem; -webkit-overflow-scrolling: touch;
}
.cat-card {
  flex: 0 0 72%; scroll-snap-align: start;
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer;
}
.cat-card span { font-weight: 800; font-size: 1.2rem; }
.cat-card strong { color: var(--neon); font-size: 1.1rem; }
.cat-card.soon strong { color: var(--muted); font-size: .95rem; }
@media (min-width: 700px) {
  .cat-card { flex-basis: 30%; }
}

/* Flip cards */
.grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }

.flip {
  perspective: 1200px; min-height: 320px;
}
.flip-inner {
  position: relative; width: 100%; height: 100%; min-height: 320px;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--card); padding: 1.1rem;
  display: flex; flex-direction: column;
}
.flip-back {
  transform: rotateY(180deg);
  background: #101810;
  border-color: #1f3d1f;
}
.flip-visual {
  flex: 1; border-radius: 10px; margin-bottom: .85rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(57,255,20,.25), transparent 50%),
    linear-gradient(160deg, #1c1c1c, #0a0a0a);
  display: grid; place-items: center;
  font-size: 3rem; min-height: 140px;
}
.flip-visual.cap { font-size: 3.5rem; }
.flip-visual.watch { opacity: .55; }
.flip-visual.photo { padding: 0; overflow: hidden; flex: 1; min-height: 0; background: #0d0d0d; }
.flip-visual.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip-face h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.flip-face .tag { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.flip-hint { margin-top: auto; font-size: .75rem; color: var(--neon); }
.price { font-size: 1.4rem; font-weight: 800; color: var(--neon); margin: .5rem 0 1rem; }
.flip-back p { color: var(--muted); font-size: .9rem; flex: 1; }
.product[hidden] { display: none !important; }

/* Shipping steps */
.steps {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; gap: 1rem;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  background: #121212; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; opacity: .35; transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease, border-color .3s;
}
.step.is-on { opacity: 1; transform: none; border-color: #2a4a2a; }
.step-num { color: var(--neon); font-weight: 900; font-size: .85rem; letter-spacing: .1em; }
.step h3 { margin: .4rem 0; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Pulse */
.pulse {
  background: rgba(0,0,0,.65); border-block: 1px solid var(--line);
  text-align: center; padding-block: 4rem;
}
.pulse blockquote {
  margin: 0 auto 1rem; max-width: 28ch;
  font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 800; line-height: 1.25;
}
.pulse p { color: var(--muted); margin: 0; }

/* IG */
.ig-panel {
  background:
    linear-gradient(135deg, rgba(57,255,20,.12), transparent 40%),
    #141414;
  border: 1px solid #2a2a2a; border-radius: 20px;
  padding: 2rem 1.5rem; text-align: center;
}
.ig-panel h2 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 4vw, 2.2rem); }
.ig-panel .btn { margin-top: 1rem; }

/* Footer */
.footer {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
}
.credit { color: #fff; font-weight: 600; }

/* Cart drawer */
.cart-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50;
}
.cart-backdrop[hidden], .cart-drawer[hidden] { display: none !important; }
.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 60;
  width: min(400px, 100%); height: 100%;
  background: #0f0f0f; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 1rem;
  padding-bottom: calc(1rem + var(--safe-bottom));
}
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-head h2 { margin: 0; font-size: 1.1rem; }
.cart-lines { list-style: none; margin: 1rem 0; padding: 0; flex: 1; overflow: auto; }
.cart-lines li {
  display: grid; grid-template-columns: 1fr auto; gap: .35rem;
  padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.cart-lines .qty { color: var(--muted); font-size: .8rem; }
.cart-empty { color: var(--muted); }
.cart-empty[hidden] { display: none !important; }
.cart-foot { border-top: 1px solid var(--line); padding-top: 1rem; }
.cart-total { display: flex; justify-content: space-between; margin-bottom: .75rem; font-weight: 700; }
.cart-soon {
  margin: .75rem 0 0; padding: .75rem; border-radius: 10px;
  background: #152015; border: 1px solid #2ECC12; color: var(--neon);
  font-size: .85rem; font-weight: 600;
}
.cart-soon[hidden] { display: none !important; }
.rm-line {
  background: transparent; border: none; color: #f66; cursor: pointer; font-size: .8rem;
}

/* reduced-motion: disable flip 3d spin feel */
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
  .step { opacity: 1; transform: none; }
}

/* Photo cards: taller so product photos show near 4:3 */
.flip, .flip-inner { min-height: 380px; }
@media (min-width: 980px) { .flip, .flip-inner { min-height: 420px; } }
.flip-visual.photo img { object-fit: contain; object-position: center; }

/* Matrix background (subtle, decorative, strictly behind content) */
html { background: #000; }
body { background: rgba(13,13,13,.45) !important; }
#matrix-bg {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: -1; pointer-events: none;
  opacity: .35;
}

/* Logo */
.wordmark { display: inline-flex; align-items: center; line-height: 0; }
.logo-img { height: 30px; width: auto; display: block; }
@media (min-width: 900px) { .logo-img { height: 38px; } }
.footer-logo { height: 44px; width: auto; display: block; margin-bottom: .5rem; }

/* Free shipping */
.free-ship-note { color: var(--neon); font-weight: 700; margin: -.25rem 0 1.25rem; }
.free-ship-progress { color: var(--muted); font-size: .85rem; margin: 0 0 .6rem; }
.free-ship-progress.is-free { color: var(--neon); font-weight: 700; }

.about { max-width: 46ch; margin: 0 0 .5rem; color: #e8e8e8; line-height: 1.5; font-size: .9rem; }
