/* ==========================================================================
   1. تصفير حواف الصفحة بالكامل لمنع الفراغات الجانبية المزعجة
   ========================================================================== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden; /* لمنع حدوث سكرول أفقي للموقع */
    background-color: #fdfbf7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    direction: rtl; /* تفعيل الاتجاه العربي افتراضياً للموقع */
}

/* ==========================================================================
   2. تصميم الهيدر (يدعم الشريط السحاب للموبايل والمنيو العادي للكمبيوتر)
   ========================================================================== */
/* ==========================================================================
   تنسيق الهيدر المطور (الكمبيوتر) - الكلمة تحت اللوجو وليست عريضة ومزخرفة
   ========================================================================== */
.main-header {
    background-color: #0d3b1e;
    color: #ffffff;
    padding: 12px 30px; /* رجوع لارتفاع طبيعي بيتحدد من المحتوى مش رقم ثابت مبالغ فيه */
    position: sticky;
    top: 0;
    z-index: 1000;
    direction: rtl; /* لضمان الترتيب الصحيح */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* تعديل حاوية اللوجو على الكمبيوتر لتصبح رأسية (الكلمة تحت اللوجو) */
.logo {
    display: flex;
    flex-direction: column; /* جعل الكلمة تحت اللوجو الدائري */
    align-items: center;    /* محاذاة الكلمة بالمنتصف تماماً تحت اللوجو */
    justify-content: center;
    gap: 0px;               /* قربنا الكلمة من اللوجو لفوق شوية */
    text-decoration: none;
}

.logo img {
    max-height: 76px; /* حجم متناسق للرص الرأسي */
    display: block;
}

/* تنسيق الكلمة تحت اللوجو للكمبيوتر (مزخرفة، مائلة، وغير عريضة/ليست بولد) */
.logo-text {
    color: #c5a880; /* لون ذهبي فاخر متناسق مع هوية البراند */
    font-size: 0.7rem; /* صغرناها شوية عن الحجم اللي كانت عليه */
    font-weight: normal; /* غير عريض (ليست بولد) بناءً على طلبك */
    font-style: italic;  /* مائل ومزخرف */
    font-family: 'Georgia', 'Times New Roman', serif; /* خط كلاسيكي مزخرف وراقي */
    letter-spacing: 1.5px; /* مسافات تباعد أنيقة بين الحروف */
    margin-top: -3px; /* رفعناها لفوق أقرب للوجو */
}


/* الأيقونات */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icons .icon-link {
    color: #ffffff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-icons .icon-link:hover {
    color: #c5a880;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #ff3b30;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* المنيو للكمبيوتر */
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #c5a880;
}

/* ==========================================================================
   تجاوب الموبايل (تم الحفاظ عليه تماماً كما انضبط معك)
   ========================================================================== */
@media (max-width: 768px) {
    .main-header {
        padding: 10px 15px;
        height: auto; /* الهيدر بيتفتح صفوف على الموبايل (لوجو + منيو) فمينفعش ارتفاع ثابت */
        overflow: visible;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        flex-wrap: wrap;
        row-gap: 12px;
        height: auto;
    }

    /* اللوجو على اليسار في الموبايل */
    .logo {
        order: 2; 
        flex-direction: row; /* إعادة المظهر الأفقي للوجو والكلمة على الموبايل */
        gap: 0;
    }

    .logo img {
        width: 42px;
        height: auto;
    }

    /* الكلمة المزخرفة والذهبية بالمنتصف تماماً على الموبايل (عريضة ومحفوظة كما هي) */
    .logo-text {
        position: absolute;
        left: 50%;
        top: 14px;
        transform: translateX(-50%);
        color: #c5a880 !important;
        font-family: 'Georgia', 'Times New Roman', serif !important;
        font-style: italic !important;
        font-size: 1.35rem !important;
        font-weight: bold !important; /* تظل عريضة (بولد) على الموبايل لسهولة القراءة */
        letter-spacing: 2px !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    }

    /* الأيقونات على اليمين في الموبايل */
    .header-icons {
        order: 1;
        gap: 15px;
    }

    /* المنيو السحاب الأفقي */
    .nav-menu {
        order: 3;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 15px !important;
        padding: 10px 5px 3px 5px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        background-color: transparent !important;
        box-shadow: none !important;
        z-index: auto !important;
        scrollbar-width: none !important;
    }

    .nav-menu::-webkit-scrollbar {
        display: none !important;
    }

    .nav-menu a {
        font-size: 13px !important;
        padding: 4px 8px !important;
        flex: 0 0 auto !important;
        color: #ffffff !important;
        border-bottom: none !important;
    }
}

/* ميديا كويري الشاشات الكبيرة */
@media (min-width: 769px) {
    .nav-menu { 
        display: flex !important; 
        flex-direction: row !important; 
        position: static !important;
        background-color: transparent !important;
        width: auto !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   3. تصميم قسم الكروت والأقسام (الكمبيوتر)
   ========================================================================== */
.categories-section {
    padding: 60px 0;
    max-width: 1000px;
    margin: 0 auto;
    width: 75%;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* الكروت وتأثيراتها */
.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 380px; 
    flex: 1; /* يدعم حاوية السلايدر flex */
    min-width: 0;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* النص والزرار فوق الكارت */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    align-items: center;
}

.card-overlay h2 {
    color: #ffffff;
    font-size: 1.5rem; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    margin-top: 20px;
}

.card-btn {
    background-color: #0d3b1e;
    color: #ffffff;
    border: none;
    padding: 10px 20px; 
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s;
    width: 85%;
}

.category-card:hover .card-btn {
    background-color: #16532d;
    transform: scale(1.05);
}

/* ==========================================================================
   4. ستايل البانر الإعلاني الرئيسي (الكمبيوتر)
   ========================================================================== */
.hero-banner-section {
    padding-top: 30px;
    max-width: 1000px;
    margin: 0 auto;
    width: 75%;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   5. ستايل أقسام المنتجات، الزيوت والبوكسات (الكمبيوتر)
   ========================================================================== */
.home-oils-section, 
.home-boxes-section {
    padding: 40px 0 60px 0;
    max-width: 1000px;
    margin: 0 auto;
    width: 75%;
}

.home-boxes-section {
    padding: 20px 0 60px 0;
}

.section-main-title {
    text-align: center;
    color: #0d3b1e;
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0 auto 35px auto;
    position: relative;
    width: fit-content;
    padding: 10px 35px;
    border: 2px solid #0d3b1e;
    border-radius: 30px;
}

/* تم ضبط كلاسات الـ Grid لسنترة المنتجات في المنتصف تماماً وتلافي الانحياز لليمين */
.oils-grid-container, 
.boxes-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center; /* سنترة الحاوية */
    justify-items: center;   /* سنترة الكروت داخل الشبكة */
}

/* كارت المنتج الرئيسي */
.home-product-card {
    background-color: #ece6d3;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 10px 15px 10px; /* حشو من فوق كمان عشان زوايا الصورة الدائرية تبان واضحة على كل الجوانب */
    cursor: pointer;
    transition: transform 0.3s ease;
    flex: 0 0 calc(25% - 15px); 
    min-width: 240px;
    box-sizing: border-box;
    margin: 0 auto; /* سنترة ذاتية للكارت */
    height: 100%; /* الكارت ياخد نفس ارتفاع باقي كروت الصف/السلايدر */
}

.home-product-card:hover {
    transform: translateY(-5px);
}

.home-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #fff;
    color: #0d3b1e;
    border: 1px solid #0d3b1e;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

/* تم تعديل صورة المنتجات لضمان ظهور الزجاجات كاملة دون أي قص للغطاء أو الأطراف */
.home-product-image {
    width: 100%;
    height: 300px;
    object-fit: contain; /* تم التعديل من cover إلى contain لمنع القص */
    padding: 4px; /* حشو داخلي بسيط لحماية أبعاد الزجاجات */
    background-color: #ece6d3; /* مطابقة لون خلفية الصورة مع الكارت */
    border-radius: 30px; /* حواف دائرية واضحة للصورة نفسها، أوضح من حواف الكارت */
}

.home-product-info {
    text-align: center;
    padding: 15px 10px 0 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1; /* يملأ المساحة المتبقية في الكارت مهما اختلف طول الاسم أو السعر */
}

.home-product-name {
    font-size: 1.05rem;
    color: #0d3b1e;
    margin-bottom: 10px;
    font-weight: bold;
    min-height: 2.6rem; /* تحجز مساحة سطرين دايماً، سواء كان الاسم سطر أو سطرين، عشان يبدأ السعر والزرار من نفس المكان في كل الكروت */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
}

.home-product-prices {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.home-old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.85rem;
}

.home-new-price {
    color: #0d3b1e;
    font-weight: bold;
    font-size: 1.15rem;
}

.home-add-btn {
    background-color: #0d3b1e;
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    width: 85%;
    transition: background-color 0.3s;
}

.home-add-btn:hover {
    background-color: #16532d;
}

/* ==========================================================================
   6. تنسيق قسم السلايدر العام للزيوت والمنتجات (الكمبيوتر)
   ========================================================================== */
.home-slider-section {
    padding: 30px 0;
    max-width: 1100px;
    margin: 0 auto;
    width: 85%;
    position: relative;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 5px;
    width: 100%;
    scrollbar-width: none; 
}

.slider-container::-webkit-scrollbar {
    display: none; 
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(13, 59, 30, 0.85);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.slider-arrow:hover {
    background-color: #0d3b1e;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { right: -50px; }
.next-btn { left: -50px; }

/* ==========================================================================
   7. سلايدر الأقسام
   ========================================================================== */
.categories-slider-container {
    display: flex;
    gap: 20px;
    width: 100%;
    scroll-behavior: smooth;
}

/* ==========================================================================
   8. قسم المنتجات الطبيعية (شعر صحي وطبيعي)
   ========================================================================== */
/* ==========================================================================
   8. قسم المنتجات الطبيعية لشعر صحي وطبيعي (الكمبيوتر)
   ========================================================================== */
.natural-section {
    padding: 40px 0;
    text-align: center;
}

.natural-section .section-title {
    color: #0d3b1e;
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0 auto 35px auto;
    position: relative;
    width: fit-content;
    padding: 10px 35px;
    border: 2px solid #0d3b1e;
    border-radius: 30px;
}

.natural-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
}

.natural-slider-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    width: 100%;
    align-items: stretch; /* كل الكروت في نفس ارتفاع بعض */
    scrollbar-width: none;
}

.natural-slider-wrapper::-webkit-scrollbar {
    display: none;
}

/* الكروت وتنسيق الخلفية المتطابقة */
.natural-card {
    flex: 0 0 auto;
    width: 230px;
    background-color: #ece6d3; /* توحيد لون الخلفية مع كروت المنتجات */
    border-radius: 16px;
    padding: 10px 15px 15px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    height: 100%; /* الكارت ياخد نفس ارتفاع باقي كروت الصف، فالزرار يفضل في نفس المكان دايماً */
}

.natural-card:hover {
    transform: translateY(-5px);
}

.natural-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #ffffff;
    color: #1b3c24;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid #1b3c24;
    z-index: 2;
}

/* صندوق الصورة تم تعديله لـ cover مع توحيد الارتفاع لـ 220px ليطابق كروت المنتجات بالملّي */
.natural-img-box {
    width: 100%;
    height: 220px; /* توحيد الارتفاع لمنع الاختلافات البصرية */
    display: block;
    overflow: hidden;
    border-radius: 24px; /* حواف دائرية أوضح للصورة نفسها */
    margin-bottom: 12px;
}

.natural-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* التعديل لـ cover لتوحيد المقاسات وإلغاء الفراغات الجانبية وتناسق شكل الصور */
    border-radius: 24px; /* حواف دائرية مطابقة للصندوق نفسه */
}

.natural-title {
    font-size: 16px;
    color: #1b3c24;
    margin: 8px 0;
    font-weight: bold;
    min-height: 2.6em; /* تحجز مساحة سطرين دايماً، عشان السعر والزرار يبدأوا من نفس المكان في كل الكروت */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
}

.natural-price-box {
    margin-bottom: 12px;
}

.nat-new-price {
    font-weight: bold;
    color: #1b3c24;
    font-size: 16px;
    margin-left: 6px;
}

.nat-old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 12px;
}

.natural-btn {
    background-color: #1b3c24;
    color: #ffffff;
    border: none;
    padding: 10px 0;
    border-radius: 25px;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s;
}

.natural-btn:hover {
    background-color: #142d1b;
}

/* أسهم سلايدر المنتجات الطبيعية - بنفس شكل أسهم باقي السلايدرات */
.natural-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(13, 59, 30, 0.85);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.natural-arrow-btn:hover {
    background-color: #0d3b1e;
    transform: translateY(-50%) scale(1.1);
}

.natural-arrow-btn.right-arrow { right: -50px; }
.natural-arrow-btn.left-arrow { left: -50px; }

/* ==========================================================================
   9. تنسيق الفوتر (Footer Style)
   ========================================================================== */
/* ==========================================================================
   تنسيق الفوتر بالكامل (Footer Style)
   ========================================================================== */
footer {
    background-color: #1b3c24;
    color: #ffffff;
    padding: 40px 20px 20px 20px;
    font-family: sans-serif;
    direction: rtl;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
    text-align: right; /* محاذاة النص لليمين على الكمبيوتر */
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.brand-desc {
    font-size: 13px;
    color: #eae5c8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links-col {
    flex: 1;
    min-width: 180px;
}

.footer-links-col h4 {
    font-size: 16px;
    border-bottom: 2px solid #eae5c8;
    padding-bottom: 8px;
    margin-bottom: 15px;
    display: inline-block;
    color: #ffffff;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-col ul li {
    margin-bottom: 12px;
}

.footer-links-col ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links-col ul li a:hover {
    color: #eae5c8;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: #1b3c24;
    background-color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.social-icons a:hover {
    background-color: #eae5c8;
    color: #1b3c24;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 13px;
    color: #eae5c8;
    margin: 0;
}

/* ==========================================================================
   تجاوب الفوتر بالكامل من منظور شاشات الموبايل (768px and down)
   ========================================================================== */
@media (max-width: 768px) {
    footer {
        padding: 35px 15px 15px 15px; /* تقليص مسافات الحشو لتناسب شاشات الفون */
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center; /* سنترة النصوص بالكامل */
        gap: 35px; /* تباعد رأسي منسق ومريح بين الأقسام */
    }

    .footer-brand {
        text-align: center;
        width: 100%;
    }

    .footer-logo {
        margin: 0 auto 15px auto; /* سنترة اللوجو في منتصف شاشة الموبايل تماماً */
    }

    .footer-links-col {
        width: 100%;
        text-align: center;
    }

    /* سنترة الخط البيج الصغير الموجود تحت عناوين الأقسام بالمنتصف */
    .footer-links-col h4 {
        display: block;
        width: fit-content;
        margin: 0 auto 15px auto; 
    }

    /* سنترة الأيقونات بجانب النصوص (أيقونة التليفون والإيميل) بالمنتصف تماماً ككتلة واحدة */
    .footer-links-col ul li a {
        justify-content: center; /* تضمن عدم انحياز الأيقونات لليمين أو اليسار وتوسيطها */
    }
}
/* ==========================================================================
   10. تنسيق زر إضافة للسلة (المنفصل)
   ========================================================================== */
.cart-add-btn {
    background-color: #0d3b1e;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* داخل كروت المنتج المرنة، الزرار يتثبت دايمًا في الآخر مهما اختلف طول الاسم أو السعر فوقه */
.home-product-info .cart-add-btn,
.natural-card .cart-add-btn {
    margin-top: auto;
}

.cart-add-btn:hover {
    background-color: #1a6f3a;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.cart-add-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   11. شاشات التابلت والمتوسطة (Media Queries 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   12. شاشات الموبايل (تحويل كافة أقسام المنتجات لسلايدرات سحب أفقية)
   ========================================================================== */
@media (max-width: 900px) {
    /* جعل أقسام الأقسام تلتصق تماماً بحافة الشاشة عند السحب */
    .categories-section {
        width: 100% !important;
        margin: 0 !important;
        padding: 30px 0 !important;
        overflow: hidden;
    }

    .categories-slider-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: visible;
        overflow-y: visible;
        padding: 10px 15px 15px 15px !important; 
        scrollbar-width: none;
    }

    .categories-slider-container::-webkit-scrollbar {
        display: none;
    }

    .category-card {
        flex: none !important;
        width: 100%;
        min-width: 0;
        height: 260px;
    }

    /* جعل أقسام المنتجات (الزيوت والبوكسات) والبانر تلتصق بالحافة */
    .hero-banner-section, 
    .home-oils-section, 
    .home-boxes-section {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important; /* شيلنا الـ 20px عشان مايبقاش فيه فراغ فوق وتحت البانر */
    }
    
    .banner-container {
        height: auto;
        aspect-ratio: 2.357 / 1; /* نفس نسبة صور البانرات الفعلية (بانر زيوت / بانر الباكدجات) */
        border-radius: 0; /* من غير حواف دائرية عشان يبقى ملتصق بحافة الشاشة تماماً */
        background-color: #0d3b1e;
    }

    .banner-img {
        object-fit: cover; /* الصورة تملى الكارت بالكامل من غير فراغ (بديل عن contain) */
    }

    /* تحويل شبكات المنتجات (الزيوت والبوكسات) إلى سلايدر سحب أفقي ممتاز */
    .oils-grid-container, 
    .boxes-grid-container {
        display: flex !important; /* تحويل من شبكة عمودية إلى شريط أفقي */
        flex-direction: row !important;
        overflow-x: auto !important; /* تفعيل السحب */
        padding: 10px 15px 20px 15px !important; /* حشو داخلي للسنترة يميناً ويساراً */
        gap: 15px !important;
        scrollbar-width: none !important;
        width: 100% !important;
    }

    .oils-grid-container::-webkit-scrollbar,
    .boxes-grid-container::-webkit-scrollbar {
        display: none !important;
    }

    /* حماية الكروت من الانكماش والتمطيط وضبط أبعادها الطبيعية */
    .oils-grid-container .home-product-card,
    .boxes-grid-container .home-product-card {
        flex: 0 0 250px !important; /* عرض ثابت ومتناسق لكل كارت في السحب */
        min-width: 250px !important;
        box-sizing: border-box;
    }

    /* نفس ضبط عرض الكارت لسلايدر الباكدجات عشان يفضل متسق مع الزيوت والبوكسات */
    .home-slider-section .home-product-card {
        flex: 0 0 250px !important;
        min-width: 250px !important;
        box-sizing: border-box;
    }

    /* الحفاظ على جودة وأبعاد صور المنتجات في وضع السحب للموبايل */
    .home-product-image {
        width: 100%;
        height: 260px; 
        object-fit: contain; /* تغييرها لـ contain لحماية الأبعاد في وضع السحاب للموبايل */
        padding: 4px;
    }

    /* تمديد السلايدرات الأخرى للشاشة بالكامل */
    .home-slider-section {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 0 20px 0 !important; /* تقليل المسافة اللي فوق العنوان مباشرة بعد البانر */
    }

    /* تصغير عنوان القسم وبرواز أصغر يناسب شاشة الموبايل */
    .section-main-title,
    .natural-section .section-title {
        font-size: 1.1rem;
        padding: 6px 20px;
        margin: 0 auto 18px auto;
        border-width: 1.5px;
    }

    .natural-section {
        padding: 20px 0 !important;
    }

    .slider-container {
        padding: 10px 15px !important;
    }

    /* نفس المعاملة للسلايدر بتاع المنتجات الطبيعية عشان الحواف تتوحد مع الباقي */
    .natural-slider-container {
        width: 100% !important;
        margin: 0 !important;
    }

    .natural-slider-wrapper {
        padding: 10px 15px !important;
    }

    .slider-arrow {
        display: none;
    }

    .natural-arrow-btn {
        display: none;
    }
}

/* ==========================================================================
   13. شاشات الهواتف المحمولة وتجاوب الهيدر وشريط المنيو السحاب (768px and down)
   ========================================================================== */
@media (max-width: 768px) {
    .main-header {
        padding: 10px 15px;
        height: auto; /* الهيدر بيتفتح صفوف على الموبايل (لوجو + منيو) فمينفعش ارتفاع ثابت */
        overflow: visible;
    }

    .header-container {
        flex-wrap: wrap;
        row-gap: 12px;
        justify-content: space-between;
        align-items: center;
        height: auto;
    }

    .logo img {
        width: 70px;
        height: auto;
    }

    .logo {
        order: 1;
    }

    .header-icons {
        order: 2;
        gap: 15px;
    }

    .nav-menu {
        order: 3;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 15px !important;
        padding: 10px 5px 3px 5px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        background-color: transparent !important;
        box-shadow: none !important;
        z-index: auto !important;
        scrollbar-width: none !important;
    }

    .nav-menu::-webkit-scrollbar {
        display: none !important;
    }

    .nav-menu a {
        font-size: 13px !important;
        padding: 4px 8px !important;
        flex: 0 0 auto !important;
        color: #ffffff !important;
        border-bottom: none !important;
        text-align: center !important;
    }

    /* الفوتر للموبايل */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links-col h4 {
        display: block;
        width: fit-content;
        margin: 0 auto 15px auto;
    }
    
    .footer-links-col ul li a {
        justify-content: center;
    }
}

/* ==========================================================================
   14. شاشات الموبايل الصغيرة جداً (600px and down)
   ========================================================================== */

/* ==========================================================================
   15. ميديا كويري الشاشات الكبيرة (تثبيت المنيو الأفقي للكمبيوتر)
   ========================================================================== */
@media (min-width: 769px) {
    .nav-menu { 
        display: flex !important; 
        flex-direction: row !important; 
        position: static !important;
        background-color: transparent !important;
        width: auto !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   16. إعادة تنظيم الفوتر على الموبايل فقط (بدون أي تغيير في HTML)
   الترتيب الجديد: اللوجو والوصف والسوشيال فوق، تحته عمودين جنب بعض
   (خدمة العملاء | الأقسام)، وتحتهم قسم "تواصل معنا" بعرض كامل.
   نستخدم order + flex-wrap لإعادة الترتيب بصرياً فقط دون المساس بالكمبيوتر.
   ========================================================================== */
@media (max-width: 768px) {
    .footer-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        text-align: center;
        gap: 25px 0;
    }

    /* 1) اللوجو + الوصف + السوشيال ميديا: أول عنصر، بعرض كامل */
    .footer-brand {
        order: 1;
        width: 100%;
        text-align: center;
    }

    /* بالترتيب في HTML: أول عمود = تواصل معنا، تاني عمود = خدمة العملاء، تالت عمود = الأقسام */

    /* 2) عمودين جنب بعض: خدمة العملاء (يمين) والأقسام (شمال) */
    .footer-links-col:nth-of-type(2),
    .footer-links-col:nth-of-type(3) {
        order: 2;
        width: 50%;
        text-align: right;
        box-sizing: border-box;
        padding: 0 12px;
    }

    .footer-links-col:nth-of-type(2) h4,
    .footer-links-col:nth-of-type(3) h4 {
        margin: 0 0 15px 0;
        display: block;
        width: fit-content;
    }

    .footer-links-col:nth-of-type(2) ul li a,
    .footer-links-col:nth-of-type(3) ul li a {
        justify-content: flex-start;
    }

    /* 3) قسم "تواصل معنا": بعرض كامل تحت العمودين */
    .footer-links-col:nth-of-type(1) {
        order: 3;
        width: 100%;
        text-align: right;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .footer-links-col:nth-of-type(1) h4 {
        margin: 0 0 15px 0;
        display: block;
        width: fit-content;
    }

    .footer-links-col:nth-of-type(1) ul li a {
        justify-content: space-between;
    }

    .footer-bottom {
        order: 4;
        width: 100%;
    }
}