/* Add custom CSS styles below */ 
/* 1. تحسين الخطوط والمساحات في وصف المنتج */
.product__description article {
    line-height: 1.8 !important;
    color: #444 !important;
    font-size: 1.1rem !important;
}

/* 2. ترويق الـ Promotion Title (شامل الأكواب والاستيكرات) */
.promotion-title {
    background: linear-gradient(45deg, #e05174, #ff8da1) !important;
    border-radius: 50px !important;
    padding: 6px 18px !important;
    font-weight: bold !important;
    box-shadow: 0 4px 12px rgba(224, 81, 116, 0.3) !important;
    top: 15px !important;
    right: 15px !important;
}

/* 3. جعل أزرار "إضافة للسلة" و "اشتري الآن" عصرية */
salla-add-product-button .s-button-btn {
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

salla-add-product-button .s-button-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(224, 81, 116, 0.25) !important;
}

/* 4. تنسيق الـ Tags (الوسوم) عشان متبقاش مجرد نصوص */
.tag-item {
    background-color: #f3f4f6 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    margin: 4px !important;
    text-decoration: none !important;
    transition: 0.2s;
    color: #666 !important;
}

.tag-item:hover {
    background-color: #e05174 !important;
    color: #fff !important;
}

.tag-item svg path {
    fill: currentColor !important;
}

/* 5. "ترويق" قسم الضمانات (هذا المنتج عليه طلب كبير) */
.bg-\[\#fff7e7\] {
    background-color: #fffcf0 !important;
    border-radius: 16px !important;
    border: 1px solid #ffba004d !important;
    transition: transform 0.3s ease;
}

.bg-\[\#fff7e7\]:hover {
    transform: scale(1.02);
}

/* 6. تعديل شكل الـ Tabs (وصف المنتج / التعليقات) */
.tabs-details-section {
    border-radius: 16px !important;
    overflow: hidden;
    border: 1px solid #eee !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02) !important;
}

.contianer-tab {
    border-left: 4px solid var(--color-primary) !important;
}

/* 7. حركة خفيفة لصور المنتجات في السلايدر السفلي */
.s-product-card-image img {
    transition: transform 0.5s ease !important;
}

.s-product-card-entry:hover .s-product-card-image img {
    transform: scale(1.1) !important;
}


/* ============================== */
/* ترويق جزء الـ Tabs (وصف المنتج والتعليقات) */
/* ============================== */

/* 1. إضافة انحناء وتباين للحاوية الأساسية للـ Tabs */
#tabs-p-details-section {
  border-radius: 20px !important; /* زوايا أنعم */
  background: linear-gradient(145deg, #ffffff, #f9f9f9) !important; /* تدرج خفيف */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important; /* ظل عميق */
  border: 1px solid #eee !important;
  overflow: hidden;
}

/* 2. تنسيق رأس الـ Tab (الأيقونة والعنوان) عند التفعيل والفتح */
.tab-item.active {
  background-color: #fff9fa !important; /* خلفية وردية فاتحة جداً عند الفتح */
  position: relative;
}

/* 3. تجميل الأيقونات */
.tab-item i.sicon-book,
.tab-item i.sicon-chat-bubbles {
  color: #e05174 !important; /* لون البراند الأساسي للأيقونات */
  transition: all 0.3s ease;
}

/* 4. ترويق زر الـ Caret (السهم) - إضافة حركة */
.tab-item div.rounded-full {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tab-item.active div.rounded-full {
  transform: rotate(180deg) !important; /* تدوير السهم عند الفتح */
  background-color: #e05174 !important; /* تلوين الخلفية */
}

.tab-item.active div.rounded-full i {
  color: white !important; /* تلوين السهم للأبيض */
}

/* 5. ترويق نص الوصف الأساسي - زيادة المساحة والتحكم بالخط */
.article--main p {
  line-height: 1.85 !important; /* تباعد مريح للعين */
  font-size: 1.15rem !important; /* تكبير بسيط */
  color: #333 !important; /* لون مريح */
  padding: 10px 0;
}

/* 6. فصل التعليقات بخط خفيف عند الفتح */
.reviews-custome-articale.border-b {
  border-color: #f0f0f0 !important;
}

/* 7. ترويق قسم الـ Comments - إضافة مساحات */
salla-comments {
  margin-top: 15px;
  display: block;
}


/* ============================== */
/* ترويق قسم المنتجات المقترحة (Related Products) */
/* ============================== */

/* 8. ترويق عنوان القسم (منتجات قد تعجبك) */
.s-slider-block__title h2 {
  font-weight: 700 !important;
  color: #222 !important;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.s-slider-block__title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background-color: #e05174; /* خط تحت العنوان بلون البراند */
  border-radius: 2px;
}

/* 9. ترويق كرت المنتج (Product Card) - الـ "Micro-interactions" */
custom-salla-product-card {
  border-radius: 16px !important;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  border: 1px solid transparent !important;
}

custom-salla-product-card:hover {
  transform: translateY(-8px) scale(1.01) !important; /* حركة صعود خفيفة */
  border-color: #ffdae2 !important; /* حدود وردية خفيفة */
  box-shadow: 0 15px 35px rgba(224, 81, 116, 0.1) !important; /* ظل ملون خفيف */
}

/* 10. ترويق صورة المنتج - حركة تكبير */
.s-product-card-image img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

custom-salla-product-card:hover .s-product-card-image img {
  transform: scale(1.06) !important; /* تكبير خفيف للصورة */
}

/* 11. ترويق شارة الـ "متوفر" (wajha-in-stock-status) */
.wajha-in-stock-status {
  background-color: #e3faf1 !important; /* خلفية خضراء فاتحة جداً */
  color: #1a6345 !important; /* أخضر غامق للنص */
  border-radius: 50px !important;
  padding: 4px 10px !important;
  font-weight: bold;
}

/* 12. ترويق زر الإضافة للسلة (في السلايدر السفلي) - حركة وحجم */
salla-add-product-button salla-button button.s-button-element {
  transition: all 0.3s ease !important;
  border-radius: 10px !important; /* زوايا أنعم للزر */
  box-shadow: 0 4px 10px rgba(224, 81, 116, 0.2) !important;
}

custom-salla-product-card:hover salla-add-product-button salla-button button.s-button-element {
  background-color: #d13f63 !important; /* تغميق لون الزر قليلاً عند الـ hover */
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(224, 81, 116, 0.3) !important;
}

/* 13. ترويق أيقونة السلة والسعر */
.s-product-card-price i.sicon-sar {
  color: #999; /* لون باهت للعملة */
  margin-right: 2px;
}


/* ========================================= */
/* ترويق وهيكلة الـ Footer للجوال (Mobile Only) */
/* ========================================= */

@media (max-width: 768px) {
    /* 1. الحاوية الرئيسية - إضافة مساحات تنفس جانبية */
    .store-footer__inner {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .store-footer__inner .container {
        gap: 30px !important; /* مسافة ثابتة بين الأقسام الرئيسية */
    }

    /* 2. ترويق الشعار والوصف - توسيط تام */
    .footer-logo a,
    .footer-description p {
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .footer-logo h3 {
        font-size: 2rem !important; /* حجم أنسب للشعار */
    }

    /* 3. ترويق العناوين - توسيط وخط أفقي أنيق */
    .store-footer h3 {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-bottom: 25px !important;
        color: #e05174 !important; /* لون البراند */
    }
    
    .store-footer h3::after {
        content: "";
        margin-top: 8px;
        width: 40px !important; /* خط أطول قليلاً للتوسيط */
        height: 2px !important;
        background-color: #e05174 !important;
        border-radius: 2px;
    }

    /* 4. ترويق الروابط المهمة وحسابي - توسيط تام وزيادة المساحة العمودية */
    .s-menu-footer-list,
    .account-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 15px !important; /* مسافة بين كل رابط */
    }
    
    .s-menu-footer-item,
    .account-links a {
        text-align: center !important;
        font-size: 1rem !important;
        padding: 5px 0 !important;
        color: #555 !important;
    }

    /* 5. ترويق "تواصل معنا" - الأهم! */
    /* تحويل عناصر التواصل لقائمة عمودية نظيفة بدلاً من الـ Grid الزحمة */
    .contact-links ul {
        align-items: center !important;
        gap: 15px !important;
    }
    
    .contact-links li a {
        justify-content: center !important;
        width: 100% !important;
        padding: 10px !important;
        background-color: #fcfcfc !important; /* خلفية خفيفة جداً للفصل */
        border-radius: 10px !important;
        border: 1px solid #f0f0f0 !important;
    }

    /* هيكلة الأيقونة والنص في سطر واحد عمودي */
    .contact-links li a .flex-col {
        flex-direction: row !important; /* تحويل الأيقونة والنص لسطر واحد */
        align-items: center !important;
        width: auto !important;
        height: auto !important;
        margin-left: 0 !important;
    }

    .contact-links li i {
        background-color: #fff1f3 !important;
        color: #e05174 !important;
        width: 30px !important;
        height: 30px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.9rem !important;
        margin-left: 10px !important; /* مسافة بين الأيقونة ونص النوع */
    }

    /* إخفاء نص النوع (الجوال، واتساب) لتقليل الزحمة وزيادة التركيز على الرقم */
    .contact-links li a .text-xxs {
        display: none !important;
    }

    .contact-links li a .text-sm {
        color: #333 !important;
        font-size: 1rem !important;
    }

    /* 6. ترويق وثيقة العمل الحر والسفلي الأخير */
    #footer-last-c {
        align-items: center !important;
        width: 100% !important;
        margin-top: 20px !important;
    }
    
    .copyright-text p {
        text-align: center !important;
    }
}

/* ============================== */
/* ترويق الـ Header (Desktop & Mobile) */
/* ============================== */

/* 1. الحاوية الرئيسية للهيدر - إضافة ظل خفيف جداً وعمق */
header {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px); /* تأثير زجاجي عصري */
    box-shadow: 0 2px 15px rgba(0,0,0,0.05) !important;
    border-bottom: 1px solid #f5f5f5 !important;
}


/* 3. ترويق القائمة الرئيسية (Main Menu) */
.main-menu li a {
    font-weight: 600 !important;
    color: #444 !important;
    padding: 10px 15px !important;
    transition: all 0.3s ease !important;
    position: relative;
    font-size: 0.95rem !important;
}

.main-menu li a:hover {
    color: #e05174 !important;
}

/* إضافة خط سفلي أنيق عند الوقوف على روابط القائمة */
.main-menu li.root-level > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #e05174;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-menu li.root-level:hover > a::after {
    width: 70%;
}

/* 4. ترويق أيقونات الأكشن (السلة، البحث، المفضلة) */
.header-btn__icon {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    color: #e05174 !important;
}

.header-btn:hover .header-btn__icon {
    transform: translateY(-3px) scale(1.1);
    color: #c03d5c !important;
}

/* ترويق دائرة عدد المنتجات في السلة */
.s-cart-summary-count {
    background-color: #e05174 !important;
    border: 2px white solid !important;
    box-shadow: 0 2px 5px rgba(224, 81, 116, 0.4) !important;
}

/* 5. ترويق زر البحث */
.header-search salla-search .s-search-input {
    border: 1px solid #eee !important;
    background-color: #f9f9f9 !important;
    transition: all 0.3s ease !important;
}

.header-search salla-search .s-search-input:focus {
    border-color: #e05174 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(224, 81, 116, 0.1) !important;
}

/* 6. تعديلات خاصة بالجوال */
@media (max-width: 768px) {
    #mainnav .container {
        padding: 10px 15px !important;
    }

    /* توسيط العناصر في الهيدر الجوال */
    .header-buttons {
        gap: 15px !important;
    }

    /* ترويق أيقونة المنيو (الهامبرغر) */
    .mburger i {
        color: #e05174 !important;
        font-size: 1.8rem !important;
    }
}