/* Kitap Fiyatı — compact, polished mobile navigation drawer.
   The old site.min.css mobile rules remain intact for unrelated components. */
@media(max-width:820px){
  .mobile-panel.kf-mobile-panel {
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
    box-sizing:border-box!important;
    position:fixed!important;
    inset:0 0 0 auto!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:auto!important;
    width:min(390px,100vw)!important;
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    padding:0!important;
    overflow:hidden!important;
    border:0!important;
    border-left:1px solid #e0e8f7!important;
    border-radius:0!important;
    background:#f7f9fe!important;
    box-shadow:-16px 0 55px rgba(16,32,67,.19)!important;
    z-index:130!important;
    transform:translateX(104%);
    transition:transform .26s cubic-bezier(.22,1,.36,1)!important;
  }
  .mobile-panel.kf-mobile-panel.open{transform:translateX(0)!important}
  .mobile-menu-backdrop{
    top:0!important;
    bottom:0!important;
    background:rgba(11,25,52,.58)!important;
    -webkit-backdrop-filter:blur(3px)!important;
    backdrop-filter:blur(3px)!important;
  }
  body.has-adminbar .mobile-panel.kf-mobile-panel{
    top:42px!important;
    height:calc(100dvh - 42px)!important;
    max-height:calc(100dvh - 42px)!important;
  }
  body.has-adminbar .mobile-menu-backdrop{top:42px!important}
  body.mobile-menu-open{overflow:hidden!important}
  .kf-mobile-panel .mobile-drawer-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    flex:0 0 auto!important;
    position:relative!important;
    top:auto!important;
    z-index:3!important;
    min-height:78px!important;
    padding:12px 20px!important;
    border-bottom:1px solid #e7edf8!important;
    background:#fff!important;
  }
  .kf-mobile-panel .kf-mobile-drawer-title{
    display:flex;align-items:center;gap:12px;min-width:0;
  }
  .kf-mobile-panel .kf-mobile-drawer-mark{
    display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;
    border:1px solid #dfe8ff;border-radius:12px;
    background:linear-gradient(135deg,#edf3ff,#e5ecff);color:#3858d3;
    font-size:19px;
  }
  .kf-mobile-panel .kf-mobile-drawer-title>span:last-child{
    display:flex;flex-direction:column;gap:2px;min-width:0;
  }
  .kf-mobile-panel .kf-mobile-drawer-title strong{
    color:#152b4d;font-size:19px;line-height:1.15;font-weight:750;
  }
  .kf-mobile-panel .kf-mobile-drawer-title small{
    font-size:11px;font-weight:550;color:#8294ad;letter-spacing:.01em;
  }
  .kf-mobile-panel #mobileMenuClose{
    display:grid!important;place-items:center!important;
    width:38px!important;height:38px!important;flex:0 0 38px!important;
    border:1px solid #e4eaf4!important;border-radius:11px!important;
    background:#f7f9fd!important;color:#526681!important;font-size:15px!important;
    cursor:pointer;transition:background-color .18s,color .18s;
  }
  .kf-mobile-panel #mobileMenuClose:hover{color:#2745b1!important;background:#edf3ff!important}
  .kf-mobile-panel .kf-mobile-drawer-content{
    display:flex;flex-direction:column;gap:0;
    flex:1 1 auto;min-height:0;
    padding:18px 18px calc(22px + env(safe-area-inset-bottom));
    overflow-x:hidden;overflow-y:auto;
    overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
    scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;
  }
  .kf-mobile-panel .kf-mobile-intro{margin:0 0 16px}
  .kf-mobile-panel .kf-mobile-eyebrow{
    display:block;margin:0 0 5px;color:#4f6ed3;
    font-size:10px;font-weight:800;letter-spacing:.13em;
  }
  .kf-mobile-panel .kf-mobile-intro p{
    margin:0;font-size:13px;color:#61758f;line-height:1.55;font-weight:500;
  }
  .kf-mobile-panel form.mobile-search,
  .kf-mobile-panel>.mobile-search {
    display:flex!important;align-items:center!important;
    position:relative!important;flex:0 0 auto!important;
    width:100%!important;min-width:0!important;
    height:50px!important;
    margin:0 0 20px!important;padding:5px!important;
    border:1px solid #dce5f5!important;border-radius:12px!important;
    background:#fff!important;
    box-shadow:0 3px 12px rgba(26,49,105,.045)!important;
  }
  .kf-mobile-panel .kf-mobile-search-icon{
    position:absolute;left:16px;top:50%;
    transform:translateY(-50%);pointer-events:none;
    color:#94a5bd;font-size:15px;
  }
  .kf-mobile-panel form.mobile-search input{
    display:block!important;flex:1 1 auto!important;min-width:0!important;
    width:100%!important;height:40px!important;
    padding:0 10px 0 37px!important;
    background:transparent!important;border:0!important;
    border-radius:8px!important;outline:0!important;
    box-shadow:none!important;color:#253957!important;
    font-size:13px!important;
  }
  .kf-mobile-panel form.mobile-search input::placeholder{color:#98a6ba}
  .kf-mobile-panel form.mobile-search button{
    display:grid!important;place-items:center!important;
    flex:0 0 40px!important;width:40px!important;
    min-width:40px!important;height:40px!important;
    padding:0!important;border:0!important;border-radius:9px!important;
    color:#fff!important;
    background:linear-gradient(135deg,#5271e7,#324fd4)!important;
    font-size:14px!important;cursor:pointer;
  }
  .kf-mobile-panel .kf-mobile-nav-heading{
    display:flex;align-items:center;gap:7px;
    margin:0 3px 9px;padding:0!important;
    color:#8b9bb1;font-size:10px;font-weight:800;letter-spacing:.11em;
  }
  .kf-mobile-panel .kf-mobile-nav-heading-secondary{margin-top:20px}
  .kf-mobile-panel .mobile-category-menu,
  .kf-mobile-panel>.mobile-category-menu {
    display:block!important;
    position:static!important;z-index:auto!important;
    margin:0 0 20px!important;
    width:100%!important;min-width:0!important;
    border:1px solid #dfe7f4!important;
    border-radius:13px!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:0 3px 14px rgba(31,54,101,.035)!important;
  }
  .kf-mobile-panel .mobile-category-main-toggle{
    display:flex!important;align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;min-height:58px!important;
    padding:8px 13px!important;
    border:0!important;background:#fff!important;
    font-size:13px!important;font-weight:750!important;
    color:#1f365b!important;cursor:pointer!important;
  }
  .kf-mobile-panel .mobile-category-main-toggle>span{
    display:flex!important;align-items:center!important;gap:12px!important;
    min-width:0;
  }
  .kf-mobile-panel .kf-mobile-icon-box{
    display:grid!important;place-items:center!important;
    flex:0 0 36px!important;
    width:36px!important;height:36px!important;
    border-radius:10px!important;
    background:#edf2ff!important;color:#4567c5!important;
    font-size:15px!important;
  }
  .kf-mobile-panel .mobile-category-main-toggle .kf-mobile-category-chevron{
    font-size:12px!important;color:#8094b5!important;
    transition:transform .2s ease;
  }
  .kf-mobile-panel .mobile-category-menu.open>.mobile-category-main-toggle{
    color:#2b51b4!important;background:#f5f8ff!important;
    border-bottom:1px solid #e4ebf7!important;
  }
  .kf-mobile-panel .mobile-category-menu.open>.mobile-category-main-panel {
    display:block!important;position:static!important;
    inset:auto!important;width:100%!important;
    min-height:0!important;max-height:none!important;
    padding:5px 10px 11px!important;
    margin:0!important;
    border:0!important;border-radius:0!important;
    overflow:visible!important;
    background:#fff!important;box-shadow:none!important;
  }
  .kf-mobile-panel .mobile-category-main-panel{background:#fff}
  .kf-mobile-panel .mobile-category-group{
    margin:0!important;padding:0!important;
    border:0!important;
  }
  .kf-mobile-panel .mobile-category-toggle{
    display:flex!important;align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;min-height:44px!important;
    padding:8px 9px!important;margin:0!important;
    border:0!important;border-radius:8px!important;
    background:#fff!important;color:#405570!important;
    font-size:12px!important;font-weight:550!important;
    cursor:pointer!important;
  }
  .kf-mobile-panel .mobile-category-toggle>span{
    display:flex!important;align-items:center!important;
    gap:11px!important;min-width:0!important;line-height:1.4!important;
  }
  .kf-mobile-panel .mobile-category-toggle>span>i{
    display:grid!important;place-items:center!important;
    width:21px!important;flex:0 0 21px!important;
    color:#6781ae!important;font-size:13px!important;
  }
  .kf-mobile-panel .mobile-category-toggle>i:last-child{
    flex:0 0 auto;font-size:10px!important;color:#9dafc5!important;
    transition:transform .2s ease;
  }
  .kf-mobile-panel .mobile-category-group.open>.mobile-category-toggle{
    color:#2f54ad!important;background:#eff4ff!important;
    font-weight:650!important;
  }
  .kf-mobile-panel .mobile-category-children{
    display:none;position:static!important;
    max-height:none!important;overflow:visible!important;
    padding:3px 7px 10px 37px!important;
    margin:0!important;
    border:0!important;background:transparent!important;
  }
  .kf-mobile-panel .mobile-category-group.open>.mobile-category-children{
    display:grid!important;gap:2px!important;
  }
  .kf-mobile-panel .mobile-category-children a{
    display:flex!important;align-items:center!important;
    min-height:36px!important;
    padding:7px 10px!important;margin:0!important;
    border:0!important;border-radius:7px!important;
    color:#566b86!important;font-size:12px!important;
    line-height:1.4!important;text-decoration:none!important;
  }
  .kf-mobile-panel .mobile-category-children .mobile-category-all{
    background:#f0f5ff!important;color:#365cba!important;font-weight:700!important;
  }
  .kf-mobile-panel .mobile-category-children a:hover{background:#f5f8fd!important;color:#2c54ad!important}
  .kf-mobile-panel .kf-mobile-link-list{
    display:flex!important;flex-direction:column!important;
    gap:4px!important;min-width:0!important;
  }
  .kf-mobile-panel .kf-mobile-nav-link{
    display:flex!important;align-items:center!important;gap:12px!important;
    width:100%!important;min-width:0!important;
    min-height:57px!important;
    padding:8px 12px!important;margin:0!important;
    border:1px solid transparent!important;border-radius:12px!important;
    background:transparent!important;color:#344969!important;
    text-decoration:none!important;
    font-size:13px!important;font-weight:600!important;
    transition:background-color .16s ease,border-color .16s ease,color .16s ease;
  }
  .kf-mobile-panel .kf-mobile-nav-link:hover,
  .kf-mobile-panel .kf-mobile-nav-link:focus-visible{
    color:#3456ba!important;background:#eef3ff!important;border-color:#dee8ff!important;
  }
  .kf-mobile-panel .kf-mobile-nav-link.nav-active{
    color:#304fb1!important;background:#edf3ff!important;border-color:#dae5fd!important;
  }
  .kf-mobile-panel .kf-mobile-nav-link.nav-active .kf-mobile-icon-box{
    background:#e0e9ff!important;color:#3157c4!important;
  }
  .kf-mobile-panel .kf-mobile-link-text{
    display:block!important;flex:1 1 auto!important;
    min-width:0!important;line-height:1.35!important;
    overflow-wrap:anywhere!important;
  }
  .kf-mobile-panel .kf-mobile-link-arrow{
    margin-left:auto!important;
    flex:0 0 12px!important;
    color:#b1bed0!important;font-size:10px!important;
  }
  .kf-mobile-panel .kf-mobile-drawer-footer{
    display:flex!important;align-items:stretch!important;
    gap:9px!important;flex-wrap:wrap!important;
    margin-top:23px!important;
    padding:18px 0 0!important;
    border-top:1px solid #e6edf8!important;
  }
  .kf-mobile-panel .kf-mobile-drawer-footer>a{
    display:flex!important;align-items:center!important;justify-content:center!important;
    gap:8px!important;
    flex:1 1 0!important;min-width:0!important;
    min-height:43px!important;
    padding:8px 10px!important;
    border:1px solid #dce5f3!important;border-radius:10px!important;
    background:#fff!important;color:#315080!important;
    text-decoration:none!important;
    font-size:12px!important;font-weight:650!important;
  }
  .kf-mobile-panel .kf-mobile-drawer-footer>.kf-mobile-signup-link{
    background:#3d59d5!important;color:#fff!important;border-color:#3d59d5!important;
  }
  .kf-mobile-panel .kf-mobile-drawer-footer>.kf-mobile-account-link{
    justify-content:flex-start!important;padding-left:14px!important;
  }
  .kf-mobile-panel .kf-mobile-drawer-footer>.kf-mobile-account-link i:last-child{
    margin-left:auto;
  }
  .kf-mobile-panel .kf-mobile-drawer-footer>small{
    display:block!important;flex:0 0 100%!important;
    margin-top:6px!important;color:#97a6ba!important;
    text-align:center!important;font-size:10px!important;
    line-height:1.5!important;
  }
  .kf-mobile-panel a:focus-visible,
  .kf-mobile-panel button:focus-visible{
    outline:2px solid #6680dd!important;
    outline-offset:2px!important;
  }
}
@media(max-width:360px){
  .kf-mobile-panel .kf-mobile-drawer-content{padding-left:13px;padding-right:13px}
  .kf-mobile-panel .mobile-drawer-head{padding-left:14px!important;padding-right:14px!important}
  .kf-mobile-panel .kf-mobile-nav-link{min-height:54px!important}
}
@media(prefers-reduced-motion:reduce){
 .mobile-panel.kf-mobile-panel,
 .kf-mobile-panel .kf-mobile-nav-link{
   transition:none!important;
 }
}

/* Compact mobile spacing and reliable inline category accordion. */
@media(max-width:820px){
  .kf-mobile-panel .mobile-drawer-head{
    min-height:70px!important;
    padding:10px 16px!important;
  }
  .kf-mobile-panel .kf-mobile-drawer-title>span:last-child{gap:0!important}
  .kf-mobile-panel .kf-mobile-drawer-content{
    padding:14px 16px calc(18px + env(safe-area-inset-bottom))!important;
  }
  .kf-mobile-panel form.mobile-search{
    margin:0 0 14px!important;
  }
  /* This is a column flex child: never let it shrink to a 2px border. */
  .kf-mobile-panel .mobile-category-menu,
  .kf-mobile-panel .kf-mobile-drawer-content>.mobile-category-menu{
    display:flex!important;
    flex-direction:column!important;
    flex:0 0 auto!important;
    flex-shrink:0!important;
    width:100%!important;
    height:auto!important;
    min-height:58px!important;
    max-height:none!important;
    margin:0 0 12px!important;
    overflow:hidden!important;
  }
  .kf-mobile-panel .mobile-category-main-toggle{
    flex:0 0 58px!important;
    min-height:58px!important;
  }
  .kf-mobile-panel .mobile-category-menu:not(.open)>.mobile-category-main-panel{
    display:none!important;
  }
  .kf-mobile-panel .mobile-category-menu.open>.mobile-category-main-panel{
    flex:0 0 auto!important;
    min-height:0!important;
    max-height:none!important;
  }
  .kf-mobile-panel .kf-mobile-link-list{
    flex:0 0 auto!important;
    margin:0!important;
    gap:2px!important;
  }
  .kf-mobile-panel .kf-mobile-nav-link{
    min-height:54px!important;
    padding:7px 11px!important;
  }
  .kf-mobile-panel .kf-mobile-drawer-footer{
    flex:0 0 auto!important;
    margin-top:16px!important;
    padding-top:14px!important;
  }
}
@media(max-width:360px){
  .kf-mobile-panel .kf-mobile-drawer-content{
    padding-left:12px!important;
    padding-right:12px!important;
  }
}
