/* ====================================
   HERO TEXT
   ==================================== */
.hero-bottom-text .advanced-slider__caption__inner__content {
  position: absolute !important;
  left: 50% !important;
  top: 88% !important;
  transform: translate(-50%, -50%) !important;
  width: 100% !important;
  text-align: center !important;
  z-index: 10 !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

.hero-bottom-text .advanced-slider__caption__inner__content__heading {
  font-size: clamp(20px, 2.4vw, 27px) !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  margin: 0 0 8px 0 !important;
  color: #111 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: unset !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

.hero-bottom-text .advanced-slider__caption__inner__content__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 400px !important;
  min-width: 170px !important;
  margin: 17px auto 0 !important;
  position: relative !important;
  top: 0 !important;
  padding: clamp(10px, 1.2vw, 12px) 0 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}

.hero-bottom-text .advanced-slider__caption__inner__content__button span {
  font-size: clamp(16px, 1.9vw, 19px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
}

/* ====================================
   HAFEEF TRUST STRIP
   ==================================== */
.hafeef-trust-strip {
  margin: 14px 0 10px !important;
}

.hafeef-trust-strip > .grid,
.hafeef-trust-strip .grid[data-length="3"] {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.hafeef-trust-strip .s-block--enhanced-features__item {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  background: #fff !important;
  border: 1px solid #e9edf2 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  min-height: auto !important;
  box-shadow: none !important;
  overflow: hidden !important;
  text-align: right !important;
}

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

.hafeef-trust-strip .feature-icon {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

.hafeef-trust-strip .feature-icon img {
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  object-fit: contain !important;
  display: block !important;
  opacity: 0.95 !important;
}

.hafeef-trust-strip .s-block--enhanced-features__item h2 {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: #0b2d4d !important;
  flex: 1 1 auto !important;
}

.hafeef-trust-strip .s-block--enhanced-features__item p {
  display: none !important;
}

@media (min-width: 769px) and (max-width: 1199px) {
  .hafeef-trust-strip {
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 14px auto !important;
    width: 100% !important;
    max-width: 720px !important;
  }

  .hafeef-trust-strip > .grid,
  .hafeef-trust-strip .grid[data-length="3"] {
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
  }

  .hafeef-trust-strip .s-block--enhanced-features__item {
    width: 100% !important;
  }
}

@media (min-width: 1200px) {
  .hafeef-trust-strip {
    position: relative !important;
    left: -260px !important;
  }

  .hafeef-trust-strip > .grid,
  .hafeef-trust-strip .grid[data-length="3"] {
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 768px) {
  .hafeef-trust-strip {
    margin: 12px 0 8px !important;
  }

  .hafeef-trust-strip .s-block--enhanced-features__item {
    padding: 11px 12px !important;
    gap: 9px !important;
    border-radius: 10px !important;
  }

  .hafeef-trust-strip .feature-icon img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
  }

  .hafeef-trust-strip .s-block--enhanced-features__item:first-child .feature-icon img {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
  }

  .hafeef-trust-strip .s-block--enhanced-features__item h2 {
    font-size: 15px !important;
  }

  .hafeef-trust-strip {
    margin-top: 14px !important;
    margin-bottom: 14px !important;
  }
}

/* ====================================
   MOBILE FOOTER / BADGES CLEANUP
   ==================================== */
@media (max-width: 768px) {
  .s-trust-badges-image {
    display: none !important;
  }

  .s-trust-badges-content:has(.s-trust-badges-label),
  .s-trust-badges-content:has(.s-trust-badges-number) {
    display: none !important;
  }

  a.links-contact[href="tel:+966545843955"] {
    display: none !important;
  }

  a.enhanced-contact-item[aria-label="الجوال"] {
    display: none !important;
  }

  .s-payments-list .s-payments-list-item {
    display: none !important;
  }

  .s-payments-list .s-payments-list-item:has(img[alt="mada"]),
  .s-payments-list .s-payments-list-item:has(img[alt="credit_card"]),
  .s-payments-list .s-payments-list-item:has(img[alt="apple_pay"]),
  .s-payments-list .s-payments-list-item:has(img[alt="tabby_installment"]),
  .s-payments-list .s-payments-list-item:has(img[alt="tamara_installment"]),
  .s-payments-list .s-payments-list-item:has(img[alt="COD"]) {
    display: inline-flex !important;
  }

  .s-payments-list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .container.md\:flex.items-center.justify-between.py-4.text-center {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .custom-cr-text {
    text-align: center !important;
    font-size: 13px !important;
    color: #6b6b6b !important;
    margin: 8px 0 4px !important;
  }

  .container.md\:flex.items-center.justify-between.py-4.text-center .s-payments-list-wrap {
    order: 1;
  }

  .container.md\:flex.items-center.justify-between.py-4.text-center .custom-cr-text {
    order: 2;
    font-size: 13px !important;
    color: #6b6b6b !important;
    text-align: center !important;
    margin-top: 4px !important;
    margin-bottom: 2px !important;
  }

  .container.md\:flex.items-center.justify-between.py-4.text-center .footer-rights {
    order: 3;
  }

  .container.md\:flex.items-center.justify-between.py-4.text-center .footer-rights p {
    margin: 0 !important;
  }

  img.h-10[src=""] {
    display: none !important;
  }
}

/* ====================================
   BUNDLE SWITCHER
   ==================================== */
.hafeef-bundle-switcher {
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
}

.hafeef-bundle-switcher__image-wrap {
  margin: 0 auto 14px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hafeef-bundle-switcher__image-wrap a {
  display: block;
  text-decoration: none;
}

.hafeef-bundle-switcher__image-wrap img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hafeef-bundle-card {
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 16px;
  padding: 18px 14px 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  min-height: 300px;
}

.hafeef-bundle-switcher__top-title {
  margin: 0 0 22px !important;
  text-align: center !important;
  font-size: 22px !important;
  line-height: 1.6 !important;
  font-weight: 800 !important;
  color: #0b2d4d !important;
}

.hafeef-bundle-card__title {
  margin: 0 0 8px !important;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 17px !important;
  line-height: 1.7 !important;
  font-weight: 800 !important;
  color: #0b2d4d !important;
}

.hafeef-bundle-card__rating {
  margin: -8px 0 18px !important;
  font-size: 20px !important;
  line-height: 1 !important;
  letter-spacing: 2px !important;
  color: #f4b400 !important;
}

.hafeef-bundle-card__options {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.hafeef-bundle-card__options .bundle-option:nth-child(1) { order: 1; }
.hafeef-bundle-card__options .bundle-option:nth-child(2) { order: 2; }
.hafeef-bundle-card__options .bundle-option:nth-child(3) { order: 3; }

.bundle-option {
  flex: 1;
  position: relative;
  background: #fff;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px #d9dee5;
  border-radius: 14px;
  padding: 15px 6px 11px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
  min-height: 126px;
}

.bundle-option.active {
  border: 2px solid #0c6b4f;
  box-shadow: none;
  background: #f9fcfa;
}

.bundle-option__badge {
  position: absolute;
  top: -8px;
  right: 50%;
  transform: translateX(50%);
  background: #090b37;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  border-radius: 999px;
  padding: 3px 7px;
}

.bundle-option__qty {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #0b2d4d;
  margin-bottom: 13px;
  line-height: 1.2;
}

.bundle-option__price {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: #d63b2c;
  margin-bottom: 4px;
  line-height: 1.2;
}

.bundle-option__old-price {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #9aa3af;
  text-decoration: line-through;
  margin-bottom: 8px;
  line-height: 1.1;
  position: relative;
  top: -1px;
}

.bundle-option__desc {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  line-height: 1.1;
}

.hafeef-bundle-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: #090b37;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 768px) {
  .hafeef-bundle-switcher__top-title {
    font-size: 20px !important;
    margin-bottom: 18px !important;
  }

  .hafeef-bundle-switcher__image-wrap {
    margin-bottom: 12px !important;
    min-height: 240px;
  }

  .hafeef-bundle-switcher__image-wrap img {
    max-width: 300px;
  }

  .hafeef-bundle-card {
    padding: 16px 12px 12px;
    border-radius: 15px;
    min-height: 300px;
  }

  .hafeef-bundle-card__title {
    font-size: 16px !important;
    margin-bottom: 8px !important;
    min-height: 52px;
  }

  .hafeef-bundle-card__rating {
    font-size: 19px !important;
    margin: -16px 0 18px !important;
  }

  .hafeef-bundle-card__options {
    gap: 8px;
    margin-bottom: 22px;
  }

  .bundle-option {
    min-height: 126px;
    padding: 15px 5px 11px;
    border-radius: 13px;
  }

  .bundle-option__badge {
    top: -8px;
    font-size: 10px;
    padding: 3px 7px;
    line-height: 1.1;
  }

  .bundle-option__qty {
    font-size: 16px;
  }

  .bundle-option__price {
    font-size: 18px;
  }

  .bundle-option__old-price {
    font-size: 11px;
  }

  .bundle-option__desc {
    font-size: 11px;
  }

  .hafeef-bundle-card__cta {
    height: 46px;
    font-size: 17px;
    border-radius: 11px;
  }
}

/* ====================================
   GENERAL LAYOUT TWEAKS
   ==================================== */
.home-block-line {
  width: 72px !important;
  border-width: 1px !important;
  opacity: 0.7 !important;
  margin-top: 8px !important;
  margin-bottom: 10px !important;
}

@media (min-width: 768px) {
  .grid.items-start.grid-cols-1.md\:grid-cols-2.gap-4 {
    grid-template-columns: 1fr !important;
    max-width: 760px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 768px) {
  ol.flex.items-center.flex-wrap.text-sm {
    display: none !important;
  }
}

/* ====================================
   PRODUCT PAGE
   ==================================== */
.product-single__info {
  display: flex !important;
  flex-direction: column !important;
}

.product-price-top { order: 1 !important; }
.inventory-content,
#variant-inventory { order: 2 !important; }
.product-features--wrapper { order: 3 !important; }
salla-installment { order: 4 !important; }
form.product-form { order: 5 !important; }
.product-single-top-description { order: 6 !important; }

.product-price-bottom {
  display: none !important;
}

.product-price-top {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0 12px !important;
  text-align: center !important;
}

.product-price-top .price_is_on_sale {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

.product-price-top .total-price {
  font-size: 29px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.product-price-top .before-price {
  display: block !important;
  font-size: 16px !important;
  line-height: 1 !important;
  margin: 0 !important;
  opacity: 0.75 !important;
}

.product-price-top .price_is_on_sale.space-x-2,
.product-price-top .flex.whitespace-nowrap.gap-4.items-center {
  gap: 0 !important;
}

.product-entry__sub-title {
  margin-bottom: 8px !important;
}

#variant-inventory {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  margin-bottom: 12px !important;
  text-align: center !important;
}

.product-single__info salla-rating-stars {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #090b37 !important;
  border: 1px solid #090b37 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  margin: 0 auto 10px !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 44px !important;
}

.product-single__info .s-rating-stars-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  direction: ltr !important;
}

.product-single__info .s-rating-stars-btn-star {
  display: inline-flex !important;
  align-items: center !important;
  order: 2 !important;
}

.product-single__info .s-rating-stars-btn-star svg {
  width: 16px !important;
  height: 16px !important;
}

.product-single__info .s-rating-stars-btn-star svg path {
  fill: #f5c451 !important;
}

.product-single__info .s-rating-stars-reviews {
  order: 1 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  white-space: nowrap !important;
  margin: 0 0 0 4px !important;
}

.product-single__info .s-rating-stars-reviews::before,
.product-single__info .s-rating-stars-reviews::after {
  content: none !important;
}

.hafeef-product-hook {
  text-align: center !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin: 16px 0 10px !important;
  transform: translateY(14px) !important;
}

.product-features--wrapper {
  margin: 0 0 14px !important;
}

.product-features--wrapper .grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
}

.product-features-item {
  background: #f8fafc !important;
  border: 1px solid #edf1f5 !important;
  border-radius: 12px !important;
  min-height: 72px !important;
  padding: 10px 6px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.product-features-item .feature-icon {
  margin: 0 !important;
  line-height: 1 !important;
}

.product-features-item .feature-icon i {
  font-size: 18px !important;
}

.product-features-item .feature-text {
  text-align: center !important;
}

.product-features-item .feature-text h3 {
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #0b1f4d !important;
}

salla-installment {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 0 12px !important;
}

salla-installment > div,
#tabbyPromoWrapper {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid #eef1f5 !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

salla-installment tamara-widget,
#tabbyPromo {
  display: block !important;
  width: 100% !important;
  border: none !important;
  box-shadow: none !important;
}

#tabbyPromoWrapper *,
#tabbyPromo * {
  writing-mode: horizontal-tb !important;
  white-space: normal !important;
  word-break: break-word !important;
  text-align: center !important;
  line-height: 1.6 !important;
}

@media (min-width: 768px) {
  salla-installment {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
}

.product-single-top-description {
  margin: 16px 0 20px !important;
  text-align: right !important;
}

.product-single-top-description::before {
  content: "وصف المنتج";
  display: block;
  text-align: right;
  font-size: 18px;
  font-weight: 800;
  color: #001a4d;
  margin-bottom: 8px;
}

.product-single-top-description .article--main {
  max-height: 8.5rem !important;
  overflow: hidden !important;
  transition: max-height .3s ease !important;
  text-align: right !important;
  line-height: 1.9 !important;
}

.product-single-top-description .article--main.is-open {
  max-height: 200rem !important;
}

#btn-show-more {
  display: inline-block !important;
  margin-top: 8px !important;
  font-size: 0 !important;
  font-weight: 700 !important;
  color: #001a8b !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

#btn-show-more::after {
  content: "عرض الوصف الكامل";
  font-size: 14px !important;
}

.sticky-product-bar__quantity {
  display: none !important;
}

.sticky-product-bar {
  padding-top: 12px !important;
}

.sticky-product-bar__btn,
.sticky-product-bar .mt-5 {
  margin-top: 0 !important;
}

.sticky-product-bar__btn .s-add-product-button-main {
  display: flex !important;
  gap: 8px !important;
}

.sticky-product-bar__btn .s-button-wrap,
.sticky-product-bar__btn salla-mini-checkout-widget {
  flex: 1 1 0 !important;
}

.product-single #wa-selia,
body.product #wa-selia,
.product-single-page #wa-selia,
.single-product #wa-selia {
  display: none !important;
}

@media (max-width: 768px) {
  .whatsapp-contact,
  .whatsapp-btn,
  a[href*="whatsapp"] {
    bottom: 95px !important;
  }
}

/* ====================================
   CARD QTY BADGES
   ==================================== */
.hafeef-card-qty-badge {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-width: 72px !important;
  height: 28px !important;
  padding: 0 12px !important;
  margin: 8px auto 8px !important;
  background: #eaf4f5 !important;
  color: #0B5EA8 !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.product-card__title {
  margin-bottom: 0 !important;
}

.product-card__subtitle {
  display: block !important;
  text-align: center !important;
  margin-top: 0 !important;
}
/* ================================
   تحسين تعليقات المنتج - نسخة نظيفة
   ================================ */

/* إخفاء صورة العميل المكررة نهائيًا */
.s-comments-item-avatar {
  display: none !important;
}

/* إخفاء عبارة تم التقييم */
.s-comments-item-rated-widget {
  display: none !important;
}

/* إزالة الصور داخل التعليق إن وجدت */
.s-comments-item-images {
  display: none !important;
}

/* إزالة الخطوط والفواصل بين التعليقات */
.s-comments-item-wrapper,
.s-comments-item-wrapper + .s-comments-item-wrapper,
salla-comment-item,
salla-comment-item + salla-comment-item {
  border: none !important;
  border-top: none !important;
  box-shadow: none !important;
}

.s-comments hr,
.comments hr,
.product-comments hr,
.s-comments-item-wrapper hr {
  display: none !important;
}

/* فراغ بصري بسيط بين التعليقات */
salla-comment-item {
  display: block !important;
  margin-bottom: 12px !important;
}

.s-comments-item-wrapper {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.s-comments-item-inner {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: #fff !important;
}

/* منطقة الاسم والمعلومات */
.s-comments-item-user-wrapper {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 4px !important;
  flex-wrap: wrap !important;
}

.s-comments-item-user-info {
  margin: 0 !important;
  padding: 0 !important;
}

/* الاسم */
.s-comments-item-user-info h3,
.s-comments-item-user-info-name-with-margin {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
}

/* سطر "قام بالشراء" */
.s-comments-item-user-info .s-comments-flex {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 2px !important;
  flex-wrap: nowrap !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.s-comments-item-has-order-check-text {
  font-size: 12px !important;
  line-height: 1.4 !important;
}

/* تصغير دائرة الصح نفسها */
.s-comments-item-has-order-check-icon {
  width: 9px !important;
  height: 9px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  margin-left: 10px !important; /* المسافة عن الاسم */
  margin-right: 0 !important;
  padding: 0 !important;
  position: relative !important;
  left: -15px !important;
}

/* تصغير علامة الصح داخل الدائرة */
.s-comments-item-has-order-check-icon svg {
  width: 12px !important;
  height: 12px !important;
}

/* التاريخ */
.s-comments-item-timestamp {
  margin: 2px 0 6px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  opacity: 0.75 !important;
}

/* النجوم */
.s-comments-item-stars,
.s-rating-stars-wrapper {
  margin: 0 0 6px 0 !important;
}

.s-rating-stars-mini svg {
  width: 14px !important;
  height: 14px !important;
}

/* نص التعليق */
.s-comments-item-content p {
  margin: 6px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}
.s-comments-item-has-order-check-text {
  font-size: 0 !important;
}

.s-comments-item-has-order-check-text::before {
  content: "قام بالشراء" !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}
.s-comments-item-timestamp {
  display: none !important;
}
/* الحاوية الثابتة السفلية */
.product-form-footer,
.product-actions-fixed,
.s-product-sticky-bar,
.product-sticky-bar,
section.sticky-product-bar {
  background: rgba(255, 255, 255, 0.18) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  border: 0 !important;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.05) !important;
}

/* الشريط الداخلي */
.sticky-product-bar {
  background: inherit !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* نفس الشريط الداخلي يرث الشفافية بدل ما يصير أبيض */
.sticky-product-bar {
  background: inherit !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) !important;
}

/* لو فيه حاوية أعلى منها داخل القالب */
body .sticky-product-bar,
body section.sticky-product-bar,
body .product-form-footer,
body .product-actions-fixed,
body .s-product-sticky-bar,
body .product-sticky-bar {
  background-color: rgba(255, 255, 255, 0.55) !important;
}

/* fallback لو المتصفح ما يدعم البلور */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .product-form-footer,
  .product-actions-fixed,
  .s-product-sticky-bar,
  .product-sticky-bar,
  section.sticky-product-bar,
  .sticky-product-bar {
    background: rgba(255, 255, 255, 0.92) !important;
  }
}

/* إخفاء الكمية */
.sticky-product-bar__quantity {
  display: none !important;
}

/* تنظيف كل الحاويات الداخلية */
.sticky-product-bar__btn,
.sticky-product-bar .mt-5,
.sticky-product-bar salla-add-product-button,
.sticky-product-bar .s-add-product-button-main,
.sticky-product-bar .s-button-wrap,
.sticky-product-bar salla-button,
.sticky-product-bar salla-mini-checkout-widget,
.sticky-product-bar .s-add-product-button-mini-checkout {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ترتيب الأزرار */
.sticky-product-bar .s-add-product-button-main {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}

/* زر إضافة للسلة */
.sticky-product-bar .s-button-element.s-button-primary {
  flex: 1.25 !important;
  height: 54px !important;
  border-radius: 16px !important;
  background: #071a63 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(7, 26, 99, 0.18) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 18px !important;
  white-space: nowrap !important;
}

/* زر اشتري الآن */
.sticky-product-bar .s-add-product-button-mini-checkout {
  flex: 0.95 !important;
  min-width: 0 !important;
}

.sticky-product-bar .s-add-product-button-mini-checkout-content {
  height: 54px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(12, 36, 92, 0.12) !important;
  color: #071a63 !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

/* قص أي خطوط غبية إضافية */
.sticky-product-bar .s-add-product-button-mini-checkout::before,
.sticky-product-bar .s-add-product-button-mini-checkout::after,
.sticky-product-bar .s-add-product-button-mini-checkout-content::before,
.sticky-product-bar .s-add-product-button-mini-checkout-content::after {
  content: none !important;
  display: none !important;
}

.sticky-product-bar .s-add-product-button-mini-checkout *,
.sticky-product-bar .s-add-product-button-mini-checkout-content * {
  box-shadow: none !important;
}

/* الجوال */
@media (max-width: 768px) {
  .sticky-product-bar {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
  }

  .sticky-product-bar .s-button-element.s-button-primary,
  .sticky-product-bar .s-add-product-button-mini-checkout-content {
    height: 52px !important;
  }

  .sticky-product-bar .s-button-element.s-button-primary {
    font-size: 17px !important;
  }

  .sticky-product-bar .s-add-product-button-mini-checkout-content {
    font-size: 16px !important;
  }
}
/* الشريط/الكرت السفلي */
.product-form-footer,
.product-actions-fixed,
.s-product-sticky-bar,
.product-sticky-bar,
section.sticky-product-bar,
.sticky-product-bar {
  border-radius: 20px 20px 0 0 !important;
  box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.16) !important;
  overflow: hidden !important;
}
/* رفع الشريط السفلي وتكبير حضوره */
.product-form-footer,
.product-actions-fixed,
.s-product-sticky-bar,
.product-sticky-bar,
section.sticky-product-bar,
.sticky-product-bar {
  bottom: 10px !important;
  margin: 0 8px !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.18), 0 -8px 22px rgba(2, 6, 23, 0.08) !important;
  overflow: hidden !important;
}

/* تكبير المساحة الداخلية */
.sticky-product-bar {
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom)) !important;
}

/* زر إضافة للسلة - كحلي أغمق وأكثر بروز */
.sticky-product-bar .s-button-element.s-button-primary {
  background: #050b45 !important;
  color: #ffffff !important;
  height: 56px !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 24px rgba(5, 11, 69, 0.30) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

/* زر اشتري الآن يبقى أهدأ لكن أوضح */
.sticky-product-bar .s-add-product-button-mini-checkout-content {
  height: 56px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid rgba(5, 11, 69, 0.16) !important;
  color: #071a63 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}

/* للجوال */
@media (max-width: 768px) {
  .product-form-footer,
  .product-actions-fixed,
  .s-product-sticky-bar,
  .product-sticky-bar,
  section.sticky-product-bar,
  .sticky-product-bar {
    bottom: 8px !important;
    margin: 0 6px !important;
    border-radius: 20px !important;
  }

  .sticky-product-bar .s-button-element.s-button-primary,
  .sticky-product-bar .s-add-product-button-mini-checkout-content {
    height: 54px !important;
  }
}
/* رجّع الشريط يلامس الأسفل */
.product-form-footer,
.product-actions-fixed,
.s-product-sticky-bar,
.product-sticky-bar,
section.sticky-product-bar,
.sticky-product-bar {
  bottom: 0 !important;
  margin: 0 !important;
  border-radius: 22px 22px 0 0 !important;
  box-shadow: 0 -12px 32px rgba(2, 6, 23, 0.16) !important;
  overflow: hidden !important;
}

/* كبّر الكرت نفسه من الداخل */
.sticky-product-bar {
  padding: 14px 12px calc(16px + env(safe-area-inset-bottom)) !important;
  min-height: 88px !important;
}

/* كبّر الأزرار شوي */
.sticky-product-bar .s-button-element.s-button-primary,
.sticky-product-bar .s-add-product-button-mini-checkout-content {
  height: 58px !important;
  border-radius: 16px !important;
}

/* للجوال */
@media (max-width: 768px) {
  .sticky-product-bar {
    padding: 12px 10px calc(14px + env(safe-area-inset-bottom)) !important;
    min-height: 82px !important;
  }

  .sticky-product-bar .s-button-element.s-button-primary,
  .sticky-product-bar .s-add-product-button-mini-checkout-content {
    height: 56px !important;
  }
}
/* الزر نفسه */
.sticky-product-bar .s-button-element.s-button-primary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

/* إلغاء الأيقونة القديمة اليسار */
.sticky-product-bar .s-button-element.s-button-primary::before {
  content: none !important;
  display: none !important;
}

/* الأيقونة الجديدة يمين العبارة */
.sticky-product-bar .s-button-element.s-button-primary::after {
  content: "" !important;
  display: inline-block !important;
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 30px 30px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M7 4H3v2h2l2.2 4.2-1 1.8A2 2 0 0 0 8 15h9v-2H8.4l.7-1.3h6.7a2 2 0 0 0 1.8-1.1L20 6H7.9L7 4zm1 13a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm9 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z'/></svg>") !important;
}