/* ----------------- المتغيرات الأساسية المستوحاة من هوية الشعار ----------------- */
:root {
    /* الألوان الأساسية المطابقة للشعار المرفق */
    --bg-color: #080808; /* خلفية داكنة جداً تتطابق مع الشعار */
    --text-color: #f8fafc; /* لون نص فاتح لضمان الوضوح التام */
    --accent-color: #f2a6b6; /* اللون الوردي المستخرج من نص الشعار (نوڤا) */
    
    /* متغيرات تأثير الزجاج (Glassmorphism) بلمسة وردية */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(242, 166, 182, 0.15); /* حدود زجاجية تعكس لون الشعار */
    --glass-blur: 15px;
    
    /* سرعة الحركات والتفاعلات */
    --transition-speed: 0.3s;
}

/* ----------------- الإعدادات العامة (Global Reset) ----------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden; 
    min-height: 100vh;
    scroll-behavior: smooth; 
}

a {
    text-decoration: none;
    color: inherit;
}

/* ----------------- تخصيص شريط التمرير (Scrollbar) بهوية المتجر ----------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}


















/* ================= الفقرة 2: تصميم الهيدر العائم (Capsule Header) ================= */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 50px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-speed) ease;
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-color);
}

.logo h1 span {
    color: var(--accent-color); 
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color var(--transition-speed) ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-icons button {
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icons button svg {
    stroke: var(--text-color);
    transition: stroke var(--transition-speed) ease;
}

.header-icons button:hover {
    transform: scale(1.1); 
}

.header-icons button:hover svg {
    stroke: var(--accent-color); 
}

.cart-badge {
    position: absolute;
    top: -5px;
    left: -8px; /* التعديل هنا: left بدلاً من right لتناسب الاتجاه العربي وتمنع التداخل */
    background-color: var(--accent-color);
    color: var(--bg-color); 
    font-size: 12px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(242, 166, 182, 0.4); 
}

/* ================= استجابة الشاشات الصغيرة (Mobile Responsive) للهيدر ================= */
.mobile-only {
    display: none; 
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex; 
    }

    .nav-links {
        position: absolute;
        top: 80px; 
        left: 5%;
        width: 90%;
        background: var(--glass-bg);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        display: none; 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active-menu {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .logo h1 {
        font-size: 22px; 
    }

    .glass-header {
        padding: 0 15px; 
        width: 95%;
    }
    
    .header-icons {
        gap: 12px; 
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}










/* ================= الفقرة 3: تصميم الشريط السفلي (الفوتر) ================= */
.footer-section {
    background-color: rgba(242, 166, 182, 0.02); /* خلفية داكنة جداً مع لمسة وردية لا تكاد تُرى */
    border-top: 1px solid var(--glass-border);
    padding: 60px 5% 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-inline: auto;
}

.footer-brand h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 15px;
}

.footer-brand h2 span {
    color: var(--accent-color);
}

.footer-brand p {
    color: #a0aec0;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 20px;
}

.footer-links h3, .footer-contact h3 {
    color: var(--text-color);
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* التموضع من اليمين بسبب اللغة العربية */
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 5px;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links ul li, .footer-contact ul li {
    margin-bottom: 15px;
}

.footer-links a, .footer-contact li {
    color: #a0aec0;
    transition: all var(--transition-speed) ease;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 8px; /* حركة انسيابية بسيطة عند تمرير الماوس */
}

/* تنسيق أيقونات التواصل الاجتماعي */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-speed) ease;
}

.social-icons a svg {
    fill: var(--text-color); /* لون الأيقونة أبيض افتراضياً */
    transition: fill var(--transition-speed) ease;
}

.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(242, 166, 182, 0.4);
}

.social-icons a:hover svg {
    fill: var(--bg-color); /* يتغير لون الأيقونة للداكن عند التمرير لتبرز */
}

/* تنسيق أيقونات معلومات الاتصال (الهاتف، البريد، الموقع) */
.footer-contact svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-color);
}

/* الحقوق السفلية */
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--glass-border);
    color: #a0aec0;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.developer-name {
    color: var(--accent-color);
    font-weight: 800;
}










/* ================= الفقرة 3.5: شريط التنقل السفلي للتطبيقات (Bottom Nav) ================= */
.bottom-nav-bar {
    display: none; /* إخفاء الشريط في شاشات اللاب توب */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 8, 0.9); /* خلفية داكنة جداً مع قليل من الشفافية */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 10px 0;
    padding-bottom: env(safe-area-inset-bottom, 10px); /* لدعم الشاشات الحديثة للايفون */
}

/* تفعيل الشريط فقط في شاشات الجوال */
@media (max-width: 768px) {
    .bottom-nav-bar {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}    
    
    

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #a0aec0; /* لون رمادي باهت للحالة العادية */
    transition: all var(--transition-speed) ease;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    stroke: #a0aec0;
    transition: stroke var(--transition-speed) ease, transform 0.2s ease;
}

.nav-item span {
    font-size: 11px;
    font-weight: 600;
}

/* تأثير التفعيل (Active) وتمرير الماوس باللون الوردي الخاص بنوڤا */
.nav-item.active, .nav-item:hover {
    color: var(--accent-color);
}

.nav-item.active svg, .nav-item:hover svg {
    stroke: var(--accent-color);
    transform: translateY(-2px);
}

.cart-icon-wrapper {
    position: relative;
}

.bottom-cart-badge {
    position: absolute;
    top: -4px;
    left: -6px; /* متوافق مع الاتجاه العربي */
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-size: 10px;
    font-weight: 800;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(242, 166, 182, 0.4);
}








/* ================= الفقرة 4: تصميم الواجهة الترحيبية (Hero Section) ================= */
.hero-section {
    position: relative;
    min-height: 100vh; /* في اللاب توب تأخذ الشاشة كاملة */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(242, 166, 182, 0.05) 0%, var(--bg-color) 70%);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(242, 166, 182, 0.05);
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
    max-width: 800px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: -80px; 
    animation: slideUp 0.8s ease-out;
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.4;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(242, 166, 182, 0.4);
}

.hero-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #a0aec0;
    margin-bottom: 10px;
}

.cta-button { display: none; } /* زر مخفي */

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), transparent);
    filter: blur(70px);
    z-index: 1;
    animation: float 8s infinite ease-in-out;
}

.shape-1 { width: 350px; height: 350px; top: -10%; right: -5%; opacity: 0.15; }
.shape-2 { width: 250px; height: 250px; bottom: 5%; left: -5%; opacity: 0.1; animation-delay: 3s; }

/* استجابة الشاشات الصغيرة للواجهة الترحيبية */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto; /* الحل السحري: إيقاف الـ 100vh في الجوال */
        padding-top: 130px; /* مساحة آمنة للهيدر العلوي */
        padding-bottom: 10px; /* تقليل المسافة السفلية للصفر تقريباً */
    }
    .glass-panel {
        padding: 35px 20px;
        margin-top: 0; /* إلغاء المارجن السالب في الجوال */
    }
    .hero-content h2 { font-size: 26px; }
    .hero-content p { font-size: 15px; }
}

@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.05); } 100% { transform: translateY(0) scale(1); } }


/* ================= الفقرة 4.5: تصميم لافتات العروض المدمجة والنافذة المنبثقة ================= */
.highlights-section {
    padding: 0 20px 40px;
    max-width: 600px;
    margin: 20px auto 40px; 
    position: relative;
    z-index: 20;
}

.banners-container {
    display: flex;
    flex-direction: column;
    gap: 12px; 
}

.banner-card {
    display: flex;
    flex-direction: row; 
    align-items: center;
    padding: 15px 20px;
    border-radius: 16px;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.banner-card:hover { transform: scale(1.03) translateX(-5px); }

.card-new { background: linear-gradient(135deg, #d4af37, #f2a6b6); }
.card-discount { background: linear-gradient(135deg, #ff0844, #ffb199); }
.card-event { background: linear-gradient(135deg, #8e2de2, #4a00e0); }

.banner-icon {
    flex-shrink: 0; width: 50px; height: 50px;
    background: rgba(255, 255, 255, 0.25); 
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-left: 15px; 
}

.banner-icon svg { width: 26px; height: 26px; stroke: #ffffff; fill: none; stroke-width: 2; }
.banner-text { flex-grow: 1; }
.banner-text h3 { font-size: 18px; font-weight: 800; margin-bottom: 3px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.banner-text p { font-size: 13px; line-height: 1.4; opacity: 0.95; margin: 0; }
.hidden-btn { display: none !important; }

/* استجابة اللافتات لشاشات الجوال */
@media (max-width: 768px) {
    .highlights-section {
        margin-top: 10px; /* التصاق ممتاز بالواجهة الترحيبية */
        margin-bottom: 80px; /* مساحة لعدم التداخل مع شريط التطبيق السفلي */
    }
}

/* --- تصميم النافذة المنبثقة (Modal) --- */
.custom-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(8, 8, 8, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 9999; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease;
}
.custom-modal.show-modal { display: flex; opacity: 1; }
.custom-modal .modal-content {
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px;
    padding: 30px; width: 90%; max-width: 400px; position: relative; text-align: center;
    transform: translateY(-50px); transition: transform 0.3s ease;
}
.custom-modal.show-modal .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 15px; right: 20px; color: var(--text-color); font-size: 28px; font-weight: bold; cursor: pointer; transition: color 0.2s ease; }
.close-modal:hover { color: var(--accent-color); }
.modal-title { color: var(--accent-color); font-size: 24px; font-weight: 800; margin-bottom: 15px; margin-top: 10px; }
.modal-desc { color: var(--text-color); font-size: 16px; line-height: 1.6; margin-bottom: 25px; }
.modal-action-btn { background: var(--accent-color); color: var(--bg-color); padding: 10px 25px; border-radius: 30px; font-weight: 800; display: inline-block; transition: transform 0.2s ease; }
.modal-action-btn:hover { transform: scale(1.05); }







/* ================= الفقرة 5: تصميم نافذة الحساب (دخول + ملف شخصي) ================= */
.login-panel {
    max-width: 380px !important;
    padding: 40px 30px !important;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

/* الكود الذي نسيته سابقاً وتسبب في كبر حجم الأيقونات */
.input-group svg {
    position: absolute;
    right: 18px;
    width: 20px;
    height: 20px;
    stroke: #a0aec0;
    transition: stroke var(--transition-speed) ease;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 14px 20px 14px 20px;
    padding-right: 48px;
    color: var(--text-color);
    font-size: 15px;
    outline: none;
    transition: all var(--transition-speed) ease;
    font-family: inherit;
}

.input-group input:focus {
    border-color: var(--accent-color);
    background: rgba(242, 166, 182, 0.05);
    box-shadow: 0 0 10px rgba(242, 166, 182, 0.1);
}

.input-group:focus-within svg {
    stroke: var(--accent-color);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-color), #d4af37);
    color: var(--bg-color);
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(242, 166, 182, 0.4);
}

/* تنسيقات الملف الشخصي */
.user-avatar {
    width: 80px;
    height: 80px;
    background: rgba(242, 166, 182, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.user-avatar svg {
    width: 40px;
    height: 40px;
}

.user-info-list {
    text-align: right;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.info-item {
    margin-bottom: 12px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item span {
    color: var(--accent-color);
    font-size: 13px;
    display: block;
    margin-bottom: 3px;
}

.info-item p {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.logout-btn {
    background: transparent;
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.logout-btn:hover {
    background: #ff4d4d;
    color: white;
}








/* ================= الفقرة 6: تنسيق السلة والعملات (CSS الكامل) ================= */
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8, 8, 8, 0.6); backdrop-filter: blur(5px);
    z-index: 1001; opacity: 0; visibility: hidden; transition: 0.3s;
}
.cart-overlay.show { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed; top: 0; left: -100%; width: 100%; max-width: 400px;
    height: 100vh; background: rgba(15, 15, 15, 0.98);
    border-right: 1px solid var(--glass-border); z-index: 1002;
    display: flex; flex-direction: column; transition: left 0.4s ease;
}
.cart-drawer.open { left: 0; }

.cart-header { display: flex; justify-content: space-between; padding: 25px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cart-header h3 { color: var(--text-color); font-size: 20px; }
.close-cart { font-size: 30px; cursor: pointer; color: #888; }

.cart-items { flex-grow: 1; padding: 20px; overflow-y: auto; }
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 10px; }

.cart-footer { padding: 25px 20px; border-top: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.3); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-weight: 800; }

.dual-total { display: flex; gap: 8px; font-size: 16px; }
.price-sar { color: #d4af37; }
.price-yer { color: var(--accent-color); }

.checkout-btn {
    width: 100%; background: linear-gradient(135deg, var(--accent-color), #d4af37);
    color: var(--bg-color); border: none; padding: 16px; border-radius: 50px;
    font-size: 18px; font-weight: 800; cursor: pointer; transition: 0.3s;
}
.checkout-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(242,166,182,0.4); }







/* ================= الفقرة 7: تنسيق الأبعاد والاحترافية (CSS الكامل) ================= */

/* العنوان الرئيسي للمتجر */
.main-section-title {
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 900;
    text-align: center;
    margin: 60px 0 40px;
    color: var(--text-color);
    width: 100%;
}
.main-section-title span { color: var(--accent-color); }

/* شبكة الأقسام وتكبير البطاقات */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.category-card {
    min-height: 420px; 
    padding: 0 !important;
    border-radius: 25px !important;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.01) !important;
}

.cat-img-wrapper { height: 320px; overflow: hidden; }
.cat-image { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.category-card:hover .cat-image { transform: scale(1.1); }

.cat-details {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    text-align: center;
}

.cat-label { font-size: 18px; font-weight: 800; margin-bottom: 15px; color: #fff; }

/* أزرار الأقسام البيضاوية الشفافة */
.shop-glass-btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}
.shop-glass-btn:hover { background: var(--accent-color); color: var(--bg-color); border-color: var(--accent-color); }

/* نافذة ملء الشاشة */
.full-screen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}
.modal-nav {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.back-btn {
    background: transparent;
    border: none;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.modal-nav h2 { flex-grow: 1; text-align: center; color: var(--text-color); font-size: 22px; }

/* النوافذ المنبثقة المدمجة والشفافة */
.pro-detail-modal, .confirm-final-modal {
    width: 95%;
    max-width: fit-content; 
    min-width: 320px;
    padding: 30px !important;
    background: rgba(255, 255, 255, 0.01) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(242, 166, 182, 0.1) !important;
    text-align: right;
    border-radius: 30px;
}

/* القوائم المنسدلة */
.nova-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 14px;
    border-radius: 15px;
    margin: 10px 0;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

.dynamic-desc-box {
    background: rgba(242, 166, 182, 0.05);
    padding: 15px;
    border-radius: 15px;
    margin: 15px 0;
    border-right: 4px solid var(--accent-color);
    display: none; 
    font-size: 13px;
    line-height: 1.6;
}

.price-display-area { display: none; margin-top: 15px; }

/* بطاقة المنتج داخل القسم */
.products-container { padding: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product-card-v2 { background: rgba(255, 255, 255, 0.02); padding: 15px; border-radius: 20px; border: 1px solid var(--glass-border); text-align: center; }

.confirm-actions-row { display: flex; gap: 10px; margin-top: 25px; }
.final-add-btn { flex: 2; padding: 12px !important; }
.cancel-btn { flex: 1; background: transparent; border: 1px solid #444; color: #888; border-radius: 50px; cursor: pointer; font-weight: 600; }

@media (max-width: 768px) {
    .products-container { grid-template-columns: 1fr 1fr; gap: 12px; }
}





/* ================= الفقرة 8: تصميم قسم العروض الملكية المطور (CSS الكامل) ================= */

.offers-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.offer-card {
    position: relative;
    border-radius: 25px !important;
    padding: 40px !important;
    overflow: hidden;
    transition: 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.offer-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(242, 166, 182, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* شارات العروض (Badges) */
.offer-badge-v8 {
    position: absolute;
    top: 20px;
    left: -35px;
    background: linear-gradient(135deg, var(--accent-color), #d4af37);
    color: var(--bg-color);
    padding: 5px 40px;
    font-size: 11px;
    font-weight: 900;
    transform: rotate(-45deg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.highlight-badge { background: linear-gradient(135deg, #d4af37, #f1c40f); }
.timer-badge { background: linear-gradient(135deg, #ff4d4d, #c0392b); }

.offer-content-v8 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* الأيقونات الملكية */
.offer-icon-v8 {
    width: 45px;
    height: 45px;
    stroke: #d4af37; /* ذهبي للعروض الملكية */
    margin-bottom: 20px;
    opacity: 0.8;
}
.offer-icon-v8.accent { stroke: var(--accent-color); }

.offer-title-v8 {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, var(--text-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.offer-desc-v8 {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 25px;
    line-height: 1.6;
    height: 40px; /* توحيد الارتفاع */
    overflow: hidden;
}

/* تنسيق العداد التنازلي الملكي (Countdown) */
.countdown-wrapper-v8 {
    width: 100%;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.timer-label {
    font-size: 11px;
    color: var(--accent-color);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.timer-display-v8 {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    color: #fff;
}

.time-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}

.time-num {
    font-size: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 5px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.time-text {
    font-size: 8px;
    color: #888;
    margin-top: 2px;
    text-transform: uppercase;
}

/* تأثير التنبيه الأحمر عند اقتراب الوقت */
.red-alert-v8 .timer-label,
.red-alert-v8 .price-sar,
.red-alert-v8 .time-num {
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

/* تنسيق الأسعار المزدوجة */
.offer-prices-v8 {
    margin-bottom: 25px;
}

.old-price {
    font-size: 14px;
    color: #777;
    text-decoration: line-through;
    display: block;
    margin-bottom: 5px;
}

.new-prices {
    font-size: 20px;
    font-weight: 900;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.offer-btn-v8 {
    width: 100% !important;
    font-size: 14px;
    padding: 12px !important;
}

@media (max-width: 768px) {
    .offers-grid { grid-template-columns: 1fr; }
    .offer-card { padding: 30px !important; }
}