/* ==========================================
   إعدادات عامة
   ========================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f8fc;
    color: #333333;
    margin: 0;
    padding: 0;
    direction: ltr;
    text-align: left;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================
   الشريط العلوي (Top Bar)
   ========================================== */
.top-bar {
    background-color: #6b0185;
    color: #ffffff;
    font-size: 13px;
    padding: 8px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.top-bar span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.top-bar i { color: #ffffff; font-size: 14px; }
.top-bar .separator { color: #ffffff; font-weight: bold; opacity: 0.8; }

/* ==========================================
   شريط العنوان الرئيسي (Header)
   ========================================== */
.main-header {
    background-color: #ffffff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.logo-container { display: flex; align-items: center; gap: 15px; }
.site-logo { width: 65px; height: 65px; object-fit: contain; }
.brand-title { margin: 0; font-family: 'Georgia', serif; font-size: 30px; color: #6b0185; font-weight: bold; font-style: italic; }
.brand-subtitle { margin: 2px 0 0 0; font-size: 12px; color: #6b0185; }

/* شريط البحث */
.search-container {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    width: 320px;
}
.search-input { border: none; padding: 10px 15px; font-size: 14px; outline: none; width: 100%; color: #333; }
.search-input::placeholder { color: #aaa; }
.search-btn { background-color: #6b0185; border: none; color: #ffffff; padding: 10px 16px; cursor: pointer; font-size: 15px; transition: 0.3s; }
.search-btn:hover { background-color: #520165; }

/* أدوات الاتصال */
.contact-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: #6b0185; }
.contact-title { font-weight: bold; font-size: 13px; margin-bottom: 2px; }
.contact-detail { display: flex; align-items: center; gap: 6px; font-weight: bold; font-size: 13px; text-decoration: none; color: #6b0185; transition: 0.2s ease; }
.whatsapp-icon { color: #25D366; font-size: 15px; }
.email-icon { color: #6b0185; font-size: 13px; }
.email-text { font-size: 11px; font-weight: normal; }
.whatsapp-link:hover { color: #25D366; transform: translateX(3px); }
.email-link:hover { color: #a103c5; transform: translateX(3px); }

/* عربة التسوق */
.cart-container { display: flex; flex-direction: column; align-items: center; color: #6b0185; cursor: pointer; transition: 0.3s; }
.cart-container:hover { opacity: 0.75; }
.cart-icon-wrapper { position: relative; }
.cart-icon { font-size: 24px; }
.cart-badge { position: absolute; top: -8px; right: -10px; background-color: #e5b353; color: #3d004d; font-size: 11px; font-weight: bold; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cart-label { font-size: 12px; font-weight: bold; margin-top: 2px; }

.mobile-toggle { display: none; background: none; border: none; font-size: 24px; color: #6b0185; cursor: pointer; }

/* ==========================================
   شريط القائمة الرئيسي (Navbar)
   ========================================== */
.main-navbar { background-color: #6b0185; padding: 0 40px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 25px; }
.nav-menu li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; color: #ffffff; text-decoration: none; padding: 14px 10px; font-size: 14px; font-weight: bold; transition: color 0.3s; }
.nav-link:hover { color: #e5b353; }
.home-box { background-color: #e5b353; color: #3d004d !important; padding: 10px 14px; border-radius: 6px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.2s, background-color 0.2s; }
.home-box:hover { background-color: #f5c463; transform: scale(1.05); }
.icon-fire { color: #ff5722; font-size: 14px; }
.icon-gold { color: #e5b353; font-size: 14px; }

.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: #ffffff; min-width: 200px; box-shadow: 0 8px 16px rgba(0,0,0,0.15); list-style: none; padding: 8px 0; margin: 0; border-radius: 0 0 8px 8px; z-index: 1000; }
.dropdown-menu li a { color: #6b0185; padding: 10px 20px; text-decoration: none; display: block; font-size: 13px; transition: background-color 0.2s, color 0.2s; }
.dropdown-menu li a:hover { background-color: #f7f8fc; color: #a103c5; font-weight: bold; }
.dropdown:hover .dropdown-menu { display: block; }
.highlight-promo { color: #ffffff; }

/* ==========================================
   البانر البانورامي (Immersive Hero)
   ========================================== */
.hero-banner-immersive {
    width: 100%;
    background-color: #2a0035;
    overflow: hidden;
    line-height: 0;
}

.hero-immersive-container {
    max-width: 100%;
    position: relative;
    display: inline-block;
    width: 100%;
}

.immersive-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 18 / 7;
}

.overlay-discover-btn {
    position: absolute;
    left: 15.3%;
    bottom: 18%;
    width: 20%;
    height: 12%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0);
    border-radius: 30px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.overlay-discover-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(229, 179, 83, 0.4);
}

/* ==========================================
   قسم المنتجات (Products Section)
   ========================================== */
.products-section { max-width: 1200px; margin: 50px auto; padding: 0 20px; text-align: center; }
.section-title { color: #6b0185; font-size: 32px; margin-bottom: 5px; font-weight: bold; }
.section-subtitle { color: #666; font-size: 15px; margin-bottom: 40px; }

.category-title-box { background-color: #f0e6f5; padding: 10px 20px; border-radius: 8px; text-align: left; margin-bottom: 20px; border-left: 5px solid #6b0185; }
.category-title-box h3 { margin: 0; color: #6b0185; font-size: 20px; display: flex; align-items: center; gap: 10px; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; justify-content: center; min-height: 50px; }
.product-card { background-color: #ffffff; border-radius: 16px; padding: 20px; box-shadow: 0 5px 20px rgba(107, 1, 133, 0.06); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; align-items: center; border: 1px solid #f0e6f5; position: relative; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(107, 1, 133, 0.12); }

.promo-card { border: 2px solid #e5b353; }
.badge-promo { position: absolute; top: 15px; right: 15px; background: #ff5722; color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: bold; }

.product-img-box { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; background-color: #faf8fc; border-radius: 12px; }
.product-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-name { font-size: 16px; color: #333333; font-weight: bold; margin: 10px 0 5px 0; text-align: center; }
.product-price { font-size: 18px; color: #6b0185; font-weight: bold; margin-bottom: 15px; }
.old-price { text-decoration: line-through; color: #999; font-size: 14px; margin-right: 5px; }

.btn-buy { background-color: #e5b353; color: #ffffff; border: none; padding: 10px 20px; border-radius: 20px; font-weight: bold; font-size: 14px; cursor: pointer; transition: 0.3s; width: 80%; text-align: center; }
.btn-buy:hover { background-color: #d4a042; }

/* ==========================================
   نافذة النصائح المنبثقة (Conseils Modal)
   ========================================== */
.conseils-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.conseils-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.conseils-modal-content {
    padding: 30px;
    overflow-y: auto;
    position: relative;
}

.close-conseils {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #6b0185;
    cursor: pointer;
    font-weight: bold;
}

.conseils-container-popup {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 15px;
}

.conseils-box {
    background: #fdfbfd;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(107, 1, 133, 0.05);
    border: 1px solid #f0e6f5;
}

.conseils-box h2 {
    color: #6b0185;
    font-size: 19px;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.conseils-box p {
    color: #444;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.conseils-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.conseils-box ul li {
    font-size: 13px;
    color: #333;
    padding: 5px 0;
    font-weight: 500;
}

.conseils-footer-text {
    font-size: 12px;
    color: #666;
    font-style: italic;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

/* التنسيق الخاص بالجانب العربي (من اليمين لليسار) */
.ar-side {
    background: linear-gradient(135deg, #ffffff 0%, #fbf7ff 100%);
    border-color: #e5b353;
    text-align: right;
}

.ar-side h2 {
    justify-content: flex-end;
}

.ar-side ul {
    text-align: right;
}

.conseils-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.conseils-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   قسم النشرة البريدية (Newsletter)
   ========================================== */
.newsletter-section { background-color: #6b0185; color: #fff; padding: 50px 20px; text-align: center; margin-top: 60px; }
.newsletter-container { max-width: 600px; margin: 0 auto; }
.newsletter-container h2 { font-size: 28px; margin-bottom: 10px; }
.newsletter-container p { font-size: 14px; opacity: 0.9; margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { flex: 1; padding: 12px; border-radius: 25px; border: none; outline: none; }
.newsletter-form button { background: #e5b353; color: #fff; border: none; padding: 12px 25px; border-radius: 25px; font-weight: bold; cursor: pointer; }

/* ==========================================
   قسم الميزات (Features Bar)
   ========================================== */
.features-bar {
    max-width: 1200px;
    margin: 50px auto 40px auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid #f0f0f0;
}
.feature-item { display: flex; align-items: center; gap: 15px; color: #6b0185; }
.feature-item i { font-size: 32px; color: #6b0185; }
.feature-item strong { display: block; font-size: 15px; color: #1a1a1a; font-weight: bold; }
.feature-item p { margin: 3px 0 0 0; font-size: 13px; color: #888; }

/* ==========================================
   عربة التسوق الجانبية (Cart Drawer)
   ========================================== */
.cart-drawer { position: fixed; top: 0; right: -400px; width: 350px; height: 100%; background: #fff; box-shadow: -5px 0 15px rgba(0,0,0,0.1); z-index: 2000; transition: 0.3s ease; display: flex; flex-direction: column; }
.cart-drawer.active { right: 0; }
.cart-header { background: #6b0185; color: #fff; padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { margin: 0; font-size: 18px; }
.close-cart { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.cart-body { padding: 20px; flex: 1; overflow-y: auto; }
.empty-cart-msg { text-align: center; color: #888; margin-top: 40px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding: 10px 0; }
.btn-remove { background: none; border: none; color: red; font-size: 18px; cursor: pointer; }
.cart-footer { padding: 20px; border-top: 1px solid #eee; }
.cart-total { display: flex; justify-content: space-between; font-weight: bold; font-size: 18px; margin-bottom: 15px; }
.btn-checkout { display: block; background: #25D366; color: #fff; text-align: center; padding: 12px; border-radius: 25px; text-decoration: none; font-weight: bold; }
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1999; display: none; }
.cart-overlay.active { display: block; }

/* ==========================================
   الفوتر (Footer)
   ========================================== */
.main-footer { background: #2a0035; color: #fff; padding-top: 50px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding: 0 20px 40px 20px; }
.footer-brand { color: #e5b353; font-family: 'Georgia', serif; font-size: 24px; margin-top: 0; }
.social-links { display: flex; gap: 10px; margin-top: 15px; }
.social-links a { width: 35px; height: 35px; background: rgba(255,255,255,0.1); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: 0.3s; }
.social-links a:hover { background: #e5b353; color: #2a0035; }
.footer-col h4 { color: #e5b353; margin-top: 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #ddd; text-decoration: none; font-size: 14px; }
.footer-col ul li a:hover { color: #e5b353; }
.footer-bottom { background: #1f0028; text-align: center; padding: 15px; font-size: 13px; color: #aaa; }

/* ==========================================
   التجاوب مع الهواتف (Responsive)
   ========================================== */
@media (max-width: 900px) {
    .main-header { flex-wrap: wrap; gap: 15px; }
    .search-container { order: 3; width: 100%; margin-top: 10px; }
    .mobile-toggle { display: block; }
    .main-navbar { display: none; padding: 10px; }
    .main-navbar.active { display: block; }
    .nav-menu { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 768px) {
    .immersive-banner-img {
        aspect-ratio: auto;
        min-height: 250px;
    }
    .overlay-discover-btn {
        left: 15.3%;
        bottom: 15%;
        width: 21%;
        height: 14%;
    }
    .features-bar {
        padding: 15px;
        border-radius: 12px;
    }
}