/* Shopping comes first: search, categories, then real catalogue products. */
.market-page{background:#f2f3f4;color:#202522;font-family:Arial,sans-serif}
.market-page .market-topline{background:#fff;border-bottom:1px solid #e5e7e5}
.market-page .market-topline .container{min-height:32px;font-size:12px}
.market-page .market-topline span{font-size:11px}
.market-page .market-topline a{font-size:12px}
.market-page .market-header{background:#fff;box-shadow:0 2px 6px #0000000d}
.market-page .market-nav{gap:20px;min-height:88px}
.market-page .market-brand{min-width:170px;font-family:Arial,sans-serif}
.market-page .market-brand small{font-size:11px}
.market-page .global-search{min-height:48px;border-radius:6px}
.market-page .global-search input{font-size:16px}
.market-page .global-search button{font-size:15px;padding:0 20px}
.market-page .header-actions{gap:16px}
.market-page .header-actions a,.market-page .header-actions button{font-size:14px;min-height:44px}
.market-page .seller-header-link{white-space:nowrap;color:#075b34;font-weight:700;border:1px solid #b9cfc1;padding:10px;border-radius:6px}
.market-page .market-subnav{gap:24px;padding:10px 0}
.market-page .market-subnav a,.market-page .market-subnav button{font-size:13px;min-height:30px;display:inline-flex;align-items:center}
.market-page main{padding-top:12px}
.store-category-strip{margin:0 0 14px;padding:12px;background:white;border-radius:8px}
.market-page .category-showcase{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:0}
.market-page .category-showcase button{border:0;padding:8px;gap:4px;border-radius:6px;min-width:0}
.market-page .category-showcase svg{height:48px;width:60px;margin:0;padding:4px;border-radius:6px}
.market-page .category-showcase b{font-size:14px;line-height:1.3;color:#202522}
.market-page .category-showcase span{display:none}
.market-page #shop{margin:0 0 24px}
.market-page #shop>.section-heading{padding:14px 18px;margin:0;background:#075b34;color:#fff;border-radius:8px 8px 0 0}
.market-page #shop>.section-heading h2{font-size:23px;margin:0;color:white}
.market-page #btnRefresh{font-size:13px;color:white;min-height:36px}
.market-page .catalog-layout{gap:16px;padding:16px 0 0;grid-template-columns:190px minmax(0,1fr)}
.market-page .catalog-sidebar h3{font-size:18px}
.market-page .category-filters button{font-size:15px;min-height:44px}
.market-page .seller-help b,.market-page .seller-help p,.market-page .seller-help a{font-size:13px}
.market-page .mobile-shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:0}
.market-page .mobile-shop-toolbar>label{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;color:#202522}
.market-page .mobile-shop-toolbar select{font-size:14px;min-height:44px;margin:0;width:auto;padding:8px;border:1px solid #c6cec8;background:white;border-radius:6px}
.market-page #mobileFilterToggle{display:flex;align-items:center;justify-content:center;gap:14px;min-height:44px;border:1px solid #c6cec8;border-radius:6px;background:white;padding:8px 16px;font:inherit}
.market-page .shop-controls[data-mobile-open="false"]{display:none}
.market-page .shop-controls[data-mobile-open="true"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:14px;gap:14px}
.market-page .shop-controls label{font-size:14px;color:#35473c}
.market-page .shop-controls input,.market-page .shop-controls select{font-size:16px;min-height:44px}
.market-page .catalog-shortcuts{margin:0 0 10px;gap:6px}
.market-page .catalog-shortcuts button{font-size:13px;min-height:40px;padding:8px 12px;border-radius:6px}
.market-page .catalog-heading{padding:0 0 10px}
.market-page .catalog-heading h3{font-size:17px}
.market-page .catalog-heading span{font-size:13px}
.market-page .listing-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.market-page .listing{background:white;border:1px solid #e0e5e1;border-radius:7px;overflow:hidden;box-shadow:0 1px 3px #00000008}
.market-page .listing:hover{box-shadow:0 3px 12px #00000018}
.market-page .listing .product-media{height:170px;background:white}
.market-page .listing .product-media img{width:100%;height:100%;object-fit:contain}
.market-page .listing .product-body{padding:12px}
.market-page .listing h3{font-size:15px;line-height:1.4;margin:6px 0;min-height:42px}
.market-page .listing .price{font-size:21px;font-weight:700;color:#202522;margin:7px 0}
.market-page .listing .category,.market-page .listing .full-price-label,.market-page .listing .product-estimate{display:none}
.market-page .listing .seller-marker,.market-page .listing .stock-label{font-size:11px;line-height:1.4}
.market-page .product-actions button{min-height:42px;font-size:13px}
.market-page .product-body .text-button{font-size:13px;min-height:36px}
.market-page #stores{margin-top:28px}
.market-page #stores>.muted-note{display:none}
.store-help-bar{display:flex;flex-wrap:wrap;gap:16px 28px;background:white;padding:16px;border-radius:8px;margin:20px 0}
.store-help-bar a{font-size:15px;color:#075b34;text-decoration:underline}
@media(max-width:1050px){.market-page .listing-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.market-page .header-actions{gap:8px}.market-page .market-nav{gap:12px}.market-page .seller-header-link{padding:8px}.market-page .header-actions button span{display:none}}
@media(max-width:768px){
  .market-page .container{width:calc(100% - 20px)}
  .market-page .market-nav{min-height:112px;padding:10px 0;gap:8px;flex-wrap:wrap}
  .market-page .market-brand{min-width:0;font-size:18px}
  .market-page .market-brand small{display:none}
  .market-page .market-brand img{height:32px;width:32px}
  .market-page .header-actions{gap:8px;margin-left:auto}
  .market-page .header-actions a,.market-page .header-actions button{font-size:12px;min-height:40px}
  .market-page #wishlistButton{display:none}
  .market-page .seller-header-link{padding:8px;font-size:12px}
  .market-page .global-search{flex-basis:100%;min-height:46px;height:46px}
  .market-page .market-subnav{padding:6px 0;gap:20px}
  .market-page .market-subnav a,.market-page .market-subnav button{font-size:12px}
  .market-page main{padding-top:8px}
  .store-category-strip{padding:8px;margin-bottom:10px}
  .market-page .category-showcase{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
  .market-page .category-showcase button{flex:0 0 88px;min-width:88px;padding:6px 2px}
  .market-page .category-showcase svg{height:42px;width:48px}
  .market-page .category-showcase b{font-size:12px}
  .market-page #shop>.section-heading{padding:10px 12px}
  .market-page #shop>.section-heading h2{font-size:20px}
  .market-page .catalog-layout{display:block;padding-top:10px}
  .market-page .catalog-sidebar{display:none}
  .market-page .mobile-shop-toolbar{gap:8px;flex-wrap:wrap}
  .market-page .mobile-shop-toolbar>label{font-size:14px;gap:5px;min-width:0;flex:1}
  .market-page .mobile-shop-toolbar select{max-width:160px;min-width:0;font-size:16px!important;padding:6px;min-height:44px}
  .market-page #mobileFilterToggle{font-size:14px;padding:8px 12px}
  .market-page #mobileRefresh{display:none}
  .market-page .shop-controls[data-mobile-open="true"]{grid-template-columns:1fr 1fr}
  .market-page .shop-controls .mobile-category-label{display:grid}
  .market-page .catalog-shortcuts{overflow:auto;flex-wrap:nowrap}
  .market-page .catalog-shortcuts button{font-size:12px;flex-shrink:0;min-height:40px}
  .market-page .listing-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .market-page .listing .product-media{height:150px}
  .market-page .listing h3{font-size:14px;min-height:40px}
  .market-page .listing .price{font-size:19px}
  .market-page .listing .product-body{padding:10px}
  .market-page .product-actions button{font-size:12px;min-height:44px}
  .market-page .catalog-heading{padding-bottom:8px}
  .market-page .catalog-heading h3{font-size:16px}
}
@media(max-width:360px){.market-page .header-actions{gap:5px}.market-page .market-brand{font-size:16px}.market-page .seller-header-link{font-size:11px;padding:6px}.market-page .market-brand img{width:28px;height:28px}.market-page .listing .product-media{height:130px}}

.market-page .empty-catalog{grid-column:1/-1;padding:32px 20px;background:#fff;border:1px solid #e0e5e1;border-radius:7px;text-align:center}
.market-page .empty-catalog h3{font-size:20px;min-height:0}
.market-page .empty-catalog p,.market-page .empty-catalog a{font-size:16px}
.market-page .market-topline span{color:#354c42}
.market-page .market-topline a{color:#075b34;font-weight:700}
.market-page .category-filters button{color:#263c30}
.market-page .empty-catalog p{color:#354c42}
.market-page .listing .seller-marker,.market-page .listing .stock-label{font-size:12px;color:#354c42}

/* Compact footer with clear, separately tappable links on phones. */
.market-page .market-footer{padding:28px 0;background:#fff;border-top:1px solid #dce3df;color:#203d2c}
.market-page .market-footer>.market-footer-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start}
.market-page .market-footer .market-brand{min-width:0;max-width:100%;font-size:20px}
.market-page .market-footer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 20px;min-width:0}
.market-page .market-footer-links a{display:flex;align-items:center;min-height:44px;font-size:15px;line-height:1.5;color:#203d2c;overflow-wrap:anywhere}
.market-page .market-footer .market-footer-legal{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px 24px;align-items:center;border-top:1px solid #dce3df;padding-top:18px;min-width:0}
.market-page .market-footer-legal a{font-size:14px;min-height:44px;display:inline-flex;align-items:center;color:#203d2c}
.market-page .market-footer-legal small{font-size:13px;line-height:1.6;color:#3b5043;overflow-wrap:anywhere}
@media(max-width:768px){
  .market-page .market-footer>.market-footer-layout{grid-template-columns:minmax(0,1fr);gap:18px;align-items:stretch}
  .market-page .market-footer-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px}
  .market-page .market-footer-links a{font-size:15px;padding:8px 0;min-height:48px}
  .market-page .market-footer .market-footer-legal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px;padding-top:14px}
  .market-page .market-footer-legal small{grid-column:1/-1}
}
