.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 ,body , .navbar-menu .navbar-nav .nav-link {
    font-family: "Cairo", sans-serif !important;
}

/* ============================================================
   COMPARE MODAL
   ============================================================ */
.cmp-modal-box {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.cmp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 700;
    font-size: 15px;
    font-family: "Cairo", sans-serif;
}
.cmp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    padding: 0 4px;
}
.cmp-modal-close:hover { color: #333; }
#cmp-modal-list { flex: 1; overflow-y: auto; padding: 10px; min-height: 60px; }
.cmp-modal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    margin-bottom: 6px;
    transition: all .15s;
    font-family: "Cairo", sans-serif;
    text-align: right;
}
.cmp-modal-item:hover  { background: #f8f9fa; border-color: #ddd; }
.cmp-modal-item.active { background: #fff5f5; border-color: #e74c3c; }
.cmi-swatch {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid #ddd;
    flex-shrink: 0;
}
.cmi-name  { flex: 1; font-size: 13px; font-weight: 600; color: #1a1a2e; }
.cmi-price { font-size: 12px; color: #e74c3c; font-weight: 700; white-space: nowrap; }
.cmi-check {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #aaa;
    flex-shrink: 0;
}
.cmp-modal-item.active .cmi-check { background: #e8f5e9; color: #27ae60; }

/* ============================================================
   COMPARE — card section (داخل content-area)
   ============================================================ */
.card-compare-section {
    position: relative;
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}
/* الزر الرئيسي */
.card-cmp-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all .2s;
    font-family: "Cairo", sans-serif;
    position: relative;
}
.card-cmp-btn:hover { background: #f0f0f0; color: #1a1a2e; }
.card-cmp-btn.active {
    background: #fff5f5;
    border-color: #e74c3c;
    color: #e74c3c;
}
.card-cmp-btn i:first-child { font-size: 14px; flex-shrink: 0; }
.card-cmp-label        { flex: 1; text-align: right; }
.card-cmp-label-active { flex: 1; text-align: right; display: none; }
.card-cmp-btn.active .card-cmp-label        { display: none; }
.card-cmp-btn.active .card-cmp-label-active { display: block; }
.card-cmp-arrow {
    font-size: 10px;
    transition: transform .2s;
    margin-right: auto;
}
.compare-drop-wrap.open .card-cmp-arrow { transform: rotate(180deg); }

/* Dropdown wrapper — الـ position يحدده JS كـ fixed */
.compare-drop-wrap { position: relative; }
.compare-dropdown {
    display: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,.14);
    padding: 6px;
    min-width: 200px;
}
.compare-dropdown.open { display: block; animation: dropFadeIn .15s ease; }
@keyframes dropFadeIn {
    from { opacity:0; transform:translateY(4px); }
    to   { opacity:1; transform:translateY(0);   }
}
.cmp-drop-title {
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    padding: 2px 8px 6px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}
/* Dropdown items */
.cmp-drop-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 7px;
    padding: 7px 8px;
    cursor: pointer;
    gap: 8px;
    transition: background .12s;
    font-family: "Cairo", sans-serif;
    margin-top: 2px;
}
.cmp-drop-item:hover  { background: #f8f9fa; }
.cmp-drop-item.active { background: #fff5f5; }
.cdi-info { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; flex: 1; min-width: 0; }
.cdi-name  { font-size: 12px; font-weight: 600; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.cdi-price { font-size: 11px; color: #e74c3c; font-weight: 700; }
.cdi-icon  {
    width: 22px; height: 22px; border-radius: 50%;
    background: #f0f0f0; display: flex; align-items: center;
    justify-content: center; font-size: 10px; color: #888;
    flex-shrink: 0; transition: all .2s;
}
.cmp-drop-item .cdi-check          { display: none; }
.cmp-drop-item.active .cdi-plus    { display: none; }
.cmp-drop-item.active .cdi-check   { display: inline; color: #27ae60; }
.cmp-drop-item.active .cdi-icon    { background: #e8f5e9; }

/* variant thumb wrapper — for compare button overlay */
.variant-thumb-wrap {
    position: relative;
    display: inline-block;
}
.variant-thumb-wrap .variant-cmp-btn {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    font-size: 10px;
    border-width: 1px;
    opacity: 0;
    transition: opacity .2s;
}
.variant-thumb-wrap:hover .variant-cmp-btn,
.variant-thumb-wrap .variant-cmp-btn.active {
    opacity: 1;
}

/* ============================================================
   COMPARE TOGGLE BUTTON (on car cards)
   ============================================================ */
.compare-toggle-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    color: #888;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    z-index: 2;
}
.compare-toggle-btn:hover,
.compare-toggle-btn.active {
    background: var(--color-primary, #e74c3c);
    border-color: var(--color-primary, #e74c3c);
    color: #fff;
}

/* ============================================================
   FLOATING COMPARE BAR
   ============================================================ */
#compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a2e;
    box-shadow: 0 -4px 20px rgba(0,0,0,.35);
    padding: 12px 24px;
    animation: slideUpBar .3s ease;
}
@keyframes slideUpBar {
    from { transform: translateY(100%); }
    to   { transform: translateY(0);    }
}
.compare-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.compare-bar-slots {
    display: flex;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}
.compare-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    padding: 6px 10px 6px 6px;
    position: relative;
    min-width: 160px;
}
.compare-slot img {
    width: 56px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}
.compare-slot-noimg {
    width: 56px;
    height: 40px;
    background: rgba(255,255,255,.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 18px;
}
.compare-slot-name {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
}
.compare-slot-remove {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.compare-slot-remove:hover { background: #e74c3c; }
.compare-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.compare-bar-count {
    color: #aaa;
    font-size: 13px;
    white-space: nowrap;
}
#compare-go-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.compare-bar-clear {
    background: transparent;
    border: 1px solid rgba(255,255,255,.25);
    color: #ccc;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
    font-family: "Cairo", sans-serif;
}
.compare-bar-clear:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

/* ============================================================
   COMPARE PAGE
   ============================================================ */
.compare-page-area {
    padding: 40px 0 80px;
    background: #f8f9fa;
    min-height: 60vh;
}
/* Grid layout: label col + N car cols */
.compare-header-row,
.compare-row {
    display: grid;
    grid-template-columns: 220px repeat(4, 1fr);
    border-bottom: 1px solid #eee;
}
.compare-header-row {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    border-bottom: 2px solid #f0f0f0;
}
.compare-label-cell {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #f8f9fa;
    border-left: 1px solid #eee;
    display: flex;
    align-items: center;
}
.compare-header-label {
    background: #fff;
    border-radius: 12px 0 0 0;
    justify-content: center;
}
.compare-car-cell {
    padding: 14px 16px;
    font-size: 13px;
    color: #333;
    text-align: center;
    background: #fff;
    border-left: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.compare-row:hover .compare-car-cell { background: #fafafa; }
/* header cells */
.compare-header-cell {
    flex-direction: column;
    gap: 8px;
    padding: 20px 16px;
    position: relative;
}
.compare-car-img {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}
.compare-car-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.compare-no-img {
    font-size: 40px;
    color: #ccc;
}
.compare-car-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
}
.compare-car-title a { color: inherit; text-decoration: none; }
.compare-car-title a:hover { color: #e74c3c; }
.compare-car-trim {
    font-size: 12px;
    color: #888;
    margin: 0;
}
.compare-car-price {
    font-size: 16px;
    font-weight: 800;
    color: #e74c3c;
}
.compare-remove-car {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eee;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
    transition: all .2s;
}
.compare-remove-car:hover { background: #e74c3c; color: #fff; }
/* Section title */
.compare-section-title {
    background: #1a1a2e;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    margin-top: 2px;
    letter-spacing: .5px;
}
/* Yes / No values */
.cmp-yes { color: #27ae60; font-size: 18px; font-weight: 700; }
.cmp-no  { color: #ccc;    font-size: 18px; }

.container_carlist{
    width: 100% !important;
    max-width: 100% !important;
}

/* ============================================================
   CAR DETAIL PAGE
   ============================================================ */

/* ----- Hero price area ----- */
.discount-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.original-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

/* ----- Section title ----- */
.car-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-heading-1);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}
.car-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--color-primary);
}

/* ----- Spec Tabs ----- */
.car-spec-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0;
    align-items: flex-end;
}
.car-spec-tabs .spec-tab-btn {
    display: inline-block !important;
    width: auto !important;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Cairo", sans-serif;
    margin-bottom: -2px;
    white-space: nowrap;
}
.car-spec-tabs .spec-tab-btn:hover { color: var(--color-heading-1); }
.car-spec-tabs .spec-tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* ----- Spec Panel Grid ----- */
.spec-panel { display: none; }
.spec-panel.active { display: block; }

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 36px;
}
.spec-item {
    padding: 13px 18px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.spec-item:nth-child(odd) { background:#fafafa; border-right:1px solid #f0f0f0; }
.spec-item:nth-child(even) { background:#fff; }
.spec-item .spec-label { font-size: 12px; color: #999; font-weight: 500; }
.spec-item .spec-value { font-size: 15px; color: var(--color-heading-1); font-weight: 700; }
@media (max-width: 576px) {
    .spec-grid { grid-template-columns: 1fr; }
    .spec-item:nth-child(odd) { border-right: none; }
}

/* ----- Driving Modes ----- */
.driving-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
    margin-top: 8px;
}
.driving-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f6f6f6;
    border: 1px solid #e8e8e8;
    color: var(--color-heading-1);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 30px;
    font-family: "Cairo", sans-serif;
}
.driving-mode-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
    display: inline-block;
}

/* ----- Variants ----- */
.variant-cards { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.variant-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    text-decoration: none !important;
    color: var(--color-heading-1);
    transition: all 0.2s;
    min-width: 120px;
    text-align: center;
}
.variant-card:hover { border-color: var(--color-primary); }
.variant-card.active { border-color: var(--color-primary); background: #fff5f3; }
.variant-card .var-name { font-size: 14px; font-weight: 700; }
.variant-card .var-price { font-size: 13px; color: var(--color-primary); font-weight: 600; margin-top: 4px; }

/* ----- Features ----- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-bottom: 36px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-body);
}
.feature-item i { color: var(--color-primary); font-size: 15px; flex-shrink: 0; }
@media (max-width: 576px) { .features-grid { grid-template-columns: 1fr; } }

/* ----- Sidebar Price Box ----- */
.price-box-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.price-box-card .price-original {
    text-decoration: line-through;
    color: #aaa;
    font-size: 13px;
    margin-bottom: 2px;
}
.price-box-card .price-main {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-heading-1);
    line-height: 1.1;
    margin-bottom: 4px;
}
.price-box-card .price-monthly {
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.price-box-card .price-monthly strong { color: var(--color-primary); }
.price-box-card .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f8f8f8;
    font-size: 13px;
}
.price-box-card .price-row:last-of-type { border-bottom: none; }
.price-box-card .price-row .plabel { color: #999; }
.price-box-card .price-row .pvalue { font-weight: 700; color: var(--color-heading-1); }
.price-box-card .price-row .pvalue.red { color: #e74c3c; }
.price-box-card .price-row .pvalue.primary { color: var(--color-primary); font-size: 15px; }
.price-includes-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0 16px;
}
.price-includes-tags .pitag {
    font-size: 11px;
    background: #f0fff4;
    color: #27ae60;
    border: 1px solid #b7ebc5;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.price-action-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.price-action-btns a {
    display: block;
    text-align: center;
    padding: 13px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: "Cairo", sans-serif;
    text-decoration: none !important;
    transition: all 0.2s;
}
.btn-cash { background: var(--color-primary); color: #fff !important; }
.btn-cash:hover { background: #c72b00; }
.btn-finance { background: #fff; color: var(--color-primary) !important; border: 2px solid var(--color-primary); }
.btn-finance:hover { background: #fff5f3; }

/* ----- Sidebar Overview List ----- */
.overview-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.overview-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.overview-list { list-style: none; padding: 0; margin: 0; }
.overview-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
    font-size: 13px;
}
.overview-list li:last-child { border-bottom: none; }
.overview-list li .ov-label { color: #888; display: flex; align-items: center; gap: 8px; }
.overview-list li .ov-label i { color: var(--color-primary); width: 14px; text-align: center; }
.overview-list li .ov-value { font-weight: 700; color: var(--color-heading-1); }

/* ----- Gallery tab buttons ----- */
.gallery-tab-group {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    width: fit-content;
}
.gallery-tab-group .gtab {
    padding: 9px 24px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: #888;
    border: none;
    cursor: pointer;
    font-family: "Cairo", sans-serif;
    transition: all 0.2s;
}
.gallery-tab-group .gtab + .gtab { border-right: 1px solid #e8e8e8; }
.gallery-tab-group .gtab.active { background: var(--color-primary); color: #fff; }

/* ----- Variant Thumb Selector ----- */
.variant-thumb-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.variant-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid #e8e8e8;
    overflow: hidden;
    text-decoration: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f6f6f6;
    flex-shrink: 0;
}
.variant-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.variant-thumb-label {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    text-align: center;
    padding: 4px;
    line-height: 1.2;
    font-family: "Cairo", sans-serif;
}
.variant-thumb:hover { border-color: var(--color-primary); }
.variant-thumb.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(255,54,0,0.15);
}
