/* ===== Halaman /stores: kartu toko bergaya "Toko Pilihan" (logo bulat menumpuk di banner, nama di bawah) ===== */
.result-grid.stores-ov .shop-card.shop-ov{display:block!important;grid-template-columns:none!important;padding:0!important;gap:0!important;overflow:hidden;border-radius:16px!important;background:#fff;border:1px solid var(--line,#e3ece9);box-shadow:0 2px 8px rgba(20,65,57,.05);transition:transform .16s,box-shadow .16s}
.result-grid.stores-ov .shop-card.shop-ov:hover,.result-grid.stores-ov .shop-card.shop-ov:focus-visible{transform:translateY(-3px);box-shadow:0 14px 30px rgba(20,65,57,.12);outline:none}
.result-grid.stores-ov .shop-ov .media{position:relative;height:150px!important;min-height:0!important;border-radius:0!important;overflow:hidden}
.result-grid.stores-ov .shop-ov .media img{position:static!important;width:100%!important;height:100%!important;object-fit:cover;display:block}
.result-grid.stores-ov .shop-ov .media .heart{right:10px;top:10px;width:30px;height:30px;display:grid;place-items:center;box-shadow:0 2px 8px rgba(0,0,0,.14)}
.result-grid.stores-ov .shop-ov .shop-body{display:block!important;height:auto!important;min-width:0;padding:0 14px 14px!important}
.result-grid.stores-ov .shop-ov .shop-ov-logo{position:relative;z-index:2;display:block;width:56px;height:56px;margin:-28px 0 10px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 3px 10px rgba(20,65,57,.2);background:var(--green3,#e7f6f1)}
.result-grid.stores-ov .shop-ov .shop-ov-initial{display:grid;place-items:center;font-size:22px;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--green,#087760),var(--green-dark,#065f4c))}
.result-grid.stores-ov .shop-ov .shop-body .sc-info{display:flex;flex-direction:column;height:auto!important;flex:none!important;justify-content:flex-start!important;padding:0!important}
.result-grid.stores-ov .shop-ov .shop-body .sc-info .sc-name{margin:0!important;white-space:nowrap!important;overflow:visible!important}
.result-grid.stores-ov .shop-ov .shop-body .sc-info .sc-cat{margin-top:3px!important}
.result-grid.stores-ov .shop-ov .shop-body .sc-info .sc-rate{margin-top:5px!important}
.result-grid.stores-ov .shop-ov .shop-body .sc-info .sc-loc{margin-top:5px!important}
.result-grid.stores-ov .shop-ov .shop-body .sc-info .sc-cat,
.result-grid.stores-ov .shop-ov .shop-body .sc-info .sc-rate,
.result-grid.stores-ov .shop-ov .shop-body .sc-info .sc-loc{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:12.5px!important}
@media(max-width:800px){
	.result-grid.stores-ov{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
	.result-grid.stores-ov .shop-card.shop-ov{border-radius:14px!important}
	.result-grid.stores-ov .shop-ov .media{height:104px!important}
	.result-grid.stores-ov .shop-ov .media .heart{right:7px;top:7px;width:26px;height:26px}
	.result-grid.stores-ov .shop-ov .shop-body{padding:0 11px 12px!important}
	.result-grid.stores-ov .shop-ov .shop-ov-logo{width:44px;height:44px;margin:-22px 0 8px;border-width:2px}
	.result-grid.stores-ov .shop-ov .shop-ov-initial{font-size:17px}
}
@media(prefers-reduced-motion:reduce){.result-grid.stores-ov .shop-card.shop-ov{transition:none}}

/* Halaman /search: grid toko memakai kolom otomatis di PC (seperti sebelumnya) dan 2 kolom di HP */
@media(min-width:801px){
	.result-grid.stores-ov.shop-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important;gap:14px!important}
}

/* ===== Beranda: "UMKM Terbaru Bergabung" - ukuran banner tetap seperti semula (104x96), logo bulat di sudut banner ===== */
.home-newshop.hn-ov{grid-template-columns:104px minmax(0,1fr)!important;gap:12px!important;padding:9px!important;align-items:stretch!important;border-radius:12px!important}
.home-newshop.hn-ov .hn-media{position:relative;width:104px;height:96px;border-radius:9px;overflow:hidden;background:var(--green3,#e7f6f1)}
.home-newshop.hn-ov .hn-banner{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover;border-radius:0!important}
.home-newshop.hn-ov .hn-media::after{content:"";position:absolute;left:0;right:0;bottom:0;height:40px;background:linear-gradient(to top,rgba(10,40,34,.38),rgba(10,40,34,0));pointer-events:none}
.home-newshop.hn-ov .hn-logo{position:absolute;z-index:2;left:6px;bottom:6px;width:34px;height:34px;border-radius:50%;object-fit:cover;border:2px solid #fff;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.home-newshop.hn-ov .hn-initial{display:grid;place-items:center;font-size:14px;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--green,#087760),var(--green-dark,#065f4c))}
.home-newshop.hn-ov>.sc-info{height:96px!important;justify-content:space-between;padding:2px 2px 2px 0!important}

/* ===== Beranda: "Toko Terbaru" - banner + logo bulat (ukuran sama dengan UMKM Terbaru Bergabung) ===== */
.home-mini-list .hx-mini.hm-ov{align-items:stretch!important}
.hx-mini.hm-ov .hn-media{position:relative;flex:0 0 104px;width:104px;height:96px;border-radius:9px;overflow:hidden;background:var(--green3,#e7f6f1);align-self:center}
.hx-mini.hm-ov .hn-banner{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;border-radius:0!important}
.hx-mini.hm-ov .hn-media::after{content:"";position:absolute;left:0;right:0;bottom:0;height:40px;background:linear-gradient(to top,rgba(10,40,34,.38),rgba(10,40,34,0));pointer-events:none}
.hx-mini.hm-ov .hn-logo{position:absolute;z-index:2;left:6px;bottom:6px;width:34px;height:34px;border-radius:50%;object-fit:cover;border:2px solid #fff;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.hx-mini.hm-ov .hn-initial{display:grid;place-items:center;font-size:14px;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--green,#087760),var(--green-dark,#065f4c))}

/* ===== Tag lokasi di kartu produk (/products): badge kecil di pojok kiri bawah banner ===== */
.product-card .media .loc-badge{position:absolute;left:8px;bottom:8px;z-index:2;display:inline-flex;align-items:center;gap:4px;max-width:calc(100% - 52px);height:24px;padding:0 10px 0 7px;border-radius:999px;background:rgba(10,28,24,.58);-webkit-backdrop-filter:blur(8px) saturate(140%);backdrop-filter:blur(8px) saturate(140%);border:1px solid rgba(255,255,255,.22);color:#fff;font-size:11.5px;font-weight:600;line-height:1;box-sizing:border-box}
.product-card .media .loc-badge.has-dist{bottom:38px}
.product-card .media .loc-badge .sc-ico{width:12px;height:12px;color:#7ee2c4;flex:0 0 auto}
.product-card .media .loc-badge .sc-ico svg{fill:none;stroke:currentColor;stroke-width:2.2}
.product-card .media .loc-badge-txt{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:800px){
	.product-card .media .loc-badge{left:5px;bottom:5px;height:21px;padding:0 8px 0 6px;font-size:10.5px;max-width:calc(100% - 44px)}
	.product-card .media .loc-badge.has-dist{bottom:30px}
}

/* ===== Perbaikan: logo toko selalu BULAT & ukurannya tetap, tidak ikut aturan lama "img" di dalam kartu (mis. .home-mini-item img{width:68px!important}) ===== */
.hx-mini.hm-ov .hn-logo,
.home-newshop.hn-ov .hn-logo{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;max-height:34px!important;flex:0 0 34px!important;aspect-ratio:1/1!important;border-radius:50%!important;object-fit:cover!important;left:6px!important;bottom:6px!important;top:auto!important;right:auto!important;margin:0!important;padding:0!important}
.hx-mini.hm-ov .hn-banner,
.home-newshop.hn-ov .hn-banner{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;max-width:none!important;flex:none!important;object-fit:cover!important;border-radius:0!important}
.result-grid.stores-ov .shop-ov .shop-ov-logo{width:56px!important;height:56px!important;min-width:56px!important;max-width:56px!important;max-height:56px!important;aspect-ratio:1/1!important;border-radius:50%!important;object-fit:cover!important}
.hx-shop .hx-shop-logo{aspect-ratio:1/1;border-radius:50%!important;object-fit:cover}
.ph-store-top .ph-store-logo{border-radius:50%!important;aspect-ratio:1/1;object-fit:cover}
@media(max-width:800px){
	.result-grid.stores-ov .shop-ov .shop-ov-logo{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;max-height:44px!important}
}

/* Halaman Wishlist: toko 4 kolom di PC, 2 kolom di HP (kartu sama dengan /stores) */
@media(min-width:801px){
	.result-grid.stores-ov.wishlist-stores{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
}

/* ===== Keranjang (/cart): same layout on PC & mobile. Right column, top to bottom: quantity stepper, line total, "Hapus". Info on the left. ===== */
.cart-line{grid-template-columns:76px minmax(0,1fr) auto!important;grid-template-areas:"img info qty" "img info total" "img info remove"!important;grid-template-rows:auto auto 1fr!important;column-gap:14px!important;row-gap:6px!important}
.cart-line-info{gap:3px}
.cart-line-actions{display:contents!important}
.cart-line .qty-stepper{grid-area:qty;justify-self:end}
.cart-line .cart-remove-form{grid-area:remove;justify-self:end;align-self:end}
.cart-line-total{grid-area:total;justify-self:end;align-self:center;text-align:right;font-size:15px;color:var(--ink,#173b4f)}
.cart-line-actions .cart-remove{padding:4px 2px;font-size:11.5px}
.cart-line .cart-line-actions .qty-stepper{display:inline-flex;align-items:center;gap:1px;width:max-content;padding:2px;border:1px solid #d3e5de;border-radius:999px;background:#fff;overflow:visible}
.cart-line .cart-line-actions .qty-stepper button{width:24px;height:24px;padding:0;border:0;border-radius:50%;background:var(--green3,#e7f6f1);color:var(--green,#087760);font-size:15px;font-weight:700;line-height:1;display:grid;place-items:center;cursor:pointer;transition:background .15s,color .15s}
.cart-line .cart-line-actions .qty-stepper button:hover:not(:disabled){background:var(--green,#087760);color:#fff}
.cart-line .cart-line-actions .qty-stepper button:disabled{opacity:.35;cursor:not-allowed}
.cart-line .cart-line-actions .qty-stepper input{width:26px!important;min-width:0;height:24px;padding:0!important;border:0!important;background:transparent!important;text-align:center;font-size:12.5px;font-weight:700;color:var(--ink,#173b4f)}
@media(max-width:520px){
	.cart-line{grid-template-columns:64px minmax(0,1fr) auto!important;column-gap:10px!important}
	.cart-line-total{font-size:14.5px}
	.cart-line-img,.cart-line-img img{width:64px;height:64px}
}

/* ===== Blog list (/blog) mobile: full-width cover on top, text below; chips scroll without a scrollbar ===== */
@media(max-width:800px){
	.blog-grid{grid-template-columns:1fr;gap:12px}
	.blog-grid .blog-card{display:block;border-radius:12px;overflow:hidden}
	.blog-grid .blog-card img{display:block;width:100%;height:auto;min-height:0;aspect-ratio:16/9;object-fit:cover}
	.blog-grid .blog-card .blog-card-body{padding:12px 14px 14px}
	.blog-grid .blog-card .blog-card-body h3{font-size:15px;line-height:1.35;margin:6px 0}
	.blog-grid .blog-card .blog-card-body p{font-size:12.5px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
	.blog-list-head{gap:10px;align-items:flex-end}
	.blog-list-head>div{min-width:0;flex:1}
	.blog-list-head select{flex:0 0 auto}
	.page>.chips{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:6px;margin:0 0 12px!important;padding:2px 0;scrollbar-width:none;-ms-overflow-style:none}
	.page>.chips::-webkit-scrollbar{display:none;width:0;height:0}
	.page>.chips button{flex:0 0 auto;white-space:nowrap}
}

/* ===== Blog detail (/blog/{slug}) ===== */
.bd-crumb{display:flex;align-items:center;gap:7px;margin:0 0 12px;font-size:12.5px;color:#7a8e88}
.bd-crumb a{color:var(--green);font-weight:600}
.bd-crumb a:hover{text-decoration:underline}
.bd-page .blog-layout{align-items:start}
.bd-page .bd-article{padding:22px 24px}
.bd-head{margin-bottom:16px}
.bd-cat{display:inline-block;background:var(--green3);color:var(--green);font-size:12px;font-weight:700;padding:4px 11px;border-radius:999px}
.bd-page .bd-head h1{margin:10px 0 12px;font-size:28px;line-height:1.25;letter-spacing:-.5px;color:var(--ink)}
.bd-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;font-size:12.5px;color:#7a8e88}
.bd-meta>span:not(:first-child):before{content:"";display:inline-block;width:3px;height:3px;border-radius:50%;background:#b3c4be;margin-right:14px;vertical-align:middle}
.bd-author{display:inline-flex;align-items:center;gap:7px;color:#355a50;font-weight:600}
.bd-author i,.bd-comment>i{width:26px;height:26px;border-radius:50%;background:var(--green);color:#fff;font-style:normal;font-size:12px;font-weight:700;display:grid;place-items:center;flex:0 0 auto}
.bd-page .bd-cover{display:block;width:100%;height:auto;aspect-ratio:16/8;object-fit:cover;border-radius:10px;margin:0 0 20px}
.bd-page .bd-content{font-size:15px;line-height:1.85;color:#2f4d45}
.bd-content>p:first-child{font-size:16px;color:#3b5b52}
.bd-content p{margin:0 0 14px}
.bd-content h2{font-size:20px;line-height:1.3;color:var(--ink);margin:26px 0 10px;letter-spacing:-.2px}
.bd-content h3{font-size:17px;color:var(--ink);margin:20px 0 8px}
.bd-content ul,.bd-content ol{margin:0 0 14px;padding-left:22px}
.bd-content li{margin-bottom:6px}
.bd-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:18px}
.bd-tags span{font-size:12px;color:#5d776f;background:var(--tint);border:1px solid var(--tint-line);padding:4px 10px;border-radius:999px}
.bd-share{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:20px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.bd-share b{font-size:13px;color:var(--ink);margin-right:4px}
.bd-page .comment-box{margin-top:22px}
.bd-comment{display:flex;gap:10px;align-items:flex-start;padding:12px 0}
.bd-comment p{margin:3px 0 0}
.bd-aside{position:sticky;top:74px;display:grid;gap:12px}
@media(max-width:800px){
	.bd-crumb{margin-bottom:8px}
	.bd-page .bd-article{padding:14px}
	.bd-page .bd-head h1{font-size:22px}
	.bd-page .bd-cover{aspect-ratio:16/9;border-radius:8px;margin-bottom:16px}
	.bd-page .bd-content{font-size:14px;line-height:1.8}
	.bd-content>p:first-child{font-size:15px}
	.bd-content h2{font-size:18px}
	.bd-aside{position:static}
}

/* ===== Blog: font style/size aligned with the site's uniform typography (same tokens as product/store cards & section titles) ===== */
.blog-sidebar-card h3{font-size:var(--fs-lg)!important;font-weight:700;letter-spacing:-.3px;line-height:1.3;color:var(--ink);margin:0 0 10px}
.blog-sidebar-list b{font-size:var(--fs-md)!important;font-weight:600!important;line-height:1.35;color:var(--ink);letter-spacing:0}
.blog-card-body h3,.blog-grid .blog-card .blog-card-body h3{font-size:var(--fs-md)!important;font-weight:600;line-height:1.35;color:var(--ink);letter-spacing:0}
.blog-card-body small{font-size:var(--fs-sm)!important}
.blog-card-body p,.blog-grid .blog-card .blog-card-body p{font-size:var(--fs-sm)!important;line-height:1.55}

/* ===== Blog detail: clickable category badge, share buttons with monochrome icons, single divider above comments ===== */
a.bd-cat{transition:background .15s,color .15s}
a.bd-cat:hover{background:var(--green);color:#fff}
.bd-share .btn svg{width:15px;height:15px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.bd-page .comment-box{border-top:0!important;padding-top:0!important;margin-top:18px}

/* ===== Blog comments: login hint, "commenting as", replies ===== */
.bd-page .comment-box{scroll-margin-top:76px}
.bd-login-hint{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.bd-login-hint .btn{flex:0 0 auto}
.bd-as{display:flex;align-items:center;gap:8px;font-size:var(--fs-sm);color:#46655d}
.bd-as i{width:26px;height:26px;border-radius:50%;background:var(--green);color:#fff;font-style:normal;font-size:12px;font-weight:700;display:grid;place-items:center}
.bd-as b{color:var(--ink)}
.bd-comment .bd-c-body{min-width:0;flex:1}
.bd-reply-btn{border:0;background:none;padding:2px 0;margin-top:4px;color:var(--green);font-size:var(--fs-sm);font-weight:600;cursor:pointer}
.bd-reply-btn:hover{text-decoration:underline}
.bd-thread{border-bottom:1px solid #edf2f0}
.bd-thread>.bd-comment,.bd-replies>.bd-comment{border-bottom:0}
.bd-replies{margin-left:36px;padding-left:14px;border-left:2px solid var(--tint-line)}
.bd-replies .bd-comment{padding:8px 0}
.bd-replies .bd-comment>i{width:22px;height:22px;font-size:11px}
.bd-reply-slot{margin-left:36px}
.bd-reply-form{margin:6px 0 12px 36px}
.bd-reply-form[hidden]{display:none!important}
.bd-reply-slot .bd-reply-form{margin-left:0}
.bd-reply-actions{display:flex;gap:8px}
.bd-reply-actions .btn{flex:0 0 auto}
@media(max-width:800px){
	.bd-login-hint{flex-direction:column;align-items:stretch}
	.bd-replies,.bd-reply-slot{margin-left:18px}
	.bd-replies{padding-left:10px}
}

/* ===== Store cards (/stores, /search, wishlist): distance badge in the TOP-LEFT corner of the banner, aligned with the
   heart button (top-right), so the round logo overlapping the banner bottom no longer covers it. Product cards unchanged. ===== */
.result-grid.stores-ov .shop-ov .media .dist-badge{top:13px;bottom:auto;left:10px;right:auto;max-width:calc(100% - 60px);overflow:hidden;white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,.14)}
@media(max-width:800px){
	.result-grid.stores-ov .shop-ov .media .dist-badge{top:9.5px;left:7px;max-width:calc(100% - 44px)}
}
