/* ==========================================================================
   DESIGN SYSTEM & ROOT TOKENS
   Theme: Luxury Automotive Auction Platform (Cars Auction)
   Font: Noto Kufi Arabic (Calibrated Compact Scale)
   Compliance: Strict Anti-AI-Slop Guidelines (parts/اوامر.ini)
   ========================================================================== */

:root {
  /* Typography Scale - Calibrated for Noto Kufi Arabic */
  --font-family: 'Noto Kufi Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, Menlo, monospace;

  --text-2xs: 10px;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 13.5px;
  --text-md: 14.5px;
  --text-lg: 16.5px;
  --text-xl: 18.5px;
  --text-2xl: 22px;
  --text-3xl: 26px;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.45;
  --leading-loose: 1.6;

  /* Single Accent Colour (Amber Gold / Warm Bronze) */
  --accent: #b45309;
  --accent-hover: #92400e;
  --accent-active: #78350f;
  --accent-subtle: #fffbeb;
  --accent-border: #fde68a;

  /* Neutral Warm Luxury Palette (Inspired by anda.social) */
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-subtle: #F2EEE8;
  --surface-muted: #E8E2D9;
  --border: #E6E0D5;
  --border-strong: #D5CCC0;
  --border-focus: #B45309;
  --text: #1F1B18;
  --text-muted: #6B635C;
  --text-subtle: #8C837A;

  /* Dark Theme Elements (Pure Neutral Carbon Charcoal - Zero Navy/Blue) */
  --dark-bg: #141416;
  --dark-surface: #1c1c1f;
  --dark-border: #2e2e33;
  --dark-text: #fafafa;
  --dark-text-muted: #a1a1aa;

  /* Semantic Colours (Meaning only: Live/Danger, Success, Warning) */
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --danger-subtle: #fef2f2;
  --danger-border: #fecaca;

  --success: #15803d;
  --success-hover: #166534;
  --success-subtle: #f0fdf4;
  --success-border: #bbf7d0;

  --warning: #b45309;
  --warning-hover: #92400e;
  --warning-subtle: #fffbeb;
  --warning-border: #fde68a;

  /* Refined Border Radius (Soft Luxury Squircle & Pills) */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 9999px;
  --border-width: 1px;

  /* Shadows (ONLY on floating overlays: dropdowns, popovers, modals) */
  --shadow-overlay: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-dropdown: 0 6px 20px rgba(0, 0, 0, 0.14);

  /* Spacing Scale (Multiples of 4) */
  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;

  /* Dimensions - Compact, Sleek, Professional Proportions */
  --header-h: 56px;
  --topbar-h: 28px;
  --container-max: 1180px;
  --transition-speed: 140ms;

  /* Legacy Backward Compatibility Aliases - Neutral Carbon Zinc (Zero Blue/Navy) */
  --white: #ffffff;
  --g50: #fafafa;
  --g100: #f4f4f5;
  --g200: #e4e4e7;
  --g400: #71717a;
  --g500: #52525b;
  --g700: #27272a;
  --g900: #141416;
  --accent-d: var(--accent-hover);
  --accent-l: var(--accent-subtle);
  --accent-m: var(--accent-border);
  --red: var(--danger);
  --red-l: var(--danger-subtle);
  --r: var(--radius);
  --r-sm: var(--radius-sm);
  --r-pill: var(--radius-pill);
  --tr: var(--transition-speed);
  --sh: none;
  --sh-xl: var(--shadow-dropdown);
  --bar-h: var(--header-h);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

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

html {
  font-size: 14px;
  direction: rtl;
  text-align: right;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

*,
*::before,
*::after {
  text-decoration: none !important;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
  text-decoration: none !important;
  outline: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   ACCESSIBILITY & FOCUS
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */

.cars-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.cars-section {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
  border-bottom: var(--border-width) solid var(--border);
}

.cars-section:last-of-type {
  border-bottom: none;
}

@media (max-width: 768px) {
  .cars-section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-16);
  gap: var(--space-12);
  flex-wrap: wrap;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.section-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  line-height: var(--leading-tight);
}

.section-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ==========================================================================
   TOP UTILITY BAR (STATUS & VERIFICATION)
   ========================================================================== */

.cars-topbar {
  background-color: var(--dark-bg);
  border-bottom: var(--border-width) solid var(--dark-border);
  color: var(--dark-text-muted);
  font-size: var(--text-2xs);
  height: var(--topbar-h);
  line-height: var(--topbar-h);
  position: relative;
  z-index: 910;
}

.cars-topbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  height: 100%;
}

.cars-topbar-status {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  overflow: hidden;
  white-space: nowrap;
}

.topbar-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #86efac;
  font-weight: 600;
}

.topbar-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
  flex-shrink: 0;
}

.topbar-sep {
  color: var(--dark-border);
}

.cars-topbar-meta {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex-shrink: 0;
}

.cars-topbar-link {
  color: var(--dark-text-muted);
  transition: color var(--transition-speed) ease-out;
}

.cars-topbar-link:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .cars-topbar-meta {
    display: none;
  }
}

/* ==========================================================================
   MAIN HEADER
   ========================================================================== */

/* ==========================================================================
   MAIN HEADER (anda.social luxury aesthetic)
   ========================================================================== */

.cars-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: 64px;
  background-color: rgba(253, 252, 249, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease-out;
}

.cars-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand Identity */
.cars-brand-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cars-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.cars-brand-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Center Pill Search (Desktop) */
.cars-header-search-wrap {
  flex: 1;
  max-width: 440px;
  margin: 0 12px;
}

.cars-header-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--surface-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  height: 40px;
  padding: 0 6px 0 14px;
  transition: all 0.2s ease-out;
}

.cars-header-search-form:focus-within {
  background-color: #ffffff;
  border-color: var(--border-strong);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.cars-search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 8px;
}

.cars-header-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text);
  padding: 0;
}

.cars-header-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.cars-search-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  height: 30px;
  border-radius: var(--radius-pill);
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease-out;
}

.cars-search-submit-btn:hover {
  background-color: #1f1b18;
  color: #ffffff;
  border-color: #1f1b18;
}

/* Header Navigation */
.cars-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cars-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease-out;
}

.cars-nav-link:hover {
  background-color: var(--surface-subtle);
  color: var(--text);
}

.cars-nav-link.active {
  background-color: var(--surface-subtle);
  color: var(--accent);
  font-weight: 700;
}

.nav-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--danger);
  flex-shrink: 0;
}

/* Header Actions */
.cars-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Auth Pills (Login / Sign up) */
.cars-auth-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-auth-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  height: 36px;
  border-radius: var(--radius-pill);
  background-color: var(--surface-subtle);
  border: 1px solid transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease-out;
}

.btn-auth-login:hover {
  background-color: #e9e4dc;
  color: var(--text);
}

.btn-auth-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 36px;
  border-radius: var(--radius-pill);
  background-color: #1f1b18;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease-out;
}

.btn-auth-signup:hover {
  background-color: #38312d;
  color: #ffffff;
}

/* Shopping Cart Trigger Button */
.cars-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease-out;
}

.cars-cart-btn:hover {
  background-color: #e9e4dc;
  border-color: var(--border-strong);
}

.cars-cart-btn svg {
  width: 18px;
  height: 18px;
}

.cars-cart-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  border: 2px solid #ffffff;
}

/* ==========================================================================
   MINI-CART DROPDOWN (تخرج من تحتها مباشرة)
   ========================================================================== */

.cars-cart-menu {
  position: relative;
  display: inline-flex;
}

.cars-cart-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 360px;
  max-width: calc(100vw - 24px);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(31, 27, 24, 0.14);
  z-index: 960;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  overflow: hidden;
  direction: rtl;
  text-align: right;
  display: flex;
  flex-direction: column;
}

.cars-cart-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.cars-cart-dropdown-head {
  padding: 12px 16px;
  background-color: #FAF8F5;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cars-cart-dropdown-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1F1B18;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cars-cart-dropdown-count {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  background-color: #F2ECE1;
  color: #8A6D3B;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #E6DEC8;
}

.cars-cart-dropdown-body {
  padding: 14px 16px;
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cars-cart-dropdown-body .woocommerce-mini-cart {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cars-cart-dropdown-body .woocommerce-mini-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.cars-cart-dropdown-body .woocommerce-mini-cart-item a.remove {
  order: 3;
  margin-right: auto;
  color: #b91c1c;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.cars-cart-dropdown-body .woocommerce-mini-cart__total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.cars-cart-dropdown-body .woocommerce-mini-cart__buttons {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cars-cart-dropdown-body .woocommerce-mini-cart__buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.15s ease;
}

.cars-cart-dropdown-body .woocommerce-mini-cart__buttons a:not(.checkout) {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
}

.cars-cart-dropdown-body .woocommerce-mini-cart__buttons a.checkout {
  background: #1F1B18;
  border: 1px solid #1F1B18;
  color: #FFFFFF;
}

.cars-cart-dropdown-body .woocommerce-mini-cart__buttons a.checkout:hover {
  background: #3A332E;
}

@media (max-width: 480px) {
  .cars-cart-dropdown {
    position: fixed;
    top: 56px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
  }
}

/* ==========================================================================
   HEADER NOTIFICATION BELL & DROPDOWN (جرس الإشعارات مع العداد)
   ========================================================================== */

.cars-notif-menu {
  position: relative;
  display: inline-flex;
}

.cars-notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease-out;
}

.cars-notif-btn:hover,
.cars-notif-btn.active {
  background-color: #e9e4dc;
  border-color: var(--border-strong);
}

.cars-notif-btn svg {
  width: 18px;
  height: 18px;
  color: var(--text);
}

.cars-notif-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background-color: #b91c1c;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.3);
  animation: notifPulse 2.8s infinite;
}

@keyframes notifPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.cars-notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 330px;
  max-width: calc(100vw - 24px);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(31, 27, 24, 0.14);
  z-index: 960;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  overflow: hidden;
  direction: rtl;
  text-align: right;
}

.cars-notif-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.notif-dropdown-header {
  padding: 12px 14px;
  background-color: #FAF8F5;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-dropdown-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1F1B18;
}

.notif-unread-count {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 9999px;
  background-color: #fee2e2;
  color: #b91c1c;
  font-size: 10.5px;
  font-weight: 700;
}

.btn-notif-mark-read {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.btn-notif-mark-read:hover {
  color: var(--text);
}

.notif-dropdown-list {
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.15s ease;
  position: relative;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background-color: var(--surface-subtle);
}

.notif-item.unread {
  background-color: rgba(138, 109, 59, 0.05);
}

.notif-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-icon-wrap.urgent {
  background-color: #fee2e2;
  color: #b91c1c;
}

.notif-icon-wrap.bid {
  background-color: #fef9c3;
  color: #854d0e;
}

.notif-icon-wrap.star {
  background-color: #ede9fe;
  color: #6d28d9;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1F1B18;
  margin-bottom: 2px;
  line-height: 1.35;
}

.notif-item-desc {
  font-size: 11.5px;
  color: #736B63;
  line-height: 1.4;
  margin-bottom: 4px;
}

.notif-item-time {
  font-size: 10.5px;
  color: var(--text-subtle);
  display: block;
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #b91c1c;
  flex-shrink: 0;
  margin-top: 6px;
}

.notif-item:not(.unread) .notif-unread-dot {
  display: none;
}

.notif-dropdown-footer {
  padding: 10px 14px;
  background-color: #FAF8F5;
  border-top: 1px solid var(--border);
  text-align: center;
}

.notif-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #1F1B18;
  text-decoration: none;
  transition: color 0.15s ease;
}

.notif-footer-link:hover {
  color: #8A6D3B;
}

@media (max-width: 480px) {
  .cars-notif-dropdown {
    position: fixed;
    top: 56px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
  }
}

/* User Account Trigger & Dropdown */
.cars-user-menu {
  position: relative;
  display: inline-flex;
}

.cars-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  height: 36px;
  padding: 0 var(--space-10);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  border: var(--border-width) solid var(--border);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-speed) ease-out,
              border-color var(--transition-speed) ease-out;
}

.cars-user-trigger:hover,
.cars-user-trigger.active {
  background-color: var(--surface-subtle);
  border-color: var(--border-strong);
}

.cars-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: var(--border-width) solid var(--border);
}

.cars-user-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cars-user-chevron {
  width: 13px;
  height: 13px;
  color: var(--text-subtle);
  transition: transform var(--transition-speed) ease-out;
}

.cars-user-trigger.active .cars-user-chevron {
  transform: rotate(180deg);
}

/* Floating Dropdown */
.cars-user-dropdown {
  position: absolute;
  top: calc(100% + var(--space-6));
  left: 0;
  min-width: 220px;
  background-color: var(--surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-dropdown);
  padding: var(--space-4);
  z-index: 950;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--transition-speed) ease-out,
              transform var(--transition-speed) ease-out,
              visibility var(--transition-speed) ease-out;
  pointer-events: none;
}

.cars-user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown-header {
  padding: var(--space-8) var(--space-10);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.user-dropdown-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-meta {
  font-size: var(--text-2xs);
  color: var(--text-subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-sep {
  height: var(--border-width);
  background-color: var(--border);
  margin: var(--space-4) 0;
}

.user-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  transition: background-color var(--transition-speed) ease-out,
              color var(--transition-speed) ease-out;
}

.user-dropdown-link:hover {
  background-color: var(--surface-subtle);
  color: var(--text);
}

.user-dropdown-link.danger {
  color: var(--danger);
}

.user-dropdown-link.danger:hover {
  background-color: var(--danger-subtle);
}

/* Menu Toggle Button (برجر القائمة) - مخفي في الكمبيوتر ويظهر فقط في الهاتف والتابلت */
.cars-menu-btn {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease-out;
}

.cars-menu-btn:hover {
  background-color: #e9e4dc;
  border-color: var(--border-strong);
}

.cars-menu-btn svg {
  width: 18px;
  height: 18px;
}

/* Responsive Viewports (Mobile & Tablet) */
@media (max-width: 1024px) {
  .cars-header-search-wrap,
  .cars-header-nav {
    display: none;
  }
  .cars-menu-btn {
    display: inline-flex !important;
  }
}

@media (max-width: 768px) {
  .cars-header {
    height: 56px;
  }
  .cars-header-inner {
    padding: 0 16px;
  }
  .cars-brand-logo-img {
    height: 30px;
  }
  .cars-auth-pills {
    display: none;
  }
  .cars-cart-btn,
  .cars-notif-btn,
  .cars-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
}

/* ==========================================================================
   MINI-CART DRAWER (OFF-CANVAS)
   ========================================================================== */

.cars-cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 13, 22, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  z-index: 998;
  transition: opacity var(--transition-speed) ease-out, visibility var(--transition-speed) ease-out;
}

.cars-cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   MINI-CART DRAWER (AUCTION DEPOSIT & ORDERS)
   ========================================================================== */

.cars-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 92vw;
  background-color: var(--surface);
  border-left: var(--border-width) solid var(--border);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 200ms ease-out;
  display: flex;
  flex-direction: column;
}

.cars-cart-drawer.active {
  transform: translateX(0);
}

.cars-cart-head {
  padding: 14px 18px;
  border-bottom: var(--border-width) solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: var(--surface);
}

.cars-cart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.cars-cart-title svg {
  color: var(--accent);
}

.cars-cart-close {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: var(--border-width) solid var(--border);
  background-color: var(--surface-subtle);
  cursor: pointer;
  transition: color var(--transition-speed) ease-out, border-color var(--transition-speed) ease-out;
}

.cars-cart-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.cars-cart-close svg {
  width: 15px;
  height: 15px;
}

.cars-cart-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

/* Empty State */
.cart-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  gap: 12px;
}

.cart-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.cart-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.cart-empty-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 8px;
}

.cart-trust-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

/* Populated Cart Item */
.cars-cart-body .cart-body {
  flex: 1;
  padding: 14px 18px;
  overflow-y: auto;
}

.cars-cart-body .woocommerce-mini-cart {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cars-cart-body .woocommerce-mini-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.mini-cart-item-thumb img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.mini-cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-cart-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none !important;
}

.mini-cart-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
}

.mini-cart-item-price {
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.mini-cart-item-qty {
  color: var(--text-muted);
}

.mini-cart-remove-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted) !important;
  font-size: 18px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.mini-cart-remove-btn:hover {
  color: var(--danger) !important;
  background-color: var(--surface);
  border-color: var(--border);
}

/* Cart Footer */
.cart-footer {
  border-top: 1px solid var(--border);
  padding: 16px 18px;
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-footer-totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.cart-subtotal-value {
  font-family: var(--font-mono);
  color: var(--accent);
}

.cart-security-badge {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 6px 10px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.cart-actions-grid {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   MOBILE DRAWER (OFF-CANVAS)
   ========================================================================== */

.cars-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 13, 22, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  z-index: 998;
  transition: opacity var(--transition-speed) ease-out,
              visibility var(--transition-speed) ease-out;
}

.cars-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cars-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background-color: var(--surface);
  border-left: var(--border-width) solid var(--border);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 200ms ease-out;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.cars-drawer.active {
  transform: translateX(0);
}

.cars-drawer-head {
  padding: 12px 16px;
  border-bottom: var(--border-width) solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cars-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: var(--border-width) solid var(--border);
  background-color: var(--surface-subtle);
  cursor: pointer;
  transition: color var(--transition-speed) ease-out;
}

.cars-drawer-close:hover {
  color: var(--text);
}

.cars-drawer-close svg {
  width: 16px;
  height: 16px;
}

.cars-drawer-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.drawer-section-label {
  font-size: var(--text-2xs);
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-6);
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  transition: background-color var(--transition-speed) ease-out,
              color var(--transition-speed) ease-out;
}

.drawer-nav-link:hover {
  background-color: var(--surface-subtle);
  color: var(--text);
}

.drawer-nav-link.active {
  background-color: var(--accent-subtle);
  color: var(--accent);
  font-weight: 700;
}

.drawer-nav-link.danger {
  color: var(--danger);
}

.drawer-nav-link.danger:hover {
  background-color: var(--danger-subtle);
}

/* ==========================================================================
   BUTTONS
   Constraints: 32-38px tall, compact, no shadows, no lift/scale on hover
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  height: 34px;
  padding: 0 var(--space-12);
  border-radius: var(--radius);
  border: var(--border-width) solid transparent;
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease-out,
              border-color var(--transition-speed) ease-out,
              color var(--transition-speed) ease-out;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface-subtle);
  border-color: var(--border-strong);
}

.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.btn-danger:hover {
  background-color: var(--danger-hover);
  border-color: var(--danger-hover);
}

.btn-sm {
  height: 30px;
  padding: 0 var(--space-8);
  font-size: var(--text-2xs);
}

.btn-lg {
  height: 38px;
  padding: 0 var(--space-16);
  font-size: var(--text-sm);
}

/* ==========================================================================
   BADGES & STATUS LABELS
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  font-size: var(--text-2xs);
  font-weight: 600;
  line-height: 1;
  border: var(--border-width) solid var(--border);
  background-color: var(--surface);
  color: var(--text);
}

.badge-live {
  background-color: var(--danger-subtle);
  color: var(--danger);
  border-color: var(--danger-border);
}

.badge-upcoming {
  background-color: var(--accent-subtle);
  color: var(--accent);
  border-color: var(--accent-border);
}

.badge-ending {
  background-color: var(--warning-subtle);
  color: var(--warning);
  border-color: var(--warning-border);
}

.badge-featured {
  background-color: var(--surface-subtle);
  color: var(--text);
  border-color: var(--border-strong);
}

.badge-success {
  background-color: var(--success-subtle);
  color: var(--success);
  border-color: var(--success-border);
}

/* ==========================================================================
   CARS GRID & CAR CARD
   Refined Warm Luxury Automotive Aesthetic (anda.social inspired)
   Strictly adheres to parts/اوامر.ini (Clean lines, zero slop)
   ========================================================================== */

.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

@media (max-width: 1140px) {
  .cars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 780px) {
  .cars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 520px;
    margin-inline: auto;
  }
}

/* --- The Luxury Car Card Container --- */
.car-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(31, 27, 24, 0.04);
  transition: border-color var(--transition-speed) ease-out,
              box-shadow var(--transition-speed) ease-out;
  position: relative;
  width: 100%;
  min-width: 0;
}

.car-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 14px rgba(31, 27, 24, 0.07);
}

/* --- Media Thumbnail & Top Bar --- */
.car-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--surface-subtle);
  overflow: hidden;
}

.car-card-media-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  overflow: hidden;
}

.car-card-media img,
.car-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 260ms ease-out;
}

.car-card:hover .car-card-media img,
.car-card:hover .car-card-thumb {
  transform: scale(1.02);
}

.car-card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0.48) 0%, rgba(20, 17, 15, 0.08) 42%, transparent 68%);
  pointer-events: none;
}

.car-card-lot-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
  gap: 8px;
}

.car-lot-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.car-lot-number {
  font-size: 11px;
  font-weight: 700;
  background: rgba(20, 17, 15, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  line-height: 1.3;
}

.car-card-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(230, 224, 213, 0.9);
  overflow: hidden;
  pointer-events: auto;
}

.car-card-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.car-badge-group,
.car-card-badge {
  pointer-events: auto;
}

.car-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  border: 1px solid transparent;
}

.car-card-badge.badge-live {
  background-color: #FEF2F2;
  color: #B91C1C;
  border-color: #FECACA;
}

.car-card-badge.badge-ending {
  background-color: #FFFBEB;
  color: #B45309;
  border-color: #FDE68A;
}

.car-card-badge.badge-upcoming {
  background-color: #F8FAFC;
  color: #475569;
  border-color: #E2E8F0;
}

.car-card-badge.badge-featured {
  background-color: #FAF8F5;
  color: #8A6D3B;
  border-color: #E6E0D5;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #DC2626;
  display: inline-block;
  animation: liveDotPulse 1.8s infinite;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* --- Card Body & Typography --- */
.car-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.car-card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-card-title a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition-speed) ease-out;
}

.car-card-title a:hover {
  color: var(--accent);
}

/* --- Specs Chips Row --- */
.car-specs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.spec-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background-color: var(--surface-subtle);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
}

.spec-item .spec-icon,
.spec-item svg {
  width: 12px;
  height: 12px;
  color: var(--text-subtle);
  flex-shrink: 0;
}

.spec-sep {
  display: none;
}

/* --- Trust Bar: VIN & Certified Inspection --- */
.car-vin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

.vin-meta-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vin-badge {
  font-size: 9.5px;
  font-weight: 700;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 1px 4px;
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  line-height: 1.2;
}

.vin-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.report-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #166534;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.3;
  white-space: nowrap;
  margin-inline-start: auto;
}

.report-badge .report-icon,
.report-badge svg {
  width: 12px;
  height: 12px;
  color: #166534;
  flex-shrink: 0;
}

/* --- Financial & Timer Panel --- */
.car-bid-status {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bid-status-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bid-price-col {
  flex: 1;
}

.bid-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bid-icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.bid-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.bid-value {
  font-size: 17.5px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text);
  line-height: 1.2;
}

.bid-currency {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.bid-timer-col {
  align-items: flex-end;
  flex-shrink: 0;
}

.car-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.car-timer .timer-icon,
.car-timer svg {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.car-timer.urgent {
  background-color: #FEF2F2;
  border-color: #FECACA;
  color: #DC2626;
}

.car-timer.urgent .timer-icon,
.car-timer.urgent svg {
  color: #DC2626;
}

/* --- Action Buttons Footer --- */
.car-card-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  padding-top: 2px;
}

.btn-card-bid,
.btn-card-report {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 12.5px;
  padding: 0 10px;
  transition: all var(--transition-speed) ease-out;
  cursor: pointer;
  white-space: nowrap;
  min-width: 0;
  box-sizing: border-box;
}

.car-card-footer a.btn-card-bid,
.car-card-footer .btn-card-bid {
  background-color: var(--text) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--text) !important;
}

.car-card-footer a.btn-card-bid *,
.car-card-footer .btn-card-bid * {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
  fill: none;
}

.car-card-footer a.btn-card-bid:hover,
.car-card-footer .btn-card-bid:hover {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #FFFFFF !important;
}

.car-card-footer a.btn-card-bid:hover * {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

.car-card-footer a.btn-card-report,
.car-card-footer .btn-card-report {
  background-color: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-strong) !important;
}

.car-card-footer a.btn-card-report *,
.car-card-footer .btn-card-report * {
  color: var(--text) !important;
  stroke: var(--text) !important;
}

.car-card-footer a.btn-card-report:hover,
.car-card-footer .btn-card-report:hover {
  background-color: var(--surface-subtle) !important;
  border-color: var(--text) !important;
  color: var(--text) !important;
}

.btn-action-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Responsive Fine-Tuning for Smaller Screens */
@media (max-width: 480px) {
  .car-card-body {
    padding: 13px;
    gap: 10px;
  }

  .car-card-title {
    font-size: 14.5px;
  }

  .car-bid-status {
    padding: 8px 10px;
  }

  .bid-value {
    font-size: 16px;
  }

  .car-timer {
    font-size: 11px;
    padding: 2px 6px;
  }

  .car-card-footer {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .btn-card-bid,
  .btn-card-report {
    height: 38px;
    font-size: 12px;
    padding: 0 6px;
    gap: 4px;
  }
}

@media (max-width: 360px) {
  .car-card-footer {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   NAVIGATION TABS
   ========================================================================== */

.subnav-tabs {
  display: flex;
  gap: var(--space-6);
  border-bottom: none;
  margin-bottom: var(--space-16);
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}

.subnav-tabs::-webkit-scrollbar {
  display: none;
}

.subnav-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  border: var(--border-width) solid transparent;
  white-space: nowrap;
  background-color: var(--surface-subtle);
  cursor: pointer;
  transition: background-color var(--transition-speed) ease-out,
              color var(--transition-speed) ease-out,
              border-color var(--transition-speed) ease-out;
}

.subnav-tab:hover {
  background-color: var(--surface-muted);
  color: var(--text);
}

.subnav-tab.active {
  background-color: var(--surface);
  color: var(--accent);
  border-color: var(--border-strong);
  box-shadow: 0 1px 3px rgba(31, 27, 24, 0.05);
}

/* ==========================================================================
   TABLES (Bid logs, Watchlist, Orders)
   ========================================================================== */

.cars-table-wrapper {
  width: 100%;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  overflow-x: auto;
}

.cars-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: var(--text-xs);
}

.cars-table th {
  background-color: var(--surface-subtle);
  padding: 8px 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: var(--border-width) solid var(--border);
  white-space: nowrap;
}

.cars-table td {
  padding: 8px 12px;
  border-bottom: var(--border-width) solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.cars-table tr:last-child td {
  border-bottom: none;
}

.cars-table tr:hover td {
  background-color: var(--surface-subtle);
}

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */

.empty-state {
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  padding: var(--space-32) var(--space-16);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.empty-state-icon {
  width: 32px;
  height: 32px;
  color: var(--text-subtle);
}

.empty-state-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text);
}

.empty-state-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
  max-width: 380px;
}

/* ==========================================================================
   BRAND LOGO IMAGE
   ========================================================================== */

.cars-brand-logo-img {
  height: 36px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* ==========================================================================
   SELL YOUR CAR CTA BUTTON & MODAL
   ========================================================================== */

.btn-sell-car {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  background-color: var(--accent);
  color: #ffffff !important;
  border: 1px solid var(--accent);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--transition-speed) ease-out, border-color var(--transition-speed) ease-out;
}

.btn-sell-car:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

@media (max-width: 900px) {
  .cars-header-actions .btn-sell-car {
    display: none !important;
  }
}

/* ==========================================================================
   VEHICLE AUCTION SUBMISSION MODAL (اعرض سيارتك في المزاد)
   Warm luxury aesthetic inspired by anda.social (Ivory/Sand/Frosted)
   ========================================================================== */

.cars-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 22, 18, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: opacity 240ms ease, visibility 240ms ease;
  direction: rtl;
}

.cars-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cars-modal-card {
  background-color: #FAF8F5;
  border: 1px solid #E6E0D5;
  border-radius: 24px;
  width: 100%;
  max-width: 650px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 28px 64px -12px rgba(28, 24, 20, 0.28), 0 8px 24px -4px rgba(28, 24, 20, 0.12);
  padding: 26px 28px 24px;
  position: relative;
  transform: translateY(18px) scale(0.98);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 240ms ease;
  box-sizing: border-box;
}

.cars-modal-overlay.active .cars-modal-card {
  transform: translateY(0) scale(1);
}

/* Custom scrollbar for modal */
.cars-modal-card::-webkit-scrollbar {
  width: 6px;
}
.cars-modal-card::-webkit-scrollbar-track {
  background: #FAF8F5;
}
.cars-modal-card::-webkit-scrollbar-thumb {
  background: #DDD5C7;
  border-radius: 9999px;
}

/* Top bar with badge and close */
.cars-modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cars-modal-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background-color: #F2ECE1;
  color: #8A6D3B;
  border: 1px solid #E6DEC8;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.cars-modal-pill-badge svg {
  width: 14px;
  height: 14px;
  color: #8A6D3B;
}

.cars-modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #736B63;
  border: 1px solid #E6E0D5;
  background-color: #FFFFFF;
  cursor: pointer;
  transition: all 180ms ease;
  flex-shrink: 0;
}

.cars-modal-close-btn:hover {
  background-color: #1F1B18;
  color: #FFFFFF;
  border-color: #1F1B18;
  transform: rotate(90deg);
}

/* Modal Title & Subtitle */
.cars-modal-heading-area {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ECE7DE;
}

.cars-modal-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #1F1B18;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.cars-modal-subtitle {
  margin: 0;
  font-size: 13px;
  color: #736B63;
  line-height: 1.6;
}

/* Form Layout */
.cars-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 580px) {
  .cars-form-row-2 {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
  }
}

.cars-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.cars-field-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #2C2621;
}

.cars-field-ico {
  width: 15px;
  height: 15px;
  color: #8A6D3B;
  flex-shrink: 0;
}

.cars-modal-input,
.cars-modal-select,
.cars-modal-textarea {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #E6E0D5;
  background-color: #FFFFFF;
  color: #1F1B18;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.cars-modal-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23736B63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
}

.cars-modal-textarea {
  height: auto;
  min-height: 68px;
  padding: 10px 14px;
  resize: vertical;
  line-height: 1.5;
}

.cars-modal-input:focus,
.cars-modal-select:focus,
.cars-modal-textarea:focus {
  border-color: #1F1B18;
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 27, 24, 0.08);
}

.cars-modal-input::placeholder,
.cars-modal-textarea::placeholder {
  color: #A39B90;
  font-size: 13px;
}

/* Phone input with country code badge */
.cars-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cars-phone-wrap .cars-modal-input {
  padding-left: 88px;
}

.cars-phone-badge {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #F4EFE6;
  border: 1px solid #E6DEC8;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #1F1B18;
  pointer-events: none;
  direction: ltr;
}

/* Guarantee / Trust Banner */
.cars-modal-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: #F5EFE6;
  border: 1px solid #E6DEC8;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 14px 0 16px;
}

.cars-modal-guarantee-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background-color: #ECE3D4;
  color: #8A6D3B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cars-modal-guarantee-ico svg {
  width: 18px;
  height: 18px;
}

.cars-modal-guarantee-text strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #1F1B18;
  margin-bottom: 2px;
}

.cars-modal-guarantee-text p {
  margin: 0;
  font-size: 12px;
  color: #736B63;
  line-height: 1.5;
}

/* Notice box */
.cars-modal-notice {
  display: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  animation: fadeInNotice 250ms ease-out;
}

@keyframes fadeInNotice {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cars-modal-notice.success {
  background-color: #EDF7EE;
  border: 1px solid #B8E4BA;
  color: #1B5E20;
}

.cars-modal-notice.error {
  background-color: #FDE8E8;
  border: 1px solid #F8B4B4;
  color: #9B1C1C;
}

/* Footer & Buttons */
.cars-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #ECE7DE;
  margin-top: 10px;
}

.cars-modal-btn {
  padding: 11px 22px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  border: none;
  text-decoration: none;
}

.cars-modal-btn-cancel {
  background-color: #FFFFFF;
  color: #736B63;
  border: 1px solid #E6E0D5;
}

.cars-modal-btn-cancel:hover {
  background-color: #F2ECE1;
  color: #1F1B18;
  border-color: #DDD5C7;
}

.cars-modal-btn-submit {
  background-color: #1F1B18;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(31, 27, 24, 0.16);
}

.cars-modal-btn-submit:hover {
  background-color: #332D28;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31, 27, 24, 0.22);
}

.cars-modal-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 540px) {
  .cars-modal-card {
    padding: 18px 16px;
    border-radius: 20px;
  }
  .cars-modal-title {
    font-size: 19px;
  }
  .cars-modal-footer {
    flex-direction: column-reverse;
  }
  .cars-modal-btn {
    width: 100%;
  }
}

/* ==========================================================================
   DESKTOP & MOBILE FULL FOOTER (تصميم فاخر متناسق مع هوية وألوان الموقع)
   ========================================================================== */

.cars-footer {
  background-color: #F2EDE4;
  border-top: 1px solid #DFD7C8;
  color: #5C554D;
  padding-top: 48px;
  padding-bottom: 28px;
  font-size: var(--text-xs);
  position: relative;
  z-index: 10;
}

.cars-footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.1fr 1.1fr 1.5fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (max-width: 992px) {
  .cars-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
}

@media (max-width: 580px) {
  .cars-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.footer-col-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1F1B18;
  margin-bottom: 14px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col-title::after {
  content: '';
  display: block;
  width: 14px;
  height: 2px;
  background-color: #8A6D3B;
  border-radius: 2px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: #5C554D;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease-out;
}

.footer-link:hover {
  color: #8A6D3B;
  transform: translateX(-3px);
}

.footer-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background-color: #FFFFFF;
  border: 1px solid #E2DACD;
  border-radius: 9999px;
  color: #2E2823;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.footer-contact-card {
  background: #FFFFFF;
  border: 1px solid #E2DACD;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(31, 27, 24, 0.03);
}

.footer-toll-free-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #EFEAE2;
}

.footer-toll-number {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 800;
  color: #8A6D3B;
  direction: ltr;
}

.footer-showroom-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #5C554D;
}

.footer-showroom-title {
  font-weight: 700;
  color: #1F1B18;
}

.footer-bottom-bar {
  border-top: 1px solid #DFD7C8;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11.5px;
  color: #736B63;
}

.footer-payment-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  background: #FFFFFF;
  border: 1px solid #DFD7C8;
  border-radius: 6px;
  height: 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease-out;
}

.footer-pay-badge:hover {
  transform: translateY(-1px);
  border-color: #8A6D3B;
  box-shadow: 0 2px 6px rgba(138, 109, 59, 0.12);
}

.footer-pay-badge img {
  height: 16px;
  width: auto;
  max-width: 46px;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   REFINED MOBILE BOTTOM NAV BAR
   ========================================================================== */

/* Floating Docked Mobile Bottom Nav (anda.social luxury style) */
.mob-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(60px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(253, 252, 249, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
  z-index: 890;
  font-family: var(--font-family);
  display: none;
}

@media (max-width: 860px) {
  .mob-bottom-nav {
    display: block;
  }
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
}

.mob-bottom-nav-inner {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  direction: rtl;
  padding: 0 6px;
}

.mob-bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: transparent;
  transition: color var(--transition-speed);
  position: relative;
  padding: 4px 0;
}

.mob-bn-item:hover,
.mob-bn-item.active {
  color: var(--accent);
}

.mob-bn-item svg {
  width: 19px;
  height: 19px;
}

.mob-bn-sell {
  color: var(--accent);
  font-weight: 700;
}

.mob-bn-sell .mob-bn-ico-sell {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mob-bn-sell .mob-bn-ico-sell svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

/* ==========================================================================
   HERO FULL-WIDTH BANNER & SEARCH FILTER (بانر السيارة الممتد بعرض الموقع)
   ========================================================================== */
.hero-banner-section {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #12100E;
  color: #FFFFFF;
  padding: 50px 0;
}

.hero-banner-image-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-banner-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  filter: brightness(0.65) contrast(1.1);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 16, 14, 0.40) 0%,
    rgba(18, 16, 14, 0.68) 55%,
    rgba(18, 16, 14, 0.92) 100%
  );
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-badge-wrap {
  margin-bottom: 14px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #F7EFE1;
  letter-spacing: 0.2px;
}

.hero-banner-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 10px;
  line-height: 1.25;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero-banner-subtitle {
  font-size: clamp(13px, 1.6vw, 16px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Embedded Search & Filter Card */
.hero-search-card {
  width: 100%;
  max-width: 1080px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.hero-search-form {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr 1.3fr auto;
  gap: 12px;
  align-items: flex-end;
  text-align: right;
  direction: rtl;
}

.hero-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hero-field-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #59524B;
  display: block;
  white-space: nowrap;
}

.hero-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-field-icon {
  position: absolute;
  right: 12px;
  width: 15px;
  height: 15px;
  color: #8C8276;
  pointer-events: none;
}

.hero-form-input,
.hero-form-select {
  width: 100%;
  height: 44px;
  background: #FAF8F5;
  border: 1px solid #E3DCCF;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1F1B18;
  transition: all 0.15s ease;
  outline: none;
  font-family: inherit;
}

.hero-input-wrap .hero-form-input {
  padding-right: 34px;
}

.hero-form-input:focus,
.hero-form-select:focus {
  background: #FFFFFF;
  border-color: #8A6D3B;
  box-shadow: 0 0 0 3px rgba(138, 109, 59, 0.14);
}

.hero-search-btn {
  height: 44px;
  padding: 0 24px;
  background: #1F1B18;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(31, 27, 24, 0.25);
  font-family: inherit;
}

.hero-search-btn:hover {
  background: #3A332E;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31, 27, 24, 0.32);
}

/* Car Card Links & SVG Icon Enhancements */
.car-card-media-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}

.car-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed);
}

.car-card-title a:hover {
  color: var(--accent);
}

.car-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .hero-search-form {
    grid-template-columns: 1fr 1fr;
  }
  .hero-field-group.field-keyword {
    grid-column: 1 / -1;
  }
  .hero-field-group.field-submit {
    grid-column: 1 / -1;
  }
  .hero-search-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-banner-section {
    min-height: 440px;
    padding: 32px 0;
  }
  .hero-search-card {
    padding: 14px;
    border-radius: 16px;
  }
  .hero-search-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

