/* ==========================================================================
   Ranch Market 印尼店铺站（blibli 店铺 RAM-70107 1:1 复刻）
   文件：site/assets/base.css —— 全站设计系统

   它是什么：
     本站的唯一样式表。基准是「源站（www.blibli.com）店铺页 + 商品页/购物车/结账/会员」
     的实测版式（尺寸、间距、字号、圆角、阴影全部按源站量取），
     见本文件各段注释里标注的源站实测值。

   品牌改造（只有一个地方改）：
     文件末尾「RANCH MARKET 品牌主题」一节把源站的主色（blibli 蓝 #0072FF 一族）
     整体改写为 Ranch Market 红（#B11016 一族，取自源站店铺官方 logo 实测像素）。
     因为全站所有组件都通过 CSS 变量 var(--blue…) 取主色，
     所以**改那 6 行变量 = 全站换品牌色**，其余版式度量一个像素都不动。

   像素埋点位置（重要）：
     与样式无关。FB Pixel ID 在 site/assets/app.js 顶部第 24 行附近（config.fbPixelId），
     事件触发点见该文件顶部注释与 README 第 5 节。

   契约相关（《建站结账页契约》v1.0）：
     §4.2 禁止写 iframe{display:none} / 全局 pointer-events:none 之类的全局规则
          —— 本文件没有任何 iframe 隐藏规则（验证屏是同页 srcdoc iframe）；
     §7.4 不得给 srcdoc iframe 加 sandbox 样式干扰。
     因此本文件**不包含** iframe 相关规则，也不做全局 pointer-events 覆盖。

   结构导航（段落顺序）：
     01 设计变量  02 复位  03 顶部条/头部/巨型菜单  04 首页各区块
     05 商品卡    06 类目页/筛选/分页  07 商品详情页(PDP)  08 购物车
     09 表单/会员 10 结账页  11 条款页  12 页脚  13 移动端底栏
     14 响应式    15 RANCH MARKET 品牌主题 + 店铺页专属组件（本文件新增段）
   ========================================================================== */

/* ==========================================================================
   Blibli clone · 设计系统
   取色与版式参照 www.blibli.com 桌面/移动双端截图（2026-11）
   ========================================================================== */

:root {
  --blue: #0072ff;
  --blue-dark: #0059d6;
  --blue-darker: #0047ad;
  --blue-soft: #e8f1ff;
  --blue-softer: #f3f8ff;
  --ink: #19222a;
  --ink-2: #2b3844;
  --muted: rgba(25, 34, 42, .7);
  --muted-2: rgba(25, 34, 42, .4);
  --line: #e7e9eb;
  --line-2: #f0f2f4;
  --input-line: #c8cbcd;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-soft-2: #fafbfc;
  --red: #e01b30;
  --red-soft: #ffeef0;
  --orange: #f05a00;
  --yellow: #ffcd00;
  --green: #1c832a;
  --green-soft: #eaf7ec;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 2px rgba(25, 34, 42, .06), 0 2px 8px rgba(25, 34, 42, .04);
  --shadow-2: 0 4px 16px rgba(25, 34, 42, .1);
  --shadow-pop: 0 8px 28px rgba(25, 34, 42, .16);
  --header-h: 104px;
  --font: "Blibli", Roboto, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; }
p { margin: 0; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.wrap { width: min(100% - 32px, 1200px); margin: 0 auto; }
.wrap-narrow { width: min(100% - 32px, 1120px); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- top strip */
.topbar { background: #fff; border-bottom: 1px solid var(--line-2); font-size: 11px; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 18px; height: 32px; align-items: center; }
.topbar a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.topbar a:hover { color: var(--blue); }
.topbar .sep { width: 1px; height: 12px; background: var(--line); }

/* ------------------------------------------------------------------- header */
.header { background: #fff; position: sticky; top: 0; z-index: 900; }
.header-main { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; flex: none; }
.logo img { height: 34px; width: auto; }
.logo-fallback { font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--blue); }

.search { flex: 1; position: relative; max-width: 737px; }
.search form { display: flex; align-items: center; height: 40px; background: #fff; border: 1px solid var(--input-line); border-radius: 8px; padding: 4px 4px 4px 12px; transition: border-color .15s; }
.search form:focus-within { border-color: var(--blue); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; min-width: 0; }
.search input::placeholder { color: var(--muted-2); }
.search .go { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.search .go:hover { background: var(--blue-dark); }
.search-sug { position: absolute; top: 48px; left: 0; right: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 8px 0; z-index: 950; max-height: 420px; overflow: auto; }
.search-sug .h { font-size: 11px; color: var(--muted); padding: 8px 16px 4px; text-transform: uppercase; letter-spacing: .04em; }
.search-sug a { display: flex; gap: 10px; align-items: center; padding: 8px 16px; font-size: 13px; }
.search-sug a:hover { background: var(--blue-softer); }
.search-sug img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; background: var(--bg-soft); }
.search-sug .p { margin-left: auto; font-weight: 700; color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.m-scan { display: none; width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); place-items: center; flex: none; }
.m-address { display: none; }
.header-actions .m-login { display: none; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.icon-btn.cart { background: var(--blue); color: #fff; }
.icon-btn.cart:hover { background: var(--blue-dark); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

.btn-auth { height: 34px; padding: 0 18px; border-radius: 17px; border: 1px solid var(--blue); background: #fff; color: var(--blue); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }
.btn-auth.solid { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-auth:hover { filter: brightness(.96); }
.header-user { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); padding: 6px 10px; border-radius: 18px; }
.header-user:hover { background: var(--bg-soft); }
.header-user .av { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 12px; }

.header-nav { display: flex; align-items: center; gap: 22px; height: 40px; border-bottom: 1px solid var(--line-2); }
.nav-cat { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink); height: 100%; }
.nav-cat:hover { color: var(--blue); }
.header-nav .links { display: flex; align-items: center; gap: 18px; font-size: 12px; color: var(--muted); }
.header-nav .links a:hover { color: var(--blue); }
.header-nav .right { margin-left: auto; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.header-nav .right a { display: inline-flex; align-items: center; gap: 6px; }

/* mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--shadow-pop); border-top: 1px solid var(--line-2); z-index: 940; display: none; }
.mega.open { display: block; }
.mega-inner { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: 420px; max-height: min(70vh, 620px); }
.mega-roots { border-right: 1px solid var(--line-2); overflow: auto; padding: 10px 0; background: var(--bg-soft-2); }
.mega-roots a { display: flex; align-items: center; gap: 9px; padding: 10px 18px; font-size: 13px; color: var(--ink-2); }
.mega-roots a:hover, .mega-roots a.on { background: #fff; color: var(--blue); font-weight: 700; }
.mega-panels { overflow: auto; padding: 18px 26px; }
.mega-panel { display: none; }
.mega-panel.on { display: block; }
.mega-panel h4 { font-size: 13px; color: var(--ink); margin: 0 0 10px; }
.mega-cols { columns: 3; column-gap: 26px; }
.mega-cols a { display: block; font-size: 12px; color: var(--muted); padding: 4px 0; break-inside: avoid; }
.mega-cols a:hover { color: var(--blue); }

.cat-tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.cat-tiles .pcard { align-items: center; text-align: center; gap: 8px; }
.cat-tiles .pcard .name { min-height: 0; font-size: 12px; font-weight: 600; }
.cat-tiles .pcard .thumb { width: 100%; }

/* 通栏长 banner（源站 Histeria 12.12） */
a.promo-row.single { display: block; border-radius: 16px; overflow: hidden; }
img.long-banner { display: block; width: 100%; aspect-ratio: 1200 / 170; object-fit: cover; background: #eef1f5; }

/* trust 真实图标 */
.trust .ti { width: 22px; height: 22px; object-fit: contain; flex: none; }

/* 会员区图标 */
.member-panel .gift .gico { width: 42px; height: 42px; object-fit: contain; }

/* 页脚 logo 条 */
#footer-logos .fl-block { margin-bottom: 16px; }
#footer-logos h6 { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
#footer-logos .fl-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#footer-logos .fl-row img { height: 26px; width: auto; object-fit: contain; filter: grayscale(.15); }
#footer-logos .fl-row img:hover { filter: none; }

/* ---------------------------------------------- 热卖专区（TOP100 · 5 折） */
#sec-hot .hot-sub { font-size: 13px; color: var(--muted); }
.hot-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.hot-card { background: #fff; border-radius: 8px; display: flex; flex-direction: column; }
.hot-card .thumb { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #fff; }
.hot-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.hot-card .hot-badge { position: absolute; top: 8px; left: 8px; background: #e01b30; color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; border-radius: 4px; padding: 0 5px; }
.hot-card .nm { font-size: 14px; font-weight: 500; line-height: 18px; color: var(--ink); margin: 5px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 36px; }
.hot-card .nm:hover { color: var(--blue); }
.hot-card .pr { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; white-space: nowrap; }
.hot-card .pr b { font-size: 16px; font-weight: 700; color: var(--red); }
.hot-card .pr s { font-size: 12px; color: var(--muted-2); }
.hot-card .rate { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; }
.hot-card .rate .st { color: #f5a623; letter-spacing: -1px; }
.hot-card .rate b { color: var(--ink); }
.hot-card .rate .mo { color: var(--red); }
.hot-card .quote { margin-top: 6px; background: #f7f8fa; border-radius: 6px; padding: 6px 8px; font-size: 11.5px; line-height: 15px; color: var(--muted); }
.hot-card .quote .q-st { color: #f5a623; display: block; margin-bottom: 2px; letter-spacing: -1px; }
.hot-card .quote .q-t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hot-card .quote .q-u { display: block; margin-top: 3px; color: var(--muted-2); }
.hot-card .quote.empty-q { color: var(--muted-2); font-style: italic; }
.hot-card .hot-add { margin-top: 8px; height: 32px; border-radius: 6px; width: 100%; }
.hot-more-wrap { text-align: center; padding: 20px 0 4px; }
.hot-more-wrap .btn { min-width: 210px; height: 42px; border-radius: 64px; font-size: 14px; }

/* ----------------------------------------------------------- home hero */
.section { padding: 24px 0 0; }
.section-head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.section-head h2 { font-size: 20px; font-weight: 600; line-height: 24px; color: var(--ink); }
.section-head .more { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--blue); }

.hero { padding: 16px 0 0; }
.hero-carousel { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.hero-track { display: flex; transition: transform .45s cubic-bezier(.2, .7, .3, 1); }
.hero-slide { min-width: 100%; aspect-ratio: 2000 / 500; background: var(--bg-soft); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; pointer-events: none; }
.hero-nav button { pointer-events: auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow-1); display: grid; place-items: center; font-size: 18px; color: var(--ink-2); }
.hero-cap { display: flex; align-items: center; gap: 14px; padding: 8px 4px 2px; font-size: 12px; color: var(--muted); }
.hero-cap .tag { font-weight: 600; letter-spacing: .01em; }
.hero-cap .cap-mid { margin: 0 auto; border: 1px solid var(--input-line); border-radius: 14px; padding: 2px 12px; font-size: 12px; color: var(--ink-2); background: #fff; }
.hero-cap .cap-dots { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--input-line); border-radius: 12px; padding: 3px 8px; background: #fff; }
.hero-cap .cap-dots button { width: 6px; height: 6px; border-radius: 50%; border: 0; background: #d5d9dd; padding: 0; }
.hero-cap .cap-dots button.on { background: var(--blue); width: 14px; border-radius: 3px; }

.trust { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 16px 0 14px; flex-wrap: wrap; }
.trust div { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.trust svg { color: var(--blue); flex: none; }

.quick-box { position: relative; display: flex; align-items: center; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(25, 34, 42, .08), 0 2px 10px rgba(25, 34, 42, .06); padding: 10px 12px; }
.quick { display: flex; gap: 6px; overflow: auto; flex: 1; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick a { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.quick a:hover { background: var(--bg-soft); }
.quick a .tile { width: 28px; height: 28px; border-radius: 8px; background: var(--bg-soft); display: grid; place-items: center; font-size: 16px; }
.quick a:hover .tile { background: var(--blue-soft); }
.quick a .tile-img { width: 28px; height: 28px; object-fit: contain; }
.quick-arrow { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow-1); font-size: 18px; color: var(--ink-2); }

/* 三连促销 banner */
.promo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.promo-row.single { grid-template-columns: 1fr; gap: 0; border-radius: 16px; overflow: hidden; }
.promo-row.single .promo-banner { border-radius: 0; }
.promo-banner { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
.promo-banner img { width: 100%; aspect-ratio: 1200 / 170; object-fit: cover; background: #fff; }
.promo-banner .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px 12px; color: #fff; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55)); }
.promo-banner .cap b { display: block; font-size: 15px; }
.promo-banner .cap span { font-size: 12px; opacity: .92; }

/* Member baru? Ini promo mu! —— 源站：1200×278 / bg #DCEFFF / r16 / p16 / gap16 */
.member-panel { background: #dcefff; border-radius: 16px; padding: 16px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.member-panel .head { display: flex; align-items: center; }
.member-panel .head h2 { font-size: 16px; font-weight: 600; color: var(--ink); }
.member-panel .head .more { margin-left: auto; font-size: 14px; color: var(--blue); font-weight: 600; }
.member-panel .body { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: center; }
.member-panel .gift { text-align: left; }
.member-panel .gift .ico { font-size: 20px; }
.member-panel .gift .cb { font-size: 16px; line-height: 22px; color: var(--ink); margin-top: 4px; }
.member-panel .gift .cb b { font-size: 22px; font-weight: 600; }
.member-panel .gift .code { font-size: 12px; color: var(--muted); margin: 6px 0 10px; }
.member-panel .gift .btn { width: 100%; height: 34px; border-radius: 8px; font-size: 14px; }
.member-panel .row { display: flex; gap: 12px; overflow: auto; padding-bottom: 2px; }
.member-panel .row::-webkit-scrollbar { display: none; }
.mcard { flex: none; width: 158px; background: #fff; border-radius: 8px; padding: 0 0 6px; display: block; }
.mcard .th { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #fff; }
.mcard .th img { width: 100%; height: 100%; object-fit: contain; }
.mcard .pr { font-size: 14px; font-weight: 600; margin: 4px 6px 0; color: var(--ink); }
.mcard .st { font-size: 12px; color: var(--muted-2); text-decoration: line-through; margin: 0 6px; }

/* flash sale */
.flash { background: linear-gradient(90deg, #0057ff 0%, #0a3fd8 55%, #0033cc 100%); border-radius: var(--radius-lg); padding: 0; overflow: hidden; }
.flash-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: #fff; }
.flash-head .t { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.flash-head .t .bolt { color: var(--yellow); }
.flash-timer { display: flex; align-items: center; gap: 3px; font-size: 13px; font-variant-numeric: tabular-nums; }
.flash-timer .clock { margin-right: 4px; font-size: 12px; opacity: .9; }
.flash-timer b { font-variant-numeric: tabular-nums; }
.flash-head .note { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; opacity: .95; }
.flash-head .note::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); display: inline-block; }
.flash-head .more { margin-left: auto; font-size: 13px; color: #fff; font-weight: 600; }
.flash-body { position: relative; background: #fff; display: flex; gap: 0; overflow: auto; scroll-behavior: smooth; }
.flash-body::-webkit-scrollbar { display: none; }
.flash-item { flex: none; width: 148px; padding: 8px 8px 10px; border-right: 1px solid var(--line-2); }
.flash-item:hover { background: #fafbfc; }
.flash-item .th { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.flash-item .th img { width: 100%; height: 100%; object-fit: contain; }
.flash-item .pr { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.flash-item .st { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.flash-item .st .hot { color: var(--red); font-weight: 600; }
.row-arrow { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow-1); font-size: 18px; line-height: 1; color: var(--ink-2); }
.progress { height: 4px; border-radius: 3px; background: #ffe0e5; overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #ff8a3d, #ff5a1f); border-radius: 3px; }

/* Lagi disuka di Blibli —— 源站：r16 / p12-16 / 浅底 */
#sec-discuss .discuss-wrap, .discuss-panel { background: #f7f9fb; border-radius: 16px; padding: 12px 16px 14px; }
.discuss-panel { position: relative; }
.discuss-panel .row-arrow.in-panel { position: absolute; right: 8px; top: 46%; }
.row-arrow.in-panel { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow-1); font-size: 18px; color: var(--ink-2); }
.discuss-row { display: flex; gap: 12px; overflow: auto; padding-bottom: 4px; }
.discuss-row::-webkit-scrollbar { display: none; }
.dcard { flex: none; width: 168px; display: block; }
.dcard .th { aspect-ratio: 1; background: #fff; border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.dcard .th img { width: 100%; height: 100%; object-fit: contain; }
.dcard .lbl { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.dcard .lbl .pct { color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.dcard .lbl .pct::before { content: ''; width: 12px; height: 12px; background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e01b30' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.dcard .lbl .nm { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Special deals 行：1 个 promo 方块 + 5 张商品卡 */
.deals-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.promo-tile { background: linear-gradient(180deg, #fff7db 0%, #fdeec2 100%); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.promo-tile .pt-head .lbl { display: block; font-size: 12px; color: #7a5200; }
.promo-tile .pt-head b { font-size: 19px; line-height: 1.2; color: #4a3200; }
.promo-tile .pt-img { margin-top: 10px; border-radius: 10px; overflow: hidden; background: #fff; }
.promo-tile .pt-img img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* seller favorit */
.seller-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.scard { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 10px 12px; text-align: center; }
.scard .thumb { aspect-ratio: 1; background: var(--bg-soft); border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.scard .thumb img { width: 100%; height: 100%; object-fit: contain; }
.scard .brand { width: 46px; height: 46px; margin: -23px auto 8px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; color: var(--blue); position: relative; }
.scard .lbl { font-size: 11.5px; color: var(--muted); }

/* galeri promo */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery-grid a { border-radius: 12px; overflow: hidden; background: var(--bg-soft); display: block; }
.gallery-grid img { width: 100%; aspect-ratio: 2000 / 500; object-fit: cover; }

/* keyword chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-key { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 7px 14px; font-size: 12.5px; color: var(--ink-2); }
.chip-key:hover { border-color: var(--blue); color: var(--blue); }

/* product card —— 按源站实测：180×323 / 图 180×180 r8 / 标题 14-500 lh18 / 价 16-600 */
.grid-products { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.grid-products.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-products.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-products.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pcard { background: #fff; border: 0; border-radius: 8px; padding: 0 0 8px; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; position: relative; }
.pcard:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.pcard .thumb { aspect-ratio: 1; background: #fff; border-radius: 8px; overflow: hidden; display: grid; place-items: center; position: relative; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: contain; }
.pcard .pdisc { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; line-height: 16px; border-radius: 4px; padding: 0 4px; }
.pcard .name { font-size: 14px; font-weight: 500; line-height: 18px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 36px; margin: 4px 8px 0; }
.pcard .price { display: flex; align-items: baseline; gap: 6px; flex-wrap: nowrap; margin: 4px 8px 0; font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; }
.pcard .price s { font-size: 12px; font-weight: 500; color: var(--muted-2); text-decoration: line-through; }
.pcard .price .disc { font-size: 12px; font-weight: 500; color: var(--orange); font-style: normal; }
.pcard .sub { font-size: 12px; font-weight: 500; line-height: 16px; color: var(--muted); margin: 2px 8px 0; height: 16px; overflow: hidden; }
.pcard .labels { display: flex; gap: 4px; margin: 4px 8px 0; height: 16px; overflow: hidden; }
.pcard .labels .lbl { font-size: 11px; font-weight: 600; line-height: 16px; border-radius: 4px; padding: 0 3px; }
.pcard .labels .lbl.orange { color: var(--orange); background: #fff; }
.pcard .labels .lbl.green { color: var(--green); background: #fff; }
.pcard .meta { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--muted); margin: 4px 8px 0; white-space: nowrap; overflow: hidden; }
.pcard .rate { color: var(--muted); font-weight: 500; }
.pcard .meta .dot { width: 2px; height: 2px; border-radius: 50%; background: #797f85; display: inline-block; }
.pcard .sold { color: var(--muted); }
.pcard .loc { font-size: 12px; font-weight: 500; line-height: 16px; color: var(--muted); margin: 3px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .loc::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px;
  background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23797f85' stroke-width='2'%3E%3Cpath d='M12 21s7-6.1 7-11a7 7 0 1 0-14 0c0 4.9 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.pcard .badges { display: flex; gap: 4px; flex-wrap: wrap; }
.badge { font-size: 10px; padding: 1px 5px; border-radius: 3px; background: var(--bg-soft); color: var(--muted); font-weight: 600; }
.badge.ori { background: var(--blue-soft); color: var(--blue); }
.badge.free { background: var(--green-soft); color: var(--green); }

/* ---------------------------------------------------------------- category */
.cat-hero { border-radius: var(--radius-lg); overflow: hidden; margin: 14px 0; background: var(--bg-soft); }
.cat-hero img { width: 100%; max-height: 220px; object-fit: cover; }
.cat-icons { display: flex; gap: 6px; overflow: auto; padding: 10px 0 4px; }
.cat-icons::-webkit-scrollbar { display: none; }
.cat-icons a { flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-2); text-align: center; padding: 8px 6px; border-radius: 10px; }
.cat-icons a:hover { background: var(--bg-soft); }
.cat-icons .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; font-size: 20px; }

.listing { display: grid; grid-template-columns: 236px 1fr; gap: 18px; align-items: start; padding: 16px 0 40px; }
.filters { position: sticky; top: calc(var(--header-h) + 8px); }
.filter-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; background: #fff; }
.filter-box h4 { font-size: 13px; margin-bottom: 10px; }
.filter-box .opts { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow: auto; }
.filter-box label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.filter-box input[type=checkbox] { accent-color: var(--blue); }
.filter-box .num { margin-left: auto; color: var(--muted-2); font-size: 11px; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font-size: 12px; }

.listing-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.listing-head h1 { font-size: 18px; }
.listing-head .cnt { color: var(--muted); font-size: 12px; }
.sorts { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.sort-btn { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--ink-2); }
.sort-btn.on { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); font-weight: 700; }

.pager { display: flex; justify-content: center; gap: 6px; margin: 24px 0 0; }
.pager button { min-width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink-2); }
.pager button.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }

/* -------------------------------------------------------------------- PDP */
.crumb { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); padding: 14px 0; flex-wrap: wrap; }
.m-trust, .m-bar, .m-back, .m-count { display: none; }
.crumb a:hover { color: var(--blue); }
.crumb .sep { color: var(--muted-2); }

.pdp { display: grid; grid-template-columns: 420px 1fr 300px; gap: 24px; align-items: start; padding-bottom: 20px; }
.gallery .main { border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; background: #fff; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow: auto; }
.gallery .thumbs button { flex: none; width: 62px; height: 62px; border: 2px solid transparent; border-radius: 8px; padding: 0; overflow: hidden; background: #fff; }
.gallery .thumbs button.on { border-color: var(--blue); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.share { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.share a { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; }

.pdp-title { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 4px 0 8px; }
.pdp-price { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.pdp-price .cur { font-size: 20px; margin-right: 2px; }
.pdp-sub { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 12px; color: var(--ink-2); background: #fff; }
.chip.hot { border-color: #ffe0b2; background: #fff8e1; color: #b26a00; }
.chip.blue { border-color: #cfe2ff; background: var(--blue-softer); color: var(--blue); }

.highlight { background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; margin: 14px 0; }
.highlight h5 { font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.highlight li { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 8px; padding: 3px 0; }
.highlight li svg { color: var(--blue); flex: none; margin-top: 2px; }

/* 评分 pill + 配送行（源站 PDP） */
.pdp-ratingpill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--ink-2); margin: 10px 0 0; width: fit-content; cursor: pointer; }
.pdp-ratingpill .rp-star { color: #f5a623; font-size: 12px; }
.pdp-ratingpill b { font-weight: 600; }
.pdp-ratingpill .rp-count { color: var(--muted); }
.pdp-ship { display: flex; align-items: center; gap: 8px; width: 100%; margin: 10px 0 0; padding: 12px 0; border: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: none; font-size: 12.5px; color: var(--ink-2); text-align: left; cursor: pointer; }
.pdp-ship svg { flex: none; color: var(--muted); }
.pdp-ship i { margin-left: auto; font-style: normal; color: var(--muted-2); font-size: 16px; }

.variant-note { font-size: 12.5px; line-height: 18px; color: var(--muted); background: #f7f8fa; border-radius: 8px; padding: 9px 11px; }
.opt:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.opt-block { margin: 14px 0; }
.opt-block h5 { font-size: 13px; margin-bottom: 8px; }
.opt-list { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { min-width: 64px; height: 36px; padding: 0 12px; border: 1px dashed #c8cbcd; border-radius: 8px; background: #fff; font-size: 12.5px; color: var(--ink-2); }
.opt.on { border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font-weight: 600; }

/* 优惠券区块（源站 PDP） */
.voucher-block .vb-head { display: flex; align-items: center; margin-bottom: 8px; }
.voucher-block .vb-head h5 { margin: 0; font-size: 14px; }
.voucher-block .vb-head a { margin-left: auto; font-size: 13px; color: var(--blue); font-weight: 600; }
.vb-card { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.vb-card .vb-ico { width: 34px; height: 34px; border-radius: 8px; background: var(--blue-soft); display: grid; place-items: center; font-size: 17px; }
.vb-card b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.vb-card small { font-size: 11.5px; color: var(--muted); }
.vb-card small span { color: var(--blue); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 36px; }
.qty button { width: 36px; height: 36px; border: 0; background: #fff; font-size: 16px; color: var(--ink-2); }
.qty button:hover { background: var(--bg-soft); }
.qty input { width: 46px; height: 36px; border: 0; text-align: center; font-size: 13px; outline: 0; }

.pdp-actions { display: flex; gap: 10px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent; font-size: 14px; font-weight: 700; background: var(--blue); color: #fff; }
.btn:hover { background: var(--blue-dark); }
.btn.ghost { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn.ghost:hover { background: var(--blue-softer); }
.btn.soft { background: var(--bg-soft); color: var(--ink-2); border-color: transparent; }
.btn.block { width: 100%; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 12.5px; border-radius: 6px; }
.btn[aria-busy=true] { opacity: .9; }

.seller-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; }
.seller-card .top { display: flex; gap: 10px; align-items: center; }
.seller-card .av { width: 38px; height: 38px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; }
.seller-card .nm { font-size: 13px; font-weight: 700; }
.seller-card .sh { font-size: 11.5px; color: var(--muted); }
.seller-card .stats { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.seller-card .stats b { display: block; color: var(--ink); font-size: 13px; }

.pickup { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-top: 12px; background: #fff; }
.pickup h5 { font-size: 13px; display: flex; gap: 6px; align-items: center; }
.pickup .pt { display: flex; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 12px; }
.pickup .pt:first-of-type { border-top: 0; }
.pickup .pt .nm { font-weight: 600; }
.pickup .pt .addr { color: var(--muted); font-size: 11.5px; }
.pickup .pt .ok { margin-left: auto; color: var(--green); font-weight: 700; font-size: 11px; white-space: nowrap; }

.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-top: 10px; overflow: auto; }
.tabs button { border: 0; background: none; padding: 12px 2px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; }
.tab-pane { padding: 18px 0 10px; }

.rating-sum { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; padding: 8px 0 18px; }
.rating-sum .big { font-size: 40px; font-weight: 800; line-height: 1; }
.rating-sum .stars { color: #f5a623; font-size: 16px; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bars .row { display: grid; grid-template-columns: 44px 1fr 38px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--muted); }
.bars .bar { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.bars .bar i { display: block; height: 100%; background: #f5a623; }

.review { border-top: 1px solid var(--line-2); padding: 16px 0; }
.review .who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.review .when { font-size: 11.5px; color: var(--muted-2); margin-left: auto; }
.review .txt { font-size: 13px; color: var(--ink-2); margin: 8px 0; }
.review .imgs { display: flex; gap: 6px; }
.review .imgs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.review .meta { font-size: 11.5px; color: var(--muted); display: flex; gap: 12px; margin-top: 8px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table td { padding: 9px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.spec-table td:first-child { width: 220px; color: var(--muted); }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); z-index: 800; display: none; }
.sticky-buy .in { display: flex; align-items: center; gap: 14px; height: 68px; }
.sticky-buy img { width: 44px; height: 44px; object-fit: contain; }
.sticky-buy .nm { font-size: 12.5px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-buy .tot { margin-left: auto; text-align: right; font-size: 11px; color: var(--muted); }
.sticky-buy .tot b { display: block; font-size: 16px; color: var(--ink); }

/* --------------------------------------------------------------- cart etc */
.m-cartbar { display: none; }
.cart-store { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.cart-store .st-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.cart-store .st-ico { font-size: 15px; }
.cart-store .st-badge { margin-left: auto; font-size: 11px; color: var(--blue); background: var(--blue-soft); border-radius: 4px; padding: 1px 6px; }
.page-head { padding: 22px 0 6px; }
.page-head h1 { font-size: 22px; }
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; padding-bottom: 40px; }
.cart-list { border: 1px solid var(--line); border-radius: var(--radius); }
.cart-row { display: grid; grid-template-columns: 92px 1fr 120px 130px 40px; gap: 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line-2); }
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 92px; height: 92px; object-fit: contain; border-radius: 8px; background: var(--bg-soft); }
.cart-row .nm { font-size: 13px; }
.cart-row .pr { font-weight: 700; }
.cart-row .rm { border: 0; background: none; color: var(--muted); }
.sum-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: calc(var(--header-h) + 8px); }
.sum-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; color: var(--ink-2); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 16px; font-weight: 800; color: var(--ink); }
.checkout-steps { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); padding: 10px 0 16px; }
.checkout-steps b { color: var(--blue); }

/* -------------------------------------------------------------- forms/auth */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; height: 42px; border: 1px solid #d9d9d9; border-radius: 8px; padding: 0 12px; font-size: 14px; outline: 0; background: #fff; }
.field textarea { height: auto; padding: 10px 12px; min-height: 78px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 114, 255, .1); }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.field .err { font-size: 11.5px; color: var(--red); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-line { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--ink-2); }
.check-line input { margin-top: 2px; accent-color: var(--blue); }

.auth-wrap { min-height: calc(100vh - 300px); display: grid; place-items: center; padding: 40px 16px 60px; background: linear-gradient(180deg, var(--blue-softer), #fff 60%); }
.auth-card { width: min(100%, 440px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-1); padding: 26px; }
.auth-card h1 { font-size: 20px; margin-bottom: 4px; }
.auth-card .sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.auth-alt a { color: var(--blue); font-weight: 700; }
.alert { border-radius: 8px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 14px; }
.alert.ok { background: var(--green-soft); color: #00753f; }
.alert.err { background: var(--red-soft); color: #b3001f; }
.alert.info { background: var(--blue-soft); color: var(--blue-darker); }

/* ---------------------------------------------------------------- checkout */
.m-paybar { display: none; }
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 20px; align-items: start; padding-bottom: 40px; }
.co-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; background: #fff; }
.co-card h3 { font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.co-card h3 .step { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; display: grid; place-items: center; }
.deliv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deliv-opt { border: 1px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; font-size: 12.5px; }
.deliv-opt.on { border-color: var(--blue); background: var(--blue-softer); }
.deliv-opt b { display: block; margin-bottom: 3px; }
.pay-list { display: flex; flex-direction: column; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; cursor: pointer; font-size: 13px; }
.pay-opt.on { border-color: var(--blue); background: var(--blue-softer); }
.pay-opt .tag { margin-left: auto; font-size: 11px; color: var(--muted); }
.card-fields { display: grid; grid-template-columns: 1fr 130px 100px; gap: 10px; margin-top: 10px; }
.card-fields input { height: 40px; border: 1px solid #d9d9d9; border-radius: 8px; padding: 0 11px; font-size: 14px; letter-spacing: .02em; outline: 0; }
.card-fields input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 114, 255, .1); }
.co-summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: calc(var(--header-h) + 8px); background: #fff; }
.co-summary h3 { font-size: 14px; margin-bottom: 12px; }
.co-items { max-height: 260px; overflow: auto; margin-bottom: 10px; }
.co-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 12.5px; }
.co-item img { width: 46px; height: 46px; object-fit: contain; border-radius: 6px; background: var(--bg-soft); }
.co-item .q { color: var(--muted); font-size: 11.5px; }
.co-item .p { margin-left: auto; font-weight: 700; white-space: nowrap; }
#bp-error { color: var(--red); font-size: 12.5px; min-height: 18px; margin: 8px 0; }
.bp-card-fields { transition: opacity .2s; }

/* ------------------------------------------------------------------ policy */
.policy { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; padding: 16px 0 50px; }
.policy-nav { position: sticky; top: calc(var(--header-h) + 8px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.policy-nav a { display: block; padding: 11px 14px; font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.policy-nav a:last-child { border-bottom: 0; }
.policy-nav a.on { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.policy-body { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.policy-body h2 { font-size: 20px; color: var(--ink); margin: 0 0 14px; }
.policy-body h3 { font-size: 15px; color: var(--ink); margin: 22px 0 8px; }
.policy-body p { margin: 0 0 10px; }
.policy-body li { margin: 0 0 6px 18px; list-style: disc; }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line-2); background: #fff; margin-top: 30px; padding: 28px 0 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.footer-brand img { height: 26px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-cols h5 { font-size: 13px; margin-bottom: 10px; }
.footer-cols a { display: block; font-size: 12px; color: var(--muted); padding: 3px 0; }
.footer-cols a:hover { color: var(--blue); }
.footer-cols .grp { margin-top: 14px; }
.footer-cols .grp h5 { font-size: 13px; }
.footer-acc { border-top: 1px solid var(--line-2); margin-top: 22px; }
.footer-acc details { border-bottom: 1px solid var(--line-2); }
.footer-acc summary { padding: 14px 0; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; }
.footer-acc summary::-webkit-details-marker { display: none; }
.footer-acc summary::after { content: '+'; margin-left: auto; color: var(--muted); font-weight: 400; font-size: 18px; }
.footer-acc details[open] summary::after { content: '−'; }
.footer-acc .in { padding: 0 0 14px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.footer-seo { font-size: 12px; color: var(--muted); }
.footer-seo h4 { font-size: 14px; color: var(--ink); margin: 18px 0 8px; }
.footer-bottom { border-top: 1px solid var(--line-2); margin-top: 18px; padding-top: 14px; font-size: 11.5px; color: var(--muted-2); }
.footer-bottom a { color: var(--muted); }

/* ------------------------------------------------------ mobile tab / drawer */
.mtab { display: none; }
.mfilter-btn { display: none; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: rgba(33, 33, 33, .94); color: #fff; font-size: 13px; padding: 11px 18px; border-radius: 24px; opacity: 0; pointer-events: none; transition: .22s; z-index: 1200; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.sk { background: linear-gradient(90deg, #f2f4f7 25%, #e9edf2 37%, #f2f4f7 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 6px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ico { font-size: 42px; margin-bottom: 10px; opacity: .5; }

/* 类目页搜索框：桌面隐藏，手机显示 */
.cat-search { display: none; }

/* ------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flash-body { grid-template-columns: repeat(4, 1fr); }
  .deals-row, .seller-row, .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pdp { grid-template-columns: 360px 1fr; }
  .pdp .side { grid-column: 1 / -1; }
  .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
  .co-summary, .sum-card { position: static; }
}

@media (max-width: 900px) {
  .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .promo-row { grid-template-columns: 1fr; }
  .member-panel .body { grid-template-columns: 1fr; }
  .deals-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seller-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { display: none; }
  .logo { display: none; }
  .m-scan { display: grid; }
  .header-main { height: 56px; gap: 8px; padding: 0; }
  .header-main .search { max-width: none; }
  .header-main .search form { height: 38px; padding: 3px 3px 3px 10px; }
  .header-main .search .go { width: 32px; height: 32px; }
  .header-nav { display: none; }
  .m-address { display: block; padding: 0 0 10px; font-size: 14px; color: var(--ink); }
  .m-address a { display: inline-flex; align-items: center; gap: 4px; }
  .header-actions .bell { display: none; }
  .header-actions .btn-auth { display: none; }
  .header-actions .btn-auth.solid { display: none; }
  .header-actions .icon-btn.cart { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .header-user { padding: 2px; }
  .header-actions .header-user span:last-child { display: none; }
  .header-actions .icon-btn.cart { width: 38px; height: 38px; }
  .header-actions .m-login { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 10px; border-radius: 19px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
  .listing { grid-template-columns: 1fr; }
  /* 热卖专区：平板 3 列 */
  .hot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .cat-search { display: block; margin: 0 0 10px; }
  .cat-search input { width: 100%; height: 40px; border: 1px solid var(--input-line); border-radius: 8px; padding: 0 12px; font-size: 14px; outline: 0; background: #fff; }
  .cat-search input:focus { border-color: var(--blue); }
  /* 手机端筛选：底部 sheet（源站从底部滑出） */
  .filters { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 84vh; background: #fff; z-index: 1000; padding: 8px 16px 16px; overflow: auto; transform: translateY(102%); transition: transform .28s cubic-bezier(.2,.7,.3,1); box-shadow: 0 -8px 28px rgba(25,34,42,.18); display: block; border-radius: 16px 16px 0 0; }
  .filters.open { transform: none; }
  .filters::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: #dcdfe3; margin: 4px auto 12px; }
  .filters .filter-box { border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 12px 0; margin: 0; }
  .filters .filter-box:last-of-type { border-bottom: 0; }
  .filters #f-apply { position: sticky; bottom: 0; height: 46px; border-radius: 10px; font-size: 15px; box-shadow: 0 -6px 16px #fff; }
  .mfilter-btn { display: inline-flex; position: sticky; top: 96px; z-index: 30; margin: 8px 0; width: 100%; justify-content: center; }
  .policy { grid-template-columns: 1fr; }
  .policy-nav { position: static; display: flex; overflow: auto; }
  .policy-nav a { white-space: nowrap; border-bottom: 0; border-right: 1px solid var(--line-2); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .mtab { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 57px; background: #fff; border-top: 1px solid var(--line); z-index: 850; padding-bottom: env(safe-area-inset-bottom); }
  .mtab a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; line-height: 12px; color: var(--muted); }
  .mtab a.on { color: var(--blue); }
  .mtab a .b { position: relative; display: inline-flex; }
  .mtab a .cnt { position: absolute; top: -6px; right: -10px; background: var(--red); color: #fff; font-size: 9px; border-radius: 8px; padding: 0 4px; }
  body { padding-bottom: 57px; }
  .sticky-buy { bottom: 57px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .grid-products, .grid-products.g5, .grid-products.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

  /* 手机端商品卡：源站 2 列、名字 12/500、价 14/600（源站手机卡片**不显示 -N% 文字**，
     折扣只体现在图片左上角的角标；价格行是 nowrap+overflow，留着 -N% 会把百分号截断） */
  .pcard .price .disc { display: none; }
  .pcard .name { font-size: 12px; line-height: 16px; height: 32px; margin: 4px 6px 0; }
  .pcard .price { font-size: 14px; margin: 3px 6px 0; gap: 4px; }
  .pcard .price s { font-size: 11px; }
  .pcard .price .disc { font-size: 11px; }
  .pcard .sub, .pcard .labels { display: none; }
  .pcard .meta { font-size: 11px; margin: 3px 6px 0; }
  .pcard .loc { font-size: 11px; margin: 2px 6px 0; }
  .pcard .pdisc { font-size: 10px; top: 6px; left: 6px; }

  .section { padding: 16px 0 0; }
  .section-head { margin-bottom: 12px; }
  .section-head h2 { font-size: 20px; font-weight: 700; line-height: 24px; }
  .section-head .more { font-size: 13px; }

  /* header / hero */
  .hero { padding: 8px 0 0; }
  .hero-carousel { overflow: hidden; }
  .hero-track { gap: 10px; }
  .hero-slide { min-width: 88%; aspect-ratio: 2000 / 760; border-radius: 12px; overflow: hidden; }
  .hero-slide img { border-radius: 12px; }
  .hero-cap { gap: 8px; font-size: 11px; padding: 6px 2px 0; }
  .hero-cap .cap-mid { font-size: 11px; padding: 1px 8px; }
  .hero-nav button { width: 26px; height: 26px; font-size: 15px; }
  .trust { gap: 18px; padding: 12px 0 10px; font-size: 13px; flex-wrap: nowrap; overflow: auto; justify-content: flex-start; }
  .trust::-webkit-scrollbar { display: none; }
  .trust div { flex: none; font-size: 13px; }
  .quick-box { background: none; box-shadow: none; padding: 0; }
  .quick { gap: 4px; }
  .quick a { flex-direction: column; gap: 6px; padding: 4px 2px; width: 76px; text-align: center; white-space: normal; }
  .quick a .tile, .quick a .tile-img { width: 52px; height: 52px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(25,34,42,.12); font-size: 24px; }
  .quick a span:last-child { font-size: 10px; line-height: 14px; font-weight: 500; color: var(--ink); }
  .quick-arrow { display: none; }

  /* 会员 / 闪购 / 横滑卡 */
  .member-panel { padding: 14px; border-radius: 14px; }
  .member-panel .head h2 { font-size: 18px; font-weight: 700; line-height: 24px; }
  .member-panel .head .more { font-size: 14px; font-weight: 600; }
  .member-panel .gift .cb { font-size: 20px; }
  .member-panel .gift .cb b { font-size: 26px; }
  .member-panel .row { gap: 8px; }
  .mcard { width: 124px; }
  .flash-item { width: 118px; padding: 8px 6px; }
  .flash-item .pr { font-size: 13px; }
  .flash-head { gap: 8px; padding: 10px 12px; }
  .flash-head .t { font-size: 16px; }
  .flash-head .note { display: none; }
  .flash-head .more { font-size: 12px; }
  .flash-timer { font-size: 12px; }
  .dcard { width: 124px; }
  .discuss-panel { padding: 12px; }

  /* 区块栅格 */
  .deals-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .promo-tile { display: none; }
  .seller-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .scard { padding: 8px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 8px; }
  .gallery-grid img { aspect-ratio: 2000 / 640; }
  .chips { gap: 6px; }
  .chip-key { padding: 6px 12px; font-size: 12px; }

  /* 购物车 / 结账：吸底条 */
  .m-cartbar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 57px; height: 64px; padding: 8px 16px; background: #fff; box-shadow: 0 -1px 6px rgba(0,0,0,.1); z-index: 860; }
  .m-cartbar .tot { font-size: 12px; color: var(--muted); }
  .m-cartbar .tot b { display: block; font-size: 16px; color: var(--ink); }
  .m-cartbar .btn { margin-left: auto; height: 44px; border-radius: 64px; padding: 0 20px; font-size: 14px; }
  body:has(.m-cartbar) { padding-bottom: 150px; }
  .cart-grid .sum-card { display: none; }
  .m-paybar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 57px; height: 64px; padding: 8px 16px; background: #fff; box-shadow: 0 -1px 6px rgba(0,0,0,.1); z-index: 860; }
  .m-paybar .tot { font-size: 12px; color: var(--muted); }
  .m-paybar .tot b { display: block; font-size: 16px; color: var(--ink); }
  .m-paybar .btn { margin-left: auto; height: 44px; border-radius: 64px; padding: 0 22px; font-size: 14px; }
  body:has(.m-paybar) { padding-bottom: 150px; }
  .cart-row { border-bottom: 0; }
  .sum-card { margin-top: 0; }

  /* 手机端热卖专区：2 列，首屏 6 个 + 「Temukan lebih banyak」每次 +6 */
  .hot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hot-card .nm { font-size: 12px; line-height: 16px; height: 32px; }
  .hot-card .pr b { font-size: 15px; }
  .hot-card .quote { font-size: 11px; line-height: 14px; padding: 5px 6px; margin-top: 5px; }
  .hot-card .quote .q-t { -webkit-line-clamp: 2; }
  .hot-card .quote .q-st { margin-bottom: 1px; }
  .hot-card .hot-add { height: 30px; font-size: 12px; }
  .hot-more-wrap .btn { width: 100%; }
  .hot-more-wrap { padding: 16px 0 0; }

  /* PDP / 购物车 / 结账 */
  .pdp { grid-template-columns: 1fr; gap: 14px; }
  .gallery { margin: 0 -16px; }
  .gallery .main { aspect-ratio: 1; border: 0; border-radius: 0; }
  .gallery .thumbs { display: none; }
  .gallery .share { display: none; }
  .m-back { display: grid; position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(25, 34, 42, .55); color: #fff; place-items: center; z-index: 5; }
  .m-count { display: block; position: absolute; right: 12px; bottom: 12px; background: rgba(25, 34, 42, .6); color: #fff; font-size: 12px; font-weight: 600; border-radius: 12px; padding: 2px 8px; }
  .pdp-price { color: #006dea; font-size: 20px; font-weight: 600; letter-spacing: 0; }
  .pdp-price .cur { font-size: 16px; }
  .pdp-title { font-size: 16px; line-height: 22px; }
  .m-trust { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #f5f6f8; color: var(--muted); font-size: 12px; padding: 10px 16px; margin: 8px -16px 0; }
  .m-trust span { display: inline-flex; align-items: center; gap: 4px; }
  .m-trust i { font-style: normal; color: var(--muted-2); }
  .m-bar { display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 57px; height: 72px; padding: 12px 16px; background: #fff; box-shadow: 0 -1px 6px rgba(0, 0, 0, .1); z-index: 860; }
  .m-bar .m-chat { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #1d8fff; color: var(--blue); display: grid; place-items: center; flex: none; }
  .m-bar .m-buy { flex: 1; height: 48px; border-radius: 64px; border: 0; box-shadow: inset 0 0 0 1px #1d8fff; background: #fff; color: var(--blue); font-size: 14px; font-weight: 600; }
  .m-bar .m-cart { flex: 1; height: 48px; border-radius: 64px; border: 0; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
  .sticky-buy { display: none !important; }
  .pdp-actions { display: none; }
  body:has(.m-bar) { padding-bottom: 150px; }
  .cart-row { grid-template-columns: 72px 1fr 40px; grid-template-areas: 'img nm rm' 'img pr rm' 'img qty rm'; row-gap: 6px; }
  .cart-row img { width: 72px; height: 72px; grid-area: img; }
  .cart-row .nm { grid-area: nm; }
  .cart-row .pr { grid-area: pr; }
  .cart-row .qty { grid-area: qty; }
  .cart-row .rm { grid-area: rm; align-self: start; }
  .card-fields { grid-template-columns: 1fr 1fr; }
  .card-fields input:nth-child(1) { grid-column: 1 / -1; }
  .auth-card { padding: 20px; }
  .pdp-actions .btn { flex: 1; }
  .sticky-buy .in { height: 60px; }
}

/* ==========================================================================
   15. RANCH MARKET 品牌主题 + 店铺页专属组件
   —— 本段是本项目相对源站版式**唯一**的视觉改造，全部集中在这里，便于维护
   ========================================================================== */

/* -------------------------------------------------------------------------
   15.1 品牌色改写总开关
   源站主色：blibli 蓝  #0072ff / #0059d6 / #0047ad
   本站主色：Ranch Market 红 #b11016（实测自源站店铺官方 logo 像素）/
             #8c0e10（深一档，hover） / #57040a（最深，深色底）
   因为全站组件都用 var(--blue…) 取主色，所以只改这 6 行 → 全站换色、版式不动。
   语义色（折扣红 --red、星级金、成功绿）保持源站取值，不参与换色。
   ----------------------------------------------------------------------- */
:root {
  /* 主色 = **品牌官方色**（取自 ranchmarket.co.id 官网 CSS：--primary #b2161b / --primary-dark #9e090e） */
  --blue: #b2161b;            /* 主色（原 blibli 蓝 #0072ff；本站改为 Ranch Market 官方红 #b2161b） */
  --blue-dark: #9e090e;       /* 主色 hover/按下（官网深红 #9e090e） */
  --blue-darker: #6d0508;     /* 主色最深（深色区块/大标题） */
  --blue-soft: #fdeceb;       /* 主色 3% 浅底（选中态/标签底） */
  --blue-softer: #fff7f6;     /* 主色 1.5% 极浅底（区块底） */
  --rm-gold: #e8c77c;         /* Ranch Market 奶油金（banner 上的字色/描边） */
  --rm-cream: #fff8ef;        /* 奶油底 */
  --rm-maroon: #57040a;       /* 深栗色（店铺拍卖/页脚深底） */
  /* 字体：源站首个字体 "Blibli" 是它自有字体，站点侧拿不到，
     退回系统无衬线栈（度量接近，避免字宽差异导致换行） */
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* 闪购条：源站是蓝色渐变，本站改 Ranch Market 红渐变 */
.flash { background: linear-gradient(90deg, #8c0e10 0%, #b11016 55%, #57040a 100%); }

/* 会员促销区：源站浅蓝底，本站改浅奶油底 */
.member-panel { background: var(--rm-cream); }
.member-panel .gift .cb b { color: var(--blue-darker); }

/* 店铺页 banner 上的金色字（源站 banner 图里就是奶油金 #e8c77c） */
.rm-gold { color: var(--rm-gold); }

/* -------------------------------------------------------------------------
   15.2 顶部条（源站：Download Aplikasi Blibli / BlibliCare / Jual di Blibli …）
   本站同版式，文案换成 Ranch Market 自己的入口
   ----------------------------------------------------------------------- */
.topbar .wrap { gap: 16px; }
.topbar a:hover { color: var(--blue); }

/* -------------------------------------------------------------------------
   15.3 主体头部（**官网版**：左上角 = 品牌官方 logo，源站 blibli 头部框架去掉）
   源站：主条高 72px、搜索框高 40px、右侧圆钮 40px；本站只换 logo 与配色，度量不动
   官方 logo 资源：site/assets/logo-ranch.png（253×47，取自 ranchmarket.co.id/cfind/source/images/logo.png）
   按 40px 高度显示 = 0.85 倍下采样，任何 DPI 都清晰（不再用低分辨率圆标 + CSS 文字拼）
   ----------------------------------------------------------------------- */
.logo { gap: 10px; }
.logo .logo-img { height: 40px; width: auto; flex: none; }
/* 手机端：横版 logo（253:47，按 40px 高要 215px 宽）塞不进 390px 的头部，
   所以 ≤900px 换成品牌自己的 99 圆标（1:1，28px），保证「左上角一定有 logo」 */
.logo .logo-mark { display: none; width: 30px; height: 30px; border-radius: 50%; object-fit: contain; flex: none; }
.logo .logo-circle { height: 40px; width: 40px; border-radius: 50%; object-fit: contain; flex: none; }
.logo .logo-text { display: none; }
.logo img { height: 40px; }
.logo-fallback { color: var(--blue); }
.nav-cat:hover, .header-nav .links a:hover, .header-nav .right a:hover { color: var(--blue); }
.icon-btn.cart { background: var(--blue); }
.icon-btn.cart:hover { background: var(--blue-dark); }
.btn-auth { border-color: var(--blue); color: var(--blue); }
.btn-auth.solid { background: var(--blue); border-color: var(--blue); }
.header-user .av { background: var(--blue-soft); color: var(--blue); }
.search form:focus-within { border-color: var(--blue); }
.search .go { background: var(--blue); }
.search .go:hover { background: var(--blue-dark); }
.search-sug .p { color: var(--blue); }
.search-sug a:hover, .quick a:hover .tile { background: var(--blue-softer); }

/* 页脚五列（源站是六列；本站栏目为 Bantuan / Info / Kerja sama / Belanja / Ikuti kami，
   4 列布局会把第 5 列挤到第二行 —— 桌面改成 5 列，手机沿用 base.css 的 2 列） */
@media (min-width: 901px) { .footer-cols { grid-template-columns: repeat(5, 1fr); } }

/* -------------------------------------------------------------------------
   15.4 店铺卡（源站店铺页头部：头像 110px + 店名 + 关注 + 自提点行 + 4 项服务指标）
   ----------------------------------------------------------------------- */
.store-head { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0 10px; }
.store-head .ava { flex: none; width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--line); background: #fff; object-fit: contain; padding: 4px; }
.store-head .main { flex: 1; min-width: 0; }
.store-head .nm { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 600; line-height: 28px; }
.store-head .nm i { font-style: normal; color: var(--muted-2); font-size: 18px; }
.store-head .meta { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.store-head .meta .sep { width: 1px; height: 12px; background: var(--line); }
.store-head .pickup-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; max-width: 560px; cursor: pointer; text-align: left; width: 100%; }
.store-head .pickup-row .pi { color: var(--blue); flex: none; }
.store-head .pickup-row b { display: block; font-size: 13px; font-weight: 600; }
.store-head .pickup-row small { font-size: 11.5px; color: var(--muted); }
.store-head .pickup-row .go { margin-left: auto; color: var(--muted-2); }
.store-head .acts { display: flex; gap: 10px; margin-top: 12px; align-items: center; max-width: 560px; }
.store-head .acts .chat { flex: 1; height: 36px; border-radius: 18px; border: 1px solid var(--blue); color: var(--blue); background: #fff; font-size: 13px; font-weight: 600; }
.store-head .acts .follow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--blue); color: var(--blue); background: #fff; display: grid; place-items: center; }
.store-head .acts .follow.on { background: var(--blue); color: #fff; }
/* 4 项服务指标（源站：Rating & ulasan / Waktu balas / Paket disiapkan / Pesanan berhasil） */
.svc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; min-width: 420px; flex: none; }
.svc-stats .sv { font-size: 11.5px; color: var(--muted); }
.svc-stats .sv b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; margin-top: 2px; }
.svc-stats .sv b .st { color: #f5a623; }
.svc-stats .sv .q { color: var(--muted-2); }

/* -------------------------------------------------------------------------
   15.5 券条（源站：横滑卡 + 右侧「Lihat semua」；卡宽约 300px、高 64px）
   ----------------------------------------------------------------------- */
.voucher-sec { padding: 16px 0 4px; }
.voucher-sec .vh { display: flex; align-items: center; margin-bottom: 10px; }
.voucher-sec .vh h2 { font-size: 18px; font-weight: 600; }
.voucher-sec .vh a { margin-left: auto; font-size: 13px; color: var(--blue); font-weight: 600; }
.voucher-row { display: flex; gap: 12px; overflow: auto; padding-bottom: 4px; scrollbar-width: none; }
.voucher-row::-webkit-scrollbar { display: none; }
.vcard { flex: none; width: 296px; display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.vcard .vlogo { flex: none; width: 54px; height: 54px; object-fit: contain; }
.vcard .vtxt { min-width: 0; }
.vcard .vtxt b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard .vtxt small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.vcard .vtxt .info { color: var(--blue); font-weight: 600; }
.vcard .stamp { margin-left: auto; align-self: flex-start; font-size: 10px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 3px; padding: 1px 4px; }
.vcard .copy { margin-left: auto; flex: none; height: 28px; border-radius: 14px; border: 1px solid var(--blue); color: var(--blue); background: #fff; font-size: 12px; font-weight: 600; padding: 0 12px; }

/* -------------------------------------------------------------------------
   15.6 店铺页 tab 条（Seller / Promo / Produk / Katalog + 右侧店铺内搜索）
   ----------------------------------------------------------------------- */
.store-tabs { display: flex; align-items: center; gap: 26px; border-bottom: 1px solid var(--line); margin-top: 14px; padding-bottom: 0; }
.store-tabs .tb { display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 12px 2px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.store-tabs .tb.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; }
.store-tabs .tsearch { margin-left: auto; position: relative; width: 300px; }
.store-tabs .tsearch input { width: 100%; height: 36px; border: 1px solid var(--input-line); border-radius: 8px; padding: 0 34px 0 12px; font-size: 13px; outline: 0; }
.store-tabs .tsearch input:focus { border-color: var(--blue); }
.store-tabs .tsearch .ic { position: absolute; right: 10px; top: 9px; color: var(--muted-2); }

/* -------------------------------------------------------------------------
   15.7 首页版式区块（源站 officialstore layout：BANNER 4:1 / 2:1，1 或 2 张一屏）
   ----------------------------------------------------------------------- */
.layout-block { margin-top: 16px; }
/* 一组 banner：>1 张时做轮播（自动播放 + 箭头 + 圆点），单张时静置 */
.banner-carousel { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.banner-carousel .track { display: flex; transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.banner-carousel .slide { min-width: 100%; display: block; }
.banner-carousel .slide img { width: 100%; display: block; object-fit: cover; }
.banner-carousel.r41 .slide img { aspect-ratio: 4 / 1; }
.banner-carousel.r21 .slide img { aspect-ratio: 2 / 1; }
.banner-carousel .nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; pointer-events: none; }
.banner-carousel .nav button { pointer-events: auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: var(--shadow-1); display: grid; place-items: center; font-size: 18px; color: var(--ink-2); }
.banner-carousel .dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.banner-carousel .dots button { width: 6px; height: 6px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); padding: 0; }
.banner-carousel .dots button.on { background: #fff; width: 14px; border-radius: 3px; }
/* 两列 banner（源站 4:1 双图并排的情形） */
.banner-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.banner-pair a { border-radius: 12px; overflow: hidden; display: block; background: var(--bg-soft); }
.banner-pair img { width: 100%; display: block; aspect-ratio: 4 / 1; object-fit: cover; }

/* -------------------------------------------------------------------------
   15.8 店铺 Katalog 磁片墙（FEATURED_CATALOG：36 个店铺 Katalog，带封面图 + 计数）
   ----------------------------------------------------------------------- */
.cat-mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cat-mosaic a { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; display: block; }
.cat-mosaic a:hover { border-color: var(--blue); }
.cat-mosaic .im { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.cat-mosaic .im img { width: 100%; height: 100%; object-fit: cover; }
.cat-mosaic .lb { padding: 8px 10px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.cat-mosaic .lb small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* -------------------------------------------------------------------------
   15.8b 店铺 Katalog 磁片墙（FEATURED_CATALOG：36 个店铺 Katalog）
   源站的 Katalog 封面图只有 **110×110**（实测），如果拉到 16:9 大格子里就是被放大 → 糊。
   对策：格子高度按原图高度（110px）+ object-fit: contain → **按原生像素显示，不放大**。
   ----------------------------------------------------------------------- */
.cat-mosaic .im { aspect-ratio: auto; height: 118px; background: #fff; }
.cat-mosaic .im img { width: 100%; height: 100%; object-fit: contain; }
.cat-mosaic .lb { padding: 6px 10px 10px; }

/* -------------------------------------------------------------------------
   15.8c 官方类目瓷片（首页「Kategori」区块）
   源站 facet 自带官方类目图（`L1_*.png` / `L2_*.png`，**200×200**，比 Katalog 封面图清晰），
   一格 = 圆角方图 + 类目名 + 真实件数；点进去就是该类目页 `/c?c=<L1/L2 值>`
   ----------------------------------------------------------------------- */
.cat-tiles-official { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.cat-tiles-official a { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 8px 12px; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: border-color .15s, box-shadow .15s; }
.cat-tiles-official a:hover { border-color: var(--blue); box-shadow: var(--shadow-1); }
.cat-tiles-official .ci { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--bg-soft); display: grid; place-items: center; flex: none; }
.cat-tiles-official .ci img { width: 100%; height: 100%; object-fit: contain; }
.cat-tiles-official .cl { font-size: 12.5px; font-weight: 600; color: var(--ink); text-align: center; line-height: 16px; min-height: 32px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-tiles-official .cn { font-size: 11px; color: var(--muted-2); }
/* 没有官方图的类目：用首字母圆牌兜底（不编造图片） */
.cat-tiles-official .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: var(--blue); background: var(--blue-soft); }

/* -------------------------------------------------------------------------
   15.9 商品集合区块（PRODUCT_SET：横滑；源站一屏 6–7 张）
   ----------------------------------------------------------------------- */
.pset { position: relative; }
.pset .row { display: flex; gap: 12px; overflow: auto; padding-bottom: 4px; scrollbar-width: none; }
.pset .row::-webkit-scrollbar { display: none; }
.pset .row .pcard { flex: none; width: 190px; }
.pset .nav { position: absolute; right: 6px; top: 42%; }

/* -------------------------------------------------------------------------
   15.10「How to shop at Ranch Market」六步条（源站店铺页底部真实区块）
   ----------------------------------------------------------------------- */
.howto { margin-top: 20px; border-radius: 12px; overflow: hidden; background: var(--rm-maroon); }
.howto .hd { color: #fff; text-align: center; padding: 14px 12px 6px; }
.howto .hd b { color: var(--rm-gold); }
.howto .steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 8px 14px 18px; }
.howto .steps div { text-align: center; color: #fff; font-size: 11.5px; line-height: 15px; }
.howto .steps .n { width: 26px; height: 26px; margin: 0 auto 6px; border-radius: 50%; background: var(--rm-gold); color: var(--rm-maroon); font-weight: 800; display: grid; place-items: center; }

/* -------------------------------------------------------------------------
   15.13 品牌介绍块（/store「Tentang kami」页）—— 取代源站 blibli 的店铺卡
   ----------------------------------------------------------------------- */
.brand-hero { padding: 26px 0 6px; max-width: 820px; }
.brand-hero .bh-logo { height: 46px; width: auto; }
.brand-hero h1 { font-size: 26px; font-weight: 700; margin: 12px 0 2px; }
.brand-hero .bh-tag { font-size: 13px; color: var(--blue); font-weight: 600; letter-spacing: .02em; }
.brand-hero .bh-desc { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); margin-top: 10px; }
.brand-hero .bh-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.brand-hero .bh-facts span { display: inline-flex; align-items: center; gap: 6px; }
.brand-hero .bh-facts svg { color: var(--blue); flex: none; }

/* -------------------------------------------------------------------------
   15.14 门店自提列表（源站 PDP / 结账页的 Ambil di toko）
   ----------------------------------------------------------------------- */
.pickup .pt .dist { color: var(--muted-2); font-size: 11px; }
.pickup .pt.on { background: var(--blue-softer); }

/* -------------------------------------------------------------------------
   15.12 菜单/首页在移动端的关键适配（≤720px，按源站店铺页手机版实测）
   源站手机版：头部 56px + 地址行 + 店铺卡（头像 56px）+ 券横滑 220px + 4 tab 横滑
   ----------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* 源站手机版是「隐藏 logo、只留搜索」，但本项目要求左上角一定有品牌 logo：
     横版 logo 在 390px 屏上放不下 → 手机端改用 99 圆标（30px） */
  .logo { display: flex; }
  .logo .logo-img { display: none; }
  .logo .logo-mark { display: block; }
  .header-main { gap: 8px; }
  .header-main .m-scan { width: 34px; height: 34px; }
  .store-head { flex-wrap: wrap; gap: 12px; }
  .store-head .ava { width: 64px; height: 64px; }
  .store-head .nm { font-size: 18px; line-height: 24px; }
  .svc-stats { min-width: 0; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .store-tabs .tsearch { display: none; }
  .cat-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cat-tiles-official { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .banner-pair { grid-template-columns: 1fr; }
  .howto .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
}
@media (max-width: 720px) {
  .store-head .ava { width: 56px; height: 56px; }
  .store-head .nm { font-size: 16px; line-height: 22px; }
  .store-head .meta { font-size: 11.5px; }
  .store-head .pickup-row { padding: 8px 10px; }
  .store-head .acts .chat { height: 32px; }
  .svc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vcard { width: 236px; padding: 8px 10px; }
  .vcard .vlogo { width: 42px; height: 42px; }
  .store-tabs { gap: 16px; }
  .store-tabs .tb { font-size: 13px; }
  .cat-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat-mosaic .im { height: 96px; }
  .cat-mosaic .lb { padding: 6px 8px 8px; font-size: 11.5px; }
  .cat-tiles-official { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat-tiles-official a { padding: 8px 6px 10px; }
  .cat-tiles-official .ci { width: 64px; height: 64px; }
  .cat-tiles-official .cl { font-size: 11.5px; line-height: 15px; min-height: 30px; }
  .pset .row .pcard { width: 140px; }
  .banner-carousel .dots { bottom: 6px; }
  .banner-carousel .nav button { width: 26px; height: 26px; font-size: 15px; }
  .howto .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .howto .steps div { font-size: 11px; }
}
