/* v18: compact header and anchored live-search panel, override legacy cascade */
:root{--pn-header-height:62px}
html body{padding-top:var(--pn-header-height)!important}
html body .microbar{display:none!important}
html body .site-header{position:fixed!important;inset:0 0 auto 0!important;z-index:1500!important;background:rgba(255,255,255,.985)!important;backdrop-filter:none!important;box-shadow:0 2px 12px rgba(21,37,66,.055)!important;border-bottom:1px solid #e7ebf3!important}
html body .site-header .head-inner{min-height:62px!important;height:62px!important;padding:4px 0!important;display:grid!important;grid-template-columns:150px minmax(160px,1fr) max-content!important;gap:13px!important;align-items:center!important}
html body .site-header .brand{display:flex!important;max-width:150px!important;min-width:0!important;grid-row:1!important;grid-column:1!important}
html body .site-header .brand-logo{height:36px!important;width:auto!important;max-width:150px!important;object-fit:contain}
html body .site-header .header-search{grid-column:2!important;grid-row:1!important;display:flex!important;align-items:center!important;width:100%!important;min-width:0!important;min-height:40px!important;height:40px!important;margin:0!important;padding:3px 4px 3px 10px!important;gap:7px!important;background:#f6f8fc!important;border:1px solid #e4eaf2!important;border-radius:12px!important;box-shadow:none!important}
html body .site-header .header-search>input[type=search]{min-width:0!important;width:1px!important;flex:1!important;height:34px!important;max-height:34px!important;line-height:34px!important;padding:0 4px!important;font-size:13px!important;letter-spacing:0!important}
html body .site-header .header-search>span:first-of-type svg{width:18px!important;height:18px!important}
html body .site-header .header-search>button[type=submit]{min-width:64px!important;height:33px!important;min-height:33px!important;padding:0 13px!important;font-size:12px!important;border-radius:9px!important;background:#2459e5!important;color:#fff!important}
html body .site-header .head-actions{grid-column:3!important;grid-row:1!important;display:flex!important;align-items:center!important;gap:5px!important;margin:0!important;min-width:0!important}
html body .site-header .location-trigger{display:flex!important;align-items:center!important;min-width:108px!important;min-height:38px!important;max-height:38px!important;gap:6px!important;padding:2px 9px!important;border:1px solid #e5eaf4!important;border-radius:10px!important;font-size:11px!important;white-space:nowrap!important;color:#3b4960!important}
html body .site-header .location-trigger>span{display:block!important;line-height:1.1!important;font-size:10px!important}
html body .site-header .location-trigger strong{font-size:10px!important;max-width:115px!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body .site-header .head-actions .top-link{display:inline-flex!important;flex-direction:column!important;min-width:33px!important;min-height:37px!important;padding:3px 5px!important;gap:2px!important;justify-content:center!important;align-items:center!important}
html body .site-header .head-actions .top-link span{display:none!important}
html body .site-header .head-actions .sell-btn{display:inline-flex!important;min-height:38px!important;max-height:38px!important;padding:0 12px!important;border-radius:10px!important;font-size:11px!important;white-space:nowrap!important}
html body .site-header .mobile-menu-trigger,html body .site-header .mobile-account-trigger{display:none!important}
html body .category-nav{position:sticky!important;top:var(--pn-header-height)!important;min-height:43px!important;z-index:1150!important;box-shadow:none!important;border-bottom:1px solid #e7ebf3!important}
html body .category-nav .nav-inner{min-height:43px!important;gap:21px!important}
html body .category-nav .nav-inner>a{font-size:12px!important;white-space:nowrap!important}
html body .category-nav .nav-category-icon{font-size:16px!important}
html body.nav-hidden .category-nav{transform:translateY(-105%)!important;opacity:0!important;pointer-events:none!important}
/* Keep the slideshow arrows strictly contextual */
@media(hover:hover) and (pointer:fine){html body .listing-card:not(:hover):not(:focus-within) .card-media>.slide-arrow{opacity:0!important;visibility:hidden!important;pointer-events:none!important}html body .listing-card:hover .card-media>.slide-arrow,html body .listing-card:focus-within .card-media>.slide-arrow{opacity:1!important;visibility:visible!important;pointer-events:auto!important}}
@media(hover:none),(pointer:coarse){html body .listing-card .card-media>.slide-arrow{display:none!important}}

@media(max-width:1160px) and (min-width:901px){
 html body .site-header .head-inner{grid-template-columns:134px minmax(120px,1fr) max-content!important;gap:9px!important}
 html body .site-header .brand-logo{max-width:134px!important;height:33px!important}
 html body .site-header .head-actions .top-link{min-width:29px!important;padding:3px!important}
 html body .site-header .head-actions .sell-btn{padding:0 8px!important;font-size:10px!important}
}
@media(max-width:900px){
 :root{--pn-header-height:104px}
 html body .site-header .head-inner{height:104px!important;min-height:104px!important;grid-template-columns:36px minmax(0,1fr) 36px!important;grid-template-rows:38px 43px!important;grid-template-areas:'menu brand account' 'search search search'!important;column-gap:8px!important;row-gap:6px!important;padding:6px 0 7px!important;display:grid!important}
 html body .site-header .mobile-menu-trigger{display:flex!important;grid-area:menu!important;grid-column:1!important;grid-row:1!important;width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;border-radius:10px!important}
 html body .site-header .mobile-account-trigger{display:flex!important;grid-area:account!important;grid-column:3!important;grid-row:1!important;width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;border-radius:10px!important}
 html body .site-header .brand{grid-column:2!important;grid-row:1!important;grid-area:brand!important;justify-self:center!important;align-self:center!important;width:auto!important;max-width:175px!important;display:flex!important;overflow:visible!important}
 html body .site-header .brand-logo{height:34px!important;max-width:175px!important}
 html body .site-header .head-actions{display:none!important}
 html body .site-header .header-search{grid-area:search!important;grid-column:1/-1!important;grid-row:2!important;order:0!important;flex-basis:auto!important;max-width:100%!important;height:42px!important;min-height:42px!important;padding:3px 4px 3px 9px!important;position:relative!important}
 html body .site-header .header-search>input[type=search]{font-size:13px!important;height:35px!important}
 html body .site-header .header-search>button[type=submit]{height:34px!important;min-height:34px!important;min-width:61px!important}
 html body .site-header .header-search .search-suggestions{position:absolute!important;top:calc(100% + 7px)!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(520px,calc(100vw - 20px))!important;max-width:min(520px,calc(100vw - 20px))!important;min-width:0!important;max-height:min(62dvh,420px)!important;overflow-x:hidden!important;overflow-y:auto!important;border-radius:14px!important;box-shadow:0 14px 38px rgba(15,23,42,.17)!important;z-index:2000!important}
 html body .site-header .header-search .search-suggestions a{min-width:0!important;max-width:100%!important}
 html body .site-header .header-search .search-suggestions .suggest-copy{min-width:0!important;flex:1!important}
 html body .site-header .header-search .search-suggestions .suggest-item>b{font-size:12px!important;white-space:nowrap!important}
 html body .mobile-location-strip{position:sticky!important;top:var(--pn-header-height)!important;z-index:1140!important;background:#fff!important;min-height:36px!important}
 html body .mobile-location-strip button{min-height:36px!important;font-size:12px!important}
 html body .category-nav{position:fixed!important;top:0!important;left:0!important;bottom:0!important;min-height:100dvh!important;transform:translateX(-105%)!important;z-index:1600!important;visibility:hidden!important;pointer-events:none!important}
 html body .category-nav.mobile-open{transform:translateX(0)!important;visibility:visible!important;pointer-events:auto!important;opacity:1!important}
 html body .mobile-menu-overlay:not([hidden]){z-index:1550!important}
}
@media(max-width:380px){html body .site-header .header-search .search-suggestions{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important}}
