/* ASYA mobile compatibility hardening - added by ChatGPT */
html{box-sizing:border-box;-webkit-text-size-adjust:100%;}*,*:before,*:after{box-sizing:inherit;}body{max-width:100%;overflow-x:hidden;}img,svg,video,canvas{max-width:100%;height:auto;}iframe{max-width:100%;}input,select,textarea,button{font-size:16px;}table{max-width:100%;}.table-wrap,.tableWrap,.responsive-table,.cart-table-wrap,.dealerTableWrap,.dealerResponsiveTable{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
@media(max-width:768px){
  .container,.wrap,.section-container,.page-container,.products-container,.home-container{width:calc(100% - 24px)!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;}
  .topbar{min-width:0!important;padding-left:12px!important;padding-right:12px!important;gap:10px!important;}
  .brand{min-width:0!important;max-width:58vw!important;}.brand-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.header-right{gap:8px!important;min-width:0!important;}
  .header-search-form{max-width:100%!important;}.header-login-label,.asya-cart-text{display:none!important;}.mobile-menu{max-height:calc(100vh - 70px);overflow:auto;}
  .hero,.hero-section,.page-hero,.home-hero,.home-pro-slide,.about-hero,.contact-hero,.offer-hero{grid-template-columns:1fr!important;display:block!important;padding-left:18px!important;padding-right:18px!important;}
  h1{font-size:clamp(26px,8vw,38px)!important;line-height:1.08!important;}h2{font-size:clamp(22px,6.5vw,32px)!important;line-height:1.15!important;}
  .grid,.grid2,.grid3,.cards,.features,.products-grid,.product-grid,.set-grid,.projects-grid,.service-grid,.category-grid,.contact-grid,.offer-grid,.checkout-grid,.cart-layout{grid-template-columns:1fr!important;}
  .product-card,.service-card,.project-card,.card,.panel{min-width:0!important;}
  .actions,.buttons,.btn-row,.form-actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important;}.actions .btn,.buttons .btn,.btn-row .btn,.form-actions .btn{flex:1 1 160px;justify-content:center;}
  table{display:block!important;width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;}th,td{white-space:nowrap;}
}
@media(max-width:520px){
  .container,.wrap,.section-container,.page-container,.products-container,.home-container{width:calc(100% - 20px)!important;}
  .brand-logo-img{max-width:145px!important;height:auto!important;}.brand{max-width:52vw!important;}.topbar{padding-top:8px!important;padding-bottom:8px!important;}
  .btn,button,input[type=submit],input[type=button]{min-height:44px;}.card,.panel,.product-card,.service-card,.project-card{border-radius:16px!important;}
}

/* ChatGPT mobile final audit fixes */
@media (max-width: 768px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important;}
  .layout,.productShell,.products-layout,.product-list-layout,.shop-layout,.catalog-layout,.urunler-layout,.products-page-layout,.bl-main-grid,.bl-search-row,.bl-slider-card{display:grid!important;grid-template-columns:1fr!important;gap:16px!important;}
  .sidebar,.filter-sidebar,.filters-sidebar,.sidebar-filter,.product-filters,.catalog-filters,.filters-panel,.filter-panel,.shop-sidebar,.urun-filtre,.urunler-filter{position:static!important;width:100%!important;max-width:100%!important;top:auto!important;}
  .gallery,.detailCard,.buyBox,.section{width:100%!important;max-width:100%!important;min-width:0!important;}
  .buyBox{padding:16px!important;border-radius:20px!important;}
  .buyRight{align-items:stretch!important;width:100%!important;}
  .buyRight .priceBlock{text-align:left!important;align-self:stretch!important;}
  .qtyLine{justify-content:flex-start!important;width:100%!important;gap:8px!important;}
  .qtyLabel{font-size:14px!important;}
  .buyBox .qtyLine .qtyControl,.buyRight .qtyControl{width:150px!important;min-width:150px!important;max-width:150px!important;flex:0 0 150px!important;grid-template-columns:38px 1fr 38px!important;}
  .buyActions{grid-template-columns:1fr!important;width:100%!important;gap:10px!important;}
  .buyActions .btn{width:100%!important;min-height:46px!important;}
  .infoGrid,.techSummaryGrid,.relatedGrid{grid-template-columns:1fr!important;}
  .specTableWrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;}
  .specTable th,.specTable td{white-space:normal!important;min-width:120px!important;}
  .bl-container{width:calc(100% - 24px)!important;}
  .bl-top-inner,.bl-actions,.bl-nav-inner{flex-wrap:wrap!important;height:auto!important;min-height:0!important;}
  .bl-logo{min-width:0!important;}.bl-logo img{max-width:170px!important;height:auto!important;top:0!important;}
  .bl-search-row{height:auto!important;}.bl-category-trigger,.bl-search,.bl-action{height:46px!important;}
  .bl-nav-band{height:auto!important;}.bl-nav-inner{gap:12px!important;padding:10px 0!important;}
  .bl-all-cat{height:46px!important;min-width:0!important;width:100%!important;}
}
@media (max-width: 480px){
  .wrap{padding:12px 10px!important;}
  .buyBox .qtyLine .qtyControl,.buyRight .qtyControl{width:138px!important;min-width:138px!important;max-width:138px!important;grid-template-columns:36px 1fr 36px!important;}
  .price{font-size:24px!important;}
  .priceLabel,.vat{font-size:11px!important;}
  .btn{font-size:13px!important;padding:10px 12px!important;}
}

/* ASYA v7 - mobile card tables and sticky actions */
@media(max-width:760px){
  .tableWrap,.table-wrap,.dealerTableWrap,.cart-table-wrap{overflow:visible!important;border:0!important;background:transparent!important;}
  table.asya-mobile-card-table{display:block!important;min-width:0!important;width:100%!important;border:0!important;background:transparent!important;overflow:visible!important;}
  table.asya-mobile-card-table thead{display:none!important;}
  table.asya-mobile-card-table tbody{display:grid!important;gap:12px!important;width:100%!important;}
  table.asya-mobile-card-table tr{display:block!important;width:100%!important;background:#fff!important;border:1px solid #e5e7eb!important;border-radius:18px!important;padding:12px!important;box-shadow:0 12px 34px rgba(15,23,42,.06)!important;}
  table.asya-mobile-card-table td{display:grid!important;grid-template-columns:minmax(92px,36%) 1fr!important;gap:10px!important;align-items:start!important;border:0!important;border-bottom:1px solid #eef2f7!important;padding:9px 2px!important;white-space:normal!important;text-align:right!important;word-break:break-word!important;}
  table.asya-mobile-card-table td:last-child{border-bottom:0!important;}
  table.asya-mobile-card-table td:before{content:attr(data-label);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#64748b;text-align:left!important;}
  table.asya-mobile-card-table td[colspan]:before{display:none!important;}
  table.asya-mobile-card-table td[colspan]{display:block!important;text-align:center!important;}
  table.asya-mobile-card-table .btn, table.asya-mobile-card-table button{min-height:42px!important;}
  table.asya-mobile-card-table .actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;}
  table.asya-mobile-card-table .actions .btn, table.asya-mobile-card-table .actions form, table.asya-mobile-card-table .actions button{width:100%!important;justify-content:center!important;}
  .filter,.filters,.toolbar,.product-toolbar,.searchbar{position:relative!important;display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
  .filter input,.filter select,.filter button,.filter .btn{width:100%!important;min-height:44px!important;}
  .mobile-sticky-actions,.quoteActionsSticky{position:sticky!important;bottom:0!important;z-index:60!important;margin:14px -12px -12px!important;padding:10px 12px!important;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(12px)!important;border-top:1px solid #e5e7eb!important;box-shadow:0 -14px 34px rgba(15,23,42,.08)!important;}
  .mobile-sticky-actions .btn,.quoteActionsSticky .btn{width:100%!important;justify-content:center!important;}
  .productGrid,.product-grid,.products-grid{grid-template-columns:1fr!important;gap:14px!important;}
  .productCard,.product-card{border-radius:18px!important;}
}

/* Account/login mobile refinement */
@media (max-width: 768px){
  .component-header-wrap .header-login-dropdown,
  .header-login-dropdown{
    width:min(320px, calc(100vw - 20px));
    max-height:calc(100dvh - 76px);
    overflow:auto;
    border-radius:14px;
    padding:12px;
  }
  .component-header-wrap .login-card-title,
  .header-login-dropdown .login-card-title{font-size:14px;margin-bottom:9px;}
  .component-header-wrap .login-card-form label,
  .header-login-dropdown .login-card-form label{font-size:11.5px;margin-bottom:7px;}
  .component-header-wrap .login-card-form input,
  .header-login-dropdown .login-card-form input{height:36px;border-radius:9px;font-size:12px;}
  .component-header-wrap .login-card-submit,
  .header-login-dropdown .login-card-submit{height:37px;border-radius:9px;font-size:12px;}
  .component-header-wrap .login-card-footer,
  .header-login-dropdown .login-card-footer{margin-top:9px;font-size:11.5px;gap:4px;}
  .component-header-wrap .login-card-link,
  .component-header-wrap .login-card-logout,
  .header-login-dropdown .login-card-link,
  .header-login-dropdown .login-card-logout{padding:9px 10px;border-radius:9px;font-size:12px;}
}

/* Bayi paneli mobil düzen - kompakt ve tablo kart görünümü */
@media (max-width: 900px){
  .dealerGlobalHeader{position:sticky;top:0;z-index:1000;box-shadow:0 8px 26px rgba(15,23,42,.08);}
  .dealerGlobalHeader .dealerContainer{width:calc(100% - 18px)!important;}
  .dealerGlobalTop{display:none!important;}
  .dealerGlobalMain .dealerContainer{display:grid!important;grid-template-columns:auto 1fr auto!important;gap:8px!important;align-items:center!important;padding:8px 0!important;min-height:58px!important;}
  .dealerGlobalLogo{justify-content:flex-start!important;height:42px!important;min-width:0!important;}
  .dealerGlobalLogo img{width:auto!important;max-width:128px!important;max-height:40px!important;object-fit:contain!important;}
  .dealerGlobalSearch{grid-column:1 / -1!important;order:5!important;height:38px!important;border-radius:10px!important;margin:2px 0 0!important;}
  .dealerGlobalSearch input{height:38px!important;padding:0 12px!important;font-size:13px!important;}
  .dealerGlobalSearch button{height:38px!important;width:44px!important;flex:0 0 44px!important;font-size:16px!important;}
  .dealerGlobalIcons{justify-content:flex-end!important;gap:6px!important;}
  .dealerGlobalIcon{width:40px!important;height:40px!important;border-radius:10px!important;font-size:16px!important;}
  .dealerGlobalIcon .dot{min-width:17px!important;height:17px!important;font-size:10px!important;right:-5px!important;top:-5px!important;}
  .dealerMobileQuick{display:block!important;margin:0!important;width:auto!important;text-align:right!important;}
  .dealerMobileNavToggle{display:inline-flex!important;width:auto!important;height:40px!important;margin:0!important;padding:0 12px!important;border-radius:10px!important;font-size:13px!important;}
  .dealerGlobalNav{position:absolute!important;left:9px!important;right:9px!important;top:calc(100% - 1px)!important;display:block!important;visibility:hidden!important;opacity:0!important;transform:translateY(-8px)!important;pointer-events:none!important;border:1px solid #e5e7eb!important;border-radius:16px!important;background:#fff!important;box-shadow:0 18px 45px rgba(15,23,42,.16)!important;overflow:hidden!important;transition:opacity .18s ease,transform .18s ease,visibility .18s ease!important;}
  .dealerGlobalHeader.nav-open .dealerGlobalNav{visibility:visible!important;opacity:1!important;transform:translateY(0)!important;pointer-events:auto!important;}
  .dealerGlobalNav .dealerContainer{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;padding:10px!important;height:auto!important;max-height:calc(100dvh - 128px)!important;overflow:auto!important;}
  .dealerGlobalNavLink{height:38px!important;border:0!important;border-radius:10px!important;justify-content:center!important;background:#f8fafc!important;font-size:12px!important;padding:0 8px!important;white-space:normal!important;text-align:center!important;line-height:1.15!important;}
  .dealerGlobalNavLink.active{background:#fff1f1!important;color:#dc2626!important;}
  .dealerGlobalLogout{grid-column:1 / -1!important;background:#111827!important;color:#fff!important;}
}
@media (max-width: 760px){
  body:has(.dealerGlobalHeader.nav-open){overflow:hidden;}
  .bayi-home-dashboard,.dealer-shell,.layout,.quotePage,.quoteBuilder,.quote-layout,.quoteGrid,.portal-grid,.cols,.panelRows,.contactGrid,.contentGrid{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;width:calc(100% - 20px)!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;}
  .dealer-content,.main,.panel,.card,.notice,.pageHero,.hero,.heroWrap,.quickCard,.productCard,.quote-preview,.dealer-sidebar,.sidebar{min-width:0!important;max-width:100%!important;}
  .pageHero,.hero,.panel,.card,.notice{border-radius:14px!important;padding:14px!important;}
  .pageHero h1,.hero h1,.panel h1{font-size:22px!important;line-height:1.12!important;margin-bottom:8px!important;}
  .pageHero p,.hero p,.muted{font-size:13px!important;line-height:1.45!important;}
  .dealerStrip,.quick,.cards,.stats,.productGrid,.bl-product-grid,.bl-category-cards,.favoritesGrid,.orderStats{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
  .productCard,.quickCard,.statCard{padding:12px!important;border-radius:14px!important;}
  .productImg,.productImage,.pimg{height:138px!important;border-radius:12px!important;}
  .productCard h3,.productCard .pname{font-size:14px!important;line-height:1.25!important;min-height:0!important;}
  .productCard .price,.price{font-size:18px!important;line-height:1.15!important;}
  .toolbar,.filterBar,.filters,.searchRow,.formGrid,.row,.fieldRow{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;align-items:stretch!important;}
  .field,input,select,textarea,.toolbar input,.toolbar select,.toolbar .btn{width:100%!important;min-width:0!important;}
  input,select,textarea{min-height:40px!important;border-radius:10px!important;font-size:14px!important;}
  textarea{min-height:92px!important;}
  .btn,button[type="submit"],a.btn{min-height:40px!important;border-radius:10px!important;font-size:13px!important;padding:9px 12px!important;width:100%;justify-content:center;}
  .actions,.form-actions,.panelActions,.cartActions,.quoteActions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;}
  .heroSlider{min-height:300px!important;border-radius:16px!important;overflow:hidden!important;}
  .heroSlide{padding:22px 16px!important;background-position:center!important;}
  .brandMark{font-size:28px!important;letter-spacing:.02em!important;}
  .heroSlide h1{font-size:21px!important;line-height:1.12!important;max-width:100%!important;}
  .heroBullets{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;font-size:12px!important;}
  .heroCta{min-height:40px!important;border-radius:10px!important;font-size:13px!important;padding:10px 12px!important;}
  .dealerCampaignSlide{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;padding:14px!important;border-radius:14px!important;}
  .dealerCampaignMedia{min-height:120px!important;}
  .dealerCampaignBody h3{font-size:18px!important;}
  .sideparent,.sidechild{min-height:40px!important;border-radius:10px!important;font-size:13px!important;}
  .sidechildren{margin-left:12px!important;}
  .tableWrap,.dealerTableWrap,.dealerResponsiveTable{overflow:visible!important;background:transparent!important;border:0!important;}
  table.asya-mobile-card-table tr{border-radius:14px!important;padding:10px!important;box-shadow:0 8px 22px rgba(15,23,42,.06)!important;}
  table.asya-mobile-card-table td{grid-template-columns:minmax(76px,34%) 1fr!important;gap:8px!important;padding:7px 0!important;font-size:12.5px!important;}
  table.asya-mobile-card-table td:before{font-size:10px!important;letter-spacing:.03em!important;}
  table.asya-mobile-card-table .btn, table.asya-mobile-card-table button{min-height:36px!important;font-size:12px!important;padding:8px 10px!important;}
  .cartSummary,.summaryBox,.quoteSummary,.orderSummary{position:static!important;width:100%!important;border-radius:14px!important;padding:12px!important;}
  .mobile-sticky-actions,.quoteActionsSticky{margin:12px -10px -10px!important;padding:9px 10px!important;}
}
@media (max-width: 420px){
  .dealerGlobalLogo img{max-width:108px!important;}
  .dealerMobileNavToggle{padding:0 10px!important;font-size:12px!important;}
  .dealerGlobalIcon{width:38px!important;height:38px!important;}
  .dealerGlobalNav .dealerContainer{grid-template-columns:1fr!important;max-height:calc(100dvh - 122px)!important;}
  .dealerGlobalSearch input{font-size:12.5px!important;}
  .productImg,.productImage,.pimg{height:125px!important;}
}
