/*الرقم*/
.s-cart-summary-total {
  display: none !important;
}
/* اللوجو */
@media (max-width: 800px) {
  img[alt="Astri logo"] {
    width: 90px !important;
    height: 80px !important;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
  }
}
/* 1. تصفير هامش الهيدر السفلي */
#mainnav,
.main-nav-container,
header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* 2. تصفير الهامش لأول سكشن فقط في الصفحة (البانر) */
main > .s-block:first-child,
.main-content > div:first-child,
.s-block:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 3. إلغاء أي مسافات للصورة نفسها */
img[alt="fixed banner"] {
  margin-top: 0 !important;
  vertical-align: top !important;
}


/* الواتساب */
a.wa-s-n {
  background-color: var(--astri-navy, #132240) !important;
  color: #fff !important;
  border-radius: 50% !important;
  overflow: visible !important;
  z-index: 9999 !important;
}

a.wa-s-n svg {
  color: #fff !important;
}

a.wa-s-n::before {
  content: "حياك وبياك 💛";
  position: absolute;
  right: 54px;
  top: 50%;
  transform: translateY(-50%);
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--astri-navy, #132240);
  color: #fff;
  direction: rtl;
  white-space: nowrap;
  font-family: var(--font-main, sans-serif);
  font-size: 14px;
  line-height: 1.3;
  box-shadow: 0 3px 12px #0003;
  animation: wa-greeting 3s ease-in-out infinite;
}

a.wa-s-n::after {
  content: "";
  position: absolute;
  right: 47px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--astri-navy, #132240);
}

@keyframes wa-greeting {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.04); }
}
/* ازرار المنتجات  */
button.s-button-element.s-button-primary-outline[product-id] {
  background-color: var(--astri-navy, #132240) !important;
  border-color: var(--astri-gold, #f1c97a) !important;
  color: var(--astri-white, #F8F6F1) !important;
}

button.s-button-element.s-button-primary-outline[product-id] .s-button-text {
  color: var(--astri-white, #F8F6F1) !important;
}

button.s-button-element.s-button-primary-outline[product-id] .sicon-shopping-bag {
  color: var(--astri-gold, #f1c97a) !important;
}
/* الفوتر */
.store-footer__inner {
  position: relative;
  isolation: isolate;
  background: transparent !important;
  padding: 78px 18px 24px !important;
}

.store-footer__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #132240;
  clip-path: ellipse(180% 100% at 50% 100%);
}

.store-footer__inner h3,
.store-footer__inner .s-contacts-title {
  color: #f1c97a !important;
}

.store-footer__inner p,
.store-footer__inner a,
.store-footer__inner .unicode,
.store-footer__inner .s-trust-badges-label,
.store-footer__inner .s-trust-badges-number {
  color: #F8F6F1 !important;
}

.store-footer__inner .s-contacts-title {
  display: none !important;
}

/* توسيط اسم Astri */
.store-footer__inner > .container > div:first-child > a {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

.store-footer__inner > .container > div:first-child > a h3 {
  width: 100% !important;
  margin-inline: auto !important;
  text-align: center !important;
}

/* توسيط وثيقة العمل مع إبقاء اتجاهها عربي */
.store-footer__inner > .container > div:first-child > .flex.gap-4 {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin-inline: auto !important;
  text-align: center !important;
  direction: rtl !important;
}

.store-footer__inner > .container > div:first-child > .flex.gap-4 salla-trust-badges {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  direction: rtl !important;
}

.store-footer__inner .s-contacts-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
}

.store-footer__inner .s-contacts-item {
  border: 1px solid rgba(248, 246, 241, .45) !important;
  border-radius: 999px !important;
  padding: 8px 12px !important;
}

.store-footer__inner .s-social-list {
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 !important;
}

/* ترتيب الشاشة الكبيرة */
@media (min-width: 1024px) {
  .store-footer__inner > .container {
    display: grid !important;
    direction: ltr !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas:
      ". brand links"
      ". description links"
      ". badge links"
      ". contacts links"
      ". socials links"
      "apps apps apps";
    gap: 18px 32px !important;
  }

  .store-footer__inner > .container > div:first-child,
  .store-footer__inner > .container > div:nth-child(3) {
    display: contents !important;
  }

  .store-footer__inner > .container > div:first-child > a {
    grid-area: brand;
    justify-self: center;
    direction: rtl;
  }

  .store-footer__inner > .container > div:first-child > .max-w-sm {
    grid-area: description;
    justify-self: center;
    direction: rtl;
    text-align: center !important;
  }

  .store-footer__inner > .container > div:first-child > .flex.gap-4 {
    grid-area: badge;
    justify-self: center;
  }

  .store-footer__inner > .container > div:first-child > div.hidden {
    grid-area: socials;
    display: block !important;
    justify-self: center;
  }

  /* روابط مهمة على يمين الشاشة */
  .store-footer__inner > .container > div:nth-child(2) {
    grid-area: links;
    justify-self: stretch;
    width: 100% !important;
    direction: rtl !important;
    text-align: right !important;
  }

  .store-footer__inner > .container > div:nth-child(2) h3 {
    text-align: right !important;
  }

  .store-footer__inner .s-menu-footer-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    direction: rtl !important;
    text-align: right !important;
  }

  .store-footer__inner > .container > div:nth-child(3) salla-contacts {
    grid-area: contacts;
    justify-self: center;
    direction: rtl;
  }

  .store-footer__inner > .container > div:nth-child(3) .contact-social {
    display: none !important;
  }

  .store-footer__inner > .container > salla-apps-icons {
    grid-area: apps;
    direction: rtl;
  }
}

/* ترتيب الشاشات الصغيرة والمتوسطة */
@media (max-width: 1023px) {
  .store-footer__inner > .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .store-footer__inner .max-w-sm {
    margin-inline: auto !important;
  }

  .store-footer__inner .s-contacts-list {
    justify-content: center !important;
  }
}
/* إخفاء الوسوم وروابط الـ Tags نهائياً من صفحة المنتج */
a[href*="/tag-"] {
    display: none !important;
}

/* إخفاء الحاوية الأساسية للوسوم إذا وجدت */
.product-tags,
.s-product-card-tags,
salla-metadata {
    display: none !important;
}