/* ================= 商城 · 多商家入驻平台 ================= */
:root {
  --bg-deep: #060d24;
  --bg-dark: #0a1430;
  --bg-card: #0f1e42;
  --line: #1d3365;
  --green: #2ee6a8;
  --green-dark: #17b381;
  --blue: #3f7cff;
  --orange: #ffa14a;
  --text: #d7e3f8;
  --text-dim: #8ea3c8;
  --text-faint: #5f739c;
  --danger: #ff6b6b;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 94%); margin: 0 auto; }
main { flex: 1; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 13, 36, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: 1px; flex: none; }
.logo .logo-mark {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--green), #1f7fe0);
  display: grid; place-items: center; color: #04122b; font-size: 18px; font-weight: 900;
}
.logo em { font-style: normal; color: var(--green); }
.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; overflow-x: auto; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  padding: 8px 11px; border-radius: 8px; font-size: 13.5px; color: var(--text-dim);
  transition: .2s; white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: rgba(46, 230, 168, .08); }
.main-nav a.active { color: var(--green); background: rgba(46, 230, 168, .12); }
.main-nav a.nav-cta {
  color: #04122b; background: linear-gradient(135deg, var(--green), var(--green-dark));
  font-weight: 600; margin-left: 4px;
}
.main-nav a.nav-cta.ghost { background: transparent; color: var(--green); border: 1px solid var(--green); font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 8px; flex: none; }
.cart-link { position: relative; font-size: 20px; padding: 6px 10px; color: var(--text-dim); }
.cart-link:hover { color: var(--green); }
.cart-link .cart-num {
  position: absolute; top: 0; right: 0; min-width: 17px; height: 17px; line-height: 17px;
  background: var(--orange); color: #20140a; border-radius: 999px; font-size: 11px; text-align: center; padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 20px; padding: 4px 12px; border-radius: 8px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 75% at 78% 25%, rgba(46, 230, 168, .16), transparent 62%),
    radial-gradient(ellipse 50% 70% at 12% 85%, rgba(63, 124, 255, .2), transparent 60%),
    linear-gradient(160deg, #081228 0%, #0b1c42 55%, #071026 100%);
  padding: 84px 0 90px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46, 230, 168, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 230, 168, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; max-width: 700px; }
.hero-tag {
  display: inline-block; padding: 5px 14px; border: 1px solid var(--green);
  color: var(--green); border-radius: 999px; font-size: 13px; margin-bottom: 22px; letter-spacing: 2px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.28; }
.hero h1 span { color: var(--green); }
.hero p.lead { margin-top: 18px; color: var(--text-dim); font-size: 16px; max-width: 560px; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-search {
  margin-top: 30px; display: flex; max-width: 520px;
  background: #0a1734; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.hero-search input {
  flex: 1; background: none; border: none; outline: none; color: var(--text);
  padding: 12px 20px; font-size: 14px; font-family: inherit;
}
.hero-search button {
  background: linear-gradient(135deg, var(--green), var(--green-dark)); border: none;
  color: #04122b; font-weight: 700; padding: 0 26px; cursor: pointer; font-size: 14px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 999px; font-size: 14.5px;
  cursor: pointer; border: none; transition: .2s; text-align: center;
}
.btn-primary { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #04122b; font-weight: 700; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46, 230, 168, .35); }
.btn-outline { border: 1px solid var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-warn { background: linear-gradient(135deg, var(--orange), #ff7a2e); color: #20140a; font-weight: 700; }
.btn-warn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 161, 74, .3); }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- 区块 ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 27px; }
.section-head h2 span { color: var(--green); }
.section-head .sub { color: var(--text-faint); margin-top: 10px; font-size: 14px; }
.section-head .en {
  color: rgba(46, 230, 168, .35); font-size: 32px; font-weight: 800;
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: -14px;
}

/* ---------- 分类入口 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card {
  background: linear-gradient(160deg, var(--bg-card), #0b1836);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 14px; text-align: center; transition: .25s; display: block;
}
.cat-card:hover { transform: translateY(-6px); border-color: var(--green); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.cat-card .icon { font-size: 34px; margin-bottom: 10px; }
.cat-card h3 { font-size: 15.5px; }
.cat-card p { color: var(--text-faint); font-size: 12px; margin-top: 4px; }

/* ---------- 商品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .25s; display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--green); transform: translateY(-5px); }
.prod-img {
  height: 170px; display: grid; place-items: center; font-size: 58px;
  background: linear-gradient(140deg, #10234d, #0a1836 70%);
  border-bottom: 1px solid var(--line); position: relative;
}
.prod-img .badge {
  position: absolute; top: 10px; left: 10px; font-size: 11px; padding: 2px 10px;
  border-radius: 999px; background: rgba(46, 230, 168, .15); color: var(--green);
  border: 1px solid rgba(46, 230, 168, .35);
}
.prod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-body h3 {
  font-size: 14.5px; line-height: 1.5; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-body h3 a:hover { color: var(--green); }
.prod-shop { font-size: 12px; color: var(--text-faint); }
.prod-shop a:hover { color: var(--green); }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prod-price { color: var(--orange); font-weight: 800; font-size: 18px; }
.prod-price small { font-size: 12px; font-weight: 400; }
.prod-sales { font-size: 11.5px; color: var(--text-faint); }
.prod-ops { display: flex; gap: 8px; margin-top: 2px; }
.prod-ops .btn { flex: 1; }

/* ---------- 商品图（URL / 占位） ---------- */
.prod-img { overflow: hidden; }
.prod-img-inner {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: #0a1836;
}
.icon-placeholder {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; font-weight: 900;
  color: #04122b; background: linear-gradient(135deg, var(--green), var(--blue));
}
.icon-placeholder.big { width: 100px; height: 100px; font-size: 42px; border-radius: 18px; }

/* ---------- 店铺卡片 ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shop-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: .25s;
}
.shop-card:hover { border-color: var(--green); transform: translateY(-5px); }
.shop-head { display: flex; align-items: center; gap: 14px; }
.shop-avatar {
  width: 54px; height: 54px; border-radius: 14px; flex: none;
  display: grid; place-items: center; font-size: 22px; font-weight: 900; color: #04122b;
  background: linear-gradient(135deg, var(--green), var(--blue));
}
.shop-head h3 { font-size: 16.5px; }
.shop-head .s-cat { font-size: 12px; color: var(--text-faint); }
/* 店铺头像里塞商品图（如果店铺聚合时收集到了封面图） */
.shop-avatar-inner {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: inherit; background: #0a1836;
}
.shop-stats { display: flex; gap: 20px; font-size: 12.5px; color: var(--text-dim); }
.shop-stats b { color: var(--green); }
.shop-desc { font-size: 13px; color: var(--text-dim); flex: 1; }
.shop-phone {
  font-size: 13px; color: var(--orange); padding: 8px 0;
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
  margin: 4px 0;
}
.shop-phone a { color: var(--orange); text-decoration: none; font-weight: 600; }
.shop-phone a:hover { text-decoration: underline; }
.shop-phone-big {
  margin-top: 12px; padding: 10px 16px;
  background: rgba(255, 161, 74, .08); border: 1px solid rgba(255, 161, 74, .3);
  border-radius: 10px; font-size: 14px; color: var(--text-dim);
}
.shop-phone-big a {
  color: var(--orange); font-weight: 700; font-size: 16px;
  text-decoration: none; letter-spacing: 0.5px;
}
.shop-phone-big a:hover { text-decoration: underline; }
/* 商品详情页内联联系电话 */
.shop-phone-inline {
  display: inline-block;
  font-size: 13px; color: var(--text-dim); margin-left: 8px;
}
.shop-phone-inline a {
  color: var(--orange); font-weight: 700; text-decoration: none; letter-spacing: 0.3px;
}
.shop-phone-inline a:hover { text-decoration: underline; }
.stars { color: var(--orange); letter-spacing: 2px; }

/* ---------- 页面横幅 / 列表页 ---------- */
.page-banner {
  padding: 46px 0; text-align: center;
  background: linear-gradient(160deg, #081228, #0c1c42 60%, #081228);
  border-bottom: 1px solid var(--line);
}
.page-banner h1 { font-size: 27px; }
.page-banner h1 span { color: var(--green); }
.page-banner p { color: var(--text-dim); margin-top: 10px; font-size: 14px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.filter-bar button {
  background: var(--bg-card); border: 1px solid var(--line); color: var(--text-dim);
  padding: 7px 18px; border-radius: 999px; cursor: pointer; font-size: 13px; transition: .2s;
}
.filter-bar button.active, .filter-bar button:hover { border-color: var(--green); color: var(--green); }
.sort-bar { display: flex; gap: 10px; margin: 20px 0; align-items: center; }
.sort-bar span { color: var(--text-faint); font-size: 13px; }
.sort-bar button {
  background: none; border: 1px solid var(--line); color: var(--text-dim);
  padding: 5px 14px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.sort-bar button.active { border-color: var(--green); color: var(--green); }

/* ---------- 详情页 ---------- */
.detail-wrap { max-width: 960px; margin: 40px auto; }
.detail-top { display: grid; grid-template-columns: 380px 1fr; gap: 34px; }
.detail-img {
  height: 340px; border-radius: 16px; display: grid; place-items: center; font-size: 110px;
  background: linear-gradient(140deg, #10234d, #0a1836 70%); border: 1px solid var(--line);
  overflow: hidden;
}
.detail-img-inner {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 16px; background: #0a1836;
}
.detail-info h1 { font-size: 22px; line-height: 1.5; }
.detail-price-bar {
  background: rgba(255, 161, 74, .08); border: 1px solid rgba(255, 161, 74, .3);
  border-radius: 12px; padding: 16px 20px; margin: 18px 0;
  display: flex; align-items: baseline; gap: 16px;
}
.detail-price-bar .now { color: var(--orange); font-size: 30px; font-weight: 800; }
.detail-price-bar .old { color: var(--text-faint); text-decoration: line-through; font-size: 14px; }
.detail-price-bar .sales { margin-left: auto; color: var(--text-faint); font-size: 13px; }
.detail-shop-line {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); font-size: 13.5px;
}
.detail-shop-line .avatar-sm {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 900; color: #04122b; background: linear-gradient(135deg, var(--green), var(--blue));
}
.detail-desc { margin-top: 26px; overflow: hidden; }
.detail-desc img {
  max-width: 100%; height: auto; display: block;
  margin: 16px auto; border-radius: 10px;
}
.detail-desc iframe, .detail-desc video, .detail-desc object {
  max-width: 100%; height: auto; display: block; margin: 16px auto;
}
.detail-desc table { max-width: 100%; display: block; overflow-x: auto; }
.detail-desc pre { max-width: 100%; overflow-x: auto; }
.detail-desc h3 { font-size: 18px; margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--green); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 10px; }
.spec-table td { border: 1px solid var(--line); padding: 9px 14px; }
.spec-table td:first-child { color: var(--text-faint); width: 130px; background: rgba(15, 30, 66, .5); }

/* ---------- 购物车 ---------- */
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
}
.cart-item .ci-img {
  width: 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(140deg, #10234d, #0a1836); border: 1px solid var(--line); flex: none;
  overflow: hidden;
}
.cart-item .ci-img-inner {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: #0a1836;
}
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-info .t { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item .ci-info .s { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.qty-ctrl { display: flex; align-items: center; gap: 8px; flex: none; }
.qty-ctrl button {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line);
  background: none; color: var(--text); cursor: pointer; font-size: 15px;
}
.qty-ctrl button:hover { border-color: var(--green); color: var(--green); }
.qty-ctrl b { min-width: 30px; text-align: center; }
.cart-item .ci-price { width: 110px; text-align: right; color: var(--orange); font-weight: 700; flex: none; }
.cart-item .ci-del { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 13px; flex: none; }
.cart-summary {
  margin-top: 22px; background: var(--bg-card); border: 1px solid var(--green);
  border-radius: 14px; padding: 20px 26px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cart-summary .sum-num { color: var(--orange); font-size: 26px; font-weight: 800; }

/* ---------- 表单页 ---------- */
.form-panel {
  max-width: 560px; margin: 50px auto; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 16px; padding: 40px 38px;
}
.form-panel.wide { max-width: 780px; }
.form-panel h1 { font-size: 24px; text-align: center; margin-bottom: 8px; }
.form-panel .sub { text-align: center; color: var(--text-faint); font-size: 13px; margin-bottom: 28px; }
.form-panel .sub a { color: var(--green); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; background: #0a1734; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; color: var(--text); font-size: 14px; font-family: inherit; transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 230, 168, .12);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--text-faint); margin-top: 5px; }
.form-msg { margin-top: 14px; font-size: 13px; text-align: center; min-height: 20px; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- 入驻流程 / 特性 ---------- */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-item { text-align: center; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 26px 16px; }
.flow-item .num {
  width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #04122b;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}
.flow-item h3 { font-size: 15.5px; margin-bottom: 6px; }
.flow-item p { font-size: 12.5px; color: var(--text-faint); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-item { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.benefit-item .icon { font-size: 26px; margin-bottom: 10px; }
.benefit-item h3 { font-size: 15.5px; margin-bottom: 6px; }
.benefit-item p { font-size: 13px; color: var(--text-dim); }

/* ---------- 我的入驻 ---------- */
.my-list { display: flex; flex-direction: column; gap: 12px; }
.my-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: #0a1734; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px;
}
.my-item .t { font-size: 14px; }
.my-item .s { font-size: 12px; color: var(--text-faint); margin-top: 3px; }

/* 营业执照上传 */
.field-hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; line-height: 1.6; }
.field input[type="file"] {
  padding: 10px 12px; font-size: 13px; color: var(--text-dim);
  background: #0a1734; border: 1px dashed var(--line); border-radius: 10px; cursor: pointer;
}
.field input[type="file"]:hover { border-color: rgba(46, 230, 168, .5); }
.license-preview {
  display: flex; align-items: center; gap: 12px; margin-top: 12px;
  padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #0a1734;
}
.license-preview img { width: 160px; height: auto; border-radius: 6px; display: block; }
.license-name { font-size: 12px; color: var(--text-faint); word-break: break-all; }
.join-license { margin-top: 10px; }
.join-license img { width: 130px; border-radius: 6px; border: 1px solid var(--line); display: block; }
.tag-state { font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-faint); }
.tag-state.pass { color: var(--green); border-color: rgba(46, 230, 168, .4); }
.empty-tip { text-align: center; color: var(--text-faint); padding: 50px 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: #050b1e; border-top: 1px solid var(--line); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 48px 0 34px; }
.site-footer h4 { font-size: 15px; margin-bottom: 14px; color: #fff; }
.site-footer p, .site-footer li { color: var(--text-faint); font-size: 13px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; margin-bottom: 5px; }
.site-footer a:hover { color: var(--green); }
.site-footer .foot-hint { color: var(--text-faint); font-size: 12px; line-height: 1.7; padding-top: 6px; margin-bottom: 0; }

/* 跨平台入口：导航栏里的特殊样式 */
.main-nav a.cross-link {
  color: var(--green);
  border: 1px solid rgba(46, 230, 168, .4);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  margin-left: 4px;
}
.footer-brand .logo { margin-bottom: 14px; }
.beian {
  border-top: 1px solid var(--line); padding: 16px 0; text-align: center;
  font-size: 12px; color: var(--text-faint);
}
.beian a { color: var(--text-faint); }
.beian a:hover { color: var(--green); }

/* ---------- 通用 ---------- */
.notice-strip {
  background: rgba(63, 124, 255, .07); border: 1px solid rgba(63, 124, 255, .25);
  border-radius: 10px; padding: 14px 18px; color: var(--text-dim); font-size: 13px; margin: 26px 0;
}
.breadcrumb { font-size: 13px; color: var(--text-faint); margin-top: 24px; }
.breadcrumb a:hover { color: var(--green); }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(3, 7, 20, .78); z-index: 200; display: none; place-items: center; }
.modal-mask.show { display: grid; }
.modal { width: min(400px, 90%); background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; text-align: center; }
.modal h3 { margin-bottom: 10px; }
.modal p { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; }
.modal .ops { display: flex; gap: 12px; justify-content: center; }

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 860px) {
  .product-grid, .shop-grid, .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-top { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #081228; flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; border-bottom: 1px solid var(--line); overflow: visible;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 14px; }
  .nav-toggle { display: block; }
  .cart-link { display: none; }
}
@media (max-width: 560px) {
  .product-grid, .shop-grid, .cat-grid, .flow-grid, .benefit-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
  .cart-item { flex-wrap: wrap; }
  .cart-item .ci-price { text-align: left; }
}
