/* ShopTV home/header alignment fix — 2026-10-26 */
@media (max-width: 760px) {
  /* Keep the shared dock centered and full-width; avoid RTL translate/left conflicts. */
  .shop-bottom-nav,
  .dashboard-shop-bottom-nav,
  .storefront-bottom-nav,
  .mobile-bottom-nav,
  .store-mobile-nav {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    inset-inline-start: 12px !important;
    inset-inline-end: 12px !important;
    bottom: calc(7px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    z-index: 1600 !important;
  }
  .shop-bottom-nav,
  .dashboard-shop-bottom-nav,
  .storefront-bottom-nav {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) 54px minmax(0,1fr) minmax(0,1fr) !important;
  }
  /* The closed drawer must not leave a visible strip at either edge. */
  .stv-drawer-backdrop:not(.is-open),
  .shop-nav-backdrop:not(.is-open) {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
  }
  .stv-platform-drawer { max-width: min(88vw, 380px) !important; }
}

/* Keep the Arabic slogan and the rotating ShopTV/يفتح الله word on one line. */
.market-home-hero-copy h1 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: .32em !important;
  white-space: nowrap !important;
  max-width: 100% !important;
  line-height: 1.25 !important;
  letter-spacing: -.025em !important;
  font-family: "Noto Sans Arabic", "Noto Kufi Arabic", Tahoma, Arial, sans-serif !important;
}
.market-home-slogan-line {
  display: inline-block !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  font-size: clamp(17px, 4.6vw, 35px) !important;
  line-height: 1.25 !important;
  font-weight: 850 !important;
}
.market-hero-cycle {
  display: inline-grid !important;
  flex: 0 0 auto !important;
  align-self: baseline !important;
  min-width: 0 !important;
  width: auto !important;
  white-space: nowrap !important;
  font-size: clamp(18px, 4.9vw, 37px) !important;
  line-height: 1.2 !important;
}
.market-hero-cycle-word { white-space: nowrap !important; }
@media (max-width: 380px) {
  .market-home-hero-copy h1 { gap: .22em !important; }
  .market-home-slogan-line { font-size: 16px !important; }
  .market-hero-cycle { font-size: 17px !important; }
}
