/* =========================================================
   Zero-Foxx — Homepage
   - Brand orange tuned to the fox logo (#F26A1F)
   - Dark theme, near-black (#0A0A0A) with a second layer (#141414)
   - Header wordmark: "Zero" in orange, "Foxx" in white; hover reverses
   - Brand font: Edo SZ (locked in)
   ========================================================= */

/* ==== BRAND FONT ==== */
@font-face { font-family: 'Edo SZ'; src: url('/fonts/edo-sz.ttf') format('truetype'); font-display: swap; }

:root {
  --orange: #F26A1F;
  --orange-soft: #ff8840;
  --orange-glow: rgba(242, 106, 31, 0.35);
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --line: #262626;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  /* Brand display font */
  --display:   'Edo SZ', 'Caveat Brush', system-ui, sans-serif;
  --display-2: 'Edo SZ', 'Caveat Brush', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Subtle grainy texture overlay to give the dark bg depth */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse at top left, rgba(242,106,31,0.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(242,106,31,0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ========== NAV ========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: 1.5px;
  user-select: none;
  cursor: pointer;
  display: inline-flex;
  gap: 2px;
  line-height: 1;
  transform: skew(-4deg);
}
.wordmark .zero  { color: var(--orange); transition: color .25s ease; }
.wordmark .foxx  { color: #fff;           transition: color .25s ease; }
.wordmark:hover .zero { color: #fff; }
.wordmark:hover .foxx { color: var(--orange); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  height: 2px; width: 0; background: var(--orange);
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; gap: 14px; align-items: center; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: all .2s ease;
  cursor: pointer;
  background: transparent;
}
.icon-btn:hover { color: var(--orange); border-color: var(--orange); }

.cart-count {
  position: relative;
}
.cart-count .badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--orange); color: #000;
  font-family: var(--body); font-weight: 700;
  font-size: 10px;
  width: 18px; height: 18px; border-radius: 999px;
  display: grid; place-items: center;
}

/* ========== HERO (MANIFESTO) ========== */
.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  place-items: center;
  padding: 100px 40px 80px;
  text-align: center;
  overflow: hidden;
}
/* Ambient orange glow behind the manifesto */
.hero::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 900px; height: 900px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--orange-glow), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
/* Faint fox logo watermark behind the manifesto */
.hero::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: min(720px, 90vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background-image: url("assets/zero-foxx-logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 1100px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 36px;
  font-weight: 700;
  justify-content: center;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: ""; width: 40px; height: 2px; background: var(--orange);
}

/* The manifesto itself — echoing the shirt back print. Size reduced 50%. */
.manifesto-hero {
  font-family: var(--display);
  font-size: clamp(19px, 3.1vw, 46px);
  line-height: 1.1;
  letter-spacing: 1px;
  color: #f1f1f1;
  text-transform: uppercase;
  transform: skew(-3deg);
  margin-bottom: 36px;
  display: inline-block;
  position: relative;
  transition: color .35s ease;
  cursor: default;
}
.manifesto-hero .line { display: block; }
.manifesto-hero .accent {
  color: var(--orange);
  transition: color .35s ease;
}
/* Color swap on manifesto hover */
.manifesto-hero:hover          { color: var(--orange); }
.manifesto-hero:hover .accent  { color: #f1f1f1; }

/* Small fox logo icons that bookend the manifesto */
.fox-icon {
  display: inline-block;
  width: 0.9em; height: 0.9em;
  vertical-align: -0.15em;
  margin: 0 0.12em;
  transform: skew(3deg); /* counter-skew so it stays upright */
  object-fit: contain;
}

.hero p.lead {
  max-width: 540px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.3px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 700;
  border-radius: 2px;
  border: none; cursor: pointer;
  transition: all .2s ease;
  font-family: var(--body);
}
/* Primary button — TRUE color reversal on hover: fill and text swap */
.btn-primary {
  background: var(--orange); color: #000;
  border: 2px solid var(--orange);
}
.btn-primary:hover {
  background: #0A0A0A; color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--orange-glow);
}
/* Ghost button — color reversal: outline inverts to solid */
.btn-ghost {
  background: transparent; color: #fff;
  border: 2px solid #fff;
}
.btn-ghost:hover {
  background: #fff; color: #0A0A0A; border-color: #fff;
  transform: translateY(-2px);
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ========== UTILITY: TWO-TONE COLOR SWAP ON HOVER ==========
   Wrap the "base" (white) part in .base, the "accent" (orange) part in .accent.
   On hover of the parent (with .color-swap class), the two colors swap.
   ============================================================ */
.color-swap .base   { color: #fff;          transition: color .3s ease; }
.color-swap .accent { color: var(--orange); transition: color .3s ease; }
.color-swap:hover .base   { color: var(--orange); }
.color-swap:hover .accent { color: #fff; }

/* Color-swap variant for elements sitting ON orange background
   (newsletter section): black text ↔ white text swap */
.color-swap-dark { cursor: default; }
.color-swap-dark .base   { color: #0A0A0A; transition: color .3s ease; }
.color-swap-dark .accent { color: #fff;    transition: color .3s ease; }
.color-swap-dark:hover .base   { color: #fff; }
.color-swap-dark:hover .accent { color: #0A0A0A; }

/* Hero visual — oversized fox mark */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
}
.hero-visual .mark {
  width: min(520px, 90%);
  aspect-ratio: 1;
  filter: drop-shadow(0 20px 80px var(--orange-glow));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Scrolling marquee beneath hero */
.marquee {
  position: relative;
  background: var(--orange);
  color: #000;
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}
.marquee-track {
  display: flex; gap: 60px;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  font-family: var(--display-2);
  font-size: 26px;
  letter-spacing: 3px;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee-track span::after { content: "✦"; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========== SHOP SECTION ========== */
.section { padding: 110px 80px; position: relative; z-index: 1; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 50px; flex-wrap: wrap; gap: 20px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  transform: skew(-4deg);
}
.section-head h2 .accent { color: var(--orange); }
.section-head p {
  color: var(--muted); max-width: 420px; font-size: 15px; line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 300px));
  gap: 24px;
}
.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative;
  cursor: pointer;
}
.product:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.product-img {
  aspect-ratio: 1;
  position: relative;
  background: #0d0d0d;
  display: grid; place-items: center;
  overflow: hidden;
}
.product-img .placeholder {
  width: 60%; aspect-ratio: 1;
  display: grid; place-items: center;
  color: var(--orange);
}
/* Color chip variant indicator */
.product-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(242,106,31,0.05), transparent 60%);
}
.product .tag {
  position: absolute;
  top: 14px; left: 14px;
  background: #000;
  color: var(--orange);
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 10px; border-radius: 2px;
  text-transform: uppercase;
  border: 1px solid var(--orange);
}
.product-body { padding: 20px 22px 24px; }
.product h3 {
  font-size: 16px; font-weight: 600; margin-bottom: 6px;
  letter-spacing: 0.3px;
}
/* Split-color title — brand name swaps with rest on card hover */
.product h3 .base   { color: #fff;          transition: color .3s ease; }
.product h3 .accent { color: var(--orange); transition: color .3s ease; }
.product:hover h3 .base   { color: var(--orange); }
.product:hover h3 .accent { color: #fff; }

.product .price {
  color: var(--orange); font-weight: 700; font-size: 15px;
  transition: color .3s ease;
}
.product:hover .price { color: #fff; }
.product .sizes {
  margin-top: 12px; display: flex; gap: 6px;
  font-size: 11px; color: var(--muted); letter-spacing: 1px;
}
.product .sizes span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 2px; }

/* ========== MANIFESTO ========== */
.manifesto {
  background: #000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 140px 40px;
  position: relative;
  overflow: hidden;
}
.manifesto::before, .manifesto::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(242,106,31,0.12), transparent 60%);
  pointer-events: none;
}
.manifesto h2 {
  font-family: var(--display);
  font-size: clamp(54px, 9vw, 140px);
  line-height: 0.9;
  letter-spacing: 2px;
  transform: skew(-4deg);
  position: relative; z-index: 1;
  cursor: default;
}
.manifesto h2 .line { display: block; transition: color .35s ease; }
.manifesto h2 .line:nth-child(2) { color: var(--orange); }
/* Three-line color swap on hover */
.manifesto h2:hover .line:nth-child(1),
.manifesto h2:hover .line:nth-child(3) { color: var(--orange); }
.manifesto h2:hover .line:nth-child(2) { color: #fff; }

/* Back-of-shirt quote block */
.quote {
  max-width: 720px;
  margin: 50px auto 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.5;
  color: #e5e5e5;
  position: relative; z-index: 1;
  letter-spacing: 1px;
}
.quote .zero-emoji { color: var(--orange); }

/* ========== ABOUT ========== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-copy h3 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  margin-bottom: 24px;
  transform: skew(-4deg);
}
.about-copy p {
  color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 18px;
}
.about-visual {
  aspect-ratio: 4/5;
  background:
    linear-gradient(135deg, rgba(242,106,31,0.2), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.about-visual .mark { width: 60%; opacity: 0.9; }

/* ========== NEWSLETTER ========== */
.newsletter {
  background: var(--orange);
  color: #000;
  padding: 80px 40px;
  text-align: center;
}
.newsletter h3 {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.05;
  margin-bottom: 18px;
  transform: skew(-4deg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter h3 span { display: block; }
.newsletter p {
  margin-bottom: 28px; font-size: 15px; letter-spacing: 1px;
  font-weight: 500;
}
.newsletter form {
  display: flex; gap: 8px; max-width: 520px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.newsletter input {
  flex: 1; min-width: 260px;
  padding: 16px 18px;
  background: #000; color: #fff;
  border: 2px solid #000;
  font-family: var(--body); font-size: 14px;
  border-radius: 2px;
  outline: none;
}
.newsletter input:focus { border-color: #fff; }
.newsletter button {
  padding: 16px 28px; background: #000; color: var(--orange);
  font-weight: 700; letter-spacing: 2px; font-size: 13px;
  text-transform: uppercase;
  border: 2px solid #000; border-radius: 2px; cursor: pointer;
  transition: all .2s ease; font-family: var(--body);
}
.newsletter button:hover { background: #fff; border-color: #fff; color: #000; }

/* ========== FOOTER ========== */
footer {
  background: #050505;
  padding: 60px 80px 30px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand .wordmark { font-size: 40px; }
.footer-brand p {
  margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 300px;
}
.footer-col h4 {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px; font-weight: 700;
}
.footer-col a {
  display: block; color: var(--muted); font-size: 14px;
  padding: 5px 0; transition: color .2s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 12px; letter-spacing: 1px;
  flex-wrap: wrap; gap: 14px;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 999px;
  display: grid; place-items: center; color: var(--muted);
  transition: all .2s ease;
}
.socials a:hover { color: var(--orange); border-color: var(--orange); }

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 50px 20px; text-align: left; }
  .hero-visual { margin-top: 30px; }
  .section { padding: 70px 20px; }
  .manifesto { padding: 90px 20px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  footer { padding: 50px 20px 24px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .wordmark { font-size: 28px; }
}

/* =========================================================
   SHOP / CATEGORY pages (added for the category restructure)
   ========================================================= */

/* Page header used on /shop and /category pages */
.page-head {
  padding: 70px 80px 0;
  position: relative; z-index: 1;
}
.page-head .crumbs {
  color: var(--muted); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px;
}
.page-head .crumbs a { color: var(--muted); transition: color .2s ease; }
.page-head .crumbs a:hover { color: var(--orange); }
.page-head .crumbs .sep { margin: 0 8px; opacity: .5; }
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1; transform: skew(-4deg);
}
.page-head h1 .accent { color: var(--orange); }
.page-head p { color: var(--muted); margin-top: 16px; max-width: 520px; font-size: 15px; line-height: 1.6; }

/* Category tile grid (home preview + /shop) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 340px));
  gap: 24px;
}
.cat-tile {
  position: relative; display: block;
  border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: var(--surface);
  aspect-ratio: 4 / 3;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.cat-tile:hover { transform: translateY(-6px); border-color: var(--orange); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.cat-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .5;
  transition: opacity .35s ease, transform .6s ease;
}
.cat-tile:hover img { opacity: .8; transform: scale(1.06); }
.cat-tile .cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.15), rgba(10,10,10,.88));
  z-index: 1;
}
.cat-tile .cat-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 2; }
.cat-tile h3 {
  font-family: var(--display); font-size: 30px;
  transform: skew(-4deg); letter-spacing: 1px;
  color: #fff; transition: color .3s ease;
}
.cat-tile:hover h3 { color: var(--orange); }
.cat-tile .count {
  display: inline-block; margin-top: 8px;
  color: var(--orange); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 700;
}
.cat-tile .go {
  position: absolute; top: 16px; right: 18px; z-index: 2;
  color: var(--orange); font-size: 22px; line-height: 1;
  opacity: 0; transform: translateX(-6px); transition: .25s ease;
}
.cat-tile:hover .go { opacity: 1; transform: translateX(0); }

/* Empty / loading state shared by grids */
.zf-empty {
  grid-column: 1 / -1; padding: 60px 20px; text-align: center;
  color: var(--muted); border: 1px dashed var(--line); border-radius: 8px;
}
.zf-empty .big { font-family: var(--display); font-size: 30px; color: var(--orange); margin-bottom: 10px; }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-top: 56px; flex-wrap: wrap;
}
.pagination .pg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border: 2px solid var(--line); border-radius: 2px;
  color: var(--text); font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
  transition: all .2s ease; background: transparent;
}
.pagination .pg-btn:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.pagination .pg-btn[aria-disabled="true"] { opacity: .3; pointer-events: none; transform: none; }
.pagination .pg-info { color: var(--muted); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.pagination .pg-info b { color: var(--orange); }

@media (max-width: 960px) {
  .page-head { padding: 44px 20px 0; }
}

/* ---- Shop hub subheadings ---- */
.shop-subhead{max-width:1200px;margin:0 auto 22px;padding:0 24px}
.shop-subhead h2{font-size:clamp(22px,3vw,30px);font-weight:800;letter-spacing:-.01em}

/* ---- Refine / filter bar (category & collection listing) ---- */
.filter-bar{max-width:1200px;margin:0 auto 26px;padding:0 24px;display:flex;flex-direction:column;gap:12px}
.filter-group{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.filter-label{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted,#9a9a9a);margin-right:6px}
.filter-bar .pill{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:999px;
  border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.04);color:#eee;font-size:13px;
  font-weight:600;text-decoration:none;transition:background .15s,border-color .15s,color .15s}
.filter-bar .pill span{font-size:11px;opacity:.6}
.filter-bar .pill:hover{border-color:var(--orange,#F26A1F);color:#fff}
.filter-bar .pill.active{background:var(--orange,#F26A1F);border-color:var(--orange,#F26A1F);color:#000}
.filter-bar .pill.active span{opacity:.75}
