/**
 * Yatay sayfa kayması — taşan mega menü paneli, slider -mx, rozet transform vb.
 * Taşımayı yalnızca kökte keseriz; body'ye overflow vermiyoruz (sticky header ile uyum).
 */
html.sellzy-tema-scope {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html.sellzy-tema-scope {
    overflow-x: clip;
  }
}

/**
 * Mobil / dar ekran: header & yan menü arama — taşma, liste yüksekliği, iOS focus zoom.
 * (Breakpoint: Tailwind xl = 1280px; öneri kutusu blok xl:hidden ile aynı mantıkta.)
 */
@media (max-width: 1279.98px) {
  html.sellzy-tema-scope input.header-search-input {
    font-size: 16px;
  }

  html.sellzy-tema-scope .search-input-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  html.sellzy-tema-scope .search-input-container .input-group > .form-control {
    flex: 1 1 0%;
    min-width: 0;
    width: 1%;
    /* flex satırında "min-width:auto" yüzünden oluşan yatay taşmayı keser */
  }

  html.sellzy-tema-scope .search-input-container .input-group-addon {
    flex-shrink: 0;
  }

  html.sellzy-tema-scope .search-input-container .search-result-container[data-state="open"] {
    max-height: min(72vh, 22rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 55;
    /* Üst bardaki başka araçlarla (z-50) çakışmasın diye öneriyi üstte tut */
  }
}

/**
 * Header arama öneri listesi — uzun/boşluksuz metinlerin kutudan taşmaması (flex min-width zinciri).
 */
html.sellzy-tema-scope .header-search-results-wrapper {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

html.sellzy-tema-scope .sellzy-header-search-results-list {
  min-width: 0;
  max-width: 100%;
}

html.sellzy-tema-scope a.sellzy-header-search-hit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}

html.sellzy-tema-scope .sellzy-header-search-hit-body {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}

html.sellzy-tema-scope .sellzy-header-search-hit-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-light-primary-text, #212529);

  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html.sellzy-tema-scope .sellzy-header-search-hit-prices {
  margin-top: 0.125rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.5rem;
  min-width: 0;
}

html.sellzy-tema-scope .sellzy-header-search-hit-price-current {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary, #088178);
  font-variant-numeric: tabular-nums;
}

html.sellzy-tema-scope .sellzy-header-search-hit-price-old {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-light-disabled-text, #919eab);
  text-decoration: line-through;
}

html.sellzy-tema-scope .search-result-container .btn.w-full {
  overflow-wrap: anywhere;
  word-break: break-word;
}
