/* =========================
   GLOBAL HEADER & LOGO
   ========================= */

/* إخفاء بادج الشحن المجاني في الصفحة الرئيسية فقط */
body.index .product-card__promotion,
body.home .product-card__promotion,
body.s-home .product-card__promotion {
  display: none !important;
}

/* إصلاح تمدد شعار الهيدر */
img.logo-normal {
  width: auto !important;
  height: auto !important;
  max-width: 105px !important;
  max-height: 50px !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
}

@media (max-width: 767px) {
  section.hafeef-hero-slider {
    transform: translateY(-9px) !important;
    margin-bottom: -6px !important;
  }
}

/* HAFEEF HEADER - WHITE TOP BAR */
#mainnav,
#mainnav .inner,
.main-nav-container,
.main-nav-container .inner {
  background: #ffffff !important;
}

#mainnav .header-btn__icon,
#mainnav .sicon-menu,
#mainnav .sicon-search,
#mainnav .sicon-user,
#mainnav .sicon-cart {
  color: #00304d !important;
}

#mainnav {
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04) !important;
}

/* =========================================
   HAFEEF BUNDLES SECTION HEADER
   عنوان قسم الباقات فقط
   ========================================= */

#featured-products-style2-1 {
  position: relative !important;
}

#featured-products-style2-1 .tabs {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 18px !important;
}

#featured-products-style2-1 .tabs .s-button-element {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: auto !important;
}

#featured-products-style2-1 .tabs .s-button-text {
  font-size: 31px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  color: #142c63 !important;
  text-align: center !important;
  justify-content: center !important;
}

#featured-products-style2-1 .tabs::after {
  content: "اختر الباقة اللي تناسب احتياجك" !important;
  display: block !important;
  text-align: center !important;
  font-size: 17px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  color: #7b8794 !important;
  margin-top: -2px !important;
}


/* =========================
   TABS DESIGN MOBILE
   ========================= */
@media (max-width: 768px) {
  #featured-products-style2-1 .tabs {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: -33px 0 17px !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  #featured-products-style2-1 .tabs .s-button-wrap,
  #featured-products-style2-1 .tabs .s-button-element {
    position: relative !important;
    display: block !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: auto !important;
  }

  #featured-products-style2-1 .tabs .s-button-text {
    display: inline-block !important;
    position: relative !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 34px 2px !important;
    font-size: 24px !important;
    line-height: 1.4 !important;
    font-weight: 900 !important;
    color: #142c63 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow: visible !important;
    letter-spacing: 0 !important;
  }

  #featured-products-style2-1 .tabs::after {
    content: "اختر الباقة اللي تناسب احتياجك" !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
    color: #8b95a7 !important;
    text-align: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* =========================
   TRUST STRIP
   شريط الثقة في الصفحة الرئيسية
   ========================= */

.home-block-line {
  display: none !important;
}

.hafeef-trust-strip {
  width: 100% !important;
  max-width: 360px !important;
  margin: 10px auto 0 !important;
}

.hafeef-trust-strip > .grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
}

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

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

.hafeef-trust-strip .feature-icon {
  flex: 0 0 18px !important;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

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

.hafeef-trust-strip .s-block--enhanced-features__item h2 {
  margin: 0 !important;
  flex: 0 1 auto !important;
  width: auto !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #0b2d4d !important;
  text-align: center !important;
  white-space: nowrap !important;
}

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

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

  .hafeef-trust-strip > .grid {
    gap: 8px !important;
  }

  .hafeef-trust-strip > .grid > .s-block--enhanced-features__item {
    min-height: 42px !important;
    padding: 8px 12px !important;
    gap: 7px !important;
    border-radius: 11px !important;
  }

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

  .hafeef-trust-strip .s-block--enhanced-features__item h2 {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
}

@media (min-width: 769px) {
  .hafeef-trust-strip {
    max-width: 360px !important;
    margin: 12px auto 0 !important;
  }

  .hafeef-trust-strip > .grid {
    gap: 10px !important;
  }

  .hafeef-trust-strip > .grid > .s-block--enhanced-features__item {
    min-height: 44px !important;
    padding: 10px 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;
  }
}

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

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

/* ================================
   PRODUCT COMMENTS
   ================================ */
.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-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-stars,
.s-comments-item-wrapper .s-rating-stars-wrapper,
salla-comment-item .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;
}

/* =========================
   STICKY PRODUCT BAR
   ========================= */
.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;
  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: 12px !important;
  box-shadow: none !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .sticky-product-bar {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) !important;
  }

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

/* =========================
   PRODUCT GALLERY BULLETS
   ========================= */
@media (max-width: 768px) {
  .product-single__main-media .swiper-pagination,
  .product-single__main-media .swiper-pagination.swiper-pagination-bullets {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: 12px !important;
    padding-top: 2px !important;
    text-align: center !important;
    z-index: 5 !important;
  }

  .product-single__main-media .swiper-pagination-bullet {
    position: relative !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 4px !important;
    border-radius: 999px !important;
    background: #cfd6df !important;
    opacity: 1 !important;
    transition: all 0.25s ease !important;
    vertical-align: middle !important;
  }

  .product-single__main-media .swiper-pagination-bullet-active {
    width: 18px !important;
    height: 8px !important;
    border-radius: 999px !important;
    background: #0b2d4d !important;
  }

  .product-single__main-media .swiper-pagination-bullet-active::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: -6px !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 4px solid transparent !important;
    border-bottom: 4px solid transparent !important;
    border-right: 6px solid #0b2d4d !important;
  }
}

@media (max-width: 768px) {
  nav.breadcrumbs {
    display: none !important;
  }

  .product-single__slider {
    margin-top: -8px !important;
  }

  .product-single__slider__inner {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .product-single__main-media {
    margin-top: 0 !important;
  }
}


@media (max-width: 768px) {
  section.s-block.s-block--square-links ul[role="list"] > li:last-child {
    grid-column: 1 / -1 !important;
    width: min(48%, 180px) !important;
    margin: 0 auto !important;
  }
}

/* =========================
   HOME REVIEWS - WHITE CLEAN CARDS
   ========================= */

.hafeef-home-reviews .swiper-wrapper {
  align-items: stretch !important;
}

.hafeef-home-reviews .review {
  height: auto !important;
  display: flex !important;
}

.hafeef-home-reviews .review > div {
  width: 100% !important;
  min-height: 150px !important;
  height: 100% !important;
  padding: 16px 16px !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;

  background: #ffffff !important;
  border: 1px solid #e6ebf2 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.045) !important;

  overflow: hidden !important;
}

/* نص التقييم */
.hafeef-home-reviews #item-text {
  order: 1 !important;
  margin: 0 0 14px 0 !important;
  text-align: right !important;
}

.hafeef-home-reviews #item-text p {
  margin: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.8 !important;
  font-weight: 500 !important;
  color: #334155 !important;
  text-align: right !important;
}

/* منطقة الاسم والنجوم */
.hafeef-home-reviews .flex.items-center.mt-6.-mx-2 {
  order: 2 !important;
  width: 100% !important;
  margin: auto 0 0 0 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  gap: 4px !important;

  text-align: right !important;
}

/* إخفاء صورة الافاتار */
.hafeef-home-reviews .flex.items-center.mt-6.-mx-2 > img {
  display: none !important;
}

.hafeef-home-reviews .flex.items-center.mt-6.-mx-2 > div {
  width: 100% !important;
  margin: 0 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;

  text-align: right !important;
}

.hafeef-home-reviews h4 {
  width: 100% !important;
  margin: 0 0 4px 0 !important;

  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
  color: #142c63 !important;
  text-align: right !important;
}

.hafeef-home-reviews .comment__rating {
  width: 100% !important;
  margin: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 3px !important;

  direction: ltr !important;
}

.hafeef-home-reviews .comment__rating.rtl\:space-x-reverse,
.hafeef-home-reviews .comment__rating.space-x-1 {
  --tw-space-x-reverse: 0 !important;
}

.hafeef-home-reviews .comment__rating > * + * {
  margin-right: 3px !important;
  margin-left: 0 !important;
}

/* علامة الاقتباس */
.hafeef-home-reviews .sicon-quote {
  top: 12px !important;
  inset-inline-end: 12px !important;
  font-size: 24px !important;
  opacity: 0.06 !important;
  color: #142c63 !important;
}

/* الجوال */
@media (max-width: 768px) {
  .hafeef-home-reviews .review > div {
    min-height: 142px !important;
    padding: 15px 14px !important;
    border-radius: 14px !important;
  }

  .hafeef-home-reviews #item-text {
    margin-bottom: 12px !important;
  }

  .hafeef-home-reviews #item-text p {
    font-size: 13px !important;
    line-height: 1.75 !important;
  }

  .hafeef-home-reviews h4 {
    font-size: 13.5px !important;
  }
}

/* =========================
   GLOBAL TABS
   ========================= */
.tabs {
  display: flex !important;
  justify-content: center !important;
}

.tabs .tab-trigger.s-button-wrap {
  margin: 0 auto !important;
}

.tabs .tab-trigger .s-button-element,
.tabs .tab-trigger .s-button-text {
  text-align: center !important;
  justify-content: center !important;
}

.tabs .tab-trigger .s-button-text {
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

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

.product-single__info > .flex.items-center.justify-between.mb-5 {
  display: none !important;
}

.product-single__info .product-entry__sub-title {
  order: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 0 10px 0 !important;
  padding: 7px 14px !important;
  border-radius: 12px !important;
  background: #3FAE6A !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(63, 174, 106, 0.16) !important;
}

.product-single__info .product-entry__sub-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  margin-left: 8px;
  flex: 0 0 7px;
}

.product-single__info h1 {
  order: 2 !important;
  margin: 0 0 8px !important;
}

.product-single__info salla-rating-stars {
  order: 4 !important;
  display: block !important;
}

.product-single__info .product-price.product-price-bottom {
  order: 6 !important;
}

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

.product-single__info .product-price.product-price-bottom > .center-between {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: 100% !important;
}


.product-single__info .starting-or-normal-price .total-price,
.product-single__info .starting-or-normal-price h2.total-price,
.product-single__info .product-price.product-price-bottom .starting-or-normal-price .total-price {
  color: #5f7186 !important;
  font-weight: 800 !important;
}

.product-single__info form.product-form {
  order: 7 !important;
  margin: 0 0 14px !important;
}

.product-single__info .sticky-product-bar {
  margin: 0 !important;
}

.product-single__info .sticky-product-bar__btn {
  margin-top: 0 !important;
}

.product-single__info .sticky-product-bar .flex.flex-col.space-y-5.mb-5 {
  margin: 0 0 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.product-single__info .sticky-product-bar .flex.flex-col.space-y-5.mb-5 > * + * {
  margin-top: 0 !important;
}


.product-single__info salla-quick-order {
  order: 10 !important;
}

/* =========================
   PRODUCT HOOK CLEAN SIZING
   بديل مستقل لعبارات المنتج تحت العنوان
   ========================= */

.product-single__info .hafeef-product-hook {
  order: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  margin: 0 0 10px !important;
}

.product-single__info .hafeef-hook-line1 {
  display: block !important;
  font-size: 20px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  color: #727b8c !important;
}

.product-single__info .hafeef-hook-line2 {
  display: block !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  font-weight: 500 !important;
  color: #727b8c !important;
}

@media (max-width: 768px) {
  .product-single__info .hafeef-product-hook {
    gap: 2px !important;
    margin: 0 0 8px !important;
  }

  .product-single__info .hafeef-hook-line1 {
    font-size: 17px !important;
    line-height: 1.45 !important;
    font-weight: 800 !important;
  }

  .product-single__info .hafeef-hook-line2 {
    font-size: 15.5px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
  }
}

/* =========================
   PRODUCT PAGE TOP TIGHTENING
   ========================= */
@media (max-width: 768px) {
  .product-single__slider {
    margin-bottom: 6px !important;
  }

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

  .product-single__main-media {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .product-single__info {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .product-single__info .product-entry__sub-title,
  .product-single__info h1,
  .product-single__info .hafeef-product-hook {
    margin-top: 0 !important;
  }
}

/* =========================
   INVENTORY CLONE
   ========================= */
.product-single__info .sticky-product-bar {
  display: flex !important;
  flex-direction: column !important;
}

.product-single__info #variant-inventory,
.product-single__info .inventory-content:has(#variant-inventory),
.product-single__info .flex.flex-col.space-y-5.mb-5:has(#variant-inventory) {
  display: none !important;
}

.hafeef-inventory-clone {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-direction: row !important;
  gap: 6px !important;
  width: auto !important;
  min-height: 24px !important;
  margin: 0 0 10px auto !important;
  align-self: flex-end !important;
  color: #16a34a !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 24px !important;
  white-space: nowrap !important;
  text-align: right !important;
}

.hafeef-inventory-clone .hafeef-inventory-icon,
.hafeef-inventory-clone .hafeef-inventory-text {
  color: #16a34a !important;
}

.hafeef-inventory-clone .hafeef-inventory-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  animation: hafeefInventoryPulse 1.8s ease-in-out infinite !important;
}

@keyframes hafeefInventoryPulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: .72; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* الشارة - بجانب السعر */
.hafeef-save-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  margin-inline-start: 10px !important;
  padding: 5px 10px !important;
  background: #f2fbf4 !important;
  color: #1f7a45 !important;
  border: 1px solid #cfead6 !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.hafeef-save-badge .sicon-sar {
  font-size: 11px !important;
  line-height: 1 !important;
}

/* سطر سعر العبوة - تحت كتلة السعر */
.hafeef-unit-price {
  display: block !important;
  width: 100% !important;
  margin: 4px 0 0 !important;
  padding: 0 20px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  color: #7b8794 !important;
  text-align: right !important;
}

.hafeef-unit-price .sicon-sar {
  font-size: 11px !important;
  line-height: 1 !important;
}

@media (max-width: 768px) {
  .hafeef-save-badge {
    font-size: 11px !important;
    padding: 4px 9px !important;
    margin-inline-start: 8px !important;
  }

  .hafeef-unit-price {
    font-size: 12px !important;
    padding: 0 18px !important;
  }
}

/* =========================================
   HAFEEF BUNDLES - CENTER THIRD CARD MOBILE
   توسيط الباقة الثالثة تحت الباقتين
   ========================================= */

@media (max-width: 768px) {
  #featured-products-style2-1 .s-products-list-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  #featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card#product-376098062 {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: calc((100% - 12px) / 2) !important;
    max-width: calc((100% - 12px) / 2) !important;
  }
}

@media (max-width: 768px) {
  #featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card#product-1297836618 {
    border: 2px solid #173a79 !important;
    box-shadow: 0 6px 18px rgba(23, 58, 121, 0.10) !important;
  }
}
/* =========================================
   PRODUCT PAGE FEATURES UNDER CTA
   الأيقونات الثلاثة تحت زر السلة
   ========================================= */

.product-single__info form.product-form {
  order: 7 !important;
}

.product-single__info .product-features--wrapper {
  order: 9 !important;
  margin: 0 0 16px !important;
}

.product-single__info .product-single-top-description {
  order: 10 !important;
}

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

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

.product-single__info .product-features-item .feature-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  border: 1px solid #e6ebf2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.product-single__info .product-features-item .feature-icon i {
  font-size: 15px !important;
  color: #0b2d5c !important;
}

.product-single__info .product-features-item .feature-text h3 {
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  color: #0b2d5c !important;
}

/* =========================================
   PRODUCT PAGE - PRICE AREA TIGHTENING
   صقل المسافة بين التقييم والسعر وسطر سعر العبوة
   ========================================= */

/* تقليل المسافة بعد النجوم */
.product-single__info salla-rating-stars {
  margin: 0 0 8px !important;
}

/* تنظيف بلوك السعر */
.product-single__info .product-price.product-price-bottom {
  margin: 0 0 2px !important;
  padding: 0 20px 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* صف السعر نفسه */
.product-single__info .product-price.product-price-bottom > .center-between {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 32px !important;
}

/* السعر والخصم */
.product-single__info .price_is_on_sale {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.product-single__info .price_is_on_sale .total-price {
  margin: 0 !important;
  font-size: 21px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: #ef4444 !important;
}

.product-single__info .price_is_on_sale .before-price {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  color: #9aa5b1 !important;
}

/* شارة التوفير */
.product-single__info .hafeef-save-badge {
  margin-inline-start: 10px !important;
  padding: 5px 10px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

/* سطر سعر العبوة */
.product-single__info .hafeef-unit-price {
  display: block !important;
  width: 100% !important;
  margin: 3px 0 10px !important;
  padding: 0 20px !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  color: #7b8794 !important;
  text-align: right !important;
}

/* الجوال */
@media (max-width: 768px) {
  .product-single__info salla-rating-stars {
    margin: 0 0 7px !important;
  }

  .product-single__info .product-price.product-price-bottom {
    padding: 0 18px 0 !important;
    margin-bottom: 1px !important;
  }

  .product-single__info .product-price.product-price-bottom > .center-between {
    min-height: 30px !important;
  }

  .product-single__info .price_is_on_sale .total-price {
    font-size: 20px !important;
  }

  .product-single__info .price_is_on_sale .before-price {
    font-size: 13px !important;
  }

  .product-single__info .hafeef-unit-price {
    margin: 2px 0 9px !important;
    padding: 0 18px !important;
    font-size: 12px !important;
  }
}

/* =========================================
   HAFEEF BUNDLE BADGE - FINAL
   بادج الباقة أعلى يمين الكرت
   ========================================= */

#featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card {
  position: relative !important;
  overflow: hidden !important;
}

#featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card .product-card__content,
#featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card .product-card__content-wrapper {
  position: static !important;
}

#featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card .product-card__subtitle {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  z-index: 20 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 27px !important;
  margin: 0 !important;
  padding: 0 10px !important;

  border-radius: 0 0 0 8px !important;
  border: 0 !important;
  box-shadow: none !important;

  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 27px !important;
  white-space: nowrap !important;
  transform: none !important;
}

#featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card#product-1297836618 .product-card__subtitle {
  background: #173a79 !important;
  color: #ffffff !important;
}

#featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card#product-318387740 .product-card__subtitle {
  background: #119647 !important;
  color: #ffffff !important;
}

#featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card#product-376098062 .product-card__subtitle {
  background: #2959c8 !important;
  color: #ffffff !important;
}

/* =========================================
   HAFEEF BUNDLE CARD CONTENT - POLISHED
   ترتيب العنوان والعبوات والوصف والتقييم والسعر
   ========================================= */

/* العنوان + عدد العبوات أقرب لبعض */
#featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card .product-card__title {
  margin-bottom: 1px !important;
}

#featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card .product-card__title a {
  line-height: 1.35 !important;
}

/* عدد العبوات */
#featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card .hafeef-card-qty-badge {
  margin: 0 0 2px !important;
  color: #142c63 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
}

/* السعر - أكبر قليلًا بدون صراخ */
#featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card .product-card__price,
#featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card .price-wrapper {
  margin-top: 2px !important;
  margin-bottom: 8px !important;
}

#featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card .price_is_on_sale {
  gap: 6px !important;
}

#featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card .price_is_on_sale .total-price {
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: #e3342f !important;
}

#featured-products-style2-1 custom-salla-product-card.hafeef-bundle-card .price_is_on_sale .before-price {
  font-size: 11px !important;
  line-height: 1 !important;
  color: #9aa5b1 !important;
  opacity: 0.85 !important;
}
/* =========================================
   HOME CARDS IMAGE AREA - NATURAL HEIGHT
   تقليل ارتفاع منطقة الصورة بدون تصغير محتوى الكرت
   ========================================= */

@media (max-width: 768px) {
  body.index custom-salla-product-card.product-card--vertical .product-card__image,
  body.home custom-salla-product-card.product-card--vertical .product-card__image,
  body.s-home custom-salla-product-card.product-card--vertical .product-card__image {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    overflow: visible !important;
  }

  body.index custom-salla-product-card.product-card--vertical .product-card__image > a,
  body.home custom-salla-product-card.product-card--vertical .product-card__image > a,
  body.s-home custom-salla-product-card.product-card--vertical .product-card__image > a {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    line-height: 0 !important;
  }

  body.index custom-salla-product-card.product-card--vertical .product-card__image img.main-image,
  body.home custom-salla-product-card.product-card--vertical .product-card__image img.main-image,
  body.s-home custom-salla-product-card.product-card--vertical .product-card__image img.main-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto !important;
  }

  body.index custom-salla-product-card.product-card--vertical .product-card__content,
  body.home custom-salla-product-card.product-card--vertical .product-card__content,
  body.s-home custom-salla-product-card.product-card--vertical .product-card__content {
    margin-top: 0 !important;
    padding-top: 6px !important;
  }
}
/* =========================================
   FAQ SECTION - WHITE QUESTION BOXES
   خلفية بيضاء لصناديق الأسئلة الشائعة
   ========================================= */

.single-faq {
  background: #ffffff !important;
  border: 1px solid #d9e1ea !important;
}

/* زر السؤال نفسه */
.single-faq .faq-btn {
  background: #ffffff !important;
}

/* نص السؤال */
.single-faq .faq-btn p {
  color: #142c63 !important;
  font-weight: 700 !important;
}

/* محتوى الإجابة */
.single-faq .faq-content {
  background: #ffffff !important;
}

.single-faq .faq-content p {
  color: #5f7186 !important;
  line-height: 1.8 !important;
}

/* تحسين بسيط للجوال */
@media (max-width: 768px) {
  .single-faq {
    border-radius: 10px !important;
    padding: 11px 14px !important;
  }

  .single-faq .faq-btn p {
    font-size: 14px !important;
  }

  .single-faq .faq-content p {
    font-size: 13px !important;
  }
}

/* =========================================
   HAFEEF PAYMENT LOGOS - AFTER FEATURES FINAL
   بعد المميزات فقط - لا تظهر فوق المنتج
   ========================================= */

/* إخفاء عناصر الدفع الأصلية داخل صفحة المنتج فقط */
.product-single__info salla-installment,
.product-single__info salla-payments,
.product-single__info .s-payments-list,
.product-single__info .s-payments-list-wrap {
  display: none !important;
}

/* ترتيب المميزات */
.product-single__info .product-features--wrapper {
  order: 9 !important;
  margin: 0 0 12px !important;
}

/* تابي وتمارا بعد المميزات */
.product-single__info .hafeef-installment-box {
  order: 10 !important;
  width: 100% !important;
  margin: -2px 0 16px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  direction: rtl !important;
  display: block !important;
}

.product-single__info .hafeef-installment-options {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.product-single__info .hafeef-installment-option {
  width: 72px !important;
  height: 27px !important;
  padding: 0 8px !important;
  border: 1px solid #e7edf4 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  box-shadow: none !important;
  opacity: 0.96 !important;
}

.product-single__info .hafeef-installment-option img {
  display: block !important;
  width: auto !important;
  height: 17px !important;
  max-height: 17px !important;
  max-width: 58px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

.product-single__info .hafeef-installment-option--tamara img {
  max-width: 60px !important;
}

.product-single__info .hafeef-installment-option--tabby img {
  max-width: 52px !important;
}

/* الوصف بعد تابي وتمارا */
.product-single__info .product-single-top-description {
  order: 11 !important;
}

/* =========================================
   PRODUCT CTA BOX - STABLE HEIGHT
   تثبيت بوكس الكمية + التوفر + زر السلة
   ========================================= */

.product-single__info .sticky-product-bar {
  width: 100% !important;
  box-sizing: border-box !important;

  padding: 14px 16px !important;
  margin: 0 !important;

  background: #ffffff !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;

  overflow: visible !important;
}

/* صف الكمية */
.product-single__info .sticky-product-bar__quantity {
  min-height: 42px !important;
  height: 42px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  margin: 0 0 12px !important;
  padding: 0 !important;
}

/* حقل الكمية نفسه */
.product-single__info .sticky-product-bar__quantity salla-quantity-input,
.product-single__info .sticky-product-bar__quantity .s-quantity-input-container {
  height: 42px !important;
}

/* متوفر */
.product-single__info .hafeef-inventory-clone {
  min-height: 24px !important;
  height: 24px !important;

  margin: 0 0 12px auto !important;
  padding: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

/* زر السلة - إلغاء mt-5 من سلة */
.product-single__info .sticky-product-bar salla-add-product-button.sticky-product-bar__btn {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: block !important;
}

/* غلاف الزر */
.product-single__info .sticky-product-bar salla-add-product-button .w-full,
.product-single__info .sticky-product-bar .s-button-wrap {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* الزر نفسه */
.product-single__info .sticky-product-bar .s-button-element.s-button-primary {
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;

  margin: 0 !important;
  padding: 0 16px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 12px !important;
  background: #050b45 !important;
  color: #ffffff !important;

  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}