/* Bi'Tişört — ürün detay MOBİL düzeltmeleri v1.0 (yalnız ≤900px; masaüstü düzeni değişmez).
   Kapatma: ?pdp_mobile_legacy=1 veya storage/pdp-mobile-legacy.flag → bu dosya ve JS hiç yüklenmez. */
@media (max-width:900px){
  /* 1) Ortak yan boşluk: tüm bölümler galeri/satın alma kolonu ile aynı hizada (16px) */
  html body main.product-detail-main:not(#btm1)>section.shell,
  html body main.product-detail-main:not(#btm1)>.shell{width:calc(100% - 32px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important;min-width:0!important}
  html body main.product-detail-main:not(#btm1){overflow-x:clip}

  /* 2) Galeri üst/alt şeritleri: uzun metin kesilmesin, taşmasın */
  html body:not(#btm1) #btPdpG2C .btg-band{min-width:0;gap:8px}
  html body:not(#btm1) #btPdpG2C .btg-band.is-top .btg-pill{flex:0 1 auto;min-width:0;height:auto;min-height:30px;padding:6px 12px 6px 10px;white-space:normal;line-height:1.25;text-align:left}
  html body:not(#btm1) #btPdpG2C .btg-band.is-top .btg-view{flex:none;white-space:nowrap}
  html body:not(#btm1) #btPdpG2C .btg-band.is-bot>span{min-width:0}
  html body:not(#btm1) #btPdpG2C .btg-band.is-bot>span:first-child{flex:none;white-space:nowrap}
  html body:not(#btm1) #btPdpG2C .btg-band.is-bot>span:last-child{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}

  /* 3) "Ürün bilgisi" adım kartı: çift çerçeve/iç boşluk azaltılır, başlık ölçeği mobil tipografiye iner */
  html body main.product-detail-main:not(#btm1) .bt-refexact-v6831{padding:10px!important;gap:14px!important;border-radius:18px!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  html body main.product-detail-main:not(#btm1) .bt-refexact-card-v6831{min-width:0!important;max-width:100%!important;border-radius:16px!important}
  html body main.product-detail-main:not(#btm1) .bt-refexact-main-v6831{padding:20px 16px 18px!important;min-width:0!important}
  html body main.product-detail-main:not(#btm1) .bt-refexact-main-v6831 h2{font-size:clamp(24px,6.6vw,28px)!important;line-height:1.08!important;letter-spacing:-.03em!important;margin:10px 0 12px!important;overflow-wrap:anywhere}
  html body main.product-detail-main:not(#btm1) .bt-refexact-main-v6831>p{font-size:14.5px!important;line-height:1.55!important}
  html body main.product-detail-main:not(#btm1) .bt-refexact-steps-v6831{scroll-padding-inline:12px;padding:12px!important;gap:6px!important;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  html body main.product-detail-main:not(#btm1) .bt-refexact-steps-v6831::-webkit-scrollbar{display:none}
  html body main.product-detail-main:not(#btm1) .bt-refexact-steps-v6831>button{scroll-snap-align:start}

  /* 3a) Renk seçenekleri: eşit sütunlu ızgara; isimler kesilmeden iki satıra kadar sarar */
  html body main.product-detail-main:not(#btm1) .bt-refexact-swatches-v6836{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(66px,1fr))!important;gap:12px 6px!important}
  html body main.product-detail-main:not(#btm1) .bt-refexact-swatches-v6836[style*="--bt-m1-cols"]{grid-template-columns:repeat(var(--bt-m1-cols),minmax(0,1fr))!important;justify-items:center}
  html body main.product-detail-main:not(#btm1) .bt-refexact-swatches-v6836>span{min-width:0!important;width:100%!important}
  html body main.product-detail-main:not(#btm1) .bt-refexact-swatches-v6836 small{max-width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.2!important;font-size:11.5px!important;overflow-wrap:anywhere;hyphens:auto}
  /* 3b) Bedenler: tek satırda eşit genişlik (5 beden 360px'te de sığar); çok beden varsa düzgün sarar */
  html body main.product-detail-main:not(#btm1) .bt-refexact-sizes-v6836{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(48px,1fr))!important;gap:8px!important}
  html body main.product-detail-main:not(#btm1) .bt-refexact-sizes-v6836[style*="--bt-m1-scols"]{grid-template-columns:repeat(var(--bt-m1-scols),minmax(0,1fr))!important}
  html body main.product-detail-main:not(#btm1) .bt-refexact-sizes-v6836>span{min-width:0!important;padding:0 4px!important;height:42px!important}

  /* 4) Bölüm başlıkları: mobilde tutarlı ölçek */
  html body main.product-detail-main:not(#btm1) .bt-c3-personal-v6821 header h2{font-size:clamp(28px,8vw,32px)!important;line-height:1.02!important}
  html body main.product-detail-main:not(#btm1) .detail-related-head h2{font-size:clamp(26px,7vw,30px)!important}
  html body main.product-detail-main:not(#btm1) .detail-related-head p{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:100%!important}
  html body main.product-detail-main:not(#btm1) .detail-cta h2{font-size:clamp(24px,6.6vw,28px)!important}

  /* 5) Alt sabit bar: "yukarı çık" butonu bar açıkken barın üstüne çıkar; ürün adı/seçim tek satırda kısalır */
  html body .detail-mobile-buybar>div{min-width:0;flex:1 1 auto}
  html body .detail-mobile-buybar small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:none!important}
  html body .detail-mobile-buybar small em{font-style:normal;color:#667085}
  html body.btg-bar-on:not(#btm1) .bt-back-to-top-v6361{bottom:calc(86px + env(safe-area-inset-bottom))!important;transition:bottom .25s ease,opacity .2s ease}
}
@media (max-width:380px){
  html body main.product-detail-main:not(#btm1)>section.shell,html body main.product-detail-main:not(#btm1)>.shell{width:calc(100% - 24px)!important}
  html body main.product-detail-main:not(#btm1) .bt-refexact-swatches-v6836{grid-template-columns:repeat(auto-fill,minmax(56px,1fr))!important}
  html body:not(#btm1) #btPdpG2C .btg-band.is-bot{font-size:12px}
}
