/* main.css — Sistem vizual inchirierisculeauto.ro (cap. 13.2)
   Mobile-first · contrast mare · butoane ≥ 48px · text ≥ 16px · BEM light · fără !important */

/* ---------- Fonturi self-hosted ---------- */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/roboto-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/roboto-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/raleway-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/raleway-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Variabile ---------- */
:root {
  /* Paletă: roșu + negru (automotor-sm.ro) */
  --bg: #F7F7F7; --surface: #FFFFFF; --surface-2: #F2F2F2;
  --text: #191919; --text-2: #444444; --text-3: #747474;
  --primary: #E60000; --primary-hover: #B80000; --primary-soft: #FDE7E7;
  --accent: #FF0000; --accent-soft: #FFE5E5; --accent-text: #9B0000;
  --code: #E67300; --code-dark: #B35A00; /* portocaliu pentru codurile sculelor din listing (dark = text mic, contrast AA) */
  --success: #1E9E4A; --success-soft: #E3F5E9;
  --error: #C40000; --error-soft: #FDE7E7;
  --busy: #A8A8A8; --border: #E4E4E4; --border-strong: #CFCFCF;
  --header-bg: #191919; --header-text: #FFFFFF; --header-bg-2: #1E1E1E;
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-head: 'Raleway', 'Roboto', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 4px; --radius-sm: 3px; --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06); --shadow: 0 3px 10px rgba(0, 0, 0, .08); --shadow-lg: 0 10px 28px rgba(0, 0, 0, .18);
  --s1: 4px; --s2: 6px; --s3: 10px; --s4: 12px; --s5: 16px; --s6: 20px; --s8: 24px; --s10: 32px; --s12: 36px; --s16: 48px;
  --container: 1240px; --tap: 44px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 var(--s3); line-height: 1.2; font-weight: 700; font-family: var(--font-head); letter-spacing: 0; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.1rem; } h4 { font-size: 1rem; }
@media (min-width: 768px) { h1 { font-size: 1.85rem; } h2 { font-size: 1.45rem; } h3 { font-size: 1.15rem; } }
h2, h3 { text-transform: none; }
p { margin: 0 0 var(--s4); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.25rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, .mono { font-family: var(--mono); font-size: .95em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none; }
/* icon-uri inline: dimensiune implicită relativă la text */
svg.icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.25em; flex: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 768px) { .container { padding: 0 var(--s6); } }
.section { padding: var(--s8) 0; }
@media (min-width: 768px) { .section { padding: var(--s12) 0; } }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); }
.section__head h2 { margin: 0; }
.section__head a { font-weight: 600; white-space: nowrap; }
.grid { display: grid; gap: var(--s4); }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 540px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
.grid--products { grid-template-columns: 1fr; }
@media (min-width: 540px) { .grid--products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--products { grid-template-columns: repeat(3, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .grid--products { grid-template-columns: repeat(4, 1fr); } }
.grid--products.grid--sidebar { grid-template-columns: 1fr; }
@media (min-width: 540px) { .grid--products.grid--sidebar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .grid--products.grid--sidebar { grid-template-columns: repeat(3, 1fr); } }
.stack > * + * { margin-top: var(--s4); }
.row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.row--between { justify-content: space-between; }
.text-center { text-align: center; } .text-right { text-align: right; }
.text-2 { color: var(--text-2); } .text-3 { color: var(--text-3); } .small { font-size: .9rem; } .tiny { font-size: .8rem; }
.strong { font-weight: 600; } .mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-4 { margin-top: var(--s4); } .mb-4 { margin-bottom: var(--s4); } .mt-6 { margin-top: var(--s6); } .mb-6 { margin-bottom: var(--s6); }
.hide-mobile { display: none; } @media (min-width: 900px) { .hide-mobile { display: initial; } .hide-desktop { display: none !important; } }

/* ---------- Header ---------- */
.header { background: var(--header-bg); color: var(--header-text); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.header a { color: inherit; }
.header a:hover { text-decoration: none; }
.header__top { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s1) 0; }
.header__logo { display: flex; align-items: center; gap: var(--s2); font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.header__logo svg { width: 32px; height: 32px; flex: none; }
.header__logo span em { color: var(--accent); font-style: normal; }
.header__search { flex: 1; position: relative; display: none; }
@media (min-width: 900px) { .header__search { display: block; max-width: 640px; margin: 0 var(--s4); } }
.header__actions { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.header__btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-width: var(--tap); min-height: var(--tap); padding: 0 var(--s3); border-radius: var(--radius); background: transparent; border: 0; color: inherit; font-weight: 500; position: relative; }
.header__btn:hover { background: rgba(255,255,255,.1); }
.header__btn svg { width: 24px; height: 24px; flex: none; }
.header__btn .label { display: none; } @media (min-width: 1100px) { .header__btn .label { display: inline; } }
@media (max-width: 479px) { .header__actions { gap: 0; } .header__btn { padding: 0; min-width: 38px; } .header__logo { font-size: .88rem; gap: 6px; } .header__logo svg { width: 28px; height: 28px; } }
@media (max-width: 389px) { .header__actions .header__btn[aria-label="WhatsApp"] { display: none; } .header__logo { font-size: .76rem; gap: 4px; } }
.header__badge { position: absolute; top: 2px; left: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.header__phone { display: none; align-items: center; gap: var(--s2); font-weight: 600; font-family: var(--mono); font-size: .95rem; padding: 0 var(--s3); }
@media (min-width: 1200px) { .header__phone { display: inline-flex; } }
.header__nav { display: none; background: var(--header-bg-2); border-top: 2px solid var(--primary); }
@media (min-width: 900px) { .header__nav { display: block; } }
.nav { display: flex; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: var(--s1); min-height: 40px; padding: 0 var(--s3); font-weight: 500; font-size: .9rem; text-transform: uppercase; letter-spacing: .02em; font-family: var(--font-head); font-weight: 600; border-radius: var(--radius-sm); white-space: nowrap; }
.nav__link svg { width: 16px; height: 16px; }
.nav__link:hover, .nav__item:hover > .nav__link { background: var(--primary); }
.nav__link--accent { color: #FF4D4D; }
.nav__mega { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--s3); z-index: 60; }
.nav__item:hover .nav__mega, .nav__item:focus-within .nav__mega { display: block; }
.nav__mega a { display: block; padding: var(--s2) var(--s3); border-radius: var(--radius-sm); color: var(--text); }
.nav__mega a:hover { background: var(--surface-2); }
.nav__mega .mega__title { font-weight: 700; padding: var(--s2) var(--s3); }
.header__searchbar { padding: 0 0 var(--s3); }
@media (min-width: 900px) { .header__searchbar { display: none; } }

/* Căutare */
.search { position: relative; }
.search__input { width: 100%; min-height: 40px; padding: 0 var(--tap) 0 var(--s4); border-radius: var(--radius); border: 2px solid transparent; background: #fff; color: var(--text); font-size: 1rem; }
.search__input:focus { border-color: var(--primary); outline: none; }
.search__btn { position: absolute; right: 0; top: 0; bottom: 0; width: var(--tap); display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--text-2); border-radius: 0 var(--radius) var(--radius) 0; }
.search__btn svg { width: 22px; height: 22px; }
.search__results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); z-index: 70; max-height: 70vh; overflow: auto; }
.search__group { padding: var(--s2) 0; border-bottom: 1px solid var(--border); }
.search__group:last-child { border-bottom: 0; }
.search__group-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: var(--s1) var(--s4); font-weight: 600; }
.search__item { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s4); min-height: 44px; color: var(--text); }
.search__item:hover, .search__item.is-active { background: var(--primary-soft); text-decoration: none; }
.search__item img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); flex: none; }
.search__item mark { background: #FFF1B8; color: inherit; padding: 0 2px; border-radius: 2px; }
.search__item .meta { font-size: .85rem; color: var(--text-3); }
.search__item .price { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* Drawer mobil */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.is-open { display: block; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .6); }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); background: var(--surface); color: var(--text); overflow: auto; padding: var(--s4); box-shadow: var(--shadow-lg); animation: slideIn .2s ease-out; }
.drawer__panel--right { left: auto; right: 0; animation: slideInRight .2s ease-out; }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.drawer__close { min-width: var(--tap); min-height: var(--tap); border: 0; background: var(--surface-2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.drawer__close svg { width: 24px; height: 24px; }
.drawer .menu { list-style: none; margin: 0; padding: 0; }
.drawer .menu a { display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); padding: var(--s2) var(--s3); border-radius: var(--radius); color: var(--text); font-weight: 500; }
.drawer .menu a:hover { background: var(--surface-2); text-decoration: none; color: var(--primary); }
.drawer .menu .menu__sub a { font-weight: 400; padding-left: var(--s6); color: var(--text-2); }
.drawer .menu__title { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; padding: var(--s4) var(--s3) var(--s2); }

/* ---------- Butoane ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s5); border-radius: var(--radius); border: 2px solid transparent; font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .02em; font-family: var(--font-head); line-height: 1.2; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--accent { background: var(--text); color: #fff; }
.btn--accent:hover { background: #000; }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--ghost:hover { background: var(--primary-soft); }
.btn--danger { background: var(--error); color: #fff; }
.btn--danger:hover { background: #B91C1C; }
.btn--success { background: var(--success); color: #fff; }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1DA851; }
.btn--sm { min-height: 36px; padding: 0 var(--s3); font-size: .8rem; }
.btn--lg { min-height: 50px; padding: 0 var(--s8); font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 3px; margin-bottom: var(--s3); }
.field__label { font-weight: 600; font-size: .95rem; }
.field__label .req { color: var(--error); }
.field__hint { font-size: .85rem; color: var(--text-3); }
.field__error { font-size: .875rem; color: var(--error); font-weight: 500; display: none; }
.field.has-error .field__error { display: block; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }
.input, .select, .textarea { width: 100%; min-height: 42px; padding: var(--s2) var(--s3); border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); font-size: 1rem; color: var(--text); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--text); outline: 2px solid #ddd; outline-offset: 0; }
.textarea { min-height: 120px; resize: vertical; }
.combo { position: relative; }
.combo__list { position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 60; max-height: 240px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.combo__item, .combo__empty { padding: var(--s2) var(--s3); font-size: .9375rem; }
.combo__item { cursor: pointer; }
.combo__item:hover, .combo__item.is-active { background: var(--surface-2); color: var(--primary); }
.combo__empty { color: var(--text-3); }
.input:disabled { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--s3) center; padding-right: var(--s10); }
.checkbox, .radio { display: flex; align-items: flex-start; gap: var(--s3); min-height: var(--tap); padding: var(--s2) 0; cursor: pointer; }
.checkbox input, .radio input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--primary); }
.form-row { display: grid; gap: 0 var(--s4); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } .form-row--3 { grid-template-columns: 1fr 1fr 1fr; } }
.input-group { display: flex; }
.input-group .input { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stepper__btn { width: var(--tap); height: var(--tap); border: 0; background: var(--surface-2); font-size: 1.4rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.stepper__btn:hover { background: var(--border); }
.stepper__btn:disabled { opacity: .4; cursor: not-allowed; }
.stepper__value { min-width: 64px; text-align: center; font-weight: 700; font-size: 1.1rem; border: 0; height: var(--tap); }

/* ---------- Carduri ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card__body { padding: var(--s4); }
@media (min-width: 768px) { .card__body { padding: var(--s5); } }
.card__title { margin-bottom: var(--s2); }
.card--flat { box-shadow: none; }

/* Card produs */
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .15s, transform .15s; height: 100%; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card__img { aspect-ratio: 4 / 3; background: var(--surface-2); display: block; position: relative; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: var(--s3) var(--s4) var(--s4); display: flex; flex-direction: column; gap: var(--s1); flex: 1; }
.product-card__brand { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 600; }
.product-card__title { font-size: .98rem; font-weight: 600; font-family: var(--font-head); margin: 0; line-height: 1.3; }
.product-card__title a { color: var(--text); }
.product-card__sku { font-family: var(--mono); font-size: 1.2rem; font-weight: 700; color: var(--code); letter-spacing: .02em; line-height: 1.2; }
.product-card__replace { font-size: .85rem; color: var(--text-2); margin-top: var(--s1); }
.product-card__replace strong { color: var(--text); }
.product-card__codes { font-family: var(--mono); font-size: .8rem; color: var(--code-dark); display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); }
.product-card__compat { font-size: .85rem; color: var(--text-2); }
.product-card__footer { margin-top: auto; padding-top: var(--s3); display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); }
.product-card__price { font-size: 1.25rem; font-weight: 800; line-height: 1; color: var(--primary); font-family: var(--font-head); }
.product-card__price small { font-size: .8rem; font-weight: 500; color: var(--text-3); }
.product-card__cta { margin-top: var(--s2); }
.availability { display: inline-flex; align-items: center; gap: var(--s1); font-size: .8rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.availability--ok { background: var(--success-soft); color: #166534; }
.availability--next { background: #FFF1B8; color: #7A5A00; }
.availability--none { background: var(--error-soft); color: #991B1B; }
.availability::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- Badge-uri, chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; line-height: 1.4; }
.badge--gray { background: #F3F4F6; color: #374151; } .badge--blue { background: #DBEAFE; color: #1E40AF; } .badge--indigo { background: #E0E7FF; color: #3730A3; }
.badge--green { background: #DCFCE7; color: #166534; } .badge--amber { background: #FFF1B8; color: #7A5A00; } .badge--red { background: #FEE2E2; color: #991B1B; }
.badge--teal { background: #CCFBF1; color: #115E59; } .badge--purple { background: #EDE9FE; color: #5B21B6; }
.chip { display: inline-flex; align-items: center; gap: var(--s1); min-height: 36px; padding: 0 var(--s3); border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: .9rem; font-weight: 500; color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.chip.is-active { background: var(--text); border-color: var(--text); color: #fff; }
.chip--code { font-family: var(--mono); font-size: .85rem; }
.chip svg { width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---------- Alerte, toast ---------- */
.alert { padding: var(--s3) var(--s4); border-radius: var(--radius); border: 1px solid; margin-bottom: var(--s4); display: flex; gap: var(--s3); align-items: flex-start; }
.alert svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.alert--info { background: var(--primary-soft); border-color: #BFDBFE; color: #1E3A8A; }
.alert--success { background: var(--success-soft); border-color: #BBF7D0; color: #14532D; }
.alert--warning { background: #FFF6D6; border-color: #F2D98A; color: #7A5A00; }
.alert--error { background: var(--error-soft); border-color: #FECACA; color: #7F1D1D; }
.toasts { position: fixed; bottom: var(--s4); left: var(--s4); right: var(--s4); z-index: 200; display: flex; flex-direction: column; gap: var(--s2); pointer-events: none; }
@media (min-width: 640px) { .toasts { left: auto; width: 380px; } }
.toast { pointer-events: auto; background: var(--header-bg); color: #fff; padding: var(--s3) var(--s4); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; gap: var(--s3); align-items: center; animation: toastIn .2s ease-out; font-weight: 500; }
.toast--success { border-left: 4px solid var(--success); } .toast--error { border-left: 4px solid var(--error); } .toast--info { border-left: 4px solid var(--primary); } .toast--warning { border-left: 4px solid #F2B300; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: var(--s4); }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .6); }
.modal__panel { position: relative; background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); padding: var(--s6); animation: toastIn .15s ease-out; }
.modal__panel--lg { max-width: 860px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.modal__head h3 { margin: 0; }
.modal__close { min-width: 44px; min-height: 44px; border: 0; background: var(--surface-2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.modal__close svg { width: 22px; height: 22px; }
.modal__foot { display: flex; justify-content: flex-end; gap: var(--s2); margin-top: var(--s6); }

/* ---------- Skeleton, stări goale ---------- */
.skeleton { background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.empty { text-align: center; padding: var(--s12) var(--s4); color: var(--text-2); }
.empty svg { width: 48px; height: 48px; margin: 0 auto var(--s4); color: var(--busy); }
.empty h3 { color: var(--text); }

/* ---------- Breadcrumbs, paginare ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--s1); list-style: none; margin: 0 0 var(--s4); padding: 0; font-size: .875rem; color: var(--text-3); }
.breadcrumbs li + li::before { content: '/'; margin: 0 var(--s1); color: var(--busy); }
.breadcrumbs a { color: var(--text-2); }
.pagination { display: flex; flex-wrap: wrap; gap: var(--s1); justify-content: center; margin: var(--s6) 0; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--s2); border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 500; }
.pagination .is-active { background: var(--text); border-color: var(--text); color: #fff; }
.pagination a:hover { border-color: var(--primary); text-decoration: none; }

/* ---------- Tabele ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: var(--s3) var(--s4); text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FAFBFC; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Hero, secțiuni homepage ---------- */
.hero { background: linear-gradient(135deg, #191919 0%, #2A2A2A 70%, #3A0000 100%); color: #fff; padding: var(--s8) 0 var(--s10); position: relative; overflow: hidden; border-bottom: 3px solid var(--primary); }
.hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,0,0,.28), transparent 65%); pointer-events: none; }
.hero h1 { font-size: 1.7rem; margin-bottom: var(--s2); text-transform: uppercase; letter-spacing: .01em; }
@media (min-width: 768px) { .hero { padding: var(--s12) 0; } .hero h1 { font-size: 2.2rem; max-width: 760px; } }
.hero p { font-size: 1rem; color: #CFCFCF; max-width: 620px; }
.hero__search { max-width: 720px; margin-top: var(--s5); }
.hero__search .search__input { min-height: 48px; font-size: 1rem; }
.hero__quick { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); align-items: center; font-size: .85rem; color: #A8A8A8; }
.hero__quick a { color: #fff; background: rgba(255,255,255,.1); padding: 6px 12px; border-radius: 999px; font-family: var(--mono); font-size: .85rem; }
.hero__quick a:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.hero__stats { display: flex; flex-wrap: wrap; gap: var(--s6); margin-top: var(--s6); }
.hero__stat strong { display: block; font-size: 1.35rem; color: #FF3B3B; font-family: var(--font-head); }
.hero__stat span { font-size: .8rem; color: #A8A8A8; }

/* Selector auto */
.car-selector { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s4); box-shadow: var(--shadow); color: var(--text); }
.car-selector__title { display: flex; align-items: center; gap: var(--s2); font-weight: 700; margin-bottom: var(--s3); }
.car-selector__title svg { width: 24px; height: 24px; color: var(--primary); }
.car-selector__row { display: grid; gap: var(--s2); }
@media (min-width: 768px) { .car-selector__row { grid-template-columns: 1fr 1fr 1fr auto; } }

/* Categorii */
.cat-card { display: flex; align-items: center; gap: var(--s3); padding: var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); font-weight: 600; transition: border-color .15s, box-shadow .15s; }
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow); text-decoration: none; }
.cat-card__icon { width: 42px; height: 42px; border-radius: var(--radius); background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.cat-card__icon svg { width: 26px; height: 26px; }
.cat-card small { display: block; font-weight: 400; color: var(--text-3); font-size: .85rem; }

/* Cum funcționează */
.steps { display: grid; gap: var(--s4); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s5); position: relative; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: var(--s3); }
.step h3 { font-size: 1rem; }
.step p { margin: 0; color: var(--text-2); font-size: .95rem; }

/* Beneficii */
.benefit { display: flex; gap: var(--s3); align-items: flex-start; }
.benefit svg { width: 32px; height: 32px; color: var(--primary); flex: none; }
.benefit h4 { margin-bottom: var(--s1); }
.benefit p { margin: 0; color: var(--text-2); font-size: .95rem; }

/* Branduri */
.brands { display: flex; flex-wrap: wrap; gap: var(--s2); }
.brands a { padding: var(--s2) var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; color: var(--text-2); }
.brands a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--s2); }
.faq summary { padding: var(--s4); font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: var(--tap); }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--primary); }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 var(--s4) var(--s4); color: var(--text-2); }

/* ---------- Footer ---------- */
.footer { background: var(--header-bg); color: #BDBDBD; margin-top: var(--s10); padding: var(--s8) 0 var(--s5); font-size: .9rem; border-top: 3px solid var(--primary); }
.footer a { color: #E2E8F0; }
.footer a.footer__withdraw { color: #fff; font-weight: 700; text-decoration: underline; }
.footer__grid { display: grid; gap: var(--s6); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: var(--s3); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--s2); }
.footer p svg { color: var(--primary); margin-right: 4px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: var(--s6); padding-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; font-size: .85rem; color: #94A3B8; }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.footer__legal img { height: 40px; width: auto; background: #fff; border-radius: 4px; padding: 3px; }
.footer__pay { display: flex; gap: var(--s2); align-items: center; }
.footer__pay span { background: #fff; color: #111827; padding: 3px 8px; border-radius: 4px; font-size: .75rem; font-weight: 700; }

/* Cookie banner */
.cookie { position: fixed; bottom: 0; left: 0; right: 0; z-index: 180; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(0,0,0,.1); padding: var(--s4); display: none; }
.cookie.is-visible { display: block; }
.cookie { padding: var(--s3); }
.cookie .container { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; }
.cookie p { margin: 0; font-size: .9rem; color: var(--text-2); max-width: 720px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: var(--s1); border-bottom: 1px solid var(--border); margin-bottom: var(--s4); overflow-x: auto; }
.tabs button { border: 0; background: transparent; min-height: 42px; padding: 0 var(--s4); font-weight: 600; font-size: .95rem; font-family: var(--font-head); color: var(--text-2); border-bottom: 3px solid transparent; white-space: nowrap; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button.is-active { color: var(--text); border-color: var(--primary); }
.tabs button .badge { margin-left: 4px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ---------- Pagini simple ---------- */
.page-head { padding: var(--s6) 0 var(--s3); }
.page-head h1 { margin-bottom: var(--s2); }
.prose { max-width: 800px; }
.prose h2 { margin-top: var(--s8); } .prose h3 { margin-top: var(--s6); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--s4); }
.prose td, .prose th { border: 1px solid var(--border); padding: var(--s2) var(--s3); text-align: left; }
.auth { max-width: 460px; margin: var(--s10) auto; }
.auth .card__body { padding: var(--s6); }
.auth h1 { font-size: 1.5rem; }
.divider { display: flex; align-items: center; gap: var(--s3); color: var(--text-3); font-size: .85rem; margin: var(--s4) 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.price-big { font-size: 1.6rem; font-weight: 800; color: var(--primary); font-family: var(--font-head); }
.price-big small { font-size: 1rem; font-weight: 500; color: var(--text-3); }
.notice { font-size: .9rem; color: var(--text-2); background: var(--surface-2); padding: var(--s3); border-radius: var(--radius); }
.sticky-bar { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); padding: var(--s3) 0; z-index: 40; box-shadow: 0 -4px 12px rgba(0,0,0,.06); }
@media (min-width: 900px) { .sticky-bar { position: static; box-shadow: none; border: 0; padding: 0; } }

@media print {
  .header, .footer, .cookie, .toasts, .no-print { display: none; }
  body { background: #fff; }
}

/* [hidden] câștigă în fața regulilor de componentă (display:flex etc.) */
[hidden][hidden] { display: none; }
/* Poze / video colet (admin comandă + /comanda-media.php) */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 8px; }
.media-thumb { display: flex; flex-direction: column; gap: 4px; }
.media-thumb img, .media-thumb video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #000; display: block; }
.media-grid--large { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.media-grid--large img, .media-grid--large video { aspect-ratio: auto; max-height: 70vh; object-fit: contain; }
