/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: #333; /* الأسود الأساسي للنصوص */
    background-color: #fcfcfc;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* تنسيق الهيدر */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a, .lang-switch a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* استخدام اللون الثانوي عند مرور الماوس */
.main-nav a:hover, .lang-switch a:hover {
    color: #9dcecc; 
}

/* القسم الرئيسي (Hero) - مطور لصورة خلفية ثابتة (Parallax) */
.hero-section {
    padding: 150px 0; /* بادينج أكبر لإعطاء مساحة للتأثير البصري عند الاسكرول */
    position: relative;
    
    /* إضافة الصورة كخلفية مباشرة */
    background-image: url('../images/مصنع شنط كروشيه وهدايا في مصر.webp');
    background-size: cover;
    background-position: center;
    
    /* التأثير المطلوب: جعل الصورة ثابتة عند السكرول */
    background-attachment: fixed;
    
    /* تغيير ألوان النصوص لتكون بيضاء فوق الخلفية الغامقة */
    color: #fff; 
}

/* طبقة غامقة (Opacity) فوق الصورة عشان النصوص تكون مقروءة بوضوح (UI فخم) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* درجة الشفافية (0.65) تعني الصورة غامقة، غيرها لـ 0.3 مثلاً لو عاوزها فاتحة جداً (ولا أنصح بذلك لضمان وضوح النص) */
    background-color: rgba(0, 0, 0, 0.65); 
    z-index: 1; /* تأتي فوق الصورة مباشرة */
}

/* حاوية المحتوى لضمان ظهوره فوق طبقة الـ Opacity */
.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2; /* النص يظهر فوق طبقة التعتيم */
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: #fff; /* تأكيد اللون الأبيض */
    line-height: 1.3;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #f1f1f1; /* لون رمادي فاتح جداً للنص الفرعي */
    max-width: 800px;
}

/* تنسيق زر الـ Call to Action داخل الـ Hero ليتناسب مع الخلفية الغامقة */
.hero-btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: #333; /* زر أسود */
    color: #fff; /* نص أبيض */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #333;
    font-size: 1.1rem;
}

/* تأثير مرور الماوس (Hover) على الزر - استخدام اللون الثانوي التيفاني */
.hero-btn:hover {
    background-color: #9dcecc; /* اللون التيفاني الجميل */
    border-color: #9dcecc;
    color: #111; /* النص يتحول لأسود ليكون مقروء فوق التيفاني الفاتح */
    transform: translateY(-2px); /* حركة بسيطة لفوق عند الهوفر */
}

/* النص الرئيسي (العنوان) باللون الأبيض الناصع */
.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: #ffffff; /* أبيض صريح يبرز بقوة فوق الخلفية الغامقة */
    line-height: 1.3;
    font-weight: 700;
}

/* النص الفرعي (الوصف) بلون رمادي (Gray) أنيق ومقروء */
.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #cccccc; /* درجة رمادي مريحة للعين وتفصل بينه وبين العنوان */
    max-width: 800px;
}

/* زر الـ Call to Action */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #333; /* أسود */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #333;
}

/* تأثير مرور الماوس على الزر */
.btn-primary:hover {
    background-color: #9dcecc; /* اللون الثانوي */
    border-color: #9dcecc;
    color: #111; /* النص يتحول لأسود عشان يكون مقروء على اللون الفاتح */
}

/* تنسيقات العناوين للأقسام */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 60px 0 40px;
    position: relative;
    padding-bottom: 10px;
    color: #111;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #9dcecc; /* الخط تحت العنوان باللون الثانوي */
    border-radius: 2px;
}

/* شبكة الخدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 4px solid #9dcecc; /* لمسة اللون الثانوي من فوق */
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 15px;
    color: #333;
}

/* معرض الصور */
.gallery-section {
    background-color: #f9f9f9;
    padding: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03); /* زووم خفيف عند مرور الماوس */
}

/* مميزات المصنع */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 80px;
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
    color: #9dcecc; /* الأيقونات باللون الثانوي */
}

.feature-item h4 {
    margin-bottom: 10px;
    color: #333;
}

/* قسم الأسئلة الشائعة */
.faq-section {
    padding: 20px 0 60px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-right: 4px solid #9dcecc; /* خط جانبي باللون الثانوي */
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateX(-5px);
}

.faq-item h3 {
    color: #333;
    margin-bottom: 12px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.faq-item h3::before {
    content: '?';
    display: inline-block;
    background-color: #333; /* خلفية سوداء لعلامة الاستفهام */
    color: #9dcecc; /* العلامة نفسها باللون الثانوي */
    width: 25px;
    height: 25px;
    text-align: center;
    border-radius: 50%;
    margin-left: 10px;
    font-size: 1rem;
    line-height: 25px;
    font-weight: bold;
}

.faq-item p {
    color: #555;
    font-size: 1.05rem;
    padding-right: 35px;
}

/* زر الواتساب العائم */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px; 
    background-color: #25D366; /* لون الواتساب الأصلي */
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}

/* الفوتر */
.main-footer {
    background-color: #111; /* أسود داكن جداً للفوتر */
    color: #9dcecc; /* النص في الفوتر باللون الثانوي ليعطي فخامة */
    padding: 20px 0;
    margin-top: 50px;
    border-top: 3px solid #9dcecc;
}


/* قسم التواصل والخريطة */
.contact-section {
    padding: 40px 0 80px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* بيقسم الشاشة نصين: نص للفورم ونص للخريطة */
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid #9dcecc; /* لمسة اللون الثانوي بتاعنا */
}

/* تنسيق نموذج التواصل */
.contact-form-container {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #9dcecc;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(157, 206, 204, 0.3);
}

.btn-submit {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
}

/* تنسيق الخريطة */
.contact-map-container {
    border-radius: 8px;
    overflow: hidden; /* عشان أطراف الخريطة تاخد نفس الدوران */
    min-height: 400px;
    border: 1px solid #ddd;
}

/* التجاوب مع الموبايل (Responsive) */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* في الموبايل الفورم هتيجي فوق الخريطة */
        padding: 20px;
    }
    
    .contact-map-container {
        min-height: 300px;
    }
}


/* تنسيق زرار أسفل الجاليري */
.gallery-footer {
    margin-top: 40px; /* مسافة بين الصور والزرار */
}

.btn-outline {
    display: inline-block;
    padding: 12px 35px;
    background-color: transparent;
    color: #111; /* نص أسود */
    text-decoration: none;
    border: 2px solid #9dcecc; /* إطار بلوننا الثانوي التيفاني */
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #9dcecc; /* عند الهوفر يتحول اللون للخلفية */
    color: #111;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(157, 206, 204, 0.3);
}



/* Products */


/* تنسيقات صفحة المنتجات */
.section-padding {
    padding: 60px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.inverse .product-details { order: 2; }
.inverse .product-gallery { order: 1; }

.factory-info {
    background-color: #fff;
}

.features-list {
    margin-top: 20px;
    list-style: none;
}

.features-list li::before {
    content: "✔";
    color: #9dcecc;
    margin-left: 10px;
    font-weight: bold;
}

.product-item {
    margin-bottom: 80px;
}

.product-details h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.specs {
    list-style: none;
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-right: 4px solid #9dcecc;
    border-radius: 4px;
}

/* التعديل هنا: صغرنا الخط لـ 0.9rem وخففنا اللون */
.specs li {
    margin-bottom: 12px;
    font-size: .5rem; 
    color: #555; 
    line-height: 1.7;
}



/* السلايدر البسيط */
.slider-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slider img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.slider img:hover {
    transform: scale(1.05);
}

.separator {
    border: 0;
    border-top: 1px solid #eee;
    margin: 40px 0;
}

/* التجاوب مع الموبايل */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .inverse .product-details { order: 1; }
    .inverse .product-gallery { order: 2; }
    .product-details { text-align: center; }
}


/* ========================================= */
/* إضافات صفحة المنتجات (Products Page CSS)  */
/* ========================================= */

/* تنسيق الشبكة (علشان الصور والكلام ييجو جنب بعض) */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.section-padding {
    padding: 80px 0;
}

/* تنسيقات سكشن المصنع */
.features-list {
    margin-top: 20px;
    list-style: none;
}
.features-list li {
    margin-bottom: 12px;
    position: relative;
    padding-right: 25px;
    font-size: 1.1rem;
}
.features-list li::before {
    content: "✔";
    color: #9dcecc; /* لون دوزنة المميز */
    position: absolute;
    right: 0;
    font-weight: bold;
}

/* تنسيقات المنتجات */
.product-item {
    margin-bottom: 60px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.product-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.product-img:hover {
    transform: scale(1.03);
}

.product-details h3 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 15px;
}

.product-details .description {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* صندوق مواصفات المنتج */
.specs {
    list-style: none;
    margin: 20px 0 30px;
    padding: 20px;
    background: #fdfdfd;
    border-right: 4px solid #9dcecc;
    border-radius: 8px;
}
.specs li {
    margin-bottom: 10px;
    font-size: .8rem;
    color: #444;
}

/* الخط الفاصل بين الموديلات */
.separator {
    border: 0;
    border-top: 2px dashed #eaeaea;
    margin: 60px 0;
}

/* ترتيب الموديل التاني ليكون معكوس (صورة يمين وكلام شمال) */
.inverse .product-details { order: 2; }
.inverse .product-gallery { order: 1; }

/* تجاوب الموبايل (عشان تظهر تحت بعض على الشاشات الصغيرة) */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .inverse .product-details { order: 1; }
    .inverse .product-gallery { order: 2; }
}


/* =================================================== */
/* تنسيقات صفحة المنتجات المخصصة (Products Page)   */
/* =================================================== */

.text-center-hero {
    text-align: center;
}

.hero-cta {
    display: inline-block;
    margin-bottom: 35px;
    padding: 12px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

/* نظام الشبكة المرن لصفحة المنتجات (يمين وشمال) */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.section-padding {
    padding: 70px 0;
}

/* تنسيقات سكشن المصنع الجديد */
.factory-info {
    background-color: #f8fcfc; /* خلفية هادئة مريحة للعين */
}

.side-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    display: block;
    margin: 0 auto;
}

.factory-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.features-list {
    margin-top: 20px;
    list-style: none;
}

.features-list li {
    margin-bottom: 12px;
    position: relative;
    padding-right: 25px;
    font-size: 1.05rem;
}

.features-list li::before {
    content: "✔";
    color: #9dcecc; /* لون براند دوزنة */
    position: absolute;
    right: 0;
    font-weight: bold;
}

/* تنسيقات كروت الكتالوج والموديلات */
.product-item {
    margin-top: 5px;
    margin-bottom: 5px;
}

.catalog-item-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    display: block;
    margin: 0 auto;
}

.product-details h3 {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 15px;
    font-weight: 700;
}

.product-details .description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* صندوق مواصفات وتفاصيل الشنط */
.specs {
    list-style: none;
    margin: 20px 0 30px;
    padding: 20px;
    background: #fafafa;
    border-right: 4px solid #9dcecc;
    border-radius: 4px;
}

.specs li {
    margin-bottom: 10px;
    font-size: .8rem;
    color: #333;
}

/* الخط الفاصل المنقط بين الموديلات */
.separator {
    border: 0;
    border-top: 2px dashed #eaeaea;
    margin: 60px 0;
}

/* عكس الاتجاه للموديل الثاني (صورة شمال وكلام يمين) */
.inverse-grid .product-gallery {
    order: 2;
}
.inverse-grid .product-details {
    order: 1;
}

/* تخصيص مساحة الفورم لتكون متناسقة في صفحة المنتجات */
.single-column-form {
    grid-template-columns: 1fr !important;
    max-width: 600px;
    margin: 0 auto;
}

/* التجاوب التام مع شاشات الموبايل */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* في الموبايل يترتبوا طبيعي فوق بعض */
    .inverse-grid .product-gallery {
        order: 1;
    }
    .inverse-grid .product-details {
        order: 2;
    }
    
    .product-details {
        text-align: center;
    }
    
    .specs {
        text-align: right;
    }
}

/* =================================================== */
/* إصلاح وتنسيق الهيرو لصفحة المنتجات (Products Hero)  */
/* =================================================== */

.hero {
    padding: 80px 0 40px; /* مسافات فوق وتحت الهيرو */
    background-color: #fcfcfc;
}

.hero h1 {
    font-size: 2.8rem;
    color: #111;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px; /* توسيط الوصف */
    line-height: 1.8;
}

.hero-img {
    width: 100%;
    max-width: 900px; /* تحديد أقصى عرض للصورة علشان ماتضربش */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* ظل خفيف ورا الصورة للفخامة */
    display: block;
    margin: 20px auto 0; /* توسيط الصورة */
}

/* تظبيط الهيرو على الموبايل */
@media (max-width: 768px) {
    .hero {
        padding: 50px 0 20px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-img {
        border-radius: 8px;
    }
}


/* =================================================== */
/* تنسيقات سلايدر المنتجات والقالب الموحد للصور          */
/* =================================================== */

.slider-wrapper {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
}

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* يخلي السحب يقف بالضبط على الصورة */
    scroll-behavior: smooth;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    background-color: #fcfcfc;
    
    /* إخفاء شريط التمرير (Scrollbar) لشكل أنظف */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.slider-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.slide-img {
    flex: 0 0 100%; /* يجبر كل صورة تاخد 100% من عرض الحاوية */
    width: 100%;
    
    /* === السر هنا: القالب الموحد === */
    aspect-ratio: 1 / 1; /* بيعمل قالب مربع ثابت، تقدر تخليها 4 / 5 لو حابب مستطيل بالطول */
    object-fit: cover; /* يملأ القالب ويقص الزيادات بدون ما يمط الصورة */
    object-position: center; /* يخلي التركيز دايماً في نص الصورة */
    
    scroll-snap-align: center; /* يخلي الصورة تسنتر نفسها وقت السحب */
}

.slider-hint {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 12px;
    font-weight: 600;
}

/* تنسيقات زراير السلايدر */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7); /* خلفية بيضاء شفافة شيك */
    border: none;
    color: #333;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: #9dcecc; /* اللون التيفاني بتاع دوزنة */
    color: #fff;
}

/* تظبيط أماكن الأسهم (علشان الموقع عربي RTL) */
.right-btn {
    right: 10px;
}

.left-btn {
    left: 10px;
}

/* ========================================= */
/* تحسينات قائمة الموبايل (Hamburger Menu)   */
/* ========================================= */

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333;
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap; /* يسمح للعناصر تنزل سطر جديد */
    }
    
    .logo { order: 1; }
    .lang-switch { order: 2; font-size: 0.9rem; }
    
    .menu-toggle { 
        display: block; /* إظهار الزرار في الموبايل */
        order: 3; 
    }
    
    .main-nav {
        display: none; /* إخفاء القائمة في البداية */
        width: 100%;
        order: 4; /* تنزل سطر جديد تحت اللوجو */
        margin-top: 15px;
        background-color: #f9f9f9;
        padding: 15px;
        border-radius: 8px;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    .main-nav.active {
        display: block; /* تظهر لما ندوس على الزرار */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}