:root {
  --ink: #171916;
  --ink-soft: #41453f;
  --muted: #858981;
  --muted-light: #a4a79f;
  --canvas: #f4f5f2;
  --surface: #ffffff;
  --surface-soft: #f8f9f6;
  --line: #e4e6df;
  --line-strong: #d5d8d0;
  --lime: #b2ea4d;
  --lime-deep: #95d22d;
  --lime-soft: #eff9df;
  --amber: #d6a253;
  --danger: #c66055;
  --blue: #7ea4cc;
  --shadow-soft: 0 2px 8px rgba(22, 27, 18, .025);
  --shadow-float: 0 22px 55px rgba(31, 37, 25, .09);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", "Aptos", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "ss01" 1;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }
::selection { color: var(--ink); background: var(--lime); }

.store-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(250, 251, 248, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.store-nav {
  min-height: 76px;
  max-width: 1420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ink);
  border-radius: 13px;
  font-size: 15px;
  font-weight: 600;
}
.brand-mark i,
.footer-wordmark i {
  position: absolute;
  width: 8px;
  height: 8px;
  right: -2px;
  top: -2px;
  background: var(--lime);
  border: 2px solid var(--canvas);
  border-radius: 50%;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 8px; letter-spacing: .13em; }
.store-nav-links { display: flex; align-items: center; gap: 27px; }
.nav-quiet { padding: 5px 0; color: #555a52; font-size: 12px; transition: color .2s ease; }
.nav-quiet:hover { color: var(--ink); }
.nav-button { border: 0; background: transparent; }
.store-nav-links .btn-ink { padding: 9px 16px; border-radius: 10px; font-size: 12px; }

.btn { transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease; }
.btn-ink,
.btn-accent {
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 11px;
  font-weight: 600;
  box-shadow: none;
}
.btn-ink:hover,
.btn-ink:focus,
.btn-accent:hover,
.btn-accent:focus {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn-accent { padding: 11px 18px; }
.btn-outline-ink {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  font-weight: 500;
}
.btn-outline-ink:hover { color: #fff; background: var(--ink); border-color: var(--ink); }

.hero-section { padding: 28px 0 20px; }
.hero-panel {
  position: relative;
  min-height: 492px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr);
  align-items: center;
  gap: 40px;
  padding: 58px 66px;
  border: 1px solid #dfe8d2;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 83% 20%, rgba(255,255,255,.88), transparent 31%),
    linear-gradient(135deg, #f5faed 0%, #e7f4d4 55%, #dff0c9 100%);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image: radial-gradient(rgba(43, 58, 29, .16) .65px, transparent .65px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 15%, #000);
}
.hero-copy { position: relative; z-index: 2; max-width: 610px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4c5647;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .13em;
}
.eyebrow > i:empty {
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(23,25,22,.08);
}
.eyebrow.light { color: rgba(23,25,22,.58); }
.hero-copy h1 {
  margin: 22px 0 20px;
  font-size: clamp(49px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -.065em;
  font-weight: 580;
}
.hero-copy h1 em {
  position: relative;
  color: var(--ink);
  font-style: normal;
  z-index: 1;
}
.hero-copy h1 em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: -2%;
  bottom: 5px;
  z-index: -1;
  height: 17px;
  background: var(--lime);
  border-radius: 4px;
  transform: rotate(-1deg);
}
.hero-copy p {
  max-width: 520px;
  margin: 0;
  color: #62695e;
  font-size: 14px;
  line-height: 1.85;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.hero-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 19px; }
.hero-trust { display: inline-flex; align-items: center; gap: 7px; color: #687061; font-size: 10px; }
.hero-art { position: relative; z-index: 2; min-height: 360px; }
.showcase-panel {
  position: absolute;
  width: min(390px, 100%);
  right: 44px;
  top: 23px;
  padding: 21px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(200, 211, 188, .9);
  border-radius: 26px;
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(18px);
  transform: rotate(2.2deg);
}
.showcase-head { display: flex; align-items: center; justify-content: space-between; color: #6d7568; font-size: 8px; letter-spacing: .14em; }
.showcase-head i { color: var(--ink); font-size: 13px; }
.showcase-grid { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 100px 84px; gap: 9px; margin-top: 20px; }
.showcase-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 600;
}
.showcase-tile i { font-size: 22px; }
.tile-ink { color: white; background: var(--ink); grid-row: span 2; }
.tile-lime { color: var(--ink); background: var(--lime); }
.tile-paper { color: var(--ink); background: #f0f1eb; }
.showcase-caption { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.showcase-caption span { color: var(--muted); font-size: 8px; }
.showcase-caption strong { font-size: 10px; font-weight: 600; }
.floating-note {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 9px 24px rgba(28,35,23,.08);
  font-size: 9px;
  font-weight: 550;
  backdrop-filter: blur(10px);
}
.floating-note > span { width: 7px; height: 7px; background: var(--lime-deep); border-radius: 50%; }
.note-one { right: 1px; top: 3px; }
.note-two { left: 4px; bottom: 17px; }

.product-section { padding: 55px 0 100px; }
.member-catalog-head {
  padding: 48px 0 8px;
  background: transparent;
}
.member-catalog-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.member-catalog-copy { max-width: 720px; }
.member-catalog-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  font-weight: 590;
  letter-spacing: -.055em;
}
.member-catalog-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.member-catalog-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
}
.member-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.member-count strong {
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
  font-weight: 570;
  letter-spacing: -.045em;
}
.member-count span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.catalog-page { padding-top: 42px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 27px; }
.section-kicker {
  color: #8c9187;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .17em;
}
.section-heading h2,
.description-head h2 {
  margin: 8px 0 6px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 580;
  letter-spacing: -.045em;
}
.section-heading p,
.page-title-row p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.result-count { padding-bottom: 4px; color: var(--muted); font-size: 10px; }
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.category-scroll { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-pill {
  flex: 0 0 auto;
  padding: 8px 14px;
  color: #62675f;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  transition: .2s ease;
}
.category-pill:hover { color: var(--ink); background: var(--surface); border-color: var(--line); }
.category-pill.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.toolbar-note { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, border-color .25s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: #cfd4c8; }
.product-image-wrap { position: relative; display: block; overflow: hidden; aspect-ratio: 1.16; background: #ebece7; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-image { transform: scale(1.03); }
.product-state {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  color: var(--ink);
  background: rgba(255,255,255,.91);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.product-state::before { content: ""; width: 5px; height: 5px; background: var(--lime-deep); border-radius: 50%; }
.product-state.soldout { color: #7f837b; }
.product-state.soldout::before { background: #aeb2aa; }
.product-body { padding: 17px 17px 15px; }
.product-category { color: #868b82; font-size: 8px; font-weight: 600; letter-spacing: .09em; }
.product-body h3 { min-height: 42px; margin: 8px 0 6px; font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }
.product-body h3 a:hover { color: #657643; }
.product-body p {
  height: 34px;
  margin-bottom: 16px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 22px; line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.price small { margin-right: 2px; color: #6f746b; font-size: 11px; font-weight: 500; }
.round-arrow {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  transition: .2s ease;
}
.round-arrow:hover { color: var(--ink); background: var(--lime); border-color: var(--ink); transform: translateY(-1px); }

.modern-pagination { gap: 5px; margin-top: 40px; }
.modern-pagination .page-link {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7067;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: none;
  font-size: 10px;
}
.modern-pagination .page-item.active .page-link { color: #fff; background: var(--ink); border-color: var(--ink); }
.modern-pagination .page-item.disabled .page-link { opacity: .4; }
.empty-state { padding: 72px 20px; text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-icon { width: 58px; height: 58px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; color: var(--ink); background: var(--lime-soft); border: 1px solid #e0eacb; border-radius: 17px; font-size: 22px; }
.empty-state h3 { font-size: 18px; font-weight: 600; }
.empty-state p { margin-bottom: 22px; color: var(--muted); font-size: 11px; }

.store-footer { padding: 46px 0; background: #fbfcf9; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; }
.footer-primary { max-width: 540px; }
.footer-wordmark { position: relative; display: inline-flex; color: var(--ink); font-size: 23px; font-weight: 650; letter-spacing: -.04em; }
.footer-wordmark i { top: 1px; right: -12px; border-color: #fbfcf9; }
.footer-primary p { margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--muted); font-size: 9px; }

.page-space { padding-top: 35px; padding-bottom: 92px; }
.breadcrumb-soft { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 10px; }
.breadcrumb-soft a:hover { color: var(--ink); }
.breadcrumb-soft i { font-size: 8px; }
.product-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
}
.detail-media { position: relative; min-height: 540px; background: #f0f1ec; }
.detail-media img { width: 100%; height: 100%; min-height: 540px; max-height: 680px; object-fit: cover; }
.detail-media-note { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: var(--ink); background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.9); border-radius: 9px; font-size: 9px; backdrop-filter: blur(9px); }
.detail-info { display: flex; flex-direction: column; padding: 54px 48px 38px; }
.detail-category { color: #7d8477; font-size: 9px; font-weight: 600; letter-spacing: .1em; }
.detail-info h1 { margin: 13px 0 13px; font-size: clamp(31px, 3.2vw, 44px); line-height: 1.16; font-weight: 590; letter-spacing: -.055em; }
.detail-subtitle { color: var(--muted); font-size: 12px; line-height: 1.8; }
.detail-price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 12px; }
.detail-price { font-size: 34px; font-weight: 600; letter-spacing: -.05em; }
.detail-price small { margin-right: 3px; font-size: 16px; font-weight: 500; }
.stock-hint { margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.detail-divider { height: 1px; margin: 24px 0; background: var(--line); }
.option-label { margin-bottom: 11px; font-size: 11px; font-weight: 600; }
.spec-options { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-option { cursor: pointer; }
.spec-option input { position: absolute; opacity: 0; pointer-events: none; }
.spec-option span { display: inline-flex; align-items: center; gap: 5px; padding: 10px 13px; color: #62675e; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; font-size: 10px; transition: .18s ease; }
.spec-option span small { color: var(--muted); font-size: 8px; }
.spec-option input:checked + span { color: var(--ink); background: var(--lime-soft); border-color: #b8d586; box-shadow: inset 0 0 0 1px #b8d586; }
.detail-assurances { display: flex; flex-wrap: wrap; gap: 18px; margin: 27px 0; padding-top: 21px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 9px; }
.detail-assurances span { display: inline-flex; align-items: center; gap: 5px; }
.detail-actions { display: flex; gap: 9px; margin-top: auto; }
.checkout-tip { margin: 13px 0 0; color: var(--muted); text-align: center; font-size: 9px; }
.detail-description { margin-top: 20px; padding: 40px 46px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.description-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.description-head h2 { font-size: 27px; }
.rich-content { padding-top: 23px; color: #4a4f47; font-size: 12px; line-height: 1.9; }
.rich-content h2, .rich-content h3 { margin-top: 1.5em; color: var(--ink); font-weight: 600; letter-spacing: -.025em; }
.rich-content img { height: auto; margin: 17px 0; border-radius: 14px; }
.empty-description { padding: 28px; color: var(--muted); text-align: center; background: var(--surface-soft); border-radius: 13px; }
.muted-copy { color: var(--muted); font-size: 11px; }

.auth-page { background: #f4f5f2; }
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 610px; padding-top: 36px; padding-bottom: 60px; }
.auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 62px;
  color: var(--ink);
  border: 1px solid #dce9c9;
  border-radius: 26px 0 0 26px;
  background: linear-gradient(140deg, #f4faec, #dff0c7);
}
.auth-aside::after { content: ""; position: absolute; width: 310px; height: 310px; right: -110px; bottom: -100px; border: 1px solid rgba(25,29,21,.12); border-radius: 50%; box-shadow: 0 0 0 55px rgba(25,29,21,.025), 0 0 0 110px rgba(25,29,21,.018); }
.auth-aside .eyebrow { color: #6a7364; }
.auth-aside h1 { position: relative; margin: 27px 0 18px; font-size: clamp(38px, 4vw, 56px); line-height: 1.12; font-weight: 590; letter-spacing: -.055em; }
.auth-aside > p { position: relative; max-width: 390px; color: #666e61; line-height: 1.85; font-size: 12px; }
.auth-quote { position: absolute; left: 62px; bottom: 55px; display: flex; align-items: flex-start; gap: 12px; color: #747d6d; font-size: 10px; }
.auth-quote i { color: var(--ink); font-size: 24px; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: 64px 62px; background: var(--surface); border: 1px solid var(--line); border-left: 0; border-radius: 0 26px 26px 0; box-shadow: var(--shadow-soft); }
.auth-card-head { margin-bottom: 28px; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 25px;
  padding: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.auth-tabs a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 550;
}
.auth-tabs a.active {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 2px 6px rgba(23,25,22,.08);
}
.login-assist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 20px;
  color: var(--muted);
  font-size: 11px;
}
.login-assist-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.login-assist-row a {
  color: var(--ink);
  font-weight: 600;
}
.login-assist-row a:hover { color: #6a833a; }
.auth-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--ink); background: var(--lime-soft); border: 1px solid #dae8c3; border-radius: 13px; font-size: 18px; }
.auth-card-head h2 { margin-bottom: 7px; font-size: 27px; font-weight: 590; letter-spacing: -.04em; }
.auth-card-head p { margin: 0; color: var(--muted); font-size: 10px; }
.dev-mode-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -10px 0 21px;
  padding: 11px 12px;
  color: #4b5a38;
  background: var(--lime-soft);
  border: 1px solid #dce9c7;
  border-radius: 10px;
}
.dev-mode-note > span {
  padding: 3px 5px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 4px;
  font-family: monospace;
  font-size: 8px;
  font-weight: 700;
}
.dev-mode-note strong { display: block; font-size: 9px; font-weight: 600; }
.dev-mode-note p { margin: 3px 0 0; color: #78856a; font-size: 8px; line-height: 1.6; }
.dev-mode-note b { color: var(--ink); font-family: monospace; }
.soft-field .form-control, .soft-input { min-height: 50px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; box-shadow: none; font-size: 12px; }
.soft-field .form-control:focus, .soft-input:focus { background: var(--surface); border-color: #a4bc7e; box-shadow: 0 0 0 3px rgba(178,234,77,.14); }
.soft-field > label { color: var(--muted); font-size: 11px; }
.code-group { gap: 8px; flex-wrap: nowrap; }
.btn-code { flex: 0 0 114px; color: var(--ink); background: var(--lime-soft); border: 1px solid #d7e7bd; border-radius: 10px; font-size: 10px; font-weight: 600; }
.btn-code:hover { color: var(--ink); background: var(--lime); border-color: var(--ink); }
.auth-links { display: flex; justify-content: space-between; gap: 15px; margin-top: 20px; color: var(--muted); font-size: 10px; }
.auth-links a:hover { color: var(--ink); }
.reset-aside { background: linear-gradient(140deg, #f5f6f2, #e9ebdf); }

.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-title-row h1 { margin: 7px 0 5px; font-size: 36px; font-weight: 590; letter-spacing: -.05em; }
.secure-chip, .date-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; color: #5e6659; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: 9px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.soft-card { padding: 27px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-soft); }
.card-section-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.step-number { flex: 0 0 auto; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--ink); background: var(--lime-soft); border: 1px solid #dce9c7; border-radius: 8px; font-size: 9px; font-weight: 650; }
.card-section-head h2 { margin: 0 0 3px; font-size: 15px; font-weight: 600; }
.card-section-head p { margin: 0; color: var(--muted); font-size: 9px; }
.checkout-product { display: flex; gap: 16px; padding: 14px; background: var(--surface-soft); border: 1px solid #eff0ec; border-radius: 13px; }
.checkout-product img { width: 100px; height: 100px; flex: 0 0 100px; object-fit: cover; border-radius: 11px; }
.checkout-product-copy { min-width: 0; flex: 1; }
.checkout-product-copy > span { color: var(--muted); font-size: 8px; font-weight: 600; }
.checkout-product-copy h3 { margin: 6px 0 5px; font-size: 15px; font-weight: 600; }
.checkout-product-copy p { margin: 0 0 10px; color: var(--muted); font-size: 9px; }
.checkout-price { font-size: 19px; font-weight: 600; letter-spacing: -.03em; }
.checkout-fields { margin-top: 22px; }
.field-label, .admin-form-label { display: block; margin-bottom: 8px; color: #4b5148; font-size: 10px; font-weight: 600; }
.quantity-control { display: flex; align-items: center; }
.quantity-control button { width: 38px; height: 38px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); }
.quantity-control button:first-child { border-radius: 9px 0 0 9px; }
.quantity-control button:nth-child(3) { border-radius: 0 9px 9px 0; }
.quantity-control input { width: 55px; height: 38px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-left: 0; border-right: 0; text-align: center; appearance: textfield; }
.quantity-control span { margin-left: 13px; color: var(--muted); font-size: 9px; }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.payment-option { position: relative; display: flex; align-items: center; gap: 11px; padding: 15px; cursor: pointer; border: 1px solid var(--line); border-radius: 12px; transition: .2s ease; }
.payment-option input { position: absolute; opacity: 0; }
.payment-option:has(input:checked) { background: var(--lime-soft); border-color: #b5cf82; box-shadow: inset 0 0 0 1px #b5cf82; }
.payment-brand { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 9px; font-size: 17px; font-weight: 700; }
.payment-brand.wechat { background: #1eaa59; }
.payment-brand.alipay { background: #1677ff; font-size: 13px; }
.payment-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.payment-copy strong { color: var(--ink); font-size: 11px; }
.payment-copy small { color: var(--muted); font-size: 8px; }
.radio-dot { margin-left: auto; width: 16px; height: 16px; border: 1px solid #b9beb5; border-radius: 50%; }
.payment-option:has(input:checked) .radio-dot { border: 5px solid var(--ink); }
.checkout-summary { position: sticky; top: 96px; }
.summary-card { padding: 26px; background: var(--ink); color: #fff; border-radius: 20px; box-shadow: 0 18px 38px rgba(23,25,22,.12); }
.summary-card .section-kicker { color: rgba(255,255,255,.46); }
.summary-card h2 { margin: 8px 0 23px; font-size: 24px; font-weight: 560; letter-spacing: -.04em; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 12px; color: rgba(255,255,255,.48); font-size: 10px; }
.summary-line strong { color: #fff; font-weight: 500; }
.summary-divider { height: 1px; margin: 20px 0; background: rgba(255,255,255,.11); }
.summary-total { display: flex; align-items: flex-end; justify-content: space-between; }
.summary-total > span { padding-bottom: 4px; color: rgba(255,255,255,.55); font-size: 10px; }
.summary-total strong { font-size: 30px; font-weight: 560; letter-spacing: -.04em; }
.summary-total strong small { margin-right: 2px; font-size: 14px; }
.summary-card .btn-accent { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.summary-card .btn-accent:hover { color: var(--ink); background: #c6f66f; border-color: var(--ink); }
.summary-note { margin: 12px 0 0; color: rgba(255,255,255,.38); text-align: center; font-size: 8px; }

.payment-page { min-height: 70vh; }
.payment-shell { max-width: 610px; margin: 12px auto 0; text-align: center; }
.payment-status-head { margin-bottom: 23px; }
.status-orb { width: 55px; height: 55px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: var(--ink); background: var(--lime); border-radius: 17px; font-size: 23px; }
.payment-status-head h1, .result-panel h1 { margin: 8px 0; font-size: 32px; font-weight: 590; letter-spacing: -.05em; }
.payment-status-head p, .result-panel p { color: var(--muted); font-size: 10px; }
.qr-card { padding: 27px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-soft); }
.qr-frame { position: relative; width: 306px; height: 306px; margin: 0 auto 16px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.qr-frame img { display: block; width: 280px; height: 280px; }
.qr-corner { position: absolute; width: 22px; height: 22px; border-color: var(--lime-deep); }
.top-left { left: 0; top: 0; border-left: 3px solid; border-top: 3px solid; border-radius: 6px 0 0 0; }
.top-right { right: 0; top: 0; border-right: 3px solid; border-top: 3px solid; border-radius: 0 6px 0 0; }
.bottom-left { left: 0; bottom: 0; border-left: 3px solid; border-bottom: 3px solid; border-radius: 0 0 0 6px; }
.bottom-right { right: 0; bottom: 0; border-right: 3px solid; border-bottom: 3px solid; border-radius: 0 0 6px 0; }
.pay-amount { margin: 4px 0; font-size: 35px; font-weight: 590; letter-spacing: -.045em; }
.pay-amount small { margin-right: 2px; font-size: 15px; }
.payment-brand-line { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 9px; }
.payment-brand-line i { color: #1eaa59; font-size: 15px; }
.alipay-mini { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; color: #fff; background: #1677ff; border-radius: 4px; font-size: 8px; }
.countdown-row { display: flex; justify-content: space-between; margin-top: 19px; padding: 12px 13px; background: var(--surface-soft); border: 1px solid #eff0ec; border-radius: 9px; font-size: 9px; }
.countdown-row strong { color: var(--ink); font-family: monospace; font-size: 11px; }
.waiting-line { margin-top: 15px; display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.pulse-dot { width: 6px; height: 6px; background: var(--lime-deep); border-radius: 50%; box-shadow: 0 0 0 0 rgba(149,210,45,.4); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(149,210,45,0); } 100% { box-shadow: 0 0 0 0 rgba(149,210,45,0); } }
.demo-note { margin: 16px 0 0; padding: 9px; color: #6e572b; background: #fbf5e8; border: 1px solid #f0e3c9; border-radius: 8px; font-size: 9px; }
.order-brief { display: grid; grid-template-columns: 1.6fr 1.5fr .9fr; gap: 10px; margin-top: 13px; padding: 14px 16px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.order-brief div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.order-brief span { color: var(--muted); font-size: 8px; }
.order-brief strong { overflow: hidden; color: #50554c; font-size: 8px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.payment-secondary-actions { display: flex; justify-content: center; gap: 20px; margin-top: 17px; color: var(--muted); font-size: 9px; }
.payment-secondary-actions form { display: inline; }
.link-danger-soft { padding: 0; color: #a7675f; background: none; border: 0; font-size: 9px; }
.result-panel { max-width: 600px; margin: 40px auto; padding: 50px 40px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-soft); }
.result-icon { width: 66px; height: 66px; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; border-radius: 20px; font-size: 27px; }
.result-icon.success { color: var(--ink); background: var(--lime); }
.result-icon.warning { color: #775727; background: #f7ead1; }
.result-icon.muted { color: #6e746b; background: #eef0eb; }
.result-amount { margin: 20px 0; font-size: 36px; font-weight: 590; letter-spacing: -.045em; }

.profile-hero { display: flex; align-items: flex-end; justify-content: space-between; padding: 38px 40px; color: var(--ink); background: linear-gradient(135deg, #f7fbed, #e4f2ce); border: 1px solid #dde9ca; border-radius: 24px; }
.profile-hero .eyebrow { color: #596451; }
.profile-hero h1 { margin: 15px 0 7px; font-size: 40px; font-weight: 590; letter-spacing: -.055em; }
.profile-hero p { margin: 0; color: #737b6e; font-size: 10px; }
.profile-stat { display: flex; flex-direction: column; align-items: flex-end; }
.profile-stat strong { font-size: 43px; font-weight: 560; letter-spacing: -.05em; }
.profile-stat span { color: #777f71; font-size: 9px; }
.order-status-tabs { display: flex; gap: 4px; margin: 19px 0 16px; padding: 5px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.order-status-tabs a { flex: 1 0 auto; padding: 9px 12px; text-align: center; color: var(--muted); border-radius: 8px; font-size: 9px; transition: .2s; }
.order-status-tabs a span { display: inline-flex; min-width: 18px; height: 18px; margin-left: 3px; align-items: center; justify-content: center; padding: 0 5px; background: var(--surface-soft); border-radius: 999px; font-size: 8px; }
.order-status-tabs a.active { color: #fff; background: var(--ink); }
.order-status-tabs a.active span { color: var(--ink); background: var(--lime); }
.order-list { display: flex; flex-direction: column; gap: 11px; }
.order-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); }
.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 17px; background: #fbfcfa; border-bottom: 1px solid #eff0ec; }
.order-card-head > div { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.order-date { color: #51574e; font-size: 9px; font-weight: 600; }
.order-number { color: var(--muted); font-size: 8px; }
.order-status { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 8px; font-weight: 600; white-space: nowrap; }
.status-pending { color: #8a6129; background: #faf0df; }
.status-paid { color: #3d6d43; background: #e9f4df; }
.status-completed { color: #406a78; background: #e8f1f2; }
.status-closed { color: #71766f; background: #eef0ec; }
.order-card-body { display: grid; grid-template-columns: 70px minmax(0, 1fr) 110px auto; align-items: center; gap: 15px; padding: 16px 17px; }
.order-card-body > img { width: 70px; height: 64px; object-fit: cover; border-radius: 10px; }
.order-product { min-width: 0; }
.order-product > span { color: var(--muted); font-size: 8px; }
.order-product h2 { margin: 4px 0; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.order-product p { margin: 0; color: var(--muted); font-size: 8px; }
.order-amount { display: flex; flex-direction: column; gap: 3px; }
.order-amount span { color: var(--muted); font-size: 8px; }
.order-amount strong { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.order-actions { display: flex; gap: 6px; }
.order-actions .btn { border-radius: 8px; font-size: 8px; }
.order-detail-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 32px 35px; border: 1px solid var(--line); border-radius: 20px; }
.status-tint-pending { background: #fffaf1; color: #55482d; }
.status-tint-paid { background: #f2f8ec; color: #2e4731; }
.status-tint-completed { background: #eff5f5; color: #2d4850; }
.status-tint-closed { background: #f1f2ef; color: #485049; }
.order-detail-hero h1 { margin: 13px 0 6px; font-size: 31px; font-weight: 590; letter-spacing: -.045em; }
.order-detail-hero p { margin: 0; opacity: .63; font-size: 10px; }
.hero-order-amount { display: flex; flex-direction: column; align-items: flex-end; }
.hero-order-amount > span { opacity: .55; font-size: 8px; }
.hero-order-amount strong { font-size: 32px; font-weight: 590; letter-spacing: -.04em; }
.hero-order-amount small { margin-right: 2px; font-size: 13px; }
.order-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 315px; gap: 18px; margin-top: 18px; align-items: start; }
.remark-box { margin-top: 18px; padding: 12px 14px; background: #fbfaf5; border: 1px solid #f0ede3; border-radius: 10px; }
.remark-box span { color: var(--muted); font-size: 8px; }
.remark-box p { margin: 5px 0 0; color: #555b52; font-size: 10px; line-height: 1.7; }
.order-timeline { position: relative; padding-left: 4px; }
.timeline-item { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: var(--line); }
.timeline-dot { position: relative; z-index: 1; flex: 0 0 11px; width: 11px; height: 11px; margin-top: 3px; background: var(--surface); border: 3px solid #a5bd7f; border-radius: 50%; }
.timeline-item strong { font-size: 10px; font-weight: 600; }
.timeline-item p { margin: 3px 0; color: #656b62; font-size: 9px; }
.timeline-item span { color: var(--muted); font-size: 8px; }
.detail-side-card h2 { font-size: 15px; font-weight: 600; }
.info-list { margin: 19px 0 22px; }
.info-list > div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px dashed #e9ebe5; font-size: 9px; }
.info-list dt { color: var(--muted); font-weight: 400; }
.info-list dd { display: flex; gap: 5px; margin: 0; color: #4e544c; text-align: right; }
.copy-button { padding: 0; color: var(--muted); background: none; border: 0; }
.copy-button:hover { color: var(--ink); }
.break-all { word-break: break-all; }
.support-note { display: flex; gap: 12px; margin-top: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.support-note > i { color: #657550; font-size: 18px; }
.support-note strong { font-size: 9px; }
.support-note p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }

.toast { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-float); }
.toast-header { border: 0; border-radius: 12px 12px 0 0; }
.toast-body { font-size: 10px; }
.toast-mark { width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; }
.toast-success { background: var(--lime-deep); box-shadow: 0 0 0 4px rgba(149,210,45,.12); }
.toast-danger { background: var(--danger); box-shadow: 0 0 0 4px rgba(198,96,85,.12); }
.toast-warning { background: var(--amber); box-shadow: 0 0 0 4px rgba(214,162,83,.12); }
.toast-info { background: var(--blue); box-shadow: 0 0 0 4px rgba(126,164,204,.12); }
.confirm-modal { padding: 30px; text-align: center; border: 1px solid var(--line); border-radius: 18px; }
.confirm-icon { width: 48px; height: 48px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; color: var(--ink); background: var(--lime-soft); border-radius: 14px; font-size: 20px; }
.confirm-modal h2 { margin-bottom: 8px; font-size: 18px; font-weight: 600; }
.confirm-modal p { margin-bottom: 22px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.confirm-actions { display: flex; justify-content: center; gap: 8px; }
.confirm-actions .btn { min-width: 100px; border-radius: 9px; font-size: 9px; }
.soft-alert { padding: 10px 12px; border: 0; border-radius: 9px; font-size: 10px; }
.btn .loading-spinner { margin-left: 6px; }
.btn[disabled] { opacity: .7; }

@media (max-width: 1199.98px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-panel { padding: 50px; }
  .showcase-panel { right: 10px; }
  .detail-info { padding: 44px 34px 32px; }
}

@media (max-width: 991.98px) {
  .hero-panel { grid-template-columns: 1fr; min-height: 470px; padding: 46px 42px; }
  .hero-copy { max-width: 560px; }
  .hero-art { min-height: 280px; }
  .showcase-panel { right: 16px; top: 0; width: 330px; }
  .note-one { right: 0; top: -12px; }
  .note-two { bottom: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-card { grid-template-columns: 1fr; }
  .detail-media, .detail-media img { min-height: 410px; max-height: 520px; }
  .auth-shell { grid-template-columns: 1fr; max-width: 700px; }
  .auth-aside { min-height: 320px; padding: 42px; border-radius: 24px 24px 0 0; }
  .auth-quote { display: none; }
  .auth-card { padding: 42px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 24px 24px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .order-card-body { grid-template-columns: 64px minmax(0,1fr) auto; }
  .order-amount { display: none; }
}

@media (max-width: 767.98px) {
  .store-nav { min-height: 67px; }
  .brand-mark { width: 37px; height: 37px; border-radius: 11px; }
  .brand-copy small { display: none; }
  .store-nav-links { gap: 12px; }
  .store-nav-links .nav-quiet:first-child { display: none; }
  .hero-section { padding-top: 15px; }
  .hero-panel { min-height: 540px; padding: 34px 25px; gap: 15px; border-radius: 23px; }
  .hero-copy h1 { margin-top: 19px; font-size: 43px; }
  .hero-copy p { font-size: 11px; }
  .hero-actions { gap: 13px; margin-top: 24px; }
  .hero-art { min-height: 225px; }
  .showcase-panel { width: 270px; padding: 15px; right: 50%; transform: translateX(50%) rotate(1.5deg); }
  .showcase-grid { grid-template-rows: 74px 63px; gap: 7px; margin-top: 14px; }
  .showcase-caption { display: none; }
  .floating-note { display: none; }
  .product-section { padding-top: 39px; padding-bottom: 62px; }
  .member-catalog-head { padding-top: 30px; }
  .member-catalog-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 22px;
  }
  .member-catalog-copy h1 { font-size: 34px; }
  .member-catalog-copy p { font-size: 13px; }
  .member-catalog-meta {
    width: 100%;
    justify-content: space-between;
  }
  .member-count { align-items: flex-start; }
  .member-count strong { font-size: 31px; }
  .catalog-page { padding-top: 28px; }
  .section-heading h2 { font-size: 29px; }
  .toolbar-note { display: none; }
  .catalog-toolbar { margin-bottom: 17px; }
  .product-grid { gap: 10px; }
  .product-card { border-radius: 15px; }
  .product-body { padding: 12px; }
  .product-body h3 { min-height: 39px; font-size: 13px; }
  .product-body p { height: 31px; margin-bottom: 12px; font-size: 9px; }
  .product-category { font-size: 7px; }
  .price { font-size: 19px; }
  .round-arrow { width: 30px; height: 30px; }
  .product-state { top: 8px; left: 8px; padding: 4px 7px; font-size: 7px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-meta { align-items: flex-start; }
  .page-space { padding-top: 21px; padding-bottom: 60px; }
  .detail-media, .detail-media img { min-height: 300px; max-height: 390px; }
  .detail-info { padding: 27px 21px; }
  .detail-info h1 { font-size: 29px; }
  .detail-actions { flex-direction: column; }
  .detail-description { padding: 25px 20px; }
  .auth-page .store-header { position: relative; }
  .auth-shell { padding-top: 15px; padding-bottom: 30px; }
  .auth-aside { min-height: 235px; padding: 28px 24px; }
  .auth-aside h1 { margin: 16px 0 10px; font-size: 30px; }
  .auth-card { padding: 31px 23px; }
  .auth-card-head h2 { font-size: 25px; }
  .btn-code { flex-basis: 99px; font-size: 9px; }
  .page-title-row h1 { font-size: 30px; }
  .secure-chip { display: none; }
  .soft-card { padding: 20px 17px; }
  .checkout-product img { width: 82px; height: 82px; flex-basis: 82px; }
  .payment-options { grid-template-columns: 1fr; }
  .qr-card { padding: 18px 14px; border-radius: 19px; }
  .qr-frame { width: 270px; height: 270px; padding: 10px; }
  .qr-frame img { width: 248px; height: 248px; }
  .order-brief { grid-template-columns: 1fr; gap: 9px; }
  .profile-hero { align-items: flex-start; padding: 27px 22px; }
  .profile-hero h1 { font-size: 31px; }
  .profile-stat strong { font-size: 33px; }
  .order-card-body { grid-template-columns: 58px minmax(0,1fr); gap: 11px; }
  .order-card-body > img { width: 58px; height: 58px; }
  .order-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 5px; }
  .order-card-head > div { gap: 5px; }
  .order-number { width: 100%; }
  .order-detail-hero { align-items: flex-start; flex-direction: column; padding: 24px 20px; }
  .order-detail-hero h1 { font-size: 25px; }
  .hero-order-amount { align-items: flex-start; }
  .result-panel { padding: 37px 21px; }
  .result-panel h1 { font-size: 27px; }
}

@media (max-width: 390px) {
  .brand-copy strong { font-size: 12px; }
  .store-nav-links { gap: 8px; }
  .hero-copy h1 { font-size: 38px; }
  .product-grid { gap: 8px; }
  .detail-assurances { gap: 9px; }
  .qr-frame { transform: scale(.9); margin: -12px auto -3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Client readability pass. */
.brand-copy strong { font-size: 16px; }
.brand-copy small { font-size: 10px; }
.nav-quiet { font-size: 14px; }
.hero-copy p { font-size: 16px; }
.hero-trust,
.floating-note { font-size: 12px; }
.showcase-head,
.showcase-caption span { font-size: 10px; }
.showcase-tile,
.showcase-caption strong { font-size: 12px; }
.section-kicker { font-size: 11px; }
.section-heading p,
.page-title-row p { font-size: 13px; }
.result-count,
.toolbar-note { font-size: 12px; }
.category-pill { padding: 9px 15px; font-size: 12px; }
.product-state { font-size: 10px; }
.product-category { font-size: 10px; }
.product-body h3 { min-height: 46px; font-size: 17px; }
.product-body p { height: 40px; font-size: 12px; }
.price { font-size: 24px; }
.price small { font-size: 12px; }
.round-arrow { width: 38px; height: 38px; font-size: 14px; }
.breadcrumb-soft { font-size: 12px; }
.detail-category { font-size: 11px; }
.detail-subtitle { font-size: 14px; }
.stock-hint { font-size: 12px; }
.option-label { font-size: 13px; }
.spec-option span { padding: 11px 15px; font-size: 12px; }
.spec-option span small,
.detail-assurances,
.checkout-tip { font-size: 11px; }
.rich-content { font-size: 14px; }
.auth-card-head h2 { font-size: 30px; }
.auth-card-head p { font-size: 12px; }
.soft-field .form-control,
.soft-input { min-height: 54px; font-size: 14px; }
.soft-field > label { font-size: 13px; }
.btn-code { flex-basis: 126px; font-size: 12px; }
.auth-links { font-size: 12px; }
.dev-mode-note > span { font-size: 10px; }
.dev-mode-note strong { font-size: 12px; }
.dev-mode-note p { font-size: 11px; }
.card-section-head h2 { font-size: 18px; }
.card-section-head p { font-size: 11px; }
.checkout-product-copy > span { font-size: 10px; }
.checkout-product-copy h3 { font-size: 17px; }
.checkout-product-copy p { font-size: 11px; }
.field-label,
.admin-form-label { font-size: 12px; }
.quantity-control span { font-size: 11px; }
.payment-copy strong { font-size: 13px; }
.payment-copy small,
.summary-line,
.summary-total > span { font-size: 11px; }
.summary-note,
.payment-status-head p,
.result-panel p { font-size: 12px; }
.order-brief span,
.payment-secondary-actions,
.link-danger-soft { font-size: 10px; }
.order-brief strong { font-size: 11px; }
.profile-hero p,
.profile-stat span { font-size: 12px; }
.order-status-tabs a { min-height: 38px; padding: 10px 13px; font-size: 12px; }
.order-status-tabs a span { font-size: 10px; }
.order-date,
.order-product > span { font-size: 11px; }
.order-number,
.order-product p,
.order-amount span { font-size: 10px; }
.order-product h2 { font-size: 15px; }
.order-status,
.order-actions .btn { font-size: 10px; }
.order-detail-hero p,
.remark-box p,
.timeline-item p,
.order-detail-hero p { font-size: 12px; }
.info-list > div,
.support-note strong { font-size: 11px; }
.support-note p,
.timeline-item span { font-size: 10px; }
.result-panel p { font-size: 12px; }

@media (max-width: 767.98px) {
  .nav-quiet { font-size: 12px; }
  .hero-copy p { font-size: 13px; }
  .product-category { font-size: 9px; }
  .product-body h3 { min-height: 42px; font-size: 15px; }
  .product-body p { height: 34px; font-size: 10px; }
  .price { font-size: 21px; }
  .auth-tabs a { font-size: 13px; }
  .auth-card-head h2 { font-size: 27px; }
  .soft-field .form-control,
  .soft-input { min-height: 52px; font-size: 15px; }
  .btn-code { flex-basis: 108px; font-size: 11px; }
  .order-status-tabs a { font-size: 11px; }
}

/* Compact catalog: filters and smaller cards are the only content after login. */
.catalog-bare { padding-top: 34px; }
.catalog-bare .catalog-toolbar {
  margin-bottom: 12px;
  padding-bottom: 13px;
}
.secondary-filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  margin-bottom: 23px;
  padding: 5px 0 14px;
  border-bottom: 1px solid var(--line);
}
.secondary-filter-title {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}
.secondary-filter-options {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.secondary-filter-options::-webkit-scrollbar { display: none; }
.secondary-filter-pill {
  flex: 0 0 auto;
  padding: 6px 11px;
  color: #777d72;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11px;
  transition: .18s ease;
}
.secondary-filter-pill:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
.secondary-filter-pill.active {
  color: var(--ink);
  background: var(--lime-soft);
  border-color: #d8e8be;
  font-weight: 600;
}
.catalog-bare .product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.catalog-bare .product-card { border-radius: 17px; }
.catalog-bare .product-image-wrap { aspect-ratio: 1.22; }
.catalog-bare .product-body { padding: 14px 14px 13px; }
.catalog-bare .product-body h3 { min-height: 40px; margin: 7px 0 5px; font-size: 15px; }
.catalog-bare .product-body p { height: 36px; margin-bottom: 13px; font-size: 11px; }
.catalog-bare .price { font-size: 21px; }
.catalog-bare .round-arrow { width: 34px; height: 34px; }

@media (max-width: 1399.98px) {
  .catalog-bare .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1199.98px) {
  .catalog-bare .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .catalog-bare .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .catalog-bare { padding-top: 22px; }
  .secondary-filter-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 17px;
  }
  .secondary-filter-options { width: 100%; }
  .catalog-bare .product-grid { gap: 9px; }
  .catalog-bare .product-body { padding: 11px; }
  .catalog-bare .product-body h3 { min-height: 38px; font-size: 14px; }
  .catalog-bare .product-body p { font-size: 10px; }
  .catalog-bare .price { font-size: 19px; }
}

/* Provider-specific payment pages. */
.payment-page {
  --provider: #b2ea4d;
  --provider-deep: #638e1d;
  --provider-soft: #f3fae7;
  --provider-border: #dce9c7;
  position: relative;
  border-radius: 28px;
  background: radial-gradient(circle at 50% -80px, var(--provider-soft), transparent 520px);
}
.payment-page.provider-wechat {
  --provider: #07c160;
  --provider-deep: #05994b;
  --provider-soft: #eaf9f1;
  --provider-border: #bfe9d2;
}
.payment-page.provider-alipay {
  --provider: #1677ff;
  --provider-deep: #0d5ed8;
  --provider-soft: #edf4ff;
  --provider-border: #bfd7ff;
}
.payment-provider-chip {
  width: fit-content;
  min-width: 245px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 23px;
  padding: 8px 11px;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  border: 1px solid var(--provider-border);
  border-radius: 13px;
  box-shadow: 0 9px 25px rgba(24,34,22,.055);
  text-align: left;
  backdrop-filter: blur(10px);
}
.provider-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--provider);
  border-radius: 9px;
  font-size: 17px;
}
.provider-mark b { font-size: 12px; }
.provider-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.provider-copy small { color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.provider-copy strong { font-size: 12px; font-weight: 600; }
.payment-provider-chip em {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--provider-deep);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}
.payment-page .status-orb {
  color: #fff;
  background: var(--provider);
  box-shadow: 0 9px 24px color-mix(in srgb, var(--provider) 24%, transparent);
}
.payment-page .section-kicker { color: var(--provider-deep); }
.payment-page .qr-card {
  background: linear-gradient(180deg, var(--provider-soft) -55%, #fff 34%);
  border-color: var(--provider-border);
}
.payment-page .qr-frame { border-color: var(--provider-border); }
.payment-page .qr-corner { border-color: var(--provider); }
.payment-page .countdown-row strong { color: var(--provider-deep); }
.payment-page .pulse-dot {
  background: var(--provider);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--provider) 35%, transparent);
}
.payment-page .payment-brand-line i { color: var(--provider); }
.payment-page .alipay-mini { background: var(--provider); }
.payment-page .result-icon.success { color: #fff; background: var(--provider); }
.payment-page .result-panel {
  background: linear-gradient(180deg, var(--provider-soft), #fff 32%);
  border-color: var(--provider-border);
}
.payment-page .btn-accent {
  color: #fff;
  background: var(--provider-deep);
  border-color: var(--provider-deep);
}
.payment-page .btn-accent:hover {
  color: #fff;
  background: var(--provider);
  border-color: var(--provider);
}

@media (max-width: 767.98px) {
  .payment-provider-chip { width: 100%; min-width: 0; }
}

/* Final navigation, compact grid and rendering performance. */
.store-header {
  background: rgba(251,252,249,.98);
  backdrop-filter: none;
}
.store-nav-primary {
  display: flex;
  align-items: center;
  gap: 38px;
  min-width: 0;
}
.store-main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}
.store-main-nav a {
  position: relative;
  color: #62685e;
  font-size: 14px;
  line-height: 40px;
  white-space: nowrap;
}
.store-main-nav a:hover,
.store-main-nav a.active { color: var(--ink); }
.store-main-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 16px;
  height: 3px;
  background: var(--lime);
  border-radius: 999px;
  transform: translateX(-50%);
}
.store-nav-actions { flex: 0 0 auto; }
.logout-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  color: #646a60;
  background: transparent;
  border: 0;
  font-size: 13px;
}
.logout-link:hover { color: var(--ink); }
.primary-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.primary-filter-label {
  flex: 0 0 auto;
  color: #555b51;
  font-size: 12px;
  font-weight: 600;
}
.catalog-bare .category-pill { font-size: 11px; }
.catalog-bare .category-pill.active {
  color: #3e453a;
  background: #f0f2ec;
  border-color: #dfe3da;
}
.catalog-bare .product-card {
  content-visibility: auto;
  contain-intrinsic-size: 300px;
}
.catalog-bare .product-card:hover { transform: none; }
.catalog-bare .product-card:hover .product-image { transform: none; }
.catalog-bare .product-image { transition: none; }
.catalog-bare .product-body { padding: 12px 12px 11px; }
.catalog-bare .product-body h3 { min-height: 38px; font-size: 14px; }
.catalog-bare .product-body p { height: 32px; margin-bottom: 11px; font-size: 10px; }
.catalog-bare .price { font-size: 20px; }
.catalog-bare .round-arrow { width: 31px; height: 31px; }

@media (min-width: 1400px) {
  .catalog-bare .product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .catalog-bare .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .catalog-bare .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .catalog-bare .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .store-nav-primary { gap: 14px; }
  .store-main-nav {
    gap: 13px;
    padding-left: 14px;
  }
  .store-main-nav a { font-size: 12px; line-height: 36px; }
  .logout-link { font-size: 12px; }
  .primary-filter-group {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 430px) {
  .store-main-nav a:first-child { display: none; }
  .store-main-nav { padding-left: 10px; }
}

/* User-defined card width and compact checkout thumbnails. */
.catalog-bare .product-grid {
  grid-template-columns: repeat(
    auto-fill,
    minmax(
      var(--product-card-width, 180px),
      var(--product-card-width, 180px)
    )
  );
  justify-content: start;
}
.checkout-product {
  align-items: center;
  padding: 12px;
}
.checkout-product img {
  width: 66px;
  height: 66px;
  flex-basis: 66px;
  border-radius: 9px;
}
.checkout-product-copy h3 {
  margin-top: 3px;
}
.checkout-product-copy p {
  margin-bottom: 5px;
}

@media (max-width: 767.98px) {
  .catalog-bare .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .checkout-product img {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
}

/* Compact product purchase panel. */
.breadcrumb-soft {
  margin-bottom: 17px;
  font-size: 14px;
}
.breadcrumb-soft i { font-size: 10px; }
.product-detail-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(310px, 360px) minmax(0, 1fr);
  align-items: stretch;
}
.detail-media {
  height: auto;
  min-height: 390px;
  max-height: none;
  display: flex;
  align-items: center;
  padding: 24px;
  background: linear-gradient(145deg, #f0f3ec, #e7eee3);
}
.detail-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  border-radius: 16px;
}
.detail-info { padding: 36px 40px 32px; }
.detail-info h1 { font-size: 34px; }
.detail-assurances { margin: 19px 0 16px; padding-top: 17px; }
.order-link-field { margin: 0 0 18px; }
.order-link-field > label {
  display: block;
  margin-bottom: 8px;
  color: #4b5148;
  font-size: 12px;
  font-weight: 600;
}
.order-link-field > label em {
  color: var(--danger);
  font-style: normal;
}
.order-link-field > p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.order-link-input { position: relative; }
.order-link-input > i {
  position: absolute;
  left: 13px;
  top: 50%;
  z-index: 2;
  color: #8c9287;
  font-size: 14px;
  transform: translateY(-50%);
}
.order-link-input > input {
  width: 100%;
  min-height: 47px;
  padding: 10px 13px 10px 38px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  font-size: 13px;
}
.order-link-input > input:focus {
  background: var(--surface);
  border-color: #a4bc7e;
  box-shadow: 0 0 0 3px rgba(178,234,77,.14);
}
.order-link-summary .copy-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  padding: 0;
  color: #667060;
  background: transparent;
  border: 0;
  font-size: 10px;
}
.checkout-fields .field-label em {
  color: var(--danger);
  font-style: normal;
}
.checkout-fields > .form-hint {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}
.detail-description { max-width: 1120px; margin-left: auto; margin-right: auto; }

@media (max-width: 991.98px) {
  .product-detail-card { grid-template-columns: 1fr; }
  .detail-media {
    min-height: 280px;
    height: 300px;
    max-height: 300px;
  }
}

@media (max-width: 767.98px) {
  .breadcrumb-soft { font-size: 13px; }
  .product-detail-card { width: 100%; }
  .detail-media {
    min-height: 230px;
    height: 250px;
    max-height: 250px;
    padding: 16px;
  }
  .detail-info { padding: 24px 18px; }
  .detail-info h1 { font-size: 27px; }
}

/* Catalog filter and footer readability refinement. */
.primary-filter-label {
  color: #3f463c;
  font-size: 14px;
  font-weight: 650;
}
.catalog-bare .category-pill {
  padding: 9px 16px;
  color: #4f564b;
  font-size: 14px;
  font-weight: 500;
}
.secondary-filter-title {
  color: #545b51;
  font-size: 14px;
  font-weight: 600;
}
.secondary-filter-pill {
  padding: 8px 13px;
  color: #555c52;
  font-size: 14px;
  font-weight: 500;
}
.result-count {
  color: #5b6258;
  font-size: 14px;
  font-weight: 550;
}
.footer-primary p {
  color: #646b61;
  font-size: 13px;
  line-height: 1.75;
}
.footer-meta {
  color: #666d63;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 767.98px) {
  .primary-filter-label,
  .secondary-filter-title,
  .catalog-bare .category-pill,
  .secondary-filter-pill,
  .result-count {
    font-size: 13px;
  }
  .footer-primary p { font-size: 12px; }
  .footer-meta { font-size: 11px; }
}
