/* ============================================================
   Bitsman Shop - 全站样式（移动端自适应，支持 RTL）
   ============================================================ */
:root {
  /* 品牌色取自官网 header 背景 #c10538（https://www.bitsmanauto.com/） */
  --brand: #c10538;
  --brand-dark: #98042d;
  --navy: #0b2239;
  --navy-2: #14355a;
  --text: #1f2933;
  --muted: #6b7a8c;
  --line: #e3e8ee;
  --bg: #f6f8fa;
  --white: #fff;
  --success: #17a673;
  --warning: #f0a500;
  --danger: #d52b1e;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(11, 34, 57, 0.08);
  --shadow-lg: 0 8px 30px rgba(11, 34, 57, 0.14);
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.between { justify-content: space-between; align-items: center; }
.center { justify-content: center; }
.grow { flex: 1 1 auto; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius);
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-primary { background: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); background: rgba(11,34,57,.04); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- 表单 ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search],
select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; background: #fff; color: var(--text); transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(213,43,30,.1); }
textarea { min-height: 96px; resize: vertical; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; }
.form-row > .field { flex: 1 1 200px; }
.field { margin-bottom: 14px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.checkbox input { width: auto; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- 头部 ---------- */
.topbar { background: var(--navy); color: #cfdae6; font-size: 12px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #cfdae6; }
.topbar a:hover { color: #fff; }
.topbar select { width: auto; padding: 3px 6px; font-size: 12px; background: transparent; color: #fff; border: 1px solid #35506f; }
.topbar select option { color: #111; }

.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 20px; color: var(--navy); }
/* LOGO 已转为深色版（public/img/logo-black.png），在白色 header 上直接可见，无需衬底 */
.logo-img {
  height: 44px; width: auto; object-fit: contain;
}
/* LOGO 右侧标语：两行层次排版
   第一行（主）= 深蓝加粗，与 LOGO 的黑色主体呼应
   第二行（副）= 品牌红 + 宽字距，作为点缀拉开层次
   不再用竖线分隔，改由间距与字重对比区隔，整体更协调
   后台 Settings → Logo 可用换行符 \n 自由排版，如 "TIRE MOBILITY\nKIT MANUFACTURER" */
.logo-tagline {
  display: flex; flex-direction: column; justify-content: center;
  line-height: 1.2; text-transform: uppercase;
}
.logo-tagline > span { display: block; white-space: nowrap; }
.logo-tagline > span:first-child {
  font-size: 13px; font-weight: 800; color: var(--navy); letter-spacing: .8px;
}
.logo-tagline > span:last-child {
  font-size: 10.5px; font-weight: 700; color: var(--brand); letter-spacing: 3.2px;
}
/* 只填一行时，按主行样式显示 */
.logo-tagline > span:only-child {
  font-size: 13px; font-weight: 800; color: var(--navy); letter-spacing: .8px;
}
.logo-text { line-height: 1.1; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 8px; background: var(--brand);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 18px;
}
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .5px; }

.search-box { flex: 1 1 260px; max-width: 520px; position: relative; }
.search-box input { padding-left: 38px; padding-right: 12px; }
.search-box .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px; color: var(--navy); font-size: 13px; font-weight: 600;
}
.icon-btn:hover { background: var(--bg); }
.badge {
  position: absolute; top: -2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- 导航 ---------- */
.mainnav { background: var(--navy); }
.mainnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mainnav .container::-webkit-scrollbar { display: none; }
.mainnav a { color: #dbe4ee; padding: 12px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.mainnav a:hover, .mainnav a.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--navy); }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 14px 0; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1d4a7a 100%);
  color: #fff; padding: 64px 0; position: relative; overflow: hidden;
}
.hero:after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(213,43,30,.35), transparent 65%);
}
.hero .container { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.hero-text { flex: 1 1 380px; }
.hero-text h1 { color: #fff; font-size: 38px; margin-bottom: 12px; }
.hero-tag {
  display: inline-block; padding: 5px 12px; border-radius: 20px; background: rgba(213,43,30,.9);
  font-size: 12px; font-weight: 700; letter-spacing: .5px; margin-bottom: 14px;
}
.hero p { color: #cfdae6; font-size: 16px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-art { flex: 0 1 320px; display: flex; gap: 12px; justify-content: center; }
.hero-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
  padding: 16px; width: 145px; text-align: center; backdrop-filter: blur(6px);
}
.hero-card img { width: 100%; border-radius: 8px; margin-bottom: 8px; background: #fff; }
.hero-card strong { display: block; font-size: 13px; }
.hero-card span { font-size: 12px; color: #bcd0e4; }

/* ---------- 区块 ---------- */
.section { padding: 44px 0; }
.section-title { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.section-title h2 { font-size: 24px; margin: 0; }
.section-title .sub { color: var(--muted); font-size: 14px; }
.section-title a { color: var(--brand); font-size: 14px; font-weight: 600; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 16px; }

.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d3dbe4; }
.product-card .thumb { position: relative; padding-top: 100%; background: #f4f6f8; overflow: hidden; }
.product-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-card .tag {
  position: absolute; top: 10px; left: 10px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}
.product-card .body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { font-size: 14px; margin: 0; min-height: 38px; }
.product-card h3 a:hover { color: var(--brand); }
.product-card .price { font-size: 18px; font-weight: 800; color: var(--brand); }
.product-card .price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.product-card .login-price { font-size: 13px; color: var(--brand); font-weight: 600; background: #fff2f1; padding: 6px 8px; border-radius: 6px; text-align: center; }
.product-card .meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }

/* ---------- 分类卡 ---------- */
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; transition: all .2s; }
.cat-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.cat-card img { width: 72px; height: 72px; margin: 0 auto 10px; object-fit: contain; }
.cat-card strong { display: block; font-size: 14px; }
.cat-card span { font-size: 12px; color: var(--muted); }

/* ---------- 优势区块 ---------- */
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h4 { font-size: 15px; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--muted); margin: 0; }
.feature .num {
  width: 34px; height: 34px; border-radius: 8px; background: rgba(213,43,30,.1); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px;
}

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { background: #f8fafc; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.table tbody tr:hover { background: #fafbfc; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- 状态标签 ---------- */
.status {
  display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
  background: #eef2f6; color: var(--navy);
}
.status.pending_payment, .status.requested, .status.reviewing { background: #fff4e0; color: #b26a00; }
.status.paid, .status.approved, .status.completed, .status.received { background: #e4f8ef; color: #0f7a55; }
.status.processing, .status.receiving { background: #e8f0fd; color: #1460b4; }
.status.shipped, .status.refunded { background: #ede9fe; color: #5b3fd1; }
.status.cancelled, .status.rejected, .status.closed, .status.failed { background: #fdeaea; color: #b81212; }
.status.payment_held { background: #fff4e0; color: #b26a00; }

/* ---------- 闪存消息 ---------- */
.flash { margin: 14px 0; }
.alert { padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 8px; border: 1px solid transparent; }
.alert-success { background: #e4f8ef; border-color: #b7ebd4; color: #0f7a55; }
.alert-error { background: #fdeaea; border-color: #f7c4c4; color: #b81212; }
.alert-info { background: #e8f0fd; border-color: #bcd6f8; color: #1460b4; }

/* ---------- 商品详情 ---------- */
.product-detail { display: flex; flex-wrap: wrap; gap: 32px; }
.product-gallery { flex: 1 1 380px; }
.product-gallery .main-img { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.product-info { flex: 1 1 360px; }
.product-info h1 { font-size: 26px; }
.price-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.price-box .now { font-size: 30px; font-weight: 800; color: var(--brand); }
.price-box .was { text-decoration: line-through; color: var(--muted); margin-left: 8px; font-size: 15px; }
.price-box .source { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty-input button { width: 34px; height: 38px; border: 0; background: #f4f6f8; font-size: 16px; cursor: pointer; }
.qty-input input { width: 56px; height: 38px; border: 0; text-align: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.spec-table { width: 100%; font-size: 14px; }
.spec-table td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.spec-table td:first-child { color: var(--muted); width: 42%; }

/* ---------- 购物车 / 结算 ---------- */
.layout-2 { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.layout-2 .main { flex: 1 1 520px; min-width: 0; }
.layout-2 .side { flex: 0 1 340px; position: sticky; top: 88px; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
/* 通用金额行：订单详情等处直接用 .line；.summary 内有更具体的样式 */
.line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 800; }
.summary .line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.summary .line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 800; }
.summary .line.total .val { color: var(--brand); }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.cart-item img { width: 78px; height: 78px; object-fit: contain; background: #f4f6f8; border-radius: 8px; }
.cart-item .info { flex: 1 1 200px; min-width: 0; }
.cart-item .info h4 { font-size: 14px; margin: 0 0 4px; }
.ship-option { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; cursor: pointer; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ship-option input { width: auto; }
.ship-option.selected { border-color: var(--brand); background: #fff7f6; }
.ship-option .fee { font-weight: 800; color: var(--navy); }
.ship-option .eta { font-size: 12px; color: var(--muted); }

/* ---------- 账户 ---------- */
.account-layout { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.account-nav { flex: 0 0 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.account-nav a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.account-nav a:hover, .account-nav a.active { background: var(--navy); color: #fff; }
.account-content { flex: 1 1 600px; min-width: 0; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat-card .num { font-size: 26px; font-weight: 800; color: var(--navy); }
.stat-card .label { font-size: 13px; color: var(--muted); }

/* ---------- 管理后台 ---------- */
.admin-layout { display: flex; gap: 0; min-height: calc(100vh - 200px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-side { flex: 0 0 210px; background: var(--navy); color: #cfdae6; padding: 16px 0; }
.admin-side a { display: block; padding: 10px 18px; color: #cfdae6; font-size: 14px; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-side .group { padding: 12px 18px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #7f93aa; }
.admin-main { flex: 1 1 auto; padding: 20px; min-width: 0; overflow-x: auto; }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.admin-toolbar input, .admin-toolbar select { width: auto; min-width: 150px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.panel-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; background: #f8fafc; }
.panel-body { padding: 16px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; }
.pagination .active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy); color: #b7c6d6; margin-top: 48px; padding: 40px 0 20px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer a { color: #b7c6d6; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 7px; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.inquiry-box { background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 16px; }
.inquiry-box input { margin-bottom: 8px; }

/* ---------- 移动端底部导航 ---------- */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
  border-top: 1px solid var(--line); z-index: 200; box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.mobile-bar a { flex: 1; text-align: center; padding: 8px 4px; font-size: 11px; color: var(--muted); }
.mobile-bar a.active, .mobile-bar a:hover { color: var(--brand); }
.mobile-bar .ico { display: block; font-size: 18px; line-height: 1.2; }

/* ---------- 政策 / 法务页 ---------- */
.policy-body { line-height: 1.9; max-width: 900px; }
.policy-body h2 { font-size: 18px; margin: 24px 0 8px; }
.policy-body h3 { font-size: 15px; margin: 16px 0 6px; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p, .policy-body li { font-size: 14px; color: var(--text); }
.policy-body ul, .policy-body ol { margin: 8px 0 14px 22px; }
.policy-body li { margin-bottom: 6px; }
.policy-body a { color: var(--brand); text-decoration: underline; }
/* 后台编辑 HTML 片段时用等宽字体 */
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.65; }

/* ---------- ADVANCED（SEO / GEO）选项卡 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  background: none; border: 0; padding: 9px 14px; font-size: 14px; font-weight: 600;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--navy); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; right: 18px; bottom: 18px; background: var(--navy); color: #fff;
  padding: 12px 18px; border-radius: 8px; box-shadow: var(--shadow-lg); z-index: 999;
  opacity: 0; transform: translateY(12px); transition: all .25s; pointer-events: none; font-size: 14px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-text h1 { font-size: 28px; }
  .layout-2 .side { position: static; flex: 1 1 100%; }
  .admin-layout { flex-direction: column; }
  .admin-side { flex: none; display: flex; overflow-x: auto; }
  .admin-side .group { display: none; }
  .admin-side a { white-space: nowrap; }
  .account-nav { flex: 1 1 100%; display: flex; overflow-x: auto; }
  .account-nav a { border-bottom: 0; border-right: 1px solid var(--line); white-space: nowrap; }
  /* 中屏起隐藏 LOGO 旁的标语，给搜索框让位（品牌名由 LOGO 图本身呈现） */
  .logo-tagline { display: none; }
}
@media (max-width: 720px) {
  body { padding-bottom: 58px; }
  .mobile-bar { display: flex; }
  .header .container { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .search-box { order: 3; flex: 1 1 100%; max-width: none; }
  .nav-toggle { display: block; }
  .mainnav { display: none; }
  .mainnav.open { display: block; }
  .mainnav .container { flex-direction: column; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 36px 0; }
  .hero-art { display: none; }
  .section { padding: 28px 0; }
  .footer .bottom { flex-direction: column; }
  .product-detail { gap: 18px; }
  .logo-img { height: 34px; }
}

/* ---------- RTL ---------- */
[dir="rtl"] .product-card .tag { left: auto; right: 10px; }
[dir="rtl"] .search-box .icon { left: auto; right: 12px; }
[dir="rtl"] .search-box input { padding-left: 12px; padding-right: 38px; }
[dir="rtl"] .toast { left: 18px; right: auto; }
