/* =====================================================
   القدوة الحديثة - الملف الرئيسي للتنسيقات
   تصميم RTL عربي حديث ومتجاوب
   ===================================================== */

/* ===== المتغيرات (CSS Variables) ===== */
:root {
    --primary: #c8102e;          /* أحمر أنيق */
    --primary-dark: #9a0a23;
    --primary-light: #e8254a;
    --secondary: #1a2238;        /* كحلي */
    --secondary-light: #2a3556;
    --accent: #ffb800;           /* أصفر ذهبي */
    --bg: #f7f8fa;
    --white: #ffffff;
    --text: #1a2238;
    --text-light: #5a6275;
    --text-muted: #8a91a3;
    --border: #e5e7eb;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 18px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1240px;
}

/* ===== إعادة الضبط ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* الإنجليزية تستخدم Inter لمظهر أنظف */
body.lang-en {
    font-family: 'Inter', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

[dir="rtl"] body, body[dir="rtl"], html[dir="rtl"] body { text-align: right; }
[dir="ltr"] body, body[dir="ltr"], html[dir="ltr"] body { text-align: left; }

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

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--secondary); }

ul, ol { list-style: none; }

/* ===== الحاويات ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== الشريط العلوي (Top Bar) ===== */
.topbar {
    background: var(--secondary);
    color: var(--white);
    font-size: 14px;
    padding: 8px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.topbar a { color: var(--white); opacity: 0.85; }
.topbar a:hover { opacity: 1; color: var(--accent); }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-socials { display: flex; gap: 10px; }
.topbar-socials a {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    font-size: 13px;
}
.topbar-socials a:hover { background: var(--primary); }

/* ===== الهيدر / شريط التنقل ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 18px;
    color: var(--secondary);
}
.logo-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 22px;
    font-weight: 800;
    box-shadow: var(--shadow);
}
.logo-text small {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}
.nav-menu a {
    color: var(--text);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
    background: rgba(200, 16, 46, 0.06);
}

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 22px !important;
    border-radius: var(--radius-sm);
    font-weight: 700;
}
.nav-cta:hover {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* زر القائمة للجوال */
.menu-toggle {
    display: none;
    width: 40px; height: 40px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    align-items: center; justify-content: center;
    color: var(--secondary);
}
.menu-toggle span {
    width: 22px; height: 2px; background: currentColor;
    position: relative; display: block;
}
.menu-toggle span::before, .menu-toggle span::after {
    content: ""; position: absolute; left: 0; width: 22px; height: 2px;
    background: currentColor; transition: var(--transition);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* ===== Hero / البطل ===== */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -50%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(200,16,46,0.3), transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: -30%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,184,0,0.15), transparent 70%);
    border-radius: 50%;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,184,0,0.15);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 22px;
    border: 1px solid rgba(255,184,0,0.3);
}
.hero h1 {
    font-size: 52px;
    color: var(--white);
    margin-bottom: 22px;
    line-height: 1.2;
}
.hero h1 span {
    color: var(--accent);
    background: linear-gradient(90deg, var(--accent), #ffd862);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat .num {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.hero-stat .label {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 6px;
}

.hero-visual {
    position: relative;
    height: 460px;
}
.hero-visual .car-circle {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 60%);
    border-radius: 50%;
}
.hero-svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

/* ===== الأزرار ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(200,16,46,0.35);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200,16,46,0.45);
}
.btn-secondary {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-whatsapp {
    background: #25d366;
    color: var(--white);
}
.btn-whatsapp:hover {
    background: #1ebe5a;
    color: var(--white);
    transform: translateY(-2px);
}
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ===== الأقسام ===== */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title .eyebrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}
.section-title h2 {
    font-size: 38px;
    margin-bottom: 12px;
}
.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 17px;
}

/* ===== كروت المميزات ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: start;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.feature-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    font-size: 26px;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(200,16,46,0.25);
}
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 15px; }

/* ===== كروت التصنيفات ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px 18px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-card:hover::before { transform: scaleX(1); }
.category-card .cat-icon {
    font-size: 42px;
    margin-bottom: 12px;
    line-height: 1;
}
.category-card h4 {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 4px;
}
.category-card span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== كروت المنتجات ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.product-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #f7f8fa, #eef0f4);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.product-card:hover .product-image img { transform: scale(1.06); }
.product-image .placeholder-icon {
    font-size: 70px;
    opacity: 0.4;
}
.product-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}
.product-badge.discount { background: var(--accent); color: var(--secondary); }

.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}
.product-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--secondary);
    line-height: 1.4;
}
.product-card h3 a { color: inherit; }
.product-card h3 a:hover { color: var(--primary); }
.product-brand {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}
.product-price {
    display: flex; align-items: baseline; gap: 8px;
    margin-top: auto;
    margin-bottom: 14px;
}
.price-new {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}
.price-old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.price-quote {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary);
}
.product-actions { display: flex; gap: 8px; }

/* ===== صفحة المنتج المفرد ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}
.product-detail-image {
    background: linear-gradient(135deg, #f7f8fa, #eef0f4);
    border-radius: var(--radius);
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-image .placeholder-icon { font-size: 140px; opacity: 0.3; }
.product-detail-info h1 {
    font-size: 32px;
    margin-bottom: 14px;
}
.product-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.product-meta span strong { color: var(--secondary); margin-left: 6px; }
.product-meta span { color: var(--text-light); }
.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 24px;
}
.product-detail-price .new { font-size: 36px; font-weight: 800; color: var(--primary); }
.product-detail-price .old { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.product-description {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 1.9;
}
.product-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.stock-in { background: rgba(16,185,129,0.12); color: var(--success); }
.stock-out { background: rgba(239,68,68,0.12); color: var(--danger); }

/* ===== الفلاتر ===== */
.filter-bar {
    background: var(--white);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}
.filter-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-list a {
    padding: 9px 18px;
    background: var(--bg);
    color: var(--text);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.filter-list a:hover { background: var(--white); border-color: var(--primary); color: var(--primary); }
.filter-list a.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===== الفورم ===== */
.form-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 14px;
}
.form-group label .required { color: var(--primary); }
.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    color: var(--text);
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ===== رسائل التنبيه ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    border-inline-start: 4px solid;
}
.alert-success { background: rgba(16,185,129,0.1); color: var(--success); border-color: var(--success); }
.alert-danger { background: rgba(239,68,68,0.1); color: var(--danger); border-color: var(--danger); }
.alert-warning { background: rgba(245,158,11,0.1); color: var(--warning); border-color: var(--warning); }

/* ===== صفحة عن الشركة ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text h2 { font-size: 36px; margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; font-size: 16px; }
.about-text ul { margin-top: 20px; }
.about-text ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 600;
}
.about-text ul li::before {
    content: "✓";
    width: 24px; height: 24px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.about-image {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    aspect-ratio: 4/5;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 200px;
    box-shadow: var(--shadow-lg);
}

/* ===== بطاقة التواصل ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
}
.contact-info {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
}
.contact-info h2 { color: var(--white); font-size: 28px; margin-bottom: 12px; }
.contact-info > p { opacity: 0.85; margin-bottom: 30px; }
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info-item:last-child { border-bottom: 0; }
.contact-info-item .icon {
    width: 44px; height: 44px;
    background: rgba(200,16,46,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-info-item h4 { color: var(--white); font-size: 15px; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.5;
}
.contact-info-item a:hover { color: var(--accent); }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===== الفوتر ===== */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.75);
    padding: 70px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
}
.footer h4 {
    color: var(--white);
    font-size: 17px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}
.footer h4::after {
    content: "";
    position: absolute;
    inset-inline-start: 0; bottom: 0;
    width: 40px; height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.footer-about p { line-height: 1.8; margin-bottom: 18px; }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 800;
    font-size: 18px;
}
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    transition: var(--transition);
}
.footer-socials a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-links a {
    color: rgba(255,255,255,0.75);
    display: block;
    padding: 6px 0;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); padding-inline-start: 6px; }
.footer-contact li {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.6;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
    text-align: center;
    font-size: 14px;
}
.footer-bottom a { color: var(--accent); }

/* ===== صفحة Page Title ===== */
.page-header {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-header h1 { color: var(--white); font-size: 42px; margin-bottom: 12px; }
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    opacity: 0.85;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .separator { opacity: 0.5; }

/* ===== زر واتساب عائم ===== */
.float-whatsapp {
    position: fixed;
    bottom: 25px;
    width: 60px; height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 20px rgba(37,211,102,0.4);
    z-index: 99;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
[dir="rtl"] .float-whatsapp { left: 25px; }
[dir="ltr"] .float-whatsapp { right: 25px; }
.float-whatsapp:hover {
    transform: scale(1.08);
    color: var(--white);
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 8px 30px rgba(37,211,102,0.7); }
}

/* ===== لا توجد نتائج ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: var(--radius);
}
.empty-state .icon { font-size: 80px; margin-bottom: 20px; opacity: 0.5; }
.empty-state h3 { font-size: 22px; margin-bottom: 10px; }
.empty-state p { color: var(--text-light); }

/* ===== التجاوبية ===== */
@media (max-width: 992px) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 38px; }
    .hero-visual { height: 320px; }
    .product-detail { grid-template-columns: 1fr; padding: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: inline-flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        width: 80%; max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 20px;
        gap: 6px;
        transition: var(--transition);
        z-index: 200;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    /* في RTL: تأتي من اليمين */
    [dir="rtl"] .nav-menu { right: -100%; left: auto; }
    [dir="rtl"] .nav-menu.active { right: 0; }
    /* في LTR: تأتي من اليسار */
    [dir="ltr"] .nav-menu { left: -100%; right: auto; box-shadow: 10px 0 30px rgba(0,0,0,0.1); }
    [dir="ltr"] .nav-menu.active { left: 0; }
    .nav-menu a { font-size: 16px; padding: 14px 16px; }
    .menu-overlay {
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.5);
        opacity: 0; pointer-events: none;
        transition: var(--transition);
        z-index: 150;
    }
    .menu-overlay.active { opacity: 1; pointer-events: auto; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 16px; }
    .section { padding: 60px 0; }
    .section-title h2 { font-size: 28px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .page-header h1 { font-size: 30px; }
    .product-detail-info h1 { font-size: 24px; }
    .topbar-info { gap: 12px; font-size: 12px; }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr; gap: 14px; }
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1; }
    .products-grid { grid-template-columns: 1fr; }
}

/* ===== مفتاح تبديل اللغة | Language Switcher ===== */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(255,184,0,0.15);
    border: 1px solid rgba(255,184,0,0.35);
    color: var(--accent) !important;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}
.lang-switch:hover {
    background: var(--accent);
    color: var(--secondary) !important;
}

.hide-mobile { display: inline; }
@media (max-width: 768px) {
    .hide-mobile { display: none; }
}

/* ===== تحسينات RTL/LTR ===== */
/* جسم RTL */
[dir="rtl"] .topbar-info,
[dir="rtl"] .nav-menu { direction: rtl; }

/* جسم LTR */
[dir="ltr"] .topbar-info,
[dir="ltr"] .nav-menu { direction: ltr; }

/* جدول لوحة الإدارة في كلا الاتجاهين */
[dir="rtl"] .table th, [dir="rtl"] .table td { text-align: right; }
[dir="ltr"] .table th, [dir="ltr"] .table td { text-align: left; }

/* breadcrumb separators تتجه طبيعيًا في كلا الاتجاهين */
[dir="ltr"] .breadcrumb .separator { transform: scaleX(1); }
[dir="rtl"] .breadcrumb .separator { display: inline-block; }

/* product-card stock badge - يبقى في الزاوية الأنسب */
[dir="rtl"] .product-badge { right: 12px; left: auto; }
[dir="ltr"] .product-badge { left: 12px; right: auto; }

/* أنماط اللغة الإنجليزية فقط */
body.lang-en h1, body.lang-en h2, body.lang-en h3 {
    letter-spacing: -0.02em;
}
body.lang-en .hero h1 { font-size: 56px; }
@media (max-width: 768px) {
    body.lang-en .hero h1 { font-size: 34px; }
}

/* تعديلات الفوتر في LTR */
[dir="ltr"] .footer h4::after { left: 0; right: auto; }

