/*
Theme Name: sayara
Text Domain: sayara
Version: 1.0
*/

:root {
    --primary-blue: #0052cc;
    --text-dark: #1a1a1a;
    --gray-light: #f4f7f9;
    --border-color: #e1e4e8;
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    height: 70px;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
}

.logo-icon {
    background: var(--primary-blue);
    color: white;
    padding: 5px;
    border-radius: 6px;
    display: flex;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.country-toggle {
    display: flex;
    background: var(--gray-light);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.country-item {
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.country-item.active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mobile-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transition: 0.4s;
    padding: 30px 20px;
}

.mobile-drawer.active { right: 0; }

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 1000;
}

.drawer-overlay.active { display: block; }

@media (max-width: 992px) {
    .main-navigation, .header-left { display: none; }
    .mobile-toggle { display: block; }
}

.car-single-page { padding: 40px 0; background: #fcfcfc; }

.car-header-flex { 
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 30px; border-bottom: 2px solid #eee; padding-bottom: 20px;
}

.price-value { font-size: 32px; font-weight: 800; color: var(--primary-blue); display: block; }

.car-content-grid { 
    display: grid; grid-template-columns: 2fr 1fr; gap: 30px; 
}

.featured-image img { width: 100%; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* تنسيق الجداول */
.specs-container { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px;
}

.specs-group { background: #fff; padding: 20px; border-radius: 10px; border: 1px solid #eee; }
.specs-group h4 { margin-top: 0; color: var(--primary-blue); border-bottom: 1px solid #f5f5f5; padding-bottom: 10px; }

.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table tr { border-bottom: 1px solid #fafafa; }
.specs-table td { padding: 10px 0; }
.specs-table td:first-child { color: #888; font-weight: 600; }
.specs-table td:last-child { text-align: left; font-weight: 700; color: #333; }

/* Sidebar */
.quick-specs-card { background: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.btn-contact { 
    width: 100%; padding: 15px; background: var(--primary-blue); color: #fff; 
    border: none; border-radius: 8px; font-weight: 700; margin-top: 20px; cursor: pointer;
}

@media (max-width: 768px) {
    .car-content-grid { grid-template-columns: 1fr; }
    .specs-container { grid-template-columns: 1fr; }
    .car-header-flex { flex-direction: column; align-items: flex-start; gap: 15px; }
}