/* ==========================================================================
   1. تنسيقات الثيم العامة (تعديلات وتخصيصات القالب الأصلي)
   ========================================================================== */

/* توحيد وزن الخطوط */
.font-bold,
.main-menu li.root-level > a,
.product-card__title a,
.s-button-btn,
.font-semibold {
  font-weight: 500;
}

/* إخفاء الخط السفلي الافتراضي */
.my-2.mx-auto.w-28.h-0.border-2.border-primary {
  display: none;
}

/* تعديل حجم العناوين ومحاذاتها */
.sm\:text-4xl {
  font-size: 30px;
  text-align: right;
}

.lg\:mx-0.text-center.mb-4.home-block-title {
  margin-bottom: 1.4rem;
}

/* إخفاء الوصف الفرعي لكروت المنتجات الافتراضية */
.mb-2\.5.product-card__subtitle.text-sm.text-store-text-secondary.leading-6 {
  display: none;
}

/* ضبط الهوامش الداخلية لسكاشن القوالب المختلفة في سلة */
section.s-block.s-block--square-links.square-links-2.force-center .lg\:mx-0.text-center.home-block-title,
section.s-block.s-block--square-links.square-links-4 .lg\:mx-0.text-center.home-block-title,
section.s-block.s-block--square-links.square-links-5.force-center .lg\:mx-0.text-center.home-block-title,
section.s-block--videos-gallery.s-block.unified-height.rounded-corners .mx-auto.max-w-7xl.px-6.lg\:px-8.home-block-title,
section.s-block--videos-gallery.s-block.unified-height.rounded-corners .relative.overflow-hidden.pt-8 {
  padding-left: 10px;
  padding-right: 10px;
}

/* إزالة هوامش سكشن الأسئلة الشائعة */
section.s-block.relative.s-block--faq.overflow-hidden.bg-transparent.pb-8.has-bg.pt-3 .mx-auto.max-w-7xl.px-6.lg\:px-8.home-block-title {
  padding-left: 0;
  padding-right: 0;
}


/* ==========================================================================
   2. سكشن شبكة المنتجات المخصص (.custom-product-grid)
   ========================================================================== */

.custom-product-grid {
  background-color: #ffffff;
  direction: rtl !important;
  box-sizing: border-box;
}

.custom-product-grid *, 
.custom-product-grid *::before, 
.custom-product-grid *::after {
  box-sizing: border-box;
}

/* تكييف الحاوية الخاصة بالشبكة المخصصة */
.custom-product-grid .m-container-scoped {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
}

.custom-product-grid .cat-header {
  text-align: right;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 30px;
  color: #121212;
  margin-top: 0;
}

.custom-product-grid .cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.custom-product-grid .cat-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 25px;
  text-decoration: none;
}

.custom-product-grid .cat-card__bg-img {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.custom-product-grid .cat-card__bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.custom-product-grid .cat-card--large { 
  grid-column: span 3; 
  min-height: 320px; 
}

.custom-product-grid .cat-card--small { 
  grid-column: span 2; 
  min-height: 280px; 
}

.custom-product-grid .cat-card__content {
  position: relative;
  z-index: 3;
  width: 55%;
  padding-right: 25px;
  text-align: right;
}

.custom-product-grid .cat-card__title {
  font-size: 32px;
  font-weight: 400;
  color: #121212;
  margin: 0 0 12px 0;
}

.custom-product-grid .cat-card__desc {
  font-size: 15px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.custom-product-grid .cat-card__button {
  display: inline-block;
  background: #fff;
  color: #121212;
  padding: 8px 24px;
  border-radius: 28px;
  font-weight: 400;
  font-size: 14px;
}

.custom-product-grid .cat-card__product-wrap {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 45%;
  height: 100%;
  background-size: contain;
  background-position: left bottom;
  background-repeat: no-repeat;
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.12));
}


/* ==========================================================================
   3. سكشن مقارنة النتائج المخصص (.custom-results-slider)
   ========================================================================== */

.custom-results-slider {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
  direction: rtl !important;
  box-sizing: border-box;
  background-color: #ffffff;
}

.custom-results-slider *, 
.custom-results-slider *::before, 
.custom-results-slider *::after {
  box-sizing: border-box;
}

.custom-results-slider .mx-auto {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;
}

.custom-results-slider .theme-section-title {
  font-size: 30px;
  font-weight: 500;
  color: var(--store-text-primary);
  margin: 0;
}

.custom-results-slider .res-grid-wrapper {
  margin-top: 1rem;
}

.custom-results-slider .res-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.custom-results-slider .res-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.custom-results-slider .comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  user-select: none;
  -webkit-user-select: none;
}

.custom-results-slider .comparison-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.custom-results-slider .image-before {
  z-index: 1;
}

.custom-results-slider .image-after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  -webkit-clip-path: inset(0 50% 0 0);
  transition: none !important;
}

.custom-results-slider .slider-label {
  position: absolute;
  top: 15px;
  background: rgba(220, 208, 236, 0.95);
  color: #121212;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  z-index: 5;
  pointer-events: none;
}

.custom-results-slider .label-after { left: 15px; }
.custom-results-slider .label-before { right: 15px; }

.custom-results-slider .slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #fff;
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
}

.custom-results-slider .slider-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 8 4 4-4 4M6 8l-4 4 4 4"/></svg>') no-repeat center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-results-slider .native-slider-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
  pointer-events: auto !important; 
  -webkit-appearance: none;
  appearance: none;
  touch-action: none !important;
  -webkit-tap-highlight-color: transparent;
}

.custom-results-slider .res-content {
  text-align: center;
}

.custom-results-slider .res-quote {
  font-size: 16px;
  font-weight: 400;
  color: var(--store-text-primary, #121212);
  margin-bottom: 8px;
}

.custom-results-slider .res-author {
  font-size: 14px;
  color: var(--store-text-secondary, #838383);
}


/* ==========================================================================
   4. التجاوب للشاشات الكبيرة والموبايل (Media Queries الموحدة)
   ========================================================================== */

/* الشاشات الكبيرة (أكبر من 768 بكسل) */
@media (min-width: 769px) {
  .custom-results-slider {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* شاشات الموبايل والأجهزة اللوحية (768 بكسل أو أقل) */
@media (max-width: 768px) {
  .sm\:text-4xl {
    font-size: 22px;
  }

  section.s-block.relative.s-block--faq.overflow-hidden.bg-transparent.pb-8.has-bg.pt-3 {
    margin-top: 0;
  }

  /* تعديلات سكشن شبكة المنتجات المخصص على الموبايل */
  .custom-product-grid .m-container-scoped {
    padding: 0 10px;
  }

  .custom-product-grid .cat-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 0 0 10px 0;
    -webkit-overflow-scrolling: touch;
  }

  .custom-product-grid .cat-header {
    font-size: 21px;
    margin-bottom: 24px;
  }

  .custom-product-grid .cat-grid::-webkit-scrollbar {
    display: none;
  }

  .custom-product-grid .cat-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .custom-product-grid .cat-card {
    flex: 0 0 68%;
    scroll-snap-align: center;
    min-height: 180px !important;
    min-width: 196px;
    padding: 15px;
  }

  .custom-product-grid .cat-card--large,
  .custom-product-grid .cat-card--small {
    grid-column: auto;
  }

  .custom-product-grid .cat-card__desc {
    display: none !important;
  }

  .custom-product-grid .cat-card__title {
    font-size: 20px;
  }

  .custom-product-grid .cat-card__content {
    width: 55%;
    padding-right: 15px;
  }

  .custom-product-grid .cat-card__product-wrap {
    width: 58%;
  }

  .custom-product-grid .cat-card__button {
    padding: 8px 18px;
  }

  /* تعديلات سكشن مقارنة النتائج المخصص على الموبايل */
  .custom-results-slider {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .custom-results-slider .res-grid-wrapper {
    margin-top: 1rem;
  }

  .custom-results-slider .res-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: none;
  }

  .custom-results-slider .res-grid::-webkit-scrollbar {
    display: none;
  }

  .custom-results-slider .res-card {
    flex: 0 0 90%;
    scroll-snap-align: center;
  }

  .custom-results-slider .home-block-title h2 {
    font-size: 22px !important;
  }
}

salla-html-content-gqhpcz.s-block.s-block-html-content {
    margin-top: 1rem;
}





/* ==========================================================================
   تنسيقات سكشن البطل المخصص (.custom-cro-hero) لمنصة سلة
   ========================================================================== */

.custom-cro-hero {
  background-color: #ffffff;
  direction: rtl !important;
  box-sizing: border-box;
  font-family: var(--font-main), -apple-system, BlinkMacSystemFont, sans-serif;
}

.custom-cro-hero *, 
.custom-cro-hero *::before, 
.custom-cro-hero *::after {
  box-sizing: border-box;
}

/* الحاوية المعزولة بأبعاد سلة القياسية */
.custom-cro-hero .m-container-scoped {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
}

.custom-cro-hero .pf-container-unique {
  display: flex;
  flex-direction: row; 
  gap: 50px;
  align-items: center; 
}

.custom-cro-hero .pf-content-col { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
  text-align: right;
}

.custom-cro-hero .pf-image-wrapper { 
  flex: 1; 
  position: relative; 
  border-radius: 12px; 
  overflow: hidden;
}

.custom-cro-hero .pf-image-wrapper img { 
  width: 100%; 
  height: 500px;
  display: block; 
  object-fit: cover;
}

.custom-cro-hero .pf-rating-wrapper {
  display: flex; 
  align-items: center; 
  gap: 8px;
}

.custom-cro-hero .pf-stars {
  color: #FD8610;
  letter-spacing: 2px;
}

.custom-cro-hero .pf-rating-info {
  font-size: 12px; 
  color: #888;
}

.custom-cro-hero .pf-title {
  font-size: 32px;
  font-weight: 700;
  color: #121212;
  margin: 0;
  line-height: 1.4;
}

/* صندوق شارات الثقة */
.custom-cro-hero .pf-trust-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #FAF8FC;
  border-radius: 12px;
  padding: 15px 10px;
  margin: 10px 0 8px;
  text-align: center;
  gap: 10px;
}

.custom-cro-hero .pf-badge-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #121212;
}

.custom-cro-hero .pf-badge-item img { 
  width: 22px; 
  height: 22px; 
  object-fit: contain; 
}

.custom-cro-hero .pf-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* زر الـ CTA الكبير */
.custom-cro-hero .pf-cta-btn {
  background: #DCD0EC;
  color: #121212;
  text-align: center;
  padding: 15px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  font-size: 18px;
  transition: opacity 0.3s ease;
}

.custom-cro-hero .pf-cta-btn:hover { 
  opacity: 0.9; 
}

/* مميزات التذييل */
.custom-cro-hero .pf-footer-traits { 
  display: flex; 
  justify-content: space-around; 
  margin-top: 10px;
  gap: 10px;
}

.custom-cro-hero .pf-trait { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  font-size: 13px; 
  color: #444; 
}

.custom-cro-hero .pf-trait img { 
  width: 16px; 
  height: 16px; 
  object-fit: contain;
}

.custom-cro-hero .pf-best-seller {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #CF0018;
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2;
  font-weight: 500;
}

/* ==========================================================================
   تنسيقات الشاشات والموبايل (Responsive Layout)
   ========================================================================== */

@media (max-width: 768px) {
  .custom-cro-hero .m-container-scoped {
    padding: 0 15px;
  }
  
  .custom-cro-hero .pf-container-unique { 
    flex-direction: column; 
    gap: 25px;
  }
  
  .custom-cro-hero .pf-image-wrapper { 
    order: 1; 
    width: 100%;
  }
  
  .custom-cro-hero .pf-image-wrapper img { 
    height: 350px; 
  }
  
  .custom-cro-hero .pf-content-col { 
    order: 2; 
    width: 100%;
    gap: 12px;
  }
  
  .custom-cro-hero .pf-title { 
    font-size: 24px !important; 
  }
  
  .custom-cro-hero .pf-trust-box { 
    text-align: right; 
    padding: 12px;
    gap: 12px;
  }
  
  .custom-cro-hero .pf-badge-item {
    justify-content: flex-start;
    flex-direction: column;
  }
  
  .custom-cro-hero .pf-footer-traits {
    align-items: flex-start;
    gap: 12px;
    padding-right: 5px;
  }
}