/* ==========================================================================
   AZOVIRA — Women's Clothing
   Design system + components
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* colour */
  --white:      #ffffff;
  --ink:        #1d1f21;
  --ink-2:      #55585a;
  --ink-3:      #8c8f91;
  --line:       #e4e1dc;
  --line-soft:  #f1efeb;
  --sand:       #f4f1ed;
  --sand-deep:  #eae5de;
  --sage:       #79938d;
  --sale:       #ae2238;
  --gold:       #b08d57;

  /* type
     后段 CJK 字体是必需的：注册地址按执照原文以中文呈现，
     而 Georgia / 系统字体都不含汉字。缺回退会在 Windows 上掉成方块。 */
  /* 系统字体栈（零外部依赖，国内外访问都稳，无 .cn/.com CDN 取舍）。
     display 用系统衬线保留时装站的高级编辑感；ui 用系统无衬线。
     CJK 回退保留，Windows/移动端不掉方块。 */
  --font-display: Georgia, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "Times New Roman", "SimSun", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", Roboto, Helvetica, Arial, sans-serif;

  /* metrics */
  --header-h: 68px;
  --bar-h: 34px;
  --pad: clamp(18px, 4.2vw, 64px);
  --max: 1600px;
  --grid-gap: clamp(14px, 1.6vw, 26px);

  /* motion */
  --ease: cubic-bezier(.22, .61, .24, 1);
  --fast: .22s var(--ease);
  --mid: .42s var(--ease);

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(29, 31, 33, .05);
  --shadow-md: 0 12px 40px -12px rgba(29, 31, 33, .22);
  --shadow-lg: 0 32px 80px -24px rgba(29, 31, 33, .3);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; border-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
s { text-decoration-thickness: 1px; }

:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }

::selection { background: var(--ink); color: var(--white); }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.wrap--wide { max-width: none; }
.section { padding-block: clamp(56px, 7vw, 118px); }
.section--tight { padding-block: clamp(40px, 4.6vw, 74px); }
.section--sand { background: var(--sand); }
[id] { scroll-margin-top: calc(var(--header-h) + 30px); }
.stack-sm > * + * { margin-top: 10px; }
.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;
}

/* ---------- 4. Typography ---------- */
.eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ink-3);
}
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -.005em;
}
.display--xl { font-size: clamp(42px, 7.4vw, 104px); }
.display--lg { font-size: clamp(34px, 4.9vw, 66px); }
.display--md { font-size: clamp(27px, 3.2vw, 44px); }
.display--sm { font-size: clamp(22px, 2.2vw, 30px); }
.lede { font-size: clamp(14.5px, 1.15vw, 17px); color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-3); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(26px, 3vw, 46px);
}
.section-head__text > * + * { margin-top: 9px; }

/* animated underline link */
.link-u { position: relative; display: inline-block; padding-bottom: 2px; }
.link-u::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--mid);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.link-arrow svg { transition: transform var(--fast); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  padding: 15px 30px; min-height: 48px;
  font-size: 11px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase;
  cursor: pointer; position: relative; overflow: hidden;
  transition: color var(--mid), border-color var(--mid), background var(--mid), opacity var(--fast);
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--white);
  transform: translateY(101%); transition: transform var(--mid); z-index: 0;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink); border-color: var(--ink); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--white); border-color: var(--ink); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn--light::before { background: var(--ink); }
.btn--light:hover { color: var(--white); border-color: var(--white); }

.btn--line-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .55); }
.btn--line-light::before { background: var(--white); }
.btn--line-light:hover { color: var(--ink); border-color: var(--white); }

.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* text button */
.btn-text {
  font-size: 11px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: opacity var(--fast);
}
.btn-text:hover { opacity: .55; }

/* ---------- 6. Announcement bar ---------- */
.bar {
  background: var(--ink); color: var(--white);
  height: var(--bar-h); display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  position: relative; z-index: 60;
}
.bar__rotator { position: relative; height: 100%; flex: 1; max-width: 720px; }
.bar__item {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.bar__item.is-on { opacity: 1; transform: translateY(0); }

/* ---------- 7. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--mid), background var(--mid);
}
.header.is-stuck { border-bottom-color: var(--line); }

.header__inner {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 20px;
}

.brand {
  font-family: var(--font-display); font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 500; letter-spacing: .34em; text-transform: uppercase;
  padding-left: .34em; white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 34px); }
.nav__link {
  position: relative; font-size: 11px; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase; padding: 6px 0; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--mid);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--ink); }
.nav__item { position: relative; }
.nav__item > .nav__link::before { content: none; }

.header__left { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); min-width: 0; }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 1.3vw, 22px); }
.icon-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  transition: opacity var(--fast);
}
.icon-btn:hover { opacity: .55; }
.icon-btn svg { display: block; }

.cart-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--ink); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: 0; line-height: 18px; text-align: center;
}
.cart-count[data-empty="true"] { background: var(--line); color: var(--ink-2); }

.burger { display: none; width: 24px; height: 16px; position: relative; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 1.4px; background: var(--ink);
  transition: transform var(--mid), opacity var(--fast);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 7px; }
.burger span:nth-child(3) { top: 14px; width: 68%; }

/* mega dropdown */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -30px rgba(29, 31, 33, .3);
  padding: clamp(30px, 3.6vw, 56px) 0;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity var(--mid), transform var(--mid), visibility var(--mid);
  z-index: 45;
}
.mega.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__inner { display: grid; grid-template-columns: 1.1fr 2.4fr; gap: clamp(30px, 4vw, 70px); }
.mega__list { columns: 2; column-gap: clamp(24px, 3vw, 56px); }
.mega__list li { break-inside: avoid; margin-bottom: 13px; }
.mega__list a { font-size: 13.5px; color: var(--ink-2); transition: color var(--fast), padding-left var(--fast); }
.mega__list a:hover { color: var(--ink); padding-left: 6px; }
.mega__promo { position: relative; overflow: hidden; }
.mega__promo img { width: 100%; aspect-ratio: 16/7; object-fit: cover; transition: transform 1.2s var(--ease); }
.mega__promo:hover img { transform: scale(1.04); }
.mega__promo span {
  position: absolute; left: 22px; bottom: 20px; color: var(--white);
  font-family: var(--font-display); font-size: 24px; letter-spacing: .02em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .35);
}
.mega__promo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 16, 17, .42), transparent 62%);
}

/* ---------- 8. Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--sand); }
.hero__media { position: relative; height: min(88vh, 860px); min-height: 460px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(18, 19, 20, .66) 0%, rgba(18, 19, 20, .42) 36%, rgba(18, 19, 20, .08) 64%, rgba(18, 19, 20, 0) 84%),
    linear-gradient(to top, rgba(18, 19, 20, .3), rgba(18, 19, 20, 0) 46%);
}
.hero__body {
  position: absolute; inset: 0; display: flex; align-items: center;
  z-index: 2; pointer-events: none;
}
.hero__body > * { pointer-events: auto; }
.hero__copy { max-width: 620px; color: var(--white); }
.hero__copy .eyebrow { color: rgba(255, 255, 255, .78); }
.hero__copy h1 { margin: 20px 0 22px; }
.hero__copy p { color: rgba(255, 255, 255, .9); max-width: 40ch; margin-bottom: 34px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; color: rgba(255, 255, 255, .85);
  font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 42px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .9), transparent);
  animation: drop 2.1s var(--ease) infinite;
}
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 9. Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--white); }
.marquee__track { display: flex; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  padding: 17px 30px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 30px;
}
.marquee__track span::after { content: "◆"; font-size: 7px; color: var(--line); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 10. Product rail (horizontal scroll) ---------- */
.rail-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: clamp(20px, 2.4vw, 34px);
}
.rail-nav { display: flex; gap: 8px; }
.rail-nav button {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.rail-nav button:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.rail-nav button[disabled] { opacity: .3; pointer-events: none; }

.rail {
  display: flex; gap: var(--grid-gap);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
  scroll-padding-inline: var(--pad);
  scrollbar-width: none; -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 clamp(232px, 22.5vw, 330px); scroll-snap-align: start; }

/* ---------- 11. Product card ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap) var(--grid-gap);
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { position: relative; display: flex; flex-direction: column; }
.card__media {
  position: relative; overflow: hidden; background: var(--sand);
  aspect-ratio: 1024 / 1413;
}
.card__link { position: absolute; inset: 0; display: block; z-index: 1; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  transition: transform 1.1s var(--ease), opacity var(--mid);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__media img.card__img--alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__media img.card__img--alt { opacity: 1; }

.card__flags { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.flag {
  font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 9px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm);
}
.flag--new { background: var(--sage); color: var(--white); }
.flag--sale { background: var(--sale); color: var(--white); }
.flag--ltd { background: var(--ink); color: var(--white); }

.card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  border: 1px solid var(--white);
  padding: 13px 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--mid), transform var(--mid), background var(--fast), color var(--fast);
  backdrop-filter: blur(6px);
}
.card:hover .card__quick { opacity: 1; transform: translateY(0); }
.card__quick:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.card__wish {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: var(--ink);
  opacity: 0; transform: translateY(-6px); transition: opacity var(--mid), transform var(--mid), color var(--fast);
}
.card:hover .card__wish { opacity: 1; transform: translateY(0); }
.card__wish.is-on { opacity: 1; transform: none; color: var(--sale); }

.card__body { padding: 15px 2px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__name { font-size: 13.5px; font-weight: 400; line-height: 1.45; }
.card__name a { transition: opacity var(--fast); }
.card__name a:hover { opacity: .6; }
.card__meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
.card__swatches { display: flex; gap: 6px; }
.card__swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(29, 31, 33, .16); }
.card__swatch.is-on { box-shadow: 0 0 0 1.5px var(--white), 0 0 0 2.5px var(--ink); }
.card__price { display: flex; align-items: baseline; gap: 9px; font-size: 13px; margin-top: 2px; }
.card__price s { color: var(--ink-3); font-size: 12px; }
.card__price .off { color: var(--sale); font-weight: 700; font-size: 11.5px; letter-spacing: .04em; }

/* ---------- 12. Category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.tile { position: relative; overflow: hidden; display: block; background: var(--sand); }
.tile img { width: 100%; aspect-ratio: 3/4.1; object-fit: cover; object-position: 50% 15%; transition: transform 1.3s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16, 17, 18, .68) 0%, rgba(16, 17, 18, .22) 38%, rgba(16, 17, 18, 0) 62%);
  transition: background var(--mid);
}
.tile:hover::after { background: linear-gradient(to top, rgba(16, 17, 18, .74), rgba(16, 17, 18, .3) 42%, rgba(16, 17, 18, .04) 68%); }
.tile__label { position: absolute; left: 22px; bottom: 20px; right: 22px; color: var(--white); z-index: 2; }
.tile__label b { display: block; font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 26px); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.tile__label i { font-style: normal; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .82; }

/* ---------- 13. Editorial split ---------- */
.editorial { display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch; background: var(--sand); }
.editorial--flip .editorial__media { order: 2; }
.editorial__media { overflow: hidden; position: relative; }
.editorial__media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: 50% 28%; transition: transform 1.4s var(--ease); }
.editorial:hover .editorial__media img { transform: scale(1.035); }
.editorial__body {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(34px, 5vw, 88px) clamp(26px, 5.4vw, 92px);
}
.editorial__body h2 { margin: 18px 0 20px; }
.editorial__body p { color: var(--ink-2); max-width: 42ch; }
.editorial__body .btn { margin-top: 34px; align-self: flex-start; }

/* ---------- 14. Quote band ---------- */
.quote { text-align: center; background: var(--ink); color: var(--white); padding-block: clamp(58px, 8vw, 120px); }
.quote blockquote { margin: 0 auto; max-width: 24ch; font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 3.9vw, 52px); line-height: 1.22; }
.quote cite { display: block; margin-top: 26px; font-family: var(--font-ui); font-style: normal; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

/* ---------- 15. Stats / service strip ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--white); padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 9px; }
.service svg { color: var(--ink); }
.service b { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.service p { font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* ---------- 16. Newsletter ---------- */
.news { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(26px, 5vw, 80px); }
.field-row { display: flex; border-bottom: 1px solid var(--ink); }
.field-row input {
  flex: 1; border: 0; background: none; padding: 14px 0; font-size: 14px; min-width: 0;
}
.field-row input::placeholder { color: var(--ink-3); }
.field-row input:focus { outline: none; }
.field-row button {
  font-size: 11px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase;
  padding-left: 18px; transition: opacity var(--fast);
}
.field-row button:hover { opacity: .55; }
.form-note { font-size: 11.5px; color: var(--ink-3); margin-top: 12px; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--white); border-top: 1px solid var(--line); padding-top: clamp(48px, 5.6vw, 86px); }
.footer__top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: clamp(26px, 4vw, 60px); padding-bottom: clamp(40px, 4.6vw, 68px); }
.footer__col h4 { font-size: 10.5px; font-weight: 700; letter-spacing: .21em; text-transform: uppercase; margin-bottom: 20px; }
.footer__col li + li { margin-top: 11px; }
.footer__col a { font-size: 13px; color: var(--ink-2); transition: color var(--fast); }
.footer__col a:hover { color: var(--ink); }
.footer__brand p { color: var(--ink-2); max-width: 34ch; font-size: 13.5px; margin-top: 16px; }
.footer__social { display: flex; gap: 16px; margin-top: 24px; }
.footer__social a { color: var(--ink-2); transition: color var(--fast), transform var(--fast); }
.footer__social a:hover { color: var(--ink); transform: translateY(-2px); }
.footer__bottom {
  border-top: 1px solid var(--line); padding-block: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--ink-3);
}
.pay { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
/* 支付品牌标识：固定尺寸的小卡片，内嵌 SVG 撑满。
   固定宽高是为了让页脚与结账页两处看起来是同一个组件，
   不会因为各自容器宽度不同而大小不一。 */
.pay__logo,
.co-secure__logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 29px; padding: 3px 4px;
  border: 1px solid var(--line); background: var(--white);
}
.pay__logo svg,
.co-secure__logo svg { display: block; width: 100%; height: 100%; }

/* ---------- 18. Drawer (cart / mobile nav) ---------- */
.scrim {
  position: fixed; inset: 0; background: rgba(18, 19, 20, .42);
  opacity: 0; visibility: hidden; transition: opacity var(--mid), visibility var(--mid); z-index: 90;
  backdrop-filter: blur(2px);
}
.scrim.is-on { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw);
  background: var(--white); z-index: 100; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .48s var(--ease);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: translateX(0); }
.drawer--left { right: auto; left: 0; transform: translateX(-100%); width: min(360px, 86vw); }
.drawer--left.is-open { transform: translateX(0); }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(18px, 3vw, 30px); border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.drawer__close { width: 32px; height: 32px; display: grid; place-items: center; transition: transform var(--fast); }
.drawer__close:hover { transform: rotate(90deg); }
.drawer__body { flex: 1; overflow-y: auto; padding: clamp(18px, 3vw, 30px); }
.drawer__foot { border-top: 1px solid var(--line); padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 30px); }

/* cart line */
.line { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); margin-bottom: 20px; }
.line:last-child { margin-bottom: 0; }
.line__img { aspect-ratio: 3/4; overflow: hidden; background: var(--sand); }
.line__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.line__top { display: flex; justify-content: space-between; gap: 12px; }
.line__name { font-size: 13px; line-height: 1.5; }
.line__opts { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }
.line__price { font-size: 13px; white-space: nowrap; }
.line__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 30px; height: 32px; display: grid; place-items: center; transition: background var(--fast); }
.qty button:hover { background: var(--sand); }
.qty span { min-width: 30px; text-align: center; font-size: 12.5px; }
.line__remove { font-size: 11px; color: var(--ink-3); border-bottom: 1px solid transparent; transition: color var(--fast), border-color var(--fast); }
.line__remove:hover { color: var(--sale); border-bottom-color: var(--sale); }

.cart-empty { text-align: center; padding: 60px 10px; }
.cart-empty svg { color: var(--line); margin: 0 auto 20px; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.cart-total b { font-size: 17px; font-weight: 400; }
.cart-total span:first-child { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.cart-note { font-size: 11.5px; color: var(--ink-3); margin-bottom: 18px; }
.ship-meter { height: 3px; background: var(--line-soft); margin-bottom: 10px; overflow: hidden; }
.ship-meter i { display: block; height: 100%; background: var(--sage); width: 0; transition: width var(--mid); }

/* mobile nav list */
.mnav__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 15px; letter-spacing: .06em;
}
.mnav__sub { padding-left: 14px; }
.mnav__sub a { display: block; padding: 9px 0; font-size: 13px; color: var(--ink-2); }

/* ---------- 19. Search overlay ---------- */
.search {
  position: fixed; inset: 0; z-index: 110; background: rgba(255, 255, 255, .985);
  opacity: 0; visibility: hidden; transition: opacity var(--mid), visibility var(--mid);
  overflow-y: auto;
}
.search.is-open { opacity: 1; visibility: visible; }
.search__inner { max-width: 1080px; margin: 0 auto; padding: clamp(70px, 12vh, 140px) var(--pad) 80px; }
.search__box { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 16px; }
.search__box input { flex: 1; border: 0; background: none; font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 42px); font-weight: 300; min-width: 0; }
.search__box input:focus { outline: none; }
.search__box input::placeholder { color: var(--line); }
/* 去掉浏览器给 input[type=search] 自动注入的原生清除按钮（灰/蓝圈 ×），
   它会出现在字段有内容且 hover/聚焦时，与定制 UI 风格冲突且无法用 CSS 上色。
   全屏搜索浮层自带关闭按钮，隐藏原生清除不影响功能。 */
.search__box input[type="search"]::-webkit-search-cancel-button,
.search__box input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search__box input[type="search"]::-moz-search-cancel-button { display: none; }
.search__hint { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 11.5px; color: var(--ink-3); }
.chip {
  border: 1px solid var(--line); padding: 6px 13px; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; transition: all var(--fast); background: var(--white);
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.search__results { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.search__empty { margin-top: 44px; color: var(--ink-3); }

/* ---------- 20. Breadcrumb + page head ---------- */
.crumbs { display: flex; gap: 9px; align-items: center; font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-style: normal; opacity: .5; }
.page-head { padding-block: clamp(28px, 3.4vw, 52px) clamp(22px, 2.6vw, 40px); }

/* ---------- 21. Collection layout ---------- */
.shop { display: grid; grid-template-columns: 236px 1fr; gap: clamp(26px, 3.6vw, 62px); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); }
.fgroup { border-bottom: 1px solid var(--line); padding: 20px 0; }
.fgroup:first-child { padding-top: 0; }
.fgroup__head {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-size: 10.5px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; margin-bottom: 16px;
}
.fgroup__head svg { transition: transform var(--mid); }
.fgroup.is-collapsed .fgroup__head { margin-bottom: 0; }
.fgroup.is-collapsed .fgroup__head svg { transform: rotate(-90deg); }
.fgroup.is-collapsed .fgroup__body { display: none; }
.fopt { display: flex; align-items: center; gap: 11px; padding: 6px 0; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.fopt input { position: absolute; opacity: 0; pointer-events: none; }
.fopt__box {
  width: 15px; height: 15px; border: 1px solid var(--line); flex: none; position: relative;
  transition: border-color var(--fast), background var(--fast);
}
.fopt input:checked + .fopt__box { background: var(--ink); border-color: var(--ink); }
.fopt input:checked + .fopt__box::after {
  content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px;
  border: solid var(--white); border-width: 0 1.4px 1.4px 0; transform: rotate(42deg);
}
.fopt:hover { color: var(--ink); }
.fopt__n { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.sizes { display: flex; flex-wrap: wrap; gap: 7px; }
.sizes .chip { min-width: 44px; text-align: center; }
.colours { display: flex; flex-wrap: wrap; gap: 10px; }
.colour-dot {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(29, 31, 33, .15);
  position: relative; transition: transform var(--fast);
}
.colour-dot:hover { transform: scale(1.08); }
.colour-dot.is-on { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.4px var(--ink); }
.range { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.range input[type="range"] { flex: 1; accent-color: var(--ink); }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.toolbar__count { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select {
  appearance: none; border: 0; background: none; padding: 8px 26px 8px 0;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
}
.select-wrap svg { position: absolute; right: 0; pointer-events: none; }
.select-wrap select:focus { outline: none; }

.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.active-filters:empty { display: none; }

.empty-state { text-align: center; padding-block: 90px; color: var(--ink-3); }
.empty-state p { margin-bottom: 22px; }

.no-results { grid-column: 1/-1; text-align: center; padding: 70px 0; color: var(--ink-3); }

/* ---------- 22. Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.28fr 1fr; gap: clamp(28px, 4.4vw, 78px); align-items: start; }
.pdp__gallery { position: relative; }
.pdp__stage { position: relative; overflow: hidden; background: var(--sand); aspect-ratio: 1024/1413; }
.pdp__stage img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; transition: transform .72s var(--ease); }
.pdp__stage.is-zoom1 img { transform: scale(1.85); transform-origin: 50% 13%; }
.pdp__stage.is-zoom2 img { transform: scale(1.85); transform-origin: 50% 63%; }
.pdp__flags { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pdp__thumb { width: 76px; aspect-ratio: 3/4; overflow: hidden; background: var(--sand); border: 1px solid transparent; transition: border-color var(--fast); }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .5s var(--ease); }
.pdp__thumb.is-d1 img { transform: scale(1.85); transform-origin: 50% 13%; }
.pdp__thumb.is-d2 img { transform: scale(1.85); transform-origin: 50% 63%; }
.pdp__thumb.is-on, .pdp__thumb:hover { border-color: var(--ink); }

.pdp__info { position: sticky; top: calc(var(--header-h) + 26px); }
.pdp__title { margin: 14px 0 12px; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; font-size: 19px; }
.pdp__price s { color: var(--ink-3); font-size: 15px; }
.pdp__price .off { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); background: var(--sale); padding: 4px 8px; align-self: center; }
.pdp__rating { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); margin-top: 12px; }
.stars { color: var(--ink); letter-spacing: .12em; font-size: 12px; }

.opt { margin-top: 26px; }
.opt__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.opt__label { font-size: 10.5px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.opt__label em { font-style: normal; font-weight: 400; color: var(--ink-3); letter-spacing: .04em; text-transform: none; margin-left: 6px; }
.opt__hint { font-size: 11.5px; color: var(--ink-3); border-bottom: 1px solid var(--line); transition: border-color var(--fast); }
.opt__hint:hover { border-bottom-color: var(--ink); color: var(--ink); }
.size-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  min-width: 54px; padding: 12px 10px; border: 1px solid var(--line); background: var(--white);
  font-size: 12px; letter-spacing: .06em; text-align: center;
  transition: border-color var(--fast), background var(--fast), color var(--fast);
}
.size-btn:hover { border-color: var(--ink); }
.size-btn.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.size-btn.is-out { color: var(--line); text-decoration: line-through; pointer-events: none; }
.colour-list { display: flex; gap: 12px; }
.colour-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(29, 31, 33, .15);
  transition: box-shadow var(--fast), transform var(--fast);
}
.colour-btn:hover { transform: scale(1.06); }
.colour-btn.is-on { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.4px var(--ink); }

.qty-lg { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty-lg button { width: 46px; height: 48px; display: grid; place-items: center; transition: background var(--fast); }
.qty-lg button:hover { background: var(--sand); }
.qty-lg span { min-width: 40px; text-align: center; font-size: 13.5px; }

.pdp__buy { display: flex; gap: 12px; margin-top: 30px; }
.pdp__buy .btn { flex: 1; }
.pdp__meta { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; color: var(--ink-3); }
.pdp__meta span { display: flex; align-items: center; gap: 9px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); flex: none; }

.acc { margin-top: 34px; border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 19px 0; font-size: 11px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; text-align: left;
}
.acc__btn svg { flex: none; transition: transform var(--mid); }
.acc__item.is-open .acc__btn svg { transform: rotate(45deg); }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height .42s var(--ease); }
.acc__panel > div { padding-bottom: 22px; font-size: 13.5px; color: var(--ink-2); }
.acc__panel p + p { margin-top: 12px; }
.acc__panel ul { display: flex; flex-direction: column; gap: 7px; }
.acc__panel li { display: flex; gap: 10px; }
.acc__panel li::before { content: "—"; color: var(--ink-3); flex: none; }

/* ---------- 23. Info pages ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 32px); margin: 46px 0 16px; }
.prose h3 { font-size: 12px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; margin: 32px 0 12px; }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.prose li { color: var(--ink-2); display: flex; gap: 11px; }
.prose li::before { content: "—"; color: var(--ink-3); flex: none; }
.prose a { border-bottom: 1px solid var(--ink); }
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 40px; overflow-x: auto; }
.tab {
  padding: 14px 0; font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1.4px solid transparent; margin-bottom: -1px; white-space: nowrap;
  transition: color var(--fast), border-color var(--fast);
}
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.tabpanel { display: none; }
.tabpanel.is-on { display: block; }

.info-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.info-grid img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; object-position: 50% 20%; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.stat { background: var(--white); padding: clamp(22px, 2.4vw, 36px); text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 400; line-height: 1; }
.stat span { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- 24. Toast ---------- */
.toasts { position: fixed; bottom: 24px; left: 24px; z-index: 130; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: var(--white); padding: 14px 20px;
  font-size: 12px; letter-spacing: .06em; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px; max-width: 340px;
  animation: toast-in .38s var(--ease) both;
}
.toast.is-out { animation: toast-out .3s var(--ease) both; }
.toast svg { flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------- 25. Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .82s var(--ease), transform .82s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 26. Responsive ---------- */
@media (max-width: 1240px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .search__results { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
  .nav, .header__actions .icon-btn span { display: none; }
  .burger { display: block; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: center; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; margin-bottom: 30px; }
  .pdp { grid-template-columns: 1fr; }
  .pdp__info { position: static; }
  .editorial { grid-template-columns: 1fr; }
  .editorial--flip .editorial__media { order: 0; }
  .news { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .filter-toggle { display: inline-flex !important; }
}

@media (max-width: 760px) {
  :root { --header-h: 58px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search__results { grid-template-columns: repeat(2, 1fr); }
  .hero__media { height: 74vh; min-height: 420px; }
  .hero__media::after { background: linear-gradient(to top, rgba(20, 21, 22, .72) 6%, rgba(20, 21, 22, .18) 62%, rgba(20, 21, 22, .06)); }
  .hero__body { align-items: flex-end; padding-bottom: 84px; }
  .hero__scroll { display: none; }
  .card__quick { opacity: 1; transform: none; }
  .card__wish { opacity: 1; transform: none; }
  .info-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
  .footer__top { grid-template-columns: 1fr; gap: 34px; }
  .drawer { width: 100vw; }
}

@media (max-width: 420px) {
  .grid { gap: 12px 10px; }
  .card__quick { font-size: 9.5px; letter-spacing: .12em; padding: 11px 6px; }
}

/* the filter toggle button is only shown on small screens */
.filter-toggle { display: none; }

/* ==========================================================================
   合规相关组件
   —— 未替换占位符的视觉标记、上线前提示条、页脚经营主体信息块、
      表单提交状态、下单说明。与既有设计语言保持一致（直角、无阴影）。
   ========================================================================== */

/* 未替换的配置占位符：刻意做得显眼，避免带着假信息上线 */
.pending-token {
  display: inline-block;
  background: #FDF4F5;
  border: 1px dashed var(--sale);
  color: var(--sale);
  padding: 0 6px;
  font-size: .88em;
  line-height: 1.5;
  word-break: break-word;
}

/* 表单提交结果反馈 */
.form-status {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.form-status.is-ok { color: var(--sage); }
.form-status.is-err { color: var(--sale); }
.form-status.is-busy { color: var(--ink-3); }
.form-status[hidden] { display: none; }

/* 尚未配置接收通道时的明确提示，替代此前的假成功提示 */
.pending-block {
  border: 1px dashed var(--sale);
  background: #FDF4F5;
  color: var(--sale);
  font-size: 13px;
  line-height: 1.7;
  padding: 12px 14px;
  margin-top: 14px;
}
.pending-block code { background: #F7E4E7; }

/* 商品页下单说明 */
.pdp__note {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--sand);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}
.pdp__note strong { color: var(--ink); }

/* 购物袋内的下单说明 */
.cart-note--lead {
  background: var(--sand);
  padding: 12px 14px;
  margin-top: 14px;
}
.cart-note--lead strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* 商品卡上的评分（仅在配置开启时渲染） */
.card__rating {
  font-size: 11.5px;
  color: var(--ink-3);
  margin: 6px 0 0;
  letter-spacing: .02em;
}

/* ---------- 页脚经营主体信息块 ---------- */
.footer__entity {
  border-top: 1px solid var(--line-soft);
  margin-top: 44px;
  padding-top: 30px;
}
.footer__entity h4 {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  margin: 0 0 18px;
}
.footer__entity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 34px;
}
.footer__entity-label {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 6px;
}
.footer__entity-value {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.footer__entity-value a { border-bottom: 1px solid var(--line); }
.footer__entity-value a:hover { border-bottom-color: var(--ink); }
.footer__entity-value strong { color: var(--ink); }

/* 政策页内的主体信息块 */
.entity-inline {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.entity-inline h3 {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  margin: 0 0 12px;
}
.entity-inline p { font-size: 13px; line-height: 1.85; color: var(--ink-2); margin: 0; }
.entity-inline strong { color: var(--ink); }

@media (max-width: 860px) {
  .footer__entity-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- 25. Checkout ----------
   两栏：左表单、右订单摘要。这是结账页的通行布局 ——
   摘要常驻可见，改数量和切配送方式时金额即时变化，
   不必来回滚动去核对。窄屏下摘要移到表单上方（先看订单再填信息）。 */
.co-wrap { padding-bottom: clamp(56px, 7vw, 110px); }

.co__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
/* 陷阱：hidden 属性是 UA 样式表里的 display:none，作者写的 display:grid
   会盖掉它 —— 于是 grid.hidden = true 完全没效果，空购物袋时右侧摘要栏
   照样显示一堆空的 Subtotal / Total（实测踩到过）。必须显式补一条。 */
.co__grid[hidden] { display: none; }

.co-empty { text-align: center; padding-block: clamp(60px, 9vw, 130px); }
.co-empty .lede { margin-bottom: 26px; }

/* ---- 表单分块 ---- */
.co-block {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 26px 0 4px;
  margin: 0;
}
.co-block:first-of-type { border-top: 0; padding-top: 0; }
.co-block__title {
  font-size: 10.5px; font-weight: 700; letter-spacing: .21em; text-transform: uppercase;
  margin: 0 0 20px;
}

.co-field { display: block; margin-bottom: 16px; }
.co-field__label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.co-field__label i { font-style: normal; font-weight: 400; letter-spacing: .06em; text-transform: none; color: var(--ink-3); }
/* 必填星号。与「optional」出现在同一位置，但用强调色区分 ——
   用户扫一眼标签就知道哪些必填，不用靠提交后报错来发现。 */
.co-field__label .co-req { color: var(--sale); margin-left: 3px; }
.co-field__label .co-req[hidden] { display: none; }

.co-field input,
.co-field select,
.co-field textarea,
.co-block > textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 12px 13px;
  font-size: 14px;
  transition: border-color var(--fast);
}
.co-field textarea,
.co-block > textarea { resize: vertical; min-height: 88px; }
.co-field input::placeholder,
.co-field textarea::placeholder,
.co-block > textarea::placeholder { color: var(--ink-3); }
.co-field input:focus,
.co-field select:focus,
.co-field textarea:focus,
.co-block > textarea:focus { outline: none; border-color: var(--ink); }

/* 字段级错误态。用 1px 边框而非外发光：与站点其余部分的克制风格一致，
   但颜色与下方的说明文字都明确指向出错的那个字段。 */
.co-field .is-invalid,
.co-field input.is-invalid,
.co-field select.is-invalid { border-color: var(--sale); }
.co-field__label:has(+ .is-invalid),
.co-field:has(.is-invalid) .co-field__label { color: var(--sale); }

/* 结账页的国家下拉是整格输入控件，不是筛选工具栏那种小号样式 */
.co-field .select-wrap { display: block; position: relative; }
.co-field .select-wrap select {
  appearance: none; border-radius: 0; padding: 12px 34px 12px 13px;
  font-size: 14px; font-weight: 400; letter-spacing: .01em; text-transform: none;
}
.co-field .select-wrap svg { right: 13px; top: 50%; margin-top: -5px; }

.co-row { display: grid; gap: 16px; }
.co-row--2 { grid-template-columns: 1fr 1fr; }
.co-row--3 { grid-template-columns: 1.4fr 1fr 1.2fr; }

.co-hint { font-size: 12px; line-height: 1.7; color: var(--ink-3); margin: -6px 0 14px; }
.co-hint--foot { margin: 18px 0 0; }

/* ---- 配送方式 ---- */
.co-ship { border: 1px solid var(--line); margin-bottom: 14px; }
.ship-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px;
  cursor: pointer;
  transition: background var(--fast);
}
.ship-opt + .ship-opt { border-top: 1px solid var(--line); }
.ship-opt:hover { background: var(--sand); }
.ship-opt:has(input:checked) { background: var(--sand); }
.ship-opt input { flex: none; accent-color: var(--ink); width: 15px; height: 15px; }
.ship-opt__body { flex: 1; min-width: 0; }
.ship-opt__body b { display: block; font-size: 13.5px; font-weight: 400; }
.ship-opt__body i { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); }
.ship-opt__cost { flex: none; font-size: 13.5px; }

/* ---- 支付方式 ----
   每种方式一张卡，名称与说明全部来自 site-config.js 的 payMethods。
   既不摆卡号输入框，也不出现配置里没声明的方式，
   详见 checkout.html 内的注释。 */
.co-pay {
  display: flex; gap: 13px; align-items: flex-start;
  border: 1px solid var(--line);
  padding: 15px 16px;
  margin-bottom: 10px;
}
/* 首张（配置里的第一种）描边加重：视觉上区分「主推方式」与「备用方式」，
   但两者都是可用的，不是选中态。 */
.co-pay:first-child { border-color: var(--ink); }
.co-pay__tick { flex: none; color: var(--sage); margin-top: 2px; }
.co-pay b { display: block; font-size: 13.5px; font-weight: 400; margin-bottom: 3px; }
.co-pay p { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }

/* ---- 条款同意 ----
   勾选框放在下单按钮上方，与通行结账页一致。 */
.co-agree {
  display: flex; gap: 11px; align-items: flex-start;
  margin: 2px 0 18px; cursor: pointer;
  font-size: 12.5px; line-height: 1.75; color: var(--ink-2);
}
.co-agree input { flex: none; width: 15px; height: 15px; margin-top: 3px; accent-color: var(--ink); }
.co-agree a { text-decoration: underline; text-underline-offset: 3px; }
.co-agree:has(.is-invalid) .co-agree__text { color: var(--sale); }

/* ---- 支付标识条 ----
   只在 commerce.payments 非空时渲染；为空时整块被移除，不留一个空框。 */
.co-secure { margin-top: 20px; text-align: center; }
/* 必须显式写：作者样式里的 display 会盖掉 hidden 属性 */
.co-secure[hidden] { display: none; }
.co-secure__cap {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.co-secure__cap svg { flex: none; color: var(--sage); }
.co-secure__logos { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.co-secure__note { margin: 13px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--ink-3); }

.co-terms { font-size: 12px; line-height: 1.75; color: var(--ink-3); margin: 16px 0 0; }
.co-terms a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }

/* ---- 右栏：订单摘要 ---- */
.co__aside { position: sticky; top: calc(var(--header-h) + 18px); }
.co-summary { background: var(--sand); padding: clamp(20px, 2.4vw, 30px); }
.co-summary__head {
  font-size: 10.5px; font-weight: 700; letter-spacing: .21em; text-transform: uppercase;
  margin: 0 0 18px;
}

.co-lines { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 16px; }
.co-line { display: flex; gap: 13px; align-items: flex-start; padding: 10px 0; }
.co-line__img { position: relative; flex: none; width: 58px; }
.co-line__img img { width: 58px; aspect-ratio: 3/4; object-fit: cover; background: var(--sand-deep); }
/* 数量角标：同款同尺码多件时，摘要里要能一眼看出件数 */
.co-line__img i {
  position: absolute; top: -7px; right: -7px;
  min-width: 19px; height: 19px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white);
  font-size: 10.5px; font-style: normal; line-height: 1;
}
.co-line__body { flex: 1; min-width: 0; }
.co-line__body b { display: block; font-size: 12.5px; font-weight: 400; line-height: 1.45; }
.co-line__body i { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.co-line__price { flex: none; font-size: 12.5px; }

.co-totals { margin-bottom: 18px; }
.co-tot { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 5px 0; }
.co-tot span { font-size: 12.5px; color: var(--ink-2); }
.co-tot b { font-size: 13px; font-weight: 400; white-space: nowrap; }
.co-tot--grand { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 13px; }
.co-tot--grand span { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.co-tot--grand b { font-size: 18px; }

.co-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  width: 100%; transition: opacity var(--fast);
}
.co-back:hover { opacity: .6; }

@media (max-width: 980px) {
  .co__grid { grid-template-columns: 1fr; }
  /* 窄屏把摘要放到表单之前：先确认买的是什么，再填地址。
     sticky 会让它压在表单上，这里必须取消。 */
  .co__aside { position: static; order: -1; }
}
@media (max-width: 620px) {
  .co-row--2, .co-row--3 { grid-template-columns: 1fr; }
}

