/* assets/style.css — 全站视觉与响应式
 * 版本：20261128a
 */

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-alt: #f5f0e8;
  --primary: #1f3d33;
  --primary-soft: #2e5a4b;
  --gold: #c9a96a;
  --gold-soft: #e6d5b3;
  --text: #222222;
  --text-2: #6b6b6b;
  --text-3: #9a9a9a;
  --line: #e8e1d6;
  --danger: #b34a3c;
  --success: #2f6b4f;
  --shadow-sm: 0 2px 8px rgba(31, 61, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 61, 51, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --gap: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- 顶栏 ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}

.brand-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 18px; color: var(--primary);
  letter-spacing: 0.02em; white-space: nowrap;
}

.brand-logo::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 169, 106, 0.18);
}

.header-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.header-nav a { color: var(--text-2); font-size: 14px; padding: 4px 0; }
.header-nav a:hover { color: var(--primary); }

.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 14px; border: 0;
}
.header-cta:hover { background: var(--primary-soft); }

.mobile-toggle {
  display: none; width: 36px; height: 36px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); color: var(--primary);
}

/* ---------------- 唯一类目栏（仅首页） ---------------- */

#portal-nav-bar {
  display: block;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

body:not([data-page-type="home"]) #portal-nav-bar { display: none !important; }

.portal-nav-inner {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 20px; overflow-x: auto; scrollbar-width: none;
}
.portal-nav-inner::-webkit-scrollbar { display: none; }

.nav-chip {
  flex: 0 0 auto; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font-size: 13px; white-space: nowrap;
  transition: all 0.18s ease;
}
.nav-chip:hover { border-color: var(--gold); color: var(--primary); }
.nav-chip.is-active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ---------------- Hero ---------------- */

.hero { padding: 48px 0 36px; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}

.hero-eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px;
  border: 1px solid var(--gold-soft); border-radius: 999px;
  color: var(--gold); font-size: 12px; letter-spacing: 0.08em;
}

.hero h1 {
  font-size: 40px; line-height: 1.2; color: var(--primary);
  font-weight: 700; letter-spacing: -0.01em;
}

.hero p { margin-top: 14px; color: var(--text-2); font-size: 15px; max-width: 480px; }

.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; font-size: 14px; font-weight: 500;
  transition: all 0.18s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b8975a; }

.hero-media {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--surface-alt);
  box-shadow: var(--shadow-md);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- 筛选条 ---------------- */

.filter-bar { padding: 8px 0 20px; }
.filter-inner {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}

.filter-field { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.filter-field select {
  height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg); color: var(--text);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 14px) 15px, calc(100% - 9px) 15px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.filter-count { margin-left: auto; color: var(--text-3); font-size: 13px; }

/* ---------------- 商品画廊 ---------------- */

.gallery-section { padding-bottom: 40px; }

.product-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
}

.product-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.card-cover {
  position: relative; display: block; aspect-ratio: 4 / 5;
  background: var(--surface-alt); overflow: hidden;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .card-cover img { transform: scale(1.04); }
.card-cover-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--text-3); font-size: 13px;
}

.status-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: #fff;
}
.status-badge.is-instock { background: var(--success); }
.status-badge.is-preorder { background: var(--gold); }
.status-badge.is-soldout { background: #8a8a8a; }

.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-meta { color: var(--gold); font-size: 12px; letter-spacing: 0.02em; }
.card-title { font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-price {
  color: var(--danger); font-weight: 700; font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.card-time {
  margin-top: auto; color: var(--text-3); font-size: 12px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------------- 代购流程 ---------------- */

.process-section { padding: 40px 0; background: var(--surface); border-top: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: 24px; color: var(--primary); }
.section-head p { margin-top: 8px; color: var(--text-2); font-size: 14px; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-step {
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); text-align: center;
}
.process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 13px; margin-bottom: 10px;
}
.process-step h3 { font-size: 15px; color: var(--primary); margin-bottom: 6px; }
.process-step p { font-size: 13px; color: var(--text-2); }

/* ---------------- 收款卡片 ---------------- */

.donate-section { padding: 40px 0; }
.donate-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 28px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--line);
}
.donate-card h3 { color: var(--primary); font-size: 18px; }
.donate-card p { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.donate-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- 页脚 ---------------- */

.site-footer {
  background: var(--primary); color: #e9e4d8; padding: 36px 0 28px; margin-top: 20px;
}
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #cfc7b6; font-size: 13px; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); color: #b5ad9d; font-size: 12px; }

/* ---------------- 详情页 ---------------- */

.breadcrumb { padding: 20px 0 6px; font-size: 13px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }

.detail-layout {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px;
  padding: 12px 0 36px;
}

.gallery-main {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  overflow: hidden; background: var(--surface-alt); border: 1px solid var(--line); cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button {
  flex: 0 0 auto; width: 64px; height: 64px; padding: 0; border-radius: 8px;
  overflow: hidden; border: 2px solid transparent; background: var(--surface-alt);
}
.gallery-thumbs button.is-active { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-info h1 { font-size: 26px; line-height: 1.3; color: var(--primary); margin-bottom: 12px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-2); font-size: 13px; margin-bottom: 16px; }
.detail-price { font-size: 28px; font-weight: 700; color: var(--danger); font-variant-numeric: tabular-nums; }
.detail-price-note { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.detail-time { color: var(--text-3); font-size: 13px; margin-top: 10px; font-variant-numeric: tabular-nums; }

.spec-list { margin: 18px 0; border-top: 1px dashed var(--line); }
.spec-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.spec-row dt { width: 88px; flex: 0 0 auto; color: var(--text-3); }
.spec-row dd { margin: 0; color: var(--text); }

.inquiry-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.detail-content { padding: 24px 0; border-top: 1px solid var(--line); }
.detail-content h2 { font-size: 20px; color: var(--primary); margin: 22px 0 10px; }
.detail-content p { margin: 10px 0; color: #333; }
.detail-content ul, .detail-content ol { margin: 10px 0; padding-left: 22px; list-style: disc; }
.detail-content ol { list-style: decimal; }
.detail-content blockquote {
  margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--gold);
  background: var(--surface); color: var(--text-2);
}
.detail-content pre {
  padding: 14px; border-radius: 8px; background: #1f2937; color: #e5e7eb;
  overflow-x: auto; font-size: 13px;
}
.detail-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.related-section { padding: 28px 0 40px; border-top: 1px solid var(--line); }
.related-section h2 { font-size: 20px; color: var(--primary); margin-bottom: 18px; }

/* ---------------- 静态页 ---------------- */

.static-page { padding: 28px 0 48px; }
.static-page h1 { font-size: 28px; color: var(--primary); margin-bottom: 16px; }
.static-body { max-width: 760px; margin: 0 auto; }
.static-body h2 { font-size: 20px; color: var(--primary); margin: 24px 0 10px; }
.static-body p { margin: 10px 0; color: #333; }
.static-body ul, .static-body ol { margin: 10px 0; padding-left: 22px; list-style: disc; }
.static-body ol { list-style: decimal; }
.static-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.contact-card {
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.contact-card h3 { font-size: 15px; color: var(--primary); margin-bottom: 6px; }
.contact-card p { font-size: 13px; color: var(--text-2); }
.contact-card .btn { margin-top: 10px; height: 36px; padding: 0 14px; font-size: 13px; }

/* ---------------- 弹窗 / 灯箱 ---------------- */

.modal-mask {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(20, 26, 24, 0.55); backdrop-filter: blur(4px);
}
.modal-mask.is-open { display: flex; }

.modal-panel {
  width: 100%; max-width: 420px; max-height: 88vh; overflow-y: auto;
  background: var(--surface); border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow-md); position: relative;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: var(--surface-alt);
  color: var(--text-2); font-size: 18px; line-height: 1;
}
.modal-title { font-size: 18px; color: var(--primary); margin-bottom: 14px; padding-right: 30px; }

.qr-box {
  display: flex; align-items: center; justify-content: center;
  width: 180px; height: 180px; margin: 0 auto 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-tip { text-align: center; font-size: 12px; color: var(--text-3); margin-bottom: 14px; }

.copy-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.copy-value {
  flex: 1; min-width: 0; padding: 9px 12px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line);
  font-size: 13px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.copy-btn {
  height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--primary);
  background: var(--primary); color: #fff; font-size: 13px;
}

.channel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.channel-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 13px;
}
.channel-btn:hover { border-color: var(--gold); color: var(--primary); }

.pay-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.pay-tab {
  flex: 1; height: 36px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-2); font-size: 13px;
}
.pay-tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.86);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px;
}
.lightbox-close {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,0.14);
  color: #fff; font-size: 22px;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.14); color: #fff; font-size: 22px;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 13px; font-variant-numeric: tabular-nums;
}

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  z-index: 400; padding: 10px 18px; border-radius: 999px;
  background: rgba(31, 61, 51, 0.94); color: #fff; font-size: 13px;
  opacity: 0; pointer-events: none; transition: all 0.24s ease;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 后台基础 ---------------- */

.admin-body { background: #f3f5f4; }

.admin-shell { min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
  display: flex; align-items: center; gap: 16px; height: 58px; padding: 0 20px;
  background: var(--primary); color: #fff;
}
.admin-topbar .brand-logo { color: #fff; }
.admin-topbar .brand-logo::before { background: var(--gold); }
.admin-topbar-actions { margin-left: auto; display: flex; gap: 10px; }
.admin-topbar button {
  height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.3);
  background: transparent; color: #fff; font-size: 13px;
}

.admin-main { flex: 1; display: flex; min-height: 0; }
.admin-side {
  width: 200px; flex: 0 0 auto; background: #fff; border-right: 1px solid var(--line);
  padding: 16px 10px;
}
.admin-side button {
  display: block; width: 100%; text-align: left; padding: 10px 12px;
  border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 14px;
  margin-bottom: 4px;
}
.admin-side button.is-active, .admin-side button:hover { background: var(--surface-alt); color: var(--primary); }

.admin-content { flex: 1; padding: 20px; overflow: auto; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.admin-panel h2 { font-size: 17px; color: var(--primary); margin-bottom: 14px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-row label { font-size: 13px; color: var(--text-2); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg); color: var(--text);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row.full { grid-column: 1 / -1; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { color: var(--text-3); font-weight: 500; }
.admin-table td { color: var(--text); }
.admin-table .row-actions { display: flex; gap: 8px; }
.admin-table .row-actions button {
  height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface); font-size: 12px;
}

.progress { height: 8px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.2s ease; }

.auth-box { max-width: 360px; margin: 18vh auto 0; padding: 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.auth-box h2 { font-size: 17px; color: var(--primary); margin-bottom: 14px; }
.auth-box input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; }
.auth-box button { width: 100%; height: 40px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; }
.auth-error { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 8px; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero h1 { font-size: 34px; }
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
  .header-inner { height: 56px; gap: 12px; }
  .header-nav { display: none; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .header-cta { height: 34px; padding: 0 12px; font-size: 13px; }

  .hero { padding: 28px 0 20px; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: 28px; }
  .hero-media { aspect-ratio: 16 / 10; border-radius: 14px; }
  .hero-actions .btn { flex: 1; }

  .portal-nav-inner { padding: 10px 14px; }

  .filter-inner { padding: 10px; gap: 8px; }
  .filter-field { flex: 1 1 calc(50% - 8px); }
  .filter-field select { width: 100%; }
  .filter-count { flex: 1 1 100%; margin-left: 0; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 9px 10px 11px; gap: 4px; }
  .card-title { font-size: 13px; }
  .card-meta { font-size: 11px; }
  .card-price { font-size: 14px; }
  .card-time { font-size: 11px; white-space: nowrap; letter-spacing: -0.01em; }
  .status-badge { top: 7px; left: 7px; padding: 2px 8px; font-size: 10px; }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .donate-card { flex-direction: column; align-items: flex-start; padding: 20px; }

  .detail-info h1 { font-size: 21px; }
  .detail-price { font-size: 24px; }
  .inquiry-actions .btn { flex: 1 1 calc(50% - 5px); height: 40px; }
  .spec-row dt { width: 74px; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .admin-main { flex-direction: column; }
  .admin-side { width: 100%; display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .admin-side button { width: auto; flex: 0 0 auto; margin-bottom: 0; white-space: nowrap; }
}

@media (max-width: 360px) {
  .wrap { padding: 0 14px; }
  .product-grid { gap: 8px; }
  .card-time { font-size: 10.5px; }
}