/* PWA yükle bildirimi + mobil taşma düzeltmeleri */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body.loaded > .loading-overlay {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#bexPwaBanner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 100050;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #ebebeb;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
  transform: translateY(120%);
  transition: transform .28s ease, opacity .28s ease;
  opacity: 0;
}

#bexPwaBanner.is-show {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.bex-pwa-logo {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff7f0;
  border: 1px solid #f3e7db;
}

.bex-pwa-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.bex-pwa-copy strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #191919;
  line-height: 1.25;
}

.bex-pwa-copy span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
}

.bex-pwa-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

#bexPwaInstall {
  border: 0;
  border-radius: 999px;
  background: #f27a1a;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
}

#bexPwaClose {
  border: 0;
  background: #f5f5f5;
  color: #6b7280;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 32px;
  cursor: pointer;
}

#bexPwaIosTip {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(150px + env(safe-area-inset-bottom));
  z-index: 100051;
  padding: 12px 14px;
  border-radius: 12px;
  background: #191919;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

#bexPwaIosTip.is-show {
  display: block;
}

#bexPwaIosTip b {
  color: #f27a1a;
}

@media (min-width: 992px) {
  #bexPwaBanner,
  #bexPwaIosTip {
    display: none !important;
  }
}

/* Mobil layout kaymaları */
@media (max-width: 991px) {
  .bex-hero-corner {
    width: 72px !important;
    height: 88px !important;
    opacity: .9;
  }

  .bex-home-slider,
  .bex-home-slider .owl-stage-outer,
  .home-intro-banner {
    overflow: hidden !important;
    max-width: 100vw !important;
  }

  .bex-home-slider .intro-slider img,
  .home-intro-banner .intro-slider img {
    object-fit: cover !important;
  }

  .bex-look {
    padding: 0 12px !important;
    margin-top: 14px !important;
  }

  .bex-look-grid {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .bex-look-grid::-webkit-scrollbar {
    display: none;
  }

  .bex-look-item {
    flex: 0 0 78%;
    max-width: 78%;
    scroll-snap-align: start;
    border-radius: 14px;
  }

  .bex-look-item img {
    height: 48vw !important;
    min-height: 180px !important;
    max-height: 240px !important;
    border-radius: 14px;
  }

  .bex-promo,
  .bex-picks,
  .bex-quad {
    padding: 0 12px !important;
    margin-top: 22px !important;
  }

  .bex-promo-card {
    border-radius: 16px;
    overflow: hidden;
  }

  .bex-shop .bex-grid,
  .bex-picks .bex-grid {
    gap: 10px !important;
  }

  .bex-shop .bex-card,
  .bex-picks .bex-card {
    min-width: 0 !important;
  }

  .page-wrapper,
  .main,
  .container {
    max-width: 100% !important;
    overflow-x: hidden;
  }
}
