body{background:#f4f5f3}.wrap{max-width:1248px}header .head{gap:18px}main.wrap{padding-top:16px!important}.markethero{display:grid;grid-template-columns:2fr 1fr;gap:6px;height:300px}.heroMain,.heroSmall{position:relative;overflow:hidden;border-radius:5px;background:#e9eee7}.heroMain img,.heroSmall img{width:100%;height:100%;object-fit:cover}.heroRight{display:grid;grid-template-rows:1fr 1fr;gap:6px;min-height:0}.heroSmall{min-height:0}.heroText{position:absolute;bottom:0;left:0;right:0;padding:20px;color:white;background:linear-gradient(transparent,#173b27db)}.heroText h1{font-size:32px;margin:0 0 5px}.heroText a{display:inline-block;background:white;color:#166344;padding:8px 16px;border-radius:4px;margin-top:8px}.heroSmall .heroText{padding:12px;font-weight:600}.heroNav{position:absolute;top:12px;right:12px;display:flex;gap:6px}.heroNav button{background:#fff;color:#166344;padding:5px 12px}.marketlinks{display:grid;grid-template-columns:repeat(5,1fr);background:white;padding:18px 0;text-align:center}.marketlinks a{display:grid;justify-items:center;gap:6px;font-size:13px}.marketlinks svg{width:30px;height:30px;color:#166344}.section{background:#fff;padding:16px;margin-top:15px;border:1px solid #e9e9e5;border-radius:5px}.sectionhead h2{font-size:19px;font-weight:600;margin:0}.sectionhead a{font-size:13px}.categories{grid-template-columns:repeat(7,1fr);gap:0}.cat{border-radius:0;border:1px solid #f0f0ed;padding:12px 6px;font-size:13px}.cat img{display:block;width:68px;height:68px;object-fit:cover;border-radius:50%;margin:0 auto 8px}.products{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.card{border-radius:4px}.pic{height:auto;aspect-ratio:1/1;position:relative;background:#f2f4ef;font-size:13px;color:#69776d}.pic img{object-fit:cover}.pic .photolabel{position:absolute;bottom:0;left:0;right:0;background:#ffffffe8;padding:3px 5px;font-size:10px;text-align:center}.cardbody{padding:9px;gap:5px}.cardbody h3{font-size:14px;font-weight:500;min-height:40px}.price{font-size:18px}.cardbody small{font-size:11px}.actions button{padding:6px;font-size:12px}.marketshop{display:grid;grid-template-columns:1fr 3fr;gap:16px}.shopfeature{border:1px solid #e8ebe6;padding:14px;border-radius:5px}.shopfeature>img{width:100%;height:120px;object-fit:cover;border-radius:4px}.shopfeature h3{margin:10px 0 4px}.shopstats{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px;margin:10px 0}.shopstats b{display:block;color:#166344}.marketshop .products{grid-template-columns:repeat(4,1fr)}.legacy{display:flex;flex-wrap:wrap;gap:10px}.legacy a{padding:8px 12px;border:1px solid #e5e9e2;border-radius:4px;color:#166344}.salehead{color:#bc4a24}.salehead small{font-weight:400}.detail .pic{aspect-ratio:auto}.layout .products{grid-template-columns:repeat(4,1fr)}.shop-actions{display:flex;gap:8px;flex-wrap:wrap}.shopfeature .official-logo{height:42px;object-fit:contain;width:100px}.marketnotice{font-size:12px;color:#69776d;margin:10px 0}.suppliers .supplier{border-radius:5px}.navicon{width:18px;height:18px;vertical-align:middle;margin-right:4px} @media(max-width:900px){.products{grid-template-columns:repeat(3,1fr)}.categories{grid-template-columns:repeat(4,1fr)}.markethero{height:260px}.marketshop{grid-template-columns:1fr}.marketshop .products{grid-template-columns:repeat(3,1fr)}}@media(max-width:600px){.markethero{grid-template-columns:1fr;height:245px}.heroRight{display:none}.heroText h1{font-size:24px}.marketlinks{grid-template-columns:repeat(3,1fr);gap:14px}.categories{grid-template-columns:repeat(3,1fr)}.products,.layout .products,.marketshop .products{grid-template-columns:repeat(2,1fr)}.section{padding:10px}.marketshop{display:block}}
.missing-photo:before{content:'Chờ ảnh gốc';position:absolute;top:40%;left:0;right:0;text-align:center;color:#64766b;font-size:13px}.heroMain.missing-photo:before,.heroSmall.missing-photo:before{content:'Ảnh Nam Lợi chưa tải được';top:20%}.heroMain,.heroSmall{background:#e4ede4}.heroText{background:linear-gradient(transparent,#173b27ed)}.pic span:not(.photolabel){padding:10px;text-align:center}.cat.missing-photo{position:relative;min-height:105px}.cat.missing-photo:before{position:static;display:block;margin:10px 0}.official-logo{width:150px}
.foot{grid-template-columns:2fr 1fr 1fr 1.2fr}@media(max-width:650px){.foot{grid-template-columns:1fr}}
.heroMain,.heroSmall{background:#e4eee4}.heroText{background:linear-gradient(transparent,#173b2dc9);color:white}.pic{position:relative;min-height:145px}.photolabel{display:block}.official-logo{object-fit:contain}.heroMain.missing-photo,.heroSmall.missing-photo{background:#53775d}.cat.missing-photo:before{content:"Ảnh chờ cập nhật";display:block;font-size:11px;color:#68786e}

/* V3.2 catalog horizontal filters like Chotot */
.catalog24{display:block}
.catalog24-crumb{margin:0 0 10px;color:#768173;font-size:14px}
.catalog24-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;background:#fff;border:1px solid #e8ebe6;border-radius:10px;padding:18px 18px 14px;margin-bottom:12px}
.catalog24-head h1{margin:0;font-size:28px;color:#22372b}
.catalog24-note{margin-top:10px;background:#fbf6ea;border:1px solid #eee2c5;border-radius:8px;padding:10px 12px;color:#8a6e38;font-size:14px}
.catalog24-meta{display:flex;align-items:center;gap:12px;white-space:nowrap}
.catalog24-meta span{font-weight:600;color:#2c4134}
.catalog24-meta select{min-width:145px;background:#fff;border:1px solid #dde4dd;border-radius:8px;padding:10px 12px}
.catalog24-filters{background:#fff;border:1px solid #e8ebe6;border-radius:10px;padding:12px 14px;margin-bottom:14px;display:grid;gap:12px}
.catalog24-cats{display:flex;gap:10px;overflow:auto;padding-bottom:2px;scrollbar-width:none}
.catalog24-cats::-webkit-scrollbar{display:none}
.catalog24-cat{min-width:122px;border:1px solid #e3e8e2;border-radius:12px;padding:10px 12px;display:flex;align-items:center;gap:10px;background:#fff;color:#22372b;flex:0 0 auto;transition:.18s}
.catalog24-cat span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#f0f5f1;font-size:17px}
.catalog24-cat b{font-size:14px;font-weight:600;line-height:1.2}
.catalog24-cat:hover,.catalog24-cat.active{border-color:#28a566;background:#eef9f1;color:#176644}
.catalog24-cat.active span{background:#28a566;color:#fff}
.catalog24-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.catalog24-price{display:flex;gap:10px;flex-wrap:wrap}
.catalog24-price button{background:#fff;border:1px solid #dce5dc;color:#315041;border-radius:999px;padding:8px 14px;font-size:14px}
.catalog24-price button.active,.catalog24-price button:hover{background:#eef9f1;border-color:#28a566;color:#176644}

@media(max-width:900px){
  .catalog24-head{flex-direction:column;align-items:stretch}
  .catalog24-meta{justify-content:space-between}
}
@media(max-width:640px){
  .catalog24-head{padding:14px}
  .catalog24-head h1{font-size:24px}
  .catalog24-cats{gap:8px}
  .catalog24-cat{min-width:110px;padding:9px 10px}
  .catalog24-cat span{width:30px;height:30px;font-size:16px}
  .catalog24-price{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
  .catalog24-price button{width:100%}
}

/* V3.4: load more, shared catalog/search/promotion results */
.loadmore34{display:flex;flex-direction:column;align-items:center;gap:10px;margin:24px auto 30px;text-align:center;overflow-anchor:none}.loadmore34 #count34{font-size:12px;color:#69776d}.loadmore34 #more34{min-width:220px;min-height:46px;border:1px solid #1f9c5b;color:#17854d;background:#fff;border-radius:6px;font-weight:600}.loadmore34 #more34:hover{background:#eef8f1}.loadmore34 #more34[hidden]{display:none}.loadmore34 #more34 span{margin-left:8px}@media(max-width:600px){.loadmore34{margin:20px 0}.loadmore34 #more34{width:100%;max-width:340px}}
