/* Add custom CSS styles below */ 
body {
  background-color: white;
}

@media (max-width: 767px) {
  .bg-inherit {
    background-color: #000100;
}
  .navbar-brand img {
    max-height: 6rem;
    max-width: 100px;
    width: auto;
  }
  .sicon-menu:before {
    content: "\ed7f";
    color: #bca054;
}
  .top-navbar {
    display: flex
;
    min-height: 48px;
    padding-top: .5rem;
    background-color: #fefefe;
}

  .header-search {
    border-color: #a58f56;
    border: 1px;
    border-radius: 35px;
    border-style: dashed;
}
.header-btn__icon {
    border-color: #bca054 !important;
    /* border-color: rgba(229, 231, 235, var(--tw-border-opacity, 1)); */
    color: #bca054 !important;
    /* color: rgba(55, 65, 81, var(--tw-text-opacity, 1)); */
}
  
}


/* STEP 1 — Mobile search as bottom sheet */
@media (max-width: 1024px) {
  /* اخفاء البحث من الهيدر العلوي في الجوال */
  .store-header .top-navbar .header-search {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
  }

  .header-btn, .s-cart-summary-wrapper {
    visibility: hidden !important;
}
  salla-user-menu {
    visibility: hidden !important;
}

  /* عشان ما يغطي زر البحث أسفل الصفحة المحتوى */
  body {
    padding-bottom: 72px;
  }
  .top-navbar {
    display: flex;
    min-height: 0;
    padding-bottom: 0;
    padding-top: 0;
}
}

/* زر البحث السفلي (تاب) */
#appSearchTab {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 100000;
  display: none; /* يظهر بالجوال عبر JS */
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, .45);
  background: rgba(0,0,0,.86);
  color: #d4af37;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  user-select: none;
}

#appSearchTab svg { width: 20px; height: 20px; }
#appSearchTab span { font-size: 14px; font-weight: 600; }

/* خلفية التعتيم */
#appSearchOverlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: none;
  background: rgba(0,0,0,.45);
}

/* البوتوم شيت */
#appSearchSheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100002;
  display: none;
  background: #0b0b0b;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border: 1px solid rgba(212, 175, 55, .25);
  transform: translateY(110%);
  transition: transform .25s ease;
  padding: 14px 14px 18px;
}

/* رأس الشيت */
#appSearchSheet .sheetHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #d4af37;
}
#appSearchSheet .sheetHeader .title {
  font-weight: 700;
  font-size: 14px;
}
#appSearchSheet .sheetHeader .closeBtn {
  border: 0;
  background: transparent;
  color: #d4af37;
  font-size: 18px;
  cursor: pointer;
}

/* عند الفتح */
#appSearchSheet.is-open { transform: translateY(0); }

/* تحسين شكل input داخل الشيت (اختياري) */
#appSearchSheet .s-search-input {
  border-radius: 14px !important;
}
/* FIX: show search results properly inside bottom sheet */
#appSearchSheet{
  /* خلي الشيت ياخذ مساحة كافية */
  max-height: 85vh;
  overflow: hidden;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

/* مهم: خلي جسم الشيت يسمح بالتمدد */
#appSearchSheet .sheetBody{
  overflow: hidden;
}

/* خلك تتحكم بالنتائج وتخليها قابلة للتمرير */
#appSearchSheet .s-search-container,
#appSearchSheet .s-search-modal,
#appSearchSheet .s-search-inline{
  height: auto !important;
  max-height: calc(85vh - 60px);
  overflow: visible !important;
}

/* هذا هو المهم: صندوق النتائج نفسه */
#appSearchSheet .s-search-results{
  display: block !important;
  max-height: calc(85vh - 110px);  /* عدّلها لو تبغى */
  overflow: auto !important;
  margin-top: 8px;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

/* أحياناً القائمة تكون absolute فتختفي—نرفعها */
#appSearchSheet .s-search-results,
#appSearchSheet .s-search-results *{
  position: relative;
  z-index: 100003;
}
/* STEP 2 — Mobile Bottom Bar (App-like tabs) */
@media (max-width: 1024px) {
  /* ارفع الـ padding تحت عشان البار */
  body {
    padding-bottom: 92px;
  }
}

/* اخفاء زر البحث القديم (Tab) لأننا بنستبدله بالـ Bottom Bar */
#appSearchTab { display: none !important; }

/* البوتوم بار */
#appBottomBar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 100000;
  display: none; /* يظهر بالجوال عبر JS */
  height: 64px;

  background: rgba(0,0,0,.88);
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 18px;

  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  padding: 6px 6px;
}

#appBottomBar .barInner {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

#appBottomBar .tabBtn {
  border: 0;
  background: transparent;
  color: rgba(212, 175, 55, .92);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  user-select: none;
}

#appBottomBar .tabBtn svg {
  width: 22px;
  height: 22px;
  display: block;
}

#appBottomBar .tabBtn .lbl {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  opacity: .95;
}

#appBottomBar .tabBtn.is-active {
  background: rgba(212, 175, 55, .12);
  border: 1px solid rgba(212, 175, 55, .35);
}

/* badge للسلة */
#appBottomBar .badge {
  position: absolute;
  top: 0px;
  right: 18px;
  width: 15px;
  height: 15px;
  padding: 0 6px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: #ff6767;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.badge {
    min-width: 13px !important;
}

/* Account menu bottom sheet (App-like) */
#appUserOverlay{
  position: fixed;
  inset: 0;
  z-index: 100101;
  display: none;
  background: rgba(0,0,0,.45);
}

#appUserSheet{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100102;
  display: none;
  background: #0b0b0b;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border: 1px solid rgba(212, 175, 55, .25);
  transform: translateY(110%);
  transition: transform .25s ease;
  padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
  max-height: 85vh;
  overflow: hidden;
}

#appUserSheet.is-open{ transform: translateY(0); }

#appUserSheet .sheetHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
  color:#d4af37;
}

#appUserSheet .sheetHeader .title{
  font-weight:800;
  font-size:14px;
}

#appUserSheet .sheetHeader .closeBtn{
  border:0;
  background:transparent;
  color:#d4af37;
  font-size:18px;
  cursor:pointer;
}

#appUserSheet .sheetBody{
  overflow:auto;
  max-height: calc(85vh - 52px);
  -webkit-overflow-scrolling: touch;
}

/* ستايل القائمة داخل الشيت */
#appUserSheet .s-user-menu-dropdown{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#appUserSheet .s-user-menu-dropdown-header{
  border-bottom: 1px solid rgba(212,175,55,.18) !important;
  padding-bottom: 10px !important;
  margin-bottom: 10px !important;
}

#appUserSheet .s-user-menu-dropdown-header img{
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
}

#appUserSheet .s-user-menu-dropdown-item-link{
  border-radius: 14px !important;
  padding: 12px 10px !important;
}

#appUserSheet .s-user-menu-dropdown-item-link:hover{
  background: rgba(212,175,55,.08) !important;
}
/* مساحة آمنة تحت قائمة حساب سلة عشان ما ينغطّي آخر عنصر بالبوتوم بار */
html.app-user-menu-open .s-user-menu-dropdown,
html.app-user-menu-open salla-user-menu .s-user-menu-dropdown {
  padding-bottom: calc(5px + env(safe-area-inset-bottom)) !important;
  box-sizing: border-box !important;
}

/* لو القائمة الداخلية هي اللي تتمرّر */
html.app-user-menu-open .s-user-menu-dropdown-list,
html.app-user-menu-open salla-user-menu .s-user-menu-dropdown-list {
  padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
}

/* احتياط: تأكيد إن القائمة تقدر تتمرّر */
html.app-user-menu-open .s-user-menu-dropdown,
html.app-user-menu-open salla-user-menu .s-user-menu-dropdown {
  overflow: auto !important;
  max-height: calc(100vh - 90px) !important;
}

#appBottomBar .app-avatar{
  width:26px;
  height:26px;
  border-radius:50%;
  object-fit:cover;
  border:1.5px solid rgba(212,175,55,.6);
  display:block;
}

/* Patch CSS-Header-01 — Mobile header: logo only centered + capsule style */
@media (max-width: 1024px){
  
  /* المسافات على الهيدر */
  .main-nav-container {
    min-height: 68px;
    padding: 15px 5px 1px 5px !important;
  }
  
  /* كبسولة الهيدر */
  .store-header .inner.bg-inherit.w-full{
    border: 1px solid rgba(212,175,55,.35) !important;
    border-radius: 18px !important;
  }

  /* نخلي التخطيط يتوسّط */
  .store-header .inner.bg-inherit.w-full .container > .flex.items-stretch{
    justify-content: center !important;
  }

  /* نخفي كل شيء غير اللوغو */
  .store-header .inner.bg-inherit.w-full .mburger,
  .store-header .inner.bg-inherit.w-full salla-cart-summary,
  .store-header .inner.bg-inherit.w-full .s-cart-summary-wrapper{
    display: none !important;
  }

  /* مهم: نخفي “عرضه” من الهيدر فقط (لكن العنصر نفسه موجود بالـ host اللي سويناه) */
  .store-header .inner.bg-inherit.w-full salla-user-menu{
    display: none !important;
  }

  /* توسيط بلوك اللوغو */
  .store-header .inner.bg-inherit.w-full .flex.items-center{
    width: 100% !important;
    justify-content: center !important;
  }

  .store-header .inner.bg-inherit.w-full .navbar-brand{
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .store-header .inner.bg-inherit.w-full .navbar-brand img{
    max-height: 92px !important;
    max-width: 160px !important;
    width: auto !important;
    height: auto !important;
  }

  /* نخفي يمين الهيدر (كان فيه حساب/سلة) */
  .store-header .inner.bg-inherit.w-full .flex.items-center.justify-end{
    display: none !important;
  }
}

/* Account Menu (User host + keep BottomBar above) */
#appUserMenuHost{
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1024px){

  /* When menu is open: expand host so dropdown can appear */
  html.app-user-menu-open #appUserMenuHost{
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 100200;
  }

  /* Keep bottom bar above the account dropdown */
  html.app-user-menu-open #appBottomBar{
    z-index: 100350 !important;
  }

  /* Prevent last items from being hidden behind bottom bar */
  html.app-user-menu-open .s-user-menu-dropdown-list,
  html.app-user-menu-open salla-user-menu .s-user-menu-dropdown-list{
    padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
  }

  /* Ensure dropdown remains scrollable within viewport */
  html.app-user-menu-open .s-user-menu-dropdown,
  html.app-user-menu-open salla-user-menu .s-user-menu-dropdown{
    max-height: calc(100vh - 120px) !important;
    overflow: auto !important;
  }
}


/* Init Loader (Full-page) — Logo only */
#appInitLoader{
  position: fixed;
  inset: 0;
  z-index: 100500;
  display: none;                 /* JS يشغله */
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);

  transition: opacity .25s ease, visibility .25s ease;
  opacity: 1;
  visibility: visible;
}

#appInitLoader.is-visible{ display: flex; }
#appInitLoader.is-hiding{ opacity: 0; visibility: hidden; }

#appInitLoader .loaderLogo{
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 22px;
  border: 1.5px solid rgba(212,175,55,.55);
  box-shadow: 0 14px 36px rgba(0,0,0,.32);
  animation: appPulse 1.15s ease-in-out infinite;
}

@keyframes appPulse{
  0%   { transform: scale(1);    opacity: .92; }
  50%  { transform: scale(1.07); opacity: 1; }
  100% { transform: scale(1);    opacity: .92; }
}

@media (prefers-reduced-motion: reduce){
  #appInitLoader .loaderLogo{ animation: none !important; }
}

/* ===== Quick Categories block (ONLY #main-links-0) ===== */
@media (max-width: 1024px){

  /* Center the whole block */
  #main-links-0{
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* keep content centered and not too wide */
  #main-links-0 .s-slider-container,
  #main-links-0 .swiper{
    max-width: 420px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Title: center */
  #main-links-0 .s-slider-block__title{
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 0 14px !important;
  }

  #main-links-0 .s-slider-block__title-right{
    width: 100%;
  }

  #main-links-0 .s-slider-block__title-right h2{
    margin: 0 !important;
    font-weight: 900 !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
  }


/* Divider under subtitle (line + dot) — ONLY #main-links-0 */

/* تجهيز */
#main-links-0 .s-slider-block__title-right{
  position: relative;
  text-align: center;
}

/* 1) subtitle بعد العنوان مباشرة */
#main-links-0 .s-slider-block__title-right h2::after{
  content: "تشكيلة متنوعة من المنتجات";
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  opacity: .65;
}

/* 2) الخط + الدائرة كآخر عنصر */
#main-links-0 .s-slider-block__title-right::after{
  content: "";
  display: block;
  height: 14px;
  width: 260px;
  margin: 12px auto 0 !important;

  background:
    linear-gradient(#bca054,#bca054) left 50%/calc(50% - 14px) 2px no-repeat,
    radial-gradient(circle, #fff 0 4px, transparent 5px) 50% 50%/14px 14px no-repeat,
    radial-gradient(circle, #bca054 0 6px, transparent 7px) 50% 50%/14px 14px no-repeat,
    linear-gradient(#bca054,#bca054) right 50%/calc(50% - 14px) 2px no-repeat;
}

/* شاشات صغيرة */
@media (max-width: 360px){
  #main-links-0 .s-slider-block__title-right::after{
    width: 220px;
  }
}

/* Fix title centering — ONLY #main-links-0 */
#main-links-0 .s-slider-block__title h2:where([dir=rtl],[dir=rtl] *){
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center !important;
}




  /* Convert slider to grid */
  #main-links-0 .swiper{
    overflow: visible !important;
  }

  #main-links-0 .swiper-wrapper{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 16px;
    transform: none !important; /* stop swiper translate */
    width: 100% !important;
    justify-content: center !important;
  }

  #main-links-0 .swiper-slide{
    width: auto !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Remove any card/border styles coming from theme */
  #main-links-0 .swiper-slide,
  #main-links-0 .slide--cat-entry{
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* Category item layout */
  #main-links-0 a.slide--cat-entry{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    gap: 10px !important;
    padding: 0 !important;
  }

  /* Image: fully circular and bigger */
  #main-links-0 a.slide--cat-entry img{
    width: 112px !important;
    height: 112px !important;
    border-radius: 999px !important;
    object-fit: cover !important;

    border: 6px solid #f3f4f6 !important; /* soft ring */
    background: #f3f4f6 !important;
    box-shadow: 0 12px 26px rgba(0,0,0,.10) !important;

    margin: 0 !important;
    display: block !important;
  }

  /* Title under each category */
  #main-links-0 a.slide--cat-entry h2{
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
  }

  /* Fix: remove theme padding that shifts the carousel (ONLY #main-links-0) */
#main-links-0.carousel-slider .swiper:where([dir=rtl],[dir=rtl] *),
#main-links-0 salla-slider[type] .swiper:where([dir=rtl],[dir=rtl] *),
#main-links-0 .swiper{
  padding-left: 0 !important;
  padding-right: 0 !important; /* احتياط */
}

  /* Fix: remove title padding caused by theme (ONLY #main-links-0) */
#main-links-0 .s-slider-block__title-right:where([dir=rtl],[dir=rtl] *){
  padding-left: 0 !important;
  padding-right: 0 !important;
}
  
}

/* Desktop/tablet enhancement (optional): show more columns */
@media (min-width: 768px){
  #main-links-0 .s-slider-container,
  #main-links-0 .swiper{
    max-width: 920px;
  }

  #main-links-0 .swiper-wrapper{
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #main-links-0 a.slide--cat-entry img{
    width: 118px !important;
    height: 118px !important;
  }
}

/* ===== Patch Title Style for blocks that have "عرض الكل" (scoped by structure) ===== */
@media (max-width: 1024px){

  /* خلي العنوان بالمنتصف، ونخلي جهة اليسار (عرض الكل + الأسهم) تنزل تحت */
  .s-slider-block__title:has(.s-slider-block__display-all){
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    text-align: center !important;
  }

  /* تصفير padding اللي يزحزح العنوان في RTL */
  .s-slider-block__title:has(.s-slider-block__display-all) .s-slider-block__title-right,
  .s-slider-block__title:has(.s-slider-block__display-all) .s-slider-block__title-right:where([dir=rtl],[dir=rtl] *){
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
  }

  /* العنوان */
  .s-slider-block__title:has(.s-slider-block__display-all) .s-slider-block__title-right h2{
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  /* الخط + الدائرة تحت السبتايتل */
  .s-slider-block__title:has(.s-slider-block__display-all) .s-slider-block__title-right::after{
    content: "";
    display: block;
    height: 14px;
    width: 260px;
    margin: 12px auto 0 !important;

    background:
      linear-gradient(#bca054,#bca054) left 50%/calc(50% - 14px) 2px no-repeat,
      radial-gradient(circle, #fff 0 4px, transparent 5px) 50% 50%/14px 14px no-repeat,
      radial-gradient(circle, #bca054 0 6px, transparent 7px) 50% 50%/14px 14px no-repeat,
      linear-gradient(#bca054,#bca054) right 50%/calc(50% - 14px) 2px no-repeat;
  }

  /* "عرض الكل" + الأسهم: نخليها تحت التصميم وبشكل مرتب */
  .s-slider-block__title:has(.s-slider-block__display-all) .s-slider-block__title-left{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 6px !important;
  }

  /* تحسين شكل عرض الكل */
  .s-slider-block__title:has(.s-slider-block__display-all) .s-slider-block__display-all{
    font-weight: 800 !important;
    font-size: 13px !important;
    color: #bca054 !important;
    text-decoration: none !important;
  }

  /* تصغير/ترتيب الأسهم */
  .s-slider-block__title:has(.s-slider-block__display-all) .s-slider-block__title-nav{
    transform: scale(.95);
    opacity: .9;
  }

  /* شاشات صغيرة */
  @media (max-width: 360px){
    .s-slider-block__title:has(.s-slider-block__display-all) .s-slider-block__title-right::after{
      width: 220px !important;
    }
  }
}

/* ===== Patch Testimonials Title (آراء العملاء) — scoped فقط على بلوك التستيمونيال ===== */
@media (max-width: 1024px){

  /* 1) توسيط عنوان آراء العملاء */
  .s-block--custom-testimonials .s-reviews-header-wrapper{
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .s-block--custom-testimonials .s-reviews-header{
    margin: 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
  }

  /* 2) Subtitle تحت العنوان */
  .s-block--custom-testimonials .s-reviews-header::after{
    content: "تجارب حقيقية من عملائنا";
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 400;
    opacity: .65;
  }

  /* 3) Divider (خط + دائرة) تحت الـ subtitle */
  .s-block--custom-testimonials .s-reviews-header-wrapper::after{
    content: "";
    display: block;
    height: 14px;
    width: 260px;
    margin: 12px auto 0 !important;

    background:
      linear-gradient(#bca054,#bca054) left 50%/calc(50% - 14px) 2px no-repeat,
      radial-gradient(circle, #fff 0 4px, transparent 5px) 50% 50%/14px 14px no-repeat,
      radial-gradient(circle, #bca054 0 6px, transparent 7px) 50% 50%/14px 14px no-repeat,
      linear-gradient(#bca054,#bca054) right 50%/calc(50% - 14px) 2px no-repeat;
  }

  /* 4) تصفير أي padding RTL مزعج على عنوان السلايدر الداخلي (احتياط) */
  .s-block--custom-testimonials .s-slider-block__title h2:where([dir=rtl],[dir=rtl] *),
  .s-block--custom-testimonials .s-slider-block__title-right:where([dir=rtl],[dir=rtl] *){
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 5) خلك تترك الأسهم مثل ما هي أو تقدر توسّطها (اختياري) */
  .s-block--custom-testimonials .s-slider-block__title{
    justify-content: center !important;
  }

  /* شاشات صغيرة */
  @media (max-width: 360px){
    .s-block--custom-testimonials .s-reviews-header-wrapper::after{
      width: 220px !important;
    }
  }
}

/* ===== Patch Product Card 01 — Luxury card (Gold/White) ===== */
@media (max-width: 1024px){

  :root{
    --madini-gold:#bca054;
    --madini-black:#111;
    --madini-muted:#6b7280;
    --madini-border: rgba(0,0,0,.12);
    --madini-shadow: 0 10px 22px rgba(0,0,0,.10);
  }

  /* الكارد نفسه */
  custom-salla-product-card.s-product-card-entry{
    background:#fff !important;
    border:1px solid var(--madini-border) !important;
    border-radius:16px !important;
    overflow:hidden !important;
    box-shadow: var(--madini-shadow) !important;
  }

  /* منطقة الصورة */
  custom-salla-product-card.s-product-card-entry .s-product-card-image{
    position: relative !important;
    padding: 10px 10px 0 !important;
    background:#fff !important;
  }

  /* الصورة داخل إطار */
  custom-salla-product-card.s-product-card-entry .s-product-card-image a{
    display:block !important;
    border-radius:14px !important;
    overflow:hidden !important;
    background:#f6f6f6 !important;
    border:1px solid rgba(0,0,0,.08) !important;
  }

  custom-salla-product-card.s-product-card-entry img{
    width:100% !important;
    height:auto !important;
    display:block !important;
    transform: translateZ(0);
  }

  /* زر المفضلة — دائري ومرتب */
  custom-salla-product-card.s-product-card-entry .s-product-card-wishlist-btn{
    position:absolute !important;
    top: 16px !important;
    left: 16px !important;
    z-index: 3 !important;
  }

  custom-salla-product-card.s-product-card-entry .s-product-card-wishlist-btn .s-button-element{
    width: 38px !important;
    height: 38px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.92) !important;
    border:1px solid rgba(0,0,0,.10) !important;
    box-shadow: 0 8px 16px rgba(0,0,0,.10) !important;
  }

  custom-salla-product-card.s-product-card-entry .s-product-card-wishlist-btn i{
    color: var(--madini-black) !important;
    font-size: 18px !important;
  }

  /* محتوى الكارد */
  custom-salla-product-card.s-product-card-entry .s-product-card-content{
    padding: 10px 12px 12px !important;
  }

  /* عنوان المنتج (سطرين) */
  custom-salla-product-card.s-product-card-entry .s-product-card-content-title{
    margin: 6px 0 10px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    font-size: 14px !important;
  }

  custom-salla-product-card.s-product-card-entry .s-product-card-content-title a{
    color: var(--madini-black) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-decoration: none !important;
  }

  /* السعر */
  custom-salla-product-card.s-product-card-entry .s-product-card-content-sub{
    display:flex !important;
    align-items:center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  custom-salla-product-card.s-product-card-entry .s-product-card-price{
    color: #c81e1e !important; /* الأحمر مثل اللي بالصورة */
    font-weight: 900 !important;
    font-size: 16px !important;
    margin: 0 !important;
  }

  /* لو عندك سعر قبل الخصم في الثيم (عادة يطلع كـ del/old price) */
  custom-salla-product-card.s-product-card-entry del,
  custom-salla-product-card.s-product-card-entry .s-product-card-price s,
  custom-salla-product-card.s-product-card-entry .s-product-card-old-price{
    color: #9ca3af !important;
    font-weight: 700 !important;
    font-size: 12px !important;
  }

  /* الفوتر: زر الإضافة */
  custom-salla-product-card.s-product-card-entry .s-product-card-content-footer{
    margin-top: 6px !important;
  }

  /* زر "إضافة للسلة" — ذهبي + */
  custom-salla-product-card.s-product-card-entry salla-add-product-button .s-button-element{
    border-radius: 12px !important;
    border: 1px solid var(--madini-gold) !important;
    background: var(--madini-gold) !important;
    color: #111 !important;
    box-shadow: 0 10px 18px rgba(188,160,84,.25) !important;
    height: 44px !important;
  }

  custom-salla-product-card.s-product-card-entry salla-add-product-button .s-button-text{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap: 10px !important;
    font-weight: 900 !important;
  }

  /* أيقونة الشنطة */
  custom-salla-product-card.s-product-card-entry salla-add-product-button .s-button-text i{
    font-size: 18px !important;
    color: #111 !important;
  }

  /* اختياري: نخلي زر + (لو تبغاه) */
  custom-salla-product-card.s-product-card-entry salla-add-product-button .s-button-text::before{
    content: "+" !important;
    display:inline-flex !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 8px !important;
    align-items:center !important;
    justify-content:center !important;
    background: rgba(17,17,17,.10) !important;
    color:#111 !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  /* Hover بسيط (لو موجود على الجوال ما يضر) */
  custom-salla-product-card.s-product-card-entry:hover{
    transform: translateY(-1px);
  }

}

/* ================================
   Product Card Promo + Subtitle (Almadini)
   Targets ONLY the cards in listings/sliders
================================== */

custom-salla-product-card.s-product-card-entry{
  overflow: hidden; /* عشان البادجات ما تطلع خارج الكرت */
}

/* ---- PROMO BADGE ---- */
custom-salla-product-card .s-product-card-image{
  position: relative;
}

custom-salla-product-card .s-product-card-promotion-title{
  position: absolute !important;
  top: 12px;
  right: 12px;                 /* RTL badge on right */
  z-index: 3;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 7px 10px;
  border-radius: 999px;

  /* هوية: ذهبي/أسود */
  background: rgba(0,0,0,.78);
  border: 1px solid rgba(212,175,55,.55);
  color: #d4af37;

  font-size: 12px;
  font-weight: 800;
  line-height: 1;

  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);

  pointer-events: none; /* لا يمنع الضغط على الصورة */
}

/* نقطة ذهبية صغيرة قبل النص */
custom-salla-product-card .s-product-card-promotion-title::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d4af37;
  box-shadow: 0 0 0 3px rgba(212,175,55,.18);
}

/* لو في موبايل: حجم أنعم */
@media (max-width: 1024px){
  custom-salla-product-card .s-product-card-promotion-title{
    top: 10px;
    right: 10px;
    padding: 6px 9px;
    font-size: 11.5px;
  }
}

/* ---- SUBTITLE under title ---- */
custom-salla-product-card .s-product-card-content-main{
  text-align: center; /* نفس ستايلك الحالي */
}

custom-salla-product-card .s-product-card-content-subtitle{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 6px;
  padding: 6px 10px;

  border-radius: 999px;
  background: rgba(212,175,55,.12);
  border: 1px solid rgba(212,175,55,.28);
  color: rgba(0,0,0,.72);

  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* تحسين خفيف: خفف opacity اللي متطبق في الكلاس */
custom-salla-product-card .s-product-card-content-subtitle.opacity-80{
  opacity: 1 !important;
}

/* =========================
   Footer Revamp — Almadini
   (centered, compact, premium)
========================= */

.store-footer__inner{
  padding-top: 26px !important;
  padding-bottom: 18px !important;
  background: #fff; /* أو احذفها لو ثيمك أصلاً أبيض */
}

.store-footer__inner .container{
  row-gap: 18px !important;
  column-gap: 16px !important;
}

/* عناوين أقسام الفوتر */
.store-footer__inner h3,
.store-footer__inner .s-contacts-title{
  font-size: 16px !important;
  font-weight: 800 !important;
  margin-bottom: 10px !important;
  text-align: center !important;
}

/* اسم المتجر */
.store-footer__inner a.flex.items-center{
  justify-content: center !important;
}

.store-footer__inner a.flex.items-center h3{
  margin: 0 !important;
  font-size: 18px !important;
}

/* وصف المتجر: قصير ومرتب */
.store-footer__inner .max-w-sm{
  max-width: 520px !important;
  margin: 8px auto 10px !important;
  text-align: center !important;
  opacity: .75 !important;
}

/* ===== Trust badges + VAT block ===== */
.store-footer__inner .s-trust-badges-wrapper,
.store-footer__inner .s-trust-badges-wrapper + .flex{
  align-items: center !important;
}

.store-footer__inner .flex.gap-4{
  justify-content: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: 10px !important;
}

/* بطاقة السجل التجاري */
.store-footer__inner .s-trust-badges-wrapper{
  border: 1px solid rgba(212,175,55,.25) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  background: rgba(212,175,55,.06) !important;
}

.store-footer__inner .s-trust-badges-image{
  width: 40px !important;
  height: 40px !important;
}

.store-footer__inner .s-trust-badges-label{
  font-size: 12px !important;
  opacity: .75 !important;
}

.store-footer__inner .s-trust-badges-number{
  color: #000 !important;
  font-weight: 800 !important;
}

/* بطاقة الرقم الضريبي */
.store-footer__inner .flex.rtl\:space-x-reverse.space-x-2.items-end{
  border: 1px solid rgba(212,175,55,.25) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  background: rgba(0,0,0,.04) !important;
}

.store-footer__inner .flex.rtl\:space-x-reverse.space-x-2.items-end p{
  margin: 0 0 4px !important;
  font-size: 12px !important;
  opacity: .75 !important;
}

.store-footer__inner .flex.rtl\:space-x-reverse.space-x-2.items-end b{
  font-weight: 800 !important;
}

/* ===== روابط مهمة ===== */
.store-footer__inner .s-menu-footer-list{
  display: grid !important;
  gap: 8px !important;
  justify-items: center !important;
}

.store-footer__inner .s-menu-footer-item{
  width: 100% !important;
  max-width: 320px !important;
  text-align: center !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  background: #fff !important;
  transition: .2s ease !important;
}

.store-footer__inner .s-menu-footer-item:hover{
  border-color: rgba(212,175,55,.35) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.08) !important;
}

/* ===== تواصل معنا ===== */
.store-footer__inner .s-contacts-list{
  gap: 10px !important;
  align-items: center !important;
}

.store-footer__inner .s-contacts-item{
  width: 100% !important;
  max-width: 340px !important;
  margin: 0 auto !important;
  border-radius: 14px !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  background: #fff !important;
  padding: 10px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.store-footer__inner .s-contacts-icon{
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(212,175,55,.12) !important;
  border: 1px solid rgba(212,175,55,.25) !important;
}

.store-footer__inner .s-contacts-item .unicode{
  font-weight: 700 !important;
  letter-spacing: .2px !important;
}

/* social icons */
.store-footer__inner .s-social-list{
  justify-content: center !important;
  gap: 10px !important;
}
.store-footer__inner .s-social-list a{
  border-radius: 999px !important;
  border: 1px solid rgba(212,175,55,.25) !important;
  background: rgba(0,0,0,.06) !important;
}

/* ===== Mobile: center everything + reduce whitespace ===== */
@media (max-width: 1024px){

  .store-footer__inner{
    padding-top: 18px !important;
    padding-bottom: 14px !important;
  }

  .store-footer__inner .container{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    justify-items: center !important;
    text-align: center !important;
  }

  /* قلل المسافات داخل الأعمدة */
  .store-footer__inner .lg\:col-span-2,
  .store-footer__inner .lg\:col-span-2.rtl\:lg\:pr-20,
  .store-footer__inner .lg\:col-span-2.rtl\:lg\:pl-20{
    padding: 0 !important;
  }

  /* أخفِ أي عناصر فاضية تسبب فراغ */
  .store-footer__inner salla-apps-icons:empty{
    display: none !important;
  }
}

/* ===== Desktop: still neat, less empty space ===== */
@media (min-width: 1025px){
  .store-footer__inner .container{
    align-items: start !important;
  }
  .store-footer__inner .container > div{
    margin-top: 4px !important;
  }
}

/* ================================
   Testimonials (آراء العملاء) - Almadini Style
   ================================ */


/* إطار السلايدر */
.s-block--custom-testimonials .s-slider-container{
  overflow: visible;
  padding: .25rem 0;
}

/* كرت الرأي */
.s-block--custom-testimonials .s-reviews-testimonial{
  padding: .5rem .25rem;
}

.s-block--custom-testimonials .s-reviews-testimonial__inner{
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  padding: 1rem 1rem 1rem 1rem;
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: .85rem;
  align-items: start;
}

/* لمسة فخامة أعلى الكرت */
.s-block--custom-testimonials .s-reviews-testimonial__inner::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(200,162,74,.14),
    rgba(200,162,74,0) 40%,
    rgba(15,23,42,.04)
  );
}

/* الأفاتار */
.s-block--custom-testimonials .s-reviews-testimonial__avatar{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(200,162,74,.55);
  box-shadow: 0 6px 18px rgba(15,23,42,.10);
  background: #fff;
  margin-top: .1rem;
}

.s-block--custom-testimonials .s-reviews-testimonial__avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* نص التقييم */
.s-block--custom-testimonials .s-reviews-testimonial__text p{
  margin: 0 0 .65rem 0;
  color: rgba(15, 23, 42, .85);
  font-size: .95rem;
  line-height: 1.75;
}

/* الاسم + النجوم */
.s-block--custom-testimonials .s-reviews-testimonial__name_wrapper{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-top: 1px dashed rgba(15,23,42,.10);
  padding-top: .65rem;
}

.s-block--custom-testimonials .s-reviews-testimonial__info h2{
  margin: 0;
  font-weight: 800;
  color: rgba(15, 23, 42, .92);
  font-size: .9rem;
}

/* النجوم - نخليها ذهبية */
.s-block--custom-testimonials salla-rating-stars svg{
  color: #c8a24a;
  filter: drop-shadow(0 2px 6px rgba(200,162,74,.25));
}

/* أيقونة الاقتباس: نخليها “علامة مائية” بدل ما تكون مزعجة */
.s-block--custom-testimonials .s-reviews-testimonial__icon{
  position: absolute;
  left: 14px; /* مناسب للـ RTL */
  top: 12px;
  opacity: .10;
  transform: scale(1.15);
}

.s-block--custom-testimonials .s-reviews-testimonial__icon svg{
  fill: #c8a24a;
}

/* أسهم السلايدر */
.s-block--custom-testimonials .s-slider-nav-arrow{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.s-block--custom-testimonials .s-slider-nav-arrow:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15,23,42,.10);
}

.s-block--custom-testimonials .s-slider-button-icon svg{
  fill: rgba(15,23,42,.78);
}

/* المقاس للجوال */
@media (max-width: 640px){
  .s-block--custom-testimonials{
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .s-block--custom-testimonials .s-reviews-testimonial__inner{
    grid-template-columns: 50px 1fr;
    padding: .9rem;
    border-radius: 16px;
  }

  .s-block--custom-testimonials .s-reviews-testimonial__avatar{
    width: 50px;
    height: 50px;
  }

  .s-block--custom-testimonials .s-reviews-testimonial__text p{
    font-size: .92rem;
  }
}

/* ===============================
   Features Block – compact & elegant
   =============================== */

/* تقليل المساحة العامة */
.s-block--features{
  padding: 1.5rem 0 !important;
}

/* تقليل الفراغ بين الكروت */
.s-block--features > .grid{
  gap: 1rem !important;
}

/* الكرت نفسه */
.s-block--features__item{
  text-align: center;
  padding: .75rem .5rem !important;
  border-radius: 12px;
  transition: all .35s ease;
}

/* Hover animation */
.s-block--features__item:hover{
  transform: translateY(-6px);
}

/* الأيقونة */
.s-block--features__item .feature-icon{
  width: 52px;
  height: 52px;
  margin: 0 auto .5rem;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all .35s ease;
}

/* أنميشن للأيقونة */
.s-block--features__item:hover .feature-icon{
  background: #bca054;        /* الذهبي */
  transform: scale(1.1);
}

/* العنوان */
.s-block--features__item h2{
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

/* الوصف */
.s-block--features__item p{
  font-size: 12px;
  line-height: 1.4;
  opacity: .7;
  margin: 0;
}

/* موبايل – أصغر شوي */
@media (max-width: 640px){
  .s-block--features__item{
    padding: .5rem .25rem !important;
  }

  .s-block--features__item .feature-icon{
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

/* ===== Features – Option B: unified grid (equal cards) ===== */
section.s-block--features{
  padding: 18px 0 !important;
}

section.s-block--features .grid{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;

  background: linear-gradient(180deg, rgba(188,160,84,.14), rgba(0,0,0,.04));
  border: 1px solid rgba(188,160,84,.22);
  border-radius: 16px;
  padding: 14px !important;
}

/* على الجوال خليها 1-2 بشكل مرتب */
@media (max-width: 640px){
  section.s-block--features .grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 420px){
  section.s-block--features .grid{
    grid-template-columns: 1fr !important;
  }
}

section.s-block--features .s-block--features__item{
  min-height: 150px; /* موحد */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;

  text-align: center;
  padding: 14px !important;
  border-radius: 14px;

  background: linear-gradient(180deg, #ffffff, #fbfaf7);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

section.s-block--features .feature-icon{
  width: 56px;
  height: 56px;
  margin: 0 auto 2px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;

  color: #111;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), rgba(188,160,84,.45));
  border: 1px solid rgba(188,160,84,.38);
  overflow: hidden;
}

section.s-block--features .feature-icon i{
  font-size: 22px;
  animation: featureFloat 1.9s ease-in-out infinite;
}

section.s-block--features .s-block--features__item h2{
  margin: 0 !important;
  font-size: 14px;
  font-weight: 900;
  color: #111; /* أوضح */
}

section.s-block--features .s-block--features__item p{
  margin: 0 !important;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(17,17,17,.78);
}

section.s-block--features .s-block--features__item:hover{
  transform: translateY(-3px);
  transition: .25s ease;
  border-color: rgba(188,160,84,.35);
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

@keyframes featureFloat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-4px); }
}

section.s-block--features {
    padding: 5px 0 !important;
}

.s-block--features {
    padding: 5px 0 !important;
}