/* ============================================================
   NITEC — Brutalist Street Market
   Theme:   White/black base · acid lime #CAFF00 · coral #FF4A1C
   Fonts:   Bricolage Grotesque (display) · DM Mono (prices) · Outfit (body)
   Layout:  Fixed topbar · sidebar + product grid
   Signature: Inverted hover on product cards · CSS-pattern thumbnails
   Built by NexKeys Agency
   ============================================================ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --black:       #0A0A0A;
  --white:       #FFFFFF;
  --off-white:   #F7F7F3;
  --lime:        #CAFF00;
  --lime-dim:    rgba(202,255,0,0.15);
  --coral:       #FF4A1C;
  --coral-dim:   rgba(255,74,28,0.12);
  --muted:       #888;
  --muted-2:     #BBB;
  --border:      #E5E5E5;
  --border-dark: #222;

  /* Dark mode overrides via .dark class on body */
  --bg:          var(--white);
  --bg-2:        var(--off-white);
  --bg-card:     var(--white);
  --text:        var(--black);
  --text-2:      #444;
  --text-3:      var(--muted);
  --bd:          var(--border);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
  --font-body:    'Outfit', system-ui, sans-serif;

  --topbar-h:    64px;
  --sidebar-w:   230px;
  --r:           10px;
  --r-sm:        6px;
  --r-pill:      100px;

  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back:   cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.14);
}

/* ── DARK MODE ───────────────────────────────────────────── */
body.dark {
  --bg:       #0d0d0d;
  --bg-2:     #161616;
  --bg-card:  #141414;
  --text:     #F2F2F2;
  --text-2:   #AAAAAA;
  --text-3:   #666;
  --bd:       #2a2a2a;
  --border-dark: #444;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  overflow-x: hidden;
  cursor: none;
}
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { border: none; font-family: inherit; cursor: none; }
img { display: block; max-width: 100%; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.15; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 3px; }

.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* ── CURSOR ──────────────────────────────────────────────── */
.cursor {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, background .15s;
}
.cursor-ring {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--black); position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .1s linear, width .25s var(--ease), height .25s var(--ease), border-color .2s;
}
body.dark .cursor-ring { border-color: rgba(255,255,255,.4); }
body.cursor-hover .cursor { width: 14px; height: 14px; background: var(--coral); }
body.cursor-hover .cursor-ring { width: 44px; height: 44px; border-color: var(--lime); }
@media (hover:none),(pointer:coarse) {
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
}

/* ── TOPBAR ──────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 2px solid var(--black);
  transition: background .3s;
}
body.dark .topbar { border-bottom-color: var(--bd); }

.mob-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; background: none;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.mob-menu-btn span { display: block; width: 18px; height: 2px; background: var(--text); transition: all .3s var(--ease); }
.mob-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mob-menu-btn.open span:nth-child(2) { opacity: 0; }
.mob-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Brand */
.brand {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900;
  color: var(--text); text-transform: uppercase;
  letter-spacing: -.02em; white-space: nowrap; flex-shrink: 0;
}
.brand-k { color: var(--lime); background: var(--black); padding: 0 3px; }
body.dark .brand-k { background: var(--lime); color: var(--black); }
.brand-dot { color: var(--coral); font-size: 14px; margin-left: 2px; }

/* Search */
.search-wrap {
  flex: 1; max-width: 480px;
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--black); border-radius: 0;
  padding: 9px 14px;
  background: var(--bg-2);
  transition: border-color .2s, background .2s;
}
body.dark .search-wrap { border-color: var(--bd); }
.search-wrap:focus-within { border-color: var(--lime); background: var(--bg); }
.search-icon { color: var(--text-3); flex-shrink: 0; }
.search-wrap input { flex: 1; border: none; background: none; outline: none; font-family: var(--font-body); font-size: 14px; color: var(--text); min-width: 0; }
.search-wrap input::placeholder { color: var(--text-3); }
.search-clear { background: none; color: var(--text-3); font-size: 12px; padding: 0 2px; transition: color .2s; }
.search-clear:hover { color: var(--coral); }
.search-clear[hidden] { display: none; }

/* Topbar right */
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tb-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 2px solid var(--bd);
  color: var(--text-2); position: relative;
  transition: background .2s, border-color .2s, color .2s;
}
.tb-btn:hover { background: var(--black); color: var(--lime); border-color: var(--black); }
body.dark .tb-btn:hover { background: var(--lime); color: var(--black); border-color: var(--lime); }

/* Moon/sun toggle */
.icon-moon { display: none; }
body.dark .icon-sun  { display: none; }
body.dark .icon-moon { display: block; }

.cart-badge {
  position: absolute; top: -5px; right: -5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--coral); color: #fff;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
  transition: transform .3s var(--ease-back);
}
.cart-badge.pop { animation: pop .35s var(--ease-back); }
@keyframes pop { 0%,100%{transform:scale(1)} 50%{transform:scale(1.5)} }
.cart-badge[hidden] { display: none; }

/* ── PAGE LAYOUT ─────────────────────────────────────────── */
.page-layout {
  display: flex;
  margin-top: var(--topbar-h);
  min-height: calc(100svh - var(--topbar-h));
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  border-right: 2px solid var(--black);
  position: sticky; top: var(--topbar-h);
  height: calc(100svh - var(--topbar-h));
  overflow-y: auto; overflow-x: hidden;
  background: var(--bg-2);
  transition: background .3s, border-color .3s;
}
body.dark .sidebar { border-right-color: var(--bd); }
.sidebar-inner { padding: 24px 20px 40px; }

.sidebar-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 12px; display: block;
}

/* Category list */
.sidebar ul { display: flex; flex-direction: column; gap: 3px; }
.sidebar ul li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--text-2);
  border: 1.5px solid transparent;
  cursor: none;
  transition: background .18s, color .18s, border-color .18s;
  position: relative; overflow: hidden;
}
.sidebar ul li::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--lime); transform: scaleY(0);
  transition: transform .2s var(--ease);
}
.sidebar ul li:hover { background: var(--bg); color: var(--text); border-color: var(--bd); }
.sidebar ul li:hover::before { transform: scaleY(1); }
.sidebar ul li.active { background: var(--black); color: var(--lime); border-color: var(--black); font-weight: 700; }
body.dark .sidebar ul li.active { background: var(--lime); color: var(--black); border-color: var(--lime); }
.sidebar ul li.active::before { transform: scaleY(0); }

.cat-count {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--bg); border: 1px solid var(--bd);
  padding: 1px 6px; border-radius: 3px; color: var(--text-3);
}
.sidebar ul li.active .cat-count { background: rgba(202,255,0,.15); border-color: var(--lime); color: var(--lime); }
body.dark .sidebar ul li.active .cat-count { background: rgba(0,0,0,.2); border-color: rgba(0,0,0,.3); color: var(--black); }

/* Price filter */
.price-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.price-btn {
  padding: 5px 10px; font-family: var(--font-mono); font-size: 11px;
  background: none; border: 1.5px solid var(--bd); color: var(--text-2);
  transition: all .18s;
}
.price-btn:hover  { border-color: var(--black); color: var(--text); }
.price-btn.active { background: var(--black); border-color: var(--black); color: var(--lime); }
body.dark .price-btn.active { background: var(--lime); border-color: var(--lime); color: var(--black); }

/* Sort */
.sort-select {
  width: 100%; padding: 9px 12px;
  font-family: var(--font-body); font-size: 13px;
  background: var(--bg); color: var(--text);
  border: 1.5px solid var(--bd); outline: none;
  cursor: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
  transition: border-color .2s;
}
.sort-select:focus { border-color: var(--lime); }

/* Sidebar footer */
.sidebar-footer {
  margin-top: 32px; padding: 16px; background: var(--lime);
  font-size: 13px; font-weight: 500; color: var(--black);
  line-height: 1.6;
}
.sidebar-footer strong { font-weight: 700; }

/* ── MAIN CONTENT ────────────────────────────────────────── */
.main-content { flex: 1; min-width: 0; padding: 28px 28px 60px; }

/* ── HERO BANNER ─────────────────────────────────────────── */
.hero-banner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: center;
  background: var(--black); color: var(--white);
  border: 2px solid var(--black);
  padding: 40px 40px 40px 36px;
  margin-bottom: 28px;
  position: relative; overflow: hidden;
}
body.dark .hero-banner { background: var(--bg-2); color: var(--text); border-color: var(--bd); }

.hero-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--lime); display: block; margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900; line-height: 1.0; text-transform: uppercase;
  color: var(--white);
}
body.dark .hero-title { color: var(--text); }
.hero-title em { font-style: italic; color: var(--lime); }
.hero-sub {
  font-size: 14px; color: rgba(255,255,255,.65);
  margin: 14px 0 24px; max-width: 360px; line-height: 1.6;
}
body.dark .hero-sub { color: var(--text-2); }

.btn-hero {
  display: inline-block; padding: 12px 28px;
  background: var(--lime); color: var(--black);
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
  border: 2px solid var(--lime);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn-hero:hover { background: transparent; color: var(--lime); transform: translateY(-2px); }

/* Hero visual */
.hero-visual { position: relative; width: 140px; height: 140px; flex-shrink: 0; }
.hv-blob {
  position: absolute; border-radius: 50%;
}
.hv-1 { width: 100px; height: 100px; background: var(--lime); top: 10px; left: 10px; }
.hv-2 { width: 60px; height: 60px; background: var(--coral); bottom: 5px; right: 5px; border-radius: 30% 70% 70% 30%; animation: blobPulse 3s ease-in-out infinite; }
@keyframes blobPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1) rotate(10deg)} }
.hv-mark {
  position: absolute; top: 0; right: 0;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  background: var(--coral); color: var(--white); padding: 4px 8px; letter-spacing: .1em;
  animation: spin 8s linear infinite; transform-origin: center;
  z-index: 1;
}
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.hv-price-tag {
  position: absolute; bottom: 8px; left: 8px;
  background: var(--white); color: var(--black);
  font-family: var(--font-mono); font-size: 12px;
  padding: 6px 10px; border: 2px solid var(--black);
  line-height: 1.3; z-index: 1;
}
body.dark .hv-price-tag { background: var(--bg); border-color: var(--bd); color: var(--text); }
.hv-price-tag strong { font-size: 18px; font-weight: 700; display: block; }

/* ── RESULTS BAR ─────────────────────────────────────────── */
.results-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1.5px solid var(--bd);
  flex-wrap: wrap;
}
.rb-count  { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.rb-active-filter {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  background: var(--lime-dim); color: var(--black);
  border: 1px solid var(--lime); padding: 2px 8px; border-radius: 3px;
}
body.dark .rb-active-filter { color: var(--lime); }
.rb-reset {
  margin-left: auto; background: none; font-family: var(--font-mono); font-size: 11px;
  color: var(--coral); cursor: none; transition: opacity .2s;
}
.rb-reset:hover { opacity: .7; }
.rb-reset[hidden] { display: none; }

/* ── PRODUCT GRID ────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px,1fr));
  gap: 18px;
}

/* ── PRODUCT CARD ────────────────────────────────────────── */
.product-card {
  display: flex; flex-direction: column;
  border: 2px solid var(--black);
  background: var(--bg-card);
  transition:
    transform .35s var(--ease),
    box-shadow .35s var(--ease),
    background .25s,
    border-color .25s,
    color .25s;
  position: relative;
  overflow: hidden;
}
body.dark .product-card { border-color: var(--bd); }

.product-card:hover {
  transform: translate(-3px,-4px);
  box-shadow: 6px 8px 0 var(--black);
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
body.dark .product-card:hover {
  background: var(--lime);
  color: var(--black);
  border-color: var(--lime);
  box-shadow: 6px 8px 0 var(--lime);
}

/* Thumb area */
.pc-thumb {
  width: 100%; padding-bottom: 70%;
  background: var(--c1); position: relative; overflow: hidden;
  flex-shrink: 0;
}
.product-card:hover .pc-thumb { filter: brightness(.85); }

/* CSS patterns — no images needed */
.thumb-pattern { position: absolute; inset: 0; opacity: .18; }
.tp-grid {
  background-image:
    linear-gradient(var(--c2) 1px, transparent 1px),
    linear-gradient(90deg, var(--c2) 1px, transparent 1px);
  background-size: 20px 20px;
}
.tp-dots { background-image: radial-gradient(circle, var(--c2) 1.5px, transparent 1.5px); background-size: 14px 14px; }
.tp-lines { background-image: repeating-linear-gradient(-45deg, var(--c2) 0, var(--c2) 1px, transparent 0, transparent 50%); background-size: 14px 14px; }
.tp-chevron {
  background-image: repeating-linear-gradient(45deg, var(--c2) 0, var(--c2) 1px, transparent 1px, transparent 12px),
                    repeating-linear-gradient(-45deg, var(--c2) 0, var(--c2) 1px, transparent 1px, transparent 12px);
}
.tp-cross {
  background-image:
    linear-gradient(var(--c2) 2px, transparent 2px),
    linear-gradient(90deg, var(--c2) 2px, transparent 2px);
  background-size: 24px 24px;
  background-position: center center;
}

/* Gradient overlay on thumb */
.pc-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.3) 0%, transparent 60%);
}

/* Badge */
.pc-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  background: var(--coral); color: var(--white);
  padding: 3px 8px; letter-spacing: .06em; text-transform: uppercase;
}
.pc-badge.new { background: var(--lime); color: var(--black); }

/* Card body */
.pc-body {
  flex: 1; display: flex; flex-direction: column;
  padding: 16px; gap: 4px;
}
.product-card:hover .pc-body { color: var(--white); }
body.dark .product-card:hover .pc-body { color: var(--black); }

.pc-category {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-3);
  transition: color .25s;
}
.product-card:hover .pc-category { color: var(--lime); opacity: .8; }
body.dark .product-card:hover .pc-category { color: rgba(0,0,0,.6); }

.pc-body h4 {
  font-size: 15px; font-weight: 800;
  margin: 2px 0; line-height: 1.2;
  text-transform: uppercase; letter-spacing: -.01em;
}
.pc-desc {
  font-size: 12px; color: var(--text-2); line-height: 1.5;
  flex: 1; margin-top: 3px;
  transition: color .25s;
}
.product-card:hover .pc-desc { color: rgba(255,255,255,.65); }
body.dark .product-card:hover .pc-desc { color: rgba(0,0,0,.6); }

/* Card footer */
.pc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; margin-top: 8px;
  border-top: 1px solid var(--bd);
  transition: border-color .25s;
}
.product-card:hover .pc-footer { border-top-color: rgba(255,255,255,.15); }
body.dark .product-card:hover .pc-footer { border-top-color: rgba(0,0,0,.15); }

.pc-price {
  font-family: var(--font-mono); font-size: 18px; font-weight: 500;
  color: var(--text);
  transition: color .25s;
}
.product-card:hover .pc-price { color: var(--lime); }
body.dark .product-card:hover .pc-price { color: var(--black); font-weight: 700; }
.pc-cents { font-size: 12px; }

/* Add to cart button */
.btn-add {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--black); color: var(--lime);
  font-size: 20px; font-weight: 400; line-height: 1;
  border: none; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .25s var(--ease-back);
}
.btn-add:hover { transform: scale(1.15) rotate(90deg); background: var(--lime); color: var(--black); }
.product-card:hover .btn-add { background: var(--lime); color: var(--black); }
body.dark .product-card:hover .btn-add { background: var(--black); color: var(--lime); }

/* Card reveal animation */
.product-card {
  opacity: 0; transform: translateY(14px);
  animation: cardIn .5s var(--ease) forwards;
}
@keyframes cardIn { to { opacity:1; transform:translateY(0); } }
/* Stagger via nth-child */
.product-card:nth-child(1)  { animation-delay: .04s }
.product-card:nth-child(2)  { animation-delay: .08s }
.product-card:nth-child(3)  { animation-delay: .12s }
.product-card:nth-child(4)  { animation-delay: .16s }
.product-card:nth-child(5)  { animation-delay: .20s }
.product-card:nth-child(6)  { animation-delay: .24s }
.product-card:nth-child(7)  { animation-delay: .28s }
.product-card:nth-child(8)  { animation-delay: .32s }
.product-card:nth-child(9)  { animation-delay: .36s }
.product-card:nth-child(10) { animation-delay: .40s }
.product-card:nth-child(11) { animation-delay: .44s }
.product-card:nth-child(12) { animation-delay: .48s }

/* ── NO RESULTS ──────────────────────────────────────────── */
.no-results {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 80px 24px; text-align: center;
  border: 2px dashed var(--bd);
}
.no-results[hidden] { display: none; }
.nr-icon { font-size: 48px; opacity: .25; line-height: 1; }
.no-results h3 { font-size: 22px; font-weight: 900; text-transform: uppercase; }
.no-results p  { font-size: 14px; color: var(--text-3); }
.btn-reset-all {
  margin-top: 8px; padding: 10px 24px;
  background: var(--black); color: var(--lime);
  font-family: var(--font-display); font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn-reset-all:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--lime); }

/* ── LOAD MORE ───────────────────────────────────────────── */
.load-more-bar {
  display: flex; align-items: center; gap: 16px;
  margin-top: 36px;
}
.lm-line { flex: 1; height: 2px; background: var(--bd); }
.btn-load-more {
  padding: 10px 28px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  background: none; color: var(--text-2);
  border: 2px solid var(--bd); white-space: nowrap;
  transition: all .2s;
}
.btn-load-more:hover { border-color: var(--black); color: var(--text); background: var(--black); color: var(--lime); }
body.dark .btn-load-more:hover { background: var(--lime); color: var(--black); border-color: var(--lime); }

/* ── CART DRAWER ─────────────────────────────────────────── */
.cart-overlay {
  display: none; position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,.5); backdrop-filter: blur(2px);
}
.cart-overlay.active { display: block; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 700;
  width: 360px; max-width: 100vw;
  background: var(--bg); border-left: 2px solid var(--black);
  display: flex; flex-direction: column;
  transform: translateX(110%);
  transition: transform .4s var(--ease);
}
body.dark .cart-drawer { border-left-color: var(--bd); }
.cart-drawer:not([hidden]) { transform: translateX(0); }
.cart-drawer[hidden] { display: flex !important; visibility: hidden; }
.cart-drawer.open { visibility: visible; }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 2px solid var(--black);
  flex-shrink: 0;
}
body.dark .cart-header { border-bottom-color: var(--bd); }
.cart-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .02em;
  display: flex; align-items: center; gap: 10px;
}
.cart-count-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--text-3); text-transform: none; font-style: normal;
  font-weight: 400;
}
.cart-close {
  width: 34px; height: 34px; background: none;
  border: 1.5px solid var(--bd); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.cart-close:hover { background: var(--coral); border-color: var(--coral); color: #fff; }

.cart-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 60px 0; text-align: center; }
.ce-icon { font-size: 40px; }
.cart-empty p { font-weight: 700; font-size: 16px; }
.cart-empty span { font-size: 13px; color: var(--text-3); }
.cart-items { display: flex; flex-direction: column; gap: 12px; }

/* Cart item */
.cart-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; border: 1.5px solid var(--bd);
  position: relative; animation: slideIn .3s var(--ease);
}
@keyframes slideIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:none} }

.ci-color {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--black);
}
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.ci-price { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-top: 3px; }
.ci-qty {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}
.ci-qty-btn {
  width: 22px; height: 22px; background: var(--bg-2);
  border: 1px solid var(--bd); font-size: 14px;
  display: flex; align-items: center; justify-content: center; color: var(--text);
  transition: all .15s;
}
.ci-qty-btn:hover { background: var(--black); color: var(--lime); border-color: var(--black); }
.ci-qty-num { font-family: var(--font-mono); font-size: 13px; min-width: 20px; text-align: center; }
.ci-remove {
  position: absolute; top: 8px; right: 8px;
  background: none; font-size: 12px; color: var(--text-3);
  transition: color .2s;
}
.ci-remove:hover { color: var(--coral); }

.cart-footer { padding: 16px 22px 24px; border-top: 2px solid var(--black); flex-shrink: 0; }
body.dark .cart-footer { border-top-color: var(--bd); }
.cart-footer[hidden] { display: none; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 700; font-size: 15px; }
.ct-price { font-family: var(--font-mono); font-size: 20px; color: var(--lime); background: var(--black); padding: 2px 10px; }
body.dark .ct-price { background: var(--lime); color: var(--black); }
.btn-checkout {
  width: 100%; padding: 14px;
  background: var(--black); color: var(--lime);
  font-family: var(--font-display); font-size: 16px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 8px;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn-checkout:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--lime); }
body.dark .btn-checkout { background: var(--lime); color: var(--black); }
body.dark .btn-checkout:hover { box-shadow: 4px 4px 0 var(--black); }
.btn-clear { background: none; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); width: 100%; text-align: center; padding: 4px 0; transition: color .2s; }
.btn-clear:hover { color: var(--coral); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 20px 28px;
  border-top: 2px solid var(--black);
  background: var(--bg-2);
  font-size: 13px;
}
body.dark .site-footer { border-top-color: var(--bd); }
.sf-brand { font-family: var(--font-display); font-size: 16px; font-weight: 900; text-transform: uppercase; margin-right: 8px; }
.sf-tagline { color: var(--text-3); font-family: var(--font-mono); font-size: 11px; }
.sf-links { display: flex; gap: 18px; }
.sf-links a { font-size: 12px; color: var(--text-2); transition: color .2s; }
.sf-links a:hover { color: var(--text); }
.sf-credit { font-size: 12px; color: var(--text-3); }
.nk-link { color: var(--coral); font-weight: 600; transition: opacity .2s; }
.nk-link:hover { opacity: .75; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --sidebar-w: 200px; }
}

@media (max-width: 860px) {
  :root { --sidebar-w: 260px; }

  .page-layout { position: relative; }

  .sidebar {
    position: fixed; top: var(--topbar-h); left: 0; bottom: 0;
    z-index: 300; height: calc(100svh - var(--topbar-h));
    transform: translateX(-110%);
    transition: transform .35s var(--ease), box-shadow .35s;
    border-right: 2px solid var(--black);
  }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,.2); }
  body.dark .sidebar { border-right-color: var(--bd); }

  .main-content { padding: 20px 16px 48px; }
  .mob-menu-btn { display: flex; }
  .topbar { gap: 10px; padding: 0 14px; }
}

@media (max-width: 600px) {
  .hero-banner { grid-template-columns: 1fr; }
  .hero-visual  { display: none; }
  .hero-title   { font-size: 40px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cart-drawer  { width: 100vw; }
  .topbar-right .tb-btn:first-child { display: none; } /* hide theme toggle on very small */
  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .search-wrap  { max-width: calc(100vw - 140px); }
}

/* ── PRINT ───────────────────────────────────────────────── */
@media print {
  .topbar, .sidebar, .cursor, .cursor-ring { display: none; }
  .main-content { padding: 20px; }
  .product-card { break-inside: avoid; }
}

/* ── MOTION REDUCE ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cursor, .cursor-ring { display: none; }
}