/* SORFPANEL Mobile UI V2.1 — real-device final polish / v1.2.9
   Loaded last. Mobile-only: desktop remains untouched. */
@media (max-width:768px){
  :root{--v21-orange:#ff6500;--v21-ink:#1e2530;--v21-muted:#737b86;--v21-line:#e6e9ed;--v21-bg:#f5f6f8}

  /* HOME: preserve the successful header, tighten content density below it. */
  body.home-mobile-ready .mh-tabs{padding-top:6px!important;padding-bottom:5px!important;gap:5px!important}
  body.home-mobile-ready .mh-tabs a{min-height:28px!important;padding:0 9px!important;font-size:10.5px!important}
  body.home-mobile-ready .mh-quick-rail{gap:6px!important;padding-top:5px!important;padding-bottom:6px!important;margin-bottom:4px!important}
  body.home-mobile-ready .mh-quick-rail a{flex-basis:54px!important;min-width:54px!important}
  body.home-mobile-ready .mh-quick-rail span{width:44px!important;height:44px!important;margin-bottom:3px!important;font-size:21px!important}
  body.home-mobile-ready .mh-quick-rail b{min-height:22px!important;font-size:9px!important;line-height:1.15!important}
  body.home-mobile-ready .mh-quick-rail em{font-size:6.4px!important;max-width:54px!important;padding:2px 4px!important}
  body.home-mobile-ready .mh-banner{aspect-ratio:2.55/1!important;border-radius:12px!important}
  body.home-mobile-ready .mh-banner>div:not(.mh-banner-art){left:15px!important;max-width:56%!important}
  body.home-mobile-ready .mh-banner>div:not(.mh-banner-art) small{font-size:8px!important;margin-bottom:4px!important}
  body.home-mobile-ready .mh-banner>div:not(.mh-banner-art) b{font-size:16.5px!important;line-height:1.08!important;margin-bottom:5px!important}
  body.home-mobile-ready .mh-banner>div:not(.mh-banner-art) span{font-size:9.5px!important}
  body.home-mobile-ready .mh-banner-art{font-size:40px!important;right:15px!important;bottom:12px!important}
  body.home-mobile-ready .mh-dots{height:14px!important}
  body.home-mobile-ready .mh-section{padding:7px 10px 9px!important;margin-bottom:6px!important}
  body.home-mobile-ready .mh-head{min-height:36px!important;padding:5px 0!important;margin-bottom:4px!important}
  body.home-mobile-ready .mh-head h2{font-size:16.5px!important;letter-spacing:-.25px!important}
  body.home-mobile-ready .mh-head a{font-size:9.5px!important}
  body.home-mobile-ready .mh-product-rail{gap:7px!important}
  body.home-mobile-ready .mh-product-card{flex:0 0 142px!important;min-width:142px!important;max-width:142px!important;border-radius:12px!important;padding-bottom:6px!important}
  body.home-mobile-ready .mh-product-image{height:139px!important}
  body.home-mobile-ready .mh-product-image>img{padding:6px!important}
  body.home-mobile-ready .mh-product-info{padding:6px 8px 0!important;min-height:96px!important}
  body.home-mobile-ready .mh-product-info strong{height:31px!important;font-size:10.5px!important;line-height:1.34!important}
  body.home-mobile-ready .mh-stars{margin-top:3px!important;font-size:8px!important}
  body.home-mobile-ready .mh-product-info>b{margin-top:5px!important;font-size:14px!important}
  body.home-mobile-ready .mh-product-info .mh-stock{margin-top:3px!important;font-size:8px!important}
  body.home-mobile-ready .mh-cart-form{right:6px!important;bottom:6px!important}
  body.home-mobile-ready .mh-cart-form button{width:31px!important;height:31px!important;border-radius:9px!important}

  /* CART: rebuild mobile product row as an explicit two-column component. */
  body.page-cart .ref-cart-page{padding-left:8px!important;padding-right:8px!important;padding-bottom:148px!important}
  body.page-cart .ref-cart-header{height:50px!important;margin:0 -8px 8px!important;padding:0 10px!important}
  body.page-cart .ty-mobile-cart{display:grid!important;gap:8px!important}
  body.page-cart .ty-seller-card{border-radius:13px!important;overflow:hidden!important}
  body.page-cart .ty-seller-head{min-height:60px!important;grid-template-columns:38px minmax(0,1fr) auto!important;padding:9px 10px!important}
  body.page-cart .ty-store-main>b{font-size:12px!important}
  body.page-cart .ty-store-meta{font-size:9px!important}
  body.page-cart .ty-shipping-band{min-height:35px!important;padding:7px 10px!important;font-size:10.5px!important}
  body.page-cart .ty-cart-product{display:grid!important;grid-template-columns:90px minmax(0,1fr)!important;grid-template-rows:auto!important;gap:10px!important;align-items:start!important;min-height:0!important;padding:11px!important;background:#fff!important;overflow:visible!important}
  body.page-cart .ty-cart-product>.ty-cart-product-link{display:block!important;width:90px!important;height:112px!important;grid-column:1!important;grid-row:1!important;border:1px solid #e7eaee!important;border-radius:11px!important;overflow:hidden!important;background:#fff!important}
  body.page-cart .ty-cart-image{display:block!important;width:100%!important;height:100%!important;padding:4px!important;border:0!important;border-radius:0!important;object-fit:contain!important}
  body.page-cart .ty-cart-info{grid-column:2!important;grid-row:1!important;min-width:0!important;min-height:112px!important;padding:0 27px 0 0!important;display:flex!important;flex-direction:column!important;align-self:stretch!important;visibility:visible!important;opacity:1!important;overflow:visible!important}
  body.page-cart .ty-cart-name{display:-webkit-box!important;visibility:visible!important;opacity:1!important;margin:1px 0 5px!important;color:#20242a!important;font-size:12px!important;line-height:1.35!important;font-weight:800!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  body.page-cart .ty-cart-variant{display:inline-flex!important;margin-bottom:5px!important;font-size:8.5px!important}
  body.page-cart .ty-cart-meta{display:grid!important;gap:2px!important;margin:0!important}
  body.page-cart .ty-cart-stock{display:block!important;color:#13834e!important;font-size:9px!important;font-weight:800!important}
  body.page-cart .ty-cart-delivery{display:block!important;margin:0!important;color:#747b84!important;font-size:9px!important;line-height:1.3!important;font-weight:600!important}
  body.page-cart .ty-cart-row-bottom{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-top:auto!important;padding-top:7px!important}
  body.page-cart .ty-qty{display:grid!important;grid-template-columns:28px 30px 28px!important;width:86px!important;height:30px!important;border-radius:9px!important;overflow:hidden!important}
  body.page-cart .ty-qty button{width:28px!important;height:28px!important;font-size:16px!important}
  body.page-cart .ty-cart-price{display:block!important;font-size:14px!important;color:#f56600!important;font-weight:900!important;white-space:nowrap!important}
  body.page-cart .ty-remove-form{display:block!important;position:absolute!important;right:8px!important;top:9px!important;z-index:4!important}
  body.page-cart .ty-remove-btn{display:grid!important;width:27px!important;height:27px!important;place-items:center!important;border-radius:8px!important;background:#f6f7f8!important}
  body.page-cart .ty-cart-checkout-bar{display:grid!important;position:fixed!important;left:0!important;right:0!important;bottom:calc(62px + env(safe-area-inset-bottom))!important;z-index:120!important;grid-template-columns:40% 60%!important;gap:8px!important;min-height:68px!important;padding:8px 10px!important;background:#fff!important;border-top:1px solid #e2e5e9!important;box-shadow:0 -5px 18px rgba(15,23,42,.1)!important}
  body.page-cart .ty-cart-checkout{display:flex!important;min-height:50px!important;border-radius:10px!important;background:#f56600!important;color:#fff!important}

  /* ACCOUNT: keep the strong cards, simplify the identity header. */
  body.page-account-index .sp-profile-card,body.page-account-overview .sp-profile-card{padding:12px!important;gap:8px!important}
  body.page-account-index .sp-profile-main,body.page-account-overview .sp-profile-main{grid-template-columns:46px minmax(0,1fr)!important;gap:10px!important}
  body.page-account-index .sp-profile-avatar,body.page-account-overview .sp-profile-avatar{width:46px!important;height:46px!important}
  body.page-account-index .sp-profile-copy strong,body.page-account-overview .sp-profile-copy strong{font-size:16px!important}
  body.page-account-index .sp-profile-meta,body.page-account-overview .sp-profile-meta{display:flex!important;justify-content:flex-end!important;padding-top:7px!important;border-top:1px solid #edf0f2!important}
  body.page-account-index .sp-profile-meta>span,body.page-account-overview .sp-profile-meta>span{display:none!important}
  body.page-account-index .sp-profile-meta>a,body.page-account-overview .sp-profile-meta>a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:32px!important;padding:0 11px!important;border:1px solid #e5e8ec!important;border-radius:9px!important;background:#fff!important;color:#f56600!important;font-size:9px!important;font-weight:850!important}

  /* FAVORITES: shrink the guest gate, keep real products prominent. */
  body.page-favorites .favorite-login-card{padding:18px 14px!important;margin-bottom:9px!important;border-radius:14px!important}
  body.page-favorites .favorite-heart{width:58px!important;height:58px!important;margin-bottom:9px!important}
  body.page-favorites .favorite-login-card h2{font-size:16px!important;margin:5px 0 6px!important}
  body.page-favorites .favorite-login-card>p{font-size:10px!important;line-height:1.45!important;margin:0 auto 10px!important;max-width:300px!important}
  body.page-favorites .favorite-benefits{gap:6px!important;margin:10px 0!important}
  body.page-favorites .favorite-benefits div{font-size:8.5px!important;line-height:1.25!important}
  body.page-favorites .favorite-login-card>.ref-primary-btn{min-height:39px!important;font-size:11px!important}

  /* CATEGORIES: more marketplace density, still two clear columns. */
  body.page-mobile-categories .category-v19-topbar{height:54px!important;min-height:54px!important;margin-bottom:7px!important}
  body.page-mobile-categories .category-v19-topbar h1{font-size:17px!important}
  body.page-mobile-categories .category-v19-grid{gap:7px!important}
  body.page-mobile-categories .category-v19-card{border-radius:12px!important}
  body.page-mobile-categories .category-v19-image{aspect-ratio:1.55/1!important}
  body.page-mobile-categories .category-v19-card strong{min-height:40px!important;padding:6px 5px!important;font-size:11.5px!important;line-height:1.2!important}
}

@media (max-width:380px){
  body.home-mobile-ready .mh-product-card{flex-basis:136px!important;min-width:136px!important;max-width:136px!important}
  body.home-mobile-ready .mh-product-image{height:133px!important}
  body.page-cart .ty-cart-product{grid-template-columns:82px minmax(0,1fr)!important;gap:8px!important;padding:10px 8px!important}
  body.page-cart .ty-cart-product>.ty-cart-product-link{width:82px!important;height:104px!important}
  body.page-cart .ty-cart-info{min-height:104px!important;padding-right:25px!important}
  body.page-cart .ty-cart-name{font-size:11px!important}
  body.page-cart .ty-cart-price{font-size:13px!important}
}

/* V1.0.1 — mobile home quick-menu spacing / collision fix */
@media (max-width:768px){
  body.home-mobile-ready .mh-tabs{position:relative!important;z-index:2!important;margin-bottom:0!important}
  body.home-mobile-ready .mh-quick-rail{
    position:relative!important;
    z-index:1!important;
    gap:10px!important;
    padding:14px 12px 10px!important;
    margin:0 0 7px!important;
    align-items:flex-start!important;
  }
  body.home-mobile-ready .mh-quick-rail a{
    flex:0 0 64px!important;
    min-width:64px!important;
    margin:0!important;
  }
  body.home-mobile-ready .mh-quick-rail span{
    width:50px!important;
    height:50px!important;
    margin:0 auto 6px!important;
  }
  body.home-mobile-ready .mh-quick-rail em{
    top:-6px!important;
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
    max-width:62px!important;
    font-size:7px!important;
    line-height:1!important;
    padding:3px 5px!important;
    white-space:nowrap!important;
  }
  body.home-mobile-ready .mh-quick-rail b{
    min-height:26px!important;
    font-size:10px!important;
    line-height:1.2!important;
  }
}

/* Desktop: Mağazalar listing entry points are intentionally hidden. Seller/store detail flow stays intact. */
@media (min-width:769px){
  .v2-search-tabs a[href^="/stores.php"],
  .favorite-login-card a[href^="/stores.php"],
  .sp-favorite-empty-actions a[href^="/stores.php"]{display:none!important}
}
