/* PakPrince V59: narrowly scoped store cards and shared customer navigation fixes. */
html{max-width:100%;overflow-x:clip}
body.market-page{max-width:100%;overflow-x:clip}
/* A store listing must fill available screen space; nested grid children cannot force a narrow sidebar. */
body.market-page .market-filter-layout{display:grid!important;grid-template-columns:minmax(0,225px) minmax(0,1fr)!important;gap:14px!important;align-items:start!important;min-width:0!important;width:100%!important}
body.market-page .market-filter-layout>div,body.market-page .market-filter-layout>aside{min-width:0!important;width:100%!important;max-width:100%!important}
body.market-page .market-section,body.market-page .market-wrap{min-width:0!important;max-width:100%!important}
body.market-page .market-grid{display:grid!important;width:100%!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important}
body.market-page .market-grid>.market-card{display:flex!important;flex-direction:column!important;min-width:0!important;width:100%!important;max-width:100%!important;margin:0!important;border-radius:13px!important;overflow:hidden!important;background:#fff!important}
body.market-page .market-grid .market-card-media{display:block!important;aspect-ratio:1 / 1!important;width:100%!important;height:auto!important;min-height:0!important;background:#f5f7fb!important}
body.market-page .market-grid .market-card-media img{display:block!important;object-fit:contain!important;width:100%!important;height:100%!important;max-width:100%!important}
body.market-page .market-grid .market-card-body{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;padding:7px!important;flex:1!important}
body.market-page .market-grid .market-title{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;overflow-wrap:anywhere!important;font-size:clamp(11px,1.3vw,14px)!important;line-height:1.3!important;font-weight:650!important;min-height:2.6em!important}
body.market-page .market-grid .market-price{color:#e87520!important;font-size:clamp(11px,1.3vw,17px)!important;font-weight:800!important;margin-top:auto!important}
/* Keep buy/share interactions available from the product detail screen, not in tiny three-column cards. */
body.market-page .market-grid .pp371-card-actions,body.market-page .market-grid .pp371-stock-row,body.market-page .market-grid .market-old-price,body.market-page .market-grid .market-badges{display:none!important}
body.market-page .market-grid .market-card-body>div:has(.market-old-price){display:none!important}
body.market-page .market-grid .market-card-media,body.market-page .market-grid .market-title{cursor:pointer}
body.market-page .market-grid .market-card:focus-within{outline:2px solid #2563eb;outline-offset:2px}
/* Customer public header: menu / search / submit / cart in a single row with no overlapping positions. */
body.pp53-public.pp53-injected>.pp53-header{display:flex!important;position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;height:68px!important;min-height:68px!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:7px!important;padding:8px max(10px,env(safe-area-inset-right))!important;box-sizing:border-box!important;z-index:2000!important;transform:none!important}
body.pp53-public.pp53-injected>.pp53-header>button,body.pp53-public.pp53-injected>.pp53-header>a{position:static!important;transform:none!important;inset:auto!important;display:grid!important;place-items:center!important;flex:0 0 43px!important;width:43px!important;height:46px!important;min-width:43px!important;margin:0!important}
body.pp53-public.pp53-injected>.pp53-header>form{position:static!important;display:flex!important;flex:1 1 0!important;width:auto!important;min-width:0!important;height:46px!important;align-items:stretch!important;gap:5px!important;margin:0!important}
body.pp53-public.pp53-injected>.pp53-header>form>input{position:static!important;flex:1 1 0!important;width:0!important;min-width:0!important;max-width:100%!important;height:46px!important;font-size:14px!important;margin:0!important;padding:0 9px!important}
body.pp53-public.pp53-injected>.pp53-header>form>button{position:static!important;transform:none!important;inset:auto!important;flex:0 0 43px!important;width:43px!important;height:46px!important;min-width:43px!important;margin:0!important}
body.pp53-public.pp53-injected{padding-top:70px!important}
body.pp53-public.pp53-injected>.pp53-footer{z-index:1999!important;max-width:100vw!important}
@media(max-width:991px){body.market-page .market-filter-layout{grid-template-columns:minmax(0,1fr)!important}}
@media(min-width:650px){body.market-page .market-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}}
@media(min-width:980px){body.market-page .market-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(min-width:1450px){body.market-page .market-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}}
@media(max-width:350px){body.pp53-public.pp53-injected>.pp53-header{gap:4px!important;padding-left:5px!important;padding-right:5px!important}body.pp53-public.pp53-injected>.pp53-header>button,body.pp53-public.pp53-injected>.pp53-header>a,body.pp53-public.pp53-injected>.pp53-header>form>button{flex-basis:37px!important;min-width:37px!important;width:37px!important}body.market-page .market-grid{gap:5px!important}}
