/* ============================================================
   VINTAGE'ART — Design System Luxe / Marketplace
   Fond sombre, accents laiton, typographie serif
   ============================================================ */

/* --- CSS VARIABLES --- */
:root {
  /* Modern interior palette */
  --cream: #f8fafc;
  --beige: #eadfce;
  --taupe: #5c5147;
  --taupe-soft: #706558;
  --sage: #7f977b;
  --sage-dark: #6b8467;
  --sage-light: #9caf99;
  --ink: #1f1a17;

  /* Base surfaces */
  --bg-dark: #1f1a17;
  --bg-card: #ffffff;
  --bg-surface: #f2f6fb;
  --bg-input: #e8eef5;
  --bg-hover: #dce6f0;

  /* Accents — Argent platine */
  --gold: #9fb3cc;
  --gold-light: #c8d5e3;
  --gold-dark: #7a92b0;
  --gold-glow: rgba(159,179,204,0.20);

  /* Text */
  --text-primary: #201a17;
  --text-secondary: #5f5146;
  --text-muted: #897c71;

  /* Borders */
  --border: rgba(92,81,71,0.18);
  --border-strong: rgba(92,81,71,0.32);

  --danger: #c4473d;
  --success: #7f977b;
  --info: #3b6aa4;
  --warning: #d39b3a;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 6px 14px rgba(0,0,0,0.08);
  --shadow-md: 0 10px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 18px 42px rgba(0,0,0,0.14);
  --shadow-gold: 0 8px 26px rgba(159,179,204,0.28);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;

  --header-height: 70px;
  --cats-height: 44px;
  --topbar-height: 36px;
  --sidebar-width: 260px;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: #ffffff;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
}
a { color: var(--gold-light); text-decoration: none; transition: color 0.2s; touch-action: manipulation; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; touch-action: manipulation; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(28px, 3.5vw, 42px); letter-spacing: 0.02em; }
h2 { font-size: clamp(22px, 2.5vw, 32px); letter-spacing: 0.01em; }
h3 { font-size: clamp(18px, 2vw, 24px); }
h4 { font-size: 18px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.gold-line {
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 24px;
}

/* --- TOP BAR --- */
.va-topbar {
  background: #1a1a1a;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: var(--topbar-height);
}
.va-topbar-inner {
  display: flex;
  gap: 36px;
  white-space: normal;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.va-topbar-inner span { color: var(--gold); font-size: 8px; vertical-align: 1px; }

/* --- HEADER (Barre 1 — principale) --- */
.va-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  height: var(--header-height);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.va-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}

/* Logo */
.va-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.va-logo-img { height: 38px; width: auto; border-radius: 6px; }
.va-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.10em;
  line-height: 1;
}
.va-logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a92b0;
  margin-top: 3px;
}

/* Search bar (large, centre) */
.va-search {
  position: relative;
  flex: 1;
  max-width: 300px;
}
.va-search input {
  width: 100%;
  padding: 13px 18px 13px 46px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-full);
  color: #1a1a1a;
  font-size: 14px;
  letter-spacing: 0.02em;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s, transform 0.12s;
}
.va-search input::placeholder { color: #8a8a8a; }
.va-search input:focus {
  border-color: #7a92b0;
  box-shadow: 0 0 0 3px rgba(122,146,176,0.18);
  transform: translateY(-1px);
}
.va-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #8a8a8a;
}

/* Header actions */
.va-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
/* ===== LANGUAGE SELECTOR — Professional ===== */
.va-lang-dropdown { position: relative; }

.va-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px 7px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(13,25,48,0.16);
  background: rgba(255,255,255,0.92);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(13,25,48,0.07);
  white-space: nowrap;
}
.va-lang-btn:hover,
.va-lang-dropdown.open .va-lang-btn {
  border-color: var(--gold-dark);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(13,25,48,0.12);
}

/* Flag chip */
.va-lang-flag {
  width: 18px;
  height: 13px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.20);
}
.va-lang-flag svg { width: 18px; height: 13px; display: block; }

/* Globe icon */
.va-lang-globe {
  width: 13px; height: 13px;
  color: var(--gold-dark);
  flex-shrink: 0;
}

/* Chevron animation */
.va-lang-chevron {
  width: 11px; height: 11px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.va-lang-dropdown.open .va-lang-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.va-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 178px;
  background: #ffffff;
  border: 1px solid rgba(13,25,48,0.09);
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(13,25,48,0.14), 0 4px 12px rgba(13,25,48,0.05);
  padding: 6px;
  display: none;
  z-index: 200;
}
.va-lang-dropdown.open .va-lang-menu {
  display: block;
  animation: vaLangIn 0.18s ease both;
}
@keyframes vaLangIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}

/* Language items */
.va-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.12s;
  cursor: pointer;
}
.va-lang-item:hover { background: #f1f5fc; }
.va-lang-item.active {
  background: linear-gradient(135deg, #0d1930, #0b1426);
  color: #e8edf4;
}
.va-lang-item-name { flex: 1; }
.va-lang-item-code {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.va-lang-item.active .va-lang-item-code { color: rgba(200,213,227,0.65); }
.va-lang-check {
  width: 13px; height: 13px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Mobile */
.va-mobile-lang { padding: 8px 16px 12px; }
.va-lang-dropdown--mobile { width: 100%; }
.va-lang-dropdown--mobile .va-lang-btn {
  width: 100%;
  justify-content: flex-start;
}
.va-lang-dropdown--mobile .va-lang-menu {
  position: relative;
  top: 4px;
  right: auto;
  width: 100%;
  box-shadow: 0 8px 20px rgba(13,25,48,0.10);
}
.va-sell-btn {
  font-size: 12px !important;
  padding: 8px 16px !important;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.va-sell-btn svg { flex-shrink: 0; }
.va-connect-btn {
  font-size: 12px !important;
  padding: 8px 16px !important;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1.5px solid rgba(0,0,0,.15);
  color: #1a1a1a;
  background: transparent;
  border-radius: var(--radius-md);
  transition: all .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.va-connect-btn:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
  background: rgba(0,0,0,.04);
}
.va-connect-btn svg { flex-shrink: 0; }
.va-header-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid rgba(0,0,0,0.08);
  color: #3a3a3a;
  font-size: 18px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.va-header-icon:hover {
  background: rgba(0,0,0,0.04);
  color: #1a1a1a;
  border-color: rgba(0,0,0,0.15);
}
.va-header-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.va-header-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--bg-dark);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* --- BARRE 2 : Categories --- */
.va-cats {
  position: sticky;
  top: var(--header-height);
  z-index: 99;
  background: linear-gradient(180deg, #0d1930 0%, #0b1426 100%);
  border-bottom: 1px solid rgba(159,179,204,0.12);
  height: var(--cats-height);
  overflow: hidden;
}
.va-cats-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.va-cats-inner::-webkit-scrollbar { display: none; }
.va-cats-inner a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(230,231,236,0.85);
  white-space: nowrap;
  border-radius: var(--radius-full);
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.va-cats-inner a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.06);
}
.va-cats-inner a.active {
  color: #ffffff;
  background: rgba(17,31,54,0.85);
}
.va-cats-inner a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* --- SUB CATEGORIES (chips sous la nav) --- */
.va-subcats {
  background: #f7f9fd;
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.va-subcats-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 24px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.va-subcats-inner::-webkit-scrollbar { display: none; }
.va-subcat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #d9deeb;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15,23,42,0.06);
  transition: transform .12s ease, box-shadow .16s ease, border-color .12s ease;
  white-space: nowrap;
}
.va-subcat-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15,23,42,0.10);
  border-color: #c8d2e5;
}
.va-subcat-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(214,163,62,0.18);
}

/* Trust guarantee bar */
.va-trust-bar {
  background: linear-gradient(180deg, #0e1b2f 0%, #081222 100%);
  color: rgba(236,241,248,0.9);
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(120,160,210,0.25);
}
.va-trust-bar-track {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 0;
  animation: trustMarquee 30s linear infinite;
  width: max-content;
}
.va-trust-bar-track:hover { animation-play-state: paused; }
@keyframes trustMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.va-trust-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 36px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.va-trust-bar-item svg { color: var(--gold); flex-shrink: 0; }
.va-trust-bar-sep {
  width: 1px;
  height: 16px;
  background: rgba(120,160,210,0.35);
  flex-shrink: 0;
}

/* --- Mobile search bar --- */
.va-mobile-search {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 8px 16px;
}
.va-mobile-search.open { display: block; }
.va-mobile-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: var(--radius-full);
  padding: 8px 14px;
}
.va-mobile-search-inner svg { color: #8a8a8a; flex-shrink: 0; }
.va-mobile-search-inner input {
  flex: 1;
  background: none;
  border: none;
  color: #1a1a1a;
  font-size: 14px;
  outline: none;
}
.va-mobile-search-inner input::placeholder { color: #8a8a8a; }

/* Burger menu */
.va-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.va-burger span {
  width: 22px;
  height: 2px;
  background: #3a3a3a;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.va-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.va-burger.open span:nth-child(2) { opacity: 0; }
.va-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.va-mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--header-height) + var(--topbar-height));
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14,12,11,0.98);
  backdrop-filter: blur(20px);
  z-index: 98;
  padding: 16px;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.va-mobile-menu.open { display: flex; }
.va-mobile-menu a {
  display: block;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(246,240,230,0.55);
  border-bottom: 1px solid rgba(159,179,204,0.08);
  transition: color 0.2s, padding-left 0.2s;
}
.va-mobile-menu a:hover { color: var(--gold-light); padding-left: 24px; }
.va-mobile-separator {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding: 18px 16px 6px;
  border: none;
}
.va-mobile-sell {
  color: var(--gold-light) !important;
  font-weight: 600 !important;
}

/* --- BOTTOM NAV (mobile sticky) --- */
.va-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(10,14,22,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.28);
  /* iOS safe area (home indicator) */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.va-bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px 12px;
  color: rgba(231,234,244,0.72);
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
  touch-action: manipulation;
  min-height: 44px;
}
.va-bottom-link svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}
.va-bottom-link.active,
.va-bottom-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.05);
}

@media (max-width: 960px) {
  .va-bottom-nav { display: grid; }
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
}

/* Chat widget above bottom nav on mobile */
@media (max-width: 960px) {
  #vaChatBtn  { bottom: 82px; }
  #vaChatPopup { bottom: 160px; }
}

/* --- MINI CART OVERLAY --- */
.va-minicart-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.va-minicart-overlay.open { opacity: 1; pointer-events: auto; }
.va-minicart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.va-minicart-overlay.open .va-minicart-panel { transform: translateX(0); }
.va-minicart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.va-minicart-header h3 { font-family: var(--font-display); font-size: 20px; color: var(--gold); }
.va-minicart-close {
  width: 32px; height: 32px;
  border: none; background: var(--bg-surface);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.va-minicart-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.va-minicart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.va-minicart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
/* Mini-cart — full width on mobile */
@media (max-width: 480px) {
  .va-minicart-panel  { width: 100vw; }
  .va-minicart-header { padding: 14px; }
  .va-minicart-items  { padding: 12px 14px; }
  .va-minicart-footer { padding: 14px; }
}

/* --- BREADCRUMB --- */
.va-breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.va-breadcrumb a { color: var(--text-muted); }
.va-breadcrumb a:hover { color: var(--sage); }
.va-breadcrumb .sep { color: var(--text-muted); opacity: 0.4; }
.va-breadcrumb .current { color: var(--sage); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #141211;
  box-shadow: 0 8px 20px rgba(159,179,204,0.25);
  font-weight: 700;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(159,179,204,0.35);
  color: #141211;
}
.btn-outline {
  background: transparent;
  color: var(--taupe);
  border: 1px solid var(--taupe);
}
.btn-outline:hover {
  background: rgba(92,81,71,0.08);
  color: var(--taupe-soft);
}
.btn-dark {
  background: #2d2721;
  color: #fdfbf7;
  border: 1px solid rgba(0,0,0,0.12);
}
.btn-dark:hover {
  background: #362f28;
  border-color: rgba(0,0,0,0.18);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { opacity: 0.9; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-block { width: 100%; }

/* --- CARDS — Marketplace Product Card --- */
.card {
  background: #ffffff;
  border: 1px solid #e3d9cb;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-surface);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.card-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(22,18,15,0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s, background 0.2s;
}
.card-favorite:hover,
.card-favorite.active { color: var(--danger); background: rgba(231,76,60,0.15); }
.card-favorite svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.card-favorite.active svg { fill: currentColor; }
.card-sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22,18,15,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.card-sold-overlay span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--danger);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid var(--danger);
  padding: 6px 20px;
  border-radius: var(--radius-sm);
  transform: rotate(-8deg);
}
.card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.card-title:hover { color: var(--gold); }
.card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-display);
}
.card-price-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-countdown {
  font-size: 12px;
  font-weight: 600;
  color: var(--warning);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-countdown.urgent { color: var(--danger); }
.card-shipping {
  font-size: 11px;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-actions {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.card-actions .btn { flex: 1; font-size: 12px; padding: 9px 12px; }

/* --- BADGES --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.badge-auction { background: #f97316; color: #fff; }
.badge-buynow { background: var(--info); color: #fff; }
.badge-sold { background: var(--danger); color: #fff; }
.badge-new { background: var(--gold); color: var(--bg-dark); }
.badge-freeship { background: var(--success); color: #fff; }
.badge-premium { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--bg-dark); }

/* --- GRID MARKETPLACE --- */
.grid-marketplace {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* --- SIDEBAR FILTERS --- */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + var(--cats-height) + 20px);
  align-self: flex-start;
  max-height: calc(100vh - var(--header-height) - var(--cats-height) - 40px);
  overflow-y: auto;
}
.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
}
.sidebar-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s;
}
.sidebar-item:hover { color: var(--gold-light); }
.sidebar-item input[type="radio"],
.sidebar-item input[type="checkbox"] {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.sidebar-item .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 1px 8px;
  border-radius: var(--radius-full);
}

/* --- FORMS --- */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a70' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-row {
  display: flex;
  gap: 12px;
}
.form-row > * { flex: 1; }

/* --- TOOLBAR (catalogue) --- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.toolbar-count {
  font-size: 14px;
  color: var(--text-muted);
}
.toolbar-count strong { color: var(--text-primary); }
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toolbar-sort {
  padding: 7px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
}
.toolbar-sort:focus { border-color: var(--gold); }
.view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all 0.15s;
}
.view-btn:hover { border-color: var(--border-strong); color: var(--text-secondary); }
.view-btn.active { background: var(--gold); color: var(--bg-dark); border-color: var(--gold); }

/* --- PAGINATION --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 0;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .active {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
  font-weight: 700;
}
.pagination .dots { border: none; background: none; }

/* --- FOOTER --- */
.va-footer {
  background: linear-gradient(180deg, #141c2b 0%, #0f1724 100%);
  color: var(--text-primary);
  padding: 86px 24px 44px;
  margin-top: 80px;
}
.va-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
}
.va-footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.va-footer-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 18px 0 16px;
}
.va-footer-logo {
  width: 74px;
  height: auto;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.28));
}
.va-footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: #cfc6b9;
  transition: color 0.16s ease;
}
.va-footer-col a:hover { color: var(--gold-light); }
.va-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.va-footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.va-footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.va-footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(159,179,204,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(255,255,255,0.04);
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.va-footer-social a:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: transparent;
  color: var(--bg-dark);
  transform: translateY(-2px);
}
.va-footer-cookie {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold-light);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}
.va-footer-cookie:hover { color: #ffffff; }
.va-footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 13px;
  color: #b0a494;
}

/* --- HERO SECTION --- */
.va-hero {
  position: relative;
  background: linear-gradient(135deg, #1a1411 0%, #261d16 50%, #1a1411 100%);
  padding: 60px 24px 50px;
  text-align: center;
  overflow: hidden;
}
.va-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--gold-glow), transparent 60%);
  pointer-events: none;
}
.va-hero-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  z-index: 1;
}
.va-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 16px;
}
.va-hero h1 span { color: var(--gold); }
.va-hero p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.va-hero-search {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.va-hero-search input {
  width: 100%;
  padding: 16px 60px 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
}
.va-hero-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.va-hero-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 20px;
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.va-hero-search button:hover { background: var(--gold-light); }

/* --- CATEGORY GRID (homepage) --- */
.va-categories {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px;
}
.va-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.va-cat-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  overflow: hidden;
}
.va-cat-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.va-cat-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}
.va-cat-card-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.va-cat-card-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- TRUST BANNER --- */
.va-trust {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.va-trust-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.va-trust-icon {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--gold);
}
.va-trust-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.va-trust-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- CONTAINER --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- LAYOUT FLEX (catalogue) --- */
.layout-flex {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.layout-main { flex: 1; min-width: 0; }

/* --- LIST VIEW MODE --- */
.grid-marketplace.list-mode {
  grid-template-columns: 1fr;
}
.grid-marketplace.list-mode .card {
  flex-direction: row;
  align-items: stretch;
}
.grid-marketplace.list-mode .card-img {
  width: 220px;
  flex-shrink: 0;
  aspect-ratio: auto;
}
.grid-marketplace.list-mode .card-body {
  padding: 16px 20px;
  justify-content: center;
}
.grid-marketplace.list-mode .card-actions {
  flex-direction: column;
  border-top: none;
  border-left: 1px solid var(--border);
  padding: 16px;
  justify-content: center;
  min-width: 160px;
}

/* --- ALERT / MESSAGE --- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid;
}
.alert-success { background: rgba(39,174,96,0.1); border-color: rgba(39,174,96,0.3); color: var(--success); }
.alert-danger { background: rgba(231,76,60,0.1); border-color: rgba(231,76,60,0.3); color: var(--danger); }
.alert-info { background: rgba(52,152,219,0.1); border-color: rgba(52,152,219,0.3); color: var(--info); }
.alert-warning { background: rgba(243,156,18,0.1); border-color: rgba(243,156,18,0.3); color: var(--warning); }

/* --- TABLE --- */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  background: var(--bg-surface);
}
tr:hover td { background: rgba(159,179,204,0.03); }

/* --- EMPTY STATE --- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 15px; margin-bottom: 20px; }

/* --- LOADING --- */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE — Mobile Premium
   ============================================================ */

/* ── 1100px : Large tablet ── */
@media (max-width: 1100px) {
  .grid-marketplace { grid-template-columns: repeat(3, 1fr); }
  .va-footer-inner { grid-template-columns: repeat(2, 1fr); }
  .va-trust { grid-template-columns: repeat(2, 1fr); }
}

/* ── 960px : Tablet — header slightly tighter ── */
@media (max-width: 960px) {
  .va-header-inner { padding: 0 20px; }
}

/* ── 900px : Sidebar becomes overlay ── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .sidebar.mobile-open {
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    max-width: 85vw;
    z-index: 160;
    background: var(--bg-dark);
    border-right: 1px solid var(--border);
    box-shadow: 12px 0 40px rgba(0,0,0,0.6);
    overflow-y: auto;
    padding: 20px;
  }
  .mobile-filter-btn { display: inline-flex; }
  .va-search { display: none; }
  .va-mobile-search { display: block; }
  .va-sell-btn { display: none !important; }
  .va-connect-btn { display: none !important; }
}

/* ── 768px : Mobile landscape ── */
@media (max-width: 768px) {
  /* Header */
  .va-cats { display: none; }
  .va-burger { display: flex; }
  .va-header-inner { padding: 0 14px; gap: 12px; }
  .va-logo-text { font-size: 19px; }
  .va-logo-sub { display: none; }
  .va-topbar { font-size: 11px; letter-spacing: 0.04em; }
  .va-topbar-inner { gap: 16px; }

  /* Grid */
  .grid-marketplace { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Hero */
  .va-hero { padding: 36px 16px 32px; }
  .va-hero h1 { font-size: 28px; }
  .va-trust { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Layout */
  .container, .container-narrow { padding: 0 16px; }
  .va-breadcrumb { padding: 10px 14px; font-size: 12px; }
  .toolbar { flex-wrap: wrap; gap: 8px; }
  .form-row { flex-direction: column; }

  /* List mode */
  .grid-marketplace.list-mode .card { flex-direction: column; }
  .grid-marketplace.list-mode .card-img { width: 100%; aspect-ratio: 4/3; }
  .grid-marketplace.list-mode .card-actions { flex-direction: row; border-left: none; border-top: 1px solid var(--border); min-width: auto; }
}

/* ── 480px : Mobile portrait ── */
@media (max-width: 480px) {
  /* Topbar hidden — reclaim screen space */
  .va-topbar { display: none; }
  .va-mobile-menu { top: var(--header-height); }

  /* Header compact */
  .va-header-inner { padding: 0 10px; gap: 8px; }
  .va-logo { gap: 7px; }
  .va-logo-img { height: 30px; }
  .va-logo-text { font-size: 16px; letter-spacing: 0.06em; }
  .va-header-icon { width: 36px; height: 36px; }

  /* Grid */
  .grid-marketplace { grid-template-columns: 1fr; }
  .va-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .va-trust { grid-template-columns: 1fr; }

  /* Container */
  .container, .container-narrow { padding: 0 12px; }

  /* Hero */
  .va-hero { padding: 28px 12px 24px; }
  .va-hero h1 { font-size: clamp(22px, 7vw, 28px); }
  .va-hero-search input { padding: 13px 14px; }
  .va-hero-search button { position: static; transform: none; width: 100%; margin-top: 10px; border-radius: var(--radius-full); }
  .va-hero-search { display: flex; flex-direction: column; }

  /* Toolbar */
  .toolbar { flex-direction: column; align-items: flex-start; }

  /* Trust bar */
  .va-trust-bar-item { padding: 0 18px; font-size: 11px; }

  /* Typography */
  .section-title { font-size: clamp(20px, 7vw, 30px); }
  .section-subtitle { font-size: 11px; margin-bottom: 24px; }
}

/* ── 360px : Very small phones ── */
@media (max-width: 360px) {
  .va-logo-text { font-size: 14px; }
  .va-header-inner { gap: 5px; }
  .va-header-icon { width: 32px; height: 32px; }
  .va-logo-img { height: 27px; }
}

/* --- UTILITY --- */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.mobile-filter-btn { display: none; }

/* Chat widget drag affordance */
.va-chat-widget { cursor: grab; touch-action: none; }
.va-chat-widget.dragging { cursor: grabbing; }
