/* Baykuş Tasarla v2.9 / Faz 11
   Mobil dayanıklılık, erişilebilirlik ve render performansı için paylaşılan son katman. */
:root{--bt-p11-focus:#2563eb;--bt-p11-safe-bottom:env(safe-area-inset-bottom,0px)}
html{overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{min-width:0;max-width:100vw;overflow-x:clip}
img,svg,video,canvas{max-width:100%}
img{height:auto}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{touch-action:manipulation}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #2563eb;outline:3px solid color-mix(in srgb,var(--bt-p11-focus) 70%,transparent);outline-offset:3px}
.bt-p11-skip{position:fixed;z-index:100000;left:12px;top:12px;transform:translateY(-180%);border-radius:10px;background:#111827;padding:10px 14px;color:#fff!important;font-size:12px;font-weight:850;text-decoration:none;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.bt-p11-skip:focus{transform:translateY(0)}
.bt-p11-offline{position:fixed;z-index:99999;left:50%;top:max(10px,env(safe-area-inset-top,0px));transform:translate(-50%,-180%);display:flex;align-items:center;gap:8px;max-width:min(92vw,560px);border:1px solid #f4c790;border-radius:999px;background:#fff7ed;padding:9px 14px;color:#9a3412;font-size:11px;font-weight:800;box-shadow:0 12px 30px rgba(16,24,40,.12);transition:transform .2s ease}
.bt-p11-offline.is-visible{transform:translate(-50%,0)}
.bt-p11-image-failed{position:relative;background:#f8fafc!important}
.bt-p11-image-failed::after{content:"Önizleme yüklenemedi";position:absolute;inset:auto 8px 8px;display:block;border-radius:8px;background:rgba(255,255,255,.92);padding:6px 8px;color:#64748b;font-size:9px;font-weight:800;text-align:center;pointer-events:none}
.bt-p11-submitting{cursor:wait!important;opacity:.72!important}

/* İlk ekran dışındaki ağır bloklarda tarayıcıya çizim erteleme fırsatı ver. */
@supports(content-visibility:auto){
  .store-section-stack>section:nth-child(n+3),
  .detail-features,.detail-specs,.detail-bulk-pricing,.detail-faq,.detail-related,.detail-cta,
  .bt-account-privacy,.bt-order-history{content-visibility:auto;contain-intrinsic-size:1px 720px}
}

/* Checkout / sepet */
@media(max-width:980px){
  .bt-cart-layout,.bt-checkout-form-layout,.bt-payment-layout{grid-template-columns:1fr!important}
  .bt-order-summary,.bt-checkout-summary{position:static!important;top:auto!important}
  .bt-checkout-heading{align-items:flex-start!important;flex-direction:column!important;gap:18px!important}
  .bt-checkout-progress{align-self:flex-start}
  .bt-checkout-shell,.bt-payment-shell{padding-top:24px!important;padding-bottom:calc(48px + var(--bt-p11-safe-bottom))!important}
}
@media(max-width:760px){
  .bt-checkout-page .site-header .nav{gap:10px!important;min-width:0}
  .bt-checkout-page .nav-links{display:none!important}
  .bt-header-cart{margin-left:auto;min-height:44px}
  .bt-cart-card{grid-template-columns:1fr!important;gap:14px!important;padding:14px!important;border-radius:16px!important}
  .bt-cart-preview-pair{max-width:420px;width:100%;margin:0 auto}
  .bt-cart-product-top{gap:10px!important}
  .bt-cart-product-top h2{font-size:17px!important}
  .bt-cart-meta{grid-template-columns:1fr 1fr!important}
  .bt-cart-meta>span:nth-child(2){grid-column:1/-1;grid-row:2}
  .bt-cart-actions{align-items:stretch!important;flex-wrap:wrap!important}
  .bt-cart-actions .edit,.bt-cart-actions button{min-height:44px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:10px 13px!important}
  .bt-order-summary{padding:17px!important;border-radius:16px!important}
  .bt-checkout-primary,.bt-form-submit{min-height:50px!important;font-size:12px!important}
  .bt-field-grid{grid-template-columns:1fr!important}
  .bt-field-grid .wide{grid-column:auto!important}
  .bt-field-grid input,.bt-field-grid textarea,.bt-wide-label textarea{font-size:16px!important}
  .bt-invoice-choice{display:grid!important;grid-template-columns:1fr 1fr!important}
  .bt-invoice-choice span{min-height:44px;align-items:center;justify-content:center}
  .bt-terms{font-size:11px!important;line-height:1.55!important}
  .bt-terms input{flex:0 0 auto;width:19px;height:19px}
  .bt-cart-empty{margin:40px auto 70px!important;padding:0 8px}
  .bt-cart-empty>div:last-child{align-items:stretch;flex-direction:column}.bt-cart-empty a{min-height:44px;display:grid;place-items:center}
}
@media(max-width:480px){
  .bt-cart-preview-pair{grid-template-columns:1fr 1fr!important;gap:6px!important}
  .bt-cart-meta{grid-template-columns:1fr!important}.bt-cart-meta>span:nth-child(2){grid-column:auto;grid-row:auto}
  .bt-checkout-progress>b{width:34px!important;height:34px!important}.bt-checkout-progress>i{width:18px!important}.bt-checkout-progress>b small{display:none!important}
  .bt-checkout-heading h1{font-size:30px!important}
  .bt-payment-card{padding:16px!important}
}

/* Ürün detayı */
@media(max-width:760px){
  .product-detail-main{padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
  .detail-main-image{min-height:0!important}
  .detail-main-image img{max-height:62vh;object-fit:contain}
  .detail-thumbs{display:flex!important;overflow-x:auto!important;scroll-snap-type:x proximity;padding-bottom:5px}.detail-thumb{flex:0 0 70px;scroll-snap-align:start}
  .detail-color-options,.detail-size-options{gap:8px!important}
  .detail-color-option,.detail-size-option{min-width:44px!important;min-height:44px!important}
  .detail-mobile-buybar{padding-bottom:calc(9px + var(--bt-p11-safe-bottom))!important}
  .detail-bulk-table-wrap{-webkit-overflow-scrolling:touch;scrollbar-width:thin}
}

/* Müşteri alanı */
@media(max-width:760px){
  .bt-customer-page .site-header .nav{min-width:0;gap:9px!important}.bt-customer-nav-action{margin-left:auto;min-height:44px;padding:10px 12px!important}
  .bt-customer-shell{padding-bottom:calc(52px + var(--bt-p11-safe-bottom))!important}
  .bt-customer-heading>a{min-height:44px;display:inline-flex;align-items:center}
  .bt-customer-tabs{padding-bottom:4px;scrollbar-width:thin}.bt-customer-tabs a{min-height:44px;white-space:nowrap}
  .bt-account-toolbar input,.bt-track-card input{font-size:16px!important}
  .bt-track-card button{min-height:48px}
  .bt-order-row{grid-template-columns:68px minmax(0,1fr)!important;gap:10px!important}
  .bt-order-row-media{width:68px!important;height:80px!important}
  .bt-order-row-main,.bt-order-item-copy{min-width:0}
  .bt-order-row-top h2,.bt-order-item-copy h3{overflow-wrap:anywhere}
  .bt-order-item{grid-template-columns:96px minmax(0,1fr)!important;gap:10px!important}.bt-order-item>strong{grid-column:2!important}
  .bt-design-previews img,.bt-order-item-previews img{min-height:0!important}
  .bt-customer-footer{padding-bottom:calc(24px + var(--bt-p11-safe-bottom));gap:12px;flex-wrap:wrap}
}
@media(max-width:430px){
  .bt-account-summary{grid-template-columns:1fr!important}.bt-account-summary article{min-height:auto!important}
  .bt-order-row{grid-template-columns:1fr!important}.bt-order-row-media{width:100%!important;height:170px!important}.bt-order-row-total{grid-column:1!important}
  .bt-order-item{grid-template-columns:1fr!important}.bt-order-item-previews{max-width:260px}.bt-order-item>strong{grid-column:1!important}.bt-order-item-actions{grid-template-columns:1fr!important}
}

/* Yasal / kurumsal sayfalar */
@media(max-width:760px){
  .bt-legal-public-head .shell{gap:12px;min-width:0}.bt-legal-public-head nav{display:flex;overflow-x:auto;gap:6px;scrollbar-width:none}.bt-legal-public-head nav::-webkit-scrollbar{display:none}.bt-legal-public-head nav a{white-space:nowrap;min-height:40px;display:inline-flex;align-items:center}
  .bt-legal-public-shell{padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
  .bt-legal-document{border-radius:15px!important}.bt-legal-document>header{padding:18px!important}.bt-legal-document-body{padding:18px!important}.bt-legal-document-body p{overflow-wrap:anywhere}
  .bt-legal-document-links{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:6px}.bt-legal-document-links a{white-space:nowrap;min-height:42px;display:inline-flex;align-items:center}
  .bt-contact-rows>div{grid-template-columns:1fr!important}.bt-contact-card{padding:17px!important}
  .bt-legal-public-footer .shell{gap:10px;flex-wrap:wrap;padding-bottom:calc(22px + var(--bt-p11-safe-bottom))}
}

/* Genel mobil kalite */
@media(max-width:760px){
  .shell{max-width:100%!important;min-width:0!important}
  button,.primary,.secondary,.nav-cta{min-height:44px}
  input,select,textarea{max-width:100%}
  table{max-width:100%}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}.bt-p11-offline,*{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
@media print{
  .bt-p11-skip,.bt-p11-offline,.detail-mobile-buybar{display:none!important}
  body{overflow:visible!important}
}
