/* ==========================================================================
   MADA LINE — Selia (تنسيق 1)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
  --mada-green: #223a2f;
  --mada-green-dark: #16261f;
  --mada-cream: #f7f1ea;
  --mada-gold: #b8916a;
  --mada-ink: #1a1a1a;
  --mada-muted: #5d5d5d;
  --mada-muted-2: #7b7b7b;
  --mada-line: #e2e2e2;
  --mada-radius: 8px;
  --mada-container: 1740px;
  --mada-gutter: clamp(16px, 4.583vw, 88px);
  --mada-header-h: 112px;
  --mada-logo-h: 64px;
  --mada-bars-h: 0px;

  /* Figma assets — tabler:arrow-left-dashed · 31.3px */
  --mada-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31.3' height='31.3' viewBox='0 0 31.2998 31.2998' fill='none'%3E%3Cpath d='M6.82 16.18H14.645M14.645 8.355L6.82 16.18l7.825 7.825M18.557 16.18h1.956M24.426 16.18h.652' stroke='%23223A2F' stroke-width='1.956' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  /* Figma assets — tabler:arrow-up-from-arc · 24px */
  --mada-faq-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 9V21M16 17L12 21L8 17M21 12C21 9.613 20.052 7.324 18.364 5.636 16.676 3.948 14.387 3 12 3S7.324 3.948 5.636 5.636C3.948 7.324 3 9.613 3 12' stroke='%23223A2F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  /* Figma assets — title divider (line + star) · 328×16 */
  --mada-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='328' height='16' viewBox='0 0 328 16' fill='none'%3E%3Cline x1='0' y1='7.5' x2='149' y2='7.5' stroke='%23A3A3A3'/%3E%3Cpath d='M164 0L165.796 5.528H171.608L166.906 8.944L168.702 14.472L164 11.056L159.298 14.472L161.094 8.944L156.392 5.528H162.204L164 0Z' fill='%23223A2F'/%3E%3Cline x1='179' y1='7.5' x2='328' y2='7.5' stroke='%23A3A3A3'/%3E%3C/svg%3E");
  --mada-divider-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 0L9.796 5.528H15.608L10.906 8.944L12.702 14.472L8 11.056L3.298 14.472L5.094 8.944L0.392 5.528H6.204L8 0Z' fill='%23223A2F'/%3E%3C/svg%3E");
  --mada-title-w: 12em;
}

html {
  --theme-primary-color: #223a2f;
  --color-primary: #223a2f;
  --color-primary-dark: #16261f;
  --color-primary-reverse: #ffffff;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--mada-ink);
}

body .container {
  max-width: var(--mada-container);
  padding-inline: var(--mada-gutter);
}

/* ==========================================================================
   1 · HEADER — same bar on every page
   Homepage: transparent at top, glass when pinned.
   Inner pages: always glass (no hero behind).
   ========================================================================== */

html body#app header.store-header {
  position: relative !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* الصفحات الداخلية: الهيدر ياخد مكانه في الصفحة عشان ما يركبش على العنوان */
html body#app:not(.index) header.store-header {
  height: calc(var(--mada-header-h) + var(--mada-bars-h, 0px)) !important;
  min-height: calc(var(--mada-header-h) + var(--mada-bars-h, 0px)) !important;
  max-height: calc(var(--mada-header-h) + var(--mada-bars-h, 0px)) !important;
  overflow: visible !important;
}

html body#app #mainnav,
html body#app #mainnav.main-nav-container,
html body#app #mainnav.fixed-header,
html body#app #mainnav.fixed-pinned {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  margin-top: var(--mada-bars-h, 0px) !important;
  width: 100% !important;
  height: var(--mada-header-h) !important;
  min-height: var(--mada-header-h) !important;
  max-height: var(--mada-header-h) !important;
  overflow: visible !important;
  z-index: 9000 !important;
  transform: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

html body#app.has-preview-bar #mainnav,
html body#app.mada-has-ads #mainnav {
  top: 0 !important;
  margin-top: var(--mada-bars-h, 0px) !important;
}

body salla-advertisement,
body .promotion-banner-wrapper,
body .promotion-banner,
body .fixed-promotion {
  z-index: 10000 !important;
}

html body#app #mainnav .inner {
  height: var(--mada-header-h) !important;
  max-height: var(--mada-header-h) !important;
  min-height: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
  overflow: visible !important;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

/* أعمدة الهيدر: اللوجو في النص من غير ما يزق الأيقونات على الشاشات الضيقة */
html body#app .header__main-start,
html body#app .header__main-end {
  min-width: 0 !important;
  flex: 1 1 0% !important;
}

html body#app .header__brand {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  max-width: 46% !important;
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

/* ديسكتوب: لوجو يمين · منيو في النص · أيقونات يسار */
.mada-desktop-nav {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  html body#app .header__main-row {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    column-gap: 24px;
  }

  html body#app .header__main-start {
    display: none !important;
  }

  html body#app .header__brand {
    grid-column: 1;
    justify-self: start;
    max-width: none !important;
  }

  html body#app .mada-desktop-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 1.8vw, 36px);
    grid-column: 2;
    justify-self: center;
  }

  html body#app .header__main-end {
    grid-column: 3;
    justify-self: end;
    flex: 0 0 auto !important;
  }

  html body#app .mada-desktop-nav a {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--mada-green) !important;
    text-decoration: none !important;
    white-space: nowrap;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
  }

  html body#app.index:not(.mada-pinned) .mada-desktop-nav a {
    color: #fff !important;
  }

  html body#app .mada-desktop-nav a:hover,
  html body#app .mada-desktop-nav a.is-active {
    border-bottom-color: var(--mada-green);
  }

  html body#app.index:not(.mada-pinned) .mada-desktop-nav a:hover,
  html body#app.index:not(.mada-pinned) .mada-desktop-nav a.is-active {
    border-bottom-color: #fff;
  }
}

html body#app .navbar-brand {
  display: flex !important;
  align-items: center !important;
  max-width: 100% !important;
}

html body#app .header__main-container,
html body#app .header__main-row {
  height: var(--mada-header-h) !important;
  max-height: var(--mada-header-h) !important;
  min-height: 0 !important;
  align-items: center !important;
}

html body#app.mada-pinned #mainnav .inner,
html body#app:not(.index) #mainnav .inner {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 6px 24px rgba(34, 58, 47, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35) !important;
  overflow: hidden !important;
}

html body#app .navbar-brand img.logo-normal,
html body#app .navbar-brand img.logo-dark,
html body#app .navbar-brand img {
  display: block !important;
  height: var(--mada-logo-h) !important;
  width: auto !important;
  max-height: var(--mada-logo-h) !important;
  max-width: 100% !important;
  object-fit: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html body#app .navbar-brand img.logo-dark {
  display: none !important;
}

html body#app header .close-mobile-menu,
html body#app header .btn--close-sm {
  display: none !important;
}

body .menu-label,
body .mburger .menu-label,
body .mburger p {
  display: none !important;
}

body.index:not(.mada-pinned) .mburger i,
body.index:not(.mada-pinned) .header-btn,
body.index:not(.mada-pinned) .header-btn__icon,
body.index:not(.mada-pinned) .s-cart-summary-icon,
body.index:not(.mada-pinned) .sicon-search,
body.index:not(.mada-pinned) .sicon-user,
body.index:not(.mada-pinned) .sicon-shopping,
body.index:not(.mada-pinned) .s-user-menu-trigger,
body.index:not(.mada-pinned) .header__user-menu {
  color: #fff !important;
  fill: #fff !important;
}

body.index:not(.mada-pinned) .mada-desktop-nav a {
  color: #fff !important;
}

body.index:not(.mada-pinned) .mada-desktop-nav a:hover,
body.index:not(.mada-pinned) .mada-desktop-nav a.is-active {
  border-bottom-color: #fff;
}

body.index:not(.mada-pinned) .navbar-brand img,
html body#app.index:not(.mada-pinned) .navbar-brand img {
  filter: brightness(0) invert(1);
}

body.index .mburger i,
body.index .header-btn__icon,
body.index .s-cart-summary-icon {
  color: var(--mada-green);
  transition: color 0.3s ease;
}

body.index.mada-pinned .mburger i,
body.index.mada-pinned .header-btn__icon,
body.index.mada-pinned .s-cart-summary-icon,
body.index.mada-pinned .sicon-search,
body.index.mada-pinned .sicon-user,
body.index.mada-pinned .header-btn,
body:not(.index) .mburger i,
body:not(.index) .header-btn__icon,
body:not(.index) .s-cart-summary-icon {
  color: var(--mada-green) !important;
  fill: var(--mada-green) !important;
}

body.index.mada-pinned .navbar-brand img,
body:not(.index) .navbar-brand img {
  filter: none;
}

body .s-cart-summary-content {
  display: none !important;
}

body.index:not(.mada-pinned) .s-cart-summary-count {
  background: #fff !important;
  color: var(--mada-green) !important;
}

body.index .s-cart-summary-count {
  background: var(--mada-green);
  color: #fff;
}

body.index.mada-pinned .s-cart-summary-count,
body:not(.index) .s-cart-summary-count {
  background: var(--mada-green) !important;
  color: #fff !important;
}

html body#app:not(.index) main,
html body#app.trans_header:not(.index) main,
html body#app.htv:not(.index) main,
html body#app:not(.index) .app-inner > main {
  margin-top: 0 !important;
  padding-top: 0 !important;
  top: auto !important;
  transform: none !important;
  position: relative !important;
}

/* قائمة الحساب: أيقونة واحدة مع البحث والسلة — مش جنب زر القائمة */
html body#app .header__main-start salla-user-menu,
html body#app .header__main-start .header__user-menu {
  display: none !important;
}

html body#app .header__main-end salla-user-menu[avatar-only],
html body#app .header__main-end .header__user-menu {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  overflow: visible !important;
  vertical-align: middle;
}

html body#app salla-user-menu:has(.s-user-menu-wrapper) > button[slot='login-btn'],
html body#app salla-user-menu:has(.s-user-menu-wrapper) .s-user-menu-login-btn {
  display: none !important;
}

html body#app salla-user-menu[avatar-only] .s-user-menu-trigger-content,
html body#app salla-user-menu[avatar-only] .s-user-menu-trigger-hello,
html body#app salla-user-menu[avatar-only] .s-user-menu-trigger-name,
html body#app salla-user-menu[avatar-only] .s-user-menu-trigger-icon {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body#app salla-user-menu[avatar-only] .s-user-menu-wrapper,
html body#app salla-user-menu[avatar-only] .s-user-menu-trigger-slot,
html body#app salla-user-menu[avatar-only] .s-user-menu-trigger,
html body#app salla-user-menu[avatar-only] .s-user-menu-avatar-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  overflow: visible !important;
}

html body#app salla-user-menu[avatar-only] .s-user-menu-avatar-wrap {
  border-radius: 50% !important;
  overflow: hidden !important;
  flex: 0 0 40px !important;
}

html body#app salla-user-menu[avatar-only] .s-user-menu-trigger-avatar {
  display: block !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
}

html body#app salla-user-menu .s-user-menu-toggler {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: visible !important;
  inset: auto !important;
}

html body#app .s-user-menu-dropdown,
html body#app .s-user-menu-toggler .s-user-menu-dropdown,
body > .s-user-menu-dropdown {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

html body#app salla-user-menu.mada-user-open .s-user-menu-dropdown,
html body#app salla-user-menu.opened .s-user-menu-dropdown,
html body#app salla-user-menu[opened] .s-user-menu-dropdown,
body > .s-user-menu-dropdown.mada-user-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: min(80vh, 560px) !important;
  overflow: auto !important;
  pointer-events: auto !important;
  position: fixed !important;
  z-index: 12000 !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 48px rgba(22, 38, 31, 0.2) !important;
}

/* حسابي مش في الفوتر */
body .store-footer salla-user-menu,
body .store-footer .s-user-menu-wrapper,
body .store-footer .s-user-menu-dropdown,
body .store-footer .mada-footer-account {
  display: none !important;
}

/* القائمة الجانبية: تظهر فقط لما المستخدم يفتحها */
body .mm-ocd {
  position: fixed !important;
  inset: 0 !important;
  z-index: 11000 !important;
}

body .mm-ocd:not(.mm-ocd--open) {
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body .mm-ocd:not(.mm-ocd--open) .mm-ocd__content,
body .mm-ocd:not(.mm-ocd--open) #mobile-menu {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==========================================================================
   2 · SEARCH MODAL — luxury command palette
   ========================================================================== */

body .s-search-modal.s-modal-container,
body .s-search-modal.s-search-modal-new {
  z-index: 10050 !important;
}

body .s-search-modal .s-modal-overlay {
  background: rgba(22, 38, 31, 0.62) !important;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

body .s-search-modal .s-modal-wrapper {
  padding-inline: 16px;
}

body .s-search-modal .s-modal-header:empty {
  display: none !important;
}

body .s-search-modal .s-modal-body,
body .s-search-modal.s-search-modal-new .s-modal-body {
  background: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 20px !important;
  box-shadow:
    0 4px 16px rgba(34, 58, 47, 0.06),
    0 28px 80px rgba(22, 38, 31, 0.28) !important;
  padding: 20px 20px 16px !important;
  margin-top: clamp(72px, 12vh, 128px) !important;
  overflow: hidden !important;
  height: auto !important;
  max-height: min(78vh, 760px) !important;
  width: min(680px, 100%) !important;
  max-width: 680px !important;
}

body .s-search-modal .s-search-panel {
  padding: 0 !important;
  gap: 0 !important;
}

body .s-search-modal .s-search-input-row {
  gap: 10px;
  align-items: center;
}

body .s-search-modal .s-search-back-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mada-cream);
  color: var(--mada-green) !important;
  transition: background 0.2s ease;
}

body .s-search-modal .s-search-back-btn:hover {
  background: #efe6db;
  color: var(--mada-green-dark) !important;
}

body .s-search-modal .s-search-back-btn svg {
  fill: var(--mada-green) !important;
  width: 20px;
  height: 20px;
}

body .s-search-modal .s-search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid #eadfd3 !important;
  border-radius: 16px !important;
  background: var(--mada-cream) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body .s-search-modal .s-search-input-wrapper:focus-within {
  border-color: var(--mada-green) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(34, 58, 47, 0.1);
}

body .s-search-modal .s-search-icon-wrap {
  color: var(--mada-gold) !important;
}

body .s-search-modal .s-search-icon svg {
  fill: var(--mada-gold) !important;
  width: 20px;
  height: 20px;
}

body .s-search-modal .s-search-input,
body .s-search-modal .s-search-input:where([dir='rtl'], [dir='rtl'] *) {
  height: 56px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: 'Cairo', sans-serif !important;
  font-size: 17px !important;
  font-weight: 500;
  color: var(--mada-ink) !important;
  padding-inline: 48px !important;
}

body .s-search-modal .s-search-input::placeholder {
  color: #9a8f84 !important;
  font-weight: 400;
}

body .s-search-modal .s-search-spinner-loader {
  border-color: #eadfd3 !important;
  border-right-color: var(--mada-green) !important;
}

body .s-search-modal .s-search-divider {
  display: none !important;
}

body .s-search-modal .s-search-idle-panel,
body .s-search-modal .s-search-results-body {
  margin-top: 16px;
  padding: 4px 2px 8px;
  max-height: min(52vh, 480px) !important;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d7c9b8 transparent;
}

body .s-search-modal .s-search-idle-section-title {
  margin: 0 0 10px !important;
  font-family: 'Cairo', sans-serif;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  color: var(--mada-muted) !important;
}

body .s-search-modal .s-search-history-chip,
body .s-search-modal .s-search-idle-category-chip {
  background: var(--mada-cream) !important;
  color: var(--mada-green) !important;
  border: 1px solid #eadfd3;
  border-radius: 999px !important;
  font-family: 'Cairo', sans-serif;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body .s-search-modal .s-search-history-chip:hover,
body .s-search-modal .s-search-idle-category-chip:hover {
  background: #fff !important;
  border-color: var(--mada-green);
  color: var(--mada-green-dark) !important;
}

body .s-search-modal .s-search-idle-category-count {
  color: var(--mada-gold) !important;
}

body .s-search-modal .s-search-history-chip-remove svg {
  fill: #b8a99a !important;
}

body .s-search-modal .s-search-most-searched-item {
  padding: 10px 12px !important;
  border-radius: 12px;
  color: var(--mada-ink) !important;
  font-family: 'Cairo', sans-serif;
  font-size: 15px !important;
  transition: background 0.2s ease;
}

body .s-search-modal .s-search-most-searched-item:hover {
  background: var(--mada-cream);
}

body .s-search-modal .s-search-most-searched-icon svg,
body .s-search-modal .s-search-most-searched-item svg {
  fill: var(--mada-gold) !important;
}

body .s-search-modal .s-search-results,
body .s-search-modal .s-search-results-grid-wrap {
  background: transparent !important;
}

body .s-search-modal .s-search-results-grid {
  gap: 8px !important;
}

@media (min-width: 640px) {
  body .s-search-modal .s-search-results-grid {
    grid-template-columns: 1fr !important;
  }
}

body .s-search-modal .s-search-grid-item,
body .s-search-modal .s-search-product {
  align-items: center;
  gap: 14px;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  padding: 10px 12px !important;
  transition: background 0.2s ease;
}

body .s-search-modal .s-search-grid-item:hover,
body .s-search-modal .s-search-product:hover {
  background: var(--mada-cream) !important;
}

body .s-search-modal .s-search-product-image-container {
  flex: 0 0 64px;
  width: 64px !important;
  height: 64px !important;
  border-radius: 10px !important;
  background: var(--mada-cream) !important;
  overflow: hidden;
}

body .s-search-modal .s-search-product-image {
  object-fit: cover;
}

body .s-search-modal .s-search-product-title {
  margin-bottom: 4px !important;
  font-family: 'Cairo', sans-serif;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--mada-ink) !important;
}

body .s-search-modal .s-search-product-price {
  font-family: 'Cairo', sans-serif;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--mada-green) !important;
}

body .s-search-modal .s-search-product-regular-price {
  color: #9a8f84 !important;
  font-weight: 400 !important;
}

body .s-search-modal .s-search-sidebar {
  width: auto !important;
  border: 0 !important;
  padding: 0 0 8px !important;
}

body .s-search-modal .s-search-view-all {
  margin-top: 8px;
  border-top: 1px solid #eadfd3 !important;
  padding: 14px 8px 6px !important;
  font-family: 'Cairo', sans-serif;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--mada-green) !important;
}

body .s-search-modal .s-search-view-all:hover {
  text-decoration: none !important;
  color: var(--mada-green-dark) !important;
}

body .s-search-modal .s-search-view-all-icon svg {
  fill: var(--mada-green) !important;
}

body .s-search-modal .s-search-no-results,
body .s-search-modal .s-search-no-results-placeholder {
  padding: 36px 16px !important;
  font-family: 'Cairo', sans-serif;
  color: var(--mada-muted) !important;
}

@media (max-width: 639px) {
  body .s-search-modal .s-modal-wrapper {
    padding: 0;
  }

  body .s-search-modal .s-modal-body,
  body .s-search-modal.s-search-modal-new .s-modal-body {
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 16px 16px 24px !important;
  }

  body .s-search-modal .s-search-back-btn {
    display: flex !important;
  }
}

/* ==========================================================================
   3 · HERO — Figma 3:3 (caption 727 · title 575 · text 589 · btn 250×60)
   ========================================================================== */

body .advanced-slider__caption__inner,
body .advanced-slider__caption__inner--right {
  width: auto !important;
  max-width: none !important;
}

body .advanced-slider__caption__inner__content {
  max-width: 32%;
}

body .advanced-slider__caption__inner__content__heading {
  max-width: none;
  font-size: clamp(34px, 5vw, 96px) !important;
  font-weight: 700 !important;
  line-height: 1.33 !important;
  color: var(--mada-green) !important;
}

body .advanced-slider__caption__inner__content__text {
  max-width: none;
  font-size: clamp(15px, 1.25vw, 22px) !important;
  line-height: 1.6 !important;
  color: var(--mada-muted) !important;
}

body .advanced-slider__caption__inner__content__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 54px;
  background-color: var(--mada-green) !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  transition: opacity 0.25s ease;
}

body .advanced-slider__caption__inner__content__button:hover {
  opacity: 0.9;
}

/* إظهار محتوى الهيرو فوراً — بدون انتظار السلايدر أو السبينر */
body .advanced-slider.with-spinner::before,
body .advanced-slider.with-spinner::after,
body .advanced-slider .spinner,
body .advanced-slider .s-slider-loader,
body .advanced-slider .s-loading-container {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body .advanced-slider,
body .advanced-slider__slide,
body .advanced-slider__image,
body .advanced-slider__caption,
body .advanced-slider__caption__inner,
body .advanced-slider__caption__inner__content,
body .advanced-slider__caption__inner__content__heading,
body .advanced-slider__caption__inner__content__text,
body .advanced-slider__caption__inner__content__button,
body #advanced-slider-0 .swiper-slide {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

body .advanced-slider,
body #advanced-slider-0,
body .advanced-slider__slide {
  position: relative !important;
  overflow: hidden;
}

body .advanced-slider__caption {
  z-index: 5;
}

/* الموبايل: صورة أطول + المحتوى فوق الصورة مع تدرّج كريمي يوضّح النص */
@media (max-width: 767px) {
  body .advanced-slider {
    background: var(--mada-cream);
    overflow: hidden;
  }

  body #advanced-slider-0 .swiper,
  body #advanced-slider-0 .swiper-wrapper,
  body #advanced-slider-0 .swiper-slide,
  body .advanced-slider .s-slider-container {
    height: auto !important;
    max-height: none !important;
  }

  body .advanced-slider__slide {
    display: block !important;
    height: auto !important;
    min-height: clamp(500px, 122vw, 640px) !important;
    max-height: none !important;
  }

  /* بدون display حتى لا تظهر صورة الديسكتوب المخفية بكلاس ‎!hidden */
  body .advanced-slider__image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  body .advanced-slider__caption {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: flex-end !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 0 118px !important;
    background: transparent !important;
    text-align: right !important;
  }

  /* تدرّج كريمي من تحت عشان العنوان الأخضر يبان فوق الصورة */
  body .advanced-slider__caption::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      to top,
      rgba(247, 241, 234, 0.96) 0%,
      rgba(247, 241, 234, 0.9) 30%,
      rgba(247, 241, 234, 0.55) 52%,
      rgba(247, 241, 234, 0) 74%
    );
  }

  body .advanced-slider__caption > .container {
    position: relative;
    z-index: 1;
    width: 100% !important;
    padding-inline: 16px !important;
  }

  body .advanced-slider__caption__inner,
  body .advanced-slider__caption__inner--right {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: right !important;
  }

  body .advanced-slider__caption__inner__content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: right !important;
  }

  /* أسهم ونقاط سلايدر الهيرو مش محتاجينها على الموبايل */
  body .advanced-slider .s-slider-nav,
  body .advanced-slider .s-slider-nav-arrow,
  body .advanced-slider .swiper-button-next,
  body .advanced-slider .swiper-button-prev,
  body .advanced-slider .swiper-pagination {
    display: none !important;
  }
}

/* ==========================================================================
   4 · FEATURES — 4 cards · icon on top · static title
   ========================================================================== */

body .s-block--enhanced-features {
  padding-block: clamp(32px, 4vw, 64px) !important;
}

body .s-block--enhanced-features .mada-section-title {
  margin-bottom: clamp(28px, 3vw, 48px);
}

body .s-block--enhanced-features .enhanced-features__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.4vw, 24px) !important;
  align-items: stretch;
}

body .s-block--enhanced-features__item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px;
  text-align: center !important;
  padding: clamp(28px, 2.4vw, 40px) clamp(16px, 1.4vw, 24px) !important;
  background: #fff !important;
  border: 1px solid #ededed !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 28px rgba(34, 58, 47, 0.06) !important;
  overflow: visible !important;
}

body .s-block--enhanced-features__item > .absolute {
  display: none !important;
}

body .s-block--enhanced-features .feature-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
}

body .s-block--enhanced-features .feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: none !important;
  filter: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

body .s-block--enhanced-features__item:hover .feature-icon img {
  transform: translateY(-3px) scale(1.05);
}

body .s-block--enhanced-features__item h2 {
  font-size: clamp(16px, 1.15vw, 22px) !important;
  font-weight: 600 !important;
  line-height: 1.5;
  color: var(--mada-green) !important;
  margin: 0 !important;
}

body .s-block--enhanced-features__item p {
  display: block !important;
  margin: 0 !important;
  font-size: clamp(12px, 0.85vw, 14px) !important;
  line-height: 1.7 !important;
  color: var(--mada-muted) !important;
  max-width: 22em;
}

body .s-block--enhanced-features__item p:empty {
  display: none !important;
}

/* ==========================================================================
   عناوين السكاشن — العنوان ثم نجمة الفيجما ثم الوصف
   ========================================================================== */

body .home-block-title,
body .home-block-title .container,
body .home-block-title > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body .home-block-title h2,
body .circle-links__title,
body .faq__title,
body .s-slider-block__title h2,
body .mada-section-title h2,
body .testimonials__title {
  order: 1;
  width: fit-content !important;
  max-width: 100%;
  font-size: clamp(22px, 2vw, 38px) !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: var(--mada-ink) !important;
  margin: 0 auto 8px !important;
}

body .home-block-title .enhanced-title-border,
body .home-block-title .home-block-line,
body .mada-section-title .home-block-line {
  order: 2;
  display: block !important;
  width: var(--mada-title-w, 12em);
  max-width: 100%;
  height: 16px;
  margin: 4px auto 10px !important;
  background:
    linear-gradient(#a3a3a3, #a3a3a3) left center / calc(50% - 12px) 1px no-repeat,
    var(--mada-divider-star) center / 16px 16px no-repeat,
    linear-gradient(#a3a3a3, #a3a3a3) right center / calc(50% - 12px) 1px no-repeat !important;
  border: 0 !important;
  box-shadow: none !important;
}

body .s-block--faq .home-block-title .enhanced-title-border,
body .s-block--faq .home-block-title .home-block-line {
  width: min(328px, 80vw);
  background: var(--mada-divider) center / contain no-repeat !important;
}

body .home-block-title .enhanced-title-border::before,
body .home-block-title .enhanced-title-border::after,
body .home-block-title .home-block-line::before,
body .home-block-title .home-block-line::after {
  content: none !important;
  display: none !important;
}

body .home-block-title p,
body .circle-links__description,
body .faq__subtitle {
  order: 3;
  font-size: clamp(13px, 0.95vw, 18px) !important;
  line-height: 1.6 !important;
  color: var(--mada-muted-2) !important;
  margin: 0 !important;
}

/* عنوان أحدث المنتجات: في النص + نجمة الفيجما، من غير الخط الأصفر */
body .s-slider-block__title {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  margin-bottom: 28px;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

body .s-slider-block__title::before,
body .s-slider-block__title::after,
body .s-block--best-offers::before,
body .s-block--best-offers::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
  height: 0 !important;
}

body .s-slider-block__title-right {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body .s-block--best-offers .s-slider-block__title-right,
body salla-products-slider .s-slider-block__title-right,
salla-products-slider .s-slider-block__title-right {
  border-bottom: none !important;
  border: 0 !important;
}

body .s-slider-block__title h2 {
  text-align: center !important;
  width: fit-content !important;
  max-width: 100%;
  margin-inline: auto !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body .s-slider-block__title h2 {
  display: flex !important;
  flex-direction: column;
  align-items: center;
}

body .s-slider-block__title h2::after {
  content: '' !important;
  display: block !important;
  width: 100%;
  height: 16px;
  margin: 10px auto 0;
  background:
    linear-gradient(#a3a3a3, #a3a3a3) left center / calc(50% - 12px) 1px no-repeat,
    var(--mada-divider-star) center / 16px 16px no-repeat,
    linear-gradient(#a3a3a3, #a3a3a3) right center / calc(50% - 12px) 1px no-repeat !important;
  border: 0 !important;
}

body .s-slider-block__title-left,
body .s-slider-block__title-nav {
  display: none !important;
}

body .s-slider-block__title-right::before,
body .s-slider-block__title-right::after,
body .s-slider-block__title-left::before,
body .s-slider-block__title-left::after,
body .s-products-slider-wrapper::before,
body .s-products-slider-wrapper::after,
body .s-slider-wrapper::before,
body .s-slider-wrapper::after,
body .fit-slider-products::before,
body .fit-slider-products::after,
body .s-block--best-offers .container::before,
body .s-block--best-offers .container::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
  height: 0 !important;
}

body .s-block--best-offers,
body .s-products-slider-wrapper,
body .s-products-slider-slider,
body .fit-slider-products,
body .s-slider-wrapper {
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

body .s-block--tabs-produtcs .tabs {
  display: none !important;
}

/* شبكة أحدث المنتجات داخل السلايدر — نفس كروت الشبكة */
body .s-block--best-offers,
body #best-offers-3-slider,
body .s-block--best-offers .s-slider-container,
body .s-block--best-offers .swiper,
body .s-products-slider-wrapper .s-slider-container,
body .s-products-slider-wrapper .swiper,
body salla-products-slider .swiper,
body salla-products-slider .s-slider-container,
body .s-block--tabs-produtcs .swiper,
body .s-block--tabs-produtcs .s-slider-container,
body .s-products-list-wrapper,
body .s-products-slider-slider,
body .s-block--tabs-produtcs {
  overflow: hidden !important;
}

/* Swiper بيحط ارتفاع ثابت على الترك — لازم auto وإلا الزرار يقع بره الكرت ويتقص.
   و overflow: hidden على الترك يمنع السلايد الزيادة إنها تطل من الجنب وقت التحميل. */
body .s-block--best-offers .swiper,
body .s-block--best-offers .s-slider-container,
body .s-products-slider-wrapper .swiper,
body .s-products-slider-wrapper .s-slider-container,
body salla-products-slider .swiper,
body salla-products-slider .s-slider-container,
body .s-products-slider-slider .swiper,
body .s-block--best-offers .swiper-wrapper,
body .s-products-slider-slider .swiper-wrapper {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

body .s-block--best-offers .swiper,
body .s-block--best-offers .s-slider-container,
body .s-products-slider-wrapper .swiper,
body .s-products-slider-wrapper .s-slider-container,
body salla-products-slider .swiper,
body salla-products-slider .s-slider-container,
body .s-products-slider-slider .swiper {
  overflow: hidden !important;
}

/* هيكل التحميل الرمادي لسكشن المنتجات — يتخفى بالكامل */
body .s-block--best-offers salla-skeleton,
body .s-block--best-offers .s-skeleton-wrapper,
body .s-block--best-offers .s-skeleton-item,
body salla-products-slider salla-skeleton,
body salla-products-slider .s-skeleton-wrapper,
body salla-products-slider .s-skeleton-item,
body .s-products-slider-wrapper salla-skeleton,
body .s-products-slider-wrapper .s-skeleton-wrapper,
body .fit-slider-products salla-skeleton,
body .fit-slider-products .s-skeleton-wrapper {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body salla-products-slider,
body .s-products-slider-wrapper,
body .fit-slider-products,
body .s-block--best-offers salla-slider,
body salla-slider.s-products-slider-slider,
body .s-slider-wrapper,
body .s-products-slider-slider .swiper,
body .s-products-slider-slider .s-slider-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-inline: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-inline: 0 !important;
  box-sizing: border-box !important;
}

body .s-block--best-offers .swiper-wrapper {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.25vw, 24px) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  box-sizing: border-box !important;
}

body .s-block--best-offers .swiper-slide,
body .s-block--best-offers .s-products-slider-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  inset-inline: auto !important;
  flex: initial !important;
  height: auto !important;
  transform: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body custom-salla-product-card,
body custom-salla-product-card.product-card,
body .s-products-slider-card custom-salla-product-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 1279px) {
  body .s-block--best-offers .swiper-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body .s-block--best-offers .swiper-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ==========================================================================
   5 · CATEGORIES — 4 columns, 416/460 aspect ratio
   ========================================================================== */

body .s-block--circle-links .s-slider-container,
body .s-block--circle-links .swiper {
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .s-block--circle-links .swiper-wrapper {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.25vw, 24px) !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

body .s-block--circle-links .swiper-slide {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  inset-inline: auto !important;
  transform: none !important;
  flex: initial !important;
}

/* رابط القسم يملأ الخلية عشان الصورة تقع في نص العمود */
body .s-block--circle-links .swiper-slide > a {
  display: block !important;
  width: 100% !important;
}

body .s-block--circle-links .s-slider-nav,
body .s-block--circle-links .swiper-scrollbar,
body .s-block--circle-links .s-slider-scrollbar {
  display: none !important;
}

body .circle-links__image-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  border-radius: var(--mada-radius) !important;
  overflow: hidden;
}

body .circle-links__image-wrap img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 416 / 460;
  object-fit: cover;
  border-radius: var(--mada-radius) !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

body .s-block--circle-links a:hover .circle-links__image-wrap img {
  transform: scale(1.05);
}

body .circle-links__item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font-size: clamp(16px, 1.15vw, 22px) !important;
  font-weight: 600 !important;
  color: var(--mada-ink) !important;
  margin-top: 18px !important;
  text-align: right;
}

body .circle-links__item-title::after {
  content: '';
  flex: 0 0 31.3px;
  width: 31.3px;
  height: 31.3px;
  background: var(--mada-arrow) center / contain no-repeat;
  transition: transform 0.3s ease;
}

body .s-block--circle-links a:hover .circle-links__item-title::after {
  transform: translateX(-4px);
}

body .circle-links__item-subtitle:empty {
  display: none;
}

@media (max-width: 767px) {
  body .s-block--circle-links .swiper-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ==========================================================================
   6 · PRODUCT CARDS
   ========================================================================== */

body .s-products-list-wrapper.s-products-list-vertical-cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.25vw, 24px) !important;
  align-items: stretch;
}

body .product-card--fit-height,
body .product-card--vertical,
body custom-salla-product-card.product-card,
body custom-salla-product-card.product-card.hover_style_1 {
  position: relative !important;
  display: flex;
  flex-direction: column;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
  background: transparent;
  box-shadow: none;
  border: 0 !important;
  --color-primary: #223a2f;
  --product-image-height: auto;
}

/* الصورة بس اللي ليها نسبة 4/5 — الزرار اتنقل تحت المحتوى */
body .product-card__image,
body .product-card--fit-height .product-card__image,
body custom-salla-product-card.product-card .product-card__image {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: unset !important;
  flex: 0 0 auto !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: transparent;
}

body .product-card__image > a {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto !important;
  border-radius: var(--mada-radius);
  overflow: hidden;
  background: #f5f0eb;
}

body .product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

body custom-salla-product-card.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

body .product-card__content,
body .product-card__content-wrapper,
body .product-card__subtitle,
body .product-card__title,
body .product-card__price,
body .price-wrapper {
  border: 0 !important;
  box-shadow: none !important;
}

body .product-card__content::before,
body .product-card__content::after,
body .product-card__subtitle::before,
body .product-card__subtitle::after,
body .product-card__title::before,
body .product-card__title::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
}
/* المحتوى ما يتمددش عشان الزرار يفضل ملزوق تحت السعر مش في آخر الكرت */
body .product-card__content,
body .product-card__content-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body .product-card__content {
  padding-top: 10px !important;
  flex: 0 0 auto !important;
}

body .product-card__content-wrapper {
  gap: 3px !important;
}

body custom-salla-product-card.product-card {
  justify-content: flex-start !important;
}

body .product-card__title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: clamp(13px, 1vw, 17px) !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  text-align: right !important;
  color: var(--mada-ink) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 0 2px 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body .product-card__subtitle {
  display: -webkit-box !important;
  -webkit-line-clamp: 1 !important;
  line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: clamp(11px, 0.8vw, 14px) !important;
  line-height: 1.4 !important;
  color: var(--mada-muted-2) !important;
  text-align: right !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body .product-options {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .product-card__price,
body .price-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* الزرار جوه الصورة overlay — يتخفى، النسخة اللي تحت المحتوى هي اللي تظهر */
body .product-card__image .product-card__addToCart,
body .product-card.hover_style_1 .product-card__image .product-card__addToCart,
body .product-card.hover_style_1:hover .product-card__image .product-card__addToCart {
  display: none !important;
}

/* زرار أضف إلى السلة — ثابت في الـ flow تحت السعر */
body .product-card__content > .product-card__addToCart,
body custom-salla-product-card.product-card > .product-card__addToCart,
body .product-card.mada-card-ready .product-card__content > .product-card__addToCart,
body .product-card.hover_style_1 .product-card__content > .product-card__addToCart,
body .product-card.hover_style_1:hover .product-card__content > .product-card__addToCart {
  display: block !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  inset: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  translate: none !important;
  pointer-events: auto !important;
  width: 100% !important;
  height: auto !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 16px !important;
  z-index: 1 !important;
}

body .product-card__addToCart salla-add-product-button,
body .product-card__addToCart .product-card__addToCart__btn,
body .product-card__addToCart__btn salla-button,
body .product-card__addToCart salla-button,
body .product-card__addToCart .s-button-wrap,
body .product-card__addToCart .w-full,
body .product-card__addToCart:hover salla-add-product-button,
body .product-card__addToCart:hover salla-button,
body .product-card:hover .product-card__addToCart salla-button {
  display: block !important;
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: none !important;
  line-height: 1 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
}

body .product-card__addToCart__btn salla-button::before,
body .product-card__addToCart__btn salla-button::after,
body .product-card__addToCart salla-button::before,
body .product-card__addToCart salla-button::after,
body .product-card__addToCart .s-button-wrap::before,
body .product-card__addToCart .s-button-wrap::after,
body custom-salla-product-card.product-card .product-card__addToCart__btn salla-button:hover::before,
body custom-salla-product-card.product-card .product-card__addToCart__btn salla-button:hover::after,
body .product-card__addToCart__btn salla-button:hover::after,
body .product-card__addToCart__btn salla-button:hover::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  left: auto !important;
  right: auto !important;
  background: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body .product-card__addToCart .s-button-element,
body .product-card__addToCart .s-button-element.s-button-btn,
body .product-card__addToCart button.s-button-element,
body .product-card__addToCart .s-button-solid,
body .product-card__addToCart .s-button-primary,
body .product-card__addToCart__btn salla-button button,
body .product-card__addToCart__btn salla-button .s-button-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  width: 100% !important;
  min-height: 52px !important;
  height: 52px !important;
  max-height: none !important;
  line-height: 1 !important;
  padding: 0 20px !important;
  background: #223a2f !important;
  background-color: #223a2f !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 16px !important;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
  box-shadow: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  font-family: 'Cairo', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  transform: none !important;
  transition: background-color 0.25s ease;
}

body .product-card__addToCart .s-button-element:hover,
body .product-card__addToCart .s-button-element:focus,
body .product-card__addToCart .s-button-element:active,
body .product-card__addToCart button.s-button-element:hover,
body .product-card__addToCart:hover .s-button-element,
body .product-card:hover .product-card__addToCart .s-button-element,
body .product-card__addToCart:hover salla-button,
body .product-card__addToCart:hover .s-button-wrap,
body .product-card__addToCart__btn salla-button:hover,
body .product-card__addToCart__btn salla-button:hover button {
  background: #16261f !important;
  opacity: 1 !important;
  border-radius: 16px !important;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
}

body .product-card__addToCart .s-button-text {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  color: #fff !important;
  line-height: 1 !important;
}

body .s-block--double-banner img {
  border-radius: var(--mada-radius);
  transition: transform 0.5s ease;
}

body .s-block--double-banner .banner {
  border-radius: var(--mada-radius);
  overflow: hidden;
}

body .s-block--double-banner a:hover img {
  transform: scale(1.03);
}

@media (max-width: 1279px) {
  body .s-products-list-wrapper.s-products-list-vertical-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body .s-products-list-wrapper.s-products-list-vertical-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ==========================================================================
   7 · FAQ — Figma 26:13
   ========================================================================== */

body .s-block--faq {
  background: #fff !important;
  --faq-bg: none !important;
}

body .faq__grid {
  gap: clamp(18px, 2.03vw, 39px) clamp(20px, 2.22vw, 42px) !important;
  align-items: start;
}

body .single-faq {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mada-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 0 16px !important;
  list-style: none !important;
  list-style-type: none !important;
}

body .single-faq::before,
body .single-faq::after,
body .faq-btn::before,
body .faq-btn::after {
  content: none !important;
  display: none !important;
}

body .faq-btn {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px;
  width: 100% !important;
  padding: 12px 0 !important;
  background: transparent !important;
  border: none !important;
  text-align: right;
  cursor: pointer;
}

body .faq__question {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto !important;
  font-size: clamp(15px, 1.05vw, 20px) !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  color: var(--mada-ink) !important;
  text-align: right !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* مربع الفيجما الصغير قبل السؤال */
body .faq__question::before {
  content: '' !important;
  display: block !important;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  background: var(--mada-ink);
  margin: 0 !important;
}

body .faq__question::after {
  content: none !important;
  display: none !important;
}

/* إخفاء أيقونة الثيم واستبدالها بسهم القوس من الفيجما */
body .faq-btn i,
body .faq-btn i.sicon-keyboard_arrow_down {
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image: var(--mada-faq-arrow) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 24px 24px !important;
  font-size: 0 !important;
  color: transparent !important;
  box-shadow: none !important;
  transform: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

body .faq-btn i::before,
body .faq-btn i::after {
  content: none !important;
  display: none !important;
}

body .faq-btn:hover i {
  background-color: transparent !important;
  background-image: var(--mada-faq-arrow) !important;
  color: transparent !important;
}

body .single-faq.is-open .faq-btn i {
  transform: scaleY(-1) !important;
  background-color: transparent !important;
  background-image: var(--mada-faq-arrow) !important;
}

body .faq-content {
  display: block !important;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease,
    transform 0.35s ease;
}

body .single-faq.is-open .faq-content {
  max-height: 320px;
  opacity: 1;
  transform: none;
}

body .faq__answer {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding-top: 10px !important;
  font-size: clamp(13px, 0.85vw, 16px) !important;
  line-height: 1.8 !important;
  color: var(--mada-muted) !important;
  text-align: right !important;
}

/* ==========================================================================
   7b · REVIEWS — آراء عميلاتنا
   ========================================================================== */

body .s-block--testimonials {
  padding-block: clamp(28px, 3.5vw, 56px) !important;
  background: transparent !important;
}

body .s-block--testimonials .testimonials__inner {
  position: relative;
}

body .s-block--testimonials .home-block-title {
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-inline: 48px;
}

body .s-block--testimonials .testimonials__review-card,
body .s-block--testimonials .review {
  background: #fff !important;
  border: 1px solid #ececec !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(34, 58, 47, 0.05) !important;
  padding: 24px 22px !important;
  height: 100%;
}

body .s-block--testimonials .testimonials__text,
body .s-block--testimonials .testimonials__text-wrap p {
  font-size: 14px !important;
  line-height: 1.85 !important;
  color: var(--mada-muted) !important;
  text-align: right !important;
  margin: 0 0 20px !important;
}

body .s-block--testimonials .testimonials__author,
body .s-block--testimonials .review-author,
body .s-block--testimonials .testimonials__review-card > .flex:last-child {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  margin-top: auto;
  flex-direction: row-reverse;
}

body .s-block--testimonials .testimonials__author img,
body .s-block--testimonials .review img[class*='avatar'],
body .s-block--testimonials .testimonials__review-card img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex: 0 0 48px;
}

body .s-block--testimonials .testimonials__name,
body .s-block--testimonials .review-name,
body .s-block--testimonials .testimonials__author p,
body .s-block--testimonials .testimonials__author span {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--mada-ink) !important;
  margin: 0 !important;
  text-align: right;
}

body .s-block--testimonials salla-rating-stars,
body .s-block--testimonials .s-rating-stars,
body .s-block--testimonials [class*='star'] {
  color: #e0b04a;
}

body .s-block--testimonials .s-slider-nav,
body .s-block--testimonials .mada-reviews-nav {
  position: absolute;
  top: 6px;
  z-index: 3;
  width: 100%;
  pointer-events: none;
}

body .s-block--testimonials .mada-reviews-prev,
body .s-block--testimonials .mada-reviews-next,
body .s-block--testimonials .s-slider--nav-arrow {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--mada-ink);
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 767px) {
  body .s-block--testimonials .mada-reviews-prev,
  body .s-block--testimonials .mada-reviews-next {
    font-size: 18px;
    width: 28px;
    height: 28px;
  }
}

body .s-block--testimonials .mada-reviews-prev {
  position: absolute;
  inset-inline-end: 0;
  top: 4px;
}

body .s-block--testimonials .mada-reviews-next {
  position: absolute;
  inset-inline-start: 0;
  top: 4px;
}

/* ==========================================================================
   7c · OFFERS — أحدث عروضنا: 3 كروت سلايدر + بنر عمودي يمين
   ========================================================================== */

body .s-block--custom-products {
  padding-block: clamp(32px, 4vw, 64px) 28px !important;
  overflow: visible !important;
}

body .s-block--custom-products > .home-block-title,
body .s-block--custom-products > .s-slider-block__title {
  margin-bottom: 32px !important;
}

@media (min-width: 1024px) {
  body .s-block--custom-products {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    column-gap: 16px;
    align-items: start;
  }

  body .s-block--custom-products > .home-block-title,
  body .s-block--custom-products > .s-slider-block__title {
    grid-column: 1 / -1 !important;
    grid-row: 1;
  }

  body .s-block--custom-products .mada-offers-promo {
    grid-column: 1 !important;
    grid-row: 2;
    align-self: start;
    position: relative;
    width: clamp(220px, 22vw, 300px);
    aspect-ratio: 446 / 640;
    height: auto;
    min-height: 0;
    background: none !important;
  }

  body .s-block--custom-products .mada-offers-promo__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  body .s-block--custom-products salla-products-slider,
  body .s-block--custom-products .s-products-slider-wrapper,
  body .s-block--custom-products .s-slider-wrapper {
    grid-column: 2 !important;
    grid-row: 2;
    min-width: 0 !important;
    width: 100% !important;
    height: auto !important;
  }

  body .s-block--custom-products .mada-offers-nav {
    grid-column: 2 !important;
    grid-row: 3;
    justify-self: start;
    width: max-content;
    margin-top: 14px !important;
  }
}

body .s-block--custom-products salla-products-slider,
body .s-block--custom-products .s-products-slider-wrapper,
body .s-block--custom-products .s-slider-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
}

body .s-block--custom-products .swiper,
body .s-block--custom-products .s-slider-container {
  overflow: hidden !important;
  height: auto !important;
}

body .s-block--custom-products .swiper-wrapper {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  width: auto !important;
  max-width: none !important;
}

body .s-block--custom-products .swiper-slide,
body .s-block--custom-products .s-products-slider-card {
  height: auto !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

body .s-block--custom-products .s-slider-block__title-nav,
body .s-block--custom-products .s-slider-nav,
body .s-block--custom-products .swiper-pagination,
body .s-block--custom-products .swiper-button-next,
body .s-block--custom-products .swiper-button-prev,
body .s-block--custom-products .s-slider-nav-arrow {
  display: none !important;
}

body .s-block--custom-products .mada-offers-nav {
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 14px;
  position: relative;
  z-index: 3;
}

body .s-block--custom-products .mada-offers-prev,
body .s-block--custom-products .mada-offers-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2b2b2b;
  cursor: pointer;
}

body .s-block--custom-products .mada-offers-prev svg,
body .s-block--custom-products .mada-offers-next svg {
  display: block;
  width: 22px;
  height: 22px;
}

body .s-block--custom-products .mada-offers-promo {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px;
  text-decoration: none !important;
  background: none !important;
  box-shadow: none !important;
}

body .s-block--custom-products .mada-offers-promo__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
  background: none !important;
}

body .s-block--custom-products .mada-offers-promo__tag,
body .s-block--custom-products .mada-offers-promo__title,
body .s-block--custom-products .mada-offers-promo__cta {
  display: none !important;
}

/* كروت العروض — زي السكرين: صورة مربعة، عنوان وسعر في النص، من غير وصف */
body .s-block--custom-products custom-salla-product-card.product-card,
body .s-block--custom-products .product-card {
  overflow: visible !important;
}

body .s-block--custom-products .product-card__image > a {
  aspect-ratio: 1 / 1 !important;
  border-radius: 12px !important;
}

body .s-block--custom-products .product-card__actions,
body .s-block--custom-products .product-card__buttons,
body .s-block--custom-products .product-card__promotion,
body .s-block--custom-products .product-card__wishlist,
body .s-block--custom-products .product-card__subtitle {
  display: none !important;
}

body .s-block--custom-products .product-card__content {
  padding-top: 12px !important;
}

body .s-block--custom-products .product-card__title {
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  margin: 0 0 6px 0 !important;
  -webkit-line-clamp: 1 !important;
  line-clamp: 1 !important;
}

body .s-block--custom-products .product-card__price,
body .s-block--custom-products .price-wrapper {
  justify-content: center !important;
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--mada-ink) !important;
}

body .s-block--custom-products .product-card__price *,
body .s-block--custom-products .price-wrapper * {
  color: var(--mada-ink) !important;
}

body .s-block--custom-products .product-card__content > .product-card__addToCart,
body .s-block--custom-products custom-salla-product-card.product-card > .product-card__addToCart {
  margin: 12px 0 0 !important;
  border-radius: 12px !important;
}

body .s-block--custom-products .product-card__addToCart salla-add-product-button,
body .s-block--custom-products .product-card__addToCart .product-card__addToCart__btn,
body .s-block--custom-products .product-card__addToCart__btn salla-button,
body .s-block--custom-products .product-card__addToCart salla-button,
body .s-block--custom-products .product-card__addToCart .s-button-wrap,
body .s-block--custom-products .product-card__addToCart .w-full {
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 12px !important;
}

body .s-block--custom-products .product-card__addToCart .s-button-element,
body .s-block--custom-products .product-card__addToCart button.s-button-element,
body .s-block--custom-products .product-card__addToCart .s-button-element:hover,
body .s-block--custom-products .product-card__addToCart .s-button-element:focus,
body .s-block--custom-products .product-card:hover .product-card__addToCart .s-button-element {
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

body .s-block--custom-products .product-card__addToCart .s-button-text i,
body .s-block--custom-products .product-card__addToCart .sicon-shopping {
  display: none !important;
}

/* البنرات جنب بعض زي ما هما */
body .s-block--double-banner {
  /* no layout change */
}

/* ==========================================================================
   8 · FOOTER
   ========================================================================== */

body .store-footer,
body .store-footer.basic-footer,
body.footer-is-custom .store-footer,
body .store-footer__inner,
body .store-footer.basic-footer .store-footer__inner,
body .store-footer__container,
body .store-footer.basic-footer .store-footer__container {
  background: #3e5348 !important;
  color: #fff;
}

body .mada-footer-top,
body .store-footer__newsletter,
body .mada-footer-account,
body .store-footer__account-column,
body .store-footer .mada-footer-home:not(.mada-footer-side) {
  display: none !important;
}

body .store-footer__inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body .store-footer__container,
body .store-footer__container.container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  max-width: 1120px !important;
  width: 100% !important;
  margin-inline: auto !important;
}

body .store-footer__grid,
body .store-footer__grid.grid,
body .store-footer__grid[class*="grid-cols"] {
  display: grid !important;
  grid-template-columns: minmax(150px, 0.9fr) minmax(280px, 1.3fr) minmax(150px, 0.9fr) !important;
  grid-template-areas:
    "links brand side"
    "contacts contacts contacts"
    "social social social" !important;
  gap: 12px 48px !important;
  align-items: start;
  padding-block: 28px 12px;
  max-width: 1120px;
  margin-inline: auto;
  width: 100%;
}

body .store-footer__grid > * {
  margin-bottom: 0 !important;
}

body .store-footer__links-column,
body .store-footer__links-column[class*="col-span"] {
  grid-area: links !important;
  justify-self: start;
}

body .store-footer__brand,
body .store-footer__brand[class*="col-span"] {
  grid-area: brand !important;
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  gap: 6px;
  text-align: center !important;
}

body .store-footer__home-column,
body .store-footer .mada-footer-side {
  grid-area: side !important;
  justify-self: end;
  text-align: right;
}

body .store-footer__contacts-column {
  grid-area: contacts !important;
  align-items: center !important;
  margin-top: 4px;
}

body .store-footer .mada-footer-social,
body .store-footer .grid-itme,
body .store-footer .grid-itme[class*="col-span"] {
  grid-area: social !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body .store-footer .footer-logo,
body .store-footer .footer-logo img {
  display: block !important;
  height: 64px !important;
  width: auto !important;
  max-width: 180px;
  object-fit: contain;
  margin-inline: auto;
  filter: brightness(0) invert(1);
}

body .store-footer .footer-description,
body .store-footer .footer-description p,
body .store-footer.basic-footer .footer-description,
body .store-footer.basic-footer .footer-description p {
  display: block !important;
  margin: 0 auto 10px !important;
  max-width: 17rem !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
  color: #fff !important;
  text-align: center !important;
}

body .store-footer__brand .ql-direction-rtl {
  display: none !important;
}

body .store-footer .footer-badges,
body .store-footer salla-trust-badges {
  display: none !important;
}

body .mada-footer-legal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 36px;
  margin-top: 8px;
}

body .mada-legal-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

body .mada-legal-copy {
  text-align: right;
}

body .mada-legal-copy span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 2px;
}

body .mada-legal-copy b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  direction: ltr;
}

body .mada-legal-badge {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  flex: 0 0 56px;
  background: none;
}

body .store-footer__locale-row {
  display: none !important;
}

body .store-footer .footer-title,
body .store-footer h3 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 8px !important;
  text-align: right;
}

body .store-footer .mada-footer-side .footer-title,
body .store-footer__contacts-column .footer-title,
body .store-footer .mada-footer-social .footer-title {
  display: none !important;
}

body .store-footer .footer-title i {
  display: none !important;
}

body .store-footer .footer-list,
body .store-footer .mada-footer-home-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body .store-footer .footer-list li,
body .store-footer .mada-footer-home-list li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body .store-footer .footer-list li::before,
body .store-footer .footer-list li::after,
body .store-footer .links_with_bullits li::before,
body .store-footer .links_with_bullits li::after,
body .store-footer .enhanced_links li::before,
body .store-footer .enhanced_links li::after {
  content: none !important;
  display: none !important;
}

body .store-footer__menu-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(13px, 0.85vw, 15px) !important;
  font-weight: 400 !important;
  line-height: 1.7;
  text-align: right;
  transition: color 0.2s ease;
}

body .store-footer__menu-link:hover {
  color: #ffffff !important;
}

body .store-footer__menu-link::before,
body .store-footer__menu-link::after {
  content: none !important;
}

body .store-footer selia-contacts,
body .store-footer .user-contacts {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center;
  gap: 16px 24px;
  text-align: center;
  white-space: nowrap;
  padding: 0 !important;
  margin: 0 !important;
}

body .store-footer .links-contact,
body .store-footer .user-contacts > a,
body .store-footer .user-contacts .links-contact {
  display: inline-flex !important;
  flex-direction: row-reverse;
  align-items: center !important;
  flex: 0 0 auto;
  gap: 8px;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  white-space: nowrap;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  transform: none !important;
}

body .store-footer .links-contact span,
body .store-footer .text-unicode {
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

body .store-footer .links-contact:hover {
  color: #ffffff !important;
}

body .store-footer .links-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px !important;
  height: 30px !important;
  font-size: 14px !important;
  color: #fff !important;
  opacity: 1 !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

body .store-footer__links-column,
body .store-footer__home-column,
body .store-footer .mada-footer-side {
  display: flex;
  flex-direction: column;
  text-align: right;
}

@media (min-width: 768px) {
  body .store-footer .footer-collapse__content,
  body .store-footer .footer-collapse__body {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
  }

  body .store-footer .footer-collapse__arrow {
    display: none !important;
  }
}

body .store-footer .s-social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

body .store-footer .s-social-link a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease;
}

body .store-footer .s-social-link a:hover {
  background: #fff;
  color: #3e5348;
}

body .footer-bottom,
body .store-footer .footer-bottom,
body .store-footer__bottom-inner {
  background: #f7f7f7 !important;
  border-top: 0 !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  min-height: 0 !important;
}

body .store-footer__bottom-inner.container,
body .footer-bottom .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body .store-footer__bottom-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between !important;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding-block: 0 !important;
  min-height: 0;
}

body .footer-bottom .store-footer__bottom-social:empty {
  display: none !important;
}

body .footer-rights,
body .footer-bottom .footer-rights,
body .store-footer__bottom-row > div {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body .footer-rights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 0 !important;
  margin: 0 !important;
}

body .footer-rights,
body .footer-rights p,
body .footer-rights a {
  color: var(--mada-green) !important;
  font-size: 13px !important;
  margin: 0 !important;
}

body .mada-footer-credit-link {
  color: var(--mada-green) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

body .mada-footer-credit-link:hover {
  color: var(--mada-gold) !important;
}

body .footer-bottom .s-payments-list-wrap {
  display: block;
  width: auto;
  max-width: none;
}

body .footer-bottom .s-payments-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  width: auto;
}

body .s-payments-list-item {
  flex: 0 0 auto;
  width: 44px;
  height: 28px;
  padding: 3px 5px;
  background: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body .mada-footer-credit {
  margin: 0 8px 0 0 !important;
  font-size: 12px !important;
  color: rgba(34, 58, 47, 0.7) !important;
}

body .s-payments-list-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1023px) {
  body .store-footer__inner {
    max-width: none !important;
    width: 100% !important;
  }

  body .store-footer__container,
  body .store-footer__container.container {
    max-width: 100% !important;
    padding-inline: var(--mada-gutter) !important;
  }

  body .store-footer__grid,
  body .store-footer__grid[class*="grid-cols"] {
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
      "brand brand"
      "links side"
      "contacts contacts"
      "social social" !important;
    gap: 20px 24px !important;
    max-width: 100%;
  }

  body .store-footer__brand,
  body .store-footer__brand[class*="col-span"] {
    grid-area: brand !important;
  }

  body .store-footer selia-contacts,
  body .store-footer .user-contacts {
    flex-wrap: wrap !important;
    white-space: normal;
    gap: 12px 18px;
  }

  body .store-footer .links-contact,
  body .store-footer .user-contacts .links-contact {
    white-space: nowrap;
  }
}

@media (max-width: 639px) {
  body .store-footer__grid,
  body .store-footer__grid[class*="grid-cols"] {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "brand"
      "links"
      "side"
      "contacts"
      "social" !important;
    gap: 18px !important;
  }

  body .store-footer__links-column,
  body .store-footer__home-column,
  body .store-footer .mada-footer-side,
  body .store-footer__brand {
    justify-self: stretch;
    text-align: center;
    align-items: center;
  }

  body .store-footer .footer-list,
  body .store-footer .mada-footer-home-list,
  body .store-footer__menu-link {
    text-align: center;
    justify-content: center;
  }
}

/* ==========================================================================
   9 · RESPONSIVE — tablet · small screens · mobile
   Header height stays constant on scroll at each breakpoint.
   ========================================================================== */

html {
  overflow-x: hidden;
}

@media (max-width: 1023px) {
  :root {
    --mada-header-h: 88px;
    --mada-logo-h: 48px;
    --mada-gutter: 24px;
  }

  body .advanced-slider__caption__inner__content {
    max-width: 56%;
  }

  body .advanced-slider__caption__inner__content__heading {
    font-size: clamp(28px, 4.2vw, 52px) !important;
  }


  body .s-block--circle-links .swiper-wrapper,
  body .s-block--best-offers .swiper-wrapper,
  body .s-products-list-wrapper.s-products-list-vertical-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  body .s-block--custom-products {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    padding-block: 28px 12px !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    max-width: 100% !important;
    touch-action: pan-y;
  }

  body .s-block--custom-products > .home-block-title,
  body .s-block--custom-products > .s-slider-block__title {
    margin-bottom: 4px !important;
  }

  body .s-block--custom-products .mada-offers-promo {
    width: 100% !important;
    max-width: 100% !important;
    height: min(48vw, 260px) !important;
    min-height: 180px;
    aspect-ratio: auto !important;
    margin: 0 !important;
    border-radius: 12px;
  }

  body .s-block--custom-products .mada-offers-promo__img {
    position: absolute;
    inset: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    pointer-events: none;
  }

  body .s-block--custom-products salla-products-slider,
  body .s-block--custom-products .s-products-slider-wrapper,
  body .s-block--custom-products .s-slider-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body .s-block--custom-products .swiper,
  body .s-block--custom-products .s-slider-container {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body .s-block--custom-products .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
    translate: none !important;
    margin: 0 !important;
  }

  body .s-block--custom-products .swiper-slide,
  body .s-block--custom-products .s-products-slider-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: initial !important;
    transform: none !important;
    margin: 0 !important;
  }

  body .s-block--custom-products .product-card__image > a {
    aspect-ratio: 4 / 5 !important;
  }

  body .s-block--custom-products .mada-offers-nav {
    display: none !important;
  }

  body .s-block--custom-products .product-card__addToCart salla-add-product-button,
  body .s-block--custom-products .product-card__addToCart .s-button-wrap,
  body .s-block--custom-products .product-card__addToCart .s-button-element,
  body .s-block--custom-products .product-card__addToCart button.s-button-element {
    height: 42px !important;
    min-height: 42px !important;
    font-size: 12px !important;
  }

  body .faq__grid {
    grid-template-columns: 1fr !important;
    gap: 12px 0 !important;
  }

  body .s-search-modal .s-modal-body,
  body .s-search-modal.s-search-modal-new .s-modal-body {
    width: min(640px, calc(100% - 32px)) !important;
    max-width: 640px !important;
    margin-top: calc(var(--mada-header-h) + 16px) !important;
  }

  /* أحدث المنتجات: كونتينر + عنوان في النص — موبايل وتابلت فقط */
  body .s-block--best-offers.container,
  body #best-offers-3-slider.container {
    width: 100% !important;
    max-width: var(--mada-container) !important;
    margin-inline: auto !important;
    padding-inline: var(--mada-gutter) !important;
    box-sizing: border-box !important;
  }

  body .s-block--best-offers .s-slider-block__title,
  body .s-block--best-offers .s-slider-block__title-right,
  body .s-block--best-offers .s-slider-block__title h2,
  body #best-offers-3-slider .s-slider-block__title,
  body #best-offers-3-slider .s-slider-block__title-right,
  body #best-offers-3-slider .s-slider-block__title h2 {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  body .s-block--best-offers .s-slider-block__title,
  body #best-offers-3-slider .s-slider-block__title {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body .s-block--best-offers .s-slider-block__title h2::after,
  body #best-offers-3-slider .s-slider-block__title h2::after {
    margin-inline: auto !important;
  }

  body .store-footer__newsletter-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    text-align: right;
  }

  body .store-footer__newsletter form {
    width: 100%;
    flex-wrap: wrap;
  }

  body .store-footer__newsletter-btn {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --mada-header-h: 72px;
    --mada-logo-h: 40px;
    --mada-gutter: 16px;
  }

  body .store-footer__links-column, body .store-footer__links-column[class*="col-span"] {

            justify-self: stretch !important;
  }

  body .container {
    padding-inline: 16px;
  }

  body .mburger i,
  body .header-btn__icon,
  body .s-cart-summary-icon {
    font-size: 22px;
  }

  .footer-collapse {
    border: none !important;
  }

  body .advanced-slider__caption__inner__content__heading {
    font-size: clamp(24px, 7vw, 34px) !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
    overflow-wrap: anywhere;
  }

  body .advanced-slider__caption__inner__content__text {
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin-bottom: 18px !important;
  }

  body .advanced-slider__caption__inner__content__button {
    display: flex !important;
    min-width: 0;
    width: 100%;
    max-width: 320px;
    height: 50px;
    padding: 0 22px !important;
    font-size: 15px !important;
  }

  body .s-block--enhanced-features .enhanced-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body .s-block--custom-products .mada-offers-promo {
    height: min(56vw, 220px) !important;
    min-height: 160px;
  }

  body .s-block--enhanced-features .feature-icon {
    width: 44px;
    height: 44px;
  }

  body .s-block--enhanced-features__item h2 {
    font-size: 18px;
  }

  body .home-block-title h2,
  body .circle-links__title,
  body .faq__title,
  body .s-slider-block__title h2 {
    font-size: 22px !important;
  }

  body .home-block-title .enhanced-title-border,
  body .home-block-title .home-block-line,
  body .s-slider-block__title h2::after {
    width: var(--mada-title-w, 10em);
  }

  body .s-block--faq .home-block-title .enhanced-title-border,
  body .s-block--faq .home-block-title .home-block-line {
    width: min(220px, 70vw);
  }

  body .circle-links__item-title {
    font-size: 14px !important;
    margin-top: 10px !important;
    gap: 8px;
  }

  body .circle-links__item-title::after {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
  }

  body .product-card__title {
    font-size: 14px !important;
  }

  body .product-card__subtitle {
    font-size: 12px !important;
  }

  body .product-card__content > .product-card__addToCart,
  body custom-salla-product-card.product-card > .product-card__addToCart {
    margin: 8px 0 0 !important;
  }

  body .product-card__content .product-card__addToCart salla-add-product-button,
  body .product-card__content .product-card__addToCart .product-card__addToCart__btn,
  body .product-card__content .product-card__addToCart__btn salla-button,
  body .product-card__content .product-card__addToCart salla-button,
  body .product-card__content .product-card__addToCart .s-button-wrap,
  body .product-card__content .product-card__addToCart .w-full,
  body .product-card__content .product-card__addToCart .s-button-element,
  body .product-card__content .product-card__addToCart button.s-button-element {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    font-size: 12px !important;
    padding: 0 8px !important;
    border-radius: 16px !important;
  }

  body .product-card__content .product-card__addToCart .s-button-element,
  body .product-card__content .product-card__addToCart button.s-button-element {
    gap: 6px !important;
    white-space: nowrap !important;
  }

  body .product-card__content .product-card__addToCart .s-button-text {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    max-width: 100% !important;
    overflow: visible !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  body .product-card__content .product-card__addToCart .s-button-text i,
  body .product-card__content .product-card__addToCart .s-button-element i {
    flex: 0 0 auto !important;
    font-size: 14px !important;
  }

  body .s-block--double-banner .double-banner__row {
    gap: 12px !important;
  }

  body .s-search-modal .s-modal-wrapper {
    padding: 0;
  }

  body .s-search-modal .s-modal-body,
  body .s-search-modal.s-search-modal-new .s-modal-body {
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 14px 14px 24px !important;
  }

  body .s-search-modal .s-search-input,
  body .s-search-modal .s-search-input:where([dir='rtl'], [dir='rtl'] *) {
    height: 48px !important;
    font-size: 16px !important;
  }

  body .s-search-modal .s-search-idle-panel,
  body .s-search-modal .s-search-results-body {
    max-height: calc(100dvh - 140px) !important;
  }

  body .store-footer__newsletter {
    padding-block: 24px;
  }

  body .store-footer__newsletter form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body .store-footer__newsletter-field,
  body .store-footer__newsletter-btn {
    width: 100% !important;
  }

  body .store-footer__bottom-row {
    justify-content: center;
    text-align: center;
  }

  body .mm-ocd,
  body .mm-spn {
    z-index: 11000 !important;
  }

  body .store-footer .footer-title i.footer-collapse__arrow {
    display: none !important;
  }

  body .store-footer .footer-collapse__header {
    display: block !important;
    cursor: default;
    margin-bottom: 8px !important;
    pointer-events: none;
  }

  body .store-footer .footer-collapse__content,
  body .store-footer .footer-collapse__body {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
  }

  /* مسافات متساوية بين السكاشن على الموبايل */
  body main > section.s-block,
  body .s-block--enhanced-features,
  body .s-block--circle-links,
  body .s-block--best-offers,
  body .s-block--tabs-produtcs,
  body .s-block--double-banner,
  body .s-block--faq {
    margin-block: 36px !important;
  }

  body .home-block-title,
  body .s-slider-block__title {
    margin-bottom: 20px !important;
  }

  body .home-block-title p,
  body .circle-links__description,
  body .faq__subtitle {
    font-size: 13px !important;
  }

  /* البانرات فوق بعض بدل جنب بعض */
  body .s-block--double-banner .double-banner__row {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  body .s-block--double-banner .banner,
  body .s-block--double-banner img {
    width: 100% !important;
  }

  /* الأسئلة الشائعة */
  body .faq__question {
    align-items: flex-start;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  body .faq__question::before {
    margin-top: 7px !important;
  }

  body .faq-btn {
    gap: 10px;
  }

  body .faq__answer {
    font-size: 13px !important;
    line-height: 1.8 !important;
  }

  body .single-faq.is-open .faq-content {
    max-height: 700px;
  }

  /* الفوتر — عمود واحد، الروابط ظاهرة، من غير أكورديون يخبّي المحتوى */
  body .store-footer__grid,
  body .store-footer__grid[class*="grid-cols"] {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "brand"
      "links"
      "side"
      "contacts"
      "social" !important;
    gap: 18px !important;
    padding-block: 24px 16px;
  }

  body .store-footer__brand,
  body .store-footer__links-column,
  body .store-footer__links-column[class*="col-span"],
  body .store-footer__home-column,
  body .store-footer .mada-footer-side,
  body .store-footer__contacts-column,
  body .store-footer .mada-footer-social,
  body .store-footer .grid-itme {
    justify-self: stretch !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  body .store-footer__links-column,
  body .store-footer__links-column[class*="col-span"] {
    justify-self: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  body .store-footer__links-column .store-footer__menu,
  body .store-footer__links-column .footer-collapse,
  body .store-footer__links-column .footer-collapse__content,
  body .store-footer__links-column .footer-collapse__body,
  body .store-footer__links-column .footer-list,
  body .store-footer__links-column .enhanced_links,
  body .store-footer__links-column .links_with_bullits,
  body .store-footer__links-column li,
  body .store-footer__links-column a {
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
  }

  body .store-footer__links-column .footer-list::before,
  body .store-footer__links-column .footer-list::after,
  body .store-footer__links-column .enhanced_links::before,
  body .store-footer__links-column .enhanced_links::after,
  body .store-footer__links-column .links_with_bullits::before,
  body .store-footer__links-column .links_with_bullits::after,
  body .store-footer__links-column li::before,
  body .store-footer__links-column li::after,
  body .store-footer__links-column li:last-child::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
  }

  body .store-footer__links-column .footer-title,
  body .store-footer__links-column h3,
  body .store-footer__links-column .footer-collapse__header {
    text-align: center !important;
    width: 100% !important;
    margin-inline: auto !important;
    justify-content: center !important;
  }

  body .store-footer__links-column .store-footer__menu-link,
  body .store-footer__links-column .footer-list li,
  body .store-footer .mada-footer-home-list li,
  body .store-footer .mada-footer-home-list a {
    text-align: center !important;
    justify-content: center !important;
    margin-inline: auto !important;
  }

  body .store-footer__brand {
    gap: 8px;
  }

  body .store-footer .footer-logo,
  body .store-footer .footer-logo img {
    height: 52px !important;
    margin-inline: auto;
  }

  body .store-footer .footer-description,
  body .store-footer .footer-description p,
  body .store-footer.basic-footer .footer-description {
    max-width: 17rem !important;
    text-align: center !important;
    font-size: 13px !important;
  }

  body .store-footer .footer-title {
    font-size: 15px !important;
    margin-bottom: 8px !important;
    text-align: center !important;
  }

  body .store-footer .mada-footer-side .footer-title {
    display: none !important;
  }

  body .store-footer__menu-link,
  body .store-footer .footer-list a,
  body .store-footer .links-contact {
    font-size: 13px !important;
    justify-content: center;
    text-align: center;
  }

  body .store-footer .footer-list,
  body .store-footer .mada-footer-home-list {
    align-items: center;
  }

  body .store-footer selia-contacts,
  body .store-footer .user-contacts {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    white-space: normal;
    gap: 10px;
  }

  body .mada-footer-legal {
    flex-direction: column;
    gap: 12px;
  }

  body .mada-legal-item {
    justify-content: center;
  }

  body .mada-legal-badge {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  body .store-footer .footer-title i,
  body .store-footer .footer-title i.footer-collapse__arrow {
    display: none !important;
  }

  body .store-footer .footer-collapse__header {
    display: block !important;
    cursor: default;
    margin-bottom: 8px !important;
    pointer-events: none;
  }

  body .store-footer .footer-collapse__content,
  body .store-footer .footer-collapse__body,
  body .store-footer .footer-collapse:not(.is-open) .footer-collapse__content,
  body .store-footer .footer-collapse__header[aria-expanded="false"] + .footer-collapse__content {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
  }

  body .store-footer__bottom-row {
    flex-direction: column-reverse !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    width: 100%;
    padding-block: 0 !important;
    text-align: center !important;
  }

  body .footer-rights,
  body .footer-bottom .footer-rights,
  body .store-footer__bottom-row > div {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
  }

  body .footer-rights p,
  body .footer-rights a,
  body .mada-footer-credit {
    margin: 0 auto !important;
    text-align: center !important;
    width: 100%;
  }

  body .footer-bottom .s-payments-list {
    justify-content: center !important;
    width: 100%;
  }

  body .s-payments-list-item {
    width: 42px;
    height: 26px;
  }
}

@media (max-width: 479px) {
  body .container {
    padding-inline: 14px;
  }

  body .s-block--enhanced-features .enhanced-features__grid {
    grid-template-columns: 1fr !important;
  }

  body .s-block--circle-links .swiper-wrapper,
  body .s-block--best-offers .swiper-wrapper,
  body .s-products-list-wrapper.s-products-list-vertical-cards {
    gap: 12px !important;
  }

  body .circle-links__item-title {
    font-size: 13px !important;
  }

  body .product-card__content .product-card__addToCart .s-button-element,
  body .product-card__content .product-card__addToCart button.s-button-element,
  body .product-card__content .product-card__addToCart .s-button-text {
    padding-inline: 6px !important;
    font-size: 11px !important;
  }
}

/* منع أي تمرير أفقي على الموبايل */
@media (max-width: 1023px) {
  body#app {
    overflow-x: hidden !important;
    max-width: 100vw;
  }

  .app-inner {
    overflow-x: clip;
    max-width: 100%;
  }

  body img,
  body video,
  body iframe {
    max-width: 100%;
  }
}