/* =========================================================
   Product Card – Clean Store Style (Salla)
   يُلصق في حقل CSS المخصص في سلة
   ========================================================= */
:root{
  --pc-radius: 12px;          /* استدارة البطاقة */
  --pc-bg: #ffffff;           /* خلفية البطاقة */
  --pc-ink: #1f1f1f;          /* لون النصوص */
  --pc-price: #1f1f1f;        /* لون السعر العادي (اجعله #e53935 ليكون أحمر) */
  --pc-sale: #e53935;         /* لون سعر التخفيض */
  --pc-old: #e88b84;          /* لون السعر القديم المشطوب */
  --pc-badge: #e53935;        /* لون شارة "جديد / الأعلى مبيعاً" */
  --pc-btn-border: #2b2b2b;   /* حدود زر السلة */
}

/* ---------- البطاقة ---------- */
.s-product-card-entry.s-product-card-vertical{
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--pc-radius) !important;
  background: var(--pc-bg) !important;
  overflow: hidden !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.03) !important;
  transition: box-shadow .35s ease, transform .35s ease;
}
@media (hover:hover){
  .s-product-card-entry.s-product-card-vertical:hover{
    transform: translateY(-3px);
    box-shadow: 0 16px 34px -20px rgba(0,0,0,.25) !important;
  }
}

/* ---------- الصورة ---------- */
.s-product-card-vertical .s-product-card-image{
  position: relative !important;
  flex: none !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 6 / 5;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  overflow: hidden !important;
}
.s-product-card-vertical .s-product-card-image > a{
  display: block !important;
  width: 100%;
  height: 100%;
}
.s-product-card-vertical .s-product-card-image-cover{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .45s ease;
}
@media (hover:hover){
  .s-product-card-entry:hover .s-product-card-image-cover{ transform: scale(1.05); }
}

/* ---------- الصورة الثانية عند مرور الماوس ---------- */
.s-product-card-vertical .pc-img-2{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
@media (hover:hover){
  .s-product-card-entry.pc-has-2:hover .s-product-card-image-cover{ opacity: 0; transform: none; }
  .s-product-card-entry.pc-has-2:hover .pc-img-2{ opacity: 1; transform: scale(1.03); }
}

/* ---------- الشارات (جديد / الأعلى مبيعاً / نفد) ---------- */
.s-product-card-vertical .s-product-card-promotion-title,
.s-product-card-vertical .s-product-card-out-badge,
.s-product-card-vertical .pc-badge{
  position: absolute !important;
  top: 14px !important;
  left: auto !important;
  right: auto !important;
  inset-inline-start: 14px !important;
  z-index: 3;
  max-width: calc(100% - 28px);
  margin: 0 !important;
  padding: 5px 10px !important;
  border-radius: 2px !important;
  background: var(--pc-badge) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
.s-product-card-vertical .s-product-card-out-badge{ background: #6b6b6b !important; }

/* ---------- زر المفضلة + زر العين (أسفل الصورة في المنتصف) ---------- */
.s-product-card-vertical .s-product-card-image salla-button.s-product-card-wishlist-btn{
  position: absolute !important;
  top: auto !important;
  bottom: 12px !important;
  left: auto !important;
  right: auto !important;
  inset-inline-start: calc(50% - 20px) !important;
  z-index: 4 !important;
  margin: 0 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.s-product-card-vertical.pc-has-eye .s-product-card-image salla-button.s-product-card-wishlist-btn{
  inset-inline-start: calc(50% - 45px) !important;
}
.s-product-card-vertical .pc-eye{
  position: absolute;
  bottom: 12px;
  inset-inline-end: calc(50% - 45px);
  z-index: 3;
}
.s-product-card-vertical button.s-product-card-wishlist-btn,
.s-product-card-vertical .pc-eye{
  display: grid !important;
  place-items: center;
  width: 40px !important;
  height: 40px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #222 !important;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.2) !important;
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform .25s ease, color .25s ease;
}
/* الثيم يضع نفس الكلاس على الغلاف والزر الداخلي ويعطيه موضعاً مطلقاً،
   فيخرج الزر الداخلي خارج حدود الصورة ويختفي — نثبّته داخل غلافه */
.s-product-card-vertical .s-product-card-image salla-button.s-product-card-wishlist-btn{
  width: 40px !important;
  height: 40px !important;
  min-width: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.s-product-card-vertical .s-product-card-image salla-button.s-product-card-wishlist-btn > button,
.s-product-card-vertical .s-product-card-image button.s-product-card-wishlist-btn{
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  margin: 0 !important;
  transform: none !important;
}
.s-product-card-vertical .s-product-card-image button.s-product-card-wishlist-btn:hover{ transform: scale(1.08) !important; }
.s-product-card-vertical .s-product-card-wishlist-btn .s-button-text{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
}
.s-product-card-vertical .s-product-card-wishlist-btn i{
  font-size: 17px !important;
  color: #222 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.s-product-card-vertical .pc-eye svg{ width: 18px; height: 18px; }
.s-product-card-vertical button.s-product-card-wishlist-btn:hover,
.s-product-card-vertical .pc-eye:hover{
  transform: scale(1.08);
  color: var(--pc-sale) !important;
}
.s-product-card-vertical .s-product-card-wishlist-btn:hover i,
.s-product-card-vertical .s-product-card-wishlist-btn.favorited i,
.s-product-card-vertical .s-product-card-wishlist-btn.added i{ color: var(--pc-sale) !important; }

/* ---------- المحتوى ---------- */
.s-product-card-vertical .s-product-card-content{
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: 12px 14px 14px !important;
  text-align: center !important;
}
.s-product-card-vertical .s-product-card-content-main{
  margin: 0 0 4px !important;
  padding: 0 !important;
}
.s-product-card-vertical .s-product-card-content-title{
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.5em * 2);
  margin: 0 !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  text-align: center !important;
}
.s-product-card-vertical .s-product-card-content-title a{
  color: var(--pc-ink) !important;
  text-decoration: none !important;
}

/* ---------- السعر ---------- */
.s-product-card-vertical .s-product-card-content-sub{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  margin: 0 0 12px !important;
  padding: 0 !important;
}
.s-product-card-vertical .s-product-card-price{
  display: inline-flex !important;
  align-items: center;
  gap: 3px;
  margin: 0 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--pc-price) !important;
}
.s-product-card-vertical .s-product-card-sale-price{
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.s-product-card-vertical .s-product-card-sale-price h4{
  margin: 0 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--pc-sale) !important;
}
.s-product-card-vertical .s-product-card-sale-price span{
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--pc-old) !important;
  text-decoration: line-through !important;
}

/* ---------- زر أضف إلى السلة ---------- */
.s-product-card-vertical .s-product-card-content-footer{
  margin-top: auto !important;
  padding: 0 !important;
}
.s-product-card-vertical .s-product-card-content-footer salla-add-product-button,
.s-product-card-vertical .s-product-card-content-footer salla-add-product-button > div,
.s-product-card-vertical .s-product-card-content-footer salla-button{
  display: block !important;
  width: 100% !important;
}
.s-product-card-vertical .s-product-card-content-footer .s-button-element{
  width: 100% !important;
  height: 42px !important;
  padding: 0 14px !important;
  border: 1px solid var(--pc-btn-border) !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--pc-ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.s-product-card-vertical .s-product-card-content-footer .s-button-text{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.s-product-card-vertical .s-product-card-content-footer .s-button-element:hover{
  background: var(--pc-ink) !important;
  border-color: var(--pc-ink) !important;
  color: #fff !important;
}

/* ---------- الجوال ---------- */
@media (max-width: 640px){
  .s-product-card-vertical .s-product-card-content{ padding: 12px 10px 12px !important; }
  .s-product-card-vertical .s-product-card-content-title{ font-size: 13.5px !important; }
  .s-product-card-vertical .s-product-card-price,
  .s-product-card-vertical .s-product-card-sale-price h4{ font-size: 15px !important; }
  .s-product-card-vertical .s-product-card-content-footer .s-button-element{ height: 40px !important; font-size: 13.5px !important; border-radius: 10px !important; }
  .s-product-card-vertical button.s-product-card-wishlist-btn,
  .s-product-card-vertical .s-product-card-image salla-button.s-product-card-wishlist-btn,
  .s-product-card-vertical .pc-eye{ width: 36px !important; height: 36px !important; }
  .s-product-card-vertical.pc-has-eye .s-product-card-image salla-button.s-product-card-wishlist-btn{ inset-inline-start: calc(50% - 41px) !important; }
  .s-product-card-vertical .pc-eye{ inset-inline-end: calc(50% - 41px); }
}

/* =========================================================
   نافذة العرض السريع (تعمل مع ملف product-card.js)
   ========================================================= */
html.pcq-lock{ overflow: hidden; }
.pcq, .pcq *{ box-sizing: border-box; }
.pcq__close:focus:not(:focus-visible){ outline: none; }
.pcq{
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  visibility: hidden; pointer-events: none;
}
.pcq.is-open{ visibility: visible; pointer-events: auto; }
.pcq__backdrop{
  position: absolute; inset: 0;
  background: rgba(20,20,20,.45);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s ease;
}
.pcq.is-open .pcq__backdrop{ opacity: 1; }
.pcq__panel{
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  width: min(820px, 100%);
  max-height: calc(100vh - 40px); overflow: auto;
  border-radius: 18px; background: #fff;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.pcq.is-open .pcq__panel{ opacity: 1; transform: none; }
.pcq__close{
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 50%;
  background: #f3f3f3; color: #222; cursor: pointer;
}
.pcq__close svg{ width: 18px; height: 18px; }
.pcq__media{
  display: grid; place-items: center;
  aspect-ratio: 1 / 1; padding: 24px;
  border-inline-end: 1px solid #f1f1f1; background: #fff;
}
.pcq__media img{ width: 100%; height: 100%; object-fit: contain; }
.pcq__info{
  display: flex; flex-direction: column; gap: 14px;
  padding: 36px 28px 28px; text-align: start;
}
.pcq__title{ margin: 0; font-size: 20px; font-weight: 800; line-height: 1.55; color: var(--pc-ink); }
.pcq__price, .pcq__price .s-product-card-sale-price{ display: flex; align-items: center; gap: 10px; }
.pcq__price h4{ margin: 0; font-size: 22px; font-weight: 800; color: var(--pc-price); display: inline-flex; align-items: center; gap: 3px; }
.pcq__price .s-product-card-sale-price h4{ color: var(--pc-sale); }
.pcq__price .s-product-card-sale-price span{ font-size: 15px; color: var(--pc-old); text-decoration: line-through; }
.pcq__desc{ margin: 0; font-size: 14px; line-height: 1.9; color: #666; }
.pcq__desc:empty{ display: none; }
.pcq__cart{ margin-top: auto; }
.pcq__cart salla-add-product-button, .pcq__cart salla-add-product-button > div, .pcq__cart salla-button{ display: block; width: 100%; }
.pcq__cart .s-button-element, .pcq__btn{
  display: flex !important; align-items: center; justify-content: center; gap: 6px;
  width: 100% !important; height: 48px !important;
  border: 0 !important; border-radius: 12px !important;
  background: var(--pc-ink) !important; color: #fff !important;
  font-size: 15px !important; font-weight: 700 !important; text-decoration: none !important;
}
.pcq__more{
  align-self: center;
  font-size: 14px; font-weight: 600; color: var(--pc-ink);
  text-decoration: underline; text-underline-offset: 4px;
}
/* الجوال: نافذة مضغوطة من الأسفل — صورة صغيرة بجانب الاسم والسعر */
@media (max-width: 640px){
  .pcq{ align-items: flex-end; padding: 0; }
  .pcq__panel{
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-areas:
      "handle handle"
      "media  title"
      "media  price"
      "desc   desc"
      "cart   cart"
      "more   more";
    align-content: start;
    column-gap: 14px;
    width: 100%;
    max-height: 85vh;
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
    transform: translateY(40px);
  }
  .pcq__panel::before{
    content: "";
    grid-area: handle;
    justify-self: center;
    width: 40px; height: 4px;
    margin-bottom: 12px;
    border-radius: 4px;
    background: #dedede;
  }
  .pcq__info{ display: contents; }
  .pcq__close{ top: 10px; inset-inline-end: 10px; width: 32px; height: 32px; }
  .pcq__close svg{ width: 15px; height: 15px; }
  .pcq__media{
    grid-area: media;
    align-self: start;
    width: 104px; height: 104px;
    aspect-ratio: auto;
    padding: 6px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
  }
  .pcq__title{
    grid-area: title;
    align-self: end;
    margin: 4px 0 0 !important;
    padding-inline-end: 34px;
    font-size: 15px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .pcq__price{ grid-area: price; align-self: start; margin-top: 6px; }
  .pcq__price h4{ font-size: 17px !important; }
  .pcq__price .s-product-card-sale-price span{ font-size: 13px !important; }
  .pcq__desc{
    grid-area: desc;
    margin: 14px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .pcq__cart{ grid-area: cart; margin-top: 16px; }
  .pcq__cart .s-button-element, .pcq__btn{ height: 44px !important; font-size: 14px !important; }
  .pcq__more{ grid-area: more; justify-self: center; margin-top: 12px; font-size: 13px !important; }
}
@media (prefers-reduced-motion: reduce){
  .pcq__panel, .pcq__backdrop, .s-product-card-image-cover, .s-product-card-entry{ transition: none !important; }
}

/* =========================================================
   FOOTER – تصميم الفوتر الاحترافي (ريتا كير)
   أضِف هذا الكود في نهاية حقل CSS المخصص في سلة
   يعمل مع كود footer.js (الكلاس rc-footer يضيفه السكربت)
   ========================================================= */

/* ---------- الألوان (درجات عاجية دافئة + ذهبي وردي مثل الشعار) ---------- */
.store-footer.rc-footer{
  --ft-bg-1: #f5e9e3;                  /* بداية الخلفية (بيج وردي واضح) */
  --ft-bg-2: #ecdcd4;                  /* نهاية الخلفية (أعمق قليلاً) */
  --ft-card: #ffffff;                  /* خلفية البطاقات والأيقونات */
  --ft-line: rgba(120, 75, 60, .24);   /* الخطوط والحدود (أوضح) */
  --ft-text: #241b1e;                  /* النص الأساسي */
  --ft-muted: #5f514d;                 /* النص الثانوي (أغمق ليكون مقروءاً) */
  --ft-accent: #9c624d;                /* الذهبي الوردي الغامق */
  --ft-bottom: rgba(120, 75, 60, .08); /* خلفية الشريط السفلي */
  --ft-shadow: 0 8px 22px -12px rgba(100, 60, 45, .45);
  --ft-ease: cubic-bezier(.22,.8,.24,1);

  position: relative;
  overflow: hidden;
  color: var(--ft-text) !important;
  background:
    radial-gradient(640px 280px at 95% 0%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(180deg, var(--ft-bg-1), var(--ft-bg-2)) !important;
  border-top: 0 !important;
}
/* خط ذهبي رفيع أعلى الفوتر */
.store-footer.rc-footer::before{
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ft-accent) 20%, var(--ft-accent) 80%, transparent);
  opacity: .9;
}

/* ---------- الأعمدة الرئيسية ---------- */
.rc-footer .store-footer__inner{
  background: transparent !important;
  padding: 64px 0 48px !important;
}
@media (min-width: 1024px){
  .rc-footer .store-footer__inner > .container{
    display: grid !important;
    grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.15fr);
    gap: 56px !important;
  }
}
.rc-footer .store-footer__inner > .container > *{
  grid-column: auto !important;   /* إلغاء توزيع الأعمدة القديم في الثيم */
  padding: 0 !important;
  margin: 0 !important;
}
.rc-footer salla-apps-icons:empty{ display: none !important; }

/* عناوين الأعمدة مع خط ذهبي صغير */
.rc-footer .store-footer__inner h3,
.rc-footer .s-contacts-title{
  position: relative;
  margin: 0 0 22px !important;
  padding-bottom: 12px;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--ft-text) !important;
}
.rc-footer .store-footer__inner h3::after,
.rc-footer .s-contacts-title::after{
  content: "";
  position: absolute; bottom: 0; inset-inline-start: 0;
  width: 34px; height: 3px;
  border-radius: 3px;
  background: var(--ft-accent);
}
/* اسم المتجر أكبر */
.rc-footer .store-footer__inner > .container > div:first-child > a h3{
  font-size: 21px !important;
  line-height: 1.5;
}

/* ---------- وصف المتجر ---------- */
.rc-footer .store-footer__inner > .container > div:first-child .max-w-sm{
  max-width: 420px !important;
  margin-bottom: 24px !important;
}
.rc-footer .store-footer__inner .max-w-sm p,
.rc-footer .store-footer__inner .max-w-sm strong{
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 2 !important;
  color: var(--ft-muted) !important;
}
.rc-footer .store-footer__inner .max-w-sm p:first-child strong{
  font-weight: 700 !important;
  color: var(--ft-accent) !important;
}

/* ---------- أيقونات التواصل الاجتماعي ---------- */
.rc-footer .s-social-list{
  display: flex !important; flex-wrap: wrap; gap: 10px;
  margin: 0 !important; padding: 0 !important; list-style: none;
}
.rc-footer .s-social-link a{
  display: grid !important; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--ft-line);
  border-radius: 50%;
  background: var(--ft-card);
  color: var(--ft-text) !important;
  box-shadow: var(--ft-shadow);
  transition: background .3s, color .3s, transform .35s var(--ft-ease), box-shadow .35s, border-color .3s;
}
.rc-footer .s-social-link a:hover{
  transform: translateY(-3px);
  background: var(--ft-accent);
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 12px 24px -10px rgba(156,98,77,.6);
}
.rc-footer .s-social-icon,
.rc-footer .s-social-icon svg{ display: block; width: 16px !important; height: 16px !important; }
.rc-footer .s-social-icon svg,
.rc-footer .s-contacts-icon svg{ fill: currentColor !important; }
.rc-footer .s-social-link a{ color: var(--ft-accent) !important; }
.rc-footer .s-social-link a:hover{ color: #fff !important; }
.rc-footer .contact-social{ margin-top: 22px; }

/* ---------- بطاقة السجل التجاري والرقم الضريبي ---------- */
.rc-footer .rc-ft-trust{
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px !important;
  margin-top: 26px;
  padding: 14px 18px;
  border: 1px solid var(--ft-line);
  border-radius: 16px;
  background: var(--ft-card);
  box-shadow: var(--ft-shadow);
}
.rc-footer .s-trust-badges-wrapper{ display: flex !important; align-items: center; gap: 12px; }
.rc-footer .s-trust-badges-image{
  width: 46px !important; height: 46px !important;
  padding: 3px; border-radius: 10px;
  border: 1px solid var(--ft-line);
  background: #fff;
  object-fit: contain;
  font-size: 0;   /* يخفي النص البديل لو لم تُحمَّل الصورة */
}
.rc-footer .rc-ft-trust p,
.rc-footer .s-trust-badges-label{
  margin: 0 0 2px !important;
  font-size: 12px !important;
  color: var(--ft-muted) !important;
}
.rc-footer .rc-ft-trust b,
.rc-footer .s-trust-badges-number{
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ft-text) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
}
.rc-footer .rc-ft-trust > .flex{
  padding-inline-start: 18px;
  border-inline-start: 1px solid var(--ft-line);
}

/* ---------- روابط مهمة ---------- */
.rc-footer .s-menu-footer-list,
.rc-footer .rc-ft-links{
  display: flex !important; flex-direction: column; gap: 4px;
  margin: 0 !important; padding: 0 !important; list-style: none;
}
.rc-footer .s-menu-footer-list a,
.rc-footer .rc-ft-links a{
  display: inline-flex !important; align-items: center;
  padding: 6px 0 !important;
  font-size: 14px !important;
  color: var(--ft-muted) !important;
  text-decoration: none !important;
  transition: color .3s;
}
/* خط صغير يظهر بجانب الرابط عند المرور */
.rc-footer .s-menu-footer-list a::before,
.rc-footer .rc-ft-links a::before{
  content: "";
  width: 0; height: 1.5px;
  margin-inline-end: 0;
  border-radius: 2px;
  background: var(--ft-accent);
  transition: width .35s var(--ft-ease), margin .35s var(--ft-ease);
}
.rc-footer .s-menu-footer-list a:hover,
.rc-footer .rc-ft-links a:hover{ color: var(--ft-accent) !important; }
.rc-footer .s-menu-footer-list a:hover::before,
.rc-footer .rc-ft-links a:hover::before{ width: 14px; margin-inline-end: 8px; }
/* إذا أضفت روابط من لوحة سلة تختفي الروابط الاحتياطية تلقائياً */
.rc-footer salla-menu:has(a) + .rc-ft-links{ display: none !important; }

/* ---------- تواصل معنا ---------- */
.rc-footer .s-contacts-list{
  display: flex !important; flex-direction: column; gap: 12px;
}
.rc-footer .s-contacts-item{
  display: inline-flex !important; align-items: center; gap: 12px;
  font-size: 14px !important;
  color: var(--ft-muted) !important;
  text-decoration: none !important;
  transition: color .3s;
}
.rc-footer .s-contacts-icon{
  flex: none;
  display: grid !important; place-items: center;
  width: 40px !important; height: 40px !important;
  margin: 0 !important;
  border: 1px solid var(--ft-line) !important;
  border-radius: 12px !important;
  background: var(--ft-card) !important;
  color: var(--ft-accent) !important;
  box-shadow: var(--ft-shadow);
  transition: background .3s, color .3s, border-color .3s;
}
.rc-footer .s-contacts-icon svg{ width: 16px !important; height: 16px !important; }
.rc-footer .s-contacts-item .unicode{ direction: ltr; unicode-bidi: isolate; }
.rc-footer .s-contacts-item:hover{ color: var(--ft-text) !important; }
.rc-footer .s-contacts-item:hover .s-contacts-icon{
  background: var(--ft-accent) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.rc-footer .s-contacts-item[href*="wa.me"]:hover .s-contacts-icon{
  background: #25d366 !important;
  color: #fff !important;
}

/* ---------- الشريط السفلي (الحقوق + وسائل الدفع) ---------- */
.rc-footer .rc-ft-bottom{
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px !important;
  padding-bottom: 22px !important;
  border-top: 1px solid var(--ft-line);
  box-shadow: 0 0 0 100vmax var(--ft-bottom);   /* شريط ممتد بعرض الشاشة */
  clip-path: inset(0 -100vmax);
  background: var(--ft-bottom);
}
.rc-footer .rc-ft-bottom .copyright-text{ margin-inline-end: auto; }   /* الحقوق يمين، والدفع + زر الأعلى يسار */
.rc-footer .copyright-text p{
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--ft-muted) !important;
}
.rc-footer .copyright-text a{ color: var(--ft-accent) !important; font-weight: 600; }
.rc-footer .s-payments-list{
  display: flex !important; flex-wrap: wrap; gap: 8px;
  margin: 0 !important; padding: 0 !important; list-style: none;
}
.rc-footer .s-payments-list-item{
  display: grid !important; place-items: center;
  width: 52px !important; height: 34px !important;
  margin: 0 !important;
  padding: 4px 6px !important;
  border: 1px solid var(--ft-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  overflow: hidden;
  font-size: 0;   /* يخفي النص البديل لو لم تُحمَّل الصورة */
  transition: transform .3s var(--ft-ease), box-shadow .3s;
}
.rc-footer .s-payments-list-item:hover{ transform: translateY(-2px); box-shadow: var(--ft-shadow); }
.rc-footer .s-payments-list-item img{ width: 100% !important; height: 100% !important; object-fit: contain; }

/* زر العودة للأعلى */
.rc-footer .rc-ft-top{
  display: grid; place-items: center;
  width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--ft-accent);
  border-radius: 50%;
  background: #fff;
  color: var(--ft-accent);
  cursor: pointer;
  box-shadow: var(--ft-shadow);
  transition: background .3s, color .3s, transform .35s var(--ft-ease);
}
.rc-footer .rc-ft-top svg{ width: 18px; height: 18px; }
.rc-footer .rc-ft-top:hover{ transform: translateY(-3px); background: var(--ft-accent); color: #fff; }

/* ---------- حركة ظهور ناعمة عند الوصول للفوتر ---------- */
.rc-footer.rc-ft-anim .rc-ft-reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ft-ease), transform .8s var(--ft-ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.rc-footer.rc-ft-anim.rc-ft-in .rc-ft-reveal{ opacity: 1; transform: none; }

/* ---------- التابلت ---------- */
@media (max-width: 1023.98px){
  .rc-footer .store-footer__inner > .container{ display: grid !important; gap: 40px !important; }
}

/* ---------- الجوال: كل شيء في المنتصف ---------- */
@media (max-width: 767.98px){
  .rc-footer .store-footer__inner{ padding: 44px 0 32px !important; }
  .rc-footer .store-footer__inner > .container{ text-align: center; }
  .rc-footer .store-footer__inner h3::after,
  .rc-footer .s-contacts-title::after{ inset-inline-start: calc(50% - 17px); }
  .rc-footer .store-footer__inner > .container > div:first-child > a{ justify-content: center; }
  .rc-footer .store-footer__inner > .container > div:first-child .max-w-sm{ margin-inline: auto; }
  .rc-footer .s-social-list{ justify-content: center; }
  .rc-footer .rc-ft-trust{ display: flex !important; justify-content: center; gap: 14px 22px !important; }
  .rc-footer .rc-ft-trust > .flex{ padding-inline-start: 0; border-inline-start: 0; }
  .rc-footer .s-menu-footer-list,
  .rc-footer .rc-ft-links{ align-items: center; }
  .rc-footer .s-contacts-list{ align-items: center; }

  .rc-footer .rc-ft-bottom{ flex-direction: column; justify-content: center; text-align: center; }
  .rc-footer .rc-ft-bottom .copyright-text{ margin-inline-end: 0; }
  .rc-footer .s-payments-list{ justify-content: center; }
  .rc-footer .rc-ft-top{ order: -1; }
}

@media (prefers-reduced-motion: reduce){
  .rc-footer *{ transition: none !important; }
}
/* ================= نهاية كود الفوتر ================= */


/* =========================================================
   BRANDS – شريط العلامات التجارية المتحرك (ريتا كير)
   أضِف هذا الكود في نهاية حقل CSS المخصص في سلة
   يعمل مع كود brands.js (الكلاس rc-brands يضيفه السكربت)
   ========================================================= */

/* ---------- الإعدادات والألوان (عدّلها من هنا) ---------- */
.s-block--logos-slider.rc-brands{
  --br-accent: #9c624d;                 /* الذهبي الوردي (نفس لون الفوتر) */
  --br-ink: #241b1e;                    /* لون العنوان */
  --br-line: rgba(120, 75, 60, .14);    /* الحدود */
  --br-card-w: 180px;                   /* عرض بطاقة الشعار */
  --br-card-h: 96px;                    /* ارتفاع بطاقة الشعار */
  --br-gap: 18px;                       /* المسافة بين البطاقات */
  --br-filter: none;                    /* الشعارات بألوانها الأصلية — اجعلها grayscale(1) لو أردتها رمادية */

  padding: 44px 0 !important;           /* سكشن مضغوط بدل المساحة الكبيرة */
  background: linear-gradient(180deg, #ffffff 0%, #fbf6f4 100%) !important;
  border-top: 1px solid var(--br-line);
  border-bottom: 1px solid var(--br-line);
}

/* ---------- العنوان + زر عرض الكل ---------- */
.rc-brands .s-block__title{
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px !important;
}
.rc-brands .s-block__title h2{
  position: relative;
  margin: 0 !important;
  padding-inline-start: 16px;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--br-ink) !important;
}
/* شريط ذهبي صغير بجانب العنوان */
.rc-brands .s-block__title h2::before{
  content: "";
  position: absolute;
  inset-inline-start: 0; top: 50%;
  width: 5px; height: 22px; margin-top: -11px;
  border-radius: 5px;
  background: var(--br-accent);
}
.rc-brands .s-block__display-all{
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 8px 16px !important;
  border: 1px solid var(--br-line);
  border-radius: 999px;
  background: #fff;
  color: var(--br-ink) !important;
  font-size: 13px !important;
  font-weight: 600;
  white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s;
}
.rc-brands .s-block__display-all:hover{
  background: var(--br-accent);
  border-color: transparent;
  color: #fff !important;
}

/* ---------- الشريط المتحرك ---------- */
.rc-brands .rc-brands-viewport{
  position: relative;
  overflow: hidden;
  direction: ltr;   /* الشريط يبدأ من الحافة ويتحرك بلا فراغات */
  padding: 6px 0 12px;
  /* تلاشي ناعم عند الحواف */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.rc-brands .rc-brands-track{
  display: flex;
  width: max-content;
  direction: ltr;   /* اتجاه ثابت للحركة */
  animation: rc-brands-scroll var(--br-dur, 40s) linear infinite;
  will-change: transform;
}
/* يتوقف الشريط عند وضع الماوس عليه أو عند الخروج من الشاشة */
.rc-brands .rc-brands-viewport:hover .rc-brands-track,
.rc-brands.rc-paused .rc-brands-track{ animation-play-state: paused; }

@keyframes rc-brands-scroll{
  from{ transform: translate3d(0, 0, 0); }
  to  { transform: translate3d(-50%, 0, 0); }
}

/* ---------- بطاقة الشعار ---------- */
.rc-brands .rc-brands-track .brand-item{
  flex: 0 0 var(--br-card-w);
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center;
  width: var(--br-card-w) !important;
  height: var(--br-card-h) !important;
  margin: 0 var(--br-gap) 0 0 !important;
  padding: 16px 22px !important;
  grid-row: auto !important;
  border: 1px solid var(--br-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 6px 18px -14px rgba(100, 60, 45, .4);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.rc-brands .rc-brands-track .brand-item img{
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 52px !important;
  object-fit: contain;
  filter: var(--br-filter);
  opacity: 1;
  transition: filter .35s ease, opacity .35s ease;
  -webkit-user-drag: none;
}
.rc-brands .rc-brands-track .brand-item:hover{
  transform: translateY(-3px);
  border-color: rgba(156, 98, 77, .4) !important;
  box-shadow: 0 14px 26px -16px rgba(100, 60, 45, .5);
}
.rc-brands .rc-brands-track .brand-item:hover img{ filter: none; opacity: 1; }

/* ---------- الجوال ---------- */
@media (max-width: 767.98px){
  .s-block--logos-slider.rc-brands{
    --br-card-w: 132px;
    --br-card-h: 74px;
    --br-gap: 12px;
    padding: 30px 0 !important;
  }
  .rc-brands .s-block__title{ margin-bottom: 18px !important; }
  .rc-brands .s-block__title h2{ font-size: 17px !important; }
  .rc-brands .s-block__display-all{ padding: 6px 12px !important; font-size: 12px !important; }
  .rc-brands .rc-brands-track .brand-item{ padding: 12px 16px !important; border-radius: 14px !important; }
  .rc-brands .rc-brands-track .brand-item img{ max-height: 40px !important; }
}

/* لمن فعّل "تقليل الحركة": شريط ثابت يُسحب باليد */
@media (prefers-reduced-motion: reduce){
  .rc-brands .rc-brands-track{ animation: none; }
  .rc-brands .rc-brands-viewport{ overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
/* ================= نهاية كود العلامات التجارية ================= */