@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #111111;
    color: #d4af37;
}

/* شريط التنقل الاحترافي */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 6%;
    background-color: #1a1a1a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* الشعار الدائري بألوان الأزرق والأحمر */
.circular-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #080808, #d4af37);
    color: #111;
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #d4af37;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.8rem;
    color: #b8942a;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 700;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #d4af37;
}

/* زر التواصل العلوي المطور */
button.nav-btn {
    background-color: #d4af37;
    color: #111111;
    border: none;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

button.nav-btn:hover {
    transform: translateY(-2px);
    background-color: #b8942a;
}

/* قائمة الأرقام المنبثقة الذكية */
.contact-popover {
    position: absolute;
    top: 75px;
    left: 6%;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-popover p {
    font-size: 0.85rem;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 5px;
}

.popover-link {
    text-decoration: none;
    color: #111111;
    background-color: #d4af37;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s;
}

.popover-link:hover {
    background-color: #b8942a;
}

.popover-link.red-link {
    background-color: #b8942a;
}

.popover-link.red-link:hover {
    background-color: #8a6e1e;
}

/* البانر الرئيسي الواجهة */
.hero {
    background: linear-gradient(rgba(17, 17, 17, 0.4), rgba(212, 175, 55, 0.4)), url('https://images.unsplash.com/photo-1556911220-e15b29be8c8f?q=80&w=1200') center/cover;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-overlay h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-overlay p {
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* تصميم المجموعات والبطاقات */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.main-group {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.group-title {
    font-size: 1.8rem;
    color: #d4af37;
    border-right: 5px solid #b8942a;
    padding-right: 12px;
    margin-bottom: 20px;
}

.sub-category-title {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 20px;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-card {
    width: 100%;
}

.product-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 15px;
    position: relative;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.2rem;
    color: #d4af37;
    margin-bottom: 8px;
}

.product-card p {
    font-size: 0.9rem;
    color: #666;
    height: 45px;
    overflow: hidden;
    margin-bottom: 15px;
}

/* شارات التمييز */
.badge {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #111111;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 700;
}
.badge.red { background-color: #b8942a; }
.badge.blue { background-color: #d4af37; }

/* زر شراء الواتساب */
.buy-btn {
    width: 100%;
    background-color: #d4af37;
    color: #111111;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.buy-btn:hover {
    background-color: #b8942a;
}

/* التذييل النظيف */
footer {
    background-color: #111520;
    color: #aaa;
    text-align: center;
    padding: 35px 20px;
    margin-top: 60px;
    font-size: 0.95rem;
    border-top: 4px solid #d4af37;
    line-height: 1.8;
}

.dev-credits span {
    color: #d4af37;
    font-weight: bold;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 2%;
    background-color: #1a1a1a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}








.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}




/* تصميم شارة التقييم */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d4af37;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 1rem;
    color: #111111;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    animation: pulse 2s infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* حركة النبض (Pulse) */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* تأثير عند مرور الماوس */
.rating-badge:hover {
    transform: scale(1.1);
    background: #b8942a;
}

body {
    margin: 0;
    padding: 0;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #111111;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
/* تنسيق خاص للتقييم الذي يفوق الوصف */
.special-rating {
    color: #d4af37;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    animation: pulse 2s infinite;
}


/* تأثير احترافي عند اختيار "يفوق الوصف" */
.fire-mode {
    border: 5px solid #d4af37 !important;
    box-shadow: 0 0 20px #d4af37, inset 0 0 20px #d4af37 !important;
    transition: all 0.5s ease;
}



#reviewsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px;
    padding: 20px;
    direction: rtl;
}

/* تنسيق شكل التقييم الواحد ليكون واضحاً */
.review-card {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(212, 175, 55, 0.1);
    border: 1px solid #2a2a2a;
}








/* تأكد أن الـ navbar لديه position relative */
.navbar {
    position: relative;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}
.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    border: 3px solid #d4af37;
}
.close-lightbox {
    position: absolute; top: 20px; right: 30px;
    color: white; font-size: 40px; cursor: pointer;
}


.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    z-index: 9999;
}
.lightbox-content { max-width: 80%; max-height: 60%; border: 3px solid #d4af37; }
.close-lightbox { position: absolute; top: 20px; right: 30px; font-size: 40px; color: white; cursor: pointer; }



.product-card img {
    cursor: pointer;
    transition: transform 0.3s;
}

.product-card img:hover {
    transform: scale(1.03);
}




/* حاوية للنوتس لترتيبها فوق بعضها بدون تداخل */
.hints-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.hint-note {
    background: #d4af37;
    color: #111111;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: 0.85rem;
    white-space: nowrap;
}


/* هذا يجعل الـ Lightbox دائماً فوق أي شيء آخر */
.lightbox {
    z-index: 999999 !important;
}

/* وهذا يضمن أن الـ hint-note لا تغطي الصور */
.hint-note {
    z-index: 10;
}




.contact-menu {
    display: none !important;
    position: absolute;
    top: 60px;
    right: 20px;
    z-index: 1000;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid #333;
}



/* هذا الكود يضمن أن القائمة مخفية عند فتح الموقع لأول مرة */
.contact-popover {
    display: none; 
    position: absolute;
}



.circular-logo {
    width: 100px;
    height: 100px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden; 
}


.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #1a1a1a;
}


.about-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.about-content {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 30px;
    border-radius: 20px;
    color: #d4af37;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(212, 175, 55, 0.37);
}

.about-content h2 { color: #d4af37; }
.close-btn { 
    background: none; border: none; color: white; 
    font-size: 24px; cursor: pointer; float: left; 
}


.update-notice {
    background: #1a1a1a;
    color: #d4af37;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 2px solid #d4af37;
    position: relative;
    z-index: 99;
}

.update-notice i {
    margin-left: 8px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}






/* --- تنسيق البطاقات (تعديل الصف الواحد) --- */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s;
}

.product-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1); }

.product-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    cursor: pointer;
}

.product-info { flex-grow: 1; }

.product-card h3 { font-size: 1.1rem; color: #d4af37; margin-bottom: 5px; }

.product-card p { font-size: 0.85rem; color: #888; }

.buy-btn {
    background-color: #d4af37;
    color: #111;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* --- عناصر التقييمات --- */
#reviewsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px;
    padding: 20px;
}

.review-card {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s;
}

/* --- المودال واللايت بوكس --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content { max-width: 80%; max-height: 80%; border: 3px solid #d4af37; }

/* --- التذييل --- */
footer {
    background-color: #111520;
    color: #aaa;
    text-align: center;
    padding: 35px 20px;
    margin-top: 60px;
    border-top: 4px solid #d4af37;
}

.update-notice {
    background: #1a1a1a;
    color: #d4af37;
    text-align: center;
    padding: 8px 0;
    border-bottom: 2px solid #d4af37;
}








/* إنشاء طبقة النجوم */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000000 url('https://www.transparenttextures.com/patterns/stardust.png');
    
    /* أضف السطر ده لتكبير النجوم */
    /* كل ما تقلل الرقم، حجم النجوم بيكبر (يعني تعمل زوم) */
    background-size: 3500px; 
    
    animation: moveStars 100s linear infinite;
}

/* حركة النجوم */
@keyframes moveStars {
    from { background-position: 0 0; }
    to { background-position: 10000px 5000px; }
}

body {
    background-color: #fdc304 !important; /* خليتها #111111 عشان تليق مع النجوم */
    background-image: none !important;
}
















.my-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 45px;
    color: #ffe600;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    /* إضافة انتقال ناعم للحركة */
    transition: all 0.4s ease; 
}

/* تأثير الـ Hover */
.my-signature:hover {
    color: #ffffff;              /* تغميق اللون */
    transform: scale(1.7);    /* تكبير الكلمة قليلاً لعمل فوكس */
    text-shadow: 1 0 10px rgba(255, 255, 255, 0.3); /* إضافة ظلال خفيفة لبروز الكلمة */
}



/* كلاس المنتج الأساسي */
.product-card {
    transition: all 0.4s ease;
    border: 1px solid #333;
    background: #111;
}

/* تأثير الوهج عند الماوس */
.product-card:hover {
    transform: scale(1.05);
    /* وهج برتقالي/أحمر ناري */
    box-shadow: 0 0 15px #ff4500, 0 0 30px #ff4500;
    border-color: #ff8c00;
}





















.search-section {
    max-width: 700px;
    margin: 20px auto;
    padding: 0 20px;
    position: relative;
    z-index: 90;
}
.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    border: 2px solid #d4af37;
    border-radius: 30px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
    transition: box-shadow 0.3s;
}
.search-box:focus-within { box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4); }
.search-box i.fa-search { color: #d4af37; font-size: 1.1rem; }
.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #eee;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    text-align: right;
}
.search-box input::placeholder { color: #888; }
.clear-search { color: #888; cursor: pointer; font-size: 1.1rem; transition: color 0.2s; }
.clear-search:hover { color: #d4af37; }
.search-results-count { text-align: center; color: #888; font-size: 0.9rem; margin-top: 10px; }
.no-results-box {
    text-align: center;
    background: #1a1a1a;
    border: 2px dashed #d4af37;
    border-radius: 15px;
    padding: 25px 20px;
    margin-top: 15px;
}
.no-results-box p { color: #eee; font-size: 1.05rem; margin-bottom: 15px; }
.no-results-box #missingProductName { color: #d4af37; font-weight: bold; }
.no-results-btn { max-width: 350px; margin: 0 auto; }
.product-card.search-hidden { display: none !important; }
.products-grid.search-hidden { display: none !important; }
.main-group.search-hidden { display: none !important; }








