/* Uniform store card text block: Name > Category > Rating > Location (store_info_html helper) */
.sc-info{display:flex;flex-direction:column;min-width:0;flex:1;gap:0}
.sc-info>*{margin:0}
.sc-info .sc-name{display:flex;align-items:center;gap:4px;margin:0!important;font-size:14px!important;line-height:1.35!important;font-weight:700;color:var(--ink);min-width:0;white-space:nowrap!important}
.sc-info .sc-name-txt{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sc-info .sc-name .verified-badge{flex:0 0 auto}
.sc-info .sc-cat,.sc-info .sc-rate,.sc-info .sc-loc{font-size:12.5px!important;line-height:1.35;color:#6f8580;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sc-info .sc-cat{margin-top:2px!important}
.sc-info .sc-rate{display:flex;align-items:center;gap:4px;margin-top:6px!important;color:var(--ink)}
.sc-info .sc-rate b{font-weight:700;font-size:inherit}
.sc-info .sc-rate em{font-style:normal;color:#80918d}
.sc-info .sc-date{margin-left:auto;padding-left:8px;font-size:11.5px;color:#8fa59e;font-weight:500}
.sc-info .sc-loc{display:flex;align-items:center;gap:4px;margin-top:4px!important}
.sc-info .sc-loc-txt{min-width:0;overflow:hidden;text-overflow:ellipsis}
.sc-ico{display:inline-flex;flex:0 0 auto;width:13px;height:13px}
.sc-ico svg{width:100%;height:100%;stroke-linecap:round;stroke-linejoin:round}
.sc-star{color:#f5a623}.sc-star svg{fill:currentColor;stroke:none}
.sc-pin{color:#8fa59e}.sc-pin svg{fill:none;stroke:currentColor;stroke-width:1.8}
/* uniform card body padding */
.shop-body{padding:12px 14px!important}
.home-newshop{align-items:center}
.home-newshop>.sc-info{padding:2px 0}
.hx-mini>.sc-info{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:0!important;padding:0!important;align-self:center!important}
.hx-shop-body>.sc-info{padding-top:1px}
/* Make sure the store name is not overridden by old span/b rules (e.g. .home-mini-item span / .hx-mini b) */
.sc-info .sc-name,.sc-info .sc-name .sc-name-txt{color:var(--ink)!important;font-size:14px!important;font-weight:700!important;line-height:1.35!important}
.sc-info .sc-rate b{font-size:inherit!important;font-weight:700!important;color:var(--ink)!important}
.sc-info .sc-rate em,.sc-info .sc-rate .sc-date{font-size:inherit}
.sc-info .sc-date{font-size:11.5px!important}
.sc-info .sc-cat,.sc-info .sc-loc,.sc-info .sc-loc-txt{color:#6f8580!important;font-size:12.5px!important;font-weight:400!important}
.sc-info .sc-cat{margin-top:3px!important}
.sc-info .sc-rate{margin-top:5px!important;line-height:1.4}
.sc-info .sc-loc{margin-top:5px!important;line-height:1.4}
/* "Baru" (New) badge */
.hx-mini .hx-mini-new{height:22px!important;padding:0 10px!important;display:inline-flex;align-items:center;border-radius:999px;background:#d9f2e6!important;color:#0a6a4c!important;font-size:11px!important;font-weight:700!important;letter-spacing:.2px;line-height:1;margin:0!important}
/* Mobile cards on /stores, /search, favorites: same top-bottom spacing as "UMKM Terbaru Bergabung" */
@media(max-width:800px){
.result-grid .shop-card{align-items:stretch}
.result-grid .shop-card .media{height:auto!important;min-height:116px}
.result-grid .shop-card .shop-body{display:flex!important;flex-direction:column;justify-content:center;padding:14px 14px!important}
.result-grid .shop-card .shop-body .sc-info{flex:0 0 auto}
.result-grid .shop-body h3.sc-name{font-size:14px!important}
.result-grid .shop-body p.sc-cat,.result-grid .shop-body p.sc-rate,.result-grid .shop-body p.sc-loc{font-size:12.5px!important;margin-bottom:0!important}
.hx-mini{padding:12px!important}
}
/* Mobile /stores, /search, favorites: photo & text aligned top-bottom (name aligned with the photo top, location with the photo bottom) */
@media(max-width:800px){
.result-grid .shop-card{display:grid!important;grid-template-columns:104px minmax(0,1fr)!important;gap:12px;padding:9px!important;align-items:stretch;border-radius:12px}
.result-grid .shop-card .media{height:96px!important;min-height:0!important;border-radius:9px;overflow:hidden}
.result-grid .shop-card .media img{width:100%;height:100%;object-fit:cover}
.result-grid .shop-card .shop-body{height:96px;padding:2px 2px 2px 0!important;display:flex!important;flex-direction:column;justify-content:stretch;min-width:0}
.result-grid .shop-card .shop-body .sc-info{flex:1 1 auto!important;height:100%;justify-content:space-between}
.result-grid .shop-body .sc-info>*{margin-top:0!important}
}
/* ===== "UMKM Terbaru Bergabung" (newest MSMEs): larger photo, text aligned with the photo top-bottom ===== */
.home-newshop{grid-template-columns:112px minmax(0,1fr)!important;gap:12px!important;padding:9px!important;align-items:stretch!important;border-radius:12px!important}
.home-newshop>img{width:112px!important;height:104px!important;border-radius:9px!important;object-fit:cover}
.home-newshop>.sc-info{height:104px;justify-content:space-between;padding:1px 2px 1px 0!important;min-width:0}
.home-newshop>.sc-info>*{margin-top:0!important}
/* ===== "Toko Terbaru" (latest stores): larger photo, aligned text, tidy "Baru" badge ===== */
.home-mini-list .hx-mini{position:relative;display:flex!important;align-items:stretch!important;gap:12px!important;padding:10px!important;border-radius:12px!important}
.home-mini-list .hx-mini>img{flex:0 0 92px!important;width:92px!important;min-width:92px!important;max-width:92px!important;height:92px!important;min-height:92px!important;aspect-ratio:auto;align-self:center!important;border-radius:10px!important}
.home-mini-list .hx-mini>.sc-info{height:92px;justify-content:space-between!important;align-self:center!important;padding:1px 0!important}
.home-mini-list .hx-mini>.sc-info>*{margin-top:0!important}
.home-mini-list .hx-mini>.sc-info .sc-name{
  padding-right:58px!important;
  min-height:22px!important;
  align-items:center!important;
}
.home-mini-list .hx-mini>.hx-mini-new{position:absolute;top:12px;right:12px;align-self:auto!important;height:22px!important;padding:0 11px!important;border-radius:999px!important;background:#0f7a55!important;color:#fff!important;font-size:11px!important;font-weight:700!important;letter-spacing:.3px;box-shadow:0 2px 6px rgba(15,122,85,.25)}
/* ===== Same photo size & spacing on EVERY store card, based on /stores (photo 104x96, padding 9, gap 12) ===== */
.home-newshop{grid-template-columns:104px minmax(0,1fr)!important;gap:12px!important;padding:9px!important}
.home-newshop>img{width:104px!important;height:96px!important}
.home-newshop>.sc-info{height:96px!important;padding:2px 2px 2px 0!important}
.home-mini-list .hx-mini{gap:12px!important;padding:9px!important}
.home-mini-list .hx-mini>img{flex:0 0 104px!important;width:104px!important;min-width:104px!important;max-width:104px!important;height:96px!important;min-height:96px!important}
.home-mini-list .hx-mini>.sc-info{height:96px!important;padding:2px 0!important}
.home-mini-list .hx-mini>.hx-mini-new{
  top:11px!important;
  right:11px!important;
  min-width:40px!important;
  height:22px!important;
  padding:0 9px!important;
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  vertical-align:middle!important;
  line-height:1!important;
  white-space:nowrap!important;
  margin:0!important;
  border-radius:999px!important;
}
