/* Product discovery and mobile buying controls. */
.market-header{position:relative;z-index:40}.search-wrap{position:relative}.search-panel{position:absolute;top:calc(100% + 9px);left:0;right:0;z-index:45;background:#fff;color:#203a2b;border:1px solid #dce8df;border-radius:16px;box-shadow:0 16px 42px #103c2726;overflow:hidden}.search-caption{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid #edf2ee;font-size:13px;color:#668170}.search-caption button{padding:2px 8px;background:transparent;color:#526e5b;font-size:22px;min-height:36px;min-width:36px}.search-suggestions{max-height:390px;max-height:min(390px,50dvh);overflow-y:auto}.search-option{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;border-radius:0;width:100%;padding:12px 14px;background:#fff;color:#203a2b;text-align:left;font-weight:400;min-height:72px;border-bottom:1px solid #f0f4f1}.search-option:hover,.search-option[aria-selected=true]{background:#edf7ef;filter:none}.search-thumb{height:48px;background:#f6f8f6;border-radius:8px;padding:3px;overflow:hidden}.search-thumb img{width:100%;height:100%;object-fit:contain}.search-thumb .photo-missing{font-size:9px}.search-option-name{font-weight:600;font-size:14px;line-height:1.35;overflow-wrap:anywhere}.search-option-volume{display:block;color:#738478;font-size:12px;margin-top:4px}.search-option-price{color:#12633a;font-size:14px;font-weight:700;white-space:nowrap}.search-all{border-radius:0;width:100%;padding:14px;background:#f0f6f1;color:#12633a;font-size:14px;text-align:left}.search-empty{margin:0;padding:22px 16px;line-height:1.5;font-size:14px;color:#617867}.search-empty strong{display:block;color:#203a2b;margin-bottom:5px}
.recent-section{margin:36px 0 20px}.recent-section .section-title{align-items:center;margin-bottom:16px;gap:8px}.recent-section h2{font-size:24px;margin:0}.recent-note{margin:5px 0 0;font-size:13px;color:#738478}.recent-clear{background:transparent;color:#52705c;font-size:14px;padding:10px 0;min-height:44px}.recent-grid{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 80px)/6);gap:16px;overflow-x:auto;scroll-snap-type:x proximity;padding:0 0 12px;scrollbar-width:thin;scrollbar-color:#bfd7c6 transparent}.recent-card{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid #e6ece7;border-radius:16px;padding:10px;scroll-snap-align:start}.recent-open{padding:0;background:none;color:#263b2b;text-align:left;border-radius:10px;font-weight:400}.recent-photo{display:block;height:150px;background:#f7f9f7;border-radius:10px;padding:10px;margin-bottom:12px}.recent-photo img{width:100%;height:100%;object-fit:contain}.recent-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;line-height:1.4;min-height:42px;font-weight:600}.recent-volume{display:block;font-size:13px;color:#738478;margin:5px 0}.recent-price{display:block;font-size:20px;font-weight:700;color:#187b3f;margin:6px 0 12px}.recent-card>.add{margin-top:auto;min-height:44px;padding:10px;font-size:14px}.recent-card .quick-quantity{font-size:14px;min-height:44px}.recent-card .quick-quantity button{min-width:40px;padding:6px}.recent-card .quick-quantity .in-cart{font-size:13px}.recent-card .quick-quantity small{font-size:11px}
.mobile-buybar{display:none}
@media(max-width:1100px){.recent-grid{grid-auto-columns:calc((100% - 48px)/4)}}
@media(max-width:760px){.recent-grid{grid-auto-columns:166px;gap:12px}.recent-section{margin-top:28px}.recent-section h2{font-size:22px}.recent-photo{height:145px}.recent-name{font-size:14px}.storefront.has-mobile-buybar{padding-bottom:calc(114px + env(safe-area-inset-bottom))}.has-mobile-buybar .mobile-shop-nav{display:none}.mobile-buybar{display:grid;grid-template-columns:minmax(0,1fr) minmax(148px,1.05fr);align-items:center;gap:10px;position:fixed;bottom:0;left:0;right:0;z-index:26;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dbe7de;box-shadow:0 -5px 24px #1835210a}.mobile-buy-info{min-width:0}.mobile-buy-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#617567;line-height:1.35}.mobile-buy-volume{display:block;font-size:12px;color:#617567;margin:2px 0}.mobile-buy-price{display:block;font-size:23px;line-height:1.25;color:#12633a;letter-spacing:-.5px}.mobile-buy-action{min-width:0}.mobile-buy-action>.add{min-height:48px;width:100%;padding:10px 8px;font-size:15px}.mobile-buy-action .quick-quantity{min-height:48px}.mobile-buy-action .quick-quantity button{min-width:44px;padding:6px}.mobile-buy-action .in-cart{font-size:14px}.has-mobile-buybar .toast{bottom:calc(116px + env(safe-area-inset-bottom))}.search-panel{border-radius:12px}.search-option{gap:8px;padding:10px;grid-template-columns:38px minmax(0,1fr) auto}.search-option-name{font-size:14px}.search-option-price{font-size:13px}.search-caption{padding:7px 10px}.search-caption span{font-size:12px}}
@media(prefers-reduced-motion:reduce){.recent-grid{scroll-behavior:auto}}
@media(max-width:760px){
 .storefront .market-header header{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:12px 10px;align-items:center;padding-top:16px!important;padding-bottom:16px!important}
 .storefront .market-header .brand{min-width:0;margin:0;font-size:clamp(16px,4.9vw,22px);gap:8px;letter-spacing:-.5px}
 .storefront .market-header .brand-mark{width:34px;height:34px;flex-basis:34px;font-size:19px}
 .storefront .market-header .brand small{font-size:8px;letter-spacing:0;white-space:normal;line-height:1.3}
 .storefront .market-header .catalog-button{display:none}
 .storefront .market-header .search-wrap{grid-column:1/-1;order:4;min-width:0;width:100%}
 .storefront .header-favorites{position:relative;width:44px;min-height:44px;padding:0;font-size:25px;gap:3px}
 .storefront .header-favorites span{font-size:9px;white-space:nowrap}
 .storefront .header-favorites b{position:absolute;top:-2px;right:1px;min-width:15px;height:15px;border-radius:12px;background:#e8f4c1;color:#335227;font-size:10px;line-height:15px;padding:0 3px}
 .storefront #cart-toggle{min-width:44px;width:44px;min-height:44px;padding:0;font-size:9px;gap:3px}
 .storefront #cart-toggle svg{width:25px;height:25px}
}
