﻿/* =========================================
   شريط الإعلان العلوي (Announcement Bar)
========================================= */
.announcement-bar {
    background-color: #111; /* لون داكن قريب من الأسود */
    color: #fff;
    text-align: center;
    /* 🔥 قللنا البادينج هنا عشان الارتفاع يصغر 🔥 */
    padding: 6px 0;
    /* 🔥 تصغير حجم الخط عشان يتناسب مع الشريط الرفيع 🔥 */
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
    /* إلغاء الظل عشان يبان فلات زي الصورة */
    box-shadow: none;
    border-bottom: 1px solid #333; /* خط فاصل خفيف جداً */
}

.announcement-bar p {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* تقليل المسافة بين الأيقونة والكلام */
    line-height: 1.2; /* ضبط ارتفاع السطر */
}

/* الأيقونة (العربية) */
.announcement-bar i {
    color: var(--accent-gold);
    font-size: 1rem; /* تصغير الأيقونة */
}

/* النص العريض (توصيل مجاني..) */
.announcement-bar strong {
    color: var(--accent-gold);
    font-weight: 700;
}

/* 📱 تنسيق للموبايل (تصغير إضافي) */
@media (max-width: 768px) {
    .announcement-bar {
        font-size: 0.75rem; /* خط أصغر للموبايل */
        padding: 5px 0; /* شريط أرفع */
    }
    
    .announcement-bar i {
        font-size: 0.9rem;
    }
}

/* 📱 تنسيق للموبايل (اختياري لتحسين الشكل) */
@media (max-width: 768px) {
    .announcement-bar {
        font-size: 0.85rem; /* تصغير الخط شوية في الموبايل */
        padding: 8px 0;
    }
}
/* 1. تحديد عرض الشريط */
::-webkit-scrollbar {
    width: 12px; /* عرض الشريط */
}

/* 2. لون خلفية الشريط (المسار الذي يمشي عليه) */
::-webkit-scrollbar-track {
    background: #f1f8e9; /* لون أخضر باهت جداً للخلفية */
}

/* 3. لون الجزء المتحرك (المقبض) */
::-webkit-scrollbar-thumb {
    background-color: #81c784; /* الأخضر الفاتح */
    border-radius: 10px; /* جعل الحواف دائرية */
    border: 3px solid #f1f8e9; /* حدود بنفس لون الخلفية لعمل مسافة جمالية */
}

    /* 4. تغيير اللون عند وضع الماوس عليه */
    ::-webkit-scrollbar-thumb:hover {
        background-color: #66bb6a; /* درجة أغمق قليلاً عند الاستخدام */
    }

/* --- دعم متصفح فايرفوكس (Firefox) --- */
html {
    scrollbar-color: #81c784 #f1f8e9; /* لون المقبض ثم لون الخلفية */
    scrollbar-width: thin; /* جعل الشريط رفيع */
}
/* تنسيق الناف بار باللون الأخضر */
.navbar {
    background-color: #1B5E20 !important; /* ✅ درجة أغمق وأكثر فخامة */
    border-bottom: 1px solid #104114; /* جعلنا الخط الفاصل أغمق ليتماشى مع الخلفية */
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* تقوية الظل قليلاً لإبراز الناف بار */
}

/* الكلام والروابط باللون الأبيض */
.nav-link {
    white-space: nowrap;
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff !important; /* أبيض */
    text-decoration: none;
    transition: 0.3s;
}

    .nav-link:hover {
        color: #e8f5e9 !important; /* أبيض مخضر عند الوقوف عليه */
    }

/* أيقونة السلة والبروفايل في الناف بار */
.navbar .cart-btn,
.navbar .user-profile,
.navbar .user-profile i,
.navbar .user-profile span {
    color: #ffffff !important;
}

/* تحسين شكل عداد السلة */
.navbar .badge {
    background-color: #ffffff;
    color: #388E3C;
    border: 1px solid #388E3C;
}


/* تنسيق أزرار التحكم في الكمية داخل المودال */
.qty-btn-large {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* شكل دائري */
    border: none;
    background-color: #eee;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.qty-btn-large:active {
    transform: scale(0.9);
}

.qty-btn-large:hover {
    background-color: var(--accent-gold); /* يتلون عند الوقوف عليه */
    color: white;
}
/* ======================================= */
/* 1. تنسيق الفوتر الأساسي (Footer Bottom) */
/* ======================================= */
.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.9rem;
}

/* ======================================= */
/* 2. حاوية المحاذاة الأفقية (Footer Contact Row) */
/* ======================================= */
/* هذا يجعل تنبيه التوصيل والروابط الاجتماعية على سطر واحد */
.footer-col .footer-contact-row {
    display: flex;
    align-items: center; /* محاذاة عمودية في المنتصف */
    justify-content: space-between; /* تباعد بين التنبيه والروابط */
    width: 100%;
    margin-top: 15px; /* مسافة من اللوجو في الأعلى */
}

/* إلغاء أي عرض كامل قد يكون مطبقاً على التنبيه ليعمل داخل flex */
.footer-col .delivery-alert {
    margin-top: 0;
    flex-shrink: 1; /* للسماح له بالتقلص قليلاً */
}

/* ======================================= */
/* 3. تنسيق حاوية الروابط الاجتماعية (.social-links) */
/* ======================================= */
.site-footer .footer-col .social-links {
    margin-top: 0; /* تم إلغاء الهامش القديم ليعمل مع Flexbox */
    display: flex;
    /* لجعل الروابط تتجه إلى اليسار (في تصميم RTL) */
    direction: ltr;
    justify-content: flex-start;
    gap: 12px; /* مسافة بسيطة بين الأيقونات */
    padding-inline-start: 15px; /* مسافة بسيطة عن التنبيه */
}

/* ======================================= */
/* 4. تنسيق الأيقونات الفردية (Social Icon) */
/* ======================================= */
.site-footer .social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px; /* حجم موحد */
    height: 40px;
    border-radius: 50%; /* شكل دائري أنيق */
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    /* الخصائص المتقدمة */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

    /* --- ألوان وتأثيرات منصات التواصل --- */

    /* لون الفيسبوك */
    .site-footer .social-icon.facebook {
        background-color: #3b5998;
    }

    /* لون الإنستغرام وتدرجه */
    .site-footer .social-icon.instagram {
        background-color: #e1306c;
        background-image: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
    }

    /* تأثير التفاعل (Hover Effect) */
    .site-footer .social-icon:hover {
        transform: translateY(-4px) scale(1.05); /* رفع وتكبير بسيط */
        opacity: 1;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }

    /* عند المرور على الفيسبوك */
    .site-footer .social-icon.facebook:hover {
        background-color: #2b4578; /* لون أغمق */
    }
.weight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 أزرار في الصف */
    gap: 10px;
    margin-bottom: 20px;
}

/* تنسيق زر الوزن */
.weight-btn {
    padding: 12px 5px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.2s ease;
}

    /* عند الوقوف على الزر */
    .weight-btn:hover {
        border-color: var(--accent-gold);
        color: var(--accent-gold);
    }

    /* الزر المختار (النشط) */
    .weight-btn.active {
        background-color: var(--accent-gold);
        color: white;
        border-color: var(--accent-gold);
        box-shadow: 0 4px 10px rgba(0, 178, 7, 0.3);
    }
/* ========================================= */
/* بادج "متوفر" (شفاف، مدور، بدون أيقونة) 🌿 */
/* ========================================= */

/* 1. تعديل العنوان عشان يسمح بتوزيع العناصر يمين ويسار */
.details h3 {
    display: flex; /* تفعيل الفليكس */
    justify-content: space-between; /* الاسم يمين والبادج يسار */
    align-items: center; /* محاذاة رأسية في المنتصف */
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
    cursor: pointer;
}

/* 2. تنسيق بادج "متوفر" */
.stock-badge {
    background-color: transparent;
    border: 1px solid #28a745; /* أخضر */
    color: #28a745;
    padding: 2px 8px;
    border-radius: 50px; /* مدور */
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap; /* منع الكلام ينزل سطر جديد */
    flex-shrink: 0; /* منع البادج من الانكماش لو الاسم طويل */
    margin-right: 10px; /* مسافة صغيرة بينه وبين الاسم */
}
/* عند الوقوف على الكارت، أظهر البادج */
.product-card:hover .hover-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* يطلع لمكانه الطبيعي */
}

/* ================================================= */
/* ستايل القائمة المنسدلة (Dropdown) - ليتناسب مع الأخضر */
/* ================================================= */

.user-profile {
    position: relative;
    cursor: pointer;
    padding: 0 10px;
    transition: opacity 0.2s;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    /* الشكل والظل */
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    padding: 5px 0;
    margin-top: 10px;
    /* الحركة والتحول */
    transform-origin: top;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

    .user-dropdown:not(.hidden) {
        opacity: 1;
        transform: translateY(0);
    }

    .user-dropdown.hidden {
        display: none;
        pointer-events: none;
    }

    /* 5. عناصر القائمة (الروابط) - الحالة الافتراضية */
    .user-dropdown a {
        display: flex;
        align-items: center;
        padding: 10px 15px;
        text-decoration: none;
        color: #2c3e50;
        font-size: 0.95rem;
        white-space: nowrap;
        transition: background-color 0.2s, color 0.2s;
    }

        /* 6. أيقونات القائمة - الحالة الافتراضية */
        .user-dropdown a i {
            margin-left: 10px;
            color: #34495e;
            font-size: 1.1em;
            width: 20px;
            transition: color 0.2s;
        }

        /* 7. تأثير التحويم (Hover): الخلفية الأخضر واللون الأبيض */
        .user-dropdown a:hover {
            /* ✅ استخدام اللون الأخضر الجديد */
            background-color: var(--accent-gold);
            color: #fff;
        }

            /* 8. تغيير لون الأيقونة عند التحويم */
            .user-dropdown a:hover i {
                color: #fff;
            }

/* 9. إظهار أيقونة البروفايل في الناف بار العلوي على الموبايل */
@media (max-width: 768px) {
    .user-profile {
        display: flex !important;
        font-size: 0.9rem;
        padding: 0;
        align-items: center;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');

:root {
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --text-main: #111111;
    --text-muted: #565959;
    --accent-gold: #4CAF50;
    --border-color: #e5e5e5;
    --danger-color: #ff4444;
    --amazon-price: #B12704;
    --amazon-yellow: #ffd814;
    --amazon-yellow-hover: #f7ca00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Almarai', sans-serif;
}

body {
    background-color: #f5f5e9 !important;
    color: var(--text-main);
    direction: rtl;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.navbar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    max-height: 40px;
    width: auto;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 20px;
}

.nav-link {
    white-space: nowrap;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s;
}

    .nav-link:hover {
        color: var(--accent-gold);
    }

.search-box {
    width: 100%;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
}

    .search-box input {
        width: 100%;
        padding: 8px 15px 8px 40px;
        border: 1px solid #ddd;
        border-radius: 20px;
        background: #f9f9f9;
        outline: none;
        font-size: 0.9rem;
        transition: 0.3s;
    }

        .search-box input:focus {
            background: white;
            border-color: var(--accent-gold);
            box-shadow: 0 0 5px rgba(0, 178, 7, 0.2);
        }
/* إزالة تأثير التوهج (Glow) من نصوص قسم الهيرو */
#hero h1,
#hero h2,
#hero h3,
#hero p,
#hero span,
.hero-text * {
    text-shadow: none !important;
}
    .search-box button {
        position: absolute;
        left: 10px;
        background: none;
        border: none;
        color: #777;
        cursor: pointer;
    }

.cart-btn {
    background-color: #81c784; /* لون الخلفية أخضر فاتح */
    color: #ffffff; /* لون أيقونة السلة أبيض */
    width: 45px; /* عرض الزر */
    height: 45px; /* ارتفاع الزر */
    border-radius: 50%; /* جعله دائري بالكامل */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease; /* تنعيم الحركة */
    box-shadow: 0 4px 12px rgba(129, 199, 132, 0.3); /* ظل أخضر خفيف */
    position: relative; /* ضروري عشان عداد المنتجات يظبط مكانه */
}

    /* عند مرور الماوس على الزر */
    .cart-btn:hover {
        background-color: #66bb6a; /* تغميق اللون قليلاً */
        transform: translateY(-3px); /* يرتفع قليلاً لأعلى */
        box-shadow: 0 6px 15px rgba(102, 187, 106, 0.4);
    }

.badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--accent-gold);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
}
/* الأنماط القياسية لـ Pulse */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }

    100% {
        transform: scale(0.95);
    }
}

/* أنماط الأوزان المغلقة */
.weight-btn.disabled-weight {
    opacity: 0.5; /* لون باهت */
    cursor: not-allowed !important; /* علامة الماوس (ممنوع) */
    pointer-events: none; /* لمنع أي تفاعل كلياً بالماوس */
    background-color: #eee !important;
    border: 1px dashed #ccc;
    color: #999;
}
/* تطبيق الأنيميشن على الزر (btn-buy-large في صفحة النجاح) */
#orderSuccessPage .btn-buy-large {
    animation: pulse 2s infinite; /* تشغيل الأنميشن */
    background-color: var(--accent-green);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
}
/* ========================================= */
/* تعديل لون اسم المستخدم وعلامة الصح في الناف بار */
/* ========================================= */
#userName {
    color: #4CAF50 !important; /* درجة خضراء فاتحة ومريحة للعين */
    font-weight: 800; /* خط عريض */
    transition: color 0.3s;
}
#userIcon {
    color: #4CAF50 !important;
}
.user-profile:hover #userName,
.user-profile:hover #userIcon {
    color: #388E3C !important;
}
/* استهداف أيقونة الصح فقط */
#userIcon.fa-check-circle {
    color: #013809 !important; /* نفس الدرجة الغامقة */
}
/* ========================================= */
/* تعديلات أيقونة السلة الجديدة (Basket) */
/* ========================================= */

/* 1. إخفاء سلة الكمبيوتر من الموبايل */
@media (max-width: 768px) {
    .cart-btn.desktop-only {
        display: none !important;
    }
}

/* 2. تظبيط شكل أيقونة السلة الجديدة في الكمبيوتر */
.cart-btn i.fa-shopping-basket {
    font-size: 24px; /* تكبير الأيقونة قليلاً */
    color: #1B5E20; /* لون أخضر غامق شيك يليق مع الموقع (اختياري، ممكن تخليه #333) */
    transition: transform 0.3s ease;
}

/* تأثير عند الوقوف عليها */
.cart-btn:hover i.fa-shopping-basket {
    transform: rotate(-5deg) scale(1.1); /* حركة بسيطة كأنها بتتملي */
}

/* تظبيط مكان العداد الأحمر بالنسبة لأيقونة السلة */
.cart-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e53935; /* أحمر للفت الانتباه */
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff; /* حدود بيضاء تفصله عن الزر الأخضر */
}

/* 3. تظبيط شكل السلة في الشريط السفلي للموبايل */
.mobile-bottom-nav .nav-item i.fa-shopping-basket {
    font-size: 1.4rem;
    color: #555; /* لون رمادي عادي */
}

/* لما تكون السلة هي الصفحة النشطة في الموبايل */
.mobile-bottom-nav .nav-item.active i.fa-shopping-basket {
    color: var(--accent-gold); /* تاخد اللون الأخضر الأساسي */
}
.hero {
    text-align: center;
    padding: 120px 20px;
    /* 👇 صورة الكمبيوتر */
    background-image: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url('./images/pchero.webp');
    /* شيلنا التدرج الأسود (overlay) عشان الكلام الأسود يبان، أو خففه لو حابب */

    background-size: cover;
    background-position: center center;
    /* تنسيق الحواف والعرض للكمبيوتر */
    width: 90%;
    max-width: 1100px;
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

    .hero h1, .hero p {
        color: #111111 !important;
        text-shadow: none; /* إزالة التوهج */
    }

/* ========================================= */
/* 2. ستايل الموبايل + صورة الموبايل القديمة */
/* ========================================= */
@media (max-width: 768px) {
    .hero {
        /* 👇👇 دي الصورة اللي هتظهر على الموبايل بس 👇👇 */
        background-image: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url('./images/unnamed.webp');
        /* إلغاء الستايل بتاع الكمبيوتر */
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        padding: 60px 20px;
        background-position: center center;
    }
}

/* تعديل خاص للموبايل (عشان نلغي اللون الأبيض الإجباري القديم) */
@media (max-width: 768px) {
    .hero p {
        color: #b2fab4 !important; /* نفس الدرجة الشيك للموبايل */
        text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    }
}

.hero h1, .hero p {
    color: #111111 !important;
    text-shadow: none; /* إزالة التوهج */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin: 40px 0 80px 0;
}

.product-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: fadeInCard 0.6s ease-out;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
    cursor: pointer;
    position: relative;
}
/* ========================================= */
/* 🎨 ألوان حالات الطلب الجديدة (User Orders Page) */
/* ========================================= */

.order-status {
    /* ... (التنسيقات العامة للحالة) ... */
}

/* ألوان حالات الطلب في صفحة طلباتي */
.status-قيد_المراجعة {
    background-color: #ff9800 !important; /* برتقالي */
    color: white;
}

.status-قيد_التجهيز {
    background-color: #2196F3 !important; /* أزرق */
    color: white;
}

.status-منتهى {
    background-color: #4CAF50 !important; /* أخضر */
    color: white;
}

.status-ملغى {
    background-color: #f44336 !important; /* أحمر */
    color: white;
}
    .img-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 15px;
        transition: 0.5s;
        mix-blend-mode: multiply;
    }

.product-card:hover img {
    transform: scale(1.08);
}

.details {
    padding: 15px;
}

    .details h3 {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 5px;
        color: var(--text-main);
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.price {
    font-size: 1.1rem; /* كبرت الخط سنة بسيطة عشان يكون أوضح */
    color: var(--accent-gold); /* ✅ التغيير: أصبح لونه أخضر مشرق */
    font-weight: 800; /* خليته عريض عشان يبان */
    margin-bottom: 8px;
}

.btn-quick-add {
    width: 100%;
    padding: 10px;
    /* ✅ التغيير هنا: خلفية خضراء متدرجة بدلاً من الأصفر */
    background: linear-gradient(45deg, var(--accent-gold), #388E3C);
    color: white; /* النص أبيض */
    border: none; /* إلغاء الحدود الصفراء */
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3); /* ظل أخضر خفيف */
}

    .btn-quick-add:hover {
        /* ✅ عند التحويم: درجة أغمق قليلاً */
        background: linear-gradient(45deg, #388E3C, #1B5E20);
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
    }

    .btn-quick-add:active {
        transform: scale(0.95);
    }
.product-view {
    padding: 30px 0;
    min-height: 100vh;
    animation: fadeInCard 0.4s;
}

.hidden {
    display: none !important;
}

.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #007185;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-details-container {
    display: flex;
    gap: 40px;
}

.product-gallery {
    flex: 1;
    position: sticky;
    top: 90px;
    height: fit-content;
}

.main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center; 
}

    .main-img img {
        width: 90%;
        height: 90%;
        object-fit: contain;
    }

.small-imgs {
    display: flex;
    gap: 10px;
    justify-content: center;
}

    .small-imgs img {
        width: 60px;
        height: 60px;
        border: 1px solid #ddd;
        border-radius: 5px;
        cursor: pointer;
        padding: 2px;
    }

        .small-imgs img.active {
            border-color: var(--accent-gold);
        }

.product-info {
    flex: 1.2;
}

    .product-info h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }

.brand {
    color: #007185;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.rating {
    color: #ffa41c;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.price-box {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.currency {
    font-size: 1rem;
    margin-top: 5px;
    margin-right: 2px;
}

.description {
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.btn-buy-large {
    background: var(--accent-gold);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    max-width: 350px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,178,7,0.3);
}

.features-list {
    list-style: none;
    margin-top: 30px;
    color: #555;
}

    .features-list li {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .features-list i {
        color: var(--accent-gold);
    }

/* ======================================= */
/* 1. الحاوية الرئيسية للسلة (Sidebar) */
/* ======================================= */
.cart-sidebar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 450px;
    max-width: 90vw;
    height: 70vh;
    max-height: 800px;
    background: white;
    /* 🔥🔥 التعديل هنا: جعل جميع الحواف دائرية 🔥🔥 */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
}
.overlay.active {
    display: block; /* تأكد من أن الـ overlay يظهر */
}

.cart-sidebar.active {
    opacity: 1; /* إظهار النافذة */
    visibility: visible;
    transform: translate(-50%, -50%) scale(1); /* تكبيرها إلى الحجم الطبيعي */
}
/* زر "أضف للسلة" في صفحة المنتج */
#productPage .actions .btn-buy-large {
    background-color: var(--accent-green); /* اللون الأخضر لـ ELMAZRA3AH */
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
    transition: 0.2s;
}

    #productPage .actions .btn-buy-large:hover {
        background-color: #388e3c; /* تدرج أغمق عند التفاعل */
    }
/* ======================================= */
/* 2. رأس السلة (Header) */
/* ======================================= */
.cart-header {
    padding: 20px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* خط فاصل أنيق وسميك */
    border-bottom: 3px solid var(--accent-green);
    font-weight: 700;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

    .cart-header h3 {
        color: #333;
        font-size: 1.4rem;
        margin: 0;
    }

    .cart-header .close-cart {
        font-size: 2rem;
        color: #999;
        cursor: pointer;
        transition: color 0.2s;
    }

        .cart-header .close-cart:hover {
            color: var(--accent-gold);
        }

/* ======================================= */
/* 3. عناصر السلة (Items) */
/* ======================================= */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px; /* هوامش داخلية أوسع */
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    /* خط فاصل متقطع وناعم */
    border-bottom: 1px dashed #ddd;
    align-items: center;
}

    .cart-item:last-child {
        border-bottom: none; /* إزالة الخط من آخر عنصر */
    }

    .cart-item img {
        width: 75px; /* تكبير الصورة */
        height: 75px;
        object-fit: cover;
        border-radius: 10px; /* حواف أنعم */
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .cart-item .item-details {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-grow: 1;
    }

/* ======================================= */
/* 4. تنسيق الزر والأزرار الصغيرة */
/* ======================================= */
.remove-btn {
    background-color: #ffebee; /* خلفية حمراء فاتحة جداً */
    color: #d32f2f; /* لون الأيقونة أحمر */
    border: none;
    width: 45px; /* عرض كبير للإصبع */
    height: 45px; /* ارتفاع كبير */
    border-radius: 50%; /* شكل دائري */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; /* تكبير حجم الأيقونة */
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 5px;
    align-self: flex-end; /* وضعه في أقصى اليسار */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    /* عند الضغط أو الوقوف عليه */
    .remove-btn:hover {
        background-color: #ffcdd2; /* تغميق اللون قليلاً */
        transform: scale(1.1); /* تكبير بسيط */
        color: #b71c1c;
    }

    .remove-btn:active {
        transform: scale(0.95);
    }
/* تنسيق الصف الذي يجمع الكمية والحذف */
.actions-row {
    display: flex;
    justify-content: space-between; /* يوزع المسافة بينهم (واحد يمين وواحد شمال) */
    align-items: center; /* يخلي المحاذاة في النص */
    width: 100%;
    margin-top: 10px;
}

/* تنسيق زر الحذف (سلة المهملات) */
.remove-btn {
    background-color: #ffebee;
    color: #d32f2f;
    border: none;
    width: 40px; /* حجم مناسب */
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 0; /* إلغاء أي هوامش قديمة */
}

    .remove-btn:hover {
        background-color: #ffcdd2;
        transform: scale(1.1);
    }

    .remove-btn:active {
        transform: scale(0.95);
    }
/* ======================================= */
/* 5. الفوتر والإجمالي (Totals) */
/* ======================================= */
.cart-footer {
    padding: 20px 25px;
    border-top: 2px solid #f0f0f0;
}

.total {
    display: flex;
    /* 🔥🔥 الإصلاح: نستخدم flex-start لتبدأ المحاذاة من اليمين (في اتجاه RTL) 🔥🔥 */
    justify-content: flex-start;
    font-weight: 800;
    gap: 10px; /* مسافة صغيرة بين كلمة الإجمالي والمبلغ */

    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 15px;
    width: 100%;
}
.cart-footer .total span:last-child {
    color: var(--accent-gold); 
    font-weight: 900;
}

/* 🟢 التعديل على زر إتمام الشراء للتأكد من اللون الأخضر 🟢 */
.btn-checkout {
    width: 100%;
    padding: 18px; /* تكبير زر الدفع */
    /* 💥💥 التأكيد على اللون الأخضر كخلفية أساسية 💥💥 */
    background: #4CAF50; /* لون أخضر صريح، أو استخدم: var(--accent-green); */

    color: white; /* النص يبقى أبيض */
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px; /* حواف أنعم */
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4); /* ظل أخضر خفيف */
    transition: 0.3s ease;
}

    /* تأثير التفاعل (Hover) - لون أغمق */
    .btn-checkout:hover {
        background: #388e3c; /* لون أغمق عند التفاعل */
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(76, 175, 80, 0.5);
    }

/* تنسيق رسالة السلة الفارغة */
.cart-items .empty-msg {
    text-align: center;
    color: #999;
    padding-top: 50px;
    font-size: 1.1rem;
}


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

    .overlay.active {
        display: block;
    }

.site-footer {
    background: #fcfcfc;
    border-top: 1px solid #eee;
    padding-top: 50px;
    margin-top: 50px;
}


.delivery-alert {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    display: flex;
    gap: 10px;
    align-items: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    /* للتحكم في سرعة ظهور/اختفاء الخلفية السوداء */
    opacity: 0;
    transition: opacity 0.2s ease-in-out; /* الخلفية تختفي بسرعة عند الإغلاق */
}

.modal-content {
    background: white;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    /* الوضع الافتراضي (عند الإغلاق) */
    transform: translateY(15px) scale(0.98); /* قللت المسافة عشان يرجع أسرع */
    opacity: 0;
    /* 🔥 هذا هو سر سرعة الإغلاق: وقت قصير جداً (0.15 ثانية) */
    transition: all 0.15s ease-in;
}

/* --- كلاسات التفعيل --- */

/* تفعيل الخلفية */
.modal.show-modal {
    opacity: 1;
}

    /* تفعيل المحتوى (عند الفتح) */
    .modal.show-modal .modal-content {
        transform: translateY(0) scale(1);
        opacity: 1;
        /* 🔥 سرعة الفتح: أسرع قليلاً من الكود القديم (0.25 ثانية) ليكون نشيطاً */
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

.close-btn {
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        font-size: 0.9rem;
    }

    .form-group input, .form-group select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent-gold);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
}


#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #fff;
    color: #333;
    text-align: center;
    border-radius: 50px;
    padding: 12px 20px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #eee;
}

    #toast.show {
        visibility: visible;
        animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }

    #toast i {
        color: #4CAF50;
        font-size: 1.2rem;
    }

@keyframes fadein {
    from {
        top: 0;
        opacity: 0;
    }

    to {
        top: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        top: 30px;
        opacity: 1;
    }

    to {
        top: 0;
        opacity: 0;
    }
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }

    .container {
        padding: 0 15px;
    }

    .nav-content {
        flex-wrap: nowrap;
        gap: 10px;
        padding: 0;
    }

    .nav-link {
        display: none;
    }

    .navbar .cart-btn {
        display: none !important;
    }

    .nav-center {
        justify-content: flex-end;
        width: 100%;
        gap: 0;
    }

    .search-box {
        max-width: none;
        width: 100%;
        height: 35px;
    }

        .search-box input {
            height: 100%;
            font-size: 0.85rem;
            padding-left: 35px;
        }

        .search-box button {
            left: 8px;
            top: 50%;
            transform: translateY(-50%);
        }

    .site-logo {
        max-height: 32px;
    }

    .hero {
        padding: 50px 20px;
        background-position: 70% center;
    }

        .hero h1, .hero p {
            color: #fff !important;
            text-shadow: 2px 2px 8px #000, 0 0 5px #000;
        }

        .hero h1 {
            font-size: 2rem;
        }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 40px;
    }

    .product-card {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .details {
        padding: 10px;
    }

        .details h3 {
            font-size: 0.85rem;
            margin-bottom: 5px;
            white-space: normal;
            height: 2.4em;
            overflow: hidden;
            line-height: 1.2;
        }

    .price {
        font-size: 1.1rem; /* كبرت الخط سنة بسيطة عشان يكون أوضح */
        color: var(--accent-gold); /* ✅ التغيير: أصبح لونه أخضر مشرق */
        font-weight: 800; /* خليته عريض عشان يبان */
        margin-bottom: 8px;
    }

    .btn-quick-add {
        padding: 6px;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .product-details-container {
        flex-direction: column;
        gap: 15px;
    }

    .product-gallery {
        position: static;
        width: 100%;
    }

    .main-img {
        height: 280px;
        border: none;
        background: #fafafa;
    }

    .product-info {
        width: 100%;
        padding-bottom: 60px;
    }

        .product-info h2 {
            font-size: 1.3rem;
        }

    .price-box {
        font-size: 1.5rem;
        color: var(--amazon-price);
    }

    .actions {
        position: fixed;
        bottom: 65px;
        left: 0;
        width: 100%;
        background: white;
        padding: 10px 15px;
        z-index: 900;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        border-top: 1px solid #eee;
    }

    .btn-buy-large {
        width: 100%;
        max-width: none;
        padding: 12px;
        border-radius: 8px;
    }

    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: white;
        border-top: 1px solid #eee;
        z-index: 1000;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.02);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #777;
        font-size: 0.75rem;
        flex: 1;
    }

        .nav-item i {
            font-size: 1.3rem;
            margin-bottom: 3px;
            color: #444;
        }

        .nav-item.active i {
            color: var(--accent-gold);
        }

    .icon-wrapper {
        position: relative;
    }

    .mobile-badge {
        position: absolute;
        top: -5px;
        left: 8px;
        width: 16px;
        height: 16px;
        font-size: 9px;
        border: 1px solid white;
    }
}

.site-footer {
    background-color: #f8f9fa; 
    border-top: 1px solid #e9ecef;
    padding-top: 70px; 
    margin-top: 80px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px; 
    padding-bottom: 50px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 25px;
    display: block;
    opacity: 0.9;
}

.delivery-alert {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-right: 4px solid var(--accent-gold);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #444;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    max-width: 320px;
}

    .delivery-alert i {
        font-size: 24px;
        color: var(--accent-gold);
    }

    .delivery-alert p {
        margin: 0;
        line-height: 1.6;
    }

    .delivery-alert strong {
        color: #111;
    }

.footer-col h4 {
    font-size: 1.1rem;
    color: #111; 
    margin-bottom: 25px;
    font-weight: 800;
    position: relative;
}


    .footer-col h4::after {
        content: '';
        display: block;
        width: 40px;
        height: 3px;
        background-color: var(--accent-gold);
        margin-top: 10px;
        border-radius: 2px;
    }


.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        text-decoration: none;
        color: #666; 
        transition: all 0.3s ease;
        display: inline-block;
    }

        .footer-links a:hover {
            color: var(--accent-gold);
            transform: translateX(-5px);
        }


.footer-bottom {
    background-color: #f1f3f5;
    padding: 25px 0;
    text-align: center;
    color: #777;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
}

    .footer-bottom strong {
        color: #333;
    }

@keyframes bounceCart {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.5) rotate(-10deg);
        color: var(--accent-gold);
    }

    80% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        color: #333;
    }

}

.cart-bump {
    animation: bounceCart 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.features-section {
    margin-top: 80px;
    margin-bottom: 50px;
}

.features-wrapper {
    background-color: #f0f7f1;
    border-radius: 20px;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 50px;
    overflow: hidden;
    position: relative;
}

.features-image {
    flex: 1;
    position: relative;
}

    .features-image img {
        width: 100%;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: rotate(-2deg);
        transition: 0.3s;
    }

.features-wrapper:hover .features-image img {
    transform: rotate(0); 
}


.features-list-content {
    flex: 1.2;
}

    .features-list-content h2 {
        font-size: 2rem;
        margin-bottom: 30px;
        color: var(--text-main);
        font-weight: 800;
    }

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}


.icon-box {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

    .icon-box i {
        color: var(--accent-gold);
        font-size: 1.4rem;
    }

.feature-item .text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #111;
}

.feature-item .text p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .features-wrapper {
        flex-direction: column-reverse;
        padding: 30px 20px;
        gap: 30px;
        text-align: center;
    }

    .feature-item {
        flex-direction: column; 
        align-items: center;
        gap: 10px;
    }

    .features-list-content h2 {
        font-size: 1.5rem;
    }

    .features-image img {
        transform: rotate(0); 
        margin-top: 20px;
    }
}

.whatsapp-btn {
    position: fixed;
    bottom: 90px; 
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: 0.3s;
    text-decoration: none;
}

    .whatsapp-btn:hover {
        transform: scale(1.1);
        background-color: #128c7e;
    }


@media (min-width: 769px) {
    .whatsapp-btn {
        bottom: 30px;
    }
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px; 
    background-color: var(--danger-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.categories-section {
    margin-top: 50px;
    margin-bottom: 20px;
    /* 🔥 إضافة حماية علوية للسماح بحركة الكروت */
    padding-top: 15px;
}
.section-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--text-main);
    padding: 0 10px; 
}
.categories-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    /* زيادة الحشو السفلي والعلوي */
    padding-bottom: 10px; 
    
    /* 🔥 الإضافة الرئيسية: إعطاء مساحة حركة علوية للكروت 🔥 */
    padding-top: 10px; 
    
    justify-content: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
@media (max-width: 768px) {

    /* (إذا كنت قد أضفت قواعد order: 1 و order: 2 في الرد السابق، يرجى حذفها) */

    /* 1. تقليل الحشو السفلي للبانر (لرفعه للأعلى) */
    .hero {
        /* كان 50px أو أكثر، نجعله أصغر */
        padding-bottom: 10px;
    }

    /* 2. إلغاء الهامش العلوي لقسم الفئات (الرفع المطلوب) */
    .categories-section {
        /* 🔥 هذا هو السطر الرئيسي للرفع 🔥 */
        margin-top: 0 !important;
        /* قد تحتاج لإضافة حشو داخلي بسيط للحماية من القص */
        padding-top: 5px;
    }

    /* 3. تعديل الهامش السفلي لشبكة المنتجات (لضمان سلاسة الانتقال) */
    .products-grid {
        margin-top: 5px;
    }
}
    .categories-wrapper::-webkit-scrollbar {
        display: none; 
    }

.cat-card {
    min-width: 100px;
    width: 100px;
    height: 125px;
    border-radius: 12px;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border: 2px solid transparent;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    /* 🔥🔥 الإضافة 1: تحديد الموضع لكي يعمل z-index 🔥🔥 */
    position: relative;
    z-index: 1;
}
.cat-img {
    width: 100%; /* العرض كامل */
    height: 75%; /* الصورة تاخد 75% من طول الكارت */
    object-fit: cover; /* عشان الصورة تملأ المساحة ومتمطش */
    margin: 0;
    transition: transform 0.3s ease;
}
.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.35);
    /* 🔥🔥 الإضافة 2: رفع Z-index ليكون فوق كل شيء 🔥🔥 */
    z-index: 10;
}

    /* العنصر النشط (Active) */
.cat-card.active {
    border-color: #4CAF50 !important;
    background-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
}
    .cat-card.active span,
    .cat-card.active i,
    .cat-card.active .cat-icon {
        color: #4CAF50 !important;
    }
.cat-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #333;
}

.cat-card span {
    font-weight: 700;
    font-size: 0.85rem;
    color: #444;
    text-align: center;
}

@media (max-width: 768px) {
    .categories-wrapper {
        justify-content: flex-start;
        padding: 0 15px 15px 15px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .cat-card {
        min-width: 90px;
        width: 90px;
        height: 110px;
        scroll-snap-align: start;
    }

    .section-title {
        font-size: 1.3rem;
        margin-right: 15px; 
    }
}

.main-img {
    position: relative;
    overflow: hidden; 
    cursor: zoom-in; 
}

    .main-img img {

        transition: transform 0.2s ease-out; 

        transform-origin: center center;
    }


    .main-img:hover img {
        transform: scale(2); 
    }


@media (max-width: 768px) {
    .main-img {
        cursor: default;
    }

        .main-img:hover img {
            transform: none;
        }
}

.share-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-copy-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa; 
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 10px 25px;
    border-radius: 50px; 
    cursor: pointer;
    font-family: 'Almarai', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

    .btn-copy-link i {
        color: var(--accent-gold);
        font-size: 1rem;
    }

    .btn-copy-link:hover {
        background-color: #e9ecef;
        border-color: #d0d0d0;
        transform: translateY(-2px); 
    }

    .btn-copy-link:active {
        transform: translateY(0);
    }

.fly-item {
    position: fixed;
    z-index: 9999;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    opacity: 1;
    pointer-events: none; 
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-buy-large:active, .btn-quick-add:active {
    transform: scale(0.95) !important;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
    align-items: start;
    padding-bottom: 50px;
}

.white-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}


.checkout-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
}

.c-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 5px;
}

    .c-item img {
        width: 50px;
        height: 50px;
        border-radius: 5px;
        object-fit: cover;
    }

.totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #555;
}

    .totals-row.final {
        font-weight: 800;
        color: #000;
        font-size: 1.2rem;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }

.alert-box {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        order: 2;
    }

    .checkout-form {
        order: 1;
    }
}

.success-animation {
    width: 100px;
    height: 100px;
    background: var(--accent-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto 25px auto;
    box-shadow: 0 10px 30px rgba(0, 178, 7, 0.3);
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

#orderSuccessPage {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white; 
    z-index: 5000;
    overflow-y: auto; 
}

.success-animation {
    width: 100px;
    height: 100px;
    background: var(--accent-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto 25px auto;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0, 178, 7, 0.3);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {

    .checkout-layout {
        grid-template-columns: 1fr;
        display: flex; 
        flex-direction: column;
    }

    .checkout-summary {
        order: -1; 
        margin-bottom: 20px; 
    }

    .checkout-form {
        order: 1;
    }
}

.white-box {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); 
    border: 1px solid #f0f0f0;
}

.section-header {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 10px;
}

    .section-header i {
        color: var(--accent-gold);
    }

.mt-4 {
    margin-top: 25px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 700;
        font-size: 0.9rem;
        color: #555;
    }

        .form-group label i {
            color: #999;
            margin-left: 5px;
        }

.modern-input {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #eee; 
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

    .modern-input:focus {
        border-color: var(--accent-gold); 
        background: white;
        box-shadow: 0 0 0 4px rgba(0, 178, 7, 0.1);
        outline: none;
    }

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 15px;
    margin-bottom: 20px;
}

.pay-card {
    cursor: pointer;
    position: relative;
}

    .pay-card input {
        display: none;
    }

.card-content {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fdfdfd;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #777;
}

    .card-content i {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

.pay-card input:checked + .card-content {
    border-color: var(--accent-gold);
    background-color: #f0fff0;
    color: var(--accent-gold);
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 178, 7, 0.15);
    transform: translateY(-2px);
}


.btn-buy-large {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--accent-gold), #E2852E);
    box-shadow: 0 5px 20px rgba(0, 178, 7, 0.3);
    transition: transform 0.2s;
}

    .btn-buy-large:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 178, 7, 0.4);
    }

@media (max-width: 480px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 900px) { 

    .checkout-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-bottom: 80px; 
    }

    .checkout-summary {
        order: -1; 
        width: 100%;
    }

    .checkout-form {
        order: 1; 
        width: 100%;
    }

    .white-box {
        width: 100%;
        box-sizing: border-box; 
        padding: 15px; 
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
    }

    .checkout-items-list {
        max-height: 200px; 
    }
}
/* تنسيق أزرار الكمية في السلة */
.qty-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    background: #f8f8f8;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #eee;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    font-weight: bold;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: 0.2s;
}
/* --- ستايل القائمة المنسدلة Dropdown Menu --- */

/* ================================================= */
/* ستايل القائمة المنسدلة (Dropdown) - الإصدار المصلح       */
/* ================================================= */


/* --- ستايل صفحة طلباتي --- */
.order-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    text-align: right; /* عشان المحتوى يكون متناسق مع الاتجاه العربي */
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.order-card h4 {
    color: var(--main-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.order-detail-row span:first-child {
    font-weight: 500;
    color: #555;
}

.order-detail-row span:last-child {
    font-weight: bold;
    color: var(--text-color);
}

.order-detail-row.total-row {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid var(--accent-green);
    font-size: 1.1rem;
}

.order-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
    margin-right: auto;
}

/* ألوان حالات الطلب */
.status-جديد {
    background-color: #007bff; /* أزرق */
}
.status-قيد_التجهيز {
    background-color: #ffc107; /* أصفر */
}
.status-تم_الشحن {
    background-color: #28a745; /* أخضر */
}
.status-ملغي {
    background-color: #dc3545; /* أحمر */
}
    .qty-btn:hover {
        background: var(--accent-gold);
        color: white;
    }

.qty-val {
    font-weight: bold;
    font-size: 0.95rem;
    min-width: 20px;
    text-align: center;
}

/* تنسيق أزرار اختيار الوزن */
.weight-btn {
    padding: 10px;
    border: 2px solid #eee;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

    .weight-btn:hover {
        border-color: var(--accent-gold);
        color: var(--accent-gold);
    }

    .weight-btn.active {
        background-color: var(--accent-gold);
        color: white;
        border-color: var(--accent-gold);
    }
.hero {
    /* تقليل البادينج (كان 120px خليناه 40px بس) */
    padding: 40px 20px;
    /* تقليل الارتفاع الثابت قليلاً ليتناسب مع البادينج القليل */
    min-height: 300px; /* يمكنك تغيير هذا الرقم للتحكم في ارتفاع الصورة الكلي */
    /* محاذاة في المنتصف */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* إعدادات الخلفية */
    background-image: url('./images/pchero.webp');
    background-size: cover;
    background-position: center center;
    width: 90%;
    max-width: 1100px;
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
/* ========================================= */
/* تعديلات الهيرو للموبايل فقط (شاشة صغيرة + لون أسود) */
/* ========================================= */
@media (max-width: 768px) {

    /* استهداف العنوان والفقرة معاً */
    .hero h1, .hero p {
        color: #000000 !important; /* لون أسود صريح */
        text-shadow: none !important; /* إلغاء الجلو والظل نهائياً */
    }

    /* تصغير حجم العنوان الرئيسي (h1) */
    .hero h1 {
        font-size: 1.2rem !important; /* تصغير الخط جداً (كان 2rem) */
        line-height: 1.3;
        margin-bottom: 5px;
        font-weight: 800; /* سميك عشان يفضل مقروء رغم صغره */
    }

    /* تصغير حجم النص الفرعي (p) */
    .hero p {
        font-size: 0.8rem !important; /* تصغير النص الفرعي */
        color: #222 !important; /* أسود مائل للرمادي الغامق جداً */
        margin-top: 0;
    }
}
@media (max-width: 768px) {
    .hero {
        /* 1. تحديد ارتفاع ثابت عشان الصورة متصغرش لما الكلام يصغر */
        min-height: 350px; /* ممكن تزود الرقم ده لـ 400px لو عايزها أطول */
        /* 2. التأكد إن الصورة مغطية المساحة بالكامل */
        background-size: cover;
        background-position: center center;
        /* 3. عشان الكلام الصغير ييجي في نص الصورة بالظبط (رأسياً وأفقياً) */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}
/* ========================================= */
/* إعدادات قسم الهيرو للموبايل فقط (تجميع شامل بالأبعاد المطلوبة) */
/* ========================================= */
@media (max-width: 768px) {
    .hero {
        /* 1. الصورة الخلفية للموبايل (بدون تدرج أسود عشان الكلام الأسود يبان) */
        background-image: url('./images/unnamed.webp');
        /* 2. الأبعاد المطلوبة (التي استخدمناها سابقاً) */
        /* هذا الارتفاع يضمن أن الصورة تظل كبيرة وواضحة */
        min-height: 350px;
        /* تقليل البادينج الداخلي */
        padding: 20px 10px;
        /* ضمان أن الصورة تغطي الخلفية بالكامل وفي المنتصف */
        background-size: cover;
        background-position: center center;
        /* استخدام Flexbox لتوسيط الكلام الصغير في منتصف الارتفاع 350px */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* إعدادات الشكل للموبايل (إلغاء حواف الكمبيوتر المدوّرة والهوامش) */
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
    }

        /* ================================ */
        /* تنسيق النصوص للموبايل (أسود وصغير وبدون توهج) */
        /* ================================ */

        /* استهداف العنوان والفقرة معاً */
        .hero h1, .hero p {
            color: #000000 !important; /* لون أسود صريح */
            text-shadow: none !important; /* إلغاء الجلو والظل نهائياً */
            text-align: center; /* توسيط النص أفقياً */
        }

        /* تصغير حجم العنوان الرئيسي (h1) */
        .hero h1 {
            font-size: 1.3rem !important;
            line-height: 1.2;
            margin-bottom: 8px;
            font-weight: 800;
        }

        /* تصغير حجم النص الفرعي (p) */
        .hero p {
            font-size: 0.9rem !important;
            color: #222 !important;
            margin-top: 0;
        }
}

/* تنسيق يخلي الزرار والخانة على نفس السطر */
.coupon-group {
    display: flex;
    gap: 10px; /* مسافة بين الزرار والخانة */
    margin-top: 15px;
    max-width: 100%; /* عشان مياخدش مساحة أكبر من اللازم */
}

    /* تنسيق خانة الكتابة */
    .coupon-group input {
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        flex: 1; /* يخلي الخانة تاخد المساحة المتاحة */
    }

/* تنسيق الزرار */
.btn-apply {
    padding: 8px 15px;
    background-color: #333; /* لون الزرار (غيره براحتك) */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    /* لما الماوس يجي على الزرار */
    .btn-apply:hover {
        opacity: 0.9;
    }
/* =========================================
   تنسيقات صفحة طلباتي الجديدة (Modern UI)
   ========================================= */

/* حاوية الكروت */
.orders-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* تصميم الكارت نفسه */
.order-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .order-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.08);
        border-color: var(--accent-gold);
    }

/* رأس الكارت (رقم الطلب والحالة) */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.order-id {
    font-weight: 800;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .order-id i {
        color: var(--accent-gold);
    }

/* شارة الحالة (Status Badge) */
.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ألوان الحالات */
.status-pending {
    background: #fff3cd;
    color: #856404;
}
/* قيد المراجعة - أصفر */
.status-processing {
    background: #e3f2fd;
    color: #0d47a1;
}
/* قيد التجهيز - أزرق */
.status-completed {
    background: #d4edda;
    color: #155724;
}
/* منتهى - أخضر */
.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}
/* ملغى - أحمر */

/* تفاصيل المعلومات (التاريخ والسعر) */
.order-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #666;
}

.order-total-price {
    color: var(--accent-green); /* أو اللون الأخضر الأساسي عندك */
    font-weight: 900;
    font-size: 1.1rem;
}

/* زر التفاصيل (Accordion) */
details {
    margin-top: 15px;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

    details summary {
        padding: 12px 15px;
        cursor: pointer;
        font-weight: bold;
        color: #555;
        list-style: none; /* إخفاء السهم الافتراضي */
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: background 0.2s;
    }

        details summary:hover {
            background: #f0f0f0;
        }

        details summary::after {
            content: '\f078'; /* سهم لأسفل (FontAwesome) */
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            font-size: 0.8rem;
            transition: transform 0.3s;
        }

    details[open] summary::after {
        transform: rotate(180deg);
    }
/* صورة المنتج وهي طايرة */
.fly-item {
    position: fixed;
    z-index: 10000;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1); /* حركة ناعمة وسريعة */
    pointer-events: none; /* عشان متدوسش عليها بالغلط */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* اهتزاز أيقونة السلة لما المنتج يوصل */
.shake-cart {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(15deg);
    }
}

.products-list-text {
    padding: 15px;
    margin: 0;
    font-family: 'Almarai', sans-serif;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
    border-top: 1px solid #eee;
    white-space: pre-wrap; /* يحافظ على التنسيق والسطور */
}
/* تنسيق زر النسخ */
.copy-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
    padding: 5px;
    border-radius: 5px;
}

    .copy-btn:hover {
        color: #FF9D00; /* يلون برتقالي لما تقف عليه */
        background-color: rgba(0,0,0,0.05);
    }

    .copy-btn:active {
        transform: scale(0.9);
    }
/* --- تصميم كارت فودافون كاش --- */
.vodafone-card {
    background-color: #ffffff !important;
    border-top: 5px solid #E60000 !important; /* الخط الأحمر العلوي */
    border-radius: 15px;
    padding: 30px 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* ظل ناعم */
    text-align: center !important;
    margin: 20px auto !important;
    border-bottom: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    max-width: 100%;
}

/* النص العلوي */
.vf-header {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

    .vf-header i {
        color: #E60000; /* لون الأيقونة أحمر */
        margin-left: 5px;
    }

/* صندوق الرقم */
.vf-number-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fdf2f2; /* خلفية حمراء فاتحة جداً */
    border: 1px dashed #E60000;
    padding: 10px 20px;
    border-radius: 50px;
    width: fit-content;
    margin: 0 auto 10px auto;
}

#vfNumberText {
    color: #c62828;
    font-size: 1.4rem;
    font-weight: bold;
    font-family: sans-serif;
    letter-spacing: 1px;
}

/* زر النسخ */
.vf-copy-btn {
    background: white;
    border: 1px solid #e0e0e0;
    color: #555;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

    .vf-copy-btn:hover {
        background: #E60000;
        color: white;
        border-color: #E60000;
    }

/* رسالة النسخ */
#vfCopyMessage {
    color: #28a745;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* الليبل وحقل الإدخال */
.vf-label {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    margin-top: 20px;
    font-weight: bold;
}

.vf-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    background: #fafafa !important;
    transition: 0.3s;
    color: #333;
    font-weight: bold;
}

    .vf-input:focus {
        border-color: #E60000 !important;
        background: #fff !important;
        box-shadow: 0 0 0 4px rgba(230, 0, 0, 0.1);
        outline: none;
    }

.vf-note {
    display: block;
    margin-top: 8px;
    color: #888;
    font-size: 0.8rem;
}

/* زر التأكيد الجديد */
.vf-submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 25px;
    background: linear-gradient(45deg, #E60000, #ff4d4d); /* تدرج أحمر */
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3);
    transition: 0.3s;
}

    .vf-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(230, 0, 0, 0.4);
    }
/* 1. تثبيت البار السفلي فوق أي حاجة (تم تعديل الاسم لـ .mobile-bottom-nav) */
.mobile-bottom-nav {
    z-index: 9999 !important; /* رقم عالي جداً عشان يفضل فوق الكل */
    position: fixed !important; /* تثبيت إجباري */
    bottom: 0;
    width: 100%;
    display: flex !important; /* ضمان الظهور */
}

/* 2. عمل مسافة تحت في صفحة الطلبات عشان آخر طلب ميتغطاش بالبار */
/* استخدمنا ID الصفحة اللي عندك: #userOrdersPage */
#userOrdersPage {
    padding-bottom: 80px !important; /* مسافة بحجم البار السفلي */
    box-sizing: border-box; /* عشان المسافة تتحسب صح */
}
/* ================================================= */
/* تحسينات البار السفلي - للموبايل فقط (Mobile Only) */
/* ================================================= */

/* 1. الوضع الافتراضي: إخفاء البار تماماً على الكمبيوتر */
.mobile-bottom-nav {
    display: none !important;
}

/* 2. تطبيق التعديلات عند فتح الموقع من الموبايل فقط (أقل من 768px) */
@media (max-width: 768px) {

    /* إظهار البار وتثبيته فوق صفحة الطلبات */
    .mobile-bottom-nav {
        display: flex !important; /* إظهاره */
        z-index: 2147483647 !important; /* أعلى رقم Z-index ممكن عشان مفيش حاجة تغطيه */
        position: fixed !important;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: white; /* ضمان وجود خلفية عشان المحتوى ميبانش من وراه */
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }

    /* إضافة مسافة أسفل صفحة الطلبات في الموبايل عشان آخر طلب ميتغطاش */
    #userOrdersPage {
        padding-bottom: 90px !important; /* مسافة كافية للبار */
        box-sizing: border-box;
    }
}
/* --- تنسيق سطر الشحن المميز --- */
.shipping-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: bold;
}

.shipping-badge {
    background-color: #e8f5e9; /* خلفية خضراء فاتحة جداً */
    color: #2e7d32; /* نص أخضر غامق */
    padding: 6px 12px;
    border-radius: 20px; /* حواف دائرية */
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #c8e6c9;
}

    .shipping-badge i {
        font-size: 0.9rem;
    }

/* --- تنسيق ملاحظة الوزن الجديد --- */
.weight-note {
    background-color: #fff8e1; /* خلفية صفراء/برتقالية فاتحة جداً */
    color: #f57f17; /* نص برتقالي غامق */
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center; /* توسيط الكلام */
    gap: 8px;
    border: 1px dashed #ffe0b2; /* حدود متقطعة شكلها شيك */
    line-height: 1.4;
}

    .weight-note i {
        font-size: 1.1rem;
        color: #ffb300;
    }

/* تعديل بسيط للفاصل النهائي عشان الشكل يكون متناسق */
.totals-row.final {
    margin-top: 5px;
    border-top: 2px solid #eee;
    padding-top: 15px;
}
