/* ============================================================
   XBound Auto Export — stylesheet
   ============================================================ */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --navy-3: #1d4368;
  --accent: #ff6a00;
  --accent-dark: #e05f00;
  --red: #d7263d;
  --gold: #f5a623;
  --ink: #16202e;
  --muted: #5d6b7e;
  --line: #e3e9f0;
  --bg: #f4f6fa;
  --white: #ffffff;
  --ok: #0e9f6e;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(11, 37, 69, .08);
  --shadow-md: 0 6px 24px rgba(11, 37, 69, .10);
  --shadow-lg: 0 18px 48px rgba(11, 37, 69, .16);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 11px 22px; border-radius: 10px; transition: all .18s ease; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(255, 106, 0, .35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------- top utility bar ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .85); font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar-left { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; min-width: 0; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.tb-wa { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tb-wa a { color: #fff; font-weight: 600; }
.tb-wa a:hover { color: var(--accent); }
.wa-ico { width: 15px; height: 15px; fill: #25d366; flex-shrink: 0; }

.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.lang-btn:hover { background: rgba(255, 255, 255, .22); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); min-width: 150px; padding: 6px; display: none; z-index: 300; }
.lang-menu.open { display: block; }
.lang-menu button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 12px; font-size: 14px; color: var(--ink); border-radius: 7px; text-align: start; }
.lang-menu button:hover { background: var(--bg); }
.lang-menu button.active { color: var(--accent); font-weight: 700; }

.top-login { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.top-login:hover { color: var(--accent); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; }
.user-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 200; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.scrolled { box-shadow: var(--shadow-md); }
.header .container { display: flex; align-items: center; gap: 28px; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; letter-spacing: -.5px; color: var(--navy); }
.logo-mark { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); font-size: 19px; font-weight: 800; box-shadow: inset 0 0 0 1.5px rgba(255, 106, 0, .45); }
.logo em { font-style: normal; color: var(--accent); }
.logo small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a { padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.main-nav a:hover, .main-nav a.active { color: var(--accent); background: rgba(255, 106, 0, .08); }

.header-search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 200px; }
.header-search input { border: none; outline: none; background: none; font-size: 14px; width: 100%; color: var(--ink); }
.header-cta { flex-shrink: 0; }
.burger { display: none; font-size: 24px; color: var(--navy); }
.mobile-nav { display: none; flex-direction: column; gap: 2px; padding: 10px 20px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
.mobile-nav.open { display: flex; }
.mobile-nav a:not(.btn) { padding: 11px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.mobile-nav a:not(.btn):hover { color: var(--accent); background: rgba(255, 106, 0, .08); }
.mobile-nav .mobile-nav-cta { margin-top: 8px; align-self: flex-start; color: #fff; }
.mobile-nav .mobile-nav-cta:hover { color: #fff; }

/* ---------- hero carousel ---------- */
.hero { position: relative; height: 560px; overflow: hidden; background: var(--navy); }
.hero-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.hero-slide { position: relative; min-width: 100%; height: 100%; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(6, 22, 41, .88) 0%, rgba(6, 22, 41, .62) 42%, rgba(6, 22, 41, .12) 75%); }
.hero-content { position: absolute; z-index: 2; inset-inline-start: 0; top: 50%; transform: translateY(-50%); width: 100%; }
.hero-inner { max-width: 640px; color: #fff; padding-inline-start: max(20px, calc((100vw - 1200px) / 2)); }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 106, 0, .92); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; text-transform: uppercase; }
.hero-title { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12; font-weight: 800; letter-spacing: -.5px; margin-bottom: 16px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-sub { font-size: clamp(15px, 1.6vw, 18px); color: rgba(255, 255, 255, .92); margin-bottom: 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 26px; inset-inline-start: max(20px, calc((100vw - 1200px) / 2)); display: flex; gap: 10px; z-index: 3; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: all .25s; }
.hero-dots button.active { background: var(--accent); width: 30px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.hero-arrow:hover { background: rgba(255, 255, 255, .3); }
.hero-arrow.prev { inset-inline-start: 18px; }
.hero-arrow.next { inset-inline-end: 18px; }

/* ---------- stats strip ---------- */
.stats-strip { position: relative; z-index: 5; margin-top: -46px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 26px 30px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 4px 8px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 106, 0, .1); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat b { display: block; font-size: 21px; color: var(--navy); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 74px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--navy); letter-spacing: -.4px; margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 16px; }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cat-grid > * { min-width: 0; }
.cat-card { position: relative; border-radius: 20px; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-md); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 22, 41, .92) 0%, rgba(6, 22, 41, .45) 55%, rgba(6, 22, 41, .08) 100%); }
.cat-body { position: relative; z-index: 2; padding: 30px; }
.cat-body h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.cat-body p { color: rgba(255, 255, 255, .88); font-size: 15px; margin-bottom: 16px; max-width: 420px; }
.brands-row { margin-top: 34px; }
.brands-row h4 { text-align: center; font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 18px; letter-spacing: .06em; }
.brand-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.brand-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 600; color: var(--navy); transition: all .18s; box-shadow: var(--shadow-sm); }
.brand-chip:hover, .brand-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- finder bar ---------- */
.finder { background: #fff; border-radius: 16px; box-shadow: var(--shadow-md); padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 34px; border: 1px solid var(--line); }
.finder-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.finder-field label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.finder-field select, .finder-field input { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 14px; color: var(--ink); background: #fff; outline: none; width: 100%; }
.finder-field select:focus, .finder-field input:focus { border-color: var(--accent); }
.finder-tabs { display: flex; background: var(--bg); border-radius: 10px; padding: 4px; gap: 4px; }
.finder-tabs button { padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.finder-tabs button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

/* ---------- product cards ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.p-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: all .22s ease; display: flex; flex-direction: column; }
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.p-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #eef2f7, #dde5ee); overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.p-gallery { position: absolute; inset: 0; }
.p-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.p-slide.active { opacity: 1; }
.p-card:hover .p-gallery .p-slide.active { transform: scale(1.04); }
.p-gal-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: none; border-radius: 50%; background: rgba(19, 39, 63, .55); color: #fff; font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; z-index: 3; cursor: pointer; padding: 0; }
.p-card:hover .p-gal-btn { opacity: 1; }
.p-gal-prev { left: 8px; }
.p-gal-next { right: 8px; }
.p-gal-count { position: absolute; top: 8px; inset-inline-end: 8px; background: rgba(19, 39, 63, .62); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; z-index: 3; }
.p-gal-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 3; }
.p-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: background .2s; }
.p-dot.active { background: #fff; }
.p-badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: .04em; }
.badge-auth { background: var(--navy); color: #fff; }
.badge-hot { background: var(--red); color: #fff; }
.badge-promo { background: var(--accent); color: #fff; }
.badge-ev { background: var(--ok); color: #fff; }
.badge-pickup { background: var(--gold); color: #3a2b00; }
.badge-new { background: var(--navy-3); color: #fff; }
.badge-used { background: #6b7a8d; color: #fff; }
.p-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #13273f, #24486e); color: #fff; text-align: center; padding: 18px; }
.p-lock svg { opacity: .85; }
.p-lock p { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.p-lock button { font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); padding: 6px 14px; border-radius: 999px; }
.p-lock button:hover { background: var(--accent-dark); }
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-brand { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.p-name { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.p-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-chip { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 3px 8px; }
.p-price-row { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-price { font-size: 21px; font-weight: 800; color: var(--navy); }
.p-price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.p-orig { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.p-off { font-size: 12px; font-weight: 700; color: var(--red); }
.p-actions { display: flex; gap: 8px; margin-top: 6px; }
.p-actions .btn { flex: 1; padding: 9px 10px; font-size: 13.5px; }

.load-more-wrap { text-align: center; margin-top: 40px; }
.grid-meta { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 22px; }

/* ---------- promo ---------- */
.promo-section { background: linear-gradient(135deg, var(--navy) 0%, #163a63 60%, #1d4a7a 100%); color: #fff; position: relative; overflow: hidden; }
.promo-section::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: rgba(255, 106, 0, .14); top: -200px; inset-inline-end: -120px; }
.promo-section .section-title { color: #fff; }
.promo-section .section-sub { color: rgba(255, 255, 255, .75); }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; z-index: 2; }
.promo-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 28px; backdrop-filter: blur(6px); transition: all .22s; }
.promo-card:hover { background: rgba(255, 255, 255, .12); transform: translateY(-4px); }
.promo-tag { display: inline-block; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.promo-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.promo-card p { color: rgba(255, 255, 255, .82); font-size: 14.5px; margin-bottom: 18px; }
.promo-card .btn { width: 100%; }
.countdown { display: flex; align-items: center; gap: 8px; margin: 22px 0 30px; position: relative; z-index: 2; flex-wrap: wrap; }
.countdown-label { font-size: 14px; color: rgba(255, 255, 255, .8); margin-inline-end: 6px; }
.cd-box { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; padding: 8px 14px; text-align: center; min-width: 64px; }
.cd-box b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-box span { font-size: 11px; color: rgba(255, 255, 255, .7); }

/* ---------- why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; text-align: center; transition: all .22s; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.why-icon { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 106, 0, .12), rgba(11, 37, 69, .1)); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.why-card h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--muted); }

/* ---------- cta band ---------- */
.cta-band { background: linear-gradient(120deg, var(--accent), #ff8c3a); border-radius: 24px; padding: 54px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .12); top: -170px; inset-inline-end: -100px; }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: 10px; max-width: 560px; }
.cta-band p { color: rgba(255, 255, 255, .92); max-width: 520px; }
.cta-band .btn { background: #fff; color: var(--accent-dark); font-size: 16px; padding: 14px 30px; flex-shrink: 0; z-index: 2; }
.cta-band .btn:hover { background: var(--navy); color: #fff; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .78); padding: 60px 0 0; margin-top: 74px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-grid > * { min-width: 0; }
.footer .logo { color: #fff; }
.footer .logo small { color: rgba(255, 255, 255, .55); }
.footer h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.footer-about p { font-size: 14px; line-height: 1.75; margin-top: 16px; }
.footer-company { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .92); margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, .18); letter-spacing: .2px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-contact span { display: inline-flex; gap: 9px; align-items: flex-start; }
.footer-contact .wa-ico { width: 16px; height: 16px; fill: #25d366; margin-top: 3px; }
.footer-contact a:hover { color: var(--accent); }
.footer-addr { line-height: 1.65; }
.footer-addr span { white-space: normal; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255, 255, 255, .55); }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 20, 36, .62); backdrop-filter: blur(3px); z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 880px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); animation: pop .25s cubic-bezier(.22, 1, .36, 1); }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 18px; display: flex; align-items: center; justify-content: center; z-index: 5; }
.modal-close:hover { background: var(--line); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }

/* product detail modal — full-height, two-column "showroom" layout */
.modal-pd { max-width: min(1180px, 96vw); height: min(88vh, 900px); overflow: hidden; display: flex; padding: 0; }
.pd-layout { display: grid; grid-template-columns: 1.12fr 1fr; width: 100%; height: 100%; min-height: 0; }
.pd-media { position: relative; min-width: 0; min-height: 0; background: linear-gradient(165deg, #0b2545 0%, #13315c 55%, #1d4368 100%); display: flex; flex-direction: column; }
.pd-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.pd-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 30px; opacity: 0; transition: opacity .35s ease; }
.pd-slide.active { opacity: 1; }
.pd-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; padding: 0; backdrop-filter: blur(4px); transition: background .18s ease; }
.pd-nav:hover { background: rgba(255, 255, 255, .3); }
.pd-prev { inset-inline-start: 14px; }
.pd-next { inset-inline-end: 14px; }
.pd-count { position: absolute; top: 14px; inset-inline-end: 14px; background: rgba(19, 39, 63, .62); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; z-index: 3; }
.pd-vplay { position: absolute; bottom: 16px; inset-inline-start: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 15px; border-radius: 999px; backdrop-filter: blur(4px); transition: background .18s ease; }
.pd-vplay:hover { background: rgba(255, 255, 255, .32); }
.pd-vclose { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 6; display: none; align-items: center; gap: 7px; background: rgba(19, 39, 63, .68); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.pd-stage .pd-video { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 5; }
.pd-stage.playing .pd-slide, .pd-stage.playing .pd-nav, .pd-stage.playing .pd-count, .pd-stage.playing .pd-vplay { opacity: 0; pointer-events: none; }
.pd-stage.playing .pd-video { display: block; }
.pd-stage.playing .pd-vclose { display: inline-flex; }
.pd-thumbs { display: flex; gap: 10px; padding: 12px 14px; background: rgba(255, 255, 255, .07); overflow-x: auto; flex: none; }
.pd-thumb { flex: none; width: 78px; height: 58px; border-radius: 10px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .28); cursor: pointer; padding: 0; background: none; opacity: .75; transition: opacity .15s ease, border-color .15s ease; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { opacity: 1; }
.pd-thumb.active { border-color: var(--accent); opacity: 1; box-shadow: 0 0 0 2px rgba(255, 106, 0, .35); }
.pd-info { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.pd-info-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 40px 42px 24px; }
.pd-brandrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pd-title { font-size: 30px; font-weight: 800; color: var(--navy); margin-bottom: 14px; line-height: 1.25; letter-spacing: -.3px; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin: 0 0 22px; flex-wrap: wrap; }
.pd-price { font-size: 38px; font-weight: 800; color: var(--accent-dark); letter-spacing: -.5px; }
.pd-price-row small { font-size: 13px; font-weight: 700; color: var(--muted); }
.pd-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin-bottom: 24px; }
.pd-specs div { display: flex; justify-content: space-between; font-size: 14px; border-bottom: 1px dashed var(--line); padding: 9px 0; gap: 12px; }
.pd-specs dt, .pd-specs .k { color: var(--muted); }
.pd-specs .v { font-weight: 600; color: var(--ink); text-align: end; }
.pd-desc { font-size: 15px; color: var(--muted); line-height: 1.8; }
.pd-actions { flex: none; display: flex; gap: 12px; padding: 18px 42px 22px; border-top: 1px solid var(--line); background: #fff; }
.pd-actions .btn { flex: 1; padding: 14px 18px; font-size: 16px; }
.modal-pd .modal-close { top: 16px; inset-inline-end: 16px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); }

/* login modal */
.login-modal { max-width: 440px; padding: 38px 36px; }
.login-modal h2 { font-size: 24px; font-weight: 800; color: var(--navy); text-align: center; }
.login-modal .login-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0 26px; }
.login-field { margin-bottom: 16px; }
.login-field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.login-field input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px; outline: none; transition: border-color .15s; }
.login-field input:focus { border-color: var(--accent); }
.login-row { display: flex; gap: 10px; }
.login-row input { flex: 1; }
.login-msg { font-size: 13.5px; margin: 4px 0 12px; min-height: 20px; }
.login-msg.ok { color: var(--ok); }
.login-msg.err { color: var(--red); }
.login-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 22px 0; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.oauth-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px; font-size: 14px; font-weight: 600; color: var(--ink); transition: all .15s; }
.oauth-btn:hover { border-color: var(--navy); background: var(--bg); }
.oauth-btn.wx:hover { border-color: #07c160; color: #07c160; }
.oauth-btn.wb:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 28px; inset-inline-start: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 13px 24px; border-radius: 12px; font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transition: all .3s ease; z-index: 600; max-width: min(90vw, 480px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: #0b7a5a; }
.toast.err { background: #b32430; }

/* ---------- states ---------- */
.state-block { text-align: center; padding: 70px 20px; color: var(--muted); grid-column: 1 / -1; }
.state-block .spinner { width: 38px; height: 38px; border: 3.5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 16px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cloud-banner { background: #fff4e5; border: 1px solid #ffd9a8; color: #8a5200; border-radius: 12px; padding: 14px 18px; font-size: 14px; margin: 18px 0 0; display: flex; gap: 10px; align-items: flex-start; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive: grids stay horizontal (>= 2 columns) at ANY width ---------- */
@media (max-width: 1100px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .finder { grid-template-columns: repeat(2, 1fr); }
  .finder-field:last-of-type { grid-column: auto; }
  .finder > .btn { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .burger { display: block; margin-inline-start: auto; }
  .header-search { display: none; }
  .header-cta { display: none; }
}
@media (max-width: 768px) {
  .hero { height: 480px; }
  .modal-pd { height: 92vh; max-width: 100%; }
  .pd-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .pd-media { height: min(40vh, 320px); }
  .pd-info-scroll { padding: 24px 22px 16px; }
  .pd-title { font-size: 24px; }
  .pd-price { font-size: 32px; }
  .pd-actions { padding: 14px 22px 18px; }
  .pd-actions .btn { padding: 12px 14px; font-size: 15px; }
  .cta-band { padding: 40px 30px; }
  .section { padding: 54px 0; }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 20px; }
  .stat + .stat { border-inline-start: none; }
  .topbar-left .hide-sm { display: none; }
  .promo-grid { gap: 14px; }
}
@media (max-width: 560px) {
  .topbar-left .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p-body { padding: 10px 12px 12px; gap: 6px; }
  .p-name { font-size: 13.5px; }
  .p-brand { font-size: 11px; letter-spacing: .04em; }
  .p-price { font-size: 16px; }
  .p-actions { margin-top: 4px; }
  .p-actions .btn { padding: 8px 6px; font-size: 12px; }
  .spec-chip { font-size: 10.5px; padding: 2px 6px; }
  .finder { gap: 8px; padding: 14px; }
  .oauth-btns { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-contact { font-size: 13px; gap: 10px; }
  .hero-arrow { display: none; }
  .stat b { font-size: 17px; }
  .stat span { font-size: 11.5px; }
  .stat { gap: 8px; padding: 2px 4px; }
  .stat-icon { width: 36px; height: 36px; font-size: 17px; }
  .cat-card { min-height: 220px; }
  .cat-body { padding: 18px; }
  .cat-body h3 { font-size: 19px; }
  .cat-body p { font-size: 13px; margin-bottom: 12px; }
  .cat-body .btn { white-space: normal; text-align: center; padding: 8px 10px; font-size: 12.5px; }
  .promo-card { padding: 20px; }
  .promo-card h3 { font-size: 17px; }
  .promo-card p { font-size: 13.5px; }
  .promo-card .btn { white-space: normal; }
  .footer-contact a, .footer-links a { overflow-wrap: anywhere; }
  .footer-contact span { flex-wrap: wrap; row-gap: 2px; }
  .why-card { padding: 22px 16px; }
  .why-card h3 { font-size: 16px; }
  .why-icon { width: 52px; height: 52px; font-size: 24px; }
}
@media (max-width: 480px) {
  .topbar-left .hide-xs { display: none; }
}

/* ---------- RTL tweaks ---------- */
[dir="rtl"] .hero-slide::after { background: linear-gradient(to left, rgba(6, 22, 41, .88) 0%, rgba(6, 22, 41, .62) 42%, rgba(6, 22, 41, .12) 75%); }
[dir="rtl"] .stat + .stat { border-inline-start: 1px solid var(--line); }
[dir="rtl"] body { font-family: "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif; }

/* ---------- admin: photo management ---------- */
.admin-main { padding: 48px 0 74px; min-height: 60vh; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.admin-bar .btn { flex-shrink: 0; }
.admin-search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-width: 240px; }
.admin-search input { border: none; outline: none; background: none; font-size: 14px; width: 100%; }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.admin-card .a-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #eef2f7, #dde5ee); }
.admin-card .a-media img { width: 100%; height: 100%; object-fit: cover; }
.admin-card .a-media .a-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.admin-card .a-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.admin-card .a-name { font-size: 15px; font-weight: 700; color: var(--navy); }
.admin-card .a-slug { font-size: 12px; color: var(--muted); }
.admin-card .a-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.a-thumb { position: relative; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.a-thumb img { width: 100%; height: 100%; object-fit: cover; }
.a-thumb.is-primary { outline: 2px solid var(--accent); outline-offset: 1px; }
.a-thumb .a-tag { position: absolute; bottom: 0; inset-inline: 0; background: rgba(11, 37, 69, .78); color: #fff; font-size: 9px; font-weight: 700; text-align: center; padding: 1px 0; }
.a-thumb .a-del { position: absolute; top: 2px; inset-inline-end: 2px; width: 16px; height: 16px; border-radius: 50%; background: rgba(179, 36, 48, .9); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.admin-card .a-actions { margin-top: auto; display: flex; gap: 8px; }
.admin-card .a-actions .btn { flex: 1; padding: 8px 10px; font-size: 13px; }
.admin-log { margin-top: 34px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.admin-log h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.admin-log ul { list-style: none; max-height: 220px; overflow-y: auto; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.admin-log li.ok { color: var(--ok); }
.admin-log li.err { color: var(--red); }
@media (max-width: 1024px) { .admin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .admin-card .a-body { padding: 10px 12px 12px; } .admin-card .a-name { font-size: 13.5px; } .admin-card .a-actions .btn { padding: 7px 8px; font-size: 12px; } }

/* ---------- admin: tabs ---------- */
.admin-tabs { display: flex; gap: 6px; margin-bottom: 26px; border-bottom: 2px solid var(--line); }
.admin-tab { padding: 10px 18px; font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; border-radius: 8px 8px 0 0; }
.admin-tab:hover { color: var(--navy); background: var(--bg); }
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- admin: vehicle manager ---------- */
.veh-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.veh-filters select { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); outline: none; }
.veh-filters select:focus { border-color: var(--accent); }

.veh-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.veh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.veh-table th { text-align: start; padding: 12px 14px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg); }
.veh-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.veh-table tbody tr:last-child td { border-bottom: none; }
.veh-table tbody tr:hover td { background: rgba(255, 106, 0, .04); }
.veh-table td small { color: var(--muted); font-size: 12px; }
.inq-msg-cell { max-width: 240px; }
.veh-thumb { width: 76px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--bg); display: block; }
.veh-nothumb { width: 76px; height: 56px; border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.veh-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.veh-pill.new { background: rgba(255, 106, 0, .12); color: var(--accent-dark); }
.veh-pill.used { background: rgba(11, 37, 69, .08); color: var(--navy); }
.veh-pill.ok { background: rgba(14, 159, 110, .14); color: var(--ok); }
.veh-pill.draft { background: rgba(93, 107, 126, .14); color: var(--muted); }
.veh-pill.pending { background: rgba(255, 106, 0, .12); color: var(--accent-dark); }
.veh-flag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--bg); color: var(--muted); }
.veh-flag.on { background: rgba(255, 106, 0, .12); color: var(--accent-dark); }
.veh-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.veh-actions .btn { padding: 6px 12px; font-size: 13px; }
.veh-del-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.veh-empty { text-align: center; color: var(--muted); padding: 40px 16px !important; font-size: 14px; }

/* vehicle editor modal */
.veh-editor { max-width: 820px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.veh-editor-head { padding: 26px 30px 14px; border-bottom: 1px solid var(--line); position: relative; flex: none; }
.veh-editor-head h2 { font-size: 22px; font-weight: 800; color: var(--navy); padding-inline-end: 40px; }
.veh-editor form { overflow-y: auto; padding: 20px 30px 24px; }
.veh-sec { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; overflow: hidden; }
.veh-sec-h { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: #f6f8fb; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 800; color: var(--navy); }
.veh-sec-n { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.veh-sec .veh-grid, .veh-sec .veh-checks, .veh-sec > .veh-media-hint, .veh-sec > #vehMediaArea { margin-inline: 16px; }
.veh-sec .veh-grid { margin-top: 14px; }
.veh-sec .veh-checks { margin-bottom: 14px; }
.veh-sec > #vehMediaArea { margin-bottom: 14px; }
.veh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.veh-grid .full { grid-column: 1 / -1; }
.veh-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.veh-field label { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.veh-field .req { color: var(--red); font-weight: 800; }
.veh-field input, .veh-field select, .veh-field textarea { border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); outline: none; width: 100%; transition: border-color .15s; }
.veh-field input:focus, .veh-field select:focus, .veh-field textarea:focus { border-color: var(--accent); }
.veh-field textarea { resize: vertical; min-height: 76px; line-height: 1.55; }
.veh-field .hint { font-size: 11.5px; color: var(--muted); }
.veh-checks { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.veh-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.veh-check input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.veh-msg { font-size: 13.5px; margin: 0; min-height: 20px; }
.veh-msg.err { color: var(--red); font-weight: 600; }
.veh-msg.ok { color: var(--ok); font-weight: 600; }
.veh-editor-actions { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 14px 30px; border-top: 1px solid var(--line); background: #fff; }
.veh-actions-btns { display: flex; gap: 12px; justify-content: flex-end; }
.veh-dirty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff7ed; border: 1px solid #fdba74; border-radius: 10px; padding: 10px 14px; }
.veh-dirty[hidden] { display: none; }
.veh-dirty-txt { font-size: 13px; font-weight: 600; color: #9a3412; flex: 1; min-width: 180px; }
/* read-only view of the 4 non-edited languages */
.veh-hidden-langs { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.veh-hidden-row { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; font-size: 13px; }
.veh-hidden-row + .veh-hidden-row { border-top: 1px solid var(--line); }
.veh-hidden-row:nth-child(odd) { background: #fafafa; }
.veh-hidden-lang { flex: none; width: 64px; font-weight: 700; color: var(--muted); }
.veh-hidden-val { color: var(--ink); word-break: break-word; }
.veh-hidden-val.missing { color: var(--muted); font-style: italic; }
.veh-hidden-empty { font-size: 13px; color: var(--muted); font-style: italic; }
/* stale-translation sync bar */
.veh-sync { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #eff6ff; border: 1px solid #93c5fd; border-radius: 10px; padding: 10px 14px; }
.veh-sync[hidden] { display: none; }
.veh-sync-txt { font-size: 13px; font-weight: 600; color: #1e3a8a; flex: 1; min-width: 220px; }
.veh-sync-progress { font-size: 12.5px; color: #1d4ed8; font-weight: 600; width: 100%; }
.veh-sync-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-danger { background: var(--red); color: #fff; border: 1.5px solid var(--red); }
.btn-danger:hover { background: #b71e33; border-color: #b71e33; }
.veh-sec.flash { animation: secflash 1.8s ease; }
@keyframes secflash { 0%, 60% { box-shadow: 0 0 0 3px rgba(255, 107, 53, .45); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); } }
@media (max-width: 640px) {
  .veh-editor-head { padding: 22px 18px 12px; }
  .veh-editor form { padding: 16px 18px 20px; }
  .veh-editor-actions { padding: 12px 18px; }
  .veh-grid { grid-template-columns: 1fr; }
}

/* ---------- vehicle editor: photos & video ---------- */
.veh-media-hint { font-size: 13px; color: var(--muted); margin: 0; }
.veh-media-block { margin-bottom: 16px; }
.veh-media-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.veh-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-bottom: 10px; }
.veh-media-cell { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--line); background: #f3f5f8; }
.veh-media-cell.is-primary { border-color: var(--accent); }
.veh-media-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.veh-media-tag { position: absolute; inset-inline-start: 5px; bottom: 5px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.veh-media-del, .veh-media-primary { position: absolute; top: 4px; width: 22px; height: 22px; border: none; border-radius: 6px; cursor: pointer; font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; }
.veh-media-del { inset-inline-end: 4px; background: rgba(220, 53, 69, .92); color: #fff; }
.veh-media-primary { inset-inline-end: 30px; background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.veh-media-del:hover { background: var(--red); }
.veh-media-primary:hover { background: #fff; color: var(--accent); }
.veh-media-empty { font-size: 12.5px; color: var(--muted); }
.veh-media-video { width: 100%; max-width: 420px; border-radius: 10px; border: 1px solid var(--line); background: #000; display: block; margin-bottom: 10px; }
.veh-media-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.veh-media-btns .hint { flex-basis: 100%; }
.veh-upload-label.is-disabled { opacity: .45; pointer-events: none; }
.veh-media-btns .btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- WhatsApp buttons (storefront) ---------- */
.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #25d366; color: #fff; font-weight: 700; border: none; text-decoration: none; cursor: pointer; }
.btn-wa:hover { background: #1ebe5a; color: #fff; }
.btn-wa .wa-ico { fill: #fff; }

/* ---------- AI live-support widget (bottom-right) ---------- */
.cs-fab { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 400; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(11, 37, 69, .38); transition: transform .18s ease, opacity .18s ease; }
.cs-fab:hover { transform: translateY(-2px) scale(1.04); }
.cs-fab-ico { width: 27px; height: 27px; }
.cs-fab.hidden-fab { opacity: 0; pointer-events: none; transform: scale(.6); }
.cs-fab-dot { position: absolute; top: 2px; inset-inline-end: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; animation: csPulse 2.2s ease-in-out infinite; }
@keyframes csPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(14, 159, 110, .5); } 50% { box-shadow: 0 0 0 6px rgba(14, 159, 110, 0); } }
.cs-panel { position: fixed; inset-inline-end: 22px; bottom: 92px; z-index: 400; width: 372px; max-width: calc(100vw - 24px); height: min(540px, calc(100vh - 130px)); background: #fff; border-radius: 18px; box-shadow: 0 24px 64px rgba(11, 37, 69, .3); display: flex; flex-direction: column; overflow: hidden; opacity: 0; pointer-events: none; transform: translateY(14px) scale(.98); transition: opacity .22s ease, transform .22s cubic-bezier(.22, 1, .36, 1); }
.cs-panel.open { opacity: 1; pointer-events: auto; transform: none; }
.cs-head { flex: none; display: flex; align-items: center; gap: 11px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; padding: 14px 16px; }
.cs-head-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.cs-head-txt { display: flex; flex-direction: column; min-width: 0; }
.cs-head-txt b { font-size: 15.5px; }
.cs-head-txt span { font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.cs-close { margin-inline-start: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.cs-close:hover { background: rgba(255, 255, 255, .28); }
.cs-list { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.cs-msg { display: flex; }
.cs-user { justify-content: flex-end; }
.cs-bubble { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.cs-bot .cs-bubble { background: #fff; color: var(--ink); border-start-start-radius: 4px; box-shadow: var(--shadow-sm); }
.cs-user .cs-bubble { background: var(--accent); color: #fff; border-start-end-radius: 4px; }
.cs-typing { display: inline-flex; gap: 5px; align-items: center; padding: 13px 15px; }
.cs-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: csBlink 1.2s infinite; }
.cs-typing span:nth-child(2) { animation-delay: .2s; }
.cs-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes csBlink { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
.cs-err { color: var(--red); }
.cs-err p { margin-bottom: 8px; }
.cs-err-btn { display: inline-block; margin: 4px 8px 0 0; padding: 7px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 700; background: var(--bg); color: var(--navy); border: 1px solid var(--line); }
.cs-err-btn:hover { border-color: var(--navy); }
.cs-err-wa { background: #25d366; border-color: #25d366; color: #fff; }
.cs-chips { flex: none; display: flex; gap: 8px; padding: 10px 14px 4px; overflow-x: auto; background: var(--bg); }
.cs-chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.cs-chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.cs-input-row { flex: none; display: flex; gap: 9px; padding: 12px 14px 14px; background: #fff; border-top: 1px solid var(--line); }
.cs-input-row input { flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 13px; font-size: 14px; font-family: inherit; outline: none; min-width: 0; color: var(--ink); }
.cs-input-row input:focus { border-color: var(--accent); }
.cs-send { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.cs-send:hover { background: var(--accent-dark); }
.cs-send svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
  .cs-fab { inset-inline-end: 14px; bottom: 14px; width: 52px; height: 52px; }
  .cs-panel { inset-inline-end: 12px; inset-inline-start: 12px; width: auto; bottom: 76px; height: min(72vh, 560px); }
}

/* ---------- wholesale partnership form ---------- */
.wsp-backdrop { z-index: 600; background: rgba(8, 20, 36, .72); }
.wsp-card { max-width: 660px; max-height: 92vh; overflow-y: auto; padding: 36px 38px 30px; }
.wsp-head h2 { font-size: 26px; font-weight: 800; color: var(--navy); }
.wsp-sub { font-size: 14px; color: var(--muted); margin: 8px 0 20px; line-height: 1.7; }
.wsp-car { display: flex; flex-direction: column; gap: 3px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: 14px; padding: 16px 20px; margin-bottom: 22px; }
.wsp-car-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.wsp-car-name { font-size: 18px; font-weight: 800; }
.wsp-car-meta { font-size: 13px; color: rgba(255, 255, 255, .82); }
.wsp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.wsp-grid .full { grid-column: 1 / -1; }
.wsp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wsp-field label { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.wsp-field .req { color: var(--red); font-weight: 800; }
.wsp-field input, .wsp-field textarea { border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink); outline: none; width: 100%; transition: border-color .15s; }
.wsp-field input:focus, .wsp-field textarea:focus { border-color: var(--accent); }
.wsp-field textarea { resize: vertical; min-height: 74px; line-height: 1.55; }
.wsp-field.is-invalid input, .wsp-field.is-invalid textarea { border-color: var(--red); background: #fff5f5; }
.wsp-msg { font-size: 13px; margin-top: 14px; min-height: 18px; }
.wsp-msg.err { color: var(--red); font-weight: 600; }
.wsp-msg a { color: var(--accent-dark); text-decoration: underline; }
.wsp-actions { display: flex; gap: 12px; margin-top: 18px; }
.wsp-actions .btn { flex: 1; padding: 13px 18px; font-size: 15.5px; }
.wsp-actions .btn-primary { flex: 1.6; }
.wsp-privacy { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }
.wsp-done { text-align: center; max-width: 520px; }
.wsp-done-icon { width: 64px; height: 64px; margin: 6px auto 16px; border-radius: 50%; background: rgba(14, 159, 110, .14); color: var(--ok); font-size: 30px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.wsp-done h2 { font-size: 22px; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
@media (max-width: 640px) {
  .wsp-card { padding: 26px 20px 22px; }
  .wsp-grid { grid-template-columns: 1fr; }
  .wsp-actions { flex-direction: column-reverse; }
}

/* vehicle table → stacked cards on narrow screens (admin tool, not storefront) */
@media (max-width: 900px) {
  .veh-table thead { display: none; }
  .veh-table, .veh-table tbody, .veh-table tr, .veh-table td { display: block; width: 100%; }
  .veh-table tbody tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .veh-table tbody tr:last-child { border-bottom: none; }
  .veh-table td { border-bottom: none; padding: 7px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: end; }
  .veh-table td::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0; text-align: start; }
  .veh-table td:first-child { justify-content: flex-start; }
}
