/* Add custom CSS styles below */ 

body,
#app,
.app-inner {
    background-color: #ffffff !important;
}

:root{ --page-gutter:15px; }


main#main-content{
  padding-inline:var(--page-gutter) !important;
  box-sizing:border-box;
}

main#main-content section[component-id]{
  margin-inline:0 !important;
  padding-inline:0 !important;
  box-sizing:border-box;
}

main#main-content .container{
  padding-inline:0 !important;
  margin-inline:0 !important;
}

footer.store-footer {
    padding: 0 10px;
}

footer.ps-footer.ps-footer--redesigned {
    margin-top: 50px;
}

.ftr-col.ftr-col--about {
    margin-top: -20px;
}


/* ===== إلغاء max-width للـ container في المتجر كله ===== */
.container{
  max-width:100% !important;
}

/* ===== السكاشن: الأكثر مبيعاً + المكيفات + أحدث المنتجات ===== */
#best-offers-1-slider,
#best-offers-4-slider,
#best-offers-12-slider{
  position:relative;
}

/* ===== العنوان (نفس عنوان الأقسام) ===== */
#best-offers-1-slider .s-slider-block__title,
#best-offers-4-slider .s-slider-block__title,
#best-offers-12-slider .s-slider-block__title{
  position:static;
  display:block;
  text-align:center;
  margin-bottom:40px;
}
#best-offers-1-slider .s-slider-block__title-right,
#best-offers-4-slider .s-slider-block__title-right,
#best-offers-12-slider .s-slider-block__title-right{
  width:100%;
  padding-left:0 !important;
  padding-right:0 !important;
}
#best-offers-1-slider .s-slider-block__title h2,
#best-offers-4-slider .s-slider-block__title h2,
#best-offers-12-slider .s-slider-block__title h2{
  font-family:Alexandria,-apple-system,BlinkMacSystemFont,sans-serif;
  font-size:32px;
  font-weight:800;
  font-style:normal;
  line-height:1.2;
  letter-spacing:normal;
  color:#303341;
  text-align:center;
  margin:0 0 20px;
  padding:0;
}

/* ===== الفاصل بحجمه الطبيعي ===== */
#best-offers-1-slider .s-slider-block__title-right::after,
#best-offers-4-slider .s-slider-block__title-right::after,
#best-offers-12-slider .s-slider-block__title-right::after{
  content:url("https://cdn.files.salla.network/other/899584017/09330281-ef5a-4b79-8f95-00f0a538e698-original.png");
  display:block;
  margin:0 auto;
  line-height:0;
  text-align:center;
}

/* ===== الأسهم ===== */
#best-offers-1-slider .s-slider-block__title-left,
#best-offers-4-slider .s-slider-block__title-left,
#best-offers-12-slider .s-slider-block__title-left{
  position:absolute;
  top:40px;
  left:0;
}

/* ===== السلايدر ===== */
#best-offers-1-slider .s-slider-container,
#best-offers-4-slider .s-slider-container,
#best-offers-12-slider .s-slider-container{
  margin-inline:0 !important;
  padding-inline:0 !important;
  overflow:hidden;
}

/* ===== تابلت ===== */
@media (max-width:1024px){
  #best-offers-1-slider .s-slider-block__title,
  #best-offers-4-slider .s-slider-block__title,
  #best-offers-12-slider .s-slider-block__title{
    margin-bottom:30px;
  }
  #best-offers-1-slider .s-slider-block__title h2,
  #best-offers-4-slider .s-slider-block__title h2,
  #best-offers-12-slider .s-slider-block__title h2{
    font-size:24px;
    margin-bottom:15px;
  }
}

/* ===== موبايل ===== */
@media (max-width:767px){
  #best-offers-1-slider .s-slider-block__title,
  #best-offers-4-slider .s-slider-block__title,
  #best-offers-12-slider .s-slider-block__title{
    margin-bottom:25px;
  }
  #best-offers-1-slider .s-slider-block__title h2,
  #best-offers-4-slider .s-slider-block__title h2,
  #best-offers-12-slider .s-slider-block__title h2{
    font-size:22px;
    margin-bottom:15px;
  }
}

/* ===== الكارد ===== */
.s-product-card-entry{
  background:#FAFAFA;
  border:.52px solid #CCCCCC;
  border-radius:4px;
  box-shadow:none;
  overflow:hidden;
}
.s-product-card-entry .s-product-card-image{
  padding:8px 8px 0;
  position:relative;
}
.s-product-card-entry .s-product-card-image img{
  border-radius:2px;
}
.s-product-card-entry .s-product-card-content{
  padding:12px 8px 14px;
}

/* ===== الشارة (جديد) ===== */
.s-product-card-entry .s-product-card-promotion-title{
  position:absolute;
  top:18px;
  left:0;
  right:auto;
  background:#FF7A00;
  color:#fff;
  font-size:11px;
  font-weight:600;
  line-height:1;
  padding:5px 14px 5px 10px;
  border-radius:0;
  clip-path:polygon(0 0,100% 0,85% 100%,0 100%);
}

/* ===== التصنيف والعنوان ===== */
.s-product-card-entry .s-product-card-category{
  color:#666;
  font-size:13px;
  margin-bottom:4px;
}
.s-product-card-entry .s-product-card-content-title,
.s-product-card-entry .s-product-card-content-title a{
  font-size:15px;
  line-height:1.5;
  font-weight:500;
  color:#303341;
}

/* ===== السعر والتقييم ===== */
.s-product-card-entry .s-product-card-content-sub{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:14px;
}
.s-product-card-entry .s-product-card-price,
.s-product-card-entry .s-product-card-sale-price h4,
.s-product-card-entry .s-product-card-starting-price{
  font-family:'Open Sans',sans-serif;
  font-size:16.78px;
  line-height:25.17px;
  font-weight:600;
  letter-spacing:.5%;
  color:#FF7A00;
}
/* السعر القديم */
.s-product-card-entry .s-product-card-sale-price span,
.s-product-card-entry .s-product-card-sale-price del{
  font-family:'Open Sans',sans-serif;
  font-size:14.68px;
  line-height:16.78px;
  font-weight:500;
  color:#666666;
  text-decoration:line-through;
}

/* ===== جوال (الكارد) ===== */
@media (max-width:767px){
  .s-product-card-entry .s-product-card-content-title,
  .s-product-card-entry .s-product-card-content-title a{
    font-size:14px;
  }
}




.image-column{
  flex:0 0 var(--image-col-width);
  max-width:360px;
}
.image-column a{display:block;height:100%}
.side-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:12px;
}








/* الهيدر  */


/* ==========================================================================
   تخصيص هيدر متجر نور السعودية - النسخة المحسنة (مع حل مشكلة البحث وتقليل العرض)
   ========================================================================== */

/* 1. إعداد حاوية الهيدر الأساسية بـ z-index متوافق مع نوافذ سلة المنبثقة */
header.store-header {
    position: sticky !important;
    top: 0;
    z-index: 40 !important;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* ضمان ظهور نافذة البحث المنبثقة فوق الهيدر دائماً */
.s-search-modal,
.s-search-container,
salla-search .s-modal {
    z-index: 9999 !important;
}

/* إلغاء القفزة الافتراضية لهيدر سلة عند النزول بالصفحة */
#mainnav.fixed-pinned,
#mainnav.fixed-header {
    position: relative !important;
    top: auto !important;
    animation: none !important;
}

/* ==========================================================================
   تنسيقات الشاشات الكبيرة (Desktop - 1024px فأعلى)
   ========================================================================== */
@media (min-width: 1024px) {

    /* 2. تقليل سمك الشريط العلوي السماوي إلى 84px بدلاً من 105px */
    #mainnav.main-nav-container,
    #mainnav > .inner {
        height: auto !important;
        background: linear-gradient(
            to bottom,
            #dcf0fa 0px,
            #dcf0fa 84px,
            #ffffff 84px,
            #ffffff 100%
        ) !important;
        box-shadow: none !important;
    }

    /* تقليل العرض الكلي لمحتوى الهيدر لعدم التصاق اللوجو والأيقونات بحواف الشاشة */
    #mainnav .container {
        max-width: 1600px !important; /* يمكنك تقليلها إلى 1140px لو أردت الهيدر أضيق */
        margin-inline: auto !important;
        padding-inline: 24px !important;
    }

    /* 3. فك تداخل عناصر الهيدر وتوزيعها على صفين */
    #mainnav .container > .flex.items-stretch.justify-between.relative {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    #mainnav .container > .flex > .flex.items-center:first-child {
        display: contents !important;
    }

    /* 4. ضبط اللوجو بحجم واضح ومتناسق مع الارتفاع الجديد */
    #mainnav .navbar-brand {
        order: 1;
        height: 84px !important;
        display: flex !important;
        align-items: center !important;
        padding: 6px 0 !important;
        margin: 0 !important;
        max-width: none !important;
    }

    #mainnav .navbar-brand img {
        height: 66px !important;
        max-height: 70px !important;
        width: auto !important;
        max-width: 200px !important;
        object-fit: contain !important;
        transform: scale(1.06);
        transform-origin: right center;
    }

    /* 5. توسيط شريط البحث بدون transform حتى لا تتعطل نافذة البحث */
    .store-header .top-navbar {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin-inline: auto !important;
        transform: none !important; /* ضروري لعمل نافذة البحث بشكل سليم */
        height: 84px !important;
        width: 350px !important; /* تم تقليل عرض البحث من 460px إلى 350px */
        max-width: 32vw !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        z-index: 45 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .store-header .top-navbar .container {
        width: 100% !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    /* إخفاء العناصر الإضافية في الشريط العلوي */
    .store-header .top-navbar salla-menu,
    .store-header .top-navbar salla-contacts,
    .store-header .top-navbar salla-bullet-delivery-tag,
    .store-header .top-navbar .header-buttons {
        display: none !important;
    }

    .store-header .top-navbar .header-search {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    /* تصميم حقل البحث البيضاوي بحجم أنحف */
    .store-header .s-search-input {
        height: 40px !important;
        border-radius: 999px !important;
        background-color: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        padding-right: 40px !important;
        padding-left: 16px !important;
        font-size: 13.5px !important;
        color: #1e293b !important;
        box-shadow: 0 2px 5px rgba(15, 76, 117, 0.04) !important;
        cursor: pointer !important;
    }

    /* 6. تنسيق أيقونات المستخدم والسلة وإزالة المربع الأبيض خلف الصورة */
    #mainnav .container > .flex > .flex.items-center.justify-end {
        order: 2;
        height: 84px !important;
        margin: 0 !important;
        gap: 12px !important;
        display: flex !important;
        align-items: center !important;
    }

    .s-user-menu-trigger,
    .s-user-menu-wrapper,
    .s-user-menu-trigger-slot,
    .header-btn {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .s-user-menu-trigger-content,
    .s-user-menu-trigger-icon,
    .s-cart-summary-content {
        display: none !important;
    }

    #mainnav #s-cart-icon {
        background: transparent !important;
        border: none !important;
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #0f172a !important;
        font-size: 21px !important;
    }

    .s-cart-summary-count {
        background-color: #dc2626 !important;
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        min-width: 19px !important;
        height: 19px !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        top: 2px !important;
        right: 0px !important;
    }

    /* 7. تنسيق شريط الأقسام السفلي بارتفاع أنحف */
    #mainnav custom-main-menu {
        order: 3;
        width: 100% !important;
        flex: 0 0 100% !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-top: 1px solid rgba(226, 232, 240, 0.6);
    }

    #mainnav .main-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #mainnav .main-menu > li.root-level > a {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #334155 !important;
        padding: 10px 12px !important;
        white-space: nowrap !important;
        transition: color 0.2s ease !important;
    }

    #mainnav .main-menu > li.root-level > a:hover {
        color: #0f4c75 !important;
    }
}

/* ==========================================================================
   تحسين اللوجو والمظهر على الجوال والتابلت (أقل من 1024px)
   ========================================================================== */
@media (max-width: 1023px) {
    #mainnav.main-nav-container {
        background-color: #dcf0fa !important;
        height: 70px !important;
    }

    #mainnav .navbar-brand img {
        max-height: 54px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .store-header .top-navbar {
        background-color: #dcf0fa !important;
        border-bottom: 1px solid rgba(15, 76, 117, 0.08) !important;
        padding-bottom: 8px !important;
    }

    .store-header .top-navbar salla-menu,
    .store-header .top-navbar salla-contacts {
        display: none !important;
    }

    .store-header .s-search-input {
        background-color: #ffffff !important;
        border-radius: 999px !important;
    }
}




@media (max-width:767px){
  main#main-content > section[component-id]{
    margin-top:50px !important;
    margin-bottom:0 !important;
  }
  main#main-content > section[component-id]:first-child{
    margin-top:10px !important;
  }
}



@media (max-width: 768px) {
  .slider-container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch; /* سلاسة السحب في الآيفون */
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* إخفاء شريط التمرير في فايرفوكس */
  }

  /* إخفاء شريط التمرير في كروم وسفاري */
  .slider-container::-webkit-scrollbar {
    display: none;
  }

  .slider-track {
    transform: none !important;
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .slider-track .category-item {
    flex-shrink: 0 !important;
    scroll-snap-align: start;
    user-select: none;
    -webkit-user-drag: none;
  }
}







/* ===== صفحات المحتوى: من نحن + السياسات ===== */
.content--single-page:has(.about-nour),
.content--single-page:has(.policy-nour){
  margin-top:0 !important;
  padding-top:0 !important;
}

.content--single-page:has(.about-nour) > h1,
.content--single-page:has(.policy-nour) > h1{
  position:relative;
  text-align:center;
  font-family:Alexandria,-apple-system,BlinkMacSystemFont,sans-serif;
  font-size:34px;
  font-weight:800;
  line-height:1.3;
  color:#0b2237;
  margin:0 0 36px !important;
  padding-bottom:16px;
}
.content--single-page:has(.about-nour) > h1::after,
.content--single-page:has(.policy-nour) > h1::after{
  content:"";
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:70px;
  height:4px;
  border-radius:4px;
  background:#FF7A00;
}

/* ===== البريدكرامب ===== */
main:has(.about-nour) .breadcrumbs,
main:has(.policy-nour) .breadcrumbs{
  width:100%;
  max-width:100%;
  margin-inline:auto;
  padding:40px 0 32px !important;
  display:flex;
  justify-content:center;
}
main:has(.about-nour) .breadcrumbs salla-breadcrumb,
main:has(.policy-nour) .breadcrumbs salla-breadcrumb{
  display:flex;
  justify-content:center;
  width:100%;
}
main:has(.about-nour) .s-breadcrumb-wrapper,
main:has(.policy-nour) .s-breadcrumb-wrapper{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:0 auto;
  padding:8px 16px;
  background:#f6f8fb;
  border:1px solid #e5e9ef;
  border-radius:999px;
  list-style:none;
}
main:has(.about-nour) .s-breadcrumb-item,
main:has(.policy-nour) .s-breadcrumb-item{
  font-size:13.5px;
  font-weight:600;
  color:#0b2237;
}
main:has(.about-nour) .s-breadcrumb-item a,
main:has(.policy-nour) .s-breadcrumb-item a{
  color:#64748b;
  font-weight:500;
  transition:color .2s ease;
}
main:has(.about-nour) .s-breadcrumb-item a:hover,
main:has(.policy-nour) .s-breadcrumb-item a:hover{color:#FF7A00}
main:has(.about-nour) .s-breadcrumb-arrow,
main:has(.policy-nour) .s-breadcrumb-arrow{
  display:flex;
  align-items:center;
}
main:has(.about-nour) .s-breadcrumb-arrow svg,
main:has(.policy-nour) .s-breadcrumb-arrow svg{
  width:16px;
  height:16px;
}
main:has(.about-nour) .s-breadcrumb-arrow svg path,
main:has(.policy-nour) .s-breadcrumb-arrow svg path{fill:#FF7A00}

@media (max-width:1023px){
  .content--single-page:has(.about-nour) > h1,
  .content--single-page:has(.policy-nour) > h1{
    font-size:24px;
    margin-bottom:28px !important;
  }
  main:has(.about-nour) .breadcrumbs,
  main:has(.policy-nour) .breadcrumbs{
    padding:24px 0 20px !important;
  }
}


.ftr-back-to-top{display:none !important}



.content.content--single-page.w-full.lg\:w-10\/12.bg-white.rounded.p-6.lg\:p-8.mt-4.lg\:mt-12 {
    padding: 0 !important;
}







/* ======================================================== */
/*         Single Product Page (Nour KSA - Fixed & Pro)     */
/* ======================================================== */

/* 1. تنظيف الفراغات والألوان العشوائية (Inline Styles) من الوصف */
.product__description .article--main p:empty,
.product__description .article--main h2:empty,
.product__description .article--main h3:empty,
.product__description .article--main p:has(> br:only-child),
.product__description .article--main h2:has(> br:only-child),
.product__description .article--main h3:has(> br:only-child) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* إخفاء أي عناوين داخل الصندوق العلوي ليبقى قائمة نقاط صافية */
.product__description .article--main h1,
.product__description .article--main h2,
.product__description .article--main h3,
.product__description .article--main h4 {
    display: none !important;
}

/* توحيد ألوان النصوص وإلغاء الألوان الفاقعة المكتوبة من المحرر */
.product__description .article--main strong,
.custom-product-tabs-wrapper strong {
    color: inherit !important;
    background-color: transparent !important;
}

/* إصلاح التصاق الكلمات في المواصفات */
.product__description .article--main ul li strong + strong::before {
    content: " : ";
    font-weight: normal;
}

ul.s-social-share-list.a2a_kit.share {
    display: none;
}

/* ======================================================== */
/* 2. البريدكرامب (ديسكتوب + جوال)                           */
/* ======================================================== */
.container--breadcrumbs {
    max-width: 96% !important;
    width: 96% !important;
    margin: 16px auto 14px !important;   /* مسافة من فوق ومن تحت */
    padding: 0 15px !important;
}

.container--breadcrumbs nav.breadcrumbs {
    padding: 8px 10px !important;        /* مسافة جانبية عشان ما يلزقش في الحافة */
}

.container--breadcrumbs salla-breadcrumb .s-breadcrumb-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12.5px !important;
    color: #64748b !important;
    justify-content: flex-start !important;
}

.container--breadcrumbs salla-breadcrumb .s-breadcrumb-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.container--breadcrumbs salla-breadcrumb .s-breadcrumb-item a {
    color: #64748b !important;
    font-weight: 500 !important;
    transition: color 0.2s ease;
}

.container--breadcrumbs salla-breadcrumb .s-breadcrumb-item a:hover {
    color: #0b7ec8 !important;
}

.container--breadcrumbs salla-breadcrumb .s-breadcrumb-item:last-child {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.container--breadcrumbs salla-breadcrumb .s-breadcrumb-arrow svg {
    width: 13px !important;
    height: 13px !important;
}

/* 3. تخطيط الصفحة المضغوط (عمودين متجاورين في الكمبيوتر) */
@media (min-width: 1024px) {
    .container--product-details {
        max-width: 96% !important;
        width: 96% !important;
        padding: 0 15px !important;
        margin: 0 auto !important;
    }

    .container--product-details > div[id^="product-"] {
        display: grid !important;
        grid-template-columns: 47% 51.5% !important;
        justify-content: space-between !important;
        align-items: start !important;
        gap: 0 1.5% !important;
    }

    /* العمود الأيمن: بطاقة صورة المنتج */
    .container--product-details > div[id^="product-"] > div.sidebar {
        grid-column: 1 / 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        position: sticky !important;
        top: 90px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* العمود الأيسر: بطاقة بيانات المنتج والشراء (مضغوطة) */
    .container--product-details > div[id^="product-"] > div.main-content {
        grid-column: 2 / 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 18px !important;
        padding: 18px 22px !important;
        box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04) !important;
        box-sizing: border-box !important;

        /* شبكة داخلية مضغوطة لتقسيم السعر والموديل (يمين) والمواصفات (يسار) */
        display: grid !important;
        grid-template-columns: 42% 56% !important;
        grid-template-rows: auto auto auto !important;
        justify-content: space-between !important;
        align-items: start !important;
        row-gap: 10px !important;
    }
}

/* ======================================================== */
/* 4. إصلاح السلايدر جذرياً + الصور المصغرة طولياً في الجنب   */
/* ======================================================== */
div[id^="product-"] > div.sidebar salla-slider.details-slider {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 18px !important;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04) !important;
    position: relative !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

div[id^="product-"] > div.sidebar salla-slider.details-slider > .s-slider-block__title,
div[id^="product-"] > div.sidebar salla-slider.details-slider .btn--wishlist {
    display: none !important;
}

div[id^="product-"] > div.sidebar salla-slider.details-slider::after {
    content: "🛡️ منتج أصلي";
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

/* حاوية السلايدر الرئيسي: ترك العرض يحسب تلقائياً بدون كسر translate3d */
div[id^="product-"] > div.sidebar .s-slider-container {
    width: calc(100% - 88px) !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 410px !important;
    margin: 0 !important;
    overflow: hidden !important;
}

div[id^="product-"] > div.sidebar .s-slider-container .swiper-wrapper {
    height: 410px !important;
    align-items: center !important;
}

/* مهم جداً: عدم فرض width: 100% !important هنا حتى لا يكسر حسابات Swiper */
div[id^="product-"] > div.sidebar .swiper-slide.magnify-wrapper {
    height: 410px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

div[id^="product-"] > div.sidebar .swiper-slide.magnify-wrapper img {
    max-height: 380px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

/* حاوية الصور المصغرة الجانبية */
div[id^="product-"] > div.sidebar .s-slider-thumbs {
    width: 74px !important;
    flex: 0 0 74px !important;
    max-height: 410px !important;
    margin: 0 !important;
    padding: 0 !important;
}

div[id^="product-"] > div.sidebar .s-slider-thumbs-container {
    height: 100% !important;
    max-height: 410px !important;
    padding: 2px !important;
}

div[id^="product-"] > div.sidebar .s-slider-thumbs-container .swiper-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    height: auto !important;
    max-height: 400px !important;
    width: 100% !important;
    transform: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

div[id^="product-"] > div.sidebar .s-slider-thumbs-container .swiper-slide {
    width: 66px !important;
    height: 66px !important;
    min-height: 66px !important;
    max-height: 66px !important;
    margin: 0 !important;
    padding: 4px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

div[id^="product-"] > div.sidebar .s-slider-thumbs-container .swiper-slide:hover,
div[id^="product-"] > div.sidebar .s-slider-thumbs-container .swiper-slide.swiper-slide-thumb-active {
    border-color: #0b7ec8 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(11, 126, 200, 0.15) !important;
}

div[id^="product-"] > div.sidebar .s-slider-thumbs-container .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    max-height: 54px !important;
    object-fit: contain !important;
    background: transparent !important;
}

/* ======================================================== */
/* 5. ترتيب وتنسيق عناصر البطاقة اليسرى (مضغوطة)             */
/* ======================================================== */
div[id^="product-"] > div.main-content > salla-hook {
    display: none !important;
}

/* أ. عنوان المنتج H1 */
div[id^="product-"] > div.main-content > h1[data-testid="store-product-title"] {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    color: #0f172a !important;
    padding: 0 0 10px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* ب. السعر العلوي + شارة "متوفر" */
div[id^="product-"] > div.main-content > div[data-testid="store-product-price"] {
    grid-column: 1 / 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 2px 0 !important;
    margin: 0 !important;
    align-self: start !important;
}

div[id^="product-"] > div.main-content > div[data-testid="store-product-price"] p {
    font-size: 26px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    line-height: 1.1 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
}

div[id^="product-"] > div.main-content > div[data-testid="store-product-price"] p i {
    font-size: 18px !important;
    color: #16669e !important;
}

div[id^="product-"] > div.main-content > div[data-testid="store-product-price"] .gap-4.flex::after {
    content: "● متوفر";
    font-size: 10.5px !important;
    color: #059669 !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    padding: 2px 8px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    margin-right: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    align-self: center !important;
}

div[id^="product-"] > div.main-content > div[data-testid="store-product-price"]::after {
    content: "شامل ضريبة القيمة المضافة";
    display: block;
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
}

/* ج. صندوق الفئة ورقم الموديل المنقط */
div[id^="product-"] > div.main-content > .product-sku-wrapper {
    grid-column: 1 / 2 !important;
    grid-row: 3 !important;
    background: #f8fafc !important;
    border: 1.5px dashed #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 7px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    align-self: end !important;
}

div[id^="product-"] > div.main-content > .product-sku-wrapper > div {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 7px !important;
    padding: 5px 10px !important;
    display: flex !important;
    grid-template-columns: none !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 600 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

div[id^="product-"] > div.main-content > .product-sku-wrapper .product-sku,
div[id^="product-"] > div.main-content > .product-sku-wrapper .product-cat-val {
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 12px !important;
}

/* د. بطاقة "المواصفات" النقطية (العمود الأيسر الداخلي) */
div[id^="product-"] > div.main-content > div.product__description {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 4 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.product__description .article--main {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.015) !important;
}

.product__description .article--main ul {
    list-style: none !important;
    padding: 0 0 0 6px !important;
    margin: 0 !important;
    max-height: 148px !important;
    overflow-y: auto !important;
}

.product__description .article--main ul::-webkit-scrollbar {
    width: 4px;
}
.product__description .article--main ul::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.product__description .article--main ul::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.product__description .article--main ul li {
    position: relative !important;
    padding: 4px 20px 4px 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #334155 !important;
    border-bottom: 1px dashed #f1f5f9 !important;
}

.product__description .article--main ul li:last-child {
    border-bottom: none !important;
}

.product__description .article--main ul li::before {
    content: "✓" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    right: 0 !important;
    top: 5px !important;
    width: 14px !important;
    height: 14px !important;
    background: #e0f2fe !important;
    color: #0b7ec8 !important;
    border-radius: 50% !important;
    font-size: 9px !important;
    font-weight: 900 !important;
}

/* هـ. تابي للتقسيط + الفورم + خيارات المنتج */
div[id^="product-"] > div.main-content > salla-installment,
div[id^="product-"] > div.main-content > salla-cashback-banner,
div[id^="product-"] > div.main-content > form.product-form,
div[id^="product-"] > div.main-content > salla-verified-review,
div[id^="product-"] > div.main-content > section,
div[id^="product-"] > div.main-content > salla-bought-together,
div[id^="product-"] > div.main-content > salla-quick-order {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 0 !important;
}

salla-installment #tabbyPromo,
salla-installment .SnippetWrapper__SnippetWrapper__Content--ac643 {
    max-width: 100% !important;
    width: 100% !important;
    min-height: 48px !important;
}

salla-product-options .s-product-options-option-container {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
}

salla-product-options .s-product-options-option-label {
    font-size: 12.5px !important;
    color: #0f172a !important;
    margin-bottom: 6px !important;
    display: flex !important;
    justify-content: space-between !important;
}

salla-product-options select.s-form-control {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    width: 100% !important;
}

form.product-form > section:has(.price-wrapper) {
    display: none !important;
}

/* ======================================================== */
/* 6. صندوق الشراء المدمج (تطابق تام بين الزرين + Apple Pay) */
/* ======================================================== */
form.product-form .sticky-product-bar {
    position: static !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.015) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.sticky-product-bar__quantity {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 0 !important;
}

.sticky-product-bar__quantity > label.form-label {
    display: none !important;
}

.sticky-product-bar__quantity salla-quantity-input {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

.sticky-product-bar__quantity .s-quantity-input-container {
    width: 100% !important;
    height: 40px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

.sticky-product-bar__quantity .s-quantity-input-button {
    width: 42px !important;
    height: 100% !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    border: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.sticky-product-bar__quantity .s-quantity-input-input {
    flex: 1 !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    border: none !important;
}

.custom-qty-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
}

.custom-qty-actions salla-button,
.custom-qty-actions salla-social-share {
    display: inline-flex !important;
    margin: 0 !important;
}

.custom-qty-actions button {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.custom-qty-actions button:hover {
    border-color: #0b7ec8 !important;
    color: #0b7ec8 !important;
}

/* حاوية أزرار الشراء (تطابق 100% في الطول والعرض والمحاذاة) */
form.product-form .sticky-product-bar salla-add-product-button {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
}

form.product-form .sticky-product-bar salla-add-product-button .s-add-product-button-main {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
}

form.product-form .sticky-product-bar salla-add-product-button .s-add-product-button-main > salla-button,
form.product-form .sticky-product-bar salla-add-product-button .s-add-product-button-main > salla-mini-checkout-widget {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* زر أضف إلى السلة (نفس مقاس اشتر الآن بالمللي: 42px بدون أي margin علوي) */
form.product-form .sticky-product-bar salla-add-product-button salla-button button.s-button-element {
    background-color: #0b7ec8 !important;
    border: 1.5px solid #0b7ec8 !important;
    color: #ffffff !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

form.product-form .sticky-product-bar salla-add-product-button salla-button .s-button-text {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.s-add-product-button-mini-checkout-content {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    color: #0b7ec8 !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.s-add-product-button-mini-checkout-content svg {
    width: 17px !important;
    height: 17px !important;
    fill: #0b7ec8 !important;
}

/* إجبار زر Apple Pay على الظهور دائماً في الكمبيوتر والموبايل */
form.product-form .sticky-product-bar salla-quick-buy,
form.product-form .sticky-product-bar apple-pay-button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
}

/* تنسيق صندوق "جربت هذا المنتج؟ شارك تجربتك" */
salla-verified-review .s-verified-review-container {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    margin-top: 2px !important;
}

/* ======================================================== */
/* 7. قسم التبويبات الاحترافي (تقليل الـ border-radius)     */
/* ======================================================== */
.custom-product-tabs-wrapper {
    max-width: 96% !important;
    width: 96% !important;
    margin: 30px auto 45px !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

.custom-tabs-nav-Wrap {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
}

.custom-tabs-header {
    background: #eef2f6 !important;
    padding: 5px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: 1px solid #e2e8f0 !important;
    flex-wrap: wrap !important;
}

.custom-tab-btn {
    background: transparent !important;
    border: none !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 9px 24px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    font-family: inherit !important;
    outline: none !important;
}

.custom-tab-btn:hover {
    color: #0f172a !important;
}

.custom-tab-btn.active {
    background: #ffffff !important;
    color: #0b7ec8 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

.custom-tabs-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 32px 36px !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.03) !important;
}

.custom-tab-pane {
    display: none;
    animation: fadeInTab 0.35s ease forwards;
}

.custom-tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-main-seo-title {
    text-align: center !important;
    color: #16669e !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    margin: 0 0 24px 0 !important;
    line-height: 1.5 !important;
}

#tab-description .tab-desc-body h2 {
    display: none !important;
}

#tab-description h3 {
    color: #0b7ec8 !important;
    font-size: 17.5px !important;
    font-weight: 800 !important;
    margin: 22px 0 8px 0 !important;
    line-height: 1.5 !important;
}

#tab-description p {
    color: #475569 !important;
    font-size: 14.5px !important;
    line-height: 1.85 !important;
    margin: 0 0 14px 0 !important;
    font-weight: 500 !important;
}

#tab-description p strong {
    font-weight: 500 !important;
}

.faq-item-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 10px;
}

.faq-item-box h4 {
    color: #16669e;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 6px 0;
}

.faq-item-box p {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.additional-info-table {
    width: 100%;
    border-collapse: collapse;
}

.additional-info-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.additional-info-table tr:last-child {
    border-bottom: none;
}

.additional-info-table th,
.additional-info-table td {
    padding: 10px 14px;
    text-align: right;
    font-size: 13.5px;
}

.additional-info-table th {
    width: 30%;
    color: #64748b;
    font-weight: 700;
    background: #f8fafc;
    border-radius: 8px;
}

.additional-info-table td {
    color: #0f172a;
    font-weight: 600;
}

/* ======================================================== */
/* 8. التجاوب الكامل مع شاشات الجوال والتابلت                */
/* ======================================================== */
@media (max-width: 1023px) {
    .container--product-details {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    .container--product-details > div[id^="product-"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }

    div[id^="product-"] > div.sidebar,
    div[id^="product-"] > div.main-content {
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
        padding: 14px !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    div[id^="product-"] > div.sidebar salla-slider.details-slider {
        flex-direction: column !important;
        padding: 8px !important;
        border: none !important;
        box-shadow: none !important;
    }

    div[id^="product-"] > div.sidebar .s-slider-container {
        width: 100% !important;
        height: 270px !important;
    }

    div[id^="product-"] > div.sidebar .s-slider-container .swiper-wrapper,
    div[id^="product-"] > div.sidebar .swiper-slide.magnify-wrapper {
        height: 270px !important;
    }

    div[id^="product-"] > div.sidebar .swiper-slide.magnify-wrapper img {
        max-height: 250px !important;
    }

    div[id^="product-"] > div.sidebar .s-slider-thumbs {
        width: 100% !important;
        flex: none !important;
        max-height: 70px !important;
    }

    div[id^="product-"] > div.sidebar .s-slider-thumbs-container .swiper-wrapper {
        flex-direction: row !important;
        justify-content: center !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    div[id^="product-"] > div.sidebar .s-slider-thumbs-container .swiper-slide {
        width: 58px !important;
        height: 58px !important;
        min-height: 58px !important;
        flex: 0 0 58px !important;
    }

    .custom-product-tabs-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    .custom-tabs-card {
        padding: 20px 16px !important;
        border-radius: 14px !important;
    }

    .tab-main-seo-title {
        font-size: 17px !important;
    }

    .custom-tab-btn {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
}

/* ======================================================== */
/* 9. تحسين الجوال: البريدكرامب + صورة المنتج كبيرة          */
/*    (لازم يفضل آخر قسم في الملف)                           */
/* ======================================================== */
@media (max-width: 1023px) {

    /* ---------- البريدكرامب: سطر واحد نضيف ---------- */
    .container--breadcrumbs {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 8px !important;
        padding: 0 12px !important;
    }

    .container--breadcrumbs nav.breadcrumbs {
        padding: 6px 0 !important;
    }

    .container--breadcrumbs salla-breadcrumb .s-breadcrumb-wrapper {
        flex-wrap: nowrap !important;
        gap: 6px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 0 !important;
    }

    .container--breadcrumbs salla-breadcrumb .s-breadcrumb-wrapper::-webkit-scrollbar {
        display: none;
    }

    .container--breadcrumbs salla-breadcrumb .s-breadcrumb-item {
        flex-shrink: 0 !important;
        gap: 6px !important;
    }

    /* آخر عنصر (اسم المنتج): قصّه بنقط بدل ما ينزل سطر جديد */
    .container--breadcrumbs salla-breadcrumb .s-breadcrumb-item:last-child {
        max-width: 150px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }

    .container--breadcrumbs salla-breadcrumb .s-breadcrumb-arrow svg {
        width: 12px !important;
        height: 12px !important;
    }

    /* ---------- صورة المنتج: أكبر وأوضح بأقل padding ---------- */
    div[id^="product-"] > div.sidebar {
        padding: 6px !important;
        border-radius: 14px !important;
    }

    div[id^="product-"] > div.sidebar salla-slider.details-slider {
        padding: 2px !important;
        gap: 6px !important;
    }

    div[id^="product-"] > div.sidebar .s-slider-container {
        height: 340px !important;
    }

    div[id^="product-"] > div.sidebar .s-slider-container .swiper-wrapper,
    div[id^="product-"] > div.sidebar .swiper-slide.magnify-wrapper {
        height: 340px !important;
    }

    div[id^="product-"] > div.sidebar .swiper-slide.magnify-wrapper img {
        max-height: 335px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    div[id^="product-"] > div.sidebar salla-slider.details-slider::after {
        top: 8px !important;
        left: 8px !important;
        font-size: 10.5px !important;
        padding: 3px 8px !important;
    }

    div[id^="product-"] > div.sidebar .s-slider-thumbs {
        max-height: 56px !important;
    }

    div[id^="product-"] > div.sidebar .s-slider-thumbs-container {
        padding: 0 !important;
    }

    div[id^="product-"] > div.sidebar .s-slider-thumbs-container .swiper-slide {
        width: 50px !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        flex: 0 0 50px !important;
        padding: 2px !important;
    }
}






/* =========================================================================
   نور السعودية — صفحة المدونة + صفحة المقالة
   نسخة من تصميم مدونة رفوف دمدم، بهوية نور (كحلي #23265a + برتقالي #fd7b00)
   CSS فقط — من غير أي JS.
   الصقه في: تخصيص الثيم > Custom CSS
   ========================================================================= */

:root {
  --nk-navy: #23265a;
  --nk-navy-2: #3b3f86;
  --nk-orange: #fd7b00;
  --nk-soft: #f0f0f8;
  --nk-soft-2: #f8f8fc;
  --nk-line: #dcdcec;
  --nk-border: #eef2f6;

  --nk-art-img: 44%;        /* عرض صورة المقالة جنب النص (ديسكتوب) */
  --nk-sticky-top: 110px;   /* بعد الصورة عن فوق وهي ثابتة — زوده لو الهيدر ثابت وطويل */
}


/* =========================================================================
   1) صفحة المدونة (قائمة المقالات)
   بنعرف الصفحة من وجود #filters-menu (سايدبار التصنيفات)
   ========================================================================= */

/* 1.1 إخفاء: السايدبار، فلتر التصنيفات بالموبايل، والسلايدر الكبير */
main#main-content:has(#filters-menu) #filters-menu,
main#main-content:has(#filters-menu) .cat-filter,
main#main-content:has(#filters-menu) #blog-home-slider {
  display: none !important;
}

/* 1.2 المحتوى ياخد العرض كله بعد إخفاء السايدبار */
#filters-menu ~ .main-content {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* 1.3 بوكس (المسار + عنوان "المدونة") في النص */
main#main-content:has(#filters-menu) .center-between {
  justify-content: center !important;
}

main#main-content:has(#filters-menu) nav.breadcrumbs {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: fit-content !important;
  min-width: 300px;
  max-width: 92%;
  margin: 28px auto 38px !important;
  padding: 16px 36px 20px !important;
  background: #fff;
  border: 1px solid var(--nk-border);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

main#main-content:has(#filters-menu) nav.breadcrumbs .s-breadcrumb-wrapper {
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* عنوان "المدونة" + الخط البرتقالي تحته */
main#main-content:has(#filters-menu) nav.breadcrumbs::after {
  content: "المدونة";
  order: 2;
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.6;
  color: var(--nk-navy);
}
main#main-content:has(#filters-menu) nav.breadcrumbs::before {
  content: "";
  order: 3;
  width: 45px;
  height: 4px;
  margin-top: 6px;
  background: var(--nk-orange);
  border-radius: 4px;
}

/* 1.4 شبكة 3 كروت في الصف */
#filters-menu ~ .main-content salla-infinite-scroll {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch;
  width: 100%;
}

/* 1.5 الكارت */
#filters-menu ~ .main-content .post-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #fff !important;
  border: 1px solid var(--nk-border);
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05) !important;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
#filters-menu ~ .main-content .post-entry:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(35, 38, 90, 0.14) !important;
  border-color: var(--nk-line);
}

/* 1.6 الصورة — تظهر كاملة بدون قص */
#filters-menu ~ .main-content .post-entry__image {
  height: auto !important;
  aspect-ratio: 16 / 9;
  background: #f8fafc !important;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
  flex-shrink: 0;
}
#filters-menu ~ .main-content .post-entry__image:hover {
  opacity: 1;
}
#filters-menu ~ .main-content .post-entry__image img {
  width: 100%;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
#filters-menu ~ .main-content .post-entry:hover .post-entry__image img {
  transform: scale(1.03);
}

/* 1.7 محتوى الكارت */
#filters-menu ~ .main-content .post-entry > div.flex-1 {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px !important;
  text-align: right;
}

/* الميتا: نخفي التاريخ ونسيب اسم الكاتب صغير (زي القديم) */
#filters-menu ~ .main-content .post-entry > div.flex-1 > div:first-child {
  margin-bottom: 8px !important;
  font-size: 12px !important;
  color: #64748b !important;
}
#filters-menu ~ .main-content .post-entry > div.flex-1 > div:first-child > div:has(.sicon-calendar-date) {
  display: none !important;
}
#filters-menu ~ .main-content .post-entry > div.flex-1 > div:first-child a {
  position: relative;
  z-index: 2; /* فوق اللينك الممتد على الكارت كله */
  font-weight: 600;
  color: #64748b !important;
  text-decoration: none;
}

/* العنوان: سطرين ثابتين */
#filters-menu ~ .main-content .post-entry__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
  margin: 0 0 10px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
}
#filters-menu ~ .main-content .post-entry__title a {
  color: #0f172a !important;
  text-decoration: none;
  transition: color 0.2s ease;
}
#filters-menu ~ .main-content .post-entry:hover .post-entry__title a {
  color: var(--nk-navy) !important;
}
/* اللينك يغطي الكارت كله (الكارت كله بقى قابل للضغط) */
#filters-menu ~ .main-content .post-entry__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* الوصف: 3 سطور ثابتة */
#filters-menu ~ .main-content .post-entry > div.flex-1 > p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 5.25em;
  margin: 0 0 18px !important;
  font-size: 13.5px !important;
  line-height: 1.75 !important;
  color: #475569 !important;
}

/* زر "اقرأ المزيد" — شكل بس، الضغط شغال من اللينك الممتد */
#filters-menu ~ .main-content .post-entry > div.flex-1::after {
  content: "اقرأ المزيد";
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--nk-navy);
  background: var(--nk-soft);
  border: 1px solid var(--nk-line);
  border-radius: 10px;
  transition: all 0.25s ease;
}
#filters-menu ~ .main-content .post-entry:hover > div.flex-1::after {
  background: var(--nk-navy);
  border-color: var(--nk-navy);
  color: #fff;
  transform: translateX(-3px);
}

/* 1.8 تجاوب */
@media (max-width: 1024px) {
  #filters-menu ~ .main-content salla-infinite-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}
@media (max-width: 640px) {
  #filters-menu ~ .main-content salla-infinite-scroll {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  main#main-content:has(#filters-menu) nav.breadcrumbs {
    min-width: 0;
    width: 100% !important;
    max-width: 100%;
    padding: 14px 16px 18px !important;
    box-sizing: border-box;
  }
  main#main-content:has(#filters-menu) nav.breadcrumbs::after {
    font-size: 22px;
  }
  #filters-menu ~ .main-content .post-entry__title,
  #filters-menu ~ .main-content .post-entry > div.flex-1 > p {
    min-height: 0;
  }
}


/* =========================================================================
   2) صفحة المقالة
   بنعرفها من: .blog-category اللي جواه <article> مباشرة
   ========================================================================= */

/* 2.1 إخفاء الأسايد الفاضي اللي كان واخد مساحة على الشمال */
main#main-content:has(.blog-category > article) aside[aria-label="Sidebar"] {
  display: none !important;
}

/* 2.2 التخطيط على الديسكتوب: النص يمين + الصورة شمال (ثابتة وإنت بتقرأ) */
@media (min-width: 1024px) {
  .blog-category:has(> article) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--nk-art-img));
    column-gap: 40px;
    row-gap: 0;
    align-items: start;
    padding: 0 !important;
    background: transparent !important;
  }
  .blog-category:has(> article) > * {
    grid-column: 1;
  }
  .blog-category:has(> article) > img {
    grid-column: 2;
    grid-row: 1 / span 10;
    position: sticky;
    top: var(--nk-sticky-top);
  }
}
/* لو عايز الصورة فوق النص (زي الموبايل) على الديسكتوب كمان، امسح بلوك 2.2 كله */

/* 2.3 العنوان والميتا والصورة */
.blog-category:has(> article) > h1 {
  margin: 0 0 14px !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  color: var(--nk-navy);
}
.blog-category:has(> article) > div.inline-flex {
  margin-bottom: 26px !important;
  font-size: 13px;
}
.blog-category:has(> article) > img {
  width: 100% !important;
  height: auto !important;
  margin: 0 0 24px !important;
  object-fit: contain !important;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* 2.4 نص المقالة — الأساس */
.blog-category > article {
  direction: rtl;
  text-align: right;
  margin-bottom: 0 !important;
  font-size: 16px !important;
  line-height: 2 !important;
  color: #374151;
}
.blog-category > article *,
.blog-category > article *::before,
.blog-category > article *::after {
  box-sizing: border-box;
}

/* الـ wrapper اللي فيه max-width:900px inline */
.blog-category > article > div[dir="rtl"] {
  max-width: none !important;
  margin: 0 !important;
}

/* تنظيف ستايلات اللصق (لون أسود / خلفية على كل span) */
.blog-category > article span,
.blog-category > article strong,
.blog-category > article b,
.blog-category > article em {
  background-color: transparent !important;
  color: inherit !important;
}

.blog-category > article p {
  margin: 0 0 16px;
  text-align: right !important;
}
/* الفقرات الفاضية */
.blog-category > article p:empty,
.blog-category > article p:has(> br:only-child) {
  display: none;
}

.blog-category > article hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}
.blog-category > article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 2.5 العناوين
   الـ H1 جوه المقالة مخفي: عنوان الصفحة فوق هو الـ H1 (منعًا للتكرار) */
.blog-category > article h1 {
  display: none !important;
}
.blog-category > article h2,
.blog-category > article h3,
.blog-category > article h4 {
  font-weight: 700;
  color: var(--nk-navy);
  text-align: right !important;
}
.blog-category > article h2 {
  margin: 38px 0 14px;
  padding-inline-start: 14px;
  border-inline-start: 5px solid var(--nk-orange);
  font-size: 24px;
  line-height: 1.5;
}
.blog-category > article h3 {
  margin: 26px 0 10px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--nk-navy-2);
}
.blog-category > article h4 {
  margin: 20px 0 8px;
  font-size: 17px;
  line-height: 1.6;
}

/* 2.6 القوائم */
.blog-category > article ul,
.blog-category > article ol {
  margin: 0 0 18px;
  padding-inline-start: 24px;
}
.blog-category > article ul { list-style: disc; }
.blog-category > article ol { list-style: decimal; }
.blog-category > article li {
  margin-bottom: 8px;
  padding-inline-start: 4px;
}
.blog-category > article li::marker {
  color: var(--nk-orange);
  font-weight: 700;
}

/* 2.7 الروابط
   روابط واتساب (wa.me) والاتصال (tel:) هي أزرار CTA ليها ستايلها inline، فمستثناة من ستايل الروابط العادي */
.blog-category > article a:not([href^="https://wa.me/"]):not([href^="tel:"]),
.blog-category > article a:not([href^="https://wa.me/"]):not([href^="tel:"]) span {
  color: var(--nk-navy) !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--nk-orange);
  text-underline-offset: 4px;
}
.blog-category > article a:not([href^="https://wa.me/"]):not([href^="tel:"]):hover,
.blog-category > article a:not([href^="https://wa.me/"]):not([href^="tel:"]):hover span {
  color: var(--nk-orange) !important;
}

/* أزرار CTA (واتساب + اتصال) */
.blog-category > article a[href^="https://wa.me/"],
.blog-category > article a[href^="tel:"] {
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.blog-category > article a[href^="https://wa.me/"]:hover,
.blog-category > article a[href^="tel:"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(35, 38, 90, 0.45);
  filter: brightness(1.05);
}

/* 2.8 الجداول (سلة بتشيل الـ wrapper والـ overflow من الـ inline، فبنرجعهم هنا) */
.blog-category > article table {
  width: 100% !important;
  margin: 24px 0;
  border: 1px solid var(--nk-line) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  font-size: 15px;
  line-height: 1.7;
}
.blog-category > article th,
.blog-category > article td {
  padding: 12px 14px !important;
  text-align: right !important;
  vertical-align: middle !important;
  border: 0 !important;
  border-bottom: 1px solid var(--nk-line) !important;
  border-inline-start: 1px solid var(--nk-line) !important;
}
.blog-category > article th:first-child,
.blog-category > article td:first-child {
  border-inline-start: 0 !important;
}
.blog-category > article tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* الهيدر: thead عادي، أو أول صف لو الجدول من غير thead */
.blog-category > article table thead th,
.blog-category > article table:not(:has(thead)) tbody tr:first-child td,
.blog-category > article table:not(:has(thead)) tbody tr:first-child th {
  background: var(--nk-navy) !important;
  color: #fff !important;
  font-weight: 700;
  border-bottom: 0 !important;
  border-inline-start: 1px solid var(--nk-navy-2) !important;
}
.blog-category > article table thead th:first-child,
.blog-category > article table:not(:has(thead)) tbody tr:first-child td:first-child {
  border-inline-start: 0 !important;
}

/* أول عمود بولد + تظليل بالتبادل + هوفر */
.blog-category > article tbody td:first-child {
  font-weight: 700;
  color: var(--nk-navy);
}
.blog-category > article tbody tr:nth-child(even) td {
  background: var(--nk-soft-2);
}
.blog-category > article tbody tr:hover td {
  background: var(--nk-soft);
}
.blog-category > article td.price {
  font-weight: 700;
  color: #047857;
  white-space: nowrap;
}
.blog-category > article table a { font-weight: 600; }

/* 2.9 مكونات للمقالات المكتوبة بكلاسات (اختياري للسيو) */
.blog-category > article .table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}
.blog-category > article .table-wrap table { margin: 0; }

.blog-category > article .intro {
  margin: 0 0 24px;
  padding: 16px 18px;
  background: var(--nk-soft-2);
  border-inline-start: 4px solid var(--nk-orange);
  border-radius: 8px;
}
.blog-category > article .intro p:last-child { margin-bottom: 0; }

.blog-category > article .note {
  margin: 16px 0 20px;
  padding: 12px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #78350f;
}

.blog-category > article .product-type,
.blog-category > article .faq-item {
  margin: 0 0 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.blog-category > article .product-type h3,
.blog-category > article .faq-item h3 { margin-top: 0; }
.blog-category > article .product-type p:last-child,
.blog-category > article .faq-item p:last-child { margin-bottom: 0; }

.blog-category > article .conclusion {
  margin: 28px 0 0;
  padding: 16px 18px;
  background: var(--nk-soft);
  border-radius: 10px;
}
.blog-category > article .conclusion p:last-child { margin-bottom: 0; }

/* 2.10 موبايل وتابلت */
@media (max-width: 1023px) {
  .blog-category:has(> article) > h1 { font-size: 24px !important; }
}
@media (max-width: 640px) {
  .blog-category > article {
    font-size: 15px !important;
    line-height: 1.9 !important;
  }
  .blog-category > article h2 { font-size: 21px; margin-top: 30px; }
  .blog-category > article h3 { font-size: 17px; }

  /* الجداول: سكرول أفقي بدل ما تكسر الصفحة */
  .blog-category > article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }
  .blog-category > article table > thead,
  .blog-category > article table > tbody {
    display: table;
    width: 100%;
    min-width: 480px;
    table-layout: fixed;
  }
  .blog-category > article th,
  .blog-category > article td { padding: 10px !important; }

  /* لو الجدول جوه .table-wrap، الـ wrapper هو اللي بيسكرول */
  .blog-category > article .table-wrap table { display: table; min-width: 520px; overflow: visible; }
  .blog-category > article .table-wrap table > thead { display: table-header-group; min-width: 0; width: auto; }
  .blog-category > article .table-wrap table > tbody { display: table-row-group; min-width: 0; width: auto; }

  .blog-category > article .product-type,
  .blog-category > article .faq-item,
  .blog-category > article .intro,
  .blog-category > article .conclusion { padding: 14px; }
}

/* =========================================================================
   3) تعديلات: ألوان أزرار CTA + الموبايل (padding 5px + سكرول الجدول)
   ========================================================================= */

/* زرار "اطلب الآن" (واتساب): خط أبيض */
.blog-category > article a[href^="https://wa.me/"],
.blog-category > article a[href^="https://wa.me/"] * {
  color: #ffffff !important;
  text-decoration: none !important;
}
/* زرار "اتصل بنا": خط كحلي */
.blog-category > article a[href^="tel:"],
.blog-category > article a[href^="tel:"] * {
  color: #23265a !important;
  text-decoration: none !important;
}

@media (max-width: 767px) {
  /* padding 5px يمين وشمال في صفحة المقالة (غيّر الرقم زي ما تحب) */
  main#main-content:has(.blog-category > article) > .container {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}

@media (max-width: 640px) {
  /* الجدول بيسكرول أفقي (الـ overflow:hidden اللي inline كان مانعه) */
  .blog-category > article table {
    display: block !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }
}