﻿/* الإعدادات العامة للخطوط والخلفيات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f8fc; /* خلفية مائلة للأزرق الفاتح جداً متناسقة مع اللوجو */
    color: #1e293b;
}

/* القائمة العلوية والشعار */
/* القائمة العلوية المحسنة */
/* تنسيق القائمة العلوية المطورة */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 10px 4%;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.08); 
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-wrapper {
    background: #ffffff;
    padding: 3px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.logo-img {
    height: 120px;
    width: 120px;  
    object-fit: cover;
    border-radius: 50%;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #114ca1;
    line-height: 1.1;
}

.logo-subtext {
    font-size: 12px;
    color: #ffcb05;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* تنسيق صندوق البحث المتوافق مع ألوان اللوجو */
.search-container {
    flex: 1;
    max-width: 450px;
}

.search-form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    padding: 3px 6px 3px 15px;
    transition: all 0.3s ease;
}

.search-form:focus-within {
    border-color: #1a73e8;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(26, 115, 232, 0.15);
}

.search-input {
    border: none;
    background: transparent;
    padding: 8px 10px;
    width: 100%;
    font-size: 14px;
    outline: none;
    color: #1e293b;
}

.search-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
}

/* روابط التنقل */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #114ca1;
}

/* أدوات المستخدم (أيقونات الحساب والسلة) */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* تخصيص زر الحساب بالأزرق الملكي الخفيف */
.account-link {
    background: #f0f6fe;
    color: #114ca1;
}

.account-link:hover {
    background: #1a73e8;
    color: #ffffff;
}

/* تخصيص زر السلة بالأحمر المرجاني الخفيف المستوحى من اللوجو */
.cart-link {
    background: #fff0f1;
    color: #ff4757;
    position: relative;
}

.cart-link:hover {
    background: #ff4757;
    color: #ffffff;
}

.action-icon {
    font-size: 18px;
}

.action-text {
    font-size: 14px;
}

.cart-count {
    background: #ff4757;
    color: white;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: bold;
}

.cart-link:hover .cart-count {
    background: white;
    color: #ff4757;
}
.account-dropdown {
    position: relative;
    display: inline-block;
}

/* تنسيق القائمة المنسدلة الافتراضي (مخفية) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    min-width: 190px;
    box-shadow: 0 10px 25px rgba(26, 115, 232, 0.15); /* ظلال زرقاء خفيفة متناسقة مع اللوجو */
    border-radius: 12px;
    padding: 10px 0;
    margin-top: 10px;
    list-style: none;
    z-index: 1000;
    border: 1px solid #e2e8f0;
    
    /* تأثير اختفاء وظهور ناعم */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* مثلث صغير ديكوري أعلى القائمة المنسدلة */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 25px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
}

/* إظهار القائمة المنسدلة بسلاسة عند تمرير الماوس فوق زر حسابي */
.account-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* تنسيق روابط القائمة الداخلية */
.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* تأثير تمرير الماوس على خيارات المنيو */
.dropdown-menu li a:hover {
    background-color: #f0f6fe; /* خلفية زرقاء خفيفة تناسب ألوان الهوية */
    color: #114ca1;
}

/* خط فاصل بين الخيارات وزر تسجيل الخروج */
.dropdown-menu .divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 6px 0;
}

/* تمييز زر تسجيل الخروج باللون الأحمر المرجاني من اللوجو */
.dropdown-menu li a.logout-btn {
    color: #ff4757;
}

.dropdown-menu li a.logout-btn:hover {
    background-color: #fff0f1;
    color: #d63031;
}

/* 📱 دعم شاشات الهواتف المحمولة */
@media (max-width: 600px) {
    /* تجنب خروج المنيو عن حافة الشاشة في الجوال */
    .dropdown-menu {
        right: auto;
        left: -50px;
    }
    .dropdown-menu::before {
        right: auto;
        left: 65px;
    }
}
/* 📱 تحسينات التجاوب الشاملة للهواتف المحمولة */
@media (max-width: 992px) {
    .navbar {
        flex-wrap: wrap;
        padding: 15px 4%;
    }
    
    /* إنزال صندوق البحث لسطر منفصل في الشاشات الصغيرة لراحة تصفح أكبر */
    .search-container {
        order: 4;
        flex-basis: 100%;
        max-width: 100%;
        margin-top: 5px;
    }
    
    .nav-links {
        order: 3;
    }
}

@media (max-width: 600px) {
    .navbar {
        justify-content: space-between;
    }
    
    .nav-links {
        flex-basis: 100%;
        justify-content: center;
        order: 2;
        margin: 10px 0;
        background: #f8fafc;
        padding: 10px;
        border-radius: 10px;
    }
    
    .user-actions {
        order: 1;
    }
    
    .action-text {
        display: none; /* إخفاء النص المكتوب والاعتماد على الأيقونات فقط في الهواتف لتوفير مساحة */
    }
    
    .action-item {
        padding: 10px;
    }
}
.cart-icon {
    font-size: 20px;
    cursor: pointer;
    background: #e6f0fa;
    padding: 10px 18px;
    border-radius: 25px;
    color: #114ca1;
    font-weight: bold;
}

/* تحسينات التجاوب المخصصة للهواتف لحماية وضوح اللوجو */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 5%;
    }
    
    .logo-container {
        flex-direction: column; /* ترتيب رأسي مريح للعين على شاشات الموبايل */
        text-align: center;
        gap: 8px;
    }

    .logo-img {
        height: 85px; /* حجم أكبر قليلاً على الموبايل ليظل واضحاً وسهل القراءة */
        width: 85px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-links a {
        margin: 0 5px;
        font-size: 14px;
    }
}
.cart-icon {
    font-size: 20px;
    cursor: pointer;
    background: #e6f0fa;
    padding: 10px 18px;
    border-radius: 25px;
    color: #114ca1;
    font-weight: bold;
}

/* القسم الرئيسي (الخلفية متدرجة من أزرق اللوجو) */
.hero {
    background: linear-gradient(135deg, #114ca1, #1a73e8);
    padding: 90px 5%;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #ffcb05; /* استخدام اللون الأصفر الخاص بالبالون والنصوص في اللوجو */
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    color: #f1f5f9;
}
/* تنسيق حاوية السلايدر الرئيسي */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 450px; /* ارتفاع مناسب ومريح للعين */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

/* تنسيق السلايد الفردي */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    color: #ffffff;
    
    /* إخفاء السلايدات غير النشطة بصورة ناعمة */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* محتوى النصوص داخل السلايد */
.slide-content {
    max-width: 600px;
    text-align: right;
}

.slide-badge {
    display: inline-block;
    background: #ffcb05; /* الأصفر الدافئ من اللوجو */
    color: #114ca1;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
}

.slide-content h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slide-content p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #f8fafc;
}

/* زر السلايد الأبيض الجذاب */
.btn-slider {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffffff;
    color: #114ca1;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-slider:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* الأشكال التعبيرية الجانبية الكبيرة */
.slide-graphic {
    font-size: 100px;
    user-select: none;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
    animation: floatAnimation 4s ease-in-out infinite; /* حركة طفو لطيفة */
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* أسهم التحكم اليدوي (يمين ويسار) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover { background: rgba(255, 255, 255, 0.4); }
.slider-arrow.prev { right: 20px; }
.slider-arrow.next { left: 20px; }

/* نقاط المؤشر السفلي */
.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: #ffcb05; /* تلوين النقطة النشطة بالأصفر */
    transform: scale(1.2);
}

/* 📱 تجاوب السلايدر بالكامل على الجوال */
@media (max-width: 768px) {
    .hero-slider-container { height: 380px; }
    .slide { flex-direction: column; justify-content: center; text-align: center; padding: 0 40px; }
    .slide-content { text-align: center; }
    .slide-content h1 { font-size: 26px; }
    .slide-content p { font-size: 14px; }
    .slide-graphic { display: none; } /* إخفاء الإيموجي الكبير على الموبايل لتوفير مساحة */
    .slider-arrow { width: 35px; height: 35px; font-size: 14px; }
}

/* زر جذاب باللون الأصفر الملكي للوجو */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: #ffcb05; 
    color: #114ca1;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(255, 203, 5, 0.4);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    background-color: #e5b604;
    box-shadow: 0 8px 25px rgba(255, 203, 5, 0.6);
}

/* العناوين والتصميم الشبكي المتجاوب */
.section-title {
    text-align: center;
    margin: 50px 0 30px;
    color: #114ca1;
    font-size: 28px;
    font-weight: 700;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
    gap: 30px;
    padding: 0 5%;
    margin-bottom: 50px;
}

/* بطاقات الأقسام والمنتجات */
.category-card {
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(26, 115, 232, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(26, 115, 232, 0.1);
    border-color: #ffcb05; /* تحديد الحواف بالأصفر عند الماوس لإعطاء طابع تفاعلي */
}

/*.product-img {
    font-size: 65px;
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
    hei_ght: 80px;
    lin_e-height: 70px;
}

.price {
    color: #ff4757;*/ /* الأحمر المرجاني المأخوذ من كلمة Party باللوجو */
    /*font-weight: 700;
    font-size: 22px;
    margin: 15px 0;
}*/

/* زر أضف للسلة باللون الأزرق المعتمد */
/*.add-to-cart {
    background-color: #1a73e8;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #114ca1;
}*/

/* تنسيق الفوتر الرئيسي المحسن */
.main-footer {
    background-color: #114ca1; /* الأزرق الملكي من لوجو المتجر الأساسي */
    color: #ffffff;
    padding: 60px 5% 20px;
    margin-top: 60px;
    border-top: 5px solid #ffcb05; /* شريط علوي بلون اللوجو الأصفر */
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h3 {
    color: #ffcb05; /* الأصفر الدافئ للعناوين */
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    font-weight: 700;
}

/* خط ديكوري صغير تحت عناوين الفوتر */
.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: #ffcb05;
    border-radius: 2px;
}

/* جزء النبذة والشعار */
.about-widget .footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.f-logo-text {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.f-logo-subtext {
    font-size: 13px;
    color: #ffcb05;
    font-weight: 700;
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    color: #e2e8f0;
    text-align: justify;
}

/* القوائم والروابط */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.footer-column ul li a {
    color: #f1f5f9;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* تأثير تمرير الماوس على الروابط الهامة */
.footer-column ul li a:hover {
    color: #ffcb05;
    padding-right: 5px; /* حركة ارتداد بسيطة لليمين عند التأشير */
}

.contact-widget ul li {
    gap: 10px;
    color: #f1f5f9;
}

.contact-widget ul li a {
    color: #f1f5f9;
}

/* أيقونات وسائل التواصل الاجتماعي */
.social-widget p {
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #ffcb05; /* تتحول للأصفر عند التمرير */
    transform: translateY(-5px);
}

/* شريط الحقوق السفلي */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #cbd5e1;
}

/* 📱 تجاوب الفوتر على الشاشات الصغيرة والهواتف */
@media (max-width: 768px) {
    .main-footer {
        padding: 40px 5% 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr; /* عرض الأقسام رأسياً فوق بعضها لسهولة القراءة */
        text-align: center;
        gap: 30px;
    }
    
    .footer-column h3::after {
        right: 50%;
        transform: translateX(50%); /* التوسيط الدقيق للخطوط الديكورية على الموبايل */
    }
    
    .footer-column ul li {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* دعم شاشات الهواتف المحمولة والتابلت (Responsive) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 20px 5%;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-links a {
        margin: 0 5px;
        font-size: 15px;
    }

    .hero h1 {
        font-size: 30px;
    }
    
    .hero p {
        font-size: 15px;
    }
}
.shop-container {
    display: flex;
    padding: 30px 5%;
    gap: 30px;
}
.sidebar {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    height: fit-content;
}
.filter-group {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.filter-group h4 { color: #114ca1; margin-bottom: 5px; }

.shop-sort {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
}
.shop-sort select { padding: 8px; border-radius: 5px; border: 1px solid #ccc; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}
.badge.sale { background: #ff4757; }
.badge.new { background: #ffcb05; color: #114ca1; }
.old-price { text-decoration: line-through; color: #aaa; font-size: 15px; margin-left: 5px; }

@media (max-width: 768px) {
    .shop-container { flex-direction: column; }
    .sidebar { order: 2; }
    .products-grid-section { order: 1; }
}

.cart-page-container { display: flex; padding: 40px 5%; gap: 40px; }
.cart-items { flex: 2; background: #fff; padding: 25px; border-radius: 15px; }
.cart-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px solid #eee; margin-top: 15px;
}
.item-info { display: flex; align-items: center; gap: 15px; }
.item-avatar { font-size: 40px; background: #f0f4f8; padding: 10px; border-radius: 10px; }
.item-qty button { width: 30px; height: 30px; border: 1px solid #ccc; background: #fff; cursor: pointer; border-radius: 5px; font-weight: bold; }
.item-qty span { margin: 0 10px; font-weight: bold; }
.remove-btn { background: none; border: none; color: #ff4757; cursor: pointer; font-weight: 600; }
.checkout-summary { flex: 1; background: #fff; padding: 25px; border-radius: 15px; height: fit-content; }
.summary-row { display: flex; justify-content: space-between; margin: 12px 0; }
.summary-row.total { font-weight: bold; color: #114ca1; font-size: 18px; }
.checkout-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.checkout-form input { padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; }
.checkout-btn { width: 100%; text-align: center; background: #ffcb05; color: #114ca1; border: none; cursor: pointer; margin-top: 10px; }

@media (max-width: 900px) {
    .cart-page-container { flex-direction: column; }
}
.contact-container { display: flex; padding: 50px 5%; gap: 50px; align-items: center; }
.contact-info-box { flex: 1; }
.contact-info-box h2 { color: #114ca1; margin-bottom: 15px; }
.contact-info-box p { line-height: 1.7; color: #555; margin-bottom: 25px; }
.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-weight: 600; color: #2d3748; }
.contact-form-box { flex: 1; background: #fff; padding: 30px; border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.contact-form-box h3 { color: #114ca1; margin-bottom: 20px; }
.contact-form-box form { display: flex; flex-direction: column; gap: 15px; }
.contact-form-box input, .contact-form-box textarea { padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; }
.send-btn { background: #1a73e8; color: #fff; padding: 12px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.send-btn:hover { background: #114ca1; }

@media (max-width: 768px) {
    .contact-container { flex-direction: column; text-align: center; }
    .info-item { justify-content: center; }
}
/* واجهة الصفحة الرئيسية */
.about-hero {
    background: linear-gradient(135deg, #114ca1, #1a73e8); /* ألوان اللوجو الملكية */
    padding: 70px 5%;
    text-align: center;
    color: #ffffff;
}

.about-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: #ffcb05; /* الأصفر الدافئ من الشعار */
    margin-bottom: 10px;
}

.about-hero p {
    font-size: 16px;
    color: #f1f5f9;
}

/* قسم قصة المتجر والرسالة */
.about-section {
    padding: 60px 8%;
    background: #ffffff;
}

.about-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 2;
}

.about-text h2 {
    color: #114ca1;
    font-size: 26px;
    margin-bottom: 20px;
    position: relative;
}

.about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 15px;
    text-align: justify;
}

.about-graphic {
    flex: 1;
    font-size: 110px;
    text-align: center;
    user-select: none;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    animation: bounceAbout 3s ease-in-out infinite;
}

@keyframes bounceAbout {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* قسم القيم والرؤية */
.values-section {
    background-color: #f4f8fc;
    padding: 60px 5%;
}

.values-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.04);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: #ffcb05;
}

.value-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.value-card h3 {
    color: #114ca1;
    font-size: 20px;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
}

/* قسم الإحصائيات والأرقام */
.stats-section {
    background: linear-gradient(135deg, #ff4757, #ff6b81); /* الأحمر المرجاني من اللوجو */
    padding: 40px 5%;
    color: #ffffff;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: #ffcb05; /* ذهبي أصفر مبهج */
    margin-bottom: 5px;
}

.stat-label {
    font-size: 15px;
    font-weight: 600;
}

/* 📱 تحسينات التجاوب التام للهواتف المحمولة */
@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
        text-align: center;
    }
    .about-graphic {
        display: none; /* إخفاء الإيموجي على الجوالات لتوفير مساحة مريحة للقراءة */
    }
    .about-hero h1 {
        font-size: 28px;
    }
    .stats-container {
        flex-direction: column;
        gap: 25px;
    }
}
@media (max-width: 767px) {

    /* 1. القائمة العلوية والشعار */
    header, .nav-container {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .nav-links {
        display: none; /* إخفاء القائمة العادية وتحويلها لقائمة منسدلة لاحقاً */
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

        .nav-links li {
            margin: 10px 0;
        }

    /* 2. السلايدر الرئيسي (البانر) */
    .slider-item {
        padding: 20px 10px;
        text-align: center;
    }

        .slider-item h1 {
            font-size: 1.8rem; /* تصغير حجم الخط ليناسب الموبايل */
        }

        .slider-item p {
            font-size: 1rem;
        }

    /* 3. قسم "تسوق حسب القسم" */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr); /* عرض قسمين في كل صف بدلاً من 3 */
        gap: 10px;
        padding: 10px;
    }

    /* 4. شبكة المنتجات (المنتجات المميزة) */
  

    /* 5. تذييل الصفحة (Footer) */
    footer .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .footer-section {
        width: 100% !important;
    }
}

/* شاشات التابلت المتوسطة (بين 768 و 1024 بكسل) */
@media (min-width: 768px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
img {
    max-width: 100%;
    height: auto;
}
/* إخفاء زر الموبايل تلقائياً على الشاشات الكبيرة */
.hamburger-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 767px) {
    .hamburger-btn {
        display: block; /* إظهار الزر على الموبايل فقط */
    }

    .nav-links {
        display: none; /* إخفاء القائمة افتراضياً على الموبايل */
        position: absolute;
        top: 60px; /* اضبط المسافة حسب ارتفاع الهيدر لديك */
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
    }

        /* الكلاس الذي سيتم إضافته بواسطة الجافا سكريبت لإظهار القائمة */
        .nav-links.active {
            display: flex;
        }
}
.auth-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .auth-links a {
        text-decoration: none;
        font-weight: bold;
        font-size: 14px;
        transition: all 0.3s ease;
    }

/* زر الدخول */
.login-btn {
    color: #4A4A4A;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #E0E0E0;
}

/* زر إنشاء حساب - بلون مبهج يناسب البراند */
.register-btn {
    background-color: #FF5E86; /* لون وردي مبهج يناسب ألعاب الحفلات والهدايا */
    color: #FFFFFF !important;
    padding: 8px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(255, 94, 134, 0.2);
}

/* التأثير عند تمرير الماوس */
.login-btn:hover {
    background-color: #F5F5F5;
}

.register-btn:hover {
    background-color: #E04D73;
    transform: translateY(-1px);
}

/* تعديلات مخصصة لشاشات الموبايل (أقل من 768 بكسل) */
@media (max-width: 767px) {
    .auth-links {
        width: 100%;
        justify-content: center; /* توسيط الأزرار في منتصف شاشة الموبايل */
        padding: 10px;
        box-sizing: border-box;
    }

        .auth-links a {
            flex: 1; /* جعل الزرين متساويين في الحجم على الموبايل */
            text-align: center;
            padding: 11px 0; /* زيادة المساحة الرأسية ليسهل النقر */
            font-size: 15px; /* تكبير الخط قليلاً للموبايل */
        }
}
.featured-products-section {
    padding: 60px 20px;
    direction: rtl;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
}

    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 4px;
        background-color: var(--primary-pink);
        margin: 10px auto 0;
        border-radius: 2px;
    }

/* شبكة المنتجات المتجاوبة تلقائياً */


/* تصميم بطاقة المنتج الإحترافية */
.product-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.01);
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(255, 71, 126, 0.12);
    }
/* شارة الخصم الثابتة */
.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e0366b;
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-image-wrapper {
    background-color: #f8f9fa;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.product-image-placeholder {
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.6;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    color: var(--gray-text);
    font-weight: 600;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.5;
    height: 48px;
    overflow: hidden;
}

.product-price-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 0.95rem;
    color: #a0aec0;
    text-decoration: line-through;
}


.new-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-pink);
}



/* زر أضف إلى السلة المتفاعل */
.add-to-cart-btn {
    width: 100%;
    background-color: #e0366b;
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    margin-top: auto; /* يدفع الزر لأسفل البطاقة دائماً ليصبح على استقامة واحدة مع باقي البطاقات */
}

    

.cart-icon {
    font-size: 1.1rem;
}

/* التجاوب الذكي المخصص للموبايل والتابلت (أقل من 768 بكسل) */
@media (max-width: 767px) {
    .section-title {
        font-size: 21px;
        margin-bottom: 20px;
    }
    /* عرض منتجين متجاورين في الصف بدلاً من التكدس الطولي لحفظ مساحة التصفح */
    .products-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 5px;
    }

    .product-img-holder {
        height: 140px; /* تقليص ارتفاع الصورة لتناسب شاشات الموبايل الصغيرة */
    }

    .product-info-block {
        padding: 10px;
    }

    .product-item-name {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .current-price {
        font-size: 15px;
    }

    .old-price {
        font-size: 11px;
    }

    .add-to-cart-action-btn {
        padding: 8px;
        font-size: 12px;
        border-radius: 8px;
    }
    .discount-tag {
        position: absolute;
        top: 15px;
        right: 15px;
        background: #e0366b;
        color: white;
        padding: 4px 14px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 700;
        z-index: 2;
    }
    .discount-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: #e0366b;
        color: white;
        padding: 4px 14px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 700;
        z-index: 2;
    }
}
/* تنسيق الحاوية الرئيسية والصف */
.grid-container {
    width: 100%;
    padding: 20px 10px;
    box-sizing: border-box;
    direction: rtl; /* دعم المحاذاة والترتيب العربي */
}

.row {
    display: flex;
    justify-content: space-between; /* توزيع مساحات متساوية بين العناصر */
    gap: 10px; /* مسافة أمان صغيرة لمنع التصاق الكروت */
}

/* تنسيق الكروت الفردية لتصبح بجانب بعضها */
.category-card {
    flex: 1; /* إجبار العناصر الثلاثة على تقاسم عرض الشاشة بالتساوي */
    text-align: center;
    background: #ffffff;
    padding: 15px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border: 1px solid #f0f0f0;
}

/* ضبط حجم النصوص لتلائم شاشات الموبايل الضيقة دون مشاكل */
@@media (max-width: 767px) {
    .category-card h5 {
        font-size: 15px; /* تصغير عنوان القسم ليظهر في سطر واحد */
        margin-top: 5px !important;
        font-weight: bold;
    }

    .category-card p {
        font-size: 13px; /* تصغير السطر الوصفي */
        margin: 0;
    }

    .category-card i {
        font-size: 2.8rem !important; /* تقليص حجم الأيقونة قليلاً لتناسب الموبايل */
    }
}
.categories-section {
    padding: 60px 20px;
    background-color: var(--bg-light);
    direction: rtl; /* دعم الترتيب العربي من اليمين لليسار */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
}

    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 4px;
        background-color: var(--primary-color);
        margin: 10px auto 0;
        border-radius: 2px;
    }

/* شبكة عرض مرنة تتكيف تلقائياً مع حجم الشاشة دون الحاجة لـ Media Queries كثيرة */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* تصميم بطاقات الأقسام */
.category-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    /* تأثير حركي جمالي عند مرور الماوس */
    .category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-color);
    }

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #111;
}

.category-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1; /* توحيد ارتفاع البطاقات تلقائياً */
}

.product-count {
    font-size: 0.85rem;
    background-color: rgba(255, 71, 126, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}
.features-section {
    background-color: #fbf6f7; /* درجة الخلفية الوردية الهادئة والناعمة كما في الصورة */
    padding: 45px 20px; /* مسافات داخلية متوازنة عمودياً وأفقياً */
    direction: rtl; /* تنسيق الترتيب العربي من اليمين لليسار */
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* توزيع العناصر بالتساوي والتحول لعمود واحد تلقائياً في الشاشات الصغيرة */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; /* المسافة الأفقية الفاصلة بين الميزات الثلاثة */
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ضبط حجم ولون الأيقونات لتبدو رشيقة ومطابقة للصورة بدلاً من الضخامة */
.feature-icon i {
    font-size: 2.2rem; /* حجم الأيقونة المثالي والمطابق للصورة */
    color: var(--brand-primary, #ff477e); /* لون الهوية الوردي الخاص بـ Party Land */
    display: block;
    margin-bottom: 12px; /* المسافة الفاصلة أسفل الأيقونة مباشرة */
}

/* تنسيق العناوين الرئيسية */
.feature-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #4a4a4a; /* درجة اللون الرمادي الداكن المريحة للعين */
    margin: 0 0 4px 0; /* مسافة صغيرة جداً تفصلها عن الوصف بالأسفل */
}

/* تنسيق النصوص الفرعية أو الوصف */
.feature-desc {
    font-size: 0.9rem;
    color: #8a8a8a; /* درجة الرمادي الفاتح للنصوص الثانوية */
    margin: 0;
}





























.main-universal-header {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* --- الشعار --- */
.header-brand-block {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.brand-text-group {
    display: flex;
    flex-direction: column;
}

.main-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a4f9c; /* الأزرق الملكي من الشعار */
    line-height: 1.2;
}

.sub-title {
    font-size: 12px;
    font-weight: 700;
    color: #ffb703; /* الذهبي الفرعي */
}

/* --- قائمة التنقل المكتبي (Desktop) --- */
.nav-links-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

.nav-item {
    text-decoration: none;
    color: #444444;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 4px;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
}

    .nav-item:hover, .nav-item.active {
        color: #ff477e; /* وردي الحفلات */
        border-color: #ff477e;
    }

/* --- صندوق البحث --- */
.header-search-bar-zone {
    flex-grow: 1;
    max-width: 450px;
}

.search-inner-form {
    display: flex;
    align-items: center;
    background-color: #f5f6f9;
    border: 1px solid #eef0f5;
    border-radius: 50px;
    padding: 0 15px;
    height: 40px;
    transition: all 0.3s ease;
}

    .search-inner-form:focus-within {
        border-color: #ff477e;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(255, 71, 126, 0.08);
    }

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #333;
}

.search-submit-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
    padding: 0;
}

/* --- أزرار الحساب والسلة --- */
.header-user-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.circle-action-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s ease;
}

    .circle-action-link:hover {
        transform: scale(1.05);
    }

.account-link {
    background-color: #f0f4fa;
    color: #1a4f9c;
}

.cart-link {
    background-color: #ffeef2;
    color: #ff477e;
}

.cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: #ff477e;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- زر الهمبرغر الافتراضي (مخفي في الديسكتوب) --- */
.mobile-menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    cursor: pointer;
    padding: 0;
}

    .mobile-menu-toggle-btn span {
        width: 100%;
        height: 2.5px;
        background-color: #333;
        border-radius: 2px;
    }


/* ========================================================
           قواعد الاستجابة للشاشات الصغيرة والموبايل (Responsive Queries)
           ======================================================== */

@media (max-width: 991px) {
    /* نقل صندوق البحث لسطر لوحده أسفل العناصر لعدم التزاحم */
    .header-container {
        flex-wrap: wrap;
        padding: 10px 10px;
    }

    .header-search-bar-zone {
        order: 3; /* يرمي صندوق البحث للاسفل */
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
    }
    /* إظهار زر فتح القائمة */
    .mobile-menu-toggle-btn {
        display: flex;
    }
    /* تحويل القائمة العلوية الأفقية إلى قائمة منسدلة عمودية (Drawer) */
    .header-navigation-menu {
        position: absolute;
        top: 100%;
        right: -100%; /* مخفية تماماً خارج الشاشة في البداية */
        width: 260px;
        background-color: #ffffff;
        box-shadow: -5px 10px 15px rgba(0,0,0,0.05);
        height: calc(100vh - 60px);
        transition: right 0.3s ease-in-out;
        padding: 20px;
        border-top: 1px solid #f0f0f0;
    }
        /* كلاس الفتح بالتفعيل من الجافا سكريبت */
        .header-navigation-menu.open {
            right: 0; /* تظهر بسلاسة عند الضغط على الزر */
        }

    .nav-links-list {
        flex-direction: column;
        gap: 15px;
    }

    .nav-item {
        display: block;
        padding: 10px 5px;
        font-size: 15px;
        border-bottom: none;
        border-right: 3px solid transparent;
    }

        .nav-item:hover, .nav-item.active {
            border-right-color: #ff477e;
            padding-right: 10px;
        }
}

@media (max-width: 480px) {
    /* تقليص إضافي بسيط ليناسب الشاشات الصغيرة والضيقة جداً */
    .brand-text-group {
        display: none; /* إخفاء اسم المتجر النصي والاكتفاء باللوجو الرسومي على الهواتف الصغيرة لمنع الاكتظاظ */
    }

    .brand-img {
        width: 70px;
        height: 70px;
    }
}
.discount-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e0366b;
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}