*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --void: #0E0E0E;
  --chalk: #F0EDE6;
  --sand: #C8B89A;
  --sage: #8A9E8C;
  --mauve: #9B8FA0;
  --mid: #1A1A1A;
  --border: rgba(240,237,230,0.12);
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--void);
  color: var(--chalk);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ───────── NAV (80% visible / semi-transparent) ───────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
  background: rgba(14,14,14,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240,237,230,0.08);
  opacity: 0.8;
  transition: opacity 0.25s, background 0.25s;
}
nav:hover { opacity: 1; }
nav.scrolled {
  background: rgba(14,14,14,0.85);
  opacity: 0.95;
}

.nav-logo {
  font-family: var(--mono);
  font-weight: 200;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--chalk);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-weight: 200;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,237,230,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--chalk); }

.nav-cart {
  font-family: var(--mono);
  font-weight: 200;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,237,230,0.6);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-cart:hover { color: var(--chalk); }

.cart-count {
  position: absolute;
  top: -8px; right: -12px;
  background: var(--chalk);
  color: var(--void);
  font-size: 0.55rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-family: var(--sans);
  opacity: 0;
  transition: opacity 0.2s;
}
.cart-count.visible { opacity: 1; }

/* ───────── VIDEO PLACEHOLDER (used everywhere a video goes) ───────── */
.video-slot {
  position: relative;
  background: var(--mid);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-slot-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 1;
  pointer-events: none;
}
.video-slot-hint .vs-icon {
  width: 56px; height: 56px;
  border: 1px solid rgba(240,237,230,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-slot-hint .vs-icon svg {
  width: 18px; height: 18px;
  fill: rgba(240,237,230,0.3);
}
.video-slot-hint span {
  font-family: var(--mono);
  font-weight: 200;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,237,230,0.3);
  text-align: center;
  line-height: 2;
}
.video-slot.has-video .video-slot-hint { display: none; }

/* ───────── FOOTER ───────── */
footer {
  padding: 4rem 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand-logo {
  font-family: var(--mono);
  font-weight: 200;
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: var(--chalk);
  display: block;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-tagline {
  font-family: var(--mono);
  font-weight: 200;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,237,230,0.2);
  margin-bottom: 1.5rem;
}

.footer-socials { display: flex; gap: 1rem; list-style: none; }
.footer-socials a {
  font-family: var(--mono);
  font-weight: 200;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,237,230,0.25);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--chalk); }

.footer-col-title {
  font-family: var(--mono);
  font-weight: 200;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,237,230,0.35);
  margin-bottom: 1.5rem;
}

.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col-links a {
  font-family: var(--mono);
  font-weight: 200;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(240,237,230,0.3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col-links a:hover { color: var(--chalk); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-copy, .footer-origin {
  font-family: var(--mono);
  font-weight: 200;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: rgba(240,237,230,0.15);
  text-transform: uppercase;
}

/* ───────── CART DRAWER ───────── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(14,14,14,0.7);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--mid);
  border-left: 1px solid var(--border);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-title {
  font-family: var(--mono); font-weight: 200;
  font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--chalk);
}
.cart-close {
  background: none; border: none;
  color: rgba(240,237,230,0.4);
  font-size: 1.2rem; line-height: 1; padding: 0.2rem;
  transition: color 0.2s; cursor: pointer;
}
.cart-close:hover { color: var(--chalk); }

.cart-items {
  flex: 1; overflow-y: auto;
  padding: 1.5rem 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; gap: 1rem;
}
.cart-empty-text {
  font-family: var(--mono); font-weight: 200;
  font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(240,237,230,0.2);
}

.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; }
.cart-item-img {
  width: 64px; height: 80px;
  background: var(--void);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.cart-item-img svg { width: 22px; height: 22px; stroke: rgba(240,237,230,0.15); fill: none; stroke-width: 1; }
.cart-item-name { font-family: var(--mono); font-weight: 200; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--chalk); }
.cart-item-variant { font-family: var(--mono); font-weight: 200; font-size: 0.55rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(240,237,230,0.25); margin-top: 0.25rem; }
.cart-item-price { font-family: var(--mono); font-weight: 200; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--sand); }
.cart-item-remove {
  background: none; border: none;
  color: rgba(240,237,230,0.2);
  font-family: var(--mono); font-weight: 200;
  font-size: 0.52rem; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0; margin-top: 0.5rem;
  transition: color 0.2s; cursor: pointer;
  display: block;
}
.cart-item-remove:hover { color: rgba(240,237,230,0.6); }

.cart-footer { padding: 1.5rem 2rem; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.cart-total-label { font-family: var(--mono); font-weight: 200; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(240,237,230,0.3); }
.cart-total-price { font-family: var(--mono); font-weight: 200; font-size: 0.9rem; letter-spacing: 0.1em; color: var(--chalk); }

.btn-checkout {
  width: 100%;
  background: var(--chalk);
  border: none;
  padding: 1.1rem;
  font-family: var(--mono); font-weight: 200;
  font-size: 0.65rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--void);
  transition: background 0.2s; cursor: pointer;
}
.btn-checkout:hover { background: var(--sand); }

/* ───────── TOAST ───────── */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(4rem);
  background: var(--chalk); color: var(--void);
  padding: 0.8rem 1.8rem;
  font-family: var(--mono); font-weight: 200;
  font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 400;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ───────── REVEAL ───────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ───────── MOBILE ───────── */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.6rem; }
  footer { padding: 3rem 1.5rem 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
}
