/* =====================================================
   1) قسم الفئات: شبكة بدون سلايدر وبدون عناوين
   ===================================================== */
section.section-categories,
section[section-id="b2f9b0da-f997-43e1-a107-f33f73345083"] {
  padding: 0 !important;
  margin: 0 !important;
}

*:has(+ section.section-categories) {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

section.section-categories .theme-container {
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 1100px;
}

section.section-categories .theme-container > * {
  margin: 0 !important;
}

section.section-categories .theme-container > div:first-child,
section.section-categories .embla__progress,
section.section-categories .embla__prev,
section.section-categories .embla__next,
section.section-categories .embla-wrapper > div:last-child,
section.section-categories .embla__slide h3 {
  display: none !important;
}

section.section-categories .embla-wrapper,
section.section-categories .embla,
section.section-categories .embla__viewport {
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

section.section-categories .embla__container {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 12px !important;
  transform: none !important;
  margin: 0 !important;
  direction: rtl;
}

section.section-categories .embla__slide {
  flex: none !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  grid-column: span 3 !important;
}

section.section-categories .embla__slide:nth-child(-n+3) {
  grid-column: span 4 !important;
}

section.section-categories .embla__slide a {
  display: block !important;
  overflow: hidden;
  border-radius: 4px;
}

section.section-categories .embla__slide a > div {
  border-radius: 0 !important;
}

section.section-categories .embla__slide img {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* الموبايل: كارتين في الصف + المسافة تحت 5px + الصورة الأخيرة في النص */
@media (max-width: 767px) {
  section.section-categories .theme-container {
    padding: 0 12px !important;
  }

  section.section-categories .embla__container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  section.section-categories .embla__slide,
  section.section-categories .embla__slide:nth-child(-n+3) {
    grid-column: span 1 !important;
  }

  /* تقليل المسافة تحت القسم لـ 5 بيكسل */
  section.section-categories .theme-container,
  section.section-categories .embla-wrapper,
  section.section-categories .embla,
  section.section-categories .embla__viewport,
  section.section-categories .embla__container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  section.section-categories {
    margin-bottom: 5px !important;
  }

  section.section-categories + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* الصورة الأخيرة (الفردية) في النص */
  section.section-categories .embla__slide:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: calc(50% - 4px) !important;
  }
}

/* قسم "تسوق حسب الفئات" */
.aigc-categories,
.aigc-categories__inner,
.aigc-categories__head,
.aigc-categories__title,
.aigc-categories__subtitle {
  margin-bottom: 3px !important;
}

/* =====================================================
   2) البانرات التلاتة: عرض كامل 1600 بدون قص وبدون فراغات
   ===================================================== */
[section-id="b2fbdca8-1a6b-427f-a645-6c5e5feb52fd"],
[section-id="430012eb-6ec9-4bdb-9662-7b5f6e4ed8f5"],
[section-id="d29ac4fc-65f6-4247-9ea6-cc988ea3ccc6"] {
  display: block !important;
  width: 100% !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  line-height: 0 !important;
  font-size: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

@media (min-width: 768px) {
  [section-id="b2fbdca8-1a6b-427f-a645-6c5e5feb52fd"],
  [section-id="430012eb-6ec9-4bdb-9662-7b5f6e4ed8f5"],
  [section-id="d29ac4fc-65f6-4247-9ea6-cc988ea3ccc6"] {
    padding-left: 4rem !important;
    padding-right: 4rem !important;
  }
}

[section-id="b2fbdca8-1a6b-427f-a645-6c5e5feb52fd"] > .absolute,
[section-id="430012eb-6ec9-4bdb-9662-7b5f6e4ed8f5"] > .absolute,
[section-id="d29ac4fc-65f6-4247-9ea6-cc988ea3ccc6"] > .absolute {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

[section-id="b2fbdca8-1a6b-427f-a645-6c5e5feb52fd"] picture,
[section-id="430012eb-6ec9-4bdb-9662-7b5f6e4ed8f5"] picture,
[section-id="d29ac4fc-65f6-4247-9ea6-cc988ea3ccc6"] picture,
[section-id="b2fbdca8-1a6b-427f-a645-6c5e5feb52fd"] img,
[section-id="430012eb-6ec9-4bdb-9662-7b5f6e4ed8f5"] img,
[section-id="d29ac4fc-65f6-4247-9ea6-cc988ea3ccc6"] img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: top !important;
  object-fit: contain !important;
}

[section-id="b2fbdca8-1a6b-427f-a645-6c5e5feb52fd"] .bg-primary,
[section-id="430012eb-6ec9-4bdb-9662-7b5f6e4ed8f5"] .bg-primary,
[section-id="d29ac4fc-65f6-4247-9ea6-cc988ea3ccc6"] .bg-primary,
[section-id="b2fbdca8-1a6b-427f-a645-6c5e5feb52fd"] .theme-container,
[section-id="430012eb-6ec9-4bdb-9662-7b5f6e4ed8f5"] .theme-container,
[section-id="d29ac4fc-65f6-4247-9ea6-cc988ea3ccc6"] .theme-container {
  display: none !important;
}

*:has(+ [section-id="b2fbdca8-1a6b-427f-a645-6c5e5feb52fd"]),
*:has(+ [section-id="430012eb-6ec9-4bdb-9662-7b5f6e4ed8f5"]),
*:has(+ [section-id="d29ac4fc-65f6-4247-9ea6-cc988ea3ccc6"]) {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

[section-id="b2fbdca8-1a6b-427f-a645-6c5e5feb52fd"] + *,
[section-id="430012eb-6ec9-4bdb-9662-7b5f6e4ed8f5"] + *,
[section-id="d29ac4fc-65f6-4247-9ea6-cc988ea3ccc6"] + * {
  margin-top: 0 !important;
}

/* =====================================================
   3) التستيمونيال: سلايدر على التليفون، 3 كروت على الشاشات الكبيرة
   ===================================================== */
[section-id="b55d9a70-7d85-4ee0-8858-cee951deb587"] .embla__viewport {
  overflow: hidden !important;
}

[section-id="b55d9a70-7d85-4ee0-8858-cee951deb587"] .embla__container {
  display: flex !important;
  gap: 12px !important;
}

[section-id="b55d9a70-7d85-4ee0-8858-cee951deb587"] .embla__slide {
  flex: 0 0 85% !important;
  min-width: 0 !important;
  max-width: 85% !important;
}

[section-id="b55d9a70-7d85-4ee0-8858-cee951deb587"] .embla__progress {
  visibility: visible !important;
}

@media (min-width: 768px) {
  [section-id="b55d9a70-7d85-4ee0-8858-cee951deb587"] .embla__viewport {
    overflow: visible !important;
  }

  [section-id="b55d9a70-7d85-4ee0-8858-cee951deb587"] .embla__container {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    transform: none !important;
  }

  [section-id="b55d9a70-7d85-4ee0-8858-cee951deb587"] .embla__slide {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  [section-id="b55d9a70-7d85-4ee0-8858-cee951deb587"] .embla__progress,
  [section-id="b55d9a70-7d85-4ee0-8858-cee951deb587"] .embla__prev,
  [section-id="b55d9a70-7d85-4ee0-8858-cee951deb587"] .embla__next {
    display: none !important;
  }
}

/* =====================================================
   4) كروت المنتجات
   ===================================================== */
[data-product-card] {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

[data-product-card] > a.aspect-square {
  border-radius: 10px !important;
  background: #fff !important;
}

[data-product-card] > a.aspect-square img {
  object-fit: contain !important;
}

.products-embla__viewport {
  padding: 12px 8px 24px !important;
  overflow: hidden !important;
}

[data-product-card] > div.mt-auto {
  border-top: 1px solid #b5b5b5 !important;
  padding-top: 12px !important;
  margin-top: 8px !important;
}

[data-product-card] .btn.btn-outlined,
[data-product-card] [data-add-to-cart],
[data-product-card] [data-open-quick-view] {
  background-color: #3ECACF !important;
  border: 1px solid #3ECACF !important;
  color: #000 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-weight: 500 !important;
  transition: filter .2s ease !important;
}

[data-product-card] .btn.btn-outlined:hover,
[data-product-card] [data-add-to-cart]:hover,
[data-product-card] [data-open-quick-view]:hover {
  filter: brightness(0.93) !important;
  background-color: #3ECACF !important;
}

/* =====================================================
   5) العناوين: في النص وتحتها خط
   ===================================================== */
.flex.items-center.justify-between:has(> h2) {
  justify-content: center !important;
  text-align: center !important;
  padding-bottom: 8px !important;
  margin-bottom: 8px !important;
}

.flex.items-center.justify-between > h2 {
  position: relative !important;
  display: inline-block !important;
  text-align: center !important;
  padding-bottom: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.flex.items-center.justify-between > h2::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 90px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent 0%, #3ECACF 20%, #3ECACF 80%, transparent 100%) !important;
}

.flex.items-center.justify-between > h2::before {
  content: "" !important;
  position: absolute !important;
  bottom: -3px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: #fff !important;
  border: 3px solid #3ECACF !important;
  z-index: 2 !important;
}

/* =====================================================
   6) الفوتر (بدون مساحة بيضاء تحته)
   ===================================================== */
#footer {
  background-color: #3ECACF !important;
  padding-bottom: 24px !important;
  margin-bottom: 0 !important;
}

#footer,
#footer h3,
#footer p,
#footer a,
#footer li,
#footer span,
#footer .text-foreground,
#footer .text-muted {
  color: #000 !important;
}

#footer svg {
  color: #000 !important;
}

#footer .flex.gap-3 > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border: 1px solid #000 !important;
  border-radius: 50% !important;
  background: transparent !important;
}

#footer .flex.gap-3 > a svg {
  width: 18px !important;
  height: 18px !important;
}

#footer .slate-editor span,
#footer .slate-editor strong {
  background-color: transparent !important;
  color: #000 !important;
}

#footer .border-border-light {
  background-color: #fff !important;
  border-top: none !important;
  margin-top: 24px !important;
  padding: 20px 32px !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}

#footer .border-border-light a.flex-col {
  padding: 4px 8px !important;
}

@media (max-width: 767px) {
  #footer .border-border-light {
    padding: 16px !important;
  }
}
.section-hero:has(a.btn) { cursor: pointer; }