/*
Theme Name:        AUTOHUB PRO
Theme URI:         https://autohubpro.com
Author:            AUTOHUB PRO Team
Author URI:        https://autohubpro.com
Description:       قالب احترافي لمعارض السيارات المستعملة وقطع الغيار - يدعم WooCommerce و Elementor و ACF و Rank Math SEO. تصميم RTL عربي متجاوب مع الهاتف.
Version:           2.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       autohub-pro
Tags:              rtl-language, right-to-left, arabic, car-dealership, woocommerce, responsive-layout, custom-colors
WC tested up to:   9.0
*/

/* ================================================================
   1. CUSTOM PROPERTIES
   ================================================================ */
:root {
  --primary:        #CC0000;
  --primary-dark:   #aa0000;
  --primary-light:  rgba(204,0,0,.12);
  --secondary:      #F5C518;
  --secondary-dark: #d4a800;
  --dark:           #111111;
  --dark-2:         #1a1a1a;
  --dark-3:         #222222;
  --zinc-800:       #27272a;
  --zinc-700:       #3f3f46;
  --zinc-500:       #71717a;
  --zinc-400:       #a1a1aa;
  --zinc-200:       #e4e4e7;
  --zinc-100:       #f4f4f5;
  --white:          #ffffff;
  --text:           #111111;
  --text-muted:     #52525b;
  --whatsapp:       #25D366;
  --radius:         10px;
  --shadow:         0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.18);
  --transition:     0.22s ease;
  --container:      1280px;
}

/* ================================================================
   2. RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { direction: rtl; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--white); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; transition: color var(--transition); }
ul  { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ================================================================
   3. LAYOUT
   ================================================================ */
.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 20px;
}
@media(min-width:768px)  { .container { padding: 0 32px; } }
@media(min-width:1200px) { .container { padding: 0 48px; } }

/* ================================================================
   4. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 800; border: 2px solid transparent;
  transition: all var(--transition); white-space: nowrap; cursor: pointer;
}
.btn-primary  { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(204,0,0,.3); }
.btn-primary:hover  { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(204,0,0,.4); }
.btn-secondary { background: var(--secondary); color: var(--dark); }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); }
.btn-whatsapp  { background: var(--whatsapp); color: #fff; box-shadow: 0 4px 16px rgba(37,211,102,.3); }
.btn-whatsapp:hover  { background: #20bc5a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.45); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--primary); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

/* ================================================================
   5. TOP BAR
   ================================================================ */
.header-top {
  background: #0a0a0a; color: rgba(255,255,255,.6);
  font-size: .8rem; padding: 8px 0;
  border-bottom: 2px solid var(--primary);
}
.header-top .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.header-top-right, .header-top-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.header-top span, .header-top a { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.6); }
.header-top a:hover { color: var(--secondary); }

/* ================================================================
   6. HEADER
   ================================================================ */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #111; border-bottom: 3px solid var(--primary);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: 0 8px 40px rgba(0,0,0,.6); }
.header-main .container { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }

/* Logo */
.site-logo a { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.4rem; color: #fff;
  box-shadow: 0 4px 12px rgba(204,0,0,.4); flex-shrink: 0;
}
.logo-text .name { display: block; font-size: 1.25rem; font-weight: 900; color: #fff; text-transform: uppercase; line-height: 1.1; }
.logo-text .name span { color: var(--secondary); }
.logo-text .tagline { display: block; font-size: .62rem; color: rgba(255,255,255,.4); font-weight: 600; letter-spacing: .06em; }

/* Nav */
.main-nav .nav-menu { display: flex; align-items: center; gap: 4px; }
.main-nav .nav-menu > li > a, .main-nav .nav-menu a {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: 8px; font-size: .9rem; font-weight: 700;
  color: rgba(255,255,255,.75); transition: all var(--transition); position: relative;
}
.main-nav .nav-menu > li > a:hover,
.main-nav .nav-menu > li.current-menu-item > a,
.main-nav .nav-menu > li.current_page_item > a { color: #fff; background: rgba(255,255,255,.08); }
.main-nav .nav-menu > li.current-menu-item > a::after,
.main-nav .nav-menu > li.current_page_item > a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; background: var(--primary); border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 10px;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover { background: rgba(255,255,255,.15); }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav {
  background: #0d0d0d; border-top: 1px solid rgba(255,255,255,.08);
  padding: 0; overflow: hidden; max-height: 0; transition: max-height .35s ease, padding .35s ease;
}
.mobile-nav.open { max-height: 520px; padding: 16px 0; }
.mobile-nav[hidden] { display: block !important; }
.mobile-nav .mobile-nav-menu, .mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 12px 20px; border-radius: 8px; font-size: .95rem; font-weight: 700; color: rgba(255,255,255,.7); }
.mobile-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.mobile-cta-row { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; }
.mobile-cta-row .btn { flex: 1; justify-content: center; font-size: .85rem; }

@media(max-width:900px) { .main-nav, .header-cta { display: none !important; } .mobile-menu-toggle { display: flex; } }
@media(min-width:901px) { .mobile-nav { display: none !important; } }

/* ================================================================
   7. HERO SLIDER
   ================================================================ */
.hero-slider {
  position: relative;
  height: clamp(500px, 90vh, 820px);
  overflow: hidden; background: var(--dark);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease;
  display: flex; align-items: center; justify-content: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 8s ease;
}
.hero-slide.active > img { transform: scale(1.05); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,.2) 100%);
}
.hero-content-wrap {
  position: relative; z-index: 3; text-align: center; color: #fff;
  padding: 0 20px; max-width: 860px;
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.hero-slide.active .hero-content-wrap { opacity: 1; transform: translateY(0); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 100px;
  background: rgba(204,0,0,.2); border: 1px solid rgba(204,0,0,.4);
  color: #ff6666; font-size: .85rem; font-weight: 700;
  margin-bottom: 20px; backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(2.2rem, 7vw, 5.5rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero-title .c-red    { color: var(--primary); }
.hero-title .c-yellow { color: var(--secondary); }
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,.85); margin-bottom: 36px;
  line-height: 1.6; text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 28px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 100px;
  background: rgba(245,197,24,.15); border: 1px solid rgba(245,197,24,.35);
  color: var(--secondary); font-size: .8rem; font-weight: 700;
  backdrop-filter: blur(8px);
}

/* Slider arrows */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 50px; height: 50px; background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.2); border-radius: 12px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  cursor: pointer; transition: all var(--transition); backdrop-filter: blur(8px);
  line-height: 1;
}
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-50%) scale(1.08); }
.slider-arrow.prev { right: 24px; }
.slider-arrow.next { left: 24px; }
.slider-dots {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 8px; align-items: center;
}
.slider-dot {
  width: 10px; height: 10px; background: rgba(255,255,255,.35);
  border-radius: 100px; cursor: pointer; transition: all .3s; border: none;
}
.slider-dot.active { background: var(--primary); width: 28px; }
.hero-fade-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to top, #fff, transparent); z-index: 5; pointer-events: none;
}

@media(max-width:480px) {
  .slider-arrow { width: 38px; height: 38px; font-size: 1.1rem; }
  .slider-arrow.prev { right: 10px; } .slider-arrow.next { left: 10px; }
}

/* ================================================================
   8. STATS BAR
   ================================================================ */
.stats-bar { background: var(--dark); border-top: 3px solid var(--primary); border-bottom: 3px solid var(--primary); }
.stats-bar .container { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 16px; text-align: center;
  border-left: 1px solid rgba(255,255,255,.08); transition: background var(--transition);
}
.stat-item:last-child { border-left: none; }
.stat-item:hover { background: rgba(255,255,255,.04); }
.stat-icon { font-size: 1.8rem; margin-bottom: 6px; }
.stat-value { font-size: 1.9rem; font-weight: 900; color: #fff; }
.stat-label { font-size: .8rem; color: var(--zinc-400); margin-top: 2px; }
@media(max-width:640px) {
  .stats-bar .container { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ================================================================
   9. QUICK SEARCH
   ================================================================ */
.quick-search { background: var(--dark); border-bottom: 3px solid var(--primary); padding: 24px 0; }
.search-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.search-field { flex: 1; min-width: 160px; }
.search-field label { display: block; color: rgba(255,255,255,.5); font-size: .78rem; font-weight: 700; margin-bottom: 6px; }
.search-field select, .search-field input {
  width: 100%; height: 46px; padding: 0 14px;
  border-radius: 10px; border: 2px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06); color: #fff;
  font-size: .9rem; font-family: inherit; transition: border-color var(--transition); appearance: none;
}
.search-field select:focus, .search-field input:focus { outline: none; border-color: var(--primary); }
.search-field option { background: #222; }

/* ================================================================
  10. SECTION HEADERS
   ================================================================ */
.section-hd { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 16px; flex-wrap: wrap; }
.section-hd-text .eyebrow {
  font-size: .8rem; font-weight: 700; color: var(--primary); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.section-hd-text .eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--primary); display: inline-block; }
.section-hd-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; color: var(--dark); line-height: 1.2; }
.section-hd-text h2 span.red  { color: var(--primary); }
.section-hd-text h2 span.gold { color: var(--secondary); }
.btn-view-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 800; color: var(--primary);
  border: 1px solid rgba(204,0,0,.25); padding: 9px 18px; border-radius: 10px;
  transition: all var(--transition); white-space: nowrap;
}
.btn-view-all:hover { border-color: var(--primary); background: rgba(204,0,0,.06); }

/* ================================================================
  11. CAR CARD
   ================================================================ */
.car-card {
  background: #fff; border: 1px solid var(--zinc-200); border-radius: 16px;
  overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column;
}
.car-card:hover { border-color: rgba(204,0,0,.3); box-shadow: 0 8px 40px rgba(204,0,0,.12); transform: translateY(-4px); }
.car-card-img { position: relative; height: 210px; overflow: hidden; background: var(--zinc-100); }
.car-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.car-card:hover .car-card-img img { transform: scale(1.06); }
.car-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 55%); }
.car-badge { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: 100px; font-size: .72rem; font-weight: 800;
  backdrop-filter: blur(8px); border: 1px solid transparent;
}
.badge-featured { background: var(--secondary); color: var(--dark); }
.badge-excellent { background: rgba(34,197,94,.15); color: #4ade80; border-color: rgba(34,197,94,.3); }
.badge-good      { background: rgba(59,130,246,.15); color: #60a5fa; border-color: rgba(59,130,246,.3); }
.badge-ok        { background: rgba(234,179,8,.15);  color: #facc15; border-color: rgba(234,179,8,.3); }
.car-price {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  background: var(--primary); color: #fff; font-weight: 900; font-size: 1rem;
  padding: 6px 14px; border-radius: 10px; box-shadow: 0 4px 16px rgba(204,0,0,.5);
}
.car-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.car-title { font-size: 1.15rem; font-weight: 900; color: var(--dark); margin-bottom: 12px; line-height: 1.3; transition: color var(--transition); }
.car-card:hover .car-title { color: var(--primary); }
.car-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.spec-item { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-muted); }
.spec-item svg { color: rgba(204,0,0,.6); flex-shrink: 0; }
.car-divider { height: 1px; background: var(--zinc-100); margin-bottom: 14px; }
.car-actions { display: flex; gap: 8px; margin-top: auto; }
.car-actions .btn-detail {
  flex: 1; padding: 10px; border: 2px solid rgba(204,0,0,.25); border-radius: 10px;
  color: var(--primary); font-weight: 800; font-size: .85rem; text-align: center; transition: all var(--transition);
}
.car-actions .btn-detail:hover { border-color: var(--primary); background: rgba(204,0,0,.06); }
.car-actions .btn-wa, .car-actions .btn-call {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0; border: 1px solid transparent;
}
.car-actions .btn-wa   { background: rgba(37,211,102,.1); color: var(--whatsapp); border-color: rgba(37,211,102,.25); }
.car-actions .btn-wa:hover   { background: var(--whatsapp); color: #fff; }
.car-actions .btn-call { background: rgba(204,0,0,.1); color: var(--primary); border-color: rgba(204,0,0,.25); }
.car-actions .btn-call:hover { background: var(--primary); color: #fff; }

/* ================================================================
  12. PART CARD
   ================================================================ */
.part-card {
  background: #fff; border: 1px solid var(--zinc-200); border-radius: 16px;
  overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column;
}
.part-card:hover { border-color: rgba(204,0,0,.3); box-shadow: 0 8px 32px rgba(204,0,0,.10); transform: translateY(-3px); }
.part-card-img { height: 180px; overflow: hidden; background: var(--zinc-100); position: relative; }
.part-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.part-card:hover .part-card-img img { transform: scale(1.06); }
.part-stock { position: absolute; top: 10px; right: 10px; z-index: 2; }
.in-stock   { background: rgba(34,197,94,.15); color: #4ade80; border-color: rgba(34,197,94,.3); }
.out-stock  { background: rgba(239,68,68,.15);  color: #f87171; border-color: rgba(239,68,68,.3); }
.part-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.part-category {
  display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; background: rgba(204,0,0,.08); color: var(--primary);
  margin-bottom: 8px; width: fit-content;
}
.part-name {
  font-size: 1rem; font-weight: 900; color: var(--dark); line-height: 1.35;
  margin-bottom: 6px; min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.part-compat { font-size: .75rem; color: var(--text-muted); margin-bottom: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.part-divider { height: 1px; background: var(--zinc-100); margin-bottom: 12px; }
.part-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.part-price  { font-size: 1.2rem; font-weight: 900; color: var(--primary); }
.part-price small { font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.btn-wa-part {
  display: flex; align-items: center; gap: 6px;
  background: var(--whatsapp); color: #fff; font-size: .8rem; font-weight: 800;
  padding: 8px 14px; border-radius: 10px; transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(37,211,102,.3);
}
.btn-wa-part:hover { background: #20bc5a; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,.45); }

/* ================================================================
  13. SECTIONS LAYOUT
   ================================================================ */
.section-cars   { padding: 80px 0; background: #fff; }
.section-parts  { padding: 80px 0; background: var(--zinc-100); }
.section-brands { padding: 60px 0; background: #fff; border-top: 1px solid var(--zinc-200); }
.section-why    { padding: 80px 0; background: var(--dark); color: #fff; }
.section-map    { padding: 72px 0; background: var(--dark); border-top: 4px solid var(--primary); }
.section-cta    { padding: 96px 0; background: var(--primary); text-align: center; position: relative; overflow: hidden; }
.divider-cta    { background: var(--primary); padding: 24px 0; }
.divider-cta .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.divider-cta-text h3 { font-size: 1.1rem; font-weight: 900; color: #fff; }
.divider-cta-text p  { font-size: .85rem; color: rgba(255,255,255,.75); margin-top: 2px; }

/* Brands grid */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); gap: 16px; }
.brand-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 12px; border: 1px solid var(--zinc-200); border-radius: 12px;
  transition: all var(--transition); cursor: pointer;
}
.brand-card:hover { border-color: rgba(204,0,0,.3); box-shadow: var(--shadow); transform: translateY(-2px); }
.brand-card img { height: 40px; object-fit: contain; }
.brand-name { font-size: .75rem; font-weight: 700; color: var(--text-muted); text-align: center; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; }
.why-card {
  padding: 24px; border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; background: rgba(255,255,255,.03); transition: all var(--transition);
}
.why-card:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); transform: translateY(-3px); }
.why-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; background: rgba(255,255,255,.07); }
.why-title { font-size: 1rem; font-weight: 900; color: #fff; margin-bottom: 8px; }
.why-desc  { font-size: .875rem; color: var(--zinc-400); line-height: 1.6; }

/* Map section */
.map-section-title { text-align: center; margin-bottom: 40px; }
.map-section-title h2 { font-size: clamp(1.6rem,4vw,2.4rem); font-weight: 900; color: #fff; }
.map-section-title h2 span { color: var(--primary); }
.map-section-title p  { color: rgba(255,255,255,.5); margin-top: 8px; }
.map-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: stretch; }
.map-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px; padding: 20px; display: flex; align-items: flex-start; gap: 14px;
  transition: border-color var(--transition);
}
.contact-card:hover { border-color: rgba(204,0,0,.4); }
.contact-card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem;
}
.contact-card-label { font-weight: 800; color: #fff; margin-bottom: 4px; font-size: .9rem; }
.contact-card-value { font-size: .82rem; color: rgba(255,255,255,.45); }
.contact-card-value a { color: inherit; }
.contact-card-value a:hover { color: #fff; }
.map-embed { border-radius: 16px; overflow: hidden; border: 2px solid rgba(255,255,255,.08); min-height: 280px; }
.map-embed iframe { display: block; width: 100%; min-height: 280px; border: 0; }
@media(max-width:900px) { .map-grid { grid-template-columns: 1fr; } }

/* CTA */
.cta-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: .15; }
.cta-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.cta-title    { font-size: clamp(1.8rem,5vw,3rem); font-weight: 900; color: #fff; margin-bottom: 16px; }
.cta-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.88); margin-bottom: 36px; line-height: 1.6; }
.cta-actions  { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ================================================================
  14. FOOTER
   ================================================================ */
#site-footer { background: #0c0c0c; color: var(--zinc-400); }
.footer-main { border-top: 1px solid rgba(255,255,255,.07); padding: 60px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo .name { font-size: 1.1rem; font-weight: 900; color: #fff; text-transform: uppercase; }
.footer-logo .name span { color: var(--secondary); }
.footer-about p { font-size: .85rem; line-height: 1.7; margin-top: 14px; color: rgba(255,255,255,.38); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); transition: all var(--transition);
}
.social-link:hover { border-color: var(--primary); color: var(--primary); background: rgba(204,0,0,.12); }
.footer-widget h4 {
  font-size: .95rem; font-weight: 900; color: #fff;
  margin-bottom: 18px; padding-right: 12px; border-right: 3px solid var(--primary);
}
.footer-widget ul { display: flex; flex-direction: column; gap: 10px; }
.footer-widget ul li a {
  font-size: .83rem; color: rgba(255,255,255,.4);
  display: flex; align-items: center; gap: 8px; transition: color var(--transition);
}
.footer-widget ul li a::before {
  content: ''; width: 5px; height: 5px;
  background: rgba(204,0,0,.4); border-radius: 50%; flex-shrink: 0; transition: background var(--transition);
}
.footer-widget ul li a:hover { color: var(--primary); }
.footer-widget ul li a:hover::before { background: var(--primary); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .83rem; color: rgba(255,255,255,.42); margin-bottom: 12px;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: inherit; }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.3); padding: 18px 0; }
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: .78rem; color: rgba(255,255,255,.3);
}
.footer-bottom span { color: rgba(255,255,255,.55); font-weight: 700; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }
@media(max-width:1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:640px)  { .footer-grid { grid-template-columns: 1fr; } }

/* ================================================================
  15. FLOATING BUTTONS
   ================================================================ */
.floating-whatsapp, .floating-call {
  position: fixed; bottom: 24px; z-index: 9999;
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.3); transition: all var(--transition);
}
.floating-whatsapp { left: 20px; background: var(--whatsapp); color: #fff; box-shadow: 0 6px 24px rgba(37,211,102,.4); }
.floating-call     { right: 20px; background: var(--primary); color: #fff; box-shadow: 0 6px 24px rgba(204,0,0,.4); }
.floating-whatsapp:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 32px rgba(37,211,102,.55); }
.floating-call:hover     { transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 32px rgba(204,0,0,.55); }

/* ================================================================
  16. MISC
   ================================================================ */
.breadcrumb { background: var(--zinc-100); padding: 14px 0; border-bottom: 1px solid var(--zinc-200); }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 40px 0; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-weight: 700; border: 2px solid var(--zinc-200); color: var(--text-muted); transition: all var(--transition);
}
.pagination a:hover, .pagination span.current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ================================================================
  17. RESPONSIVE
   ================================================================ */
@media(max-width:768px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .section-hd { flex-direction: column; align-items: flex-start; }
  .divider-cta .container { flex-direction: column; text-align: center; }
}
@media(max-width:480px) { .header-top { display: none; } }

/* ================================================================
  18. WOOCOMMERCE
   ================================================================ */
.woocommerce .button, .woocommerce button.button {
  background: var(--primary) !important; color: #fff !important;
  border-radius: var(--radius) !important; font-weight: 800 !important;
}
.woocommerce .button:hover, .woocommerce button.button:hover { background: var(--primary-dark) !important; }

/* ================================================================
  19. ELEMENTOR COMPATIBILITY
   ================================================================ */
.elementor-section > .elementor-container { max-width: var(--container) !important; }

/* ================================================================
  20. ADMIN BAR & ACCESSIBILITY
   ================================================================ */
.admin-bar #site-header { top: 32px; }
@media(max-width:782px) { .admin-bar #site-header { top: 46px; } }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* ================================================================
  21. POLICY PAGES
   ================================================================ */
.policy-page-hero {
  background: #111113;
  border-bottom: 4px solid var(--primary);
  padding: 3.5rem 0;
}
.policy-hero-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.policy-icon {
  font-size: 2.5rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb,220,38,38),.15);
  border-radius: 1rem;
  flex-shrink: 0;
}
.policy-page-hero .breadcrumb-nav {
  font-size: .85rem;
  color: #888;
  margin-bottom: .5rem;
}
.policy-page-hero .breadcrumb-nav a { color: #aaa; text-decoration: none; }
.policy-page-hero .breadcrumb-nav a:hover { color: #fff; }
.policy-page-hero .breadcrumb-nav span { margin: 0 .4rem; }
.policy-page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  margin: 0;
}
.policy-page-body { background: #fafafa; min-height: 50vh; padding: 4rem 0; }
.policy-content {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 2px 24px rgba(0,0,0,.06);
  color: #444;
  line-height: 1.85;
  font-size: 1rem;
}
.policy-content h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: .5rem;
  margin: 2rem 0 .75rem;
}
.policy-content h2:first-child { margin-top: 0; }
.policy-content ul { padding-right: 1.5rem; margin: .5rem 0 1rem; }
.policy-content ul li { margin-bottom: .4rem; }
.policy-content a { color: var(--primary); text-decoration: underline; }
.policy-content strong { font-weight: 800; color: #222; }
.policy-footer-nav {
  max-width: 780px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ================================================================
  22. LANGUAGE SWITCHER BUTTON
   ================================================================ */
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
  padding: .4rem .85rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  font-family: inherit;
}
.lang-switcher-btn:hover {
  border-color: rgba(255,255,255,.6);
  color: #fff;
  background: rgba(255,255,255,.07);
}

/* ================================================================
  23. BACK TO TOP BUTTON
   ================================================================ */
#back-to-top {
  position: fixed;
  bottom: 90px;
  left: 22px;
  right: auto;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  z-index: 998;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { background: var(--primary-dark, #b91c1c); }
[dir="rtl"] #back-to-top { left: auto; right: 22px; }

/* ================================================================
  24. FOOTER BOTTOM LEGAL LINKS
   ================================================================ */
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.footer-legal-links { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.footer-legal-links a { color: #666; font-size: .78rem; text-decoration: none; transition: color .2s; }
.footer-legal-links a:hover { color: #bbb; }
.footer-legal-links .sep { color: #444; }

/* ================================================================
   25. MISSING UTILITY CLASSES — GRID / SECTIONS / BRANDS / TRUST / CTA / PARTS
   ================================================================ */

/* ---- 3-column & 4-column grids ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media(max-width:960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:580px) { .grid-3 { grid-template-columns: 1fr; } }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media(max-width:1024px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:768px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:480px)  { .grid-4 { grid-template-columns: 1fr; } }

/* ---- Section layout utilities ---- */
.section-padding { padding: 80px 0; }
@media(max-width:768px) { .section-padding { padding: 56px 0; } }

.section-header { text-align: center; margin-bottom: 48px; }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.accent-line {
  width: 60px; height: 4px;
  background: var(--primary);
  border-radius: 4px;
  margin: 16px auto 0;
}

/* ---- Brand item (template uses .brand-item, CSS had .brand-card) ---- */
.brand-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px;
  border: 1px solid var(--zinc-200); border-radius: 14px;
  text-align: center; transition: all var(--transition);
  text-decoration: none; color: inherit; cursor: pointer;
}
.brand-item:hover {
  border-color: rgba(204,0,0,.35);
  box-shadow: 0 6px 24px rgba(204,0,0,.1);
  transform: translateY(-3px);
}
.brand-item img { height: 48px; width: auto; object-fit: contain; }
.brand-logo-placeholder {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #ff4444 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 900; color: #fff;
  box-shadow: 0 4px 14px rgba(204,0,0,.3);
  flex-shrink: 0;
}
/* brand-name and brand-count already defined at line 432; these are aliases */
.brand-item .brand-name { font-size: .82rem; font-weight: 800; color: var(--text-muted); margin-top: 4px; }
.brand-item .brand-count { font-size: .72rem; color: var(--primary); font-weight: 700; }

/* ---- Trust / Why-us section (testimonials.php uses .trust-*) ---- */
.trust-section { background: var(--dark) !important; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.trust-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 28px 20px;
  text-align: center; transition: all var(--transition);
}
.trust-item:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(204,0,0,.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}

.trust-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(204,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: var(--primary);
}

.trust-number {
  font-size: 2.2rem; font-weight: 900; color: #fff; display: block;
}
.trust-label {
  font-size: .88rem; color: rgba(255,255,255,.75); font-weight: 800;
  margin: 4px 0 8px; display: block;
}
.trust-desc {
  font-size: .78rem; color: rgba(255,255,255,.38); line-height: 1.6;
}

/* ---- CTA section (cta.php uses .cta-section, .cta-buttons, .btn-phone) ---- */
.cta-section {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section h2 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900; color: #fff; margin-bottom: 12px;
}
.cta-section > .container > p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85); margin-bottom: 32px; line-height: 1.6;
}
.cta-buttons {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.btn-phone {
  background: rgba(255,255,255,.15); color: #fff;
  border: 2px solid rgba(255,255,255,.45);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 800; font-size: .95rem; font-family: inherit;
  transition: all var(--transition); cursor: pointer;
}
.btn-phone:hover { background: rgba(255,255,255,.28); }

/* ---- Parts grid (featured-parts.php) ---- */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media(max-width:1100px) { .parts-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:768px)  { .parts-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:480px)  { .parts-grid { grid-template-columns: 1fr; } }

.part-card-image {
  height: 180px; overflow: hidden;
  background: var(--zinc-100); position: relative;
}
.part-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.part-card:hover .part-card-image img { transform: scale(1.06); }

.part-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.part-name-en { font-size: .78rem; color: var(--text-muted); margin-bottom: 8px; }
.part-compatibility { font-size: .75rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.4; }
.part-compatibility span { color: var(--primary); font-weight: 700; }
.part-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }

.stock-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 6px;
  font-size: .72rem; font-weight: 800;
  backdrop-filter: blur(8px);
}
.stock-badge.in-stock   { background: rgba(34,197,94,.15); color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
.stock-badge.out-of-stock { background: rgba(239,68,68,.15); color: #ef4444; border: 1px solid rgba(239,68,68,.3); }

/* ---- Section backgrounds for trust & brands ---- */
.section-padding.section-dark  { background: var(--dark); }
.section-padding.section-light { background: var(--zinc-100); }
.section-padding.section-white { background: #fff; }
