/* ========== TMN Product Details – Base ========== */
#product-details-tab{
  --tmn-primary:#57068c;
  --tmn-accent:#009b8a;
  --tmn-text:#1f2937;
  --tmn-sub:#6b7280;
  --tmn-border:#e9e4f2;
  --tmn-head:#faf7ff;
  --tmn-card:#FFF7E5;
  --tmn-item:#FFFCF2;
  direction: rtl;
  color: var(--tmn-text);
  font-size:16px;
  line-height:1.9;
}
#product-details-tab p{ margin:.4rem 0; }
#product-details-tab p:empty{ display:none; }
#product-details-tab .ql-align-right{ text-align:right; }

/* ========== أول سطر (جملة رنانة) ========== */
#product-details-tab > p:first-of-type {
  text-align:center;
  background: linear-gradient(135deg, #FAF7FF, #FFFFFF);
  border: 2px solid #E9E4F2;
  border-radius: 16px;
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #57068C;
  box-shadow: 0 4px 25px rgba(87,6,140,.08);
  margin: 1.2rem auto 1.8rem;
  width: fit-content;
  max-width: 90%;
  position: relative;
  line-height:1.9;
}
#product-details-tab > p:first-of-type::before,
#product-details-tab > p:first-of-type::after{
  content:"✨";
  position:absolute;
  font-size:1.1rem;
  opacity:.8;
}
#product-details-tab > p:first-of-type::before{
  top:-12px; right:-10px;
}
#product-details-tab > p:first-of-type::after{
  bottom:-12px; left:-10px;
}

/* ========== بطاقة تقنية الاتصال (أول UL) ========== */
#product-details-tab > ul:first-of-type{
  position:relative;
  list-style:none;
  margin: 0 auto 2rem;
  padding: 3.4rem 1.4rem 1.6rem;
  max-width: 360px;
  background:#FFF7E5;
  border:1px solid var(--tmn-border);
  border-radius:18px;
  text-align:center;
  box-shadow:0 4px 18px rgba(87,6,140,.06);
}
#product-details-tab > ul:first-of-type::before{
  content:"تقنية الاتصال";
  position:absolute;
  top:.7rem;
  left:0; right:0;
  text-align:center;
  font-size:.9rem;
  font-weight:700;
  color:var(--tmn-sub);
}

/* شيل أي نقط من الثيم داخل البطاقة */
#product-details-tab > ul:first-of-type li::before,
#product-details-tab > ul:first-of-type li::after{
  content:none !important;
  display:none !important;
}

/* العنصر الرئيسي */
#product-details-tab > ul:first-of-type > li{
  margin:0; padding:0;
}

/* اللوقو (الرابط) */
#product-details-tab > ul:first-of-type > li > a{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.55rem 1.4rem;
  border-radius:999px;
  border:2px solid #009B8A;
  background:#fff;
  font-weight:800;
  color:#111827;
  text-decoration:none;
  box-shadow:0 4px 18px rgba(17,24,39,.06);
  gap:.5rem;
}
#product-details-tab > ul:first-of-type > li > a:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(17,24,39,.1);
}

/* نحول النص إلى لوقو */
#product-details-tab > ul:first-of-type > li > a{
  font-size:0;          /* نخفي النص نفسه */
}
#product-details-tab > ul:first-of-type > li > a::before{
  content:"";
  display:block;
  width:120px;
  height:32px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}

/* الوصف تحت اللوقو */
#product-details-tab > ul:first-of-type > li > ul{
  list-style:none;
  margin:1.2rem 0 0;
  padding:0;
}
#product-details-tab > ul:first-of-type > li > ul > li{
  background:#FFFCF2;
  border:1px dashed var(--tmn-border);
  border-radius:12px;
  padding:.85rem 1rem;
  font-size:.9rem;
  color:var(--tmn-sub);
}

/* لوقوهات التقنيات حسب الرابط */
#product-details-tab > ul:first-of-type > li > a[href*="matter"]::before{
  background-image:url("https://tmn.sa/wp-content/uploads/2025/09/matter__fhvdo3tpnqai_large.svg");
  border-color:#0a8f6a;
}
#product-details-tab > ul:first-of-type > li > a[href*="wifi"]::before,
#product-details-tab > ul:first-of-type > li > a[href*="WiFi"]::before{
  background-image:url("https://tmn.sa/wp-content/uploads/2025/11/wifi-1.svg");
}
#product-details-tab > ul:first-of-type > li > a[href*="zigbee"]::before{
  background-image:url("https://tmn.sa/wp-content/uploads/2025/10/Zigbee.webp");
}
#product-details-tab > ul:first-of-type > li > a[href*="bluetooth"]::before,
#product-details-tab > ul:first-of-type > li > a[href*="ble"]::before{
  background-image:url("https://tmn.sa/wp-content/uploads/2025/10/Logo-Bluetooth-scaled.png");
}

/* ========== عناوين الأقسام (المميزات .. روابط تهمك) ========== */
#product-details-tab h2{
  position:relative;
  margin:1.6rem 0 0;
  padding:.9rem 1rem .9rem 3.8rem;
  color:#0f172a;
  font-weight:800;
  border:1px solid var(--tmn-border);
  border-right:4px solid var(--tmn-primary);
  border-radius:14px 14px 0 0;
}
#product-details-tab h2 strong{ color:var(--tmn-primary); }

/* أيقونة العنوان */
#product-details-tab h2::before{
  content:"";
  position:absolute;
  inset-inline-end:.9rem;
  inset-block:50%;
  transform:translateY(-50%);
  width:2.2rem;
  height:2.2rem;
  border-radius:10px;
  background:#fff;
  border:1px solid var(--tmn-border);
  box-shadow:0 2px 10px rgba(17,24,39,.05);
  background-repeat:no-repeat;
  background-position:center;
  background-size:1.3rem;
}

/* أيقونة حسب الترتيب */
#product-details-tab h2:nth-of-type(1)::before{ /* المميزات */
  background-image:url('data:image/svg+xml;utf8,<svg fill="%2357068c" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2l2.09 6.26L20 9.27l-4.9 3.58L16.18 20 12 16.9 7.82 20l1.08-7.15L4 9.27l5.91-.99L12 2z"/></svg>');
}
#product-details-tab h2:nth-of-type(2)::before{ /* طرق التحكم */
  background-image:url('data:image/svg+xml;utf8,<svg fill="%2357068c" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 4h10v2H7zm0 7h10v2H7zm0 7h10v2H7z"/></svg>');
}
#product-details-tab h2:nth-of-type(3)::before{ /* المواصفات */
  background-image:url('data:image/svg+xml;utf8,<svg fill="%2357068c" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 13h2v-2H3v2zm4 0h14v-2H7v2zM3 6h2V4H3v2zm4 0h14V4H7v2zm0 14h14v-2H7v2zm-4 0h2v-2H3v2z"/></svg>');
}
#product-details-tab h2:nth-of-type(4)::before{ /* محتويات العلبة */
  background-image:url('data:image/svg+xml;utf8,<svg fill="%2357068c" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 8l-9-5-9 5v10l9 5 9-5V8zm-9-3.09L18.18 8 12 11.09 5.82 8 12 4.91zm0 15.18L5.82 16V9.82L12 13l6.18-3.18V16L12 19.09z"/></svg>');
}
#product-details-tab h2:nth-of-type(5)::before{ /* الضمان */
  background-image:url('data:image/svg+xml;utf8,<svg fill="%2357068c" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 17c-3.31 0-6-2.69-6-6h2a4 4 0 108 0h2c0 3.31-2.69 6-6 6z"/></svg>');
}
#product-details-tab h2:nth-of-type(6)::before{ /* روابط تهمك */
  background-image:url('data:image/svg+xml;utf8,<svg fill="%23009b8a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 100 20 10 10 0 000-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>');
}

/* ========== جسم الكروت تحت كل عنوان ========== */
#product-details-tab h2 + ul{
  border:1px solid var(--tmn-border);
  border-top:none;
  border-radius:0 0 14px 14px;
  background:var(--tmn-card);
  padding:.9rem;
  margin:0 0 1.3rem;
  display:grid;
  gap:.7rem;
  list-style:none;
}

/* الميني كروت العامة */
#product-details-tab h2 + ul > li{
  position:relative;
  background:var(--tmn-item);
  border:1px dashed var(--tmn-border);
  border-radius:12px;
  padding:.85rem 2rem .85rem 1.3rem;
  box-shadow:0 1px 0 rgba(17,24,39,.02);
  transition:box-shadow .18s ease, transform .18s ease;
}
#product-details-tab h2 + ul > li:hover{
  box-shadow:0 8px 20px rgba(87,6,140,.06);
  transform:translateY(-1px);
}
/* النقطة البنفسجية */
#product-details-tab h2 + ul > li::before{
  content:"";
  position:absolute;
  inset-inline-start:.85rem;
  inset-block-start:1.5rem;
  width:.48rem; height:.48rem;
  border-radius:999px;
  background:radial-gradient(circle at 30% 30%, var(--tmn-primary), #7b3db2);
  box-shadow:0 0 0 2px #f7f2ff;
}

/* شبكتين في الشاشات الكبيرة */
@media (min-width:768px){
  #product-details-tab h2 + ul{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* تخصيص محتويات العلبة – نقدر نخليها نفس النمط حالياً */
#product-details-tab h2:nth-of-type(4) + ul > li{
  border-style:dashed;
}

/* ========== قسم "روابط تهمك" كأزرار ========== */
#product-details-tab h2:last-of-type + ul {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap;
    gap: .7rem;
    list-style: none;
    padding: 0;
}

/* كل عنصر (li) */
#product-details-tab h2:last-of-type + ul > li {
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 1.5rem 0rem !important;
}

/* الزر نفسه */
#product-details-tab h2:last-of-type + ul > li > a {
    display: inline-block;
    padding: .55rem 1.1rem;
    background: #009B8A;
    color: #fff !important;
    border-radius: 10px;
    font-size: .85rem;          /* أصغر */
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: .25s ease;
}

#product-details-tab h2:last-of-type + ul > li > a:hover {
    background: #037c6e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,155,138,.25);
}


/* تنظيف أي تلوين inline */
#product-details-tab h2:last-of-type + ul > li [style*="color"],
#product-details-tab h2:last-of-type + ul > li strong[style]{
  color:#fff !important;
}

/* ========== روابط عامة + خلفية سلايدر ========== */
#product-details-tab a{
  color:var(--tmn-primary);
  text-underline-offset:2px;
}
#product-details-tab a:hover{
  color:#6f23b6;
}
#product-details-tab [style*="background"]{ background:transparent!important; }
#product-details-tab [style*="color: rgb(255, 255, 255)"]{ color:inherit!important; }

salla-slider.details-slider .swiper-slide{
  background-color:#FFFCF2 !important;
}

/* إخفاء نقاط الـ UL الافتراضية بالكامل */
#product-details-tab ul {
    list-style: none !important;

  }

/* إزالة العلامة الافتراضية من li */
#product-details-tab ul li {
    list-style-type: none !important;
}

/* إخفاء أي نقطة افتراضية تظهر من الثيم */
#product-details-tab ul li::marker {
    display: none !important;
}

/* تعطيل النقر على رابط تقنية الاتصال (أول UL في الوصف) */
#product-details-tab > ul:first-of-type > li > a {
    pointer-events: none !important;   /* يمنع الضغط */
    cursor: default !important;        /* يخلي شكل المؤشر عادي */
}


/* إزالة النقطة البنفسجية من عناصر روابط تهمك */
#product-details-tab h2:last-of-type + ul > li::before,
#product-details-tab h2:last-of-type + ul > li > ul > li::before {
    display: none !important;
    content: none !important;
}