/* =============================================
   HYPERTHRIFT — STREET ART BOMBAY STYLESHEET
   No neons. Only real walls.
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@300;400;500;600;700&family=Permanent+Marker&family=DM+Sans:ital,wght@0,300;0,400;1,300&display=swap');

/* ---- TOKENS ---- */
:root {
  --saffron: #E8871A;
  --brick:   #C44B2B;
  --cobalt:  #1B4FCC;
  --cream:   #F5EDDB;
  --chalk:   #FAF7F2;
  --ink:     #1A1410;
  --muted:   #7A6B5A;
  --concrete: #C8BFB0;
  --olive:   #6B7A3A;
  --plum:    #7B3F6E;

  --font-display: 'Bebas Neue', sans-serif;
  --font-hand:    'Permanent Marker', cursive;
  --font-body:    'DM Sans', sans-serif;
  --font-ui:      'Space Grotesk', sans-serif;

  --r-sm: 4px;
  --r-md: 12px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-card: 6px 6px 0 var(--ink);
  --shadow-btn:  4px 4px 0 var(--ink);
  --shadow-hover: 8px 8px 0 var(--ink);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: none; border: none; background: none; font-family: inherit; }

/* ---- CUSTOM CURSOR ---- */
#cursor {
  width: 16px; height: 16px;
  background: var(--saffron);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: multiply;
}
#cursor-trail {
  width: 36px; height: 36px;
  border: 2px solid var(--brick);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.18s ease;
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor { width: 28px; height: 28px; background: var(--brick); }

/* ---- TEXTURE OVERLAY ---- */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.45;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--brick); border-radius: 3px; }

/* ---- UTILITY ---- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---- TYPOGRAPHY ---- */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 180px);
  line-height: 0.9;
  letter-spacing: -1px;
  text-transform: uppercase;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.92;
  text-transform: uppercase;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  text-transform: uppercase;
}
.hand { font-family: var(--font-hand); }
.label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
  cursor: none;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.25s cubic-bezier(0.77,0,0.175,1);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-hover); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }

.btn-primary { background: var(--saffron); color: var(--ink); }
.btn-primary:hover { color: var(--chalk); }
.btn-secondary { background: var(--chalk); color: var(--ink); }
.btn-secondary:hover { color: var(--chalk); }
.btn-brick { background: var(--brick); color: var(--chalk); }
.btn-brick:hover { color: var(--chalk); }
.btn-cobalt { background: var(--cobalt); color: var(--chalk); }
.btn-sm { padding: 10px 20px; font-size: 12px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ---- MARQUEE ---- */
.marquee-wrap { overflow: hidden; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--saffron); padding: 10px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-size: 22px;
  padding: 0 32px;
  white-space: nowrap;
  color: var(--ink);
}
.marquee-item span { color: var(--brick); margin: 0 8px; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

.marquee-wrap.dark { background: var(--ink); }
.marquee-wrap.dark .marquee-item { color: var(--cream); }
.marquee-wrap.dark .marquee-item span { color: var(--saffron); }

/* ---- NAV ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 16px 0;
  transition: background 0.3s, padding 0.3s, border-bottom 0.3s;
}
#navbar.scrolled {
  background: var(--chalk);
  border-bottom: 2px solid var(--ink);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
}
.nav-logo .logo-accent { color: var(--saffron); }
.nav-logo sup {
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--brick);
  position: relative;
  top: -12px;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--saffron);
  transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-icon-btn {
  width: 40px; height: 40px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--chalk);
  font-size: 16px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  position: relative;
}
.nav-icon-btn:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); background: var(--saffron); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  background: var(--brick);
  color: var(--chalk);
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--chalk);
}
.hamburger {
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  display: none;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: 2px 2px 0 var(--ink);
  background: var(--chalk);
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s;
}

/* ---- MOBILE NAV ---- */
#mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: 85vw; max-width: 380px;
  height: 100vh;
  background: var(--ink);
  z-index: 600;
  transition: right 0.4s cubic-bezier(0.77,0,0.175,1);
  padding: 80px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-left: 3px solid var(--saffron);
}
#mobile-nav.open { right: 0; }
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.2s, transform 0.2s;
}
.mobile-nav-links a:hover { color: var(--saffron); transform: translateX(8px); }
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(26,20,16,0.7);
  z-index: 590;
  display: none;
}
.nav-overlay.open { display: block; }

/* ---- HERO ---- */
#hero {
  min-height: 100vh;
  background: var(--cream);
  padding-top: 80px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.hero-graffiti-bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-graffiti-bg svg { position: absolute; }
.hero-splash-1 { top: -5%; right: -5%; width: 45vw; opacity: 0.12; }
.hero-splash-2 { bottom: -10%; left: -8%; width: 40vw; opacity: 0.09; }
.hero-content {
  position: relative; z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 0 40px;
}
.hero-text { padding-right: 24px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--saffron);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  padding: 6px 14px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 3px 3px 0 var(--ink);
}
.hero-title { margin-bottom: 12px; }
.hero-title-line {
  display: block;
  overflow: hidden;
}
.hero-title-line span {
  display: block;
  transform: translateY(110%);
  animation: revealUp 0.8s cubic-bezier(0.77,0,0.175,1) forwards;
}
.hero-title-line:nth-child(2) span { animation-delay: 0.12s; }
.hero-title-line:nth-child(3) span { animation-delay: 0.22s; }
@keyframes revealUp { to { transform: translateY(0); } }

.hero-title .outline { -webkit-text-stroke: 3px var(--ink); color: transparent; }
.hero-title .saffron { color: var(--saffron); }
.hero-title .brick { color: var(--brick); }
.hero-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 440px;
  margin: 20px 0 36px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px dashed var(--concrete);
}
.stat-item {}
.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  color: var(--ink);
}
.stat-number .accent { color: var(--saffron); }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-stack { position: relative; width: 100%; max-width: 500px; aspect-ratio: 0.85; }
.hcard {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hcard-main {
  width: 76%;
  bottom: 0; right: 0;
  z-index: 3;
  background: var(--cream);
  animation: floatY 4s ease-in-out infinite;
}
.hcard-behind1 {
  width: 68%;
  top: 8%; left: 0;
  z-index: 2;
  transform: rotate(-8deg);
  background: var(--saffron);
  animation: floatY 4.5s ease-in-out infinite 0.5s;
}
.hcard-behind2 {
  width: 58%;
  top: 20%; left: 18%;
  z-index: 1;
  transform: rotate(5deg);
  background: var(--cobalt);
  animation: floatY 5s ease-in-out infinite 1s;
}
@keyframes floatY {
  0%,100% { transform: translateY(0) rotate(var(--rot,0deg)); }
  50% { transform: translateY(-12px) rotate(var(--rot,0deg)); }
}
.hcard-behind1 { --rot: -8deg; }
.hcard-behind2 { --rot: 5deg; }

.product-card-inner { padding: 16px; }
.product-card-img {
  width: 100%;
  aspect-ratio: 0.9;
  background: var(--concrete);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--brick);
  color: var(--chalk);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  text-transform: uppercase;
}
.product-card-name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.product-card-price {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--brick);
}
.product-card-price s { color: var(--concrete); font-size: 16px; margin-left: 6px; }

/* ---- HERO STICKER ---- */
.hero-sticker {
  position: absolute;
  font-family: var(--font-hand);
  line-height: 1.2;
  text-align: center;
  background: var(--saffron);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: spinSlow 12s linear infinite;
  box-shadow: 4px 4px 0 var(--ink);
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.sticker-1 { width: 90px; height: 90px; font-size: 11px; top: 5%; right: -5%; z-index: 5; padding: 12px; }

/* ========================
   SECTION: HOW IT WORKS
   ======================== */
#how-it-works { padding: 100px 0; background: var(--ink); overflow: hidden; position: relative; }
.hiw-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 60px; }
.hiw-card {
  background: var(--cream);
  border: 2px solid var(--saffron);
  border-radius: var(--r-md);
  padding: 36px 28px;
  position: relative;
  box-shadow: 6px 6px 0 var(--saffron);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hiw-card:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--saffron); }
.hiw-number {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--concrete);
  line-height: 1;
  position: absolute;
  top: 16px; right: 24px;
  user-select: none;
}
.hiw-icon { font-size: 32px; margin-bottom: 16px; }
.hiw-title { font-family: var(--font-display); font-size: 28px; margin-bottom: 12px; text-transform: uppercase; }
.hiw-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }
.section-header { text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
  border: 2px solid var(--saffron);
  padding: 4px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
}
.section-title-dark { color: var(--cream); }
.section-sub { color: var(--concrete); font-size: 15px; max-width: 480px; margin: 16px auto 0; }

/* ========================
   SECTION: PRODUCT CATALOG
   ======================== */
#catalog { padding: 100px 0; }
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 40px 0 32px;
}
.filter-chip {
  padding: 8px 18px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--chalk);
  color: var(--ink);
  transition: all 0.2s;
  box-shadow: 2px 2px 0 var(--ink);
}
.filter-chip:hover,
.filter-chip.active {
  background: var(--ink);
  color: var(--saffron);
  transform: translate(-1px,-1px);
  box-shadow: 3px 3px 0 var(--saffron);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}
.product-card {
  background: var(--chalk);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: none;
}
.product-card:hover { transform: translate(-4px,-4px); box-shadow: var(--shadow-hover); }
.product-card-thumb {
  aspect-ratio: 0.85;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}
.product-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.product-card:hover .product-card-thumb img { transform: scale(1.06); }
.product-card-overlay {
  position: absolute; inset: 0;
  background: rgba(26,20,16,0.0);
  display: flex; align-items: flex-end;
  padding: 16px;
  transition: background 0.3s;
}
.product-card:hover .product-card-overlay { background: rgba(26,20,16,0.35); }
.overlay-btn {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
}
.product-card:hover .overlay-btn { opacity: 1; transform: translateY(0); }
.product-card-body { padding: 14px 16px 18px; }
.product-card-cat { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 4px; }
.product-card-title { font-family: var(--font-ui); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.product-card-meta { display: flex; align-items: center; justify-content: space-between; }
.product-card-price-tag {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brick);
}
.product-card-og { font-size: 12px; color: var(--concrete); text-decoration: line-through; margin-left: 6px; }
.size-chip {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--saffron);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  text-transform: uppercase;
}
.condition-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.cond-fire { background: var(--brick); }
.cond-good { background: var(--olive); }
.cond-ok   { background: var(--saffron); }

/* ========================
   SECTION: SELL BANNER
   ======================== */
#sell-banner {
  padding: 80px 0;
  background: var(--saffron);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  position: relative;
}
.sell-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.sell-steps { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.sell-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.sell-step-num {
  min-width: 36px; height: 36px;
  background: var(--ink);
  color: var(--saffron);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
}
.sell-step-text strong { display: block; font-family: var(--font-ui); font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.sell-step-text span { font-size: 13px; color: var(--ink); opacity: 0.7; }
.sell-visual {
  position: relative;
  text-align: center;
}
.sell-big-text {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 160px);
  line-height: 0.85;
  text-transform: uppercase;
  -webkit-text-stroke: 3px var(--ink);
  color: transparent;
  user-select: none;
}
.sell-accent-text {
  font-family: var(--font-hand);
  font-size: clamp(32px, 5vw, 56px);
  color: var(--brick);
  margin-top: -20px;
}

/* ========================
   SECTION: CATEGORIES
   ======================== */
#categories { padding: 100px 0; background: var(--ink); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-top: 48px;
}
.cat-card {
  border: 2px solid var(--saffron);
  border-radius: var(--r-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--saffron);
}
.cat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--saffron);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(0.77,0,0.175,1);
  z-index: 0;
}
.cat-card:hover::before { transform: scaleY(1); }
.cat-card:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--saffron); }
.cat-card > * { position: relative; z-index: 1; }
.cat-card:hover .cat-name { color: var(--ink); }
.cat-card:hover .cat-count { color: var(--ink); opacity: 0.7; }
.cat-card:hover .cat-emoji { transform: scale(1.2) rotate(10deg); }
.cat-emoji { font-size: 36px; transition: transform 0.3s; }
.cat-name { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; color: var(--cream); transition: color 0.3s; }
.cat-count { font-size: 12px; color: var(--concrete); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; transition: color 0.3s; }

/* ========================
   PRODUCT DETAIL PAGE
   ======================== */
#product-detail { padding: 120px 0 80px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-gallery {}
.gallery-main {
  aspect-ratio: 0.9;
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--cream);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb {
  width: 72px; height: 72px;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: none;
  transition: border-color 0.2s;
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--saffron); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info {}
.product-detail-cat {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.product-detail-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.detail-price-main { font-family: var(--font-display); font-size: 48px; color: var(--brick); line-height: 1; }
.detail-price-og { font-family: var(--font-display); font-size: 28px; color: var(--concrete); text-decoration: line-through; }
.detail-savings {
  background: var(--olive);
  color: var(--chalk);
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 700;
}
.product-detail-desc { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.product-meta-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.meta-tag {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600;
  background: var(--cream);
  box-shadow: 2px 2px 0 var(--concrete);
}
.size-selector { margin-bottom: 28px; }
.size-selector-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-opt {
  width: 48px; height: 48px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  box-shadow: 2px 2px 0 var(--ink);
  transition: all 0.2s;
  background: var(--chalk);
}
.size-opt:hover,
.size-opt.active { background: var(--ink); color: var(--saffron); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--saffron); }
.add-to-cart-btn { width: 100%; justify-content: center; font-size: 16px; padding: 18px; }

/* ========================
   SELLER CARD
   ======================== */
.seller-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-card);
  margin-top: 28px;
}
.seller-avatar {
  width: 52px; height: 52px;
  background: var(--saffron);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.seller-name { font-family: var(--font-ui); font-weight: 700; font-size: 14px; }
.seller-rating { font-size: 12px; color: var(--muted); }
.seller-location { font-size: 12px; color: var(--muted); }

/* ========================
   CART SIDEBAR
   ======================== */
#cart-sidebar {
  position: fixed;
  top: 0; right: -110%;
  width: 420px;
  max-width: 95vw;
  height: 100vh;
  background: var(--chalk);
  border-left: 3px solid var(--ink);
  z-index: 700;
  transition: right 0.4s cubic-bezier(0.77,0,0.175,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(26,20,16,0.15);
}
#cart-sidebar.open { right: 0; }
.cart-header {
  padding: 24px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-title { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; }
.cart-close {
  width: 36px; height: 36px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: var(--cream);
  box-shadow: 2px 2px 0 var(--ink);
  transition: all 0.15s;
}
.cart-close:hover { background: var(--brick); color: var(--chalk); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: flex; gap: 12px;
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  padding: 12px;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
}
.cart-item-img { width: 80px; height: 80px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid var(--concrete); flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cart-item-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cart-item-price { font-family: var(--font-display); font-size: 22px; color: var(--brick); }
.cart-item-remove { font-size: 16px; color: var(--muted); transition: color 0.2s; }
.cart-item-remove:hover { color: var(--brick); }
.cart-footer {
  padding: 20px 24px;
  border-top: 2px solid var(--ink);
  background: var(--chalk);
}
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-subtotal-label { font-family: var(--font-ui); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.cart-subtotal-val { font-family: var(--font-display); font-size: 32px; color: var(--brick); }
.checkout-btn { width: 100%; justify-content: center; }
.cart-empty-msg { text-align: center; padding: 40px; color: var(--muted); font-size: 14px; }
.cart-empty-emoji { font-size: 48px; margin-bottom: 12px; }

/* ========================
   SELL PAGE
   ======================== */
#sell-page { padding: 120px 0 80px; }
.sell-form-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.form-section { margin-bottom: 40px; }
.form-section-title {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--concrete);
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink);
}
.form-label .required { color: var(--brick); }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--chalk);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--concrete);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--saffron); box-shadow: 3px 3px 0 var(--saffron); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.photo-upload-zone {
  border: 3px dashed var(--concrete);
  border-radius: var(--r-md);
  padding: 48px 24px;
  text-align: center;
  cursor: none;
  transition: border-color 0.2s, background 0.2s;
}
.photo-upload-zone:hover { border-color: var(--saffron); background: var(--cream); }
.upload-icon { font-size: 40px; margin-bottom: 12px; }
.upload-text { font-family: var(--font-ui); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.upload-sub { font-size: 12px; color: var(--muted); }
.photo-previews { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.photo-preview {
  width: 90px; height: 90px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  overflow: hidden;
  position: relative;
  box-shadow: 3px 3px 0 var(--ink);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview-remove {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px;
  background: var(--brick);
  color: var(--chalk);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  border: 1.5px solid var(--chalk);
}

/* ========================
   AUTH MODAL
   ======================== */
#auth-modal {
  position: fixed; inset: 0;
  z-index: 800;
  display: none;
  align-items: center;
  justify-content: center;
}
#auth-modal.open { display: flex; }
.auth-backdrop {
  position: absolute; inset: 0;
  background: rgba(26,20,16,0.7);
}
.auth-box {
  position: relative;
  background: var(--chalk);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 10px 10px 0 var(--saffron);
  z-index: 1;
}
.auth-logo { font-family: var(--font-display); font-size: 32px; text-align: center; margin-bottom: 8px; }
.auth-tagline { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.auth-tabs { display: flex; border-bottom: 2px solid var(--ink); margin-bottom: 28px; }
.auth-tab {
  flex: 1;
  padding: 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  color: var(--muted);
}
.auth-tab.active { border-bottom-color: var(--saffron); color: var(--ink); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-divider { text-align: center; font-size: 12px; color: var(--muted); margin: 20px 0; position: relative; }
.auth-divider::before,
.auth-divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--concrete); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.social-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; border: 2px solid var(--ink); border-radius: var(--r-sm);
  background: var(--chalk); font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  box-shadow: 2px 2px 0 var(--ink); transition: all 0.2s;
}
.social-btn:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.auth-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 2px 2px 0 var(--ink);
  background: var(--cream);
  transition: all 0.2s;
}
.auth-close:hover { background: var(--brick); color: var(--chalk); }

/* ========================
   CHECKOUT PAGE
   ======================== */
#checkout-page { padding: 120px 0 80px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.checkout-order-summary {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: sticky; top: 100px;
}
.summary-title { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; margin-bottom: 20px; }
.summary-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.summary-item { display: flex; gap: 12px; align-items: center; }
.summary-item-img { width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid var(--concrete); flex-shrink: 0; }
.summary-item-img img { width: 100%; height: 100%; object-fit: cover; }
.summary-item-name { font-size: 13px; font-weight: 600; flex: 1; }
.summary-item-price { font-family: var(--font-display); font-size: 20px; color: var(--brick); }
.summary-totals { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; }
.summary-row.total { font-family: var(--font-display); font-size: 28px; border-top: 2px dashed var(--concrete); padding-top: 12px; margin-top: 4px; }

/* ========================
   PROFILE / DASHBOARD
   ======================== */
#profile-page { padding: 120px 0 80px; }
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.profile-sidebar {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: sticky; top: 100px;
}
.profile-avatar-section {
  background: var(--saffron);
  padding: 32px;
  text-align: center;
  border-bottom: 2px solid var(--ink);
}
.profile-avatar {
  width: 80px; height: 80px;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 0 auto 12px;
}
.profile-name { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; }
.profile-handle { font-size: 12px; color: var(--ink); opacity: 0.7; }
.profile-nav { list-style: none; padding: 16px 0; }
.profile-nav li a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: all 0.2s;
}
.profile-nav li a:hover,
.profile-nav li a.active { background: var(--saffron); color: var(--ink); }
.profile-content {}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.dash-stat-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}
.dash-stat-num { font-family: var(--font-display); font-size: 40px; color: var(--brick); line-height: 1; }
.dash-stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }

/* ========================
   ABOUT PAGE
   ======================== */
#about-page { padding: 120px 0 80px; }
.about-manifesto {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-big {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.manifesto-big .scratch {
  position: relative;
  display: inline-block;
}
.manifesto-big .scratch::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 48%;
  height: 5px;
  background: var(--brick);
  transform: rotate(-2deg);
}
.wall-section {
  background: var(--ink);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.wall-text {
  font-family: var(--font-hand);
  font-size: clamp(28px, 5vw, 52px);
  color: var(--cream);
  text-align: center;
  line-height: 1.5;
  position: relative; z-index: 1;
}
.wall-text .spray { color: var(--saffron); }
.wall-graffiti {
  position: absolute;
  font-family: var(--font-hand);
  opacity: 0.07;
  font-size: clamp(60px, 15vw, 200px);
  color: var(--saffron);
  white-space: nowrap;
  user-select: none;
}
.wg-1 { top: -10px; left: -20px; transform: rotate(-8deg); }
.wg-2 { bottom: -20px; right: -10px; transform: rotate(5deg); }

/* ========================
   FOOTER
   ======================== */
#footer {
  background: var(--ink);
  border-top: 3px solid var(--saffron);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-logo { font-family: var(--font-display); font-size: 36px; color: var(--cream); margin-bottom: 16px; }
.footer-brand-logo .accent { color: var(--saffron); }
.footer-tagline { font-size: 14px; color: var(--concrete); line-height: 1.65; max-width: 280px; }
.footer-col-title { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--saffron); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--concrete); transition: color 0.2s; }
.footer-links a:hover { color: var(--saffron); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(200,191,176,0.5); }
.footer-socials { display: flex; gap: 12px; }
.footer-social {
  width: 36px; height: 36px;
  border: 2px solid rgba(200,191,176,0.2);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--concrete);
  transition: all 0.2s;
}
.footer-social:hover { border-color: var(--saffron); color: var(--saffron); background: rgba(232,135,26,0.1); }

/* ========================
   TOAST
   ======================== */
#toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 900; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  background: var(--ink);
  color: var(--cream);
  padding: 14px 24px;
  border: 2px solid var(--saffron);
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 4px 4px 0 var(--saffron);
  animation: toastIn 0.3s ease forwards;
  white-space: nowrap;
}
.toast.removing { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes toastOut { from{transform:translateY(0);opacity:1} to{transform:translateY(-20px);opacity:0} }

/* ========================
   PAGE TRANSITIONS
   ======================== */
.page { display: none; }
.page.active { display: block; animation: pageFadeIn 0.4s ease; }
@keyframes pageFadeIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* ========================
   SCROLL ANIMATIONS
   ======================== */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* ========================
   RESPONSIVE
   ======================== */
@media(max-width:1100px) {
  .products-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hiw-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .sell-banner-inner { grid-template-columns: 1fr; }
  .sell-visual { display: none; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
}
@media(max-width:600px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .display-xl { font-size: clamp(56px, 20vw, 120px); }
}

/* ---- PROFILE TABS ---- */
.profile-tab { display: none; }
.profile-tab.active { display: block; animation: pageFadeIn 0.3s ease; }

.profile-nav li a.active {
  background: var(--saffron);
  color: var(--ink);
}

/* Orders list */
.order-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.order-id {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.order-status {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.status-confirmed { background: var(--saffron); }
.status-delivered { background: var(--olive); color: var(--chalk); }
.status-cancelled { background: var(--brick); color: var(--chalk); }
.order-item-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.order-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid var(--concrete);
  flex-shrink: 0;
}
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-name { font-weight: 600; font-size: 14px; }
.order-item-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.order-item-price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brick);
  margin-left: auto;
}