/* QRAVM ortak UX iyileştirmeleri: okunaklı yazı, mobil erişim ve taşmayan kategoriler. */
.qmarket-body{font-size:16px}
.qmarket-body :is(a,button,input,select,textarea):focus-visible{outline:3px solid rgba(243,19,62,.32);outline-offset:2px}
.qmarket-body :is(button,input,select,textarea){font-size:max(16px,1em)}
.qlegend-login,.qlegend-member{min-height:42px;font-size:14px}
.qlegend-category-track{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:visible!important;overscroll-behavior-inline:contain;scroll-snap-type:x proximity}
.qlegend-cat,.qlegend-other-wrap{flex:0 0 92px;min-width:92px;scroll-snap-align:start}
.qlegend-cat b{max-width:88px;font-size:12px;line-height:1.15;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qlegend-cat-other{width:92px;min-width:92px}
.qlegend-filter-chips>button,.qlegend-filter-chips>.qquick-dd>button{min-height:44px;font-size:14px}
.qlegend-rest-body p,.qlegend-rating,.qlegend-distance{font-size:13px;line-height:1.45}
.qlegend-offer,.qlegend-menu-btn{font-size:13px}.qlegend-menu-btn{min-height:42px}
.qlegend-section-head a{font-size:14px}
.qlegend-filter-chips{margin-bottom:16px!important;min-height:60px;position:relative}
.qlegend-restaurants{clear:both;position:relative}

@media (min-width:1180px){
  .qlegend-category-track{display:grid;grid-template-columns:repeat(auto-fit,minmax(84px,1fr));overflow:visible!important}
  .qlegend-cat,.qlegend-other-wrap{width:auto;min-width:0}
  .qlegend-cat-other{width:100%;min-width:0}
}
@media (max-width:1179px) and (min-width:621px){
  .qlegend-other-menu{position:fixed;top:150px;right:20px;left:auto}
}
@media (max-width:850px){
  .qlegend-restaurants .qlegend-filter-panel{display:none!important}
  .qlegend-discovery-layout{display:block!important}
  .qlegend-nav-inner{height:auto;min-height:68px;grid-template-columns:auto 1fr!important;padding:8px 0}
  .qlegend-actions{gap:6px;min-width:0}
  .qlegend-login,.qlegend-member{display:inline-flex!important;min-height:42px;height:42px;padding:0 12px;white-space:nowrap}
  .qlegend-cart{display:none}
  .qlegend-category-track{height:88px;padding-inline:6px}
}
@media (max-width:560px){
  .qlegend-nav-inner{width:calc(100% - 20px);min-height:116px;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:48px 48px;gap:4px;padding:8px 0}
  .qlegend-brand{grid-column:1;grid-row:1;justify-self:center;margin:0!important}
  .qlegend-brand img{width:96px!important;height:auto!important}
  .qlegend-actions{grid-column:1;grid-row:2;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;justify-self:stretch;overflow:hidden}
  .qlegend-actions>.qlegend-login,.qlegend-actions>.qlegend-member,.qlegend-actions>.qlegend-inline-form{width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important}
  .qlegend-actions>.qlegend-inline-form .qlegend-member{width:100%}
  .qlegend-login,.qlegend-member{min-height:42px;height:42px;padding:0 9px;font-size:14px}
  .qlegend-rest-grid{grid-template-columns:1fr!important;gap:14px}
  .qlegend-rest-photo{height:190px}
  .qlegend-rest-body{padding:14px}
  .qlegend-rest-body h3{font-size:17px}
  .qlegend-rest-card:nth-child(5){display:block}
  .qlegend-hero-copy{min-width:0;width:100%}
  .qmarket-body form.qlegend-hero-search{display:flex!important;flex-flow:row nowrap!important;width:100%!important;max-width:100%!important;height:54px!important;min-height:54px!important;align-items:center!important;gap:0!important;padding:5px 5px 5px 11px!important;overflow:visible}
  .qmarket-body form.qlegend-hero-search>span:not(.qlegend-typewriter-overlay){display:flex!important;flex:0 0 30px!important;width:30px!important;height:44px!important;align-items:center;font-size:22px}
  .qmarket-body form.qlegend-hero-search>input[name="q"]{display:block;flex:1 1 auto!important;min-width:0!important;width:0!important;height:44px!important;min-height:44px!important;padding:0 8px!important;margin:0!important;border:0!important;box-shadow:none!important;font-size:16px!important}
  .qmarket-body form.qlegend-hero-search>button{display:block!important;flex:0 0 76px!important;width:76px!important;height:44px!important;min-width:76px!important;padding:0 10px!important;margin:0!important;font-size:14px}
  .qmarket-body form.qlegend-hero-search>.qlegend-live-search{position:absolute!important;left:0!important;right:0!important;top:60px!important;width:100%;max-height:52vh;overflow-y:auto}
  .qlegend-filter-chips{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px;width:100%!important;max-width:100%;padding:12px!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;z-index:360!important}
  .qlegend-filter-chips>.qquick-dd,.qlegend-filter-chips>button{display:block;flex:0 0 auto!important;min-width:max-content;scroll-snap-align:start}
  .qlegend-filter-chips>.qquick-dd>button,.qlegend-filter-chips>button{display:flex!important;align-items:center;justify-content:center;height:44px!important;min-height:44px!important;padding:0 16px!important;font-size:14px!important;white-space:nowrap}
  .qquick-menu{position:fixed!important;left:12px!important;right:12px!important;top:auto!important;bottom:18px!important;width:auto!important;max-height:65vh;overflow-y:auto!important}
  .qquick-menu-wide{grid-template-columns:1fr!important}
}
@media (max-width:390px){
  .qlegend-brand img{width:116px!important;max-height:44px!important}
  .qlegend-login,.qlegend-member{padding-inline:7px;font-size:12px}
}

/* V7.78 ana sayfa filtre hizası ve mobil filtre çekmecesi */
.qlegend-discovery-layout>.qlegend-filter-panel{position:relative!important;top:auto!important;margin:0!important;align-self:start!important}
.qlegend-mobile-filter-open,.qlegend-filter-close{display:none}
@media (max-width:850px){
  .qlegend-brand{min-width:132px!important}
  .qlegend-brand img{width:132px!important;height:44px!important;max-width:none!important}
  .qlegend-mobile-filter-open{display:flex;width:100%;min-height:48px;margin:0 0 12px;padding:0 16px;align-items:center;justify-content:center;gap:9px;border:1px solid #f3133e;border-radius:12px;background:#fff0f3;color:#dc153a;font-size:16px;font-weight:900;cursor:pointer}
  .qlegend-mobile-filter-open span{font-size:21px}
  .qlegend-restaurants .qlegend-filter-panel.is-mobile-open{display:block!important;position:fixed!important;z-index:20000!important;inset:12px!important;margin:0!important;max-height:calc(100dvh - 24px);overflow-y:auto;border-radius:18px!important;box-shadow:0 24px 80px rgba(7,18,35,.36)}
  .qlegend-filter-title{position:sticky;top:0;z-index:2;background:#fff}
  .qlegend-filter-title .qlegend-filter-close{display:grid;margin-left:4px;width:38px;height:38px;place-items:center;border-radius:10px;background:#101820;color:#fff;font-size:24px;line-height:1}
  body.qlegend-filter-lock{overflow:hidden}
}
@media (max-width:560px){
  .qlegend-brand img{width:132px!important;height:44px!important}
  .qlegend-nav-inner{grid-template-rows:52px 48px!important}
}
