:root {
  --bg: #080a0e;
  --bg2: #0d1018;
  --bg3: #131720;
  --surface: #181d28;
  --surface2: #1e2430;
  --border: #252d3e;
  --accent: #ff5500;
  --accent2: #ff7733;
  --neon-green: #00ff88;
  --neon-cyan: #00d4ff;
  --neon-purple: #bf5fff;
  --gold: #ffc540;
  --text: #e8eef8;
  --text2: #8898b8;
  --text3: #6b7a99;
  --green: #00e87a;
  --red: #ff3355;
  --yellow: #ffc540;
  --grad-1: linear-gradient(135deg, #ff5500, #ff9900);
  --grad-2: linear-gradient(135deg, #00ff88, #00d4ff);
  --grad-3: linear-gradient(135deg, #00d4ff, #bf5fff);
  --grad-hero: linear-gradient(135deg, rgba(255,85,0,0.18) 0%, rgba(0,212,255,0.08) 50%, rgba(0,255,136,0.06) 100%);
  --font-display: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --r: 6px;
  --shadow: 0 8px 32px rgba(0,0,0,0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

/* ===== PAGES ===== */
.page { display: none; animation: fadeIn 0.4s ease; }
body.js-ready .page.active { display: block; }
body:not(.js-ready) .page { display: none !important; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ===== NAV ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,12,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column;
}

/* ---- RÂND 1 ---- */
.nav-top {
  display: flex; align-items: center; gap: 2rem;
  padding: 0.85rem 2rem;
  max-width: 1500px; width: 100%; margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-display);
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 52px; width: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--accent);
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-text > div { font-size: 1.7rem; letter-spacing: 3px; }
.nav-logo-sub {
  font-family: var(--font-cond); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--text3);
  margin-top: 3px;
}
.nav-logo:hover img { border-color: var(--accent2); }

/* Search central */
.nav-search {
  flex: 1; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 100px; overflow: hidden;
  transition: border-color 0.2s;
}
.nav-search:focus-within { border-color: var(--accent); }
.nav-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-body); font-size: 0.92rem;
  padding: 12px 20px;
}
.nav-search input::placeholder { color: var(--text3); }
.nav-search-btn {
  background: var(--accent); border: none; color: #fff;
  width: 48px; height: 44px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s; flex-shrink: 0;
}
.nav-search-btn:hover { background: var(--accent2); }

/* Acțiuni dreapta (iconițe + text) */
.nav-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.nav-action {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 12px; border-radius: var(--r);
  color: var(--text2); transition: color 0.12s ease, background 0.12s ease; min-width: 56px;
}
.nav-action:hover { color: var(--text); background: var(--surface); }
.nav-action:active { transform: scale(0.94); transition: transform 0.05s ease; }
.nav-action-icon { font-size: 1.25rem; position: relative; line-height: 1; }
.nav-action-label {
  font-family: var(--font-cond); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.nav-action-cart .nav-action-icon { color: var(--accent); }
.nav-action-logout .nav-action-icon { color: var(--red); font-weight: 700; }
.nav-action-logout:hover { color: var(--red); background: rgba(255,68,68,0.08); }

/* ---- RÂND 2: categorii ---- */
.nav-cats {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0 2rem; max-width: 1500px; width: 100%; margin: 0 auto;
  border-top: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.nav-cats::-webkit-scrollbar { display: none; }
.nav-cat-list { display: flex; align-items: center; gap: 0.2rem; }
.nav-cat-item {
  background: none; border: none; color: var(--text2);
  font-family: var(--font-cond); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 13px 16px; cursor: pointer; transition: all 0.2s;
  white-space: nowrap; border-bottom: 2px solid transparent;
}
.nav-cat-item:hover { color: var(--text); }
.nav-cat-item.active {
  color: #fff; background: var(--accent);
  border-radius: var(--r) var(--r) 0 0;
  box-shadow: 0 0 16px rgba(255,85,0,0.45);
}
/* Pulse la click pe o categorie din nav */
@keyframes navCatPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,85,0,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255,85,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,85,0,0); }
}
.nav-cat-item.pulse { animation: navCatPulse 0.6s ease-out; }
.nav-cat-divider { width: 1px; height: 20px; background: var(--border); margin: 0 8px; flex-shrink: 0; }
.nav-cat-spacer { flex: 1; }
.nav-cat-admin { color: var(--accent) !important; }
.nav-cat-admin:hover { color: var(--accent2) !important; }

/* Indicator filtru activ pe pagina shop */
.active-filter-label {
  font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text3);
}
.active-filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(255,85,0,0.14), rgba(255,119,51,0.08));
  border: 1px solid rgba(255,85,0,0.4); color: var(--text);
  font-family: var(--font-cond); font-weight: 600; letter-spacing: 0.5px;
  padding: 7px 12px; border-radius: 100px; font-size: 0.9rem;
}
.active-filter-chip.search {
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(0,255,136,0.07));
  border-color: rgba(0,212,255,0.4);
}
.active-filter-chip button {
  background: none; border: none; color: var(--text2); cursor: pointer;
  font-size: 0.9rem; line-height: 1; padding: 2px 4px; border-radius: 50%;
  transition: all 0.15s;
}
.active-filter-chip button:hover { color: #fff; background: rgba(255,255,255,0.12); }
.active-filter-clear {
  background: none; border: 1px solid var(--border); color: var(--text2);
  font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 1px;
  text-transform: uppercase; padding: 6px 12px; border-radius: 100px; cursor: pointer;
  transition: all 0.15s;
}
.active-filter-clear:hover { color: var(--text); border-color: var(--text3); }

/* Badge-uri */
.cart-badge, .wish-badge {
  position: absolute; top: -6px; right: -10px;
  background: var(--gold); color: var(--bg); font-size: 0.6rem; font-weight: 700;
  min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  animation: pop 0.3s ease;
}
.wish-badge { background: #ff4466; color: #fff; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Meniu mobil — ascuns pe desktop */
.nav-mobile-menu { display: none; }
.nav-register-btn {
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
}
.nav-register-btn:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 4rem 2rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse at 70% 40%, rgba(255,85,0,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 70%, rgba(0,212,255,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(0,255,136,0.07) 0%, transparent 45%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.08;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { from { transform: translateY(0); } to { transform: translateY(60px); } }
/* Imagine de fundal hero (BMW) — acum <img> real pentru LCP mai bun */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  animation: heroImgIn 1.3s ease both;
}
/* Voal întunecat dinspre stânga: textul/butoanele stau pe fond închis, mașina rămâne vizibilă în dreapta */
.hero-img-veil {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(8,10,14,0.82) 22%, rgba(8,10,14,0.35) 50%, transparent 72%),
    linear-gradient(0deg, rgba(8,10,14,0.55) 0%, transparent 45%);
}
@keyframes heroImgIn { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(255,85,0,0.12), rgba(0,212,255,0.08)); 
  border: 1px solid rgba(0,212,255,0.35);
  color: var(--neon-cyan); font-family: var(--font-cond);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 1.5rem;
  animation: slideIn 0.8s ease 0.2s both;
}
@keyframes slideIn { from { opacity:0; transform: translateX(-20px); } to { opacity:1; transform: translateX(0); } }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  animation: slideIn 0.8s ease 0.4s both;
}
.hero h1 .accent { color: var(--accent); display: block; }
.hero p {
  color: var(--text2); font-size: 1.1rem; line-height: 1.7;
  max-width: 500px; margin-bottom: 2.5rem;
  animation: slideIn 0.8s ease 0.6s both;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; animation: slideIn 0.8s ease 0.8s both; }
.btn-primary {
  background: linear-gradient(135deg, #ff5500, #ff9900); color: white; border: none;
  font-family: var(--font-cond); font-size: 1rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--r);
  cursor: pointer; transition: all 0.12s ease;
  box-shadow: 0 0 30px rgba(255,85,0,0.4), 0 4px 15px rgba(0,0,0,0.3);
}
.btn-primary:hover { background: linear-gradient(135deg, #ff6600, #ffb300); transform: translateY(-2px); box-shadow: 0 0 50px rgba(255,85,0,0.55), 0 8px 25px rgba(0,0,0,0.4); }
.btn-primary:active { transform: translateY(0); transition: all 0.05s ease; }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
  font-family: var(--font-cond); font-size: 1rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--r);
  cursor: pointer; transition: all 0.12s ease;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0); transition: all 0.05s ease; }
.hero-stats {
  position: absolute; bottom: 4.5rem; right: 4rem; z-index: 1;
  display: flex; gap: 3rem;
  animation: slideIn 0.8s ease 1s both;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: var(--font-display); font-size: 2.6rem;
  line-height: 1; display: block; margin-bottom: 0.3rem;
}
.hero-stat .label { font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 2px; color: var(--text3); text-transform: uppercase; }

/* ===== CATEGORIES STRIP ===== */
.categories-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex; gap: 0.5rem; overflow-x: auto;
}
.cat-chip {
  white-space: nowrap;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); font-family: var(--font-cond);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 18px; border-radius: 100px;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.cat-chip:hover, .cat-chip.active { background: var(--accent); border-color: var(--accent); color: white; transform: translateY(-2px); }

/* ===== SECTION ===== */
.section { padding: 4rem 2rem; max-width: 1400px; margin: 0 auto; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; gap: 1rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: 2px; }
.section-title span { color: var(--accent); }
.section-sub { color: var(--text3); font-family: var(--font-cond); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; }

/* ===== PRODUCT GRID ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 20px 60px rgba(232,67,10,0.2); }
.product-img {
  width: 100%; aspect-ratio: 1/1;
  object-fit: cover; display: block;
  background: var(--bg3);
  position: relative; overflow: hidden;
}
.product-img-placeholder {
  width: 100%; aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--bg3) 0%, var(--surface2) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text3); font-size: 3rem; gap: 0.5rem;
  position: relative; overflow: hidden;
}
.product-img-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(232,67,10,0.05) 0%, transparent 60%);
}
.product-img-placeholder span { font-family: var(--font-cond); font-size: 0.75rem; letter-spacing: 1px; color: var(--text3); }
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: white;
  font-family: var(--font-cond); font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 3px;
  z-index: 2;
}
.product-badge.new { background: var(--green); }
.product-badge.low { background: var(--yellow); color: var(--bg); }
.product-info { padding: 1.2rem; }
.product-cat { font-family: var(--font-cond); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.product-name { font-weight: 600; font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.3; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.product-price { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); }
.product-stock { font-family: var(--font-cond); font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; }
.stock-ok { color: var(--green); }
.stock-low { color: var(--yellow); }
.stock-out { color: var(--red); }

/* Tooltip breakdown stoc variante */
.stock-breakdown-trigger { position: relative; }
.stock-tooltip {
  display: none;
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: calc(100% + 8px);
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text2);
  white-space: nowrap;
  z-index: 100;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  pointer-events: none;
  line-height: 1.8;
}
.stock-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--border2);
}
td:hover .stock-tooltip { display: block; }
.add-to-cart {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-cond); font-size: 0.9rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 10px; border-radius: var(--r);
  cursor: pointer; transition: all 0.2s;
}
.add-to-cart:hover { background: var(--accent); border-color: var(--accent); color: white; transform: scale(1.02); }
.add-to-cart:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== SEARCH + FILTER ===== */
.toolbar {
  display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; align-items: center;
}
.search-box {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 16px;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--accent); }
.search-box input {
  background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem; flex: 1;
}
.search-box input::placeholder { color: var(--text3); }
.filter-select {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-cond); font-size: 0.85rem;
  letter-spacing: 1px; padding: 10px 16px; border-radius: var(--r);
  cursor: pointer; outline: none;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  animation: fadeOverlay 0.3s ease;
}
.modal-overlay.hidden { display: none; }
@keyframes fadeOverlay { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  padding: 2.5rem;
  animation: modalIn 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
@keyframes modalIn { from { opacity:0; transform: scale(0.9) translateY(20px); } to { opacity:1; transform: scale(1) translateY(0); } }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--surface); border: none; color: var(--text2);
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--accent); color: white; }
.modal-title { font-family: var(--font-display); font-size: 2rem; letter-spacing: 2px; margin-bottom: 0.5rem; }
.modal-sub { color: var(--text3); font-size: 0.9rem; margin-bottom: 2rem; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text2); margin-bottom: 6px; }
.form-input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  padding: 10px 14px; border-radius: var(--r); outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text3); }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* Specificații tehnice — rânduri dinamice (nume + valoare pe același rând) */
.spec-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.spec-row .spec-key { flex: 0 0 40%; }
.spec-row .spec-val { flex: 1; }
.spec-remove {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--r);
  background: rgba(255,68,68,0.08); border: 1px solid rgba(255,68,68,0.25);
  color: var(--red); cursor: pointer; font-size: 0.9rem;
  transition: all 0.12s ease;
}
.spec-remove:hover { background: rgba(255,68,68,0.18); border-color: var(--red); }
.btn-add-spec {
  margin-top: 4px; background: transparent;
  border: 1px dashed var(--border); color: var(--text2);
  font-family: var(--font-cond); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 1px; padding: 9px 16px; border-radius: var(--r);
  cursor: pointer; transition: all 0.12s ease; width: 100%;
}
.btn-add-spec:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,85,0,0.04); }

/* Fix autofill alb din Chrome/Edge — păstrează tema întunecată */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important;
  box-shadow: 0 0 0 1000px var(--surface) inset !important;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.8rem; color: var(--text3); margin-top: 4px; }
.form-link { color: var(--accent); cursor: pointer; text-decoration: none; }
.form-link:hover { color: var(--accent2); text-decoration: underline; }

/* ===== FILE UPLOAD ===== */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--r);
  padding: 2rem; text-align: center;
  cursor: pointer; transition: all 0.2s;
  background: var(--bg3);
}
.upload-area:hover, .upload-area.drag { border-color: var(--accent); background: rgba(232,67,10,0.05); }
.upload-area .upload-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.upload-area p { color: var(--text2); font-size: 0.9rem; }
.upload-area p span { color: var(--accent); cursor: pointer; }
.upload-preview { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.upload-thumb {
  width: 80px; height: 80px; border-radius: var(--r); object-fit: cover;
  border: 2px solid var(--border); position: relative; display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}
#uploadPreview [draggable]:hover .upload-thumb {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
#uploadPreview [draggable] { user-select: none; }
.uploaded-count { font-family: var(--font-cond); font-size: 0.85rem; color: var(--green); margin-top: 0.5rem; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 9998; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-cond); font-size: 0.9rem;
  padding: 12px 20px; border-radius: var(--r);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s ease;
  border-left: 3px solid var(--green);
  max-width: 300px;
  box-shadow: var(--shadow);
}
.toast.error { border-left-color: var(--red); }
.toast.info { border-left-color: var(--accent); }
@keyframes toastIn { from { opacity:0; transform: translateX(30px); } to { opacity:1; transform: translateX(0); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; transform: translateX(30px); } }

/* ===== CART ===== */
.cart-item {
  display: flex; gap: 1rem; align-items: center;
  padding: 1.2rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); margin-bottom: 1rem;
  animation: fadeIn 0.3s ease;
}
.cart-item-thumb {
  width: 70px; height: 70px; border-radius: var(--r);
  background: var(--bg3); display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; margin-bottom: 4px; }
.cart-item-price { color: var(--accent); font-family: var(--font-display); font-size: 1.3rem; }
.cart-qty-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); width: 28px; height: 28px; border-radius: 4px;
  cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-num { font-weight: 600; width: 30px; text-align: center; }
.cart-remove { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 1.2rem; padding: 4px; transition: color 0.2s; }
.cart-remove:hover { color: var(--red); }
.cart-summary {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem;
}
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 0.8rem; }
.cart-total-row.final { border-top: 1px solid var(--border); padding-top: 0.8rem; margin-top: 0.5rem; }
.cart-total-row.final span:last-child { font-family: var(--font-display); font-size: 1.8rem; color: var(--accent); }

/* ===== ADMIN ===== */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.admin-sidebar {
  background: var(--bg2); border-right: 1px solid var(--border);
  padding: 2rem 1rem;
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
  display: flex; flex-direction: column;
}
.admin-sidebar h3 {
  font-family: var(--font-cond); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text3); padding: 0 0.8rem; margin-bottom: 0.8rem;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r);
  color: var(--text2); font-weight: 500;
  cursor: pointer; transition: all 0.2s; margin-bottom: 2px;
  font-size: 0.95rem;
}
.admin-nav-item:hover { background: var(--surface); color: var(--text); }
.admin-nav-item.active { background: rgba(232,67,10,0.15); color: var(--accent); border-left: 3px solid var(--accent); }
.admin-content { padding: 2.5rem; }
.admin-sub { display: none; }
.admin-sub.active { display: block; animation: fadeIn 0.3s ease; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem;
  position: relative; overflow: hidden;
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
}
.stat-card .value { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 4px; }
.stat-card .label { font-family: var(--font-cond); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text3); }
.stat-card .icon { position: absolute; top: 1rem; right: 1rem; font-size: 2rem; opacity: 0.15; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  background: var(--surface2); border-bottom: 2px solid var(--border);
  padding: 12px 16px; text-align: left;
  font-family: var(--font-cond); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text3);
}
td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text2); transition: background 0.15s; }
tr:hover td { background: var(--surface); color: var(--text); }
.tbl-badge {
  font-family: var(--font-cond); font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 3px;
}
.tbl-badge.active { background: rgba(46,204,113,0.15); color: var(--green); }
.tbl-badge.inactive { background: rgba(90,90,114,0.15); color: var(--text3); }
.tbl-badge.admin { background: rgba(232,67,10,0.15); color: var(--accent); }
.tbl-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); padding: 4px 12px; border-radius: 4px;
  font-size: 0.8rem; cursor: pointer; transition: all 0.2s; margin-right: 4px;
}
.tbl-btn:hover { border-color: var(--accent); color: var(--accent); }
.tbl-btn.danger:hover { border-color: var(--red); color: var(--red); }

/* ===== PRODUCT DETAIL ===== */
.product-detail { max-width: 1000px; margin: 0 auto; padding: 3rem 2rem; animation: fadeIn 0.4s ease; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.detail-imgs { position: relative; }
.detail-main-img {
  width: 100%; aspect-ratio: 1; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 6rem;
  margin-bottom: 1rem; overflow: hidden;
}
.detail-main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs { display: flex; gap: 0.5rem; }
.detail-thumb {
  width: 70px; height: 70px; border-radius: 6px;
  background: var(--surface); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  cursor: pointer; transition: border-color 0.2s;
}
.detail-thumb.active { border-color: var(--accent); }
.detail-info { }
.detail-cat { font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.detail-name { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.detail-sku { font-family: var(--font-cond); font-size: 0.85rem; color: var(--text3); letter-spacing: 1px; margin-bottom: 1.5rem; }
.detail-price { font-family: var(--font-display); font-size: 3rem; color: var(--accent); margin-bottom: 1rem; }
.detail-desc { color: var(--text2); line-height: 1.7; margin-bottom: 2rem; }
.detail-specs { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.2rem; margin-bottom: 2rem; }
.spec-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: var(--text3); }
.detail-qty-wrap { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.detail-qty-ctrl { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 6px 12px; }

/* ===== USER PROFILE ===== */
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; }
.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 2rem; text-align: center; }
.avatar-ring {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1rem; font-family: var(--font-display);
  color: white; font-size: 1.5rem;
}
.profile-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.profile-email { color: var(--text3); font-size: 0.9rem; margin-bottom: 1rem; }
.profile-role { display: inline-block; background: rgba(232,67,10,0.15); color: var(--accent); font-family: var(--font-cond); font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 12px; border-radius: 3px; }
.order-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.2rem; margin-bottom: 1rem;
  animation: fadeIn 0.3s ease;
}
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.order-id { font-family: var(--font-cond); font-size: 0.85rem; color: var(--text3); letter-spacing: 1px; }
.order-status { font-family: var(--font-cond); font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.order-status.livrat { color: var(--green); }
.order-status.procesare { color: var(--yellow); }
.order-status.anulat { color: var(--red); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 3rem 2rem; margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; max-width: 1400px; margin: 0 auto 2rem; }
.footer-logo { font-family: var(--font-display); font-size: 2.5rem; letter-spacing: 4px; margin-bottom: 0.8rem; }
.footer-logo span { color: var(--accent); }
.footer-desc { color: var(--text3); font-size: 0.9rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-family: var(--font-cond); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text3); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text2); font-size: 0.9rem; margin-bottom: 6px; cursor: pointer; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: var(--text3); font-size: 0.85rem; }

/* ===== WISHLIST HEART BUTTON ===== */
.wish-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: rgba(8,10,14,0.75); border: 1px solid var(--border);
  color: var(--text3); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; transition: all 0.2s;
  backdrop-filter: blur(4px);
}
.wish-btn:hover { border-color: #ff4466; color: #ff4466; transform: scale(1.1); }
.wish-btn.active { background: rgba(255,68,102,0.15); border-color: #ff4466; color: #ff4466; }
.wish-btn.active svg { fill: #ff4466; }

/* ===== CAR FILTER BAR ===== */
.car-filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.car-filter-label {
  font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text3); white-space: nowrap;
}
.car-brand-pills {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.car-brand-pill {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); font-family: var(--font-cond); font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.5px;
  padding: 5px 14px; border-radius: 100px; cursor: pointer;
  transition: all 0.18s; white-space: nowrap;
}
.car-brand-pill:hover {
  border-color: var(--accent); color: var(--accent);
}
.car-brand-pill.active {
  background: linear-gradient(135deg, rgba(255,85,0,0.18), rgba(255,119,51,0.1));
  border-color: var(--accent); color: var(--accent); font-weight: 700;
}
.car-filter-bar label {
  font-family: var(--font-cond); font-size: 0.75rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text3);
  display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 130px;
}
.car-filter-select {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-body); font-size: 0.9rem;
  padding: 8px 12px; border-radius: var(--r); outline: none; cursor: pointer;
  transition: border-color 0.2s;
}
.car-filter-select:focus { border-color: var(--accent); }
.car-filter-select option { background: var(--bg2); }
.car-filter-active-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(255,85,0,0.15), rgba(255,197,64,0.1));
  border: 1px solid rgba(255,85,0,0.4); color: var(--accent);
  font-family: var(--font-cond); font-size: 0.8rem; font-weight: 600; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 100px; white-space: nowrap;
}
.car-filter-reset {
  background: none; border: 1px solid var(--border); color: var(--text3);
  font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 1px;
  padding: 6px 14px; border-radius: var(--r); cursor: pointer; transition: all 0.2s;
  white-space: nowrap; align-self: flex-end;
}
.car-filter-reset:hover { border-color: var(--red); color: var(--red); }

/* ===== PRODUCT DETAIL PAGE (full page, not modal) ===== */
.detail-page-hero {
  background: linear-gradient(160deg, rgba(255,85,0,0.08) 0%, rgba(0,212,255,0.05) 100%);
  border-bottom: 1px solid var(--border);
  padding: 2rem 2rem 0;
}
.detail-page-back {
  background: none; border: none; color: var(--text3);
  font-family: var(--font-cond); font-size: 0.85rem; letter-spacing: 1px;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 6px 0; transition: color 0.2s; margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.detail-page-back:hover { color: var(--accent); }
.detail-page-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  max-width: 1200px; margin: 0 auto; padding: 1rem 2rem 3rem;
}
.detail-page-imgs {}
.detail-page-main-img {
  width: 100%; aspect-ratio: 1/1; max-height: 66vh; max-width: 66vh;
  margin: 0 auto 1rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.detail-page-main-img img { width: 100%; height: 100%; object-fit: cover; }

/* Variante produs — selector pe pagina de detaliu */
.detail-page-variants { margin-bottom: 1.5rem; }
.variants-label {
  font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text3); margin-bottom: 8px;
}
.variants-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-btn {
  background: var(--bg3); border: 1px solid var(--border); color: var(--text2);
  font-family: var(--font-cond); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.5px; padding: 9px 18px; border-radius: var(--r);
  cursor: pointer; transition: all 0.12s ease;
}
.variant-btn:hover { border-color: var(--accent); color: var(--text); }
.variant-btn.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 0 16px rgba(255,85,0,0.35);
}
/* Tag variantă în coș */
.cart-item-variant {
  display: inline-block; font-family: var(--font-cond); font-size: 0.72rem;
  letter-spacing: 1px; text-transform: uppercase; color: var(--accent);
  background: rgba(255,85,0,0.1); border: 1px solid rgba(255,85,0,0.25);
  padding: 2px 8px; border-radius: 100px; margin-bottom: 4px;
}
/* Card variantă în admin */
.variant-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px; margin-bottom: 10px;
}
.variant-card-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.variant-card-head .v-name { flex: 1; }
.variant-card-body .v-specs { margin-top: 4px; }
/* Galerie poze variantă (admin) — thumbnails + buton adăugare */
.v-img-gallery { display: flex; gap: 8px; flex-wrap: wrap; }
.v-img-thumb { position: relative; width: 72px; height: 72px; cursor: grab; }
.v-img-thumb:active { cursor: grabbing; }
.v-img-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r); border: 1px solid var(--border); display: block;
}
.v-img-first {
  position: absolute; bottom: 2px; left: 2px;
  background: var(--accent); color: #fff; font-size: 0.5rem; font-weight: 700;
  padding: 1px 4px; border-radius: 3px; pointer-events: none;
}
.v-img-remove {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(0,0,0,0.75); border: 1px solid var(--border); color: #fff;
  cursor: pointer; font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.v-img-remove:hover { background: var(--red); }
.v-img-add {
  width: 72px; height: 72px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px dashed var(--border); border-radius: var(--r);
  cursor: pointer; transition: all 0.15s ease; color: var(--text3);
}
.v-img-add:hover, .v-img-add.drag { border-color: var(--accent); background: rgba(255,85,0,0.04); color: var(--accent); }
.detail-page-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.detail-page-thumb {
  width: 72px; height: 72px; border-radius: 6px; overflow: hidden;
  border: 2px solid var(--border); cursor: pointer; transition: border-color 0.2s;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--surface);
}
.detail-page-thumb:hover, .detail-page-thumb.active { border-color: var(--accent); }
.detail-page-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-page-info {}
.detail-page-breadcrumb {
  font-family: var(--font-cond); font-size: 0.75rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text3); margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 6px;
}
.detail-page-breadcrumb span { color: var(--accent); cursor: pointer; }
.detail-page-breadcrumb span:hover { text-decoration: underline; }
.detail-page-name {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: 2px; line-height: 1.05; margin-bottom: 0.5rem;
}
.detail-page-sku { font-family: var(--font-cond); font-size: 0.8rem; color: var(--text3); letter-spacing: 1px; margin-bottom: 1.2rem; }
.detail-page-price {
  font-family: var(--font-display); font-size: 3.2rem;
  display: flex; align-items: baseline; gap: 0.4rem;
  margin-bottom: 0.5rem; line-height: 1;
  background: linear-gradient(90deg, #ff5500, #ff9900);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  width: fit-content;
}
.detail-page-price .currency {
  font-family: var(--font-cond); font-size: 1.3rem; font-weight: 600;
  letter-spacing: 1px; -webkit-text-fill-color: var(--text3); color: var(--text3);
}
.detail-page-desc { color: var(--text2); line-height: 1.7; margin-bottom: 1.5rem; font-size: 0.95rem; }
.detail-page-specs {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; margin-bottom: 1.5rem;
}
.detail-page-specs .spec-row {
  display: flex; justify-content: space-between;
  padding: 10px 14px; font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.detail-page-specs .spec-row:last-child { border-bottom: none; }
.detail-page-specs .spec-row span:first-child { color: var(--text3); font-size: 0.85rem; }
.detail-page-compat {
  background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(0,255,136,0.04));
  border: 1px solid rgba(0,212,255,0.2); border-radius: var(--r);
  padding: 12px 16px; margin-bottom: 1.5rem;
  font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 1px;
  color: var(--neon-cyan); display: flex; gap: 8px; align-items: flex-start;
}
.detail-page-actions { display: flex; gap: 0.8rem; align-items: center; }
.detail-wish-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text3); width: 48px; height: 48px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.3rem; transition: all 0.2s; flex-shrink: 0;
}
.detail-wish-btn:hover { border-color: #ff4466; color: #ff4466; }
.detail-wish-btn.active { background: rgba(255,68,102,0.1); border-color: #ff4466; color: #ff4466; }

/* ===== WISHLIST PAGE ===== */
.wishlist-empty { text-align: center; padding: 5rem 2rem; }
.wishlist-empty .icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.3; }

/* ===== HAMBURGER BUTTON ===== */
.nav-hamburger {
  display: none;
  background: none; border: none;
  color: var(--text); cursor: pointer;
  font-size: 1.5rem; padding: 8px;
  line-height: 1;
  border-radius: var(--r);
  transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--surface); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-top { gap: 1rem; padding: 0.7rem 1rem; }
  .nav-logo-text > div { font-size: 1.3rem; letter-spacing: 2px; }
  .nav-logo img { height: 42px; width: 42px; }
  .nav-search { max-width: none; }
  .nav-cats { display: none; } /* categoriile trec în meniul mobil */
}

@media (max-width: 768px) {

  /* DESPRE — grid-uri pe o coloană pe mobil + titluri care nu se rup */
  .despre-grid-2 { grid-template-columns: 1fr !important; }
  .despre-grid-4 { grid-template-columns: 1fr 1fr !important; gap: 1.5rem !important; }
  .despre-h3 {
    font-size: 1.5rem !important;
    letter-spacing: 1px !important;
    word-break: normal;
    overflow-wrap: normal;
  }

  /* NAV — pe mobil: logo + hamburger sus, search dedesubt */
  .nav-top { flex-wrap: wrap; gap: 0.6rem; }
  .nav-logo-sub { display: none; }
  /* Pe mobil: coșul rămâne ca iconiță rapidă lângă hamburger; restul acțiunilor trec în meniu */
  .nav-actions { display: flex; margin-left: auto; gap: 0.2rem; }
  .nav-actions .nav-action { display: none; }
  .nav-actions .nav-action-cart { display: flex; }
  .nav-actions .nav-action-cart .nav-action-label { display: none; }
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
  .nav-search { order: 3; width: 100%; flex-basis: 100%; max-width: none; }

  .nav-mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 1rem 1rem;
    gap: 0.2rem;
    border-top: 1px solid var(--border);
  }
  .nav-mobile-menu.open { display: flex; }
  .nav-mobile-menu button {
    background: none; border: none; color: var(--text2);
    font-family: var(--font-cond); font-size: 1rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    width: 100%; text-align: left; padding: 12px 14px;
    border-radius: var(--r); cursor: pointer; transition: all 0.2s;
  }
  .nav-mobile-menu button:hover { color: var(--text); background: var(--surface); }

  /* HERO */
  .hero { padding: 3rem 1.2rem; min-height: 70vh; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .hero p { font-size: 0.95rem; }
  .hero-btns { flex-direction: column; gap: 0.7rem; }
  .hero-btns button { width: 100%; }
  .hero-stats { display: none; }
  /* Pe mobil imaginea acoperă fundalul, cu voal mai puternic ca textul să rămână clar deasupra */
  .hero-img {
    background-position: center;
  }
  .hero-img::after {
    background:
      linear-gradient(180deg, rgba(8,10,14,0.78) 0%, rgba(8,10,14,0.5) 45%, rgba(8,10,14,0.7) 100%);
  }

  /* SECTIONS */
  .section { padding: 2.5rem 1.2rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* PRODUCT GRID */
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .product-info { padding: 0.9rem; }
  .product-price { font-size: 1.3rem; }

  /* TOOLBAR */
  .toolbar { flex-direction: column; }
  .search-box { min-width: unset; width: 100%; }
  .filter-select { width: 100%; }

  /* CATEGORIES */
  .categories-strip { padding: 1rem 1rem; gap: 0.4rem; }

  /* FORMS */
  .form-row { grid-template-columns: 1fr; }

  /* MODALS */
  .modal { padding: 1.8rem 1.2rem; max-height: 95vh; }

  /* DETAIL PAGE */
  .detail-page-grid { grid-template-columns: 1fr; gap: 2rem; }
  .detail-page-main-img { max-width: 100%; max-height: none; }
  .detail-page-name { font-size: clamp(1.5rem, 6vw, 2rem); }
  .detail-page-price { font-size: 2.2rem; }
  .detail-page-actions { flex-wrap: wrap; }
  .detail-page-actions .btn-primary { flex: 1; }
  .detail-wish-btn { flex-shrink: 0; }

  /* CART — pe mobil o singura coloana */
  .cart-grid { grid-template-columns: 1fr !important; }
  .cart-summary { position: static !important; }

  /* CAR FILTER */
  .car-filter-bar { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .car-brand-pills { gap: 0.4rem; }
  .car-brand-pill { font-size: 0.8rem; padding: 4px 12px; }

  /* CHECKOUT */
  .checkout-grid { grid-template-columns: 1fr; }

  /* PROFILE */
  .profile-grid { grid-template-columns: 1fr; }

  /* ADMIN */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static; height: auto;
    flex-direction: row; flex-wrap: wrap;
    gap: 0.4rem; padding: 1rem;
    align-items: center;
  }
  .admin-sidebar h3 { width: 100%; margin-bottom: 0.4rem; }
  .admin-sidebar > div[style*="margin-top:auto"] {
    width: 100%; margin-top: 0.5rem !important; padding-top: 0.5rem !important;
    border-top: 1px solid var(--border);
  }
  .admin-nav-item { padding: 8px 10px; font-size: 0.85rem; }
  .admin-content { padding: 1.5rem 1rem; }

  /* STAT CARDS */
  .stat-cards { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* FOOTER */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  /* VOUCHER */
  .voucher-wrap { flex-direction: row; }

  /* TABLE */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* WISHLIST */
  .wishlist-empty { padding: 3rem 1rem; }

  /* HERO TITLE SIZES */
  .hero-title-1, .hero-title-2 { display: block; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .hero-btns { gap: 0.6rem; }
  .section { padding: 2rem 1rem; }
  .admin-nav-item { font-size: 0.78rem; padding: 7px 8px; }
  /* DESPRE — cifre mai mici ca să încapă 2 pe rând fără să iasă din ecran */
  .despre-grid-4 > div > div:first-child { font-size: 2.4rem !important; }
  .despre-page-pad { padding: 3rem 1.2rem !important; }
}

/* ===== VOUCHER INPUT ===== */
.voucher-wrap {
  display: flex; gap: 0.6rem; align-items: stretch; margin-bottom: 1rem;
}
.voucher-input {
  flex: 1;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-cond); font-size: 0.9rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 10px 14px; border-radius: var(--r); outline: none;
  transition: border-color 0.2s;
}
.voucher-input:focus { border-color: var(--neon-green); }
.voucher-input::placeholder { text-transform: none; letter-spacing: 0; color: var(--text3); }
.voucher-btn {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); font-family: var(--font-cond); font-size: 0.85rem;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 10px 18px; border-radius: var(--r); cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.voucher-btn:hover { border-color: var(--neon-green); color: var(--neon-green); }
.voucher-applied {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(0,232,122,0.08), rgba(0,212,255,0.05));
  border: 1px solid rgba(0,232,122,0.3); border-radius: var(--r);
  padding: 10px 14px; margin-bottom: 1rem;
  font-family: var(--font-cond); font-size: 0.85rem; letter-spacing: 1px;
  color: var(--neon-green);
}
.voucher-applied .remove-voucher {
  background: none; border: none; color: var(--text3); cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 0; transition: color 0.2s;
}
.voucher-applied .remove-voucher:hover { color: var(--red); }

/* ===== ADMIN VOUCHERS PANEL ===== */
.voucher-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1rem 1.2rem;
  transition: border-color 0.2s;
}
.voucher-card:hover { border-color: var(--neon-green); }
.voucher-code {
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 2px;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.voucher-meta { font-family: var(--font-cond); font-size: 0.78rem; letter-spacing: 1px; color: var(--text3); }

/* ===== INVOICE / DOCUMENT FISCAL ===== */
.invoice-upload-btn {
  background: var(--surface); border: 1px dashed var(--border);
  color: var(--text2); font-family: var(--font-cond); font-size: 0.8rem;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 4px; cursor: pointer;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.invoice-upload-btn:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.invoice-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(0,255,136,0.06));
  border: 1px solid rgba(0,212,255,0.3); border-radius: 4px;
  padding: 5px 12px; color: var(--neon-cyan);
  font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 1px;
  cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.invoice-link:hover { background: rgba(0,212,255,0.15); border-color: var(--neon-cyan); }

/* ===== SEO ADMIN PANEL ===== */
.seo-field { margin-bottom: 1rem; }
.seo-field label { display: block; font-family: var(--font-cond); font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); margin-bottom: 5px; }
.seo-field input, .seo-field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-body); font-size: 0.9rem;
  padding: 9px 13px; border-radius: var(--r); outline: none; transition: border-color 0.2s;
}
.seo-field input:focus, .seo-field textarea:focus { border-color: var(--neon-purple); }
.seo-preview {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.2rem; margin-top: 1rem; font-size: 0.88rem;
}
.seo-preview .seo-prev-title { color: #8ab4f8; font-size: 1rem; margin-bottom: 2px; }
.seo-preview .seo-prev-url { color: var(--neon-green); font-size: 0.8rem; margin-bottom: 4px; }
.seo-preview .seo-prev-desc { color: var(--text3); line-height: 1.5; }

/* ===== MISC ===== */
.empty-state { text-align: center; padding: 5rem 2rem; }
.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.3; }
.empty-state h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.5rem; color: var(--text2); }
.empty-state p { color: var(--text3); }

.divider { height: 1px; background: var(--border); margin: 2rem 0; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 1rem; }

.glow-text { text-shadow: 0 0 40px rgba(255,85,0,0.5); }
.pulse { animation: pulseAnim 2s ease infinite; }
@keyframes pulseAnim { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

/* ===== APEX GARAGE LOGO ANIMATION ===== */
.logo-apex {
  background: linear-gradient(90deg, #ff5500, #ffc540, #00ff88, #00d4ff, #ff5500);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoShift 4s ease infinite;
  font-family: var(--font-display);
  letter-spacing: 3px;
  font-size: 1.4rem;
}
.logo-garage {
  font-family: var(--font-display);
  letter-spacing: 3px;
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 0 20px rgba(0,212,255,0.5);
  animation: garageGlow 3s ease infinite alternate;
}
@keyframes logoShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes garageGlow {
  from { text-shadow: 0 0 10px rgba(0,212,255,0.4), 0 0 20px rgba(0,212,255,0.2); color: #fff; }
  to   { text-shadow: 0 0 20px rgba(0,255,136,0.6), 0 0 40px rgba(0,255,136,0.3); color: #e0ffe8; }
}

/* Hero title gradient */
.hero-title-1 {
  display: block;
  background: linear-gradient(90deg, #ffffff, #c8d8f0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-title-2 {
  display: block;
  background: linear-gradient(90deg, #ff5500, #ff9900);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-shadow: none;
}

/* Gradient buttons */
.btn-gradient {
  background: linear-gradient(135deg, #ff5500, #ff9900) !important;
  box-shadow: 0 0 30px rgba(255,85,0,0.4), 0 0 60px rgba(255,153,0,0.15) !important;
}
.btn-gradient:hover {
  background: linear-gradient(135deg, #ff6600, #ffb300) !important;
  box-shadow: 0 0 50px rgba(255,85,0,0.6), 0 0 80px rgba(255,153,0,0.25) !important;
  transform: translateY(-3px) !important;
}

/* Neon border cards on hover */
.product-card:hover {
  border-color: transparent !important;
  box-shadow: 0 0 0 1px #00ff88, 0 20px 60px rgba(0,255,136,0.15) !important;
}
.product-card:nth-child(3n+1):hover { box-shadow: 0 0 0 1px #ff5500, 0 20px 60px rgba(255,85,0,0.15) !important; }
.product-card:nth-child(3n+2):hover { box-shadow: 0 0 0 1px #00d4ff, 0 20px 60px rgba(0,212,255,0.15) !important; }
.product-card:nth-child(3n):hover   { box-shadow: 0 0 0 1px #00ff88, 0 20px 60px rgba(0,255,136,0.15) !important; }

/* Cat chips gradient active */
.cat-chip.active {
  background: linear-gradient(135deg, #ff5500, #ffc540) !important;
  border-color: transparent !important;
  box-shadow: 0 0 20px rgba(255,85,0,0.4) !important;
}
.cat-chip:nth-child(3n+2).active { background: linear-gradient(135deg, #00d4ff, #00ff88) !important; box-shadow: 0 0 20px rgba(0,212,255,0.4) !important; color: #0a0f18 !important; }
.cat-chip:nth-child(3n).active   { background: linear-gradient(135deg, #bf5fff, #00d4ff) !important; box-shadow: 0 0 20px rgba(191,95,255,0.4) !important; }

/* Stat card number gradients */
#counterProducts { background: linear-gradient(90deg,#ff5500,#ffc540); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
#counterOrders   { background: linear-gradient(90deg,#00d4ff,#00ff88); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
#counterClients  { background: linear-gradient(90deg,#bf5fff,#00d4ff); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

/* Section title spans */
.section-title span {
  background: linear-gradient(90deg, #ff5500, #ffc540);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Hero bg upgrade */
.hero-bg {
  background: var(--grad-hero) !important;
}

/* Nav line — portocaliu solid (matchy cu site-ul) */
nav::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--accent);
}

/* Product price gradient */
.product-price {
  background: linear-gradient(90deg, #ff5500, #ffc540);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Add to cart gradient hover */
.add-to-cart:hover {
  background: linear-gradient(135deg, #ff5500, #ffc540) !important;
  border-color: transparent !important;
}

/* Featured banner upgrade */
.featured-banner {
  background: linear-gradient(135deg, rgba(255,85,0,0.12) 0%, rgba(255,197,64,0.06) 40%, rgba(0,212,255,0.08) 100%) !important;
  border: 1px solid rgba(255,85,0,0.25) !important;
}

/* Footer line — portocaliu solid */
footer {
  border-top: 1px solid var(--accent) !important;
}

/* ===== SKELETON LOADER ===== */
#appLoader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; transition: opacity 0.4s ease;
}
#appLoader.fade-out { opacity: 0; pointer-events: none; }
.loader-logo {
  font-family: var(--font-display); font-size: 3rem; letter-spacing: 6px;
  background: linear-gradient(90deg, #ff5500, #ff9900, #00d4ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.loader-bar-wrap {
  width: 200px; height: 3px; background: var(--surface2); border-radius: 100px; overflow: hidden;
}
.loader-bar {
  height: 100%; width: 0%; border-radius: 100px;
  background: linear-gradient(90deg, #ff5500, #ff9900);
  animation: loaderFill 1.4s ease forwards;
}
@keyframes loaderFill { 0%{width:0%} 60%{width:75%} 90%{width:92%} 100%{width:100%} }
.loader-text {
  font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text3);
  animation: loaderPulse 1.2s ease infinite;
}
@keyframes loaderPulse { 0%,100%{opacity:0.4} 50%{opacity:1} }

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ===== CHECKOUT ===== */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.checkout-section { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 2rem; margin-bottom: 2rem; }
.checkout-section h3 { font-family: var(--font-cond); font-size: 1.1rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.5rem; color: var(--text2); }

/* ===== FEATURED BANNER ===== */
.featured-banner {
  background: linear-gradient(135deg, rgba(232,67,10,0.1) 0%, rgba(201,162,39,0.05) 100%);
  border: 1px solid rgba(232,67,10,0.2);
  border-radius: 12px; padding: 3rem; margin: 0 2rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  position: relative; overflow: hidden;
}
.featured-banner::before {
  content: ''; position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(232,67,10,0.05);
}
.featured-banner h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; letter-spacing: 2px; }
.featured-banner p { color: var(--text2); max-width: 400px; }
