/* إعدادات الخطوط والصفحة العامة وتصميم يدعم العربية RTL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #faf7f2; /* درجة دافئة مستوحاة من أكياس الكرافت */
    color: #2b170c; /* بني غامق جداً ومحمص للنصوص */
    line-height: 1.6;
    text-align: right;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* شريط الإشعارات العلوي */
.delivery-bar {
    background-color: #2d1508; /* بني غامق محمص */
    color: #faf7f2;
    text-align: center;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
}

/* الهيدر وقائمة التنقل */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-area h1 {
    font-size: 24px;
    color: #2d1508;
    font-weight: 800;
}

.logo-area h1 span {
    font-size: 14px;
    color: #bfa37a; /* درجة ذهبية فاخرة متناسقة */
    display: block;
    font-weight: 400;
    margin-top: -4px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #2b170c;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 15px;
}

.main-nav a:hover {
    color: #bfa37a;
}

/* قسم البنر الرئيسي والبطولة وحماس مباريات كأس العالم */
.hero-section {
    background-image: url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&q=80&w=1200'); /* صورة خلفية افتراضية معبرة للقهوة وعمقها */
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0;
    color: #ffffff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 21, 8, 0.8); /* ماسك بني غامق دافئ للدمج */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.world-cup-badge {
    background-color: #dfa837; /* لون ذهبي لامع للأجواء الرياضية حماس البطولة */
    color: #2d1508;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.hero-section h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.4;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 300;
    color: #f1eae2;
}

/* الأزرار العامة المتميزة */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    border: none;
}

.btn-primary {
    background-color: #bfa37a;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #a88d65;
    transform: translateY(-2px);
}

.btn-facebook {
    background-color: #1877f2;
    color: white;
    margin-top: 15px;
}

.btn-facebook:hover {
    background-color: #145dbf;
}

/* قسم مميزات وعناصر البراند */
.features-section {
    padding: 50px 0;
    background-color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 20px;
}

.feature-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2d1508;
}

.feature-card p {
    font-size: 14px;
    color: #66554c;
}

/* قسم المنتجات والكتالوج المنظم المحدث */
.products-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #2d1508;
    margin-bottom: 5px;
}

.section-subtitle {
    text-align: center;
    font-size: 15px;
    color: #66554c;
    margin-bottom: 40px;
}

/* كتل ومجموعات التصنيفات */
.category-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(45, 21, 8, 0.03);
}

.category-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d1508;
    border-right: 5px solid #bfa37a;
    padding-right: 12px;
    margin-bottom: 25px;
}

.sub-cat-title {
    font-size: 16px;
    font-weight: 700;
    color: #66554c;
    margin-bottom: 15px;
    background: #fdfaf5;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* شبكة توزيع الكروت الاحترافية المجمعة */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* كارت المنتج المتميز */
.product-card {
    border: 1px solid #eeebe5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    position: relative;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(45, 21, 8, 0.06);
    border-color: #d9c3b0;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #2d1508;
    color: #faf7f2;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.product-badge.accent {
    background-color: #bfa37a;
}

.product-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2d1508;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-card .desc {
    font-size: 13px;
    color: #66554c;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* منطقة التسعير والتحكم في الوزن والأسعار الديناميكية */
.pricing-area {
    background-color: #fdfaf5;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.pricing-area label {
    font-size: 12px;
    font-weight: 600;
    color: #66554c;
    display: block;
    margin-bottom: 5px;
}

.weight-select {
    width: 100%;
    padding: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #2d1508;
    border: 1px solid #d9c3b0;
    border-radius: 4px;
    background-color: #ffffff;
    outline: none;
    cursor: pointer;
}

.price-display {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #2d1508;
    text-align: left;
}

.price-val {
    font-size: 20px;
    color: #bfa37a;
    font-weight: 800;
}

/* زر إرسال الطلب عبر واتساب */
.btn-order {
    background-color: #25d366; /* لون اخضر واتساب للطلب السريع الصريح */
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    text-align: center;
}

.btn-order:hover {
    background-color: #1ebd58;
}

/* تنسيق المنتجات التي تطلق قريباً جداً */
.product-card.upcoming {
    background-color: #faf9f6;
    border-style: dashed;
    border-color: #d9c3b0;
    opacity: 0.85;
}

.upcoming-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #66554c;
    color: #ffffff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.pricing-area-disabled {
    background-color: #f4f2ee;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    color: #8c7b72;
    margin-bottom: 15px;
    font-weight: 600;
}

/* قسم عن البراند ونطاق التوصيل بالقاهرة */
.about-section {
    padding: 60px 0;
    background-color: #2d1508;
    color: #ffffff;
}

.about-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #bfa37a;
}

.about-text p {
    font-size: 15px;
    color: #d9c3b0;
    margin-bottom: 15px;
}

.about-text strong {
    color: #ffffff;
    background: rgba(191, 163, 122, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

/* الفوتر ومعلومات الهاتف والجروب الفيس بوك */
.main-footer {
    background-color: #1a0c05;
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
}

.main-footer h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #bfa37a;
}

.main-footer p {
    font-size: 14px;
    color: #a89488;
    margin-bottom: 15px;
}

.contact-numbers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.phone-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    background-color: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(191, 163, 122, 0.3);
    transition: all 0.2s ease;
}

.phone-link:hover {
    background-color: #bfa37a;
    color: #2d1508;
}

.copyright {
    margin-top: 30px !important;
    font-size: 12px !important;
    color: #665349 !important;
}

/* زر واتساب العائم الاحترافي المباشر لخدمة عملاء القاهرة */
.whatsapp-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.whatsapp-floating:hover {
    transform: scale(1.05);
    background-color: #1ebd58;
}

/* تحسين التوافقية والتجاوب مع الهواتف الذكية والأجهزة المختلفة */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        gap: 12px;
    }
    .hero-section h2 {
        font-size: 26px;
    }
    .hero-section p {
        font-size: 15px;
    }
    .category-block {
        padding: 15px;
    }

}
    @media (max-width: 768px) {
    /* ... (الأكواد القديمة اللي هنا سيبها زي ما هي) ... */
    
    .cart-modal-content {
        padding: 15px; /* تقليل الهوامش الداخلية على الموبايل */
    }
    
    .cart-items-list {
        max-height: 150px; /* تقليل ارتفاع قائمة المنتجات عشان نموذج البيانات يظهر براحته */
    }
}
/* إعدادات الصور الجديدة عشان تطلع متناسقة ومقاسها مظبوط */
.product-image {
    width: 100%;
    height: 250px;
    object-fit: contain; /* عشان الكيس يبان بالكامل ومش مقطوع */
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #fcf9f5;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
/* ==========================================================================
   إضافات وتنسيقات منظومة سلة المشتريات الفاخرة لكوفي ليون
   ========================================================================== */

/* زر السلة العائم السريع */
.cart-floating-btn {
    position: fixed;
    bottom: 90px; /* ليكون فوق زر الواتساب العائم */
    left: 20px;
    background-color: #2d1508;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(45,21,8,0.25);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    border: 2px solid #bfa37a;
}

.cart-floating-btn:hover {
    transform: scale(1.1);
    background-color: #1a0c05;
}

/* شارة عداد المنتجات الحمراء */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dfa837;
    color: #2d1508;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px;
    border: 1px solid #ffffff;
}

/* النافذة المنبثقة للسلة (Modal Back) */
.cart-modal {
    display: none; /* مخفي افتراضياً ويتم إظهاره عبر الجافاسكريبت */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 21, 8, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

/* صندوق المحتوى الداخلي للسلة */
/* صندوق المحتوى الداخلي للسلة */
.cart-modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh; /* يمنع السلة إنها تتخطى حجم الشاشة */
    overflow-y: auto; /* بيشغل السكرول للمحتوى الزايد */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* زر الإغلاق علامة اكس */
.close-cart {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #a89488;
    cursor: pointer;
    transition: color 0.2s;
}

.close-cart:hover {
    color: #2d1508;
}

.cart-modal-content h3 {
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #fdfaf5;
    padding-bottom: 10px;
    color: #2d1508;
}

/* قائمة العناصر المضافة */
.cart-items-list {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-left: 5px;
}

/* عنصر منتج فردي داخل السلة */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eeebe5;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-info strong {
    font-size: 15px;
    color: #2d1508;
}

.item-info span {
    font-size: 12px;
    color: #66554c;
}

.item-price-details {
    color: #bfa37a !important;
    font-weight: 700;
}

/* أزرار التحكم في زيادة ونقص الكميات */
.item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fdfaf5;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #d9c3b0;
}

.item-controls button {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #2d1508;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.item-controls button:hover {
    background-color: #eeebe5;
}

.item-controls span {
    font-size: 14px;
    font-weight: 700;
    min-width: 15px;
    text-align: center;
}

/* ملخص الفاتورة وزر التشييك */
.cart-summary {
    border-top: 2px solid #fdfaf5;
    padding-top: 15px;
}

.total-price-row {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: left;
}

.total-price-row strong {
    font-size: 22px;
    color: #bfa37a;
}

.btn-checkout {
    background-color: #25d366;
    color: white;
    width: 100%;
    border: none;
    padding: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-checkout:hover {
    background-color: #1ebd58;
}
/* ==========================================================================
   تنسيقات قسم الإسبريسو حبوب المتميز (المنتج المتصدر)
   ========================================================================== */

/* حاوية لتوسيط المنتج بالكامل في منتصف الصفحة */
.featured-product-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    width: 100%;
}

/* كارت المنتج المتصدر بحجم أكبر وتصميم بارز عن البقية */
.product-card.featured-product {
    width: 100%;
    max-width: 460px; /* العرض الافتراضي أكبر ليعطي طابع الصدارة */
    border: 2px solid #bfa37a; /* إطار ذهبي ملوكي خاص بهذا المنتج */
    box-shadow: 0 8px 25px rgba(45, 21, 8, 0.08);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card.featured-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(45, 21, 8, 0.12);
}

/* صورة المنتج المتصدر بحجم أكبر وممركزة بالكامل */
.product-image.featured-image {
    height: 320px; /* تم تكبير الارتفاع ليصبح 320px بدلاً من 250px للكروت العادية */
    object-fit: contain;
    margin-bottom: 20px;
}

/* تنسيق لافتة الخصم للكميات الكبيرة */
.discount-banner {
    background-color: #fdfaf5;
    border: 1px dashed #bfa37a;
    color: #2d1508;
    text-align: center;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    margin: 15px 0;
}
/* ==========================================================================
   تنسيقات نموذج بيانات العميل داخل السلة
   ========================================================================== */
.customer-details-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #eeebe5;
}

.customer-details-form input,
.customer-details-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9c3b0;
    border-radius: 6px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: #2d1508;
    background-color: #fdfaf5;
    outline: none;
    transition: all 0.3s ease;
}

.customer-details-form input::placeholder,
.customer-details-form textarea::placeholder {
    color: #a89488;
}

.customer-details-form input:focus,
.customer-details-form textarea:focus {
    border-color: #bfa37a;
    box-shadow: 0 0 5px rgba(191, 163, 122, 0.4);
    background-color: #ffffff;
}

.customer-details-form textarea {
    resize: vertical;
    min-height: 70px;
}