/* ============================================
   TemplateZone v2 — Marketplace × Tech UI
   Layered ON TOP of existing style.css + public.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --code-bg: #0d1421;
  --code-fg: #7dd3fc;
  --neon: #38bdf8;
  --grid-line: rgba(56,189,248,.07);
}

[data-theme="dark"] {
  --code-bg: #060b18;
  --grid-line: rgba(56,189,248,.05);
}

/* ============= TERMINAL HERO ============= */

.tz-hero {
  position: relative;
  padding: 70px 0 100px;
  overflow: hidden;
}
.tz-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  z-index: -1;
}
.tz-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 968px) { .tz-hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.tz-hero-content .tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(56,189,248,.1);
  border: 1px solid rgba(56,189,248,.3);
  border-radius: 100px;
  color: var(--sky-500);
  font-family: var(--font-mono);
  font-size: .8rem;
  margin-bottom: 24px;
}
.tz-hero-content .tag::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.2);
  animation: pulse-dot-tz 2s infinite;
}
@keyframes pulse-dot-tz {
  0%,100% { box-shadow: 0 0 0 4px rgba(16,185,129,.2); }
  50% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}
.tz-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 22px;
}
.tz-hero h1 .grad {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8 50%, #06b6d4);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tz-hero h1 .typed { color: var(--sky-500); border-right: 3px solid var(--sky-500); animation: blink 1s infinite; padding-right: 2px; }
@keyframes blink { 50% { border-color: transparent; } }
.tz-hero p.lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 560px;
}
.tz-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.search-mega {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 6px 6px 22px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 50px rgba(14,165,233,.12);
  max-width: 540px;
}
.search-mega i { color: var(--sky-500); }
.search-mega input {
  flex: 1; border: none; background: transparent;
  padding: 16px 0;
  font-size: 1rem; color: var(--text);
  outline: none;
  font-family: var(--font-body);
}
.search-mega button {
  background: var(--grad);
  color: #fff; border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600; cursor: pointer;
}

.popular-tags {
  margin-top: 18px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.popular-tags span { color: var(--text-soft); font-size: .85rem; }
.popular-tags a {
  font-family: var(--font-mono);
  font-size: .8rem;
  padding: 4px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  transition: all .2s;
}
.popular-tags a:hover { border-color: var(--sky-400); color: var(--sky-500); }

/* Code window in hero */
.code-window {
  background: var(--code-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(14,165,233,.25),
    0 0 0 1px rgba(56,189,248,.15);
  position: relative;
  transform: perspective(800px) rotateY(-3deg) rotateX(2deg);
  transition: transform .5s;
}
.code-window:hover { transform: perspective(800px) rotateY(0) rotateX(0); }
.code-window-bar {
  background: rgba(255,255,255,.04);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.code-window-bar .dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.code-window-bar .dot.r { background: #ff5f57; }
.code-window-bar .dot.y { background: #ffbd2e; }
.code-window-bar .dot.g { background: #28ca42; }
.code-window-bar .file {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.code-window pre {
  margin: 0; padding: 24px;
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.7;
  color: #e0f2fe;
  overflow: auto;
  max-height: 360px;
}
.code-window .kw  { color: #c084fc; }
.code-window .str { color: #86efac; }
.code-window .com { color: #64748b; font-style: italic; }
.code-window .fn  { color: #fbbf24; }
.code-window .num { color: #f97316; }

.live-stat-pill {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 14px;
  display: flex; gap: 12px; align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  font-size: .85rem;
  animation: bobUp 4s ease-in-out infinite;
}
@keyframes bobUp { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.live-stat-pill.left  { top: 10%;  left: -30px; animation-delay: 0s; }
.live-stat-pill.right { bottom: 15%; right: -20px; animation-delay: 1.5s; }
.live-stat-pill .icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ============= TRUST STRIP ============= */

.trust-strip {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust-row {
  display: flex; gap: 50px; align-items: center;
  justify-content: center; flex-wrap: wrap;
  opacity: .65;
}
.trust-row .tech-icon {
  font-size: 2rem;
  color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: all .2s;
}
.trust-row .tech-icon span {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-soft);
}
.trust-row .tech-icon:hover { opacity: 1; transform: translateY(-3px); color: var(--sky-500); }

/* ============= STATS COUNTER ============= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px 0;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: all .3s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(56,189,248,.1), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.stat-card:hover { transform: translateY(-6px); border-color: var(--sky-400); }
.stat-card:hover::before { opacity: 1; }
.stat-card .icon-big {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14,165,233,.15), rgba(56,189,248,.1));
  display: flex; align-items: center; justify-content: center;
  color: var(--sky-500);
  font-size: 1.5rem;
}
.stat-card .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-card .label {
  color: var(--text-soft);
  font-size: .9rem;
  margin-top: 8px;
  font-family: var(--font-mono);
  letter-spacing: .02em;
}

/* ============= SECTION HEADERS ============= */

.tz-section { padding: 80px 0; }
.tz-section.alt { background: var(--bg-soft); }

.tz-section-head {
  display: flex;
  align-items: end; justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}
.tz-section-head .left h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.tz-section-head .left h2::before {
  content: '// ';
  font-family: var(--font-mono);
  color: var(--sky-500);
  font-weight: 400;
}
.tz-section-head .left p { color: var(--text-soft); }
.tz-section-head .right a {
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--sky-500);
  display: inline-flex; align-items: center; gap: 6px;
}
.tz-section-head .right a:hover { gap: 10px; transition: gap .2s; }

/* ============= PRODUCT CARDS — MARKETPLACE STYLE ============= */

.tz-prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.tz-prod {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .3s;
  display: flex; flex-direction: column;
}
.tz-prod:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(14,165,233,.15);
  border-color: var(--sky-300);
}
.tz-prod-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--sky-100), var(--sky-200));
  overflow: hidden;
}
[data-theme="dark"] .tz-prod-img { background: linear-gradient(135deg, #0c4a6e, #0369a1); }
.tz-prod-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.tz-prod:hover .tz-prod-img img { transform: scale(1.06); }
.tz-prod-img .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 3rem;
}
.tz-prod-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,22,40,.95) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
  display: flex; flex-direction: column; justify-content: end;
  padding: 16px;
}
.tz-prod:hover .tz-prod-overlay { opacity: 1; }
.tz-prod-overlay .actions { display: flex; gap: 8px; }
.tz-prod-overlay .actions a {
  flex: 1;
  padding: 8px 14px;
  background: rgba(255,255,255,.95);
  color: var(--sky-700);
  border-radius: 8px;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.tz-prod-overlay .actions a:hover { background: #fff; transform: translateY(-2px); }

.tz-prod-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px;
}
.tz-badge {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: .68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: .03em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.tz-badge.hot { background: rgba(239,68,68,.95); color: #fff; }
.tz-badge.new { background: rgba(16,185,129,.95); color: #fff; }
.tz-badge.sale { background: rgba(249,115,22,.95); color: #fff; }
.tz-badge.bestseller { background: rgba(251,191,36,.95); color: #422006; }

.tz-prod-fav {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all .2s;
}
.tz-prod-fav:hover { color: #ef4444; transform: scale(1.1); }

.tz-prod-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.tz-prod-cat {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--sky-500);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.tz-prod-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.tz-prod-tech {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.tz-prod-tech span {
  font-family: var(--font-mono);
  font-size: .68rem;
  padding: 2px 8px;
  background: var(--bg-soft);
  border-radius: 4px;
  color: var(--text-soft);
}
.tz-prod-meta {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-soft);
  font-size: .78rem;
  margin-bottom: 14px;
}
.tz-prod-meta i { color: var(--sky-400); }

.tz-prod-foot {
  display: flex; justify-content: space-between; align-items: end;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  margin-top: auto;
}
.tz-prod-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--sky-600);
}
.tz-prod-price small {
  font-size: .8rem;
  text-decoration: line-through;
  color: var(--text-soft);
  font-weight: 400;
  margin-right: 6px;
}
[data-theme="dark"] .tz-prod-price { color: var(--sky-400); }

/* ============= FLASH SALE BAR ============= */

.flash-bar {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 50%, #fbbf24 100%);
  border-radius: 24px;
  padding: 30px 40px;
  color: #fff;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 28px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(239,68,68,.3);
  position: relative;
  overflow: hidden;
}
.flash-bar::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 100% 0%, rgba(255,255,255,.2), transparent 50%);
}
@media (max-width: 768px) { .flash-bar { grid-template-columns: 1fr; gap: 16px; padding: 24px; text-align: center; } }
.flash-bar .icon-bolt {
  font-size: 3rem;
  animation: spinSlow 4s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.flash-bar .info h3 { font-size: 1.4rem; margin-bottom: 4px; }
.flash-bar .info p { opacity: .9; font-size: .9rem; }
.flash-bar .countdown-grid {
  display: flex; gap: 8px;
  font-family: var(--font-mono);
}
.flash-bar .countdown-grid div {
  background: rgba(255,255,255,.18);
  padding: 12px 14px;
  border-radius: 10px;
  text-align: center;
  min-width: 60px;
  backdrop-filter: blur(10px);
}
.flash-bar .countdown-grid .num {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.flash-bar .countdown-grid .lbl {
  font-size: .65rem;
  opacity: .85;
  text-transform: uppercase;
  margin-top: 2px;
}
.flash-bar .btn-big {
  padding: 14px 28px;
  background: #fff;
  color: #ef4444;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
}
.flash-bar .btn-big:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,.2); }

/* ============= BUNDLES ============= */

.bundles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.bundle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all .3s;
}
.bundle-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(14,165,233,.18); }
.bundle-card .ribbon {
  position: absolute;
  top: 14px; right: -34px;
  padding: 4px 40px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  transform: rotate(35deg);
}
.bundle-card .imgs {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
  height: 180px;
  background: var(--bg-soft);
}
.bundle-card .imgs > div:nth-child(1) { grid-row: 1 / 3; }
.bundle-card .imgs > div {
  background: linear-gradient(135deg, var(--sky-200), var(--sky-300));
  background-size: cover; background-position: center;
}
.bundle-card .body { padding: 22px; }
.bundle-card .body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.bundle-card .body p { color: var(--text-soft); font-size: .88rem; margin-bottom: 14px; }
.bundle-card .meta { display: flex; gap: 14px; font-size: .8rem; color: var(--text-soft); margin-bottom: 16px; }
.bundle-card .meta i { color: var(--sky-500); }
.bundle-card .price-row {
  display: flex; align-items: end; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.bundle-card .price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sky-600);
}
.bundle-card .price small {
  font-size: .85rem; text-decoration: line-through; color: var(--text-soft);
  font-weight: 400; margin-right: 8px;
}
.bundle-card .savings {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: #10b981;
  background: rgba(16,185,129,.1);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ============= LIVE ACTIVITY FEED ============= */

.live-feed {
  position: fixed;
  bottom: 100px; left: 30px;
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex; gap: 12px; align-items: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
  max-width: 320px;
  font-size: .85rem;
  transform: translateX(-110%);
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.live-feed.show { transform: translateX(0); }
.live-feed .dot {
  width: 10px; height: 10px;
  background: #10b981;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(16,185,129,.2);
  animation: pulse-dot-tz 2s infinite;
}
.live-feed .text { color: var(--text); line-height: 1.4; }
.live-feed .text strong { color: var(--sky-500); }
.live-feed .text small { color: var(--text-soft); display: block; margin-top: 2px; font-family: var(--font-mono); font-size: .7rem; }
.live-feed .close-x {
  margin-left: auto;
  background: none; border: none;
  color: var(--text-soft); cursor: pointer;
  font-size: 1rem;
}
@media (max-width: 768px) { .live-feed { bottom: 165px; left: 12px; right: 12px; max-width: none; } }

/* ============= CTA BANNER ============= */

.cta-banner {
  position: relative;
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0284c7 100%);
  border-radius: 28px;
  padding: 70px 50px;
  margin: 80px 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(56,189,248,.4), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(125,211,252,.3), transparent 50%);
}
.cta-banner::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .pre {
  font-family: var(--font-mono);
  font-size: .85rem;
  opacity: .9;
  margin-bottom: 14px;
}
.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.cta-banner p {
  font-size: 1.1rem;
  opacity: .9;
  max-width: 580px;
  margin: 0 auto 32px;
}
.cta-banner .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-banner .btn-light {
  background: #fff; color: var(--sky-700);
  padding: 14px 30px; border-radius: 12px; font-weight: 700; text-decoration: none;
  transition: all .2s;
}
.cta-banner .btn-light:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0,0,0,.25); }
.cta-banner .btn-outline-light {
  background: transparent; color: #fff;
  padding: 14px 30px; border-radius: 12px; font-weight: 700; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.4);
  transition: all .2s;
}
.cta-banner .btn-outline-light:hover { background: rgba(255,255,255,.1); }

/* ============= CATEGORY GRID — TECH STYLE ============= */

.tech-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.tech-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 18px;
  text-align: center;
  transition: all .3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}
.tech-cat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.tech-cat:hover { transform: translateY(-4px); border-color: var(--sky-300); }
.tech-cat:hover::before { transform: scaleX(1); }
.tech-cat .cat-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(14,165,233,.15), rgba(56,189,248,.05));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sky-500);
  font-size: 1.6rem;
  transition: all .3s;
}
.tech-cat:hover .cat-icon { transform: scale(1.1) rotate(-5deg); }
.tech-cat h4 { font-size: 1rem; margin-bottom: 4px; }
.tech-cat .count {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-soft);
}

/* ============= NAVBAR MEGA ============= */

.tz-navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
[data-theme="dark"] .tz-navbar { background: rgba(10,22,40,.85); }
.tz-nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
}
@media (max-width: 968px) { .tz-nav-inner { grid-template-columns: auto auto; } .tz-nav-search-mid { display: none; } }
.tz-nav-search-mid {
  max-width: 480px; width: 100%;
  position: relative;
}
.tz-nav-search-mid input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: .9rem; color: var(--text);
  transition: all .2s;
}
.tz-nav-search-mid input:focus {
  outline: none; border-color: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(56,189,248,.1);
}
.tz-nav-search-mid i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-soft); font-size: .85rem;
}

/* ============= FOOTER UPGRADE ============= */

.tz-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
  margin-top: 80px;
}
.footer-newsletter {
  background: linear-gradient(135deg, var(--bg-soft), transparent);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 768px) { .footer-newsletter { grid-template-columns: 1fr; } }
.footer-newsletter h3 { font-size: 1.4rem; margin-bottom: 6px; }
.footer-newsletter p { color: var(--text-soft); }
.footer-newsletter form {
  display: flex; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 14px;
  min-width: 380px;
}
@media (max-width: 768px) { .footer-newsletter form { min-width: 0; width: 100%; } }
.footer-newsletter input {
  flex: 1; border: none; background: transparent;
  padding: 10px 14px;
  color: var(--text); outline: none;
  font-size: .9rem;
}
.footer-newsletter button {
  background: var(--grad); color: #fff;
  border: none; padding: 10px 22px;
  border-radius: 10px; cursor: pointer;
  font-weight: 600;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-grid h5::before {
  content: '# ';
  color: var(--sky-500);
}
.footer-grid a {
  display: block;
  color: var(--text-soft);
  margin-bottom: 8px;
  font-size: .9rem;
  transition: all .2s;
}
.footer-grid a:hover { color: var(--sky-500); padding-left: 4px; }
.footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: .85rem;
  flex-wrap: wrap; gap: 12px;
}
.footer-bot .socials { display: flex; gap: 14px; }
.footer-bot .socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  text-decoration: none;
  transition: all .2s;
}
.footer-bot .socials a:hover { background: var(--sky-500); color: #fff; }

/* ============= BROWSE PAGE WITH SIDEBAR FILTERS ============= */

.browse-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
}
@media (max-width: 968px) { .browse-layout { grid-template-columns: 1fr; } }

.browse-filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: sticky; top: 90px;
  height: fit-content;
}
.browse-filters h4 {
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
  margin-top: 20px;
}
.browse-filters h4:first-child { margin-top: 0; }
.browse-filters label {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  font-size: .9rem; color: var(--text-soft);
  cursor: pointer;
}
.browse-filters label:hover { color: var(--text); }
.browse-filters input[type="checkbox"] { accent-color: var(--sky-500); }

.browse-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap; gap: 12px;
}
.browse-toolbar .count {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--text-soft);
}
.browse-toolbar select {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: .85rem;
}

/* ============= PRODUCT DETAIL UPGRADE ============= */

.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-top: 30px;
}
@media (max-width: 968px) { .detail-layout { grid-template-columns: 1fr; } }

.detail-gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.detail-main-img {
  aspect-ratio: 16/10;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.detail-main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs {
  display: flex; gap: 8px;
  padding: 14px;
  overflow-x: auto;
}
.detail-thumbs img {
  width: 80px; height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .65;
  transition: all .2s;
  flex-shrink: 0;
}
.detail-thumbs img:hover, .detail-thumbs img.active {
  border-color: var(--sky-400); opacity: 1;
}

.detail-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  position: sticky; top: 90px;
  height: fit-content;
}
.detail-side .vendor-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--bg-soft);
  border-radius: 100px;
  font-size: .8rem;
  margin-bottom: 14px;
}
.detail-side h1 { font-size: 1.8rem; margin-bottom: 14px; line-height: 1.2; }
.detail-side .price-row {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 20px;
}
.detail-side .price-big {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 800;
  color: var(--sky-600);
}
[data-theme="dark"] .detail-side .price-big { color: var(--sky-400); }
.detail-side .price-row del { color: var(--text-soft); font-size: 1.1rem; }
.detail-side .save-tag {
  background: rgba(16,185,129,.12);
  color: #059669;
  font-family: var(--font-mono);
  font-size: .75rem;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
}
.detail-side .stat-row {
  display: flex; gap: 20px; padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.detail-side .stat-row > div {
  flex: 1; text-align: center;
}
.detail-side .stat-row .v {
  font-weight: 700; font-size: 1.1rem;
  color: var(--sky-500);
}
.detail-side .stat-row .l {
  font-size: .75rem; color: var(--text-soft);
  font-family: var(--font-mono);
}
.detail-side .feature-list { list-style: none; padding: 0; margin: 20px 0; }
.detail-side .feature-list li {
  padding: 6px 0;
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem;
}
.detail-side .feature-list li i { color: #10b981; }

/* ============= UTILITY ============= */
.tz-section h2.center { text-align: center; }
.code-tag {
  font-family: var(--font-mono);
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .85em;
  color: var(--sky-600);
}
