/* 1. الإعدادات الأساسية */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Tajawal', sans-serif; background-color: #fff; direction: rtl; line-height: 1.6;  
    font-family: 'Tajawal', sans-serif; 
    background-color: #fff; 
    direction: rtl; 
    line-height: 1.6;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}
/* 2. الشريط الأسود العلوي */
.announcement-bar { 
    background-color: #000; 
    color: #fff; 
    padding: 12px 0; 
    text-align: center; 
    font-size: 14px; 
}

/* 3. الهيدر المطور (توزيع السوشال - الروابط - اللوجو) */
/* تنسيق الهيدر الموحد */
.main-header {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* --- 2. ضبط مقاسات أيقونات المنتجات (200x200) --- */
.product-icon {
    width: 200px !important; 
    height: 200px !important;
    margin: 0 auto 15px !important;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border: 1px solid #eee;
}

.product-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* لقص صورك الشخصية بشكل مربع احترافي دون تمطيط */
}

/* --- 3. شبكة المنتجات (لضمان ترتيبها تحت البانر) --- */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-card {
    width: 240px; 
    text-align: center;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}
/* توزيع العناصر الثلاثة */
.social-icons-header, .nav-links, .logo {
    flex: 1;
}

/* أيقونات السوشال (يمين) */
.social-icons-header {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.social-icons-header a {
    color: #468cc7;
    font-size: 18px;
    transition: 0.3s;
}

/* الروابط (منتصف) */
.nav-links {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: #223063;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #468cc7;
}

/* الشعار (يسار) */
.logo {
    display: flex;
    justify-content: flex-end;
}

.logo img {
    height: 30px; /* يمكنك تعديل الارتفاع حسب الرغبة */
    width: auto;
}

/* تحسين الظهور على الجوال */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .social-icons-header, .nav-links, .logo {
        justify-content: center;
        text-align: center;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: #468cc7;
    font-weight: 500;
    font-size: 16px;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #468cc7;
}

/* 4. قسم العنوان الكبير (Hero) */
.hero-text-section { 
    padding: 60px 20px; 
    text-align: center; 
    background: #f9f9f9; 
}
.hero-content h1 { 
    font-size: 32px; 
    margin-bottom: 15px; 
    color: #223063; 
}
.cta-btn { 
    display: inline-block; 
    padding: 12px 30px; 
    background: #468cc7; 
    color: #fff; 
    text-decoration: none; 
    border-radius: 5px; 
    margin-top: 20px; 
}

/* 5. شبكة المنتجات (الصفحة الرئيسية) */
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px; 
    padding: 40px 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
}
.product-card { 
    border: 1px solid #eee; 
    padding: 30px; 
    text-align: center; 
    text-decoration: none; 
    color: #333; 
    transition: 0.3s; 
    border-radius: 10px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}
.product-card:hover { 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    transform: translateY(-5px); 
    border-color: #468cc7; 
}
/* تنسيق إطار الصورة الموحد (200x200) */
.product-icon {
    width: 200px !important;    /* العرض 200 بكسل */
    height: 200px !important;   /* الطول 200 بكسل */
    margin: 0 auto 15px;        /* توسيط الإطار وترك مسافة بالأسفل */
    overflow: hidden;           /* إخفاء أي أجزاء زائدة عن المربع */
    border-radius: 12px;        /* حواف ناعمة متناسقة مع حجم الصورة */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border: 1px solid #eee;     /* إطار خفيف جداً لتحديد الصورة */
    transition: all 0.3s ease;
}

/* تنسيق الصورة داخل الإطار */
.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* لقص الصورة بشكل مربع احترافي دون تمطيط */
    display: block;
}

/* تنسيق الكرت بالكامل ليتناسب مع الحجم الجديد */
.product-card {
    width: 240px;               /* عرض الكرت الإجمالي */
    padding: 20px;
    margin: 10px;
    text-align: center;
    background: #fff;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

/* تأثير عند تمرير الماوس */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.product-card:hover .product-icon {
    border-color: #468cc7;      /* تغيير لون الإطار عند التمرير */
}

/* 6. شبكة معرض الصور العشوائية (صفحة منتجاتنا) */
.products-showcase-grid {
    columns: 4 250px; 
    column-gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.showcase-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 20px;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    overflow: hidden;
    transition: 0.3s;
}

.image-placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    width: 100%;
}
/* تنسيق شبكة معرض الأعمال */
.products-showcase-grid {
    columns: 4 250px; /* 4 أعمدة في الشاشات الكبيرة وتقل تلقائياً */
    column-gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-item {
    display: inline-block; /* ضروري لمنع انقسام الصورة بين عمودين */
    width: 100%;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    background-color: #f9f9f9;
}

.showcase-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.showcase-item:hover img {
    transform: scale(1.05); /* تأثير تكبير خفيف عند مرور الماوس */
}
/* أطوال عشوائية للشبكة */
.showcase-item:nth-child(1) .image-placeholder { height: 200px; }
.showcase-item:nth-child(2) .image-placeholder { height: 320px; }
.showcase-item:nth-child(3) .image-placeholder { height: 260px; }
.showcase-item:nth-child(4) .image-placeholder { height: 380px; }
.showcase-item:nth-child(5) .image-placeholder { height: 230px; }
.showcase-item:nth-child(6) .image-placeholder { height: 300px; }


/* 7. الفوتر (الأزرق الفاتح + نصوص بيضاء) */
.main-footer {
    background: #468cc7;
    color: #ffffff;
    padding: 30px 20px;
    margin-top: auto; 
    direction: rtl;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section h4 {
    color: #ffffff;
    margin: 0 auto;
    font-size: 18px;
}

.footer-logo img {
    height: 35px; 
    width: auto;
    margin-bottom: 10px;
    filter: brightness(0) invert(1); /* تحويل اللوجو للأبيض */
}

.footer-section p {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 0% auto;
}

.footer-social-icons {
    display: flex;
    gap: 20px;
}

.footer-social-icons a {
    color: #ffffff !important;
    margin: 0 auto;
    font-size: 24px;
    transition: 0.3s;
}

.footer-social-icons a:hover { opacity: 0.8; transform: translateY(-2px); }

/* 8. استجابة الجوال */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; }
    .social-icons-header, .nav-links, .logo-box { justify-content: center; flex: none; }
    .products-showcase-grid { columns: 2; }
    .footer-content { flex-direction: column; text-align: center; align-items: center; }
    .footer-section h4 { border-right: none; border-bottom: 0px solid #fff; padding-bottom: 5px; }
    .footer-social-icons { justify-content: center; }
}
/* Product Details Page Styles */
/* تنسيقات صفحة تفاصيل المنتج */
.product-details-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    direction: rtl;
}

.product-wrapper {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.product-info-side { flex: 1; }
.product-image-side { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: #f9f9f9;
    border-radius: 15px;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: #223063; }

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
}
.product-details-container {
    max-width: 100% !important; 
    margin: 0 !important;       
    padding: 10px !important;
}
/* تنسيق الأزرار (خيارات المقاس والسماكة) */
.custom-options { display: flex; flex-wrap: wrap; gap: 10px; }

.option-btn {
    padding: 8px 15px;
    border: 1px solid #468cc7;
    background: #fff;
    color: #468cc7;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.option-btn.active {
    background: #468cc7;
    color: #fff;
}

.send-order-btn {
    width: 100%;
    padding: 15px;
    background: #468cc7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    }
/* تنسيق زر الإرسال - انسخي هذا الجزء فقط لملف الستايل */
.btn-send-order {
    background-color: #468cc7 !important; /* أضفنا important للتأكد من التنفيذ */
    color: white !important;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease, transform 0.2s;
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: 'Tajawal', sans-serif;
    clear: both;
}

.btn-send-order:hover {
    background-color: #223063 !important;
    transform: translateY(-2px);
}
/* لضمان ظهور أيقونة الواتساب */
.btn-send-order i {
    font-size: 20px;
}
/* الكود النهائي للتحكم في حجم الصورة ومنع كبرها */
.product-wrapper {
    display: flex;
    flex-wrap: wrap; /* للسماح بالعناصر بالنزول تحت بعض في الجوال */
    gap: 30px;
    align-items: flex-start;
}

.product-info-side {
    flex: 1 !important;
    min-width: 500px; /* لضمان عدم ضغط الفورم أكثر من اللازم */
}
/* التنسيق النهائي: تصغير حجم حاوية الصور في مهارة الطباعة */
.product-image-side { 
    flex: 0 0 500px !important; /* يمنع التمدد ويحدد العرض بـ 300 بكسل */
    width: 500px !important;
    height: 500px !important;
    aspect-ratio: 1 / 1 !important; 
    overflow: hidden !important;
    border-radius: 15px !important;
    background: #f9f9f9;
}

.product-image-side img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
/* 1. الإعدادات الأساسية ومنع التمرير العرضي */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Tajawal', sans-serif; 
    background-color: #fff; 
    direction: rtl; 
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    
    /* أضف السطرين القادمين هنا */
    overflow-x: hidden; 
    width: 100%;
}

/* 2. تعديل قسم البانر لضمان وصوله للأطراف */
.main-banner {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-banner-full img {
    width: 100% !important;
    height: auto;
    display: block;
    border-radius: 0; /* لضمان عدم وجود حواف بيضاء في الأطراف */
}
/* --- إصلاحات خاصة بالجوال (شاشات أقل من 768px) --- */
@media (max-width: 768px) {
    
    /* 1. ضبط البانر ليمتد للأطراف ويظهر بوضوح */
    .main-banner {
        margin-bottom: 20px !important;
    }
    
    .main-banner-full img {
        width: 100% !important;
        height: auto !important;
        border-radius: 0 !important;
    }

    /* 2. ضبط شبكة المنتجات لتكون صفين بدلاً من أربعة لسهولة التصفح */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* عرض منتجين في كل صف */
        gap: 10px !important;
        padding: 10px !important;
    }

    /* 3. تصغير حجم كروت المنتجات لتناسب عرض الشاشة */
    .product-card {
        width: 100% !important;
        padding: 10px !important;
        margin: 0 !important;
    }

    .product-icon {
        width: 100% !important; /* تأخذ كامل عرض الكرت */
        height: 150px !important; /* ارتفاع مناسب للجوال */
    }

    /* 4. إصلاح الفوتر ليمتد بكامل العرض وتوسيط النصوص */
    .main-footer {
        width: 100% !important;
        padding: 40px 10px !important;
    }

    .footer-content {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        gap: 30px !important;
    }

    .footer-section {
        width: 100% !important;
    }

    .footer-social-icons {
        justify-content: center !important;
    }
}