/* Catalogue sizing is shared by home, search results and product details. */
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;font-size:14px!important;line-height:1.5;letter-spacing:0;color:#202124}
body button,body input,body select,body textarea{font-family:inherit!important}
body button{font-size:13px!important;font-weight:600!important;letter-spacing:0}
body header{background:#fff!important;color:#202124!important;box-shadow:none!important;border-bottom:1px solid #dce5e7}
body header .brand h1,body header .brand h2{font-size:22px!important;font-weight:700;line-height:1.2!important}
body header .logo{width:40px!important;height:40px!important;min-width:40px!important;flex:none;font-size:17px!important;border-radius:8px}
.buyer-home header #homeLogo{width:56px!important;height:56px!important;min-width:56px!important;background:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important}
.buyer-home header #homeLogo img{display:block;width:100%;height:100%;object-fit:contain}
body header .label,body header .version{font-size:11px!important;font-weight:500;color:#59666d!important}
body header .version{border:0;padding:0;margin-top:2px}
body .photo{position:relative;overflow:hidden;background:#fff!important;color:#63757d;min-width:0}
body .photo img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain!important;padding:12px;display:block}
body .grid:has(>.card){grid-template-columns:repeat(4,minmax(0,1fr))}
body .grid>.card{min-width:0}
body .grid>.card .photo{height:auto!important;aspect-ratio:1!important;min-height:0!important;flex:none;display:block}
body .product-info-panel h1,body #productName{font-size:22px!important;line-height:1.3!important}
body .price{font-size:18px;font-weight:700}
body .soft,body .cart{border-color:#dce5e7}
body :is(button,a,input,select):focus-visible{outline:2px solid #0d8174;outline-offset:3px}

/* Home is a shopping catalogue, with navigation in flow instead of over cards. */
.buyer-home .utility{display:none!important}
.buyer-home .hero{display:block!important;margin:16px 0!important;padding:0!important;background:transparent!important}
.buyer-home .market-banner{display:block;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:1672/941;object-fit:contain}
.buyer-home .bar{max-width:1240px;grid-template-columns:200px minmax(200px,1fr) auto;gap:20px;padding:16px 20px}
.buyer-home .quick button{color:#53666c}
.buyer-home .quick{gap:14px}
.buyer-home .search{border:1px solid #cbd9dc;background:#f8fafb;border-radius:6px}
.buyer-home .search input{font-size:14px!important;min-height:38px;background:transparent}
.buyer-home main{max-width:1240px!important;padding:0 20px 28px!important;overflow:visible!important}
.buyer-home .section{background:transparent;border:0;border-radius:0!important;margin:20px 0 0!important}
.buyer-home .head{padding:0 0 12px!important;border:0;align-items:center!important}
.buyer-home .head h3{font-size:16px!important;font-weight:700;color:#25383d}
.buyer-home .head span{display:none!important}
.buyer-home .cats{display:flex!important;flex-wrap:wrap;gap:0!important;padding:0!important;border-bottom:1px solid #dce5e7}
.buyer-home .cat{flex:none;min-height:40px!important;padding:10px 14px!important;font-size:13px!important;line-height:1.4!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:#344950;font-weight:600!important;white-space:nowrap}
.buyer-home .cat.active{border-bottom-color:#168675!important;color:#126a59;font-weight:700!important}
.buyer-home .grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:16px!important;padding:0!important}
.buyer-home .grid>.card{border:1px solid #e0e6e8;border-radius:8px!important;margin:0!important;background:#fff}
.buyer-home .grid>.card:hover{border-color:#8eaaa8}
.buyer-home .grid>.card .photo{height:auto!important;aspect-ratio:1!important;min-height:0!important;font-size:24px!important;text-decoration:none}
.buyer-home .badge{display:none}
.buyer-home .body{padding:12px!important;gap:5px}
.buyer-home .name{font-size:14px!important;line-height:1.5!important;font-weight:700;min-height:42px!important;color:#22383e}
.buyer-home .shop,.buyer-home .muted{font-size:11px!important;line-height:1.4!important;color:#65747b}
.buyer-home .shop{margin:0;overflow-wrap:anywhere}
.buyer-home .shop-name{font-size:13px;color:#176b61;font-weight:600;text-decoration:none}
.buyer-home .shop-name:hover{text-decoration:underline}
.buyer-home .product-category{display:block;font-size:12px;color:#52616b;font-weight:500;margin-top:2px}
.buyer-home .tag{font-size:12px!important;font-weight:600;align-self:flex-start;margin:0!important;padding:2px 5px!important}
.buyer-home .listing-tags{display:flex;gap:4px;flex-wrap:wrap;min-height:20px}
.buyer-home .shop-status-slot{min-height:16px}
.buyer-home .pm-shop-status{font-size:11px!important;margin:0!important}
.buyer-home .pm-notify-enable{position:static!important;display:block;margin:12px auto 24px;border-radius:6px!important;box-shadow:none!important;background:#fce8ef!important;color:#a71750!important}
.buyer-home .stars{font-size:11px!important;color:#76622f;font-weight:400}
.buyer-home .price{font-size:17px!important;font-weight:700;margin:5px 0 8px!important;line-height:1.4!important;color:#117261}
.buyer-home .buy{min-height:38px!important;font-size:12px!important;font-weight:600!important;background:#168574}
.buyer-home .buy:disabled{background:#e3e9e8;color:#66736f;cursor:not-allowed}
.buyer-home .bottom-nav{position:static!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;margin:0!important;width:100%!important;border:0;border-bottom:1px solid #dce5e7;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
.buyer-home .bottom-nav button{display:block!important;background:transparent;min-height:42px!important;padding:6px!important;font-size:12px!important;font-weight:500!important}
.buyer-home .bottom-nav button.active{border-bottom:2px solid #168574}
.buyer-home .bottom-nav .seller-entry{background:#168574!important;color:#fff!important;font-weight:600!important;border-radius:6px!important;white-space:normal}
.buyer-home .pm-seller-switch,.buyer-home .pm-policy-link{display:none!important}
.buyer-home .pm-mobile-links{display:none!important}
.buyer-home #products>.panel{grid-column:1/-1;margin:0!important;padding:24px!important}
@media(max-width:1100px){
 .buyer-home .bar{grid-template-columns:180px minmax(0,1fr)!important;gap:12px!important}
 .buyer-home .bar>div:last-child{grid-column:1/-1;justify-content:flex-end}
 .buyer-home .grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
}
@media(max-width:760px){
 body .grid:has(>.card){grid-template-columns:repeat(2,minmax(0,1fr))}
 .buyer-home header{position:static!important}
 .buyer-home header .bar{grid-template-columns:1fr!important;padding:12px!important}
 .buyer-home .bar>div:last-child{grid-column:auto}
 .buyer-home .search input{font-size:16px!important}
 .buyer-home main{padding:0 12px 24px!important}
 .buyer-home .cats{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;max-width:100%}
 .buyer-home .cat{font-size:13px!important;padding:10px 12px!important;min-height:44px!important}
 .buyer-home .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .buyer-home .body{padding:9px!important}
 .buyer-home .name{font-size:13px!important;min-height:39px!important}
 .buyer-home .price{font-size:16px!important}
 .buyer-home .buy{min-height:44px!important;font-size:12px!important;padding:0 4px!important}
 .buyer-home .bottom-nav button{font-size:10px!important;min-height:44px!important}
 .buyer-home .bottom-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;padding:6px 0!important}
 body .photo img{padding:8px}
}
@media(max-width:340px){
 .buyer-home .cats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
