/* ============================================================
   LIN YUE DAILY NECESSITIES · 琳阅日用品
   Palette: bright grass green + cream + khaki
   Model: English-first, RMB primary / USD reference,
          MOQ + tiered wholesale price, inquiry-based (no online payment)
   ============================================================ */

:root {
  /* neutrals */
  --ink: #17210F;
  --ink-2: #4C5545;
  --ink-3: #8A927E;
  --line: #E5DCC8;
  --line-2: #D5C8AC;

  /* surfaces */
  --cream: #FBF7EC;
  --cream-2: #F4EDDD;
  --surface: #FFFFFF;

  /* brand */
  --grass: #6CD53A;
  --grass-2: #58B92C;
  --grass-deep: #3B7A1C;
  --grass-soft: #EAF7DF;
  --grass-tint: #F4FBEE;
  --khaki: #C8B48F;
  --khaki-2: #A9906A;
  --khaki-soft: #EFE7D4;
  --forest: #142B12;
  --forest-2: #1D3A19;

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1280px;
  --shadow-s: 0 1px 2px rgba(23, 40, 15, .05);
  --shadow-m: 0 1px 2px rgba(23, 40, 15, .04), 0 10px 26px -18px rgba(23, 40, 15, .3);
  --shadow-l: 0 2px 4px rgba(23, 40, 15, .05), 0 22px 52px -26px rgba(23, 40, 15, .34);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 14px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img, svg { display: block; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--grass-deep);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.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;
}

/* ---------- utility bar ---------- */
.utility {
  background: var(--forest);
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  letter-spacing: .01em;
}
.utility .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  gap: 16px;
}
.utility__left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.utility__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--grass); flex: none; }
.utility__left span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.utility__right { display: flex; align-items: center; gap: 18px; flex: none; }
.utility a:hover { color: #fff; }

/* ---------- language switch ---------- */
.langsw {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
}
.langsw button {
  font: inherit;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 4px 8px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.langsw button:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.langsw button.is-on {
  background: var(--grass);
  color: var(--forest);
  font-weight: 700;
}
html[data-lang="zh"] .brand__sub { letter-spacing: .04em; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 236, .95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__main {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand__logo { width: 40px; height: 40px; flex: none; }
.brand__logo svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .09em;
  color: var(--ink);
}
.brand__sub {
  font-size: 8px;
  color: var(--ink-3);
  letter-spacing: .16em;
  margin-top: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.search {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  height: 42px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0 6px 0 13px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.search:focus-within { border-color: var(--grass-2); box-shadow: 0 0 0 3px rgba(108, 213, 58, .16); }
.search svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 0 10px;
  font-size: 13.5px;
  outline: none;
}
.search input::placeholder { color: var(--ink-3); }
.search__btn {
  height: 32px;
  padding: 0 15px;
  border-radius: 7px;
  background: var(--grass);
  color: #10230A;
  font-size: 12.5px;
  font-weight: 700;
  flex: none;
  transition: background .16s var(--ease);
}
.search__btn:hover { background: var(--grass-2); }

.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.ratepill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.2;
  transition: border-color .16s var(--ease);
}
.ratepill:hover { border-color: var(--khaki-2); }
.ratepill svg { width: 15px; height: 15px; color: var(--grass-deep); flex: none; }
.ratepill__v { display: flex; flex-direction: column; }
.ratepill__v b { font-size: 12.5px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.ratepill__v i { font-style: normal; font-size: 10px; color: var(--ink-3); }

.iconbtn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 13px;
  color: var(--ink-2);
  transition: all .18s var(--ease);
  white-space: nowrap;
}
.iconbtn:hover { border-color: var(--khaki-2); color: var(--ink); }
.iconbtn svg { width: 17px; height: 17px; }
.iconbtn--primary {
  background: var(--grass);
  border-color: var(--grass);
  color: #10230A;
  font-weight: 700;
}
.iconbtn--primary:hover { background: var(--grass-2); border-color: var(--grass-2); color: #10230A; }
.badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--forest);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.iconbtn--primary .badge { background: rgba(16, 35, 10, .28); color: #fff; }

/* ---------- hero (compact, product-first) ---------- */
.hero { padding: 34px 0 26px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--grass-deep);
  font-weight: 700;
  margin-bottom: 13px;
}
.eyebrow::before {
  content: "";
  width: 20px; height: 2px;
  background: var(--grass);
  border-radius: 1px;
}
.hero h1 {
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -.03em;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero h1 em {
  font-style: normal;
  color: var(--grass-deep);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: 1px;
  height: 9px;
  background: var(--grass);
  opacity: .34;
  z-index: -1;
  border-radius: 2px;
}
.hero__lead {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 20px;
}
.hero__cta { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--grass); color: #10230A; font-weight: 700; box-shadow: 0 8px 20px -12px rgba(60, 130, 25, .85); }
.btn--primary:hover { background: var(--grass-2); transform: translateY(-1px); }
.btn--ghost { background: #fff; border: 1px solid var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--grass-2); color: var(--grass-deep); }
.btn--sm { height: 36px; padding: 0 15px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; }

.hero__trust { display: flex; gap: 24px; flex-wrap: wrap; }
.trust__item { display: flex; align-items: flex-start; gap: 8px; }
.trust__item svg { width: 16px; height: 16px; color: var(--grass-deep); margin-top: 2px; flex: none; }
.trust__t { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.trust__d { font-size: 11px; color: var(--ink-3); line-height: 1.4; }

/* hero side card */
.fxcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-l);
  position: relative;
  overflow: hidden;
}
.fxcard::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--grass), var(--grass-2) 60%, var(--khaki));
}
.fxcard__k {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 8px;
}
.fxcard__rate { display: flex; align-items: baseline; gap: 5px; margin-bottom: 6px; }
.fxcard__rate b { font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.fxcard__rate span { font-size: 12.5px; color: var(--ink-2); }
.fxcard__usd {
  font-size: 12px;
  color: var(--ink-3);
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 13px;
  line-height: 1.6;
}
.fxcard__usd b { color: var(--ink-2); font-weight: 600; }
.fxcard__rows { display: flex; flex-direction: column; gap: 9px; }
.fxcard__row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.fxcard__row svg { width: 14px; height: 14px; color: var(--grass-deep); flex: none; }
.fxcard__row b { margin-left: auto; font-weight: 700; color: var(--ink); font-size: 12px; }

/* ---------- filter bar ---------- */
.section { padding: 40px 0 0; }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 20px;
  flex-wrap: wrap;
}
.section__title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.section__sub { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.section__more {
  font-size: 12.5px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.section__more:hover { color: var(--grass-deep); }
.section__more svg { width: 14px; height: 14px; }

.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.chipf {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: all .16s var(--ease);
  white-space: nowrap;
}
.chipf:hover { border-color: var(--grass-2); color: var(--grass-deep); }
.chipf.is-on {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  font-weight: 600;
}
.filters__spacer { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.filters__count { font-size: 12px; color: var(--ink-3); }
.sortsel {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-2);
  outline: none;
  cursor: pointer;
}

/* ---------- product grid ---------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .2s var(--ease);
  min-width: 0;
}
.pcard:hover { border-color: var(--line-2); box-shadow: var(--shadow-m); transform: translateY(-2px); }
.pcard__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--grass-tint);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pcard__media svg.ph { width: 100%; height: 100%; }
.pcard__tag {
  position: absolute;
  top: 9px; left: 9px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .95);
  color: var(--grass-deep);
  backdrop-filter: blur(4px);
  letter-spacing: .02em;
}
.pcard__tag--hot { color: #10230A; background: var(--grass); }
.pcard__tag--new { color: #fff; background: var(--khaki-2); }
.pcard__body { padding: 13px 14px 14px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pcard__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.pcard__namezh { font-size: 11px; color: var(--ink-3); margin-bottom: 9px; line-height: 1.35; }
.pcard__meta { font-size: 11.5px; color: var(--ink-3); margin-bottom: 10px; }

.pcard__price { display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; }
.pcard__price .cur { font-size: 12px; color: var(--ink); font-weight: 700; }
.pcard__price b { font-size: 22px; color: var(--ink); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.pcard__price .unit { font-size: 11px; color: var(--ink-3); margin-left: 3px; }
.pcard__usd {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  align-self: flex-end;
  padding-bottom: 1px;
}
.pcard__usd b { font-weight: 600; color: var(--ink-2); }

.pcard__tiers {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.tier {
  font-size: 10.5px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  background: var(--cream-2);
  color: var(--ink-2);
  border: 1px solid transparent;
  white-space: nowrap;
  font-weight: 600;
}
.tier i { font-style: normal; font-weight: 400; color: var(--ink-3); margin-right: 2px; }
.tier.is-on { background: var(--grass-soft); color: var(--grass-deep); border-color: #CBEAAF; }

.pcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.pcard__moq { font-size: 11px; color: var(--ink-2); }
.pcard__moq b { color: var(--ink); font-weight: 700; }
.btn--add {
  height: 31px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  background: var(--grass-soft);
  color: var(--grass-deep);
  transition: all .16s var(--ease);
  flex: none;
}
.btn--add:hover { background: var(--grass); color: #10230A; }
.btn--add.is-added { background: var(--forest); color: #fff; }

.pgrid__empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
  background: #fff;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}

/* ---------- lead time / payment strip ---------- */
.strip {
  margin-top: 44px;
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.strip::after {
  content: "";
  position: absolute;
  right: -60px; top: -90px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 213, 58, .22), transparent 62%);
  pointer-events: none;
}
.strip__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--grass);
  font-weight: 700;
  margin-bottom: 11px;
}
.strip h2 {
  font-size: 21px;
  line-height: 1.38;
  letter-spacing: -.02em;
  font-weight: 700;
  margin-bottom: 8px;
}
.strip p {
  font-size: 13px;
  line-height: 1.68;
  color: rgba(255, 255, 255, .62);
  max-width: 600px;
}
.strip__grid { display: flex; gap: 10px; position: relative; z-index: 1; }
.strip__item {
  min-width: 132px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px 15px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
}
.strip__k { font-size: 10.5px; letter-spacing: .05em; color: rgba(255, 255, 255, .6); margin-bottom: 3px; }
.strip__v { font-size: 28px; line-height: 1.04; font-weight: 800; letter-spacing: -.03em; color: var(--grass); }
.strip__v i { font-style: normal; font-size: 11.5px; font-weight: 500; margin-left: 2px; color: rgba(255, 255, 255, .62); letter-spacing: 0; }
.strip__d { font-size: 10.5px; line-height: 1.5; color: rgba(255, 255, 255, .48); margin-top: 4px; }

/* ---------- promise ---------- */
.promise {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.promise .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.promise__item { display: flex; gap: 11px; align-items: flex-start; }
.promise__ico {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--grass-soft);
  color: var(--grass-deep);
  display: grid; place-items: center;
  flex: none;
}
.promise__ico svg { width: 16px; height: 16px; }
.promise__t { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.promise__d { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }

/* ---------- disclaimer ---------- */
.disclaimer {
  margin: 22px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--khaki-soft);
  border: 1px solid var(--line-2);
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.disclaimer svg { width: 16px; height: 16px; color: var(--khaki-2); flex: none; margin-top: 1px; }
.disclaimer__body { font-size: 11.5px; line-height: 1.62; color: #5A4B32; }
.disclaimer__body b { display: block; font-size: 12px; color: #43361F; margin-bottom: 2px; font-weight: 700; }
.disclaimer__body .en { display: block; margin-top: 3px; color: #6B5B3E; }

/* ---------- footer ---------- */
.footer { background: var(--forest); color: rgba(255, 255, 255, .58); padding: 48px 0 0; margin-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; }
.footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer__brand .brand__logo { width: 34px; height: 34px; }
.footer__brand .brand__name { color: #fff; font-size: 16px; }
.footer__brand .brand__sub { color: rgba(255, 255, 255, .52); }
.footer p { font-size: 12px; line-height: 1.8; max-width: 330px; }
.footer h4 { font-size: 12px; color: #fff; font-weight: 700; margin-bottom: 13px; letter-spacing: .04em; text-transform: uppercase; }
.footer li { font-size: 12px; margin-bottom: 8px; line-height: 1.6; }
.footer a:hover { color: var(--grass); }
.footer__contact li { display: flex; gap: 7px; align-items: flex-start; }
.footer__contact svg { width: 13px; height: 13px; margin-top: 3px; flex: none; opacity: .65; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 16px 0 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .38);
  flex-wrap: wrap;
}

/* ---------- breadcrumbs ---------- */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 20px 0;
  flex-wrap: wrap;
}
.crumbs a:hover { color: var(--grass-deep); }
.crumbs svg { width: 12px; height: 12px; opacity: .5; }

/* ---------- product detail ---------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}

/* Shown instead of the product when a SKU is gone — catalogue being
   reloaded, or the item retired. Keeps the page honest rather than
   leaving the template's placeholder copy on screen. */
.pdp-missing {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 26px;
}
.pdp__gallery { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.pdp__stage {
  aspect-ratio: 1 / 1;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--grass-tint);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.pdp__stage svg { width: 100%; height: 100%; transition: transform .35s var(--ease); }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.pdp__thumb {
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--grass-tint);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .16s var(--ease);
}
.pdp__thumb svg { width: 100%; height: 100%; }
.pdp__thumb.is-active, .pdp__thumb:hover { border-color: var(--grass-2); }

.pdp__info { display: flex; flex-direction: column; min-width: 0; }
.pdp__title { font-size: 24px; font-weight: 800; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 4px; }
.pdp__titlezh { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.pdp__sub { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.chip--brand { background: var(--grass-soft); border-color: transparent; color: var(--grass-deep); font-weight: 700; }

.pricebox {
  background: var(--grass-tint);
  border: 1px solid #DCEBC9;
  border-radius: var(--radius);
  padding: 17px 18px 15px;
  margin-bottom: 18px;
}
.pricebox__main { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.pricebox__main .cur { font-size: 15px; color: var(--ink); font-weight: 700; }
.pricebox__main b { font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.pricebox__main .u { font-size: 12.5px; color: var(--ink-2); margin-right: 16px; }
.pricebox__usd { font-size: 12.5px; color: var(--ink-2); }
.pricebox__usd b { font-weight: 700; color: var(--ink); }
.pricebox__flag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--grass-deep);
  background: #fff;
  border: 1px solid #D5E7BB;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

/* tier table in pdp */
.tiertable { margin-top: 14px; padding-top: 13px; border-top: 1px dashed #D5E7BB; }
.tiertable__label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 8px; }
.tiertable__rows { display: flex; gap: 7px; flex-wrap: wrap; }
.tiertable__row {
  flex: 1 1 0;
  min-width: 88px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
}
.tiertable__row.is-on { border-color: var(--grass-2); background: var(--grass-soft); }
.tiertable__q { display: block; font-size: 10.5px; color: var(--ink-3); margin-bottom: 2px; }
.tiertable__p { display: block; font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }

.pricebox__note {
  font-size: 11.5px;
  color: var(--ink-3);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  line-height: 1.55;
}
.pricebox__note svg { width: 13px; height: 13px; margin-top: 2px; flex: none; }

.qtyrow { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  overflow: hidden;
  height: 42px;
  background: #fff;
}
.stepper button {
  width: 38px;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: background .14s var(--ease);
}
.stepper button:hover { background: var(--cream-2); }
.stepper button svg { width: 14px; height: 14px; }
.stepper input {
  width: 54px;
  height: 100%;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  background: #fff;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qtyrow__unit { font-size: 12px; color: var(--ink-3); }
.qtyrow__sum { margin-left: auto; font-size: 12px; color: var(--ink-2); text-align: right; }
.qtyrow__sum b { display: block; font-size: 17px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.qtyrow__sum i { font-style: normal; font-size: 11px; color: var(--ink-3); }

.pdp__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.pdp__actions .btn { min-width: 0; height: 48px; font-size: 14px; }

.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.svc__item { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-2); }
.svc__item svg { width: 14px; height: 14px; color: var(--grass-deep); flex: none; }

.params { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 28px; }
.params h3 { font-size: 14px; font-weight: 800; margin-bottom: 16px; letter-spacing: -.01em; }
.params__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.params__cell { background: #fff; padding: 14px 16px; }
.params__k { font-size: 11px; color: var(--ink-3); margin-bottom: 4px; }
.params__v { font-size: 13.5px; font-weight: 700; }

/* ---------- quote page ---------- */
.pagehead { padding: 26px 0 20px; }
.pagehead h1 { font-size: 25px; font-weight: 800; letter-spacing: -.025em; }
.pagehead p { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; max-width: 700px; line-height: 1.65; }

.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
  padding-bottom: 40px;
}
.qcol { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  gap: 14px;
  flex-wrap: wrap;
}
.panel__title { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
.panel__meta { font-size: 11.5px; color: var(--ink-3); }

.qtable { width: 100%; border-collapse: collapse; }
.qtable thead th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  padding: 10px 12px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.qtable thead th:first-child { padding-left: 20px; }
.qtable thead th.num { text-align: right; }
.qtable tbody td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
.qtable tbody td:first-child { padding-left: 20px; }
.qtable tbody td.num { text-align: right; }
.qtable tbody tr:last-child td { border-bottom: 0; }
.qtable__prod { display: flex; align-items: center; gap: 12px; min-width: 0; }
.qtable__thumb { width: 50px; height: 50px; border-radius: 9px; background: var(--grass-tint); overflow: hidden; flex: none; }
.qtable__thumb svg { width: 100%; height: 100%; }
.qtable__name { font-size: 12.5px; font-weight: 700; line-height: 1.35; margin-bottom: 2px; }
.qtable__sku { font-size: 10.5px; color: var(--ink-3); }
.qtable .stepper { height: 32px; }
.qtable .stepper button { width: 28px; }
.qtable .stepper input { width: 42px; font-size: 12.5px; }
.qtable__price b { font-size: 13px; font-weight: 700; }
.qtable__price span { display: block; font-size: 10.5px; color: var(--ink-3); }
.qtable__sum { font-size: 14px; font-weight: 800; color: var(--ink); }
.qtable__sum span { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 500; }
.qtable__del { color: var(--ink-3); }
.qtable__del:hover { color: #B3261E; }
.qtable__del svg { width: 15px; height: 15px; }
.qtable__hint {
  display: inline-block;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--grass-deep);
  background: var(--grass-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* form */
.form { padding: 18px 20px 20px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.field label i { font-style: normal; color: #B3261E; }
.field input, .field select, .field textarea {
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 0 11px;
  font-size: 13px;
  background: #fff;
  outline: none;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
  width: 100%;
  min-width: 0;
}
.field textarea { height: 76px; padding: 9px 11px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--grass-2);
  box-shadow: 0 0 0 3px rgba(108, 213, 58, .16);
}
.field input::placeholder, .field textarea::placeholder { color: #B4BAA9; }

.summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 6px 0;
}
.summary__row b { color: var(--ink); font-weight: 700; }
.summary__total {
  padding: 14px 0 4px;
  margin-top: 8px;
  border-top: 1px dashed var(--line-2);
}
.summary__total .lbl { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.summary__total .r {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.summary__total b { font-size: 25px; color: var(--ink); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.summary__total b small { font-size: 13px; margin-right: 2px; font-weight: 700; }
.summary__usd { font-size: 11.5px; color: var(--ink-3); text-align: right; margin-top: 1px; }
.summary__usd b { font-weight: 700; color: var(--ink-2); font-size: 12px; letter-spacing: 0; }
.summary__cta { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.summary__cta .btn { width: 100%; }
.summary__tip {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.65;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.summary__fx {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.summary__fx svg { width: 12px; height: 12px; flex: none; }

.empty { padding: 70px 24px; text-align: center; }
.empty__ico {
  width: 60px; height: 60px;
  border-radius: 17px;
  background: var(--grass-tint);
  display: grid; place-items: center;
  margin: 0 auto 16px;
  color: var(--grass-deep);
}
.empty__ico svg { width: 24px; height: 24px; }
.empty h3 { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.empty p { font-size: 12.5px; color: var(--ink-3); margin-bottom: 20px; }

/* pay methods block */
.pay {
  padding: 18px 20px 20px;
  display: grid;
  gap: 10px;
}
.pay__item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 13px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.pay__ico {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--grass-deep);
  display: grid; place-items: center;
  flex: none;
}
.pay__ico svg { width: 15px; height: 15px; }
.pay__t { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.pay__d { font-size: 11px; color: var(--ink-3); line-height: 1.5; }
.pay__note {
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.6;
  padding-top: 4px;
}

/* ---------- quotation document ---------- */
.docwrap { padding: 26px 0 50px; }
.doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 44px 36px;
  max-width: 940px;
  margin: 0 auto;
  box-shadow: var(--shadow-s);
}
.doc__top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--forest);
  flex-wrap: wrap;
}
.doc__brand { display: flex; align-items: center; gap: 12px; }
.doc__brand .brand__logo { width: 42px; height: 42px; }
.doc__brand .brand__name { font-size: 18px; }
.doc__brand .brand__sub { font-size: 8.5px; }
.doc__co { font-size: 10.5px; color: var(--ink-3); line-height: 1.75; margin-top: 9px; }
.doc__meta { text-align: right; font-size: 11px; color: var(--ink-2); line-height: 1.9; min-width: 200px; }
.doc__meta h2 { font-size: 20px; font-weight: 800; letter-spacing: .05em; color: var(--ink); margin-bottom: 6px; }
.doc__meta b { color: var(--ink); font-weight: 700; }

.doc__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.doc__plabel { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 6px; }
.doc__pval { font-size: 12.5px; line-height: 1.75; color: var(--ink); }
.doc__pval span { display: block; }
.doc__pval em { font-style: normal; color: var(--ink-3); }

.doctable { width: 100%; border-collapse: collapse; margin-top: 18px; }
.doctable th {
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  text-align: left;
  padding: 8px 8px;
  border-bottom: 1.5px solid var(--line-2);
  white-space: nowrap;
}
.doctable th.num, .doctable td.num { text-align: right; }
.doctable td { font-size: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doctable td b { font-weight: 700; }
.doctable .pname { font-weight: 700; font-size: 12px; line-height: 1.4; }
.doctable .pspec { font-size: 10px; color: var(--ink-3); margin-top: 2px; }

.doc__totals { display: flex; justify-content: flex-end; margin-top: 16px; }
.doc__totals table { border-collapse: collapse; min-width: 300px; }
.doc__totals td { font-size: 12.5px; padding: 6px 10px; color: var(--ink-2); }
.doc__totals td:last-child { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; }
.doc__totals tr.grand td { font-size: 15px; padding-top: 11px; border-top: 1.5px solid var(--line-2); }
.doc__totals tr.grand td:last-child { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.doc__totals tr.usd td { font-size: 11.5px; color: var(--ink-3); }

.doc__pay { margin-top: 24px; padding: 16px 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; }
.doc__pay h3 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; margin-bottom: 10px; }
.doc__paygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.doc__payitem { font-size: 11px; line-height: 1.7; color: var(--ink-2); }
.doc__payitem b { display: block; font-size: 11.5px; color: var(--ink); margin-bottom: 2px; }
.doc__payitem code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; color: var(--ink); background: #fff; padding: 1px 4px; border-radius: 3px; border: 1px solid var(--line); }

/* 防诈提示：不随金额锁定而模糊，始终可见 */
.doc__paywarn { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; background: #FFF8E4; border: 1px solid var(--khaki); border-left: 3px solid var(--khaki-2); border-radius: 6px; }
.doc__paywarn svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; color: var(--grass-deep); }
.doc__paywarn p { margin: 0; font-size: 10.8px; line-height: 1.62; color: var(--ink); }

.doc__terms { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.doc__term { display: flex; justify-content: space-between; font-size: 11px; padding: 5px 0; border-bottom: 1px dotted var(--line); color: var(--ink-2); }
.doc__term b { color: var(--ink); font-weight: 700; text-align: right; }

.doc__disc {
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--khaki-soft);
  border-left: 3px solid var(--khaki-2);
  border-radius: 4px;
  font-size: 10.5px;
  line-height: 1.65;
  color: #5A4B32;
}
.doc__disc b { display: block; margin-bottom: 2px; color: #3F3119; font-size: 11px; }

.doc__sign { margin-top: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.doc__sign div { font-size: 10.5px; color: var(--ink-3); line-height: 1.7; }
.doc__sign .line { width: 170px; border-top: 1px solid var(--line-2); margin-top: 26px; padding-top: 5px; }

.docbar {
  max-width: 940px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.docbar__spacer { margin-left: auto; }
.docbar .btn { height: 40px; font-size: 13px; padding: 0 16px; }
.docbar__ok {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--grass-deep);
  font-weight: 600;
}
.docbar__ok svg { width: 15px; height: 15px; }

/* ---------- document status + buyer placeholders ---------- */
.doc__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 6px;
}
.doc__status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.doc__status.is-draft { background: var(--khaki-soft); color: #7A6440; border: 1px solid var(--line-2); }
.doc__status.is-ok { background: var(--grass-soft); color: var(--grass-deep); border: 1px solid #CBEAAF; }
.doc__fxdate { color: var(--ink-3); font-size: 10px; }
.doc__ph { color: var(--ink-3); font-size: 11.5px; line-height: 1.7; }
.doctable .pzh { font-size: 10px; color: var(--ink-3); margin-top: 1px; }
.doctable td.muted { color: var(--ink-3); }

/* ---------- identity gate: prices locked until verified ---------- */
.doc__gate {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 15px 17px;
  border-radius: 12px;
  background: var(--khaki-soft);
  border: 1px solid var(--line-2);
}
.doc__gateico {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: #8A7248;
}
.doc__gateico svg { width: 17px; height: 17px; }
.doc__gate b { display: block; font-size: 12.5px; color: #3F3119; margin-bottom: 3px; }
.doc__gate span { display: block; font-size: 11.5px; line-height: 1.68; color: #5A4B32; }
.doc__gatezh { color: #7A6440 !important; margin-top: 4px; }
.doc__gatebtn {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 10px; padding: 7px 13px;
  border-radius: 7px; cursor: pointer;
  background: var(--ink); color: #fff;
  font-size: 11.5px; font-weight: 700;
  transition: background .16s var(--ease);
}
.doc__gatebtn:hover { background: #000; }
.doc__gatebtn svg { width: 12px; height: 12px; }

.lk {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .04em;
  color: #A99878;
  white-space: nowrap;
}
.lk svg { width: 11px; height: 11px; }
.doc__totals tr.grand td:last-child .lk { font-size: 12px; letter-spacing: .08em; }

.doc__pay { position: relative; }
.doc__pay.is-locked .doc__paygrid { filter: blur(4.5px); opacity: .4; user-select: none; pointer-events: none; }
.doc__paylock {
  position: absolute; left: 50%; top: 58%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-s);
  font-size: 11.5px; font-weight: 600; color: #5A4B32;
  text-align: center; line-height: 1.5;
  max-width: calc(100% - 30px);
}
.doc__paylock svg { width: 13px; height: 13px; color: #8A7248; flex: none; }
.doc__pay.is-locked .doc__paylock { display: flex; }

.docbar .btn.is-locked { opacity: .48; }
.docbar .btn.is-locked:hover { transform: none; border-color: var(--line-2); }

.sp__lockmark {
  display: flex; align-items: center; gap: 6px;
  flex: none;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--khaki-soft);
  border: 1px solid var(--line-2);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #8A7248;
}
.sp__lockmark svg { width: 13px; height: 13px; }

/* ---------- submit / verification panel ---------- */
.submitpanel {
  max-width: 940px;
  margin: 22px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px 30px;
  box-shadow: var(--shadow-s);
}
.submitpanel > div { min-width: 0; }
#sp-idle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 34px;
  align-items: start;
}
.sp__tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--grass-deep);
  margin-bottom: 9px;
}
.sp__h {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.3;
  margin-bottom: 9px;
}
.sp__p { font-size: 12.5px; line-height: 1.72; color: var(--ink-2); margin-bottom: 10px; }
.sp__p b { color: var(--ink); font-weight: 700; }
.sp__note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
  margin-top: 4px;
}
.sp__note svg { width: 14px; height: 14px; color: var(--grass-deep); flex: none; margin-top: 2px; }
.sp__act { display: flex; flex-direction: column; gap: 9px; }
.sp__tiny { font-size: 10.5px; line-height: 1.6; color: var(--ink-3); margin-top: 2px; }

.sp__formhead {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.sp__close {
  font-size: 12px;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 6px 12px;
  flex: none;
  transition: all .16s var(--ease);
}
.sp__close:hover { color: var(--ink); border-color: var(--khaki-2); }
.sp__form .form__grid { gap: 14px; }
.field__opt { font-weight: 400; color: var(--ink-3); font-size: 10.5px; }
.sp__err {
  margin-top: 14px;
  padding: 10px 13px;
  border-radius: 8px;
  background: #FDECEA;
  border: 1px solid #F5C9C3;
  color: #9B2B20;
  font-size: 12px;
  line-height: 1.55;
}
.sp__submit {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.sp__done { display: flex; gap: 15px; align-items: flex-start; padding-bottom: 4px; }
.sp__doneico {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grass-soft);
  color: var(--grass-deep);
  display: grid; place-items: center;
  flex: none;
}
.sp__doneico svg { width: 20px; height: 20px; }
.sp__offline {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--khaki-soft);
  border: 1px solid var(--line-2);
  font-size: 11.5px;
  line-height: 1.68;
  color: #5A4B32;
}
.sp__offline svg { width: 15px; height: 15px; color: var(--khaki-2); flex: none; margin-top: 2px; }
.sp__offline b { display: block; color: #3F3119; font-size: 12px; margin-bottom: 2px; }
.sp__doneact {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- selection page extras ---------- */
.panel__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  transition: all .16s var(--ease);
  white-space: nowrap;
}
.panel__link:hover { color: #B3261E; border-color: #E8C4BF; }
.panel__link svg { width: 13px; height: 13px; }
.qtable__scroller { overflow-x: auto; }
.qtable__sub { font-size: 10.5px; color: var(--ink-3); }
.qtable__name:hover { color: var(--grass-deep); }
.summary { padding: 14px 20px 20px; }

.steps { padding: 6px 20px 20px; display: flex; flex-direction: column; gap: 2px; counter-reset: s; }
.steps li { display: flex; gap: 13px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps__n {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grass-soft);
  color: var(--grass-deep);
  font-size: 11px;
  font-weight: 700;
  display: grid; place-items: center;
  flex: none;
  margin-top: 1px;
}
.steps__t { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.steps__d { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }

.params__note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-3);
}
.params__note svg { width: 13px; height: 13px; color: var(--khaki-2); flex: none; margin-top: 2px; }
.params__note b { color: var(--ink-2); }

.pcard__name a { color: inherit; display: block; }
.pcard__media:hover .ph { transform: scale(1.03); transition: transform .3s var(--ease); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px);
  background: var(--forest);
  color: #fff;
  font-size: 13px;
  padding: 11px 20px;
  border-radius: 10px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: all .26s var(--ease);
  z-index: 200;
  /* percentage (not vw) — 100vw counts the scrollbar, which can push a
     centred toast past the right edge and give the whole page a scrollbar */
  max-width: calc(100% - 40px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 22px; }
  .quote { grid-template-columns: minmax(0, 1fr); }
  .params__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .promise .wrap { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .strip { grid-template-columns: 1fr; gap: 20px; }
  .doc__paygrid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .wrap { padding: 0 18px; }
  .utility__left span:nth-child(2), .utility__right a:last-child { display: none; }
  .header__main { height: auto; flex-wrap: wrap; padding-top: 11px; padding-bottom: 11px; gap: 11px; }
  .search { order: 3; max-width: 100%; flex-basis: 100%; }
  .header__actions { gap: 6px; }
  .ratepill { padding: 0 9px; }
  .ratepill__v i { display: none; }
  .iconbtn span.lbl { display: none; }
  .iconbtn { padding: 0 11px; }
  .hero { padding: 24px 0 20px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero h1 { font-size: 28px; }
  .hero__lead { font-size: 13.5px; margin-bottom: 16px; }
  .hero__cta { margin-bottom: 16px; }
  .hero__trust { gap: 14px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .section { padding-top: 30px; }
  .filters { gap: 6px; padding-bottom: 12px; margin-bottom: 14px; }
  .chipf { height: 30px; padding: 0 11px; font-size: 12px; }
  .pdp__title { font-size: 20px; }
  .svc { grid-template-columns: 1fr; gap: 8px; }
  .qtable thead { display: none; }
  .qtable, .qtable tbody { display: block; width: 100%; }
  .qtable tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
  }
  .qtable tbody tr:last-child { border-bottom: 0; }
  .qtable tbody td { display: block; border: 0; padding: 0; text-align: left; }
  .qtable tbody td.num { text-align: left; }
  .qtable tbody td:first-child { grid-column: 1 / -1; padding-left: 0; }
  .qtable tbody td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .qtable tbody td:nth-child(3) { grid-column: 1; grid-row: 3; }
  .qtable tbody td:nth-child(4) { grid-column: 1; grid-row: 4; }
  .qtable tbody td:nth-child(5) { grid-column: 2; grid-row: 2; justify-self: end; align-self: start; }
  .qtable tbody td[data-label]::before {
    content: attr(data-label) " ";
    font-size: 10.5px;
    color: var(--ink-3);
    font-weight: 400;
  }
  .qtable .stepper { display: inline-flex; }
  .qtable__thumb { width: 44px; height: 44px; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 6px; }
  .strip { padding: 22px 20px; }
  .strip h2 { font-size: 18px; }
  .doc { padding: 24px 18px; border-radius: var(--radius); }
  .doc__top { flex-direction: column; gap: 16px; }
  .doc__meta { text-align: left; }
  .doc__parties { grid-template-columns: 1fr; gap: 16px; }
  .doc__terms { grid-template-columns: 1fr; }
  .docbar .btn { flex: 1 1 auto; }
  #sp-idle { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .submitpanel { padding: 22px 20px 24px; }
  .sp__formhead { flex-direction: column; gap: 12px; }
  .sp__close { align-self: flex-end; margin-top: -6px; }
  .sp__form .form__grid { grid-template-columns: 1fr; }
  .sp__doneact .btn, .sp__submit .btn { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  .utility__right a { display: none; }
  .utility__right { gap: 0; }
  .langsw button { font-size: 10.5px; padding: 4px 7px; }
  .brand { gap: 8px; }
  .brand__logo { width: 32px; height: 32px; }
  .brand__name { font-size: 15px; letter-spacing: .07em; }
  .brand__sub { display: none; }
  .header__main { gap: 8px; }
  .header__actions { gap: 5px; }
  .ratepill { padding: 0 9px; gap: 5px; height: 38px; }
  .ratepill svg { display: none; }
  .ratepill__v b { font-size: 11.5px; }
  .iconbtn { height: 38px; padding: 0 10px; }
  .hero h1 { font-size: 24px; }
  .fxcard { padding: 18px; }
  .fxcard__rate b { font-size: 30px; }
  .promise .wrap { grid-template-columns: 1fr; }
  .params { padding: 18px; }
  .params__grid { grid-template-columns: 1fr; }
  .pcard__price b { font-size: 20px; }
  .pcard__usd { font-size: 10.5px; }
  .strip__grid { width: 100%; }
  .strip__item { flex: 1 1 0; min-width: 0; padding: 12px 12px; }
  .strip__v { font-size: 24px; }
  .pdp__actions { grid-template-columns: 1fr; }
  .doc__totals { justify-content: stretch; }
  .doc__totals table { width: 100%; min-width: 0; }
  /* toolbar: icon-only so the four controls stay on one row */
  .docbar { gap: 6px; }
  .docbar .btn { padding: 0 11px; }
  .docbar__lbl { display: none; }

  /* line items become stacked cards on phones — the 6-column
     grid cannot fit and used to push the whole page sideways */
  .doctable { margin-top: 14px; }
  .doctable thead { display: none; }
  .doctable, .doctable tbody { display: block; width: 100%; }
  .doctable tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }
  .doctable tr:last-child { border-bottom: 0; }
  .doctable td { display: block; border: 0; padding: 0; text-align: left; }
  .doctable td.num { text-align: left; }
  .doctable td:nth-child(1) { display: none; }
  .doctable td:nth-child(2) { grid-column: 1 / -1; }
  .doctable td:nth-child(3) { grid-column: 1; font-size: 11px; color: var(--ink-3); }
  .doctable td:nth-child(4) { display: none; }
  .doctable td:nth-child(5) { grid-column: 2; grid-row: 2; text-align: right; font-weight: 700; font-size: 13px; }
  .doctable td:nth-child(6) { grid-column: 2; grid-row: 3; text-align: right; font-size: 10px; }
  .doctable td:nth-child(3)::after { content: " ctn"; }
  /* locked: one marker per row instead of three stacked "Hidden" */
  .doctable.is-locked td:nth-child(6) { display: none; }
  .doctable.is-locked td:nth-child(5) { font-weight: 400; font-size: 11px; grid-row: 2; }
  .doc__term { flex-wrap: wrap; gap: 2px 10px; }
}

/* mobile tabbar */
.tabbar { display: none; }

@media (max-width: 920px) {
  .tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: rgba(251, 247, 236, .97);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line);
    padding: 7px 0 5px;
    box-shadow: 0 -6px 24px -16px rgba(23, 40, 15, .35);
  }
  .tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: var(--ink-3);
    padding: 2px 0;
  }
  .tabbar__item svg { width: 20px; height: 20px; }
  .tabbar__item.is-on { color: var(--grass-deep); font-weight: 700; }
  .tabbar__ico { position: relative; display: inline-flex; }
  .tabbar__ico .badge { position: absolute; top: -5px; right: -10px; transform: scale(.82); }
  body { padding-bottom: 58px; }
  .toast { bottom: 74px; }
}

@media (max-width: 920px) {
  .qtyrow__sum { margin-left: 0; width: 100%; text-align: left; }
}

/* prevent grid/flex blowout */
.pdp > *, .pdp__gallery, .pdp__info { min-width: 0; }
.hero__grid > *, .strip > * { min-width: 0; }
.pgrid > * { min-width: 0; }
.pcard * { min-width: 0; }
.qcol, .panel { min-width: 0; }
.doc * { min-width: 0; }

/* identity gate on small screens */
@media (max-width: 640px) {
  .doc__gate { gap: 11px; padding: 13px 14px; }
  .doc__gateico { width: 30px; height: 30px; }
  .doc__gatebtn { width: 100%; justify-content: center; }
  .sp__formhead { flex-direction: column; gap: 12px; }
  .sp__lockmark { align-self: flex-start; }
  .doc__paylock {
    top: auto; bottom: 14px; left: 12px; right: 12px;
    transform: none; max-width: none;
  }
}

/* ---------- print (quotation only) ---------- */
@media print {
  @page { margin: 12mm; size: A4; }
  body { background: #fff; padding: 0; }
  .utility, .header, .tabbar, .footer, .docbar, .toast, .crumbs, .submitpanel { display: none !important; }
  .doc__status { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .docwrap { padding: 0; }
  .doc {
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-width: none;
  }
  .doc__pay { background: #FBF7EC !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc__paywarn { background: #F2EAD8 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc__pay.is-locked .doc__paygrid { filter: none; opacity: .18; }
  .doc__pay.is-locked .doc__paylock {
    position: static; transform: none; margin: 8px 0 0;
    box-shadow: none; max-width: none; display: flex;
  }
  .doc__disc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doctable th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { text-decoration: none; }
}
