:root {
  --bg: #0f1117;
  --bg-card: #1a1f2e;
  --border: #1e2130;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --accent: #3b82f6;
  --accent-dim: rgba(59,130,246,0.15);
  --green: #10b981;
  --green-dim: rgba(16,185,129,0.15);
  --radius: 12px;
  --nav-h: 60px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6; min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  justify-content: space-between; padding: 0 40px;
  background: rgba(15,17,23,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display:flex; align-items:center; line-height:1; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 13px; transition: color .2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.lang-toggle { color: var(--text-faint); font-size: 12px; cursor: pointer; background: none; border: none; }
.lang-toggle:hover { color: var(--text); }
.cart-btn {
  position: relative; background: none; border: 1px solid var(--border);
  color: var(--text-muted); padding: 7px 14px; border-radius: 8px;
  font-size: 13px; cursor: pointer; transition: border-color .2s;
}
.cart-btn:hover { border-color: var(--accent); color: var(--text); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cart-count.hidden { display: none; }

/* LAYOUT */
.page { padding-top: var(--nav-h); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* BUTTONS */
.btn { display: inline-block; font-size: 14px; font-weight: 600; padding: 11px 24px; border-radius: 8px; border: none; cursor: pointer; transition: opacity .2s; }
.btn:hover { opacity: .85; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* CARDS */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }

/* PRODUCT GRID */
.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }
.product-card-img { width: 100%; height: 200px; object-fit: cover; }
.product-card-body { padding: 16px; }
.product-card-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.product-card-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.product-card-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 18px; font-weight: 800; }

/* BADGES */
.badge { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; margin-bottom: 8px; }
.badge-driver { background: var(--accent-dim); color: var(--accent); }
.badge-physical { background: var(--green-dim); color: var(--green); }

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden; padding: 0 40px;
  background: #080b12;
}
/* Background photo */
.hero-img {
  position: absolute; inset: 0;
  background: url('/assets/hero-bg.jpg') center center / cover no-repeat;
  opacity: .13;
  filter: grayscale(30%);
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from{transform:scale(1.04)} to{transform:scale(1.1)} }
/* Dark vignette over photo */
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 30% 50%, transparent 30%, rgba(8,11,18,.85) 100%),
              linear-gradient(to right, rgba(8,11,18,.6) 0%, transparent 60%);
}
/* Animated grid */
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(59,130,246,.05) 1px,transparent 1px),
              linear-gradient(90deg,rgba(59,130,246,.05) 1px,transparent 1px);
  background-size: 44px 44px;
  animation: gridMove 16s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
}
@keyframes gridMove { to { background-position: 44px 44px; } }
/* Primary glow orb */
.hero-orb {
  position: absolute; top: 10%; right: 5%;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle,rgba(59,130,246,.22) 0%,rgba(59,130,246,.07) 40%,transparent 70%);
  animation: orbPulse 5s ease-in-out infinite;
  pointer-events: none;
}
/* Secondary smaller orb */
.hero-orb2 {
  position: absolute; bottom: 15%; right: 30%;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle,rgba(99,102,241,.18) 0%,rgba(99,102,241,.04) 50%,transparent 70%);
  animation: orbPulse 7s ease-in-out 1s infinite reverse;
  pointer-events: none;
}
@keyframes orbPulse { 0%,100%{transform:scale(1) translateY(0);opacity:.7} 50%{transform:scale(1.12) translateY(-14px);opacity:1} }
/* Floating particles */
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-particles span {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: rgba(59,130,246,.8);
  animation: particleFly linear infinite;
}
.hero-particles span:nth-child(1)  { left:12%; top:80%; animation-duration:9s;  animation-delay:0s;   width:3px;height:3px; }
.hero-particles span:nth-child(2)  { left:25%; top:70%; animation-duration:12s; animation-delay:1.5s; }
.hero-particles span:nth-child(3)  { left:40%; top:85%; animation-duration:8s;  animation-delay:3s;  width:3px;height:3px; }
.hero-particles span:nth-child(4)  { left:55%; top:75%; animation-duration:14s; animation-delay:0.8s; }
.hero-particles span:nth-child(5)  { left:70%; top:80%; animation-duration:10s; animation-delay:2.2s; width:3px;height:3px; }
.hero-particles span:nth-child(6)  { left:82%; top:70%; animation-duration:11s; animation-delay:4s;  }
.hero-particles span:nth-child(7)  { left:18%; top:90%; animation-duration:13s; animation-delay:1s;  width:3px;height:3px; }
.hero-particles span:nth-child(8)  { left:63%; top:78%; animation-duration:9s;  animation-delay:3.5s; }
@keyframes particleFly {
  0%   { transform: translateY(0) scale(0.5); opacity:0; }
  8%   { opacity:.7; transform: translateY(-15px) scale(1); }
  85%  { opacity:.4; }
  100% { transform: translateY(-220px) scale(.3); opacity:0; }
}
/* Floating product card panel — container bobs, cards have individual offsets */
.hero-visual {
  position: absolute; right: 6%; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px; z-index: 2;
  animation: heroVisualBob 6s ease-in-out infinite;
}
@keyframes heroVisualBob {
  0%,100% { transform: translateY(calc(-50% + 0px)); }
  50%     { transform: translateY(calc(-50% - 14px)); }
}
.hero-mini-card {
  background: rgba(26,31,46,.88); border: 1px solid rgba(59,130,246,.22);
  border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 14px;
  backdrop-filter: blur(14px); min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(59,130,246,.08);
  animation: cardBob 4s ease-in-out infinite;
}
.hero-mini-card:nth-child(2) { margin-left: 28px; animation-delay: -1.3s; }
.hero-mini-card:nth-child(3) { margin-left: 12px; animation-delay: -2.7s; }
@keyframes cardBob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}
.hero-mini-icon {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.hero-mini-icon.blue { background: rgba(59,130,246,.15); }
.hero-mini-icon.green { background: rgba(16,185,129,.15); }
.hero-mini-label { font-size: 11px; color: var(--text-faint); margin-bottom: 2px; }
.hero-mini-name { font-size: 13px; font-weight: 700; }
.hero-mini-price { font-size: 12px; color: var(--accent); font-weight: 700; margin-top: 1px; }
@media (max-width: 1100px) { .hero-visual { display: none; } }
.hero-content { position: relative; z-index: 2; max-width: 580px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25);
  color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; padding: 5px 12px; border-radius: 20px; margin-bottom: 24px;
}
.hero-badge::before {
  content:''; width:6px; height:6px; background:var(--accent); border-radius:50%;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.08; letter-spacing: -1px; margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { color: var(--text-muted); font-size: 17px; line-height: 1.6; margin-bottom: 36px; max-width: 460px; }
.hero-actions { display: flex; gap: 12px; }
.hero-stats { display: flex; gap: 40px; margin-top: 52px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.08); }
.stat-num { font-size: 28px; font-weight: 800; }
.stat-label { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

/* FILTER TABS */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-tab {
  padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); color: var(--text-faint);
  background: transparent; transition: all .2s;
}
.filter-tab.active, .filter-tab:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* SECTION */
.section { padding: 80px 0; }
.section-label { font-size: 11px; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.section-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.section-sub { color: var(--text-faint); font-size: 15px; margin-bottom: 40px; }

/* CATEGORY CARDS */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 200px; display: flex; align-items: flex-end; padding: 24px;
  border: 1px solid var(--border);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cat-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(15,17,23,.9) 40%,transparent); }
.cat-card-content { position: relative; z-index: 1; }
.cat-card-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.cat-card-sub { font-size: 13px; color: var(--text-muted); }

/* FORMS */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; letter-spacing: .5px; text-transform: uppercase; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); padding: 10px 14px; border-radius: 8px; font-size: 14px;
  font-family: inherit; transition: border-color .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--accent); }
.form-textarea { min-height: 120px; resize: vertical; }

/* ALERTS */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(16,185,129,.3); }
.alert-error { background: rgba(239,68,68,.1); color: #f87171; border: 1px solid rgba(239,68,68,.3); }

/* ADMIN */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; background: var(--bg-card); border-right: 1px solid var(--border);
  padding: 24px 0; flex-shrink: 0; position: fixed; top: 0; left: 0; bottom: 0;
}
.admin-sidebar .logo { padding: 0 24px 24px; font-size: 16px; font-weight: 800; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.admin-nav a {
  display: block; padding: 10px 24px; color: var(--text-muted); font-size: 13px;
  transition: all .2s;
}
.admin-nav a:hover, .admin-nav a.active { color: var(--text); background: rgba(59,130,246,.08); text-decoration: none; }
.admin-main { margin-left: 220px; padding: 32px 40px; flex: 1; }
.admin-title { font-size: 24px; font-weight: 800; margin-bottom: 24px; }

/* TABLE */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.table tr:hover td { background: rgba(59,130,246,.03); }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 32px 40px; display: flex; justify-content: space-between; align-items: center; color: var(--text-faint); font-size: 12px; }
