/* ====== إعدادات عامة ====== */
.cars-page-wrapper { font-family: 'Cairo', sans-serif; background-color: #f8f9fa; padding: 40px 0; }
.cars-container { max-width: 1250px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
@media (max-width: 992px) { .cars-container { grid-template-columns: 1fr; } }

/* ====== الفلاتر (Sidebar) ====== */
.filter-sidebar { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #eee; position: sticky; top: 20px; }
.filter-title { font-size: 18px; font-weight: 700; color: #333; margin-bottom: 20px; border-bottom: 2px solid #f4f6f9; padding-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.filter-title i { color: #009ef7; }
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-size: 14px; font-weight: 600; color: #555; margin-bottom: 8px; }
.filter-group input[type="text"], .filter-group select, .filter-group input[type="number"] { width: 100%; padding: 10px 12px; border: 1px solid #e4e6ef; border-radius: 8px; font-family: inherit; font-size: 14px; background: #fafafa; color: #333; transition: 0.3s; box-sizing: border-box; }
.filter-group input:focus, .filter-group select:focus { border-color: #009ef7; background: #fff; outline: none; }
.price-inputs { display: flex; gap: 10px; }
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-btn { display: flex; align-items: center; justify-content: center; background: #f4f6f9; padding: 8px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: #555; border: 1px solid transparent; transition: 0.2s; text-align: center; }
.radio-btn input { display: none; }
.radio-btn:has(input:checked) { background: #e1f0ff; border-color: #009ef7; color: #009ef7; }
.btn-apply-filters { width: 100%; background: #009ef7; color: #fff; border: none; padding: 12px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-family: inherit; }
.btn-apply-filters:hover { background: #0087d1; }
.btn-reset-filters { width: 100%; background: #fff; color: #dc3545; border: 1px solid #dc3545; padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.3s; text-align: center; margin-top: 10px; display: block; text-decoration: none; font-family: inherit; }
.btn-reset-filters:hover { background: #fff5f5; }

/* ====== شبكة السيارات (Cards) ====== */
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.car-card { position: relative; background: #fff; border: 1px solid #eee; border-radius: 10px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
.car-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); border-color: #d1d5db; }
.car-img-box { width: 100%; height: 200px; background: #fff; padding: 15px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #f9f9f9; }
.car-img-box img { width: 100%; height: 100%; object-fit: contain; }
.car-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.car-brand-tag { color: #ff4d4f; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.car-title { font-size: 18px; font-weight: 700; color: #1e1e2d; margin: 0 0 15px 0; line-height: 1.4; }
.car-pricing { margin-top: auto; display: flex; flex-direction: column; gap: 3px; }
.price-row { display: flex; justify-content: space-between; align-items: center; }
.tax-tag { font-size: 13px; color: #ff4d4f; font-weight: 600; }
.price-new { font-size: 18px; font-weight: 700; color: #333; display: flex; align-items: center; gap: 5px; }
.price-old { font-size: 14px; font-weight: 600; color: #888; text-decoration: line-through; display: flex; align-items: center; gap: 5px; }
.currency-icon { font-size: 14px; color: #aaa; }
.car-footer-specs.inline-specs { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; padding: 10px 8px; border-top: 1px solid #f9f9f9; background: #fdfdfd; gap: 4px; overflow: hidden; }
.inline-spec-item { display: flex; align-items: center; gap: 3px; color: #555; font-size: 11px; font-weight: 700; white-space: nowrap; min-width: 0; }
.inline-spec-item span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.inline-spec-item i { color: var(--primary-color, #009ef7); font-size: 13px; flex-shrink: 0; }
.car-colors-preview { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding-top: 10px; border-top: 1px dashed #eee; width: 100%; }
.colors-label { font-size: 12px; color: #555; font-weight: bold; }
.colors-dots { display: flex; gap: 4px; align-items: center; }

/* ====== علامات كارت السيارة العلوية (Tags) ====== */
.card-top-tags { position: absolute; top: 10px; display: flex; gap: 5px; z-index: 5; padding: 0 10px; width: 100%; box-sizing: border-box; justify-content: flex-start; pointer-events: none; }
[dir="rtl"] .card-top-tags { right: 0; left: auto; }
[dir="ltr"] .card-top-tags { left: 0; right: auto; }
.car-condition-tag, .price-status-tag { background: #1e1e2d; color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.1); pointer-events: auto; }
.price-status-tag { background: var(--primary-color); opacity: 0; transition: opacity 0.3s ease; }
.car-card:hover .price-status-tag { opacity: 1; }

/* Hover Slideshow */
.car-hover-slideshow { position: relative; overflow: hidden; }
.slideshow-container { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity 0.3s ease; background: #fff; z-index: 2; }
.car-card:hover .slideshow-container { opacity: 1; }
.slideshow-container .slide { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: contain; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity 0.4s ease; }
.slideshow-container .slide:first-child { opacity: 1; }
.no-results { grid-column: 1 / -1; background: #fff; padding: 50px; text-align: center; border-radius: 12px; border: 1px dashed #ccc; color: #888; }
.swiper-slide .car-card { width: 100%; margin: 0; }

@media (max-width: 768px) {
    .radio-grid { grid-template-columns: 1fr; }
    .price-inputs { flex-direction: column; }
    .filter-sidebar { padding: 15px; }
    .car-info { padding: 15px; }
}

/* =====================================================================
   🌟 التنسيقات العامة والهيدر (Header & General)
   ===================================================================== */
html, body { max-width: 100%; width: 100%; margin: 0; padding: 0; }
body { font-family: var(--site-font); background: #fcfcfc; box-sizing: border-box; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6, p, a, div, span:not([class*="fa-"]), input, button, select, textarea { font-family: var(--site-font); }

.top-bar { background: var(--topbar-bg); color: #a1a5b7; font-size: 13px; padding: 10px 0; width: 100%; max-width: 100%; box-sizing: border-box; }
.top-bar-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; width: 100%; }
.top-contact { display: flex; gap: 20px; }
.top-contact a { color: #a1a5b7; text-decoration: none; transition: 0.3s; display: flex; align-items: center; gap: 6px; }
.top-contact a:hover { color: #fff; }
.top-social { display: flex; gap: 15px; }
.top-social a { color: #a1a5b7; text-decoration: none; transition: 0.3s; font-size: 15px; }
.top-social a:hover { color: var(--primary-color); }

.main-header { background: var(--header-bg); box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; width: 100%; max-width: 100%; box-sizing: border-box; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; width: 100%; }

.logo-area { display: flex; align-items: center; gap: 15px; text-decoration: none; color: #1e1e2d; max-width: calc(100% - 140px); }
.logo-area img { max-height: 55px; max-width: 100px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-text h2 { margin: 0; font-size: clamp(16px, 4vw, 24px); font-weight: 800; color: #1e1e2d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.logo-text p { margin: 0; font-size: clamp(10px, 2.5vw, 13px); color: #888; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; margin-top: 2px; }

.nav-menu { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; color: #1e1e2d; font-weight: 700; font-size: 15px; transition: 0.3s; padding: 5px 0; border-bottom: 2px solid transparent; }
.nav-menu a:hover { color: var(--primary-color); border-bottom-color: var(--primary-color); }

.header-actions { display: flex; gap: 15px; align-items: center; }
.action-btn { width: 40px; height: 40px; border-radius: 50%; background: #f4f6f9; color: #1e1e2d; display: flex; align-items: center; justify-content: center; font-size: 16px; text-decoration: none; transition: 0.3s; }
.action-btn:hover { background: var(--primary-color); color: #fff; transform: translateY(-2px); }
.lang-btn { background: transparent; width: auto; padding: 0 15px; border-radius: 20px; border: 1px solid #e4e6ef; font-weight: bold; font-size: 14px; }
.lang-btn:hover { background: #f4f6f9; color: #1e1e2d; border-color: #d1d5db; }

.mobile-menu-btn { display: none; background: transparent; border: none; font-size: 24px; cursor: pointer; color: #1e1e2d; }

@media (max-width: 992px) {
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--solid-header-bg, #ffffff); padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-top: 1px solid #eee; z-index: 1001; }
    .nav-menu.show { display: flex; }
    .mobile-menu-btn { display: block; }
}

/* =====================================================================
   🌟 العناصر المشتركة (Common Elements: Forms, Alerts)
   ===================================================================== */
.form-group { width: 100%; margin-bottom: 20px; text-align: start; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; color: #555; font-size: 14px; }
.form-group label span.req { color: var(--secondary-color); }
.form-control { width: 100%; padding: 14px 15px; border: 1px solid #e4e6ef; border-radius: 8px; font-family: inherit; font-size: 14px; background: #fafafa; transition: 0.3s; box-sizing: border-box; }
.form-control:focus { border-color: var(--primary-color); background: #fff; outline: none; }
.form-control[readonly] { background: #fdfdfd; color: #1e1e2d; font-weight: bold; border-color: #eee; }

.btn-submit { background: var(--primary-color); color: var(--btn-text-color); border: none; padding: 15px 30px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.3s; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.btn-submit:hover { background: var(--primary-hover); transform: translateY(-2px); }

.alert-success { background: #e8fff3; color: #50cd89; padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: bold; border: 1px solid #b7ebcf; text-align: center; }
.alert-error { background: #fff5f8; color: #f1416c; padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: bold; border: 1px solid #f8d7da; text-align: center; }

/* =====================================================================
   🌟 صفحة النشرة البريدية (Subscribe Page)
   ===================================================================== */
.subscribe-page { font-family: var(--site-font); background: #fcfcfc; padding-bottom: 60px; min-height: 70vh; }
.page-header { background: var(--topbar-bg); color: #fff; padding: 60px 20px; text-align: center; }
.page-header h1 { margin: 0 0 15px 0; font-size: 36px; color: var(--secondary-color); }
.subscribe-container { max-width: 600px; margin: -30px auto 40px auto; padding: 0 20px; position: relative; z-index: 10; }
.subscribe-box { background: #fff; padding: 40px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee; text-align: center; }
.subscribe-icon { width: 80px; height: 80px; background: #e1f0ff; color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; margin: 0 auto 20px auto; }
.subscribe-box h3 { margin: 0 0 10px 0; font-size: 24px; color: #1e1e2d; }
.subscribe-box p { color: #888; font-size: 15px; margin-bottom: 30px; }

/* =====================================================================
   🌟 صفحة اتصل بنا (Contact Page)
   ===================================================================== */
.contact-page-wrapper { font-family: var(--site-font); background: #fcfcfc; padding-bottom: 50px; }
.contact-page-header { background: var(--topbar-bg); color: #fff; padding: 80px 20px; text-align: center; }
.contact-page-header h1 { margin: 0 0 15px 0; font-size: 36px; color: var(--secondary-color); }
.contact-page-header p { color: #aaa; font-size: 16px; max-width: 600px; margin: 0 auto; line-height: 1.6; }
.contact-main-grid { max-width: 1200px; margin: 40px auto 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: start; }
.contact-info-box { background: #1e1e2d; color: #fff; padding: 40px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); position: relative; overflow: hidden; }
.contact-info-box::before { content: ''; position: absolute; bottom: -50px; right: -50px; width: 200px; height: 200px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.contact-info-box::after { content: ''; position: absolute; top: -30px; left: -30px; width: 100px; height: 100px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.info-item { display: flex; gap: 15px; margin-bottom: 30px; align-items: flex-start; position: relative; z-index: 2; }
.info-item:last-child { margin-bottom: 0; }
.info-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.2); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; transition: 0.3s; }
.info-item:hover .info-icon { background: #fff; color: var(--primary-color); transform: scale(1.1); }
.info-text h4 { margin: 0 0 5px 0; font-size: 16px; color: rgba(255,255,255,0.9); }
.info-text p { margin: 0; color: #fff; font-size: 15px; line-height: 1.6; font-weight: bold; }
.contact-form-box { background: #fff; padding: 40px; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); border: 1px solid #eee; }
.contact-form-box h3 { margin: 0 0 25px 0; color: #1e1e2d; font-size: 26px; font-weight: 800; }
.contact-form-box .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.contact-form-box .form-control { background: #f9f9f9; border: 1px solid #edf1f5; border-radius: 10px; padding: 15px 20px; }
.contact-form-box .form-control:focus { background: #fff; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(0,158,247,0.1); }
.contact-map-wrapper { max-width: 1200px; margin: 50px auto 0 auto; padding: 0 20px; }
.map-box { width: 100%; height: 400px; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 1px solid #eee; }
.map-box iframe { width: 100%; height: 100%; border: none; }
.contact-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); position: relative; z-index: 2; }
.contact-social h4 { width: 100%; margin: 0 0 15px 0; font-size: 18px; color: #fff; }
.social-btn { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,0.1); text-decoration: none; transition: 0.3s; font-size: 18px; border: 1px solid rgba(255,255,255,0.2); }
.social-btn:hover { background: #fff; color: var(--primary-color); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

@media (max-width: 992px) { 
    .contact-main-grid { grid-template-columns: 1fr; } 
}
@media (max-width: 768px) {
    .contact-page-header h1 { font-size: 28px; }
    .contact-page-header { padding: 40px 20px; }
    .contact-info-box, .contact-form-box { padding: 25px 20px; }
}
@media (max-width: 576px) { 
    .contact-form-box .form-grid { grid-template-columns: 1fr; } 
}

/* =====================================================================
   🌟 صفحة الطلبات (Order Page)
   ===================================================================== */
.order-wrapper { max-width: 1000px; margin: 50px auto; padding: 0 20px; }
.form-box { background: transparent; padding: 0; border: none; box-shadow: none; }
.form-card { background: #fff; border-radius: 16px; padding: 30px; margin-bottom: 25px; box-shadow: 0 8px 30px rgba(0,0,0,0.04); border: 1px solid #f0f4f8; transition: 0.3s; }
.form-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.06); transform: translateY(-2px); }
.form-card-title { font-size: 18px; font-weight: 800; color: #1e1e2d; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid #f4f6f9; }
.form-card-title i { color: var(--secondary-color); font-size: 20px; }

/* Segmented Controls (Toggle Switches) */
.toggles-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.toggle-section { display: flex; flex-direction: column; align-items: flex-start; }
.toggle-title { font-size: 15px; font-weight: bold; color: #555; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.toggle-title i { color: var(--secondary-color); }
.segmented-control { display: flex; background: #f4f6f9; border-radius: 12px; padding: 6px; width: 100%; position: relative; }
.segmented-control label { flex: 1; text-align: center; cursor: pointer; position: relative; z-index: 2; padding: 12px 0; margin: 0; font-size: 15px; font-weight: bold; color: #777; transition: 0.3s; border-radius: 8px; }
.segmented-control input[type="radio"] { display: none; }
.segmented-control input[type="radio"]:checked + label { color: #fff; background: var(--secondary-color); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* Form Grid & Inputs */
.order-wrapper .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.order-wrapper .input-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 0; width: 100%; }
.order-wrapper .input-group label { font-size: 14px; font-weight: bold; color: #3f4254; display: flex; align-items: center; gap: 8px; }
.order-wrapper .input-group label i { color: #a1a5b7; font-size: 14px; }
.order-wrapper .form-control, .order-wrapper select, .order-wrapper input[type="text"], .order-wrapper input[type="number"], .order-wrapper input[type="email"] { width: 100%; background: #f9fbff; border: 1px solid #e1e5ec; border-radius: 10px; padding: 14px 18px; font-size: 15px; color: #1e1e2d; transition: all 0.3s ease; box-sizing: border-box; }
.order-wrapper .form-control:focus, .order-wrapper select:focus, .order-wrapper input[type="text"]:focus, .order-wrapper input[type="number"]:focus, .order-wrapper input[type="email"]:focus { background: #fff; border-color: var(--secondary-color); box-shadow: 0 0 0 4px rgba(0,0,0,0.05); outline: none; }
.order-wrapper input[readonly] { background: #f4f6f9; cursor: not-allowed; border-color: #eee; font-weight: bold; color: var(--primary-color); }

.order-wrapper .btn-submit { background: linear-gradient(135deg, var(--secondary-color), #ff5e7e); color: #fff; margin-top: 20px; width: 100%; padding: 18px; border-radius: 12px; font-size: 18px; font-weight: bold; border: none; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.order-wrapper .btn-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); filter: brightness(1.1); }

.hint-red { color: var(--secondary-color); font-size: 11px; margin-top: 5px; display: block; }
.grid-halves { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }
.note-text { font-size: 13px; color: #1e1e2d; font-weight: bold; text-align: center; display: block; margin-top: 25px; padding: 15px; background: #fff5f8; border-radius: 8px; border: 1px dashed var(--secondary-color); }

/* Custom Radio inline inside forms (for yes/no) */
.radio-inline-group { display: flex; flex-wrap: wrap; gap: 20px; padding: 12px; background: #f9fbff; border-radius: 10px; border: 1px solid #e1e5ec; width: 100%; box-sizing: border-box; }
.custom-radio { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: bold; color: #555; cursor: pointer; }
.custom-radio input[type="radio"] { appearance: none; width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 50%; outline: none; transition: 0.2s; position: relative; cursor: pointer; margin: 0; flex-shrink: 0; }
.custom-radio input[type="radio"]:checked { border-color: var(--secondary-color); }
.custom-radio input[type="radio"]:checked::before { content: ''; position: absolute; top: 4px; left: 4px; width: 8px; height: 8px; background: var(--secondary-color); border-radius: 50%; }
.custom-radio input[type="radio"]:checked ~ span { color: var(--secondary-color); }

@media(max-width: 992px) {
    .order-wrapper { margin: 30px auto; padding: 0 15px; }
    .order-wrapper .form-grid { grid-template-columns: 1fr; gap: 15px; } 
    .toggles-wrapper { grid-template-columns: 1fr; gap: 20px; }
    .grid-halves { grid-template-columns: 1fr; gap: 15px; }
}
@media(max-width: 768px) { 
    .form-card { padding: 20px 15px; border-radius: 12px; }
    .form-card-title { font-size: 16px; margin-bottom: 20px; }
    .order-wrapper h2 { font-size: 22px !important; }
}
@media(max-width: 480px) {
    .segmented-control { flex-direction: column; gap: 5px; }
    .segmented-control label { padding: 10px 0; font-size: 14px; }
    .radio-inline-group { flex-direction: column; gap: 12px; }
    .order-wrapper .btn-submit { font-size: 16px; padding: 15px; }
}


/* =====================================================================
   🌟 الفوتر السُفلي (Footer) والمكونات المرتبطة به
   ===================================================================== */
.main-footer { background: #1a1a27; color: #a1a5b7; padding: 0; margin-top: 0; font-family: var(--site-font, 'Cairo', sans-serif); width: 100%; max-width: 100%; overflow: hidden; box-sizing: border-box; display: flex; flex-direction: column; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; width: 100%; }

.footer-grid { display: grid; gap: 40px; margin-bottom: 0; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col { line-height: 1.8; font-size: 14px; }
.footer-col h3, .footer-col h4 { color: #fff; font-size: 18px; font-weight: 700; margin-top: 0; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h3::after, .footer-col h4::after { content: ''; position: absolute; bottom: 0; width: 40px; height: 3px; background: #009ef7; border-radius: 3px; }
[dir="rtl"] .footer-col h3::after, [dir="rtl"] .footer-col h4::after { right: 0; }
[dir="ltr"] .footer-col h3::after, [dir="ltr"] .footer-col h4::after { left: 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #a1a5b7; text-decoration: none; transition: 0.3s; }
[dir="rtl"] .footer-col a:hover { color: #009ef7; padding-right: 5px; }
[dir="ltr"] .footer-col a:hover { color: #009ef7; padding-left: 5px; }

.wishlist-btn-overlay { position: absolute; top: 10px; background: rgba(255,255,255,0.9); color: var(--secondary-color); border: none; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: 0.3s; }
[dir="rtl"] .wishlist-btn-overlay { left: 10px; }
[dir="ltr"] .wishlist-btn-overlay { right: 10px; }
.wishlist-btn-overlay:hover { background: var(--secondary-color); color: #fff; transform: scale(1.1); }

.footer-social { display: flex; gap: 10px; margin-top: 25px; flex-wrap: wrap; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: #fff; transition: 0.3s; font-size: 15px; }
.footer-social a:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); background: #151521; padding: 15px 0; text-align: center; width: 100%; max-width: 100%; box-sizing: border-box; }
.footer-copyright { color: #fff; font-size: 14px; font-weight: bold; margin-bottom: 0; }
.footer-bottom-row { font-size: 13px; color: #888; }

.footer-newsletter { background: rgba(255,255,255,0.03); padding: 30px; border-radius: 12px; margin-bottom: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; border: 1px solid rgba(255,255,255,0.05); width: 100%; box-sizing: border-box; }
.fn-text h4 { color: #fff; margin: 0 0 5px 0; font-size: 20px; }
.fn-text p { color: #a1a5b7; margin: 0; font-size: 14px; }
.fn-form { display: flex; gap: 10px; flex: 1; max-width: 500px; }
.fn-input { flex: 1; padding: 12px 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2); color: #fff; font-family: inherit; font-size: 14px; outline: none; transition: 0.3s; }
.fn-input:focus { border-color: var(--primary-color); background: #fff; color: #1e1e2d; }
.fn-btn { background: var(--primary-color); color: var(--btn-text-color); border: none; padding: 0 25px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; font-family: inherit; white-space: nowrap; }
.fn-btn:hover { background: var(--primary-hover); }
@media(max-width: 768px) { .footer-newsletter { flex-direction: column; text-align: center; } .fn-form { width: 100%; flex-direction: column; } .fn-btn { padding: 12px; } }

/* =====================================================================
   🌟 الصفحة الرئيسية (Index Page)
   ===================================================================== */
.hero-wrapper { width: 100%; max-width: 100%; box-sizing: border-box; display: flex; justify-content: center; background: #fcfcfc; overflow: hidden; }
.hero-section { display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; max-width: 100%; box-sizing: border-box; margin: 0 auto; }
.hero-content { max-width: 800px; padding: 0 20px; }
.hero-content h1 { font-size: 48px; font-weight: 800; margin-bottom: 20px; }
.hero-content p { font-size: 18px; color: #ddd; margin-bottom: 30px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-hero { padding: 12px 30px; border-radius: 8px; font-size: 16px; font-weight: bold; transition: 0.3s; text-decoration: none; border: 2px solid transparent; display: inline-block; margin: 0 5px; }
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-primary { background: var(--primary-color); color: var(--btn-text-color); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-3px); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: var(--btn-text-color); color: var(--primary-color); transform: translateY(-3px); }
.features-strip { background: #1e1e2d; padding: 25px 0; color: #fff; margin-top: 0; position: relative; z-index: 10; box-sizing: border-box; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.feat-box i { font-size: 32px; color: var(--primary-color); margin-bottom: 15px; }
.feat-box h4 { font-size: 17px; margin: 0 0 5px 0; font-weight: 700; }
.feat-box p { font-size: 13px; color: #a1a5b7; margin: 0; }
.search-section { background: #fff; padding: 30px 20px; border-bottom: 1px solid #eee; width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }
.search-container { max-width: 1000px; margin: 0 auto; background: #fff; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); overflow: hidden; border: 1px solid #f1f1f1; box-sizing: border-box; }
.search-tabs { display: flex; background: #f8f9fa; border-bottom: 1px solid #eee; }
.search-tab-btn { flex: 1; padding: 15px; text-align: center; font-size: 16px; font-weight: 700; color: #555; background: none; border: none; cursor: pointer; transition: 0.3s; }
.search-tab-btn.active { background: #fff; color: var(--primary-color); border-bottom: 3px solid var(--primary-color); }
.search-body { padding: 30px; }
.search-panel { display: none; }
.search-panel.active { display: block; animation: fadeIn 0.5s ease; }
.search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.search-input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 14px; background: #fafafa; box-sizing: border-box; }
.search-input:focus { border-color: var(--primary-color); background: #fff; outline: none; }
.btn-search { background: var(--secondary-color); color: var(--btn-text-color); border: none; padding: 12px; border-radius: 8px; width: 100%; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.3s; margin-top: 15px; }
.btn-search:hover { background: var(--secondary-hover); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.section-padding { padding: 40px 0; box-sizing: border-box; }
.section-title { text-align: center; margin-bottom: 25px; }
.section-title h2 { font-size: 32px; font-weight: 800; color: #1e1e2d; margin: 0 0 10px 0; }
.section-title p { color: #888; font-size: 16px; margin: 0; }

/* حركة الشركاء والعلامات (Infinite Marquee الدائرية المستمرة) */
.marquee-wrapper:hover .marquee-track { animation-play-state: paused !important; }
@keyframes scrollMarqueeRTL { 0% { transform: translateX(0); } 100% { transform: translateX(calc(100% + 30px)); } }
@keyframes scrollMarqueeLTR { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-100% - 30px)); } }

.brand-slide, .popbrand-img-box, .partner-img-box { text-align: center; padding: 20px; background: #fff; border: 1px solid #eee; border-radius: 12px; height: 100px; display: flex; align-items: center; justify-content: center; transition: 0.3s; width: 200px; flex-shrink: 0; box-sizing: border-box; }
.partner-img-box { background: transparent; border: none; }
.brand-slide img, .popbrand-img-box img, .partner-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%); opacity: 0.7; transition: 0.3s; }
.brand-slide:hover img, .popbrand-img-box:hover img, .partner-img-box:hover img { filter: grayscale(0%); opacity: 1; }
.car-card-slider { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; position: relative; transition: 0.3s; }
.car-card-slider:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: #d1d5db; }
.car-img-box { height: 220px; padding: 15px; display: flex; align-items: center; justify-content: center; background: #fff; position: relative; }
.car-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.car-info-box { padding: 20px; border-top: 1px solid #f9f9f9; }
.car-title { font-size: 18px; font-weight: 700; color: #1e1e2d; margin: 0 0 10px 0; }
.car-price { font-size: 20px; font-weight: 800; color: var(--primary-color); }
.car-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(30, 30, 45, 0.4); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 25px; opacity: 0; transition: opacity 0.3s ease; z-index: 10; pointer-events: none; }
.car-card:hover .car-overlay { opacity: 1; }
.btn-overlay { background: var(--primary-color); color: var(--btn-text-color); padding: 8px 20px; border-radius: 30px; font-size: 14px; font-weight: bold; transform: translateY(15px); transition: 0.3s ease; pointer-events: auto; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-overlay:hover { background: var(--primary-hover); transform: translateY(-2px); }
.car-card:hover .btn-overlay { transform: translateY(0); }
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.offer-box { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee; text-decoration: none; color: inherit; transition: 0.3s; display: block; }
.offer-box:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.offer-img { height: 200px; width: 100%; object-fit: cover; }
.offer-text { padding: 20px; text-align: center; font-size: 18px; font-weight: bold; color: #1e1e2d; }
@media (max-width: 768px) { .hero-content h1 { font-size: 28px; } .hero-content p { font-size: 15px; margin-bottom: 20px; } .hero-section { height: auto !important; min-height: 60vh; padding: 60px 0; border-radius: 0; } .hero-wrapper { padding-top: 0; } .search-grid { grid-template-columns: 1fr !important; } .feat-grid { grid-template-columns: 1fr 1fr; } .btn-hero { width: 100%; text-align: center; } }
@media (max-width: 480px) { .feat-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   🌟 نظام التصفح والتنقل (Pagination)
   ===================================================================== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; grid-column: 1 / -1; }
.page-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #fff; color: #555; border: 1px solid #ddd; border-radius: 8px; font-weight: bold; text-decoration: none; transition: 0.3s; }
.page-link:hover, .page-link.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }