:root {
  --bg: #0f1115;
  --bg-soft: #161922;
  --bg-card: #1c2030;
  --border: #2a2f42;
  --text: #e8eaf2;
  --muted: #98a0b3;
  --primary: #ffd23f;
  --primary-ink: #1a1a1a;
  --accent: #25d366;
  --danger: #ff4d6d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15,17,21,.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 800;
  border-radius: 10px;
  font-size: 20px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 16px; }
.brand-text small { color: var(--muted); font-size: 12px; }

.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--text);
  font-size: 14px;
  opacity: .85;
  transition: opacity .15s ease;
}
.nav a:hover { opacity: 1; }

.header-actions { display: flex; gap: 12px; align-items: center; }

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
}
.lang-btn.active {
  background: var(--primary);
  color: var(--primary-ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .05s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}
.btn-primary:hover { background: #ffdc66; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: #3a4159; }

/* Hero */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(1000px 400px at 50% -100px, rgba(255,210,63,.15), transparent 60%),
    linear-gradient(180deg, #11141c, var(--bg));
  border-bottom: 1px solid var(--border);
}
.hero-inner { text-align: center; max-width: 780px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  margin: 0 0 14px;
}
.hero p { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-features {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 28px 0 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.hero-features li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); display: inline-block; }

/* Sections */
section { padding: 64px 0; }
section h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 6px;
}

/* Brand grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.brand-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s ease, transform .1s ease, background .15s ease;
  color: var(--text);
}
.brand-chip:hover { border-color: var(--primary); transform: translateY(-2px); }
.brand-chip.active { border-color: var(--primary); background: rgba(255,210,63,.08); }
.brand-chip small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 4px; }

/* Catalog */
.catalog-header { margin-bottom: 20px; }
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 16px;
}
.search-input, .select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease;
}
.search-input:focus, .select:focus { border-color: var(--primary); }
.results-count { font-size: 13px; margin-bottom: 16px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, border-color .15s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: #3a4159;
  box-shadow: var(--shadow);
}
.product-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #232838, #161a26);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-media .placeholder {
  display: grid;
  place-items: center;
  width: 56%;
  height: 56%;
  color: var(--primary);
  opacity: .85;
}
.product-media .placeholder svg { width: 100%; height: 100%; }
.product-media .placeholder.cat-brakes { color: #ff8a65; }
.product-media .placeholder.cat-engine { color: #ffd23f; }
.product-media .placeholder.cat-suspension { color: #7bd389; }
.product-media .placeholder.cat-body { color: #6ec1ff; }
.product-media .placeholder.cat-electrical { color: #ffce4f; }
.product-media .placeholder.cat-filters { color: #b388ff; }
.product-media .placeholder.cat-transmission { color: #80deea; }
.product-media .placeholder.cat-cooling { color: #64b5f6; }
.product-media .placeholder.cat-exhaust { color: #b0bec5; }
.product-media .placeholder.cat-interior { color: #f48fb1; }
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.product-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-brand {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.product-sku { font-size: 12px; color: var(--muted); }
.product-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
}
.price { font-size: 18px; font-weight: 700; color: var(--primary); }
.price-on-request { font-size: 14px; color: var(--muted); font-weight: 600; }

.product-actions {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
}
.btn-whatsapp {
  background: var(--accent);
  color: #fff;
  flex: 1;
}
.btn-whatsapp:hover { background: #1fb957; }

/* Empty */
.empty {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-features li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-features strong { color: var(--primary); font-size: 14px; }
.about-features span { color: var(--muted); font-size: 13px; }

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color .15s ease;
}
.faq-list details[open] { border-color: var(--primary); }
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--primary);
  font-size: 22px;
  font-weight: 400;
  transition: transform .15s ease;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .15s ease, transform .1s ease;
}
.contact-card[href]:hover { border-color: var(--primary); transform: translateY(-2px); }
.contact-icon { font-size: 24px; }
.contact-label { color: var(--muted); font-size: 13px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

/* Floating WhatsApp */
.fab-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37,211,102,.4);
  z-index: 60;
  transition: transform .15s ease;
}
.fab-whatsapp:hover { transform: scale(1.06); }

/* Responsive */
@media (max-width: 860px) {
  .nav { display: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search-input { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .header-actions .btn { display: none; }
  section { padding: 44px 0; }
  .hero { padding: 44px 0; }
}
