/* تحسين تجربة المتجر على الجوال: عمود واحد ومنع الحركة الأفقية */
.s-block--bundle-html-content:has(#barakat-mobile-ux-fix) {
  display: none !important;
}

@media (max-width: 640px) {
  html,
  body,
  #app,
  .app-inner,
  #main-content {
    width: 100%;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-x: clip !important;
    overscroll-behavior-x: none;
  }

  #main-content > *,
  #main-content .container {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .s-products-list-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .s-products-list-wrapper > custom-salla-product-card,
  custom-salla-product-card.s-product-card-entry {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .s-product-card-content {
    padding: 16px !important;
  }

  .s-product-card-content-title a {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  .s-product-card-content-footer,
  .s-product-card-content-footer salla-add-product-button {
    display: block !important;
    width: 100% !important;
  }

  .s-product-card-content-footer .s-button-element,
  .product-form [data-testid="store-product-add-to-cart"],
  .product-form .s-add-product-button-main .s-button-element {
    min-height: 48px !important;
    width: 100% !important;
  }

  .product-form .s-quantity-input-button,
  .product-form .s-quantity-input-input {
    min-width: 44px !important;
    height: 44px !important;
  }

  [data-testid="store-home-fixed-products"] {
    padding-inline: 12px !important;
  }

  .ba-support-float,
  .ba-support-panel {
    max-width: calc(100vw - 20px) !important;
  }
}


/* شريط تنبيهات بركات السباكة - عام في جميع الصفحات */
.ba-topnotice {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9999998;
  height: 44px;
  overflow: hidden;
  background: linear-gradient(90deg, #0b3558, #0781ae 52%, #0b3558);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 18px rgba(16, 42, 67, .22);
  transform: translateY(0);
  opacity: 1;
  transition: transform .34s cubic-bezier(.4, 0, .2, 1), opacity .24s;
}
.ba-topnotice-hidden {
  transform: translateY(-115%);
  opacity: 0;
  pointer-events: none;
}
.ba-topnotice-track {
  position: absolute;
  left: 0;
  top: 0;
  height: 44px;
  display: flex;
  width: max-content;
  white-space: nowrap;
  direction: ltr;
  animation: baTickerRight 52s linear infinite;
  will-change: transform;
}
.ba-topnotice-copy {
  height: 44px;
  min-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
  padding: 0 28px;
  direction: rtl;
}
.ba-topnotice-copy span {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}
.ba-topnotice-copy i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .15);
}
@keyframes baTickerRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
body {
  padding-top: 44px !important;
}
#mainnav.fixed-header .inner {
  top: 44px !important;
  transition: top .34s cubic-bezier(.4, 0, .2, 1), transform .5s, opacity .4s;
}
body.ba-notice-collapsed #mainnav.fixed-header .inner {
  top: 0 !important;
}

@media (max-width: 767px) {
  .ba-topnotice,
  .ba-topnotice-track,
  .ba-topnotice-copy {
    height: 50px;
  }
  .ba-topnotice {
    font-size: 11px;
  }
  .ba-topnotice-copy {
    gap: 20px;
    padding: 0 20px;
  }
  body {
    padding-top: 50px !important;
  }
  #mainnav.fixed-header .inner {
    top: 50px !important;
  }
  body.ba-notice-collapsed #mainnav.fixed-header .inner {
    top: 0 !important;
  }
}




/* شريط تنبيهات بركات السباكة - عام في جميع الصفحات */
.ba-topnotice {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9999998;
  height: 44px;
  overflow: hidden;
  background: linear-gradient(90deg, #0b3558, #0781ae 52%, #0b3558);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 18px rgba(16, 42, 67, .22);
  transform: translateY(0);
  opacity: 1;
  transition: transform .34s cubic-bezier(.4, 0, .2, 1), opacity .24s;
}
.ba-topnotice-hidden {
  transform: translateY(-115%);
  opacity: 0;
  pointer-events: none;
}
.ba-topnotice-track {
  position: absolute;
  left: 0;
  top: 0;
  height: 44px;
  display: flex;
  width: max-content;
  white-space: nowrap;
  direction: ltr;
  animation: baTickerRight 52s linear infinite;
  will-change: transform;
}
.ba-topnotice-copy {
  height: 44px;
  min-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
  padding: 0 28px;
  direction: rtl;
}
.ba-topnotice-copy span {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}
.ba-topnotice-copy i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .15);
}
@keyframes baTickerRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
body {
  padding-top: 44px !important;
}
#mainnav.fixed-header .inner {
  top: 44px !important;
  transition: top .34s cubic-bezier(.4, 0, .2, 1), transform .5s, opacity .4s;
}
body.ba-notice-collapsed #mainnav.fixed-header .inner {
  top: 0 !important;
}

@media (max-width: 767px) {
  .ba-topnotice,
  .ba-topnotice-track,
  .ba-topnotice-copy {
    height: 50px;
  }
  .ba-topnotice {
    font-size: 11px;
  }
  .ba-topnotice-copy {
    gap: 20px;
    padding: 0 20px;
  }
  body {
    padding-top: 50px !important;
  }
  #mainnav.fixed-header .inner {
    top: 50px !important;
  }
  body.ba-notice-collapsed #mainnav.fixed-header .inner {
    top: 0 !important;
  }
}



/* إزالة الفراغ الزائد بين شريط التنبيهات والهيدر */
@media (max-width: 767px) {
  .app-inner {
    padding-top: 0 !important;
  }
}




/* إزالة الفراغ الزائد بين شريط التنبيهات والهيدر */
@media (max-width: 767px) {
  .app-inner {
    padding-top: 0 !important;
  }
}