/* KESKINSOFT / IstanbulToptan V4.1 — isolated mobile polish.
   Existing V4 filters, GET/normal SQL, URLs, cards and checkout are unchanged. */
@media (max-width: 767px) {
  body.kscv41-page .wh-page.ks-commerce-v4 {
    width:100%;max-width:100%;margin:0 auto;
    padding:0 12px calc(92px + env(safe-area-inset-bottom,0px));
    box-sizing:border-box;overflow-x:clip;
  }
  body.kscv41-page .ks-commerce-v4 .wh-intro {
    display:grid;grid-template-columns:minmax(0,1fr) auto;
    align-items:center;gap:8px 12px;
    padding:14px 14px!important;margin:11px 0 10px!important;
    border-radius:17px;min-height:0!important;
  }
  body.kscv41-page .ks-commerce-v4 .wh-intro > div{min-width:0}
  body.kscv41-page .ks-commerce-v4 .wh-intro .wh-eyebrow{font-size:9px;letter-spacing:1.1px;line-height:1.3}
  body.kscv41-page .ks-commerce-v4 .wh-intro h1{font-size:21px!important;line-height:1.15!important;margin:5px 0 3px!important;letter-spacing:-.4px}
  body.kscv41-page .ks-commerce-v4 .wh-intro p{font-size:11px!important;line-height:1.35!important;margin:0!important;max-width:40ch}
  body.kscv41-page .ks-commerce-v4 .wh-intro > a {
    align-self:center;white-space:nowrap;font-size:11px!important;
    min-height:37px;padding:8px 10px!important;line-height:1.25;
    display:inline-flex;align-items:center;justify-content:center;
  }
  body.kscv41-page .ks-commerce-v4 .commerce-tabs {
    width:100%;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px!important;min-height:0;margin:0 0 10px!important;padding:4px!important;
    overflow:visible;border-radius:13px;
  }
  body.kscv41-page .ks-commerce-v4 .commerce-tabs a{
    min-width:0;min-height:39px!important;padding:9px 5px!important;
    margin:0!important;font-size:12px;text-align:center;white-space:nowrap;
    display:flex;align-items:center;justify-content:center;
  }
  body.kscv41-page .ks-commerce-v4 .ks-v41-controls{display:grid;gap:8px;margin:0 0 11px}
  body.kscv41-page .ks-commerce-v4 .ks-v41-controls .wh-search{
    display:flex!important;align-items:center;gap:8px!important;
    width:100%;max-width:100%;min-width:0;box-sizing:border-box;
    padding:8px!important;margin:0!important;border:1px solid #d8e7f4;
    background:#fff;border-radius:15px;
  }
  body.kscv41-page .ks-commerce-v4 .ks-v41-controls .wh-search input{
    display:block;min-width:0!important;flex:1 1 0;width:1%!important;
    max-width:none!important;height:43px!important;padding:8px 11px!important;
    font-size:16px!important;border-radius:10px;
  }
  body.kscv41-page .ks-commerce-v4 .ks-v41-controls .wh-search button{
    flex:0 0 auto;min-width:56px!important;height:43px!important;margin:0!important;
    padding:8px 13px!important;border-radius:11px;font-size:13px!important;
  }
  body.kscv41-page .ks-commerce-v4 .ks-v41-action-row{
    display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:stretch;
  }
  body.kscv41-page .ks-commerce-v4 .ks-v41-action-row .ks-commerce-trigger{
    display:flex!important;width:100%;min-height:45px!important;border-radius:12px;
    font-size:13px!important;box-sizing:border-box;margin:0;
  }
  body.kscv41-page .ks-commerce-v4 .ks-v41-action-row .wh-sort-row{
    display:flex!important;align-items:center;justify-content:stretch;
    width:100%;min-width:0;margin:0!important;padding:0!important;
    border:1px solid #cddfeb;border-radius:12px;background:#fff;box-sizing:border-box;
  }
  body.kscv41-page .ks-commerce-v4 .ks-v41-action-row .wh-sort-row>label,
  body.kscv41-page .ks-commerce-v4 .ks-v41-action-row .wh-sort-row>button{display:none!important}
  body.kscv41-page .ks-commerce-v4 .ks-v41-action-row .wh-sort-row select{
    width:100%!important;min-width:0!important;max-width:100%;height:43px;
    padding:6px 21px 6px 10px;font-size:13px!important;border:0!important;
    box-shadow:none!important;background-color:transparent!important;
  }
  body.kscv41-page .ks-commerce-v4 .ks-v41-controls .ks-commerce-quick{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
    width:100%;margin:0;
  }
  body.kscv41-page .ks-commerce-v4 .ks-v41-controls .ks-commerce-quick a{
    display:flex;min-width:0;min-height:42px;padding:8px 5px;
    align-items:center;justify-content:center;line-height:1.3;
    font-size:11px;font-weight:800;text-align:center;border-radius:11px;
  }
  body.kscv41-page .ks-commerce-v4 .ks-commerce-active{margin:0 0 9px!important}
  body.kscv41-page .ks-commerce-v4 .wh-results{margin:7px 0 12px!important}
  body.kscv41-page .ks-commerce-v4 .wh-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;max-width:100%;
  }
  body.kscv41-page .ks-commerce-v4 .wh-card{min-width:0;width:auto;max-width:100%}
  body.kscv41-page .ks-commerce-v4 .wh-card .wh-picture{min-width:0}
  body.kscv41-page a.it-create-fab,
  body.kscv41-page .fixed-ekle-buton.it-create-fab{display:none!important}
  body.kscv41-page .it-master-scrolltop{bottom:calc(92px + env(safe-area-inset-bottom,0px))!important}
  body.kscv41-page .ks-v41-bottom{
    position:fixed;bottom:0;left:0;right:0;z-index:11020;
    background:rgba(255,255,255,.98);border-top:1px solid #d7e5f2;
    box-shadow:0 -7px 26px rgba(10,48,84,.08);
    padding:6px 4px calc(7px + env(safe-area-inset-bottom,0px));
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;
  }
  body.kscv41-page .ks-v41-bottom a{
    display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;
    min-width:0;min-height:55px;color:#7a8a9b;text-decoration:none!important;
    font:700 10px/1.25 Arial,sans-serif;padding:3px 1px;
  }
  body.kscv41-page .ks-v41-bottom a i{font-size:20px;line-height:22px}
  body.kscv41-page .ks-v41-bottom a[aria-current="page"]{color:#087ed4}
  body.kscv41-page .ks-v41-bottom a.ks-v41-sell{
    color:#fff!important;background:linear-gradient(140deg,#159af5,#086bcf);
    border-radius:15px;box-shadow:0 6px 16px #0477db3a;
    transform:translateY(-14px);min-height:64px;max-width:72px;
    justify-self:center;padding:5px 8px;
  }
  body.kscv41-page .ks-v41-bottom .ks-v41-sell i{font-size:24px}
}
@media (max-width:360px){
 body.kscv41-page .ks-commerce-v4 .wh-intro h1{font-size:19px!important}
 body.kscv41-page .ks-commerce-v4 .wh-intro > a{padding:8px!important;font-size:10px!important}
 body.kscv41-page .ks-commerce-v4 .ks-v41-controls .ks-commerce-quick a{font-size:10px}
 body.kscv41-page .ks-v41-bottom a{font-size:9px}
}
@media (min-width:768px){.ks-v41-bottom{display:none!important}}
