:root {
  --paper: #f7f3ec;
  --ink: #14120f;
  --hot: #ff2f7e;
  --lime: #c8ff4d;
  --lav: #b6a6ff;
  --line: rgba(20,18,15,0.12);
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- TOP UTILITY BAR ---------- */
.utility-bar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.utility-bar span.dot { color: var(--lime); }

/* ---------- NAV ---------- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 5vw;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 100;
  border-bottom: 3px solid var(--ink);
}
.logo {
  transform: rotate(-2deg);
  display: inline-block;
}
.logo img {
  height: 34px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .logo img { height: 28px; }
}
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a.nav-item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a.nav-item::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 2px;
  background: var(--hot);
  transition: width 0.2s ease;
}
.nav-links a.nav-item:hover::after { width: 100%; }

.nav-icons { display: flex; align-items: center; gap: 20px; }
.icon-btn {
  background: none; border: none; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
}
.cart-btn {
  border: 2px solid var(--ink);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.cart-btn:hover { background: var(--ink); color: var(--paper); }
#cartCount {
  background: var(--hot);
  color: var(--paper);
  border-radius: 50%;
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--hot);
  color: var(--paper);
  overflow: hidden;
  padding: 10px 0;
  border-bottom: 3px solid var(--ink);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollLeft 22s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0 26px;
  white-space: nowrap;
}
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- HERO ---------- */
.hero {
  padding: 70px 5vw 90px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; padding: 50px 6vw; } }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--lime);
  display: inline-block;
  padding: 5px 12px;
  border: 2px solid var(--ink);
  margin-bottom: 22px;
  transform: rotate(-1deg);
}
h1.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
h1.hero-title .accent { color: var(--hot); }
.hero-copy {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: rgba(20,18,15,0.72);
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn-solid, .btn-outline {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.88rem;
  padding: 15px 28px;
  display: inline-block;
  border: 2px solid var(--ink);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-solid { background: var(--ink); color: var(--paper); font-weight: 700; }
.btn-solid:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--hot); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--lav); }
.btn-solid:disabled, .btn-outline:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Trading card — signature element */
.trading-card {
  background: var(--ink);
  border: 3px solid var(--ink);
  padding: 18px;
  position: relative;
  transform: rotate(2deg);
  max-width: 380px;
  margin: 0 auto;
}
.trading-card::before {
  content: 'LIMITED DROP';
  position: absolute;
  top: -14px;
  left: 20px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 2px solid var(--ink);
}
.card-art {
  background: linear-gradient(135deg, var(--lav), var(--hot));
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-art svg { width: 62%; height: 62%; }
.card-art img { width: 100%; height: 100%; object-fit: contain; }
.card-foot {
  background: var(--paper);
  margin-top: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
}
.card-foot .name { font-size: 0.95rem; font-weight: 700; }
.card-foot .price { color: var(--hot); font-weight: 700; }

/* ---------- SECTIONS ---------- */
section { padding: 80px 5vw; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hot);
}

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 780px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card {
  border: 3px solid var(--ink);
  background: var(--paper);
  padding: 30px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.cat-card:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--ink); }
.cat-swatch {
  width: 100%; aspect-ratio: 16/10;
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink);
}
.cat-swatch svg { width: 40%; }
.cat-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 6px; }
.cat-card p { font-family: var(--font-mono); font-size: 0.8rem; color: rgba(20,18,15,0.6); margin-bottom: 16px; }
.cat-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--hot);
}

/* Product grid */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid var(--ink);
  padding: 8px 16px;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.filter-chip.active, .filter-chip:hover { background: var(--ink); color: var(--paper); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  border: 2px solid var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { transform: translate(-3px,-3px); box-shadow: 5px 5px 0 var(--ink); }

.product-art-link { display: block; }
.product-art {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.product-art svg { width: 46%; height: 46%; }
.product-art img { width: 78%; height: 78%; object-fit: contain; }
.product-tag {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--ink);
  color: var(--paper);
  padding: 3px 8px;
}
.product-tag.new { background: var(--lime); color: var(--ink); }
.product-tag.low { background: var(--hot); color: var(--paper); }

.product-info { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-info h4 { font-size: 0.98rem; font-weight: 500; }
.product-info h4 a:hover { text-decoration: underline; text-decoration-color: var(--hot); }
.product-info .cat { font-family: var(--font-mono); font-size: 0.7rem; color: rgba(20,18,15,0.5); text-transform: uppercase; }
.product-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.price { font-family: var(--font-mono); font-weight: 700; }
.add-btn {
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 9px 14px;
  transition: background 0.15s ease;
}
.add-btn:hover { background: var(--hot); }
.add-btn.added { background: var(--lime); color: var(--ink); }

/* ---------- TRUST STRIP ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
@media (max-width: 700px) { .trust-strip { grid-template-columns: 1fr; } }
.trust-item {
  padding: 30px 5vw;
  border-right: 2px solid var(--ink);
  text-align: center;
}
.trust-item:last-child { border-right: none; }
.trust-item h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 6px; }
.trust-item p { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(20,18,15,0.55); }

/* ---------- NEWSLETTER ---------- */
.newsletter {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  max-width: 16ch;
  margin: 0 auto 16px;
}
.newsletter p { color: rgba(247,243,236,0.65); margin-bottom: 30px; font-family: var(--font-mono); font-size: 0.85rem; }
.newsletter-form { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  background: transparent;
  border: 2px solid var(--paper);
  color: var(--paper);
  padding: 14px 16px;
  font-family: var(--font-mono);
  min-width: 260px;
}
.newsletter-form input::placeholder { color: rgba(247,243,236,0.5); }
.newsletter-form button {
  background: var(--hot);
  color: var(--paper);
  border: 2px solid var(--hot);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 14px 26px;
}
.newsletter-note { margin-top: 16px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--lime); min-height: 1.2em; }

/* ---------- FOOTER ---------- */
footer {
  padding: 34px 5vw;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(20,18,15,0.5);
}

/* ---------- CART DRAWER ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(20,18,15,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 200;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(400px, 92vw);
  height: 100%;
  background: var(--paper);
  border-left: 3px solid var(--ink);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  padding: 22px 24px;
  border-bottom: 3px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-head h3 { font-family: var(--font-display); font-size: 1.3rem; }
.cart-close { background: none; border: none; font-size: 1.4rem; color: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-line {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-line-art {
  width: 56px; height: 56px;
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cart-line-art svg { width: 60%; }
.cart-line-art img { width: 90%; height: 90%; object-fit: contain; }
.cart-line-info { flex: 1; }
.cart-line-info h5 { font-size: 0.9rem; font-weight: 500; }
.cart-line-info span { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(20,18,15,0.55); }
.cart-remove { background: none; border: none; font-family: var(--font-mono); font-size: 0.72rem; text-decoration: underline; color: var(--hot); }
.cart-empty { font-family: var(--font-mono); font-size: 0.85rem; color: rgba(20,18,15,0.5); padding: 40px 0; text-align: center; }
.cart-foot { border-top: 3px solid var(--ink); padding: 20px 24px; }
.cart-total-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-weight: 700; margin-bottom: 16px; font-size: 1.05rem; }
.cart-subtotal-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.85rem; color: rgba(20,18,15,0.65); margin-bottom: 8px; }
.cart-tax-note { font-family: var(--font-mono); font-size: 0.72rem; color: rgba(20,18,15,0.5); text-align: right; margin-top: -10px; margin-bottom: 16px; }
.checkout-btn {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 16px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  transition: background 0.15s ease;
}
.checkout-btn:hover { background: var(--hot); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--hot);
  outline-offset: 2px;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  padding: 20px 5vw 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(20,18,15,0.55);
}
.breadcrumb a:hover { color: var(--hot); }

/* ---------- PRODUCT DETAIL ---------- */
.pdp {
  padding: 40px 5vw 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 36px; padding: 30px 6vw 70px; } }

.pdp-art {
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pdp-art svg { width: 55%; height: 55%; }
.pdp-art img { width: 85%; height: 85%; object-fit: contain; }

.pdp-info .cat {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hot);
  margin-bottom: 10px;
  display: block;
}
.pdp-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 16px;
}
.pdp-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.pdp-desc {
  color: rgba(20,18,15,0.72);
  max-width: 50ch;
  margin-bottom: 28px;
}
.pdp-tag-row { margin-bottom: 22px; }

.pdp-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 2px solid var(--ink);
}
.qty-stepper button {
  background: none;
  border: none;
  width: 40px;
  height: 44px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
}
.qty-stepper button:hover { background: var(--ink); color: var(--paper); }
.qty-stepper span {
  font-family: var(--font-mono);
  font-weight: 700;
  width: 36px;
  text-align: center;
  display: inline-block;
}

.pdp-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.pdp-meta {
  border-top: 2px solid var(--line);
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(20,18,15,0.6);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

/* ---------- SIZE SELECTOR ---------- */
.pdp-size-row { margin-bottom: 24px; }
.pdp-size-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(20,18,15,0.6);
  display: block;
  margin-bottom: 10px;
}
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border: 2px solid var(--ink);
  background: transparent;
  padding: 8px 14px;
  min-width: 44px;
  transition: background 0.15s ease, color 0.15s ease;
}
.size-chip:hover { background: rgba(20,18,15,0.08); }
.size-chip.active { background: var(--ink); color: var(--paper); }
