/* ==========================================================================
   设计系统 —— 对标 Ozon（欧众）：白底 + 主蓝 + 价格粉 + 到手价绿
   移动端优先（红线 R7），断点 640 / 900 / 1200
   ========================================================================== */

:root {
  --blue:        #005BFF;
  --blue-dark:   #0047CC;
  --blue-soft:   #E8F0FF;
  --pink:        #F1117E;
  --pink-soft:   #FFE9F3;
  --green:       #00A046;
  --green-soft:  #E4F7EC;
  --orange:      #FF8A00;

  --ink:         #001A34;
  --ink-2:       #3E4E5E;
  --muted:       #707F8D;
  --line:        #E6EAEE;
  --line-2:      #F0F2F5;
  --bg:          #F7F8FA;
  --card:        #FFFFFF;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(0,26,52,.06), 0 2px 8px rgba(0,26,52,.05);
  --sh-2: 0 4px 16px rgba(0,26,52,.10);
  --sh-3: 0 12px 32px rgba(0,26,52,.14);

  --header-h: 56px;
  --tabbar-h: 58px;
  --maxw: 1280px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1,h2,h3,h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 12px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
@media (max-width: 899px) { .only-desktop { display: none !important; } }
@media (min-width: 900px)  { .only-mobile  { display: none !important; } }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-sm);
  background: var(--line-2); color: var(--ink); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: background .15s, transform .05s; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-green { background: var(--green); color: #fff; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: var(--r); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------- 表单 ---------------- */
.field { display: block; margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 5px; font-weight: 500; }
.field .req { color: var(--pink); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.input.err, .select.err { border-color: var(--pink); }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.alert { padding: 12px 14px; border-radius: var(--r-sm); font-size: 13px; margin-bottom: 14px; }
.alert-err  { background: var(--pink-soft); color: #A8004B; }
.alert-ok   { background: var(--green-soft); color: #00713A; }
.alert-info { background: var(--blue-soft); color: var(--blue-dark); }
.alert-warn { background: #FFF4E0; color: #8A4B00; }

/* ---------------- 页头 ---------------- */
.header { background: #fff; box-shadow: var(--sh-1); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 10px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--blue); letter-spacing: -.3px; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 7px; flex: 0 0 28px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
}
.btn-catalog { background: var(--blue); color: #fff; height: 40px; padding: 0 16px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border: 0; cursor: pointer; }
.btn-catalog svg, .search button svg, .tabbar svg, .hicon svg { width: 20px; height: 20px; flex: 0 0 20px; }
.tabbar svg { width: 22px; height: 22px; flex: 0 0 22px; }
@media (max-width: 899px) { .header-in { gap: 8px; } .logo-mark { width: 30px; height: 30px; flex: 0 0 30px; } }
.search { display: flex; flex: 1 1 auto; min-width: 0; height: 40px; }
.search input {
  flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 14px;
  border: 2px solid var(--blue); border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm); outline: none; background: #fff;
}
.search button {
  height: 40px; padding: 0 18px; border: 0; background: var(--blue); color: #fff;
  border-radius: 0 var(--r-sm) var(--r-sm) 0; font-weight: 600; cursor: pointer;
}
.header-icons { display: flex; gap: 4px; }
.hicon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 54px; height: 44px; font-size: 11px; color: var(--ink-2); gap: 2px; position: relative;
  border-radius: var(--r-sm);
}
.hicon:hover { color: var(--blue); background: var(--line-2); }
.hicon svg { width: 20px; height: 20px; }
.badge {
  position: absolute; top: 2px; right: 8px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--pink); color: #fff; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 700; display: grid; place-items: center;
}
.lang-switch { display: flex; gap: 2px; background: var(--line-2); border-radius: var(--r-pill); padding: 3px; }
.lang-switch a { padding: 3px 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; color: var(--muted); }
.lang-switch a.on { background: #fff; color: var(--blue); box-shadow: var(--sh-1); }

.subnav { border-top: 1px solid var(--line-2); background: #fff; }
.subnav-in { display: flex; gap: 18px; height: 40px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { font-size: 13px; color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.subnav a:hover, .subnav a.on { color: var(--blue); }

/* 分类抽屉 */
.drawer-mask { position: fixed; inset: 0; background: rgba(0,26,52,.45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 91; background: #fff; top: 0; bottom: 0; left: 0; width: min(320px, 88vw);
  transform: translateX(-100%); transition: transform .22s ease; overflow-y: auto; padding: 16px;
}
.drawer.open { transform: none; }
.drawer h3 { margin-bottom: 14px; }
.drawer-list a { display: flex; align-items: center; gap: 10px; padding: 11px 8px; border-radius: var(--r-sm); font-weight: 500; }
.drawer-list a:hover { background: var(--line-2); color: var(--blue); }

/* ---------------- 移动端底部 Tab ---------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff;
  border-top: 1px solid var(--line); display: flex; height: var(--tabbar-h);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10px; color: var(--muted); position: relative;
}
.tabbar a.on { color: var(--blue); }
.tabbar svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .tabbar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); } }

/* ---------------- 卡片与容器 ---------------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); padding: 16px; }
.card-flat { background: var(--card); border-radius: var(--r); padding: 16px; border: 1px solid var(--line); }
.section { margin: 20px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.section-head h2 { margin: 0; }
.section-head a { color: var(--blue); font-size: 13px; font-weight: 600; }

/* ---------------- 商品网格与卡片 ---------------- */
.grid-products {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px)  { .grid-products { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; } }
@media (min-width: 900px)  { .grid-products { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 1200px) { .grid-products { grid-template-columns: repeat(5, minmax(0,1fr)); } }

.pcard { background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s; }
.pcard:hover { box-shadow: var(--sh-2); }
.pcard-img { position: relative; aspect-ratio: 1/1; background: #fff; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pcard-img .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--line); background: var(--line-2); font-size: 34px; }
.pcard-body { padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pcard-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-now { font-size: 17px; font-weight: 800; color: var(--ink); }
.price-pink { color: var(--pink); }
.price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.pcard-name { font-size: 12.5px; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-meta { font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.pcard .btn { margin-top: auto; }
.discount-badge {
  position: absolute; top: 8px; left: 8px; background: var(--pink); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: var(--r-sm);
}
.wholesale-badge {
  position: absolute; top: 8px; right: 8px; background: var(--green); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: var(--r-sm);
}
.stars { color: var(--orange); font-size: 11px; letter-spacing: -1px; }

/* ---------------- 商品详情 ---------------- */
.pdp { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0,1fr) 320px; align-items: start; } }
.gallery { background: #fff; border-radius: var(--r); padding: 12px; }
.gallery-main { aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs img { width: 60px; height: 60px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; padding: 4px; background: #fff; }
.gallery-thumbs img.on { border-color: var(--blue); }
.buybox { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--sh-1); position: sticky; top: calc(var(--header-h) + 12px); }
.price-big { font-size: 28px; font-weight: 800; line-height: 1.1; }
.spec-table td { padding: 8px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; font-size: 13px; }
.spec-table td:first-child { color: var(--muted); width: 45%; padding-right: 12px; }
.tier-table { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.tier-table th, .tier-table td { padding: 9px 12px; font-size: 13px; text-align: left; border-bottom: 1px solid var(--line-2); }
.tier-table th { background: var(--line-2); font-weight: 600; color: var(--ink-2); }
.tier-table tr:last-child td { border-bottom: 0; }
.tier-table tr.on td { background: var(--green-soft); font-weight: 700; }
.bullets { margin: 0; padding-left: 18px; }
.bullets li { margin-bottom: 7px; font-size: 13px; color: var(--ink-2); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; height: 40px; }
.qty button { width: 38px; height: 100%; border: 0; background: #fff; font-size: 18px; cursor: pointer; color: var(--ink-2); }
.qty button:hover { background: var(--line-2); color: var(--blue); }
.qty input { width: 54px; height: 100%; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------------- 分类页布局 ---------------- */
.catalog { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .catalog { grid-template-columns: 232px minmax(0,1fr); align-items: start; } }
.filters { background: #fff; border-radius: var(--r); padding: 16px; }
@media (max-width: 899px) {
  .filters { position: fixed; inset: 0; z-index: 92; border-radius: 0; overflow-y: auto; transform: translateY(100%); transition: transform .22s; }
  .filters.open { transform: none; }
}
.filter-group { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.filter-group:last-child { border-bottom: 0; margin-bottom: 0; }
.filter-group h4 { font-size: 13px; margin-bottom: 9px; }
.filter-group label { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; cursor: pointer; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line); font-size: 13px; white-space: nowrap; cursor: pointer; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------------- 面包屑 / 分页 ---------------- */
.crumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 12px 0; }
.crumbs a:hover { color: var(--blue); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); background: #fff; font-size: 13px; padding: 0 10px; }
.pager .on { background: var(--blue); color: #fff; font-weight: 700; }

/* ---------------- 购物车 / 结算 ---------------- */
.cart-layout { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0,1fr) 340px; align-items: start; } }
.cart-row { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 72px; height: 72px; object-fit: contain; background: var(--line-2); border-radius: var(--r-sm); }
.summary { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--sh-1); position: sticky; top: calc(var(--header-h) + 12px); }
.summary-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.summary-total { display: flex; justify-content: space-between; padding: 12px 0 4px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 800; margin-top: 6px; }

.radio-card { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; margin-bottom: 10px; background: #fff; transition: border-color .15s; }
.radio-card:hover { border-color: var(--blue); }
.radio-card input { margin-top: 3px; }
.radio-card.on { border-color: var(--blue); background: var(--blue-soft); }
.radio-card.disabled { opacity: .5; cursor: not-allowed; }
.radio-card b { display: block; margin-bottom: 2px; }

/* ---------------- 表格（后台/B端） ---------------- */
.tbl-wrap { overflow-x: auto; background: #fff; border-radius: var(--r); }
.tbl { min-width: 640px; }
.tbl th, .tbl td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: 13px; vertical-align: middle; }
.tbl th { background: var(--line-2); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.tbl tr:hover td { background: #FAFBFC; }
.tag { display: inline-block; padding: 3px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; }
.tag-blue { background: var(--blue-soft); color: var(--blue-dark); }
.tag-green { background: var(--green-soft); color: #00713A; }
.tag-pink { background: var(--pink-soft); color: #A8004B; }
.tag-gray { background: var(--line-2); color: var(--muted); }
.tag-orange { background: #FFF4E0; color: #8A4B00; }

/* ---------------- 后台布局 ---------------- */
.admin-layout { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .admin-layout { grid-template-columns: 200px minmax(0,1fr); align-items: start; } }
.admin-nav { background: #fff; border-radius: var(--r); padding: 8px; display: flex; gap: 4px; overflow-x: auto; }
@media (min-width: 900px) { .admin-nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 12px); } }
.admin-nav a { padding: 9px 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; white-space: nowrap; }
.admin-nav a:hover { background: var(--line-2); }
.admin-nav a.on { background: var(--blue); color: #fff; }
.stat-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border-radius: var(--r); padding: 14px; }
.stat b { display: block; font-size: 22px; font-weight: 800; margin-bottom: 2px; }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------------- Hero / 营销块 ---------------- */
.hero {
  background: linear-gradient(120deg, var(--blue) 0%, #3D7BFF 55%, var(--pink) 130%);
  color: #fff; border-radius: var(--r-lg); padding: 26px 20px; margin: 12px 0 18px;
}
.hero h1 { font-size: 22px; margin-bottom: 8px; }
@media (min-width: 900px) { .hero { padding: 40px 36px; } .hero h1 { font-size: 32px; max-width: 700px; } }
.hero p { opacity: .92; max-width: 620px; margin-bottom: 16px; }
.hero .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

.usp-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .usp-grid { grid-template-columns: repeat(4, 1fr); } }
.usp { background: #fff; border-radius: var(--r); padding: 14px; }
.usp b { display: block; margin-bottom: 3px; font-size: 14px; }
.usp span { font-size: 12px; color: var(--muted); }

.cat-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-tile { background: #fff; border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .15s; }
.cat-tile:hover { box-shadow: var(--sh-2); }
.cat-tile b { font-size: 15px; }
.cat-tile span { font-size: 12px; color: var(--muted); }
.cat-tile .ic { font-size: 26px; }

.b2b-banner { background: #001A34; color: #fff; border-radius: var(--r-lg); padding: 22px 20px; }
.b2b-banner h2 { color: #fff; }
.b2b-banner p { opacity: .8; max-width: 620px; }

/* ---------------- 发票（可打印） ---------------- */
.invoice { background: #fff; padding: 28px; max-width: 800px; margin: 0 auto; font-size: 13px; }
.invoice h1 { font-size: 20px; }
.invoice table { margin: 14px 0; }
.invoice th, .invoice td { border: 1px solid var(--ink-2); padding: 7px 9px; }
.invoice th { background: var(--line-2); }
.invoice .req-block { border: 1px solid var(--ink-2); padding: 10px; margin-bottom: 14px; }
@media print {
  .header, .tabbar, .subnav, .no-print, footer { display: none !important; }
  body { background: #fff; padding: 0; }
  .invoice { box-shadow: none; padding: 0; }
}

/* ---------------- 页脚 ---------------- */
footer { background: #fff; margin-top: 32px; padding: 28px 0 20px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
.foot-grid h4 { font-size: 13px; margin-bottom: 10px; }
.foot-grid a { display: block; padding: 4px 0; font-size: 13px; color: var(--ink-2); }
.foot-grid a:hover { color: var(--blue); }
.foot-bottom { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--muted); }

/* ---------------- 杂项 ---------------- */
.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty-state .ic { font-size: 44px; margin-bottom: 12px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--r-pill);
  font-size: 13px; z-index: 200; box-shadow: var(--sh-3); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }
@media (min-width: 900px) { .toast { bottom: 28px; } }
