/* ============================================
   言二丁员工知识库 · Redesign
   严格沿用酒红 + 香槟金设计规范
   ============================================ */

:root {
  /* Burgundy surfaces */
  --bg-deepest: #2a0810;
  --bg-deep: #3a0a10;
  --bg-base: #5c1018;
  --bg-raised: #7a1a24;
  --bg-high: #8b2030;

  /* Gold text */
  --gold-100: #fffaef;
  --gold-200: #dfc08a;
  --gold-300: #c9a96e;
  --gold-400: #a8884e;
  --gold-500: #8a7040;

  /* Status */
  --ok: #5a8c6f;
  --warn: #b8943a;
  --danger: #c44040;

  --line-1: rgba(201, 169, 110, 0.08);
  --line-2: rgba(201, 169, 110, 0.18);
  --line-3: rgba(201, 169, 110, 0.34);
  --line-4: rgba(201, 169, 110, 0.6);

  --shadow-1: 0 2px 10px rgba(20, 4, 8, 0.35);
  --shadow-2: 0 16px 40px rgba(15, 3, 6, 0.55);

  --radius: 2px;

  --font-cn: "Noto Serif SC", "Source Han Serif SC", "思源宋体", serif;
  --font-display: "Cormorant Garamond", "Garamond", serif;
  --font-script: "Parisienne", cursive;

  --shell: min(1280px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  color: var(--gold-300);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(201, 169, 110, 0.08), transparent 55%),
    radial-gradient(900px 600px at -10% 90%, rgba(201, 169, 110, 0.05), transparent 55%),
    linear-gradient(180deg, #4a0c13 0%, var(--bg-base) 40%, var(--bg-deep) 100%);
  font-family: var(--font-cn);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

img { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: transparent; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

.shell { width: var(--shell); margin: 0 auto; }

.eyebrow {
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-style: italic;
}

.script { font-family: var(--font-script); font-weight: 400; }
.serif-en { font-family: var(--font-display); font-style: italic; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(42, 8, 16, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-1);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand__logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.12));
}
.brand__wm { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.brand__name {
  color: var(--gold-100);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.22em;
}
.brand__tag {
  color: var(--gold-400);
  font-family: var(--font-script);
  font-size: 14px;
  margin-top: 3px;
}

.top-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.top-search input {
  width: 100%;
  height: 44px;
  padding: 0 18px 0 44px;
  background: rgba(42, 8, 16, 0.7);
  border: 1px solid var(--line-2);
  color: var(--gold-100);
  outline: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, background 0.2s;
}
.top-search input::placeholder { color: var(--gold-500); font-family: var(--font-cn); }
.top-search input:focus { border-color: var(--line-4); background: rgba(58, 10, 16, 0.9); }
.top-search::before {
  content: "";
  position: absolute;
  left: 16px; top: 50%;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a96e' stroke-width='1.6'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
}
.top-search__kbd {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.viewer-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line-2);
  background: rgba(255, 250, 239, 0.02);
  cursor: pointer;
  transition: border-color 0.2s;
}
.viewer-pill:hover { border-color: var(--line-3); }
.viewer-pill__avatar {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  color: var(--bg-deepest);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.viewer-pill__meta { display: flex; flex-direction: column; line-height: 1.2; }
.viewer-pill__meta strong { color: var(--gold-100); font-size: 13px; font-weight: 600; }
.viewer-pill__meta span { color: var(--gold-500); font-size: 11px; letter-spacing: 0.12em; }

.viewer-pop { position: relative; }
.viewer-pill__caret {
  display: inline-block;
  margin-left: 4px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--gold-400);
  opacity: .8;
}
.viewer-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 300px;
  max-height: 440px;
  background: #1a0810;
  border: 1px solid var(--line-3);
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
  z-index: 30;
  display: flex;
  flex-direction: column;
}
.viewer-menu[hidden] { display: none; }
.viewer-menu__head {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.viewer-menu__badge {
  color: var(--gold-300);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.viewer-menu__head small { color: var(--gold-500); font-size: 11px; letter-spacing: 0.04em; }
.viewer-menu__list {
  overflow-y: auto;
  max-height: 380px;
  padding: 4px 0;
}
.viewer-menu__item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--gold-200);
  border-left: 2px solid transparent;
  transition: background .15s;
}
.viewer-menu__item:hover { background: rgba(201,169,110,.06); }
.viewer-menu__item.is-active { background: rgba(201,169,110,.10); border-left-color: var(--gold-300); color: var(--gold-100); }
.viewer-menu__item.is-disabled { opacity: .45; cursor: not-allowed; }
.viewer-menu__avatar {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: rgba(201,169,110,.14);
  color: var(--gold-200);
  font-size: 13px;
  letter-spacing: .02em;
  border: 1px solid var(--line-2);
}
.viewer-menu__info { min-width: 0; }
.viewer-menu__info strong {
  display: block;
  color: var(--gold-100);
  font-size: 13px;
  font-weight: 600;
}
.viewer-menu__info small {
  display: block;
  color: var(--gold-500);
  font-size: 11px;
  letter-spacing: .08em;
  margin-top: 2px;
}
.viewer-menu__role {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-400);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-btn {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  color: var(--gold-200);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  white-space: nowrap;
}
.view-switcher button { white-space: nowrap; }
.viewer-pill { white-space: nowrap; flex: 0 0 auto; }
.viewer-pill__meta { white-space: nowrap; }
.header-btn:hover { border-color: var(--line-3); background: rgba(201, 169, 110, 0.06); }
.header-btn.is-primary {
  background: var(--gold-300);
  color: var(--bg-deepest);
  border-color: transparent;
  font-weight: 600;
}
.header-btn.is-primary:hover { background: var(--gold-200); }

/* ============================================
   Hero — minimal brand banner
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line-1);
}
.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(201, 169, 110, 0.12), transparent 55%),
    radial-gradient(400px 300px at 10% 80%, rgba(201, 169, 110, 0.06), transparent 55%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero__title {
  margin: 0;
  color: var(--gold-100);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.hero__title .script {
  display: block;
  color: var(--gold-300);
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 6px;
}
.hero__lede {
  margin: 22px 0 28px;
  color: var(--gold-400);
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.85;
}
.hero__cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line-3);
  color: var(--gold-200);
  font-size: 13px;
  letter-spacing: 0.16em;
  transition: all 0.25s ease;
  font-weight: 500;
}
.cta:hover { border-color: var(--gold-300); color: var(--gold-100); background: rgba(201, 169, 110, 0.05); }
.cta.is-solid {
  background: var(--gold-300);
  color: var(--bg-deepest);
  border-color: transparent;
  font-weight: 600;
}
.cta.is-solid:hover { background: var(--gold-200); color: var(--bg-deepest); box-shadow: 0 0 24px rgba(201, 169, 110, 0.22); }

/* hero feature card */
.hero__card {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 28px;
  border: 1px solid var(--line-3);
  background:
    linear-gradient(180deg, rgba(42, 8, 16, 0.15), rgba(42, 8, 16, 0.55)),
    url("../assets/products/p2.jpg") center/cover no-repeat;
  overflow: hidden;
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 169, 110, 0.32);
  pointer-events: none;
}
.hero__card-top {
  display: flex;
  justify-content: space-between;
  color: var(--gold-100);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__card-bottom {
  position: absolute;
  left: 28px; right: 28px; bottom: 28px;
  color: var(--gold-100);
}
.hero__card-bottom h4 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero__card-bottom p {
  margin: 0;
  color: rgba(255, 250, 239, 0.8);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* small metrics strip */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.metric {
  padding: 12px 18px;
  border-right: 1px solid var(--line-1);
}
.metric:last-child { border-right: 0; }
.metric__label {
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-style: italic;
}
.metric__value {
  display: block;
  color: var(--gold-100);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 2px;
  font-variant-numeric: oldstyle-nums;
}
.metric__sub { color: var(--gold-400); font-size: 10px; letter-spacing: 0.08em; }

/* ============================================
   Primary tab nav
   ============================================ */
.tab-nav {
  position: sticky;
  top: 72px;
  z-index: 30;
  display: flex;
  gap: 0;
  padding: 0;
  margin: 32px 0 24px;
  border-bottom: 1px solid var(--line-2);
  background: rgba(42, 8, 16, 0.86);
  backdrop-filter: blur(12px);
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px 14px;
  color: var(--gold-400);
  font-size: 14px;
  letter-spacing: 0.16em;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--gold-200); }
.tab.is-active {
  color: var(--gold-100);
  border-bottom-color: var(--gold-300);
}
.tab__count {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  min-width: 22px;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold-400);
  border: 1px solid var(--line-2);
  font-variant-numeric: oldstyle-nums;
}
.tab.is-active .tab__count { color: var(--gold-100); border-color: var(--line-3); }
.tab--danger.is-active { border-bottom-color: var(--danger); color: #f0c8c8; }
.tab--danger::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--danger);
  border-radius: 50%;
  margin-left: -4px;
}

/* ============================================
   Section heading
   ============================================ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 8px 0 28px;
}
.section-head__title {
  margin: 0;
  color: var(--gold-100);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.section-head__title .serif-en {
  color: var(--gold-400);
  font-size: 0.55em;
  font-weight: 400;
  margin-left: 12px;
  letter-spacing: 0.1em;
}
.section-head__desc {
  margin: 8px 0 0;
  color: var(--gold-400);
  font-size: 13px;
  max-width: 60ch;
}

/* Section search/filters row */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: rgba(42, 8, 16, 0.5);
  border: 1px solid var(--line-2);
}
.toolbar__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
}
.toolbar__search input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background: rgba(255, 250, 239, 0.03);
  border: 1px solid var(--line-2);
  color: var(--gold-100);
  outline: none;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.toolbar__search input:focus { border-color: var(--line-4); }
.toolbar__search input::placeholder { color: var(--gold-500); }
.toolbar__right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
  position: relative;
}
.chip-rail {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
}
.chip-rail::-webkit-scrollbar { display: none; }
.chip-rail .chip { flex: 0 0 auto; }
.chip-more { position: relative; flex: 0 0 auto; }
.chip-more__btn {
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--gold-300);
  font-family: var(--font-cn);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chip-more__btn:hover { border-color: var(--line-3); color: var(--gold-200); }
.chip-more__btn::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .7;
}
.chip-more__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 190px;
  max-height: 300px;
  overflow-y: auto;
  background: #1a0810;
  border: 1px solid var(--line-3);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  padding: 6px 0;
  z-index: 20;
  display: none;
}
.chip-more.is-open .chip-more__menu { display: block; }
.chip-more__item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 16px;
  color: var(--gold-200);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.chip-more__item:hover { background: rgba(201,169,110,.08); color: var(--gold-100); }
.chip-more__item.is-active { color: var(--gold-100); background: rgba(201,169,110,.12); }
.chip-more__item small { color: var(--gold-500); font-family: var(--font-display); font-size: 11px; }
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  color: var(--gold-300);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--line-3); color: var(--gold-200); }
.chip.is-active {
  background: var(--gold-300);
  color: var(--bg-deepest);
  border-color: transparent;
  font-weight: 600;
}
.chip--count { color: var(--gold-500); font-family: var(--font-display); margin-left: 4px; font-size: 11px; }

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line-2);
  height: 36px;
}
.view-toggle button {
  padding: 0 12px;
  color: var(--gold-400);
  font-size: 12px;
  letter-spacing: 0.12em;
  border-right: 1px solid var(--line-2);
}
.view-toggle button:last-child { border-right: 0; }
.view-toggle button.is-active { color: var(--bg-deepest); background: var(--gold-300); }

/* ============================================
   PRODUCT GRID — Variant A: Editorial (default)
   ============================================ */
.product-grid {
  display: grid;
  gap: 24px;
}
body[data-density="comfortable"] .product-grid { gap: 32px; }
body[data-density="compact"] .product-grid { gap: 16px; }

body[data-card-style="editorial"] .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
body[data-card-style="gallery"] .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Card base */
.p-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.35s ease;
  text-align: left;
}
.p-card:hover { transform: translateY(-3px); }

/* Variant A — Editorial */
body[data-card-style="editorial"] .p-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #2a0810;
  overflow: hidden;
  border: 1px solid var(--line-2);
}
body[data-card-style="editorial"] .p-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
body[data-card-style="editorial"] .p-card:hover .p-card__media img { transform: scale(1.04); }
body[data-card-style="editorial"] .p-card__media::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(201, 169, 110, 0.18);
  pointer-events: none;
}
body[data-card-style="editorial"] .p-card__info {
  padding: 16px 2px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
body[data-card-style="editorial"] .p-card__name {
  margin: 0;
  color: var(--gold-100);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
body[data-card-style="editorial"] .p-card__sku {
  margin: 4px 0 0;
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-style: italic;
}
body[data-card-style="editorial"] .p-card__price {
  color: var(--gold-200);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  font-variant-numeric: oldstyle-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
body[data-card-style="editorial"] .p-card__price sup {
  font-size: 0.6em;
  color: var(--gold-400);
  margin-right: 2px;
  top: -0.5em;
  position: relative;
}

/* Variant B — Gallery (image-forward overlay) */
body[data-card-style="gallery"] .p-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #2a0810;
}
body[data-card-style="gallery"] .p-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.4s ease;
}
body[data-card-style="gallery"] .p-card:hover img { transform: scale(1.05); filter: brightness(1.05); }
body[data-card-style="gallery"] .p-card__info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 20px 20px;
  background: linear-gradient(180deg, rgba(42, 8, 16, 0) 0%, rgba(20, 4, 8, 0.88) 70%);
  color: var(--gold-100);
}
body[data-card-style="gallery"] .p-card__name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
body[data-card-style="gallery"] .p-card__sku-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
}
body[data-card-style="gallery"] .p-card__sku {
  color: rgba(255, 250, 239, 0.72);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.12em;
}
body[data-card-style="gallery"] .p-card__price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold-200);
  font-variant-numeric: oldstyle-nums;
}

/* Product tag (hot / new / alert) */
.p-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--bg-deepest);
  background: var(--gold-300);
}
.p-tag--new { background: var(--gold-200); }
.p-tag--alert { background: var(--danger); color: var(--gold-100); }
.p-tag--ghost {
  background: transparent;
  color: var(--gold-200);
  border: 1px solid var(--line-3);
}

/* ============================================
   PRODUCT DETAIL DRAWER
   ============================================ */
.drawer-backdrop {
  position: fixed; inset: 0;
  z-index: 90;
  background: rgba(10, 3, 6, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(880px, 94vw);
  z-index: 100;
  background: linear-gradient(180deg, #43101a, var(--bg-deep));
  border-left: 1px solid var(--line-3);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow-y: auto;
  box-shadow: -40px 0 80px rgba(0,0,0,0.5);
}
.drawer.is-open { transform: translateX(0); }
.drawer__header {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: rgba(42, 8, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
  z-index: 2;
}
.drawer__breadcrumb { color: var(--gold-500); font-family: var(--font-display); font-style: italic; font-size: 13px; letter-spacing: 0.12em; }
.drawer__breadcrumb strong { color: var(--gold-200); font-family: var(--font-cn); font-style: normal; margin-left: 6px; letter-spacing: 0.1em; }
.drawer__close {
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  color: var(--gold-200);
  font-size: 18px;
  transition: all 0.2s;
}
.drawer__close:hover { border-color: var(--line-4); background: rgba(201, 169, 110, 0.06); }

.drawer__body { padding: 36px 28px 64px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; }
.drawer__gallery { display: grid; gap: 14px; position: sticky; top: 88px; align-self: start; }
.drawer__gallery-main {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #2a0810;
  border: 1px solid var(--line-3);
  overflow: hidden;
}
.drawer__gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.drawer__gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 169, 110, 0.3);
  background: rgba(26, 7, 12, 0.55);
  color: var(--gold-100);
  font-size: 24px;
  line-height: 1;
  border-radius: 999px;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}
.drawer__gallery-nav:hover { background: rgba(42, 12, 20, 0.85); transform: translateY(-50%) scale(1.05); }
.drawer__gallery-nav--prev { left: 12px; }
.drawer__gallery-nav--next { right: 12px; }
.drawer__gallery-counter {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(10, 3, 7, 0.55);
  color: var(--gold-100);
  font-size: 12px;
  letter-spacing: 0.08em;
  z-index: 2;
  pointer-events: none;
}
.drawer__gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.drawer__gallery-thumbs::-webkit-scrollbar { height: 4px; }
.drawer__gallery-thumbs::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }
.drawer__gallery-thumbs button {
  position: relative;
  flex: 0 0 80px;
  aspect-ratio: 3/4;
  border: 1px solid var(--line-2);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: transparent;
  scroll-snap-align: start;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.drawer__gallery-thumbs button:hover { border-color: var(--line-4); }
.drawer__gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.drawer__gallery-thumbs button.is-active { border-color: var(--gold-300); box-shadow: 0 0 0 1px var(--gold-300); }

.d-title { margin: 0; color: var(--gold-100); font-size: 32px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.25; }
.d-sub { margin: 8px 0 20px; color: var(--gold-400); font-family: var(--font-display); font-style: italic; font-size: 15px; letter-spacing: 0.12em; }
.d-price-row { display: flex; align-items: baseline; gap: 20px; padding: 16px 0 24px; border-bottom: 1px solid var(--line-2); }
.d-price {
  color: var(--gold-200);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: oldstyle-nums;
}
.d-price sup { font-size: 0.45em; color: var(--gold-400); top: -1em; position: relative; margin-right: 4px; }
.d-chiplist { display: flex; flex-wrap: wrap; gap: 6px; }
.d-chip {
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  color: var(--gold-300);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.d-section { padding: 24px 0; border-bottom: 1px solid var(--line-1); }
.d-section:last-child { border-bottom: 0; }
.d-section h4 { margin: 0 0 14px; color: var(--gold-200); font-size: 13px; letter-spacing: 0.2em; font-weight: 600; text-transform: uppercase; }
.d-section h4 .serif-en { color: var(--gold-500); margin-left: 10px; font-size: 11px; }

.d-grid-2 { display: grid; grid-template-columns: 120px 1fr; gap: 12px 20px; align-items: baseline; }
.d-grid-2 dt { color: var(--gold-500); font-size: 12px; letter-spacing: 0.14em; }
.d-grid-2 dd { margin: 0; color: var(--gold-100); font-size: 14px; line-height: 1.75; }

.d-notice {
  padding: 16px;
  border: 1px solid rgba(184, 148, 58, 0.5);
  background: rgba(184, 148, 58, 0.08);
  color: var(--gold-100);
  font-size: 13px;
  line-height: 1.8;
}

.d-color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.d-swatch {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line-2);
  color: var(--gold-100);
  font-size: 12px; letter-spacing: 0.08em;
}
.d-swatch__dot { width: 16px; height: 16px; border: 1px solid rgba(255,255,255,0.2); }

/* bottom stamp block (鞋底标记) */
.stamp {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line-3);
  text-align: center;
  background: rgba(42, 8, 16, 0.5);
}
.stamp__zha { color: var(--gold-100); font-size: 32px; letter-spacing: 0.08em; }
.stamp__size { color: var(--gold-200); font-family: var(--font-script); font-size: 28px; margin: 2px 0; }
.stamp__tag { color: var(--gold-400); font-family: var(--font-script); font-size: 15px; }

/* ============================================
   FAQ
   ============================================ */
.faq-shell { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.faq-cats { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 180px; align-self: start; }
.faq-cat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-left: 2px solid transparent;
  color: var(--gold-400);
  font-size: 13px; letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
}
.faq-cat:hover { color: var(--gold-200); background: rgba(201, 169, 110, 0.03); }
.faq-cat.is-active { color: var(--gold-100); border-left-color: var(--gold-300); background: rgba(201, 169, 110, 0.06); }
.faq-cat__count { color: var(--gold-500); font-family: var(--font-display); font-size: 12px; font-variant-numeric: oldstyle-nums; }

.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.faq-item {
  padding: 20px 4px;
  border-bottom: 1px solid var(--line-1);
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  align-items: baseline;
  transition: padding 0.2s;
}
.faq-item:hover { padding-left: 14px; background: rgba(201, 169, 110, 0.02); }
.faq-item.is-open { background: rgba(201, 169, 110, 0.03); padding-left: 14px; }
.faq-item__tag {
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-style: italic;
  grid-column: 1/2;
}
.faq-item__title {
  grid-column: 1 / 2;
  color: var(--gold-100);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  margin: 2px 0 0;
}
.faq-item__meta {
  grid-column: 2/3; grid-row: 1/3;
  display: flex; align-items: center; gap: 10px;
  color: var(--gold-500); font-size: 11px; letter-spacing: 0.1em;
}
.faq-item__chev {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  color: var(--gold-300);
  font-size: 14px;
  transition: transform 0.3s;
}
.faq-item.is-open .faq-item__chev { transform: rotate(180deg); border-color: var(--line-3); }

.faq-item__body {
  grid-column: 1/3;
  display: none;
  padding: 12px 0 8px;
}
.faq-item.is-open .faq-item__body { display: block; }
.faq-answer {
  padding: 18px 20px;
  background: rgba(42, 8, 16, 0.55);
  border-left: 2px solid var(--gold-300);
  color: var(--gold-100);
  font-size: 14px; line-height: 1.85;
  margin-bottom: 12px;
  position: relative;
}
.faq-answer__label {
  display: inline-block;
  color: var(--gold-500); font-family: var(--font-display); font-style: italic; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 8px;
}
.faq-answer__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.faq-copy {
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  color: var(--gold-200);
  font-size: 12px; letter-spacing: 0.12em;
  transition: all 0.2s;
}
.faq-copy:hover { border-color: var(--line-4); color: var(--gold-100); background: rgba(201, 169, 110, 0.05); }

/* ============================================
   TABOO (回复禁区)
   ============================================ */
.taboo-banner {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
  padding: 18px 22px;
  background: rgba(196, 64, 64, 0.1);
  border: 1px solid rgba(196, 64, 64, 0.4);
  border-left: 4px solid var(--danger);
}
.taboo-banner__icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--danger);
  color: var(--gold-100);
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-cn);
  flex: 0 0 auto;
}
.taboo-banner__body strong { color: #f5cccc; font-size: 15px; letter-spacing: 0.06em; display: block; margin-bottom: 3px; font-weight: 600; }
.taboo-banner__body span { color: rgba(245, 204, 204, 0.75); font-size: 12px; }

.taboo-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px 20px;
  padding: 22px 20px;
  margin-bottom: 14px;
  background: rgba(88, 19, 24, 0.4);
  border: 1px solid rgba(196, 64, 64, 0.32);
  border-left: 4px solid var(--danger);
  align-items: start;
}
.taboo-item__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: rgba(245, 204, 204, 0.6);
  font-variant-numeric: oldstyle-nums;
  line-height: 1.2;
}
.taboo-item__title { color: #fff0ef; font-size: 16px; font-weight: 600; margin: 0 0 8px; letter-spacing: 0.04em; }
.taboo-item__wrong, .taboo-item__right { display: flex; gap: 10px; padding: 6px 0; font-size: 13px; line-height: 1.75; }
.taboo-item__wrong strong, .taboo-item__right strong {
  flex: 0 0 auto;
  padding: 1px 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  height: 20px;
  display: inline-flex; align-items: center;
  font-weight: 600;
}
.taboo-item__wrong strong { background: rgba(196, 64, 64, 0.18); color: #f5a6a6; border: 1px solid rgba(196, 64, 64, 0.4); }
.taboo-item__wrong p { color: rgba(245, 204, 204, 0.85); margin: 0; font-style: italic; font-family: var(--font-display); font-size: 14px; line-height: 1.7; }
.taboo-item__right strong { background: rgba(90, 140, 111, 0.18); color: #bce3cd; border: 1px solid rgba(90, 140, 111, 0.4); }
.taboo-item__right p { color: var(--gold-100); margin: 0; font-size: 14px; line-height: 1.8; }

/* ============================================
   TOOLS
   ============================================ */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tool-card {
  padding: 24px;
  border: 1px solid var(--line-2);
  background: rgba(42, 8, 16, 0.4);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 180px;
  transition: all 0.3s;
  cursor: pointer;
}
.tool-card:hover { border-color: var(--line-4); background: rgba(58, 10, 16, 0.65); transform: translateY(-2px); }
.tool-card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid var(--line-3);
  color: var(--gold-200);
  font-size: 20px;
  font-family: var(--font-display);
}
.tool-card__name { margin: 0; color: var(--gold-100); font-size: 18px; font-weight: 600; letter-spacing: 0.06em; }
.tool-card__desc { margin: 0; color: var(--gold-400); font-size: 13px; line-height: 1.7; flex: 1; }
.tool-card__arrow { align-self: flex-end; color: var(--gold-300); font-size: 18px; }

/* ============================================
   ADMIN
   ============================================ */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: calc(100vh - 72px); }
.admin-sidebar {
  padding: 28px 0;
  border-right: 1px solid var(--line-2);
  background: rgba(42, 8, 16, 0.55);
}
.admin-sidebar__section {
  padding: 12px 24px 8px;
  color: var(--gold-500);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.admin-nav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 24px;
  color: var(--gold-400);
  border-left: 2px solid transparent;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.admin-nav-item:hover { color: var(--gold-200); background: rgba(201, 169, 110, 0.04); }
.admin-nav-item.is-active { color: var(--gold-100); border-left-color: var(--gold-300); background: rgba(201, 169, 110, 0.08); }
.admin-nav-item__count { color: var(--gold-500); font-family: var(--font-display); font-size: 12px; font-variant-numeric: oldstyle-nums; }

.admin-main { padding: 32px 36px; overflow: hidden; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-2); margin-bottom: 24px; }
.admin-stat { padding: 22px 24px; border-right: 1px solid var(--line-1); }
.admin-stat:last-child { border-right: 0; }
.admin-stat__label { color: var(--gold-500); font-family: var(--font-display); font-style: italic; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.admin-stat__value { display: block; color: var(--gold-100); font-family: var(--font-display); font-size: 32px; font-weight: 500; font-variant-numeric: oldstyle-nums; margin-top: 4px; }
.admin-stat__trend { color: var(--ok); font-size: 11px; letter-spacing: 0.08em; }
.admin-stat__trend.is-warn { color: var(--warn); }

/* Login overlay */
.login-overlay {
  position: fixed; inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 600px at 50% 20%, rgba(201,169,110,.08), transparent 60%),
              var(--bg-deepest, #3A0A10);
}
.login-overlay[hidden] { display: none; }
body.is-authed .login-overlay { display: none; }
.login-card {
  width: 380px;
  max-width: 92vw;
  padding: 48px 44px 40px;
  background: rgba(42, 8, 16, 0.85);
  border: 1px solid var(--line-3);
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.login-card__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}
.login-card__brand img { width: 42px; height: 42px; object-fit: contain; }
.login-card__name strong {
  display: block;
  color: var(--gold-100);
  font-size: 18px;
  letter-spacing: 0.14em;
}
.login-card__name em {
  color: var(--gold-400);
  font-family: var(--font-script, "Parisienne", cursive);
  font-style: normal;
  font-size: 16px;
}
.login-card__title {
  margin: 28px 0 4px;
  color: var(--gold-100);
  font-size: 22px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.login-card__sub {
  margin: 0 0 24px;
  color: var(--gold-500);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-field > span {
  color: var(--gold-400);
  font-size: 11px;
  letter-spacing: 0.22em;
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
}
.login-field > input {
  padding: 10px 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line-2);
  color: var(--gold-100);
  font-size: 14px;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color .15s;
}
.login-field > input:focus { border-color: var(--gold-300); }
.login-error {
  color: #e38989;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 4px 0 0;
}
.login-btn {
  margin-top: 8px;
  padding: 12px 0;
  background: var(--gold-300);
  color: var(--bg-deepest);
  border: 0;
  font-family: var(--font-sans-cn, "Noto Serif SC", serif);
  font-size: 14px;
  letter-spacing: 0.6em;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.login-btn:hover { background: var(--gold-200, #DFC08A); }
.login-btn:active { transform: translateY(1px); }

/* When not authed, hide main chrome */
body:not(.is-authed) .site-header,
body:not(.is-authed) main,
body:not(.is-authed) footer,
body:not(.is-authed) #tweaks-panel { display: none !important; }

/* Viewer menu divider (between accounts and channel previews) */
.viewer-menu__divider {
  padding: 10px 16px 6px;
  color: var(--gold-500);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.14em;
  border-top: 1px solid var(--line-2);
  margin-top: 4px;
}
.viewer-menu__divider:first-child { border-top: 0; margin-top: 0; }

/* Viewer menu logout */
.viewer-menu__logout {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 12px 0;
  margin-top: 6px;
  border-top: 1px solid var(--line-2);
  background: transparent;
  color: var(--gold-400);
  font-family: var(--font-sans-cn, "Noto Serif SC", serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  cursor: pointer;
}
.viewer-menu__logout:hover { color: var(--gold-200, #DFC08A); background: rgba(201,169,110,.04); }

/* Pagination — admin lists */
.ae-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin: 18px 0 6px;
  color: var(--gold-400);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.ae-pager__info {
  margin-right: 12px;
  color: var(--gold-500);
  font-family: var(--font-display);
  font-style: italic;
}
.ae-pager__btn {
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.ae-pager__btn:hover:not([disabled]):not(.is-active) {
  border-color: var(--gold-400);
  color: var(--gold-100);
}
.ae-pager__btn.is-active {
  background: var(--gold-300);
  color: var(--bg-deepest);
  border-color: var(--gold-300);
  font-weight: 600;
}
.ae-pager__btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}
.ae-pager__ellipsis {
  padding: 0 4px;
  color: var(--gold-500);
}

/* Overview workspace sections */
.ov-section { margin-bottom: 28px; }
.ov-section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-1);
}
.ov-section__title {
  margin: 0;
  color: var(--gold-100);
  font-size: 16px;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.ov-section__en {
  color: var(--gold-500);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.14em;
}
.ov-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line-2);
  background: rgba(42, 8, 16, 0.35);
}
.ov-kpi {
  padding: 26px 28px 22px;
  border-right: 1px solid var(--line-1);
  position: relative;
}
.ov-kpi:last-child { border-right: 0; }
.ov-kpi--accent { background: rgba(201, 169, 110, 0.05); }
.ov-kpi__label {
  color: var(--gold-500);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.ov-kpi__value {
  display: block;
  color: var(--gold-100);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  font-variant-numeric: oldstyle-nums;
  line-height: 1.1;
  margin: 6px 0 6px;
}
.ov-kpi__sub {
  color: var(--gold-400);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(42, 8, 16, 0.35);
  border: 1px solid var(--line-2);
  margin-top: 16px;
}
.data-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--gold-500);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-2);
  background: rgba(255, 250, 239, 0.02);
}
.data-table td {
  padding: 14px 16px;
  color: var(--gold-100);
  font-size: 13px;
  border-bottom: 1px solid var(--line-1);
  letter-spacing: 0.02em;
}
.data-table tr:hover td { background: rgba(201, 169, 110, 0.03); }
.data-table td.muted { color: var(--gold-400); }
.data-table td.num { font-family: var(--font-display); font-variant-numeric: oldstyle-nums; }

.status-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: 0.08em;
}
.status-dot::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--ok);
  border-radius: 50%;
}
.status-dot.is-warn::before { background: var(--warn); }
.status-dot.is-danger::before { background: var(--danger); }
.status-dot.is-muted::before { background: var(--gold-500); }

.admin-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 24px;
}
.admin-panel-head h2 { margin: 0; color: var(--gold-100); font-size: 24px; font-weight: 600; letter-spacing: 0.04em; }
.admin-panel-head p { margin: 4px 0 0; color: var(--gold-400); font-size: 13px; }

/* ============================================
   Tweaks panel
   ============================================ */
#tweaks-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 280px;
  z-index: 500;
  background: rgba(30, 6, 10, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-3);
  box-shadow: var(--shadow-2);
  display: none;
  padding: 18px 20px;
}
#tweaks-panel.is-visible { display: block; }
#tweaks-panel h5 {
  margin: 0 0 14px;
  color: var(--gold-100);
  font-size: 13px;
  letter-spacing: 0.2em;
  display: flex; justify-content: space-between; align-items: center;
}
#tweaks-panel h5 .serif-en { color: var(--gold-500); font-size: 11px; }
.tweak-row { margin-bottom: 14px; }
.tweak-row:last-child { margin-bottom: 0; }
.tweak-row__label {
  display: block; margin-bottom: 6px;
  color: var(--gold-400); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.tweak-buttons { display: flex; gap: 4px; }
.tweak-buttons button {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--line-2);
  color: var(--gold-300);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
}
.tweak-buttons button.is-active {
  background: var(--gold-300);
  color: var(--bg-deepest);
  border-color: transparent;
  font-weight: 600;
}

/* View switcher */
.view-switcher {
  display: flex;
  gap: 0;
  border: 1px solid var(--line-2);
  margin-right: 12px;
}
.view-switcher[hidden] { display: none; }
.view-switcher button[hidden] { display: none; }
.view-switcher button {
  padding: 7px 14px;
  color: var(--gold-400);
  font-size: 12px;
  letter-spacing: 0.12em;
  border-right: 1px solid var(--line-2);
}
.view-switcher button:last-child { border-right: 0; }
.view-switcher button.is-active { background: var(--gold-300); color: var(--bg-deepest); font-weight: 600; }

/* Toast */
.toast {
  position: fixed; right: 28px; bottom: 28px;
  padding: 14px 20px;
  background: rgba(42, 8, 16, 0.95);
  border: 1px solid var(--line-3);
  color: var(--gold-100);
  font-size: 13px;
  letter-spacing: 0.06em;
  z-index: 999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.24s, transform 0.24s;
}
.toast.is-show { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1180px) {
  .top-search { max-width: 320px; }
  .viewer-pill__meta { display: none; }
  .viewer-pill { padding: 4px; }
}
@media (max-width: 1024px) {
  :root { --shell: min(1200px, calc(100vw - 32px)); }
  .top-search { max-width: 260px; }
  #toggleTweaks { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__card { aspect-ratio: 4 / 5; }
  .faq-shell { grid-template-columns: 1fr; }
  .faq-cats { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .faq-cat { flex: 0 0 auto; border-left: 0; border-bottom: 2px solid transparent; padding: 10px 14px; }
  .faq-cat.is-active { border-left-color: transparent; border-bottom-color: var(--gold-300); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .drawer__body { grid-template-columns: 1fr; gap: 24px; }
  .drawer__gallery { position: static; }
}
@media (max-width: 860px) {
  :root { --shell: calc(100vw - 24px); }
  body { font-size: 14px; }
  .site-header__inner { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .top-search { order: 3; flex-basis: 100%; max-width: 100%; }
  .header-right .header-btn { display: none; }
  .hero { padding: 36px 0 28px; }
  .hero__title { font-size: 36px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line-1); }
  /* Force two-up product grid on mobile regardless of style */
  body[data-card-style="editorial"] .product-grid,
  body[data-card-style="gallery"] .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  body[data-card-style="editorial"] .p-card__name { font-size: 14px; }
  body[data-card-style="editorial"] .p-card__sku { font-size: 11px; }
  body[data-card-style="editorial"] .p-card__price { font-size: 16px; }
  body[data-card-style="editorial"] .p-card__info { padding: 10px 2px 0; gap: 8px; }
  body[data-card-style="gallery"] .p-card__name { font-size: 15px; }
  body[data-card-style="gallery"] .p-card__price { font-size: 17px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar__search { max-width: 100%; }
  .drawer { width: 100vw; }
  .drawer__body { padding: 24px 16px 48px; }
  .tab-nav {
    top: 60px;
    overflow-x: visible !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0;
    width: 100%;
  }
  .tab {
    display: flex !important;
    padding: 12px 2px !important;
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
    gap: 3px !important;
    justify-content: center;
    align-items: center;
    min-width: 0;
  }
  .tab__count { padding: 0 4px; min-width: 16px; font-size: 10px; }
  .tab--danger::after { margin-left: -1px; width: 5px; height: 5px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .ov-kpis { grid-template-columns: repeat(2, 1fr); }
  .ov-kpi { border-right: 0; border-bottom: 1px solid var(--line-1); }
  .ov-kpi:nth-child(odd) { border-right: 1px solid var(--line-1); }
  .ov-kpi:nth-last-child(-n+2) { border-bottom: 0; }
  .data-table { font-size: 12px; }
  .data-table td, .data-table th { padding: 10px 10px; }
}


/* ============================================================
   Customer view (shopper-facing)
   ============================================================ */
#customerView { color: var(--gold-100); }

/* ---- Hero (mirrors employee .hero layout, copy on left / feature on right) ---- */
.c-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line-1);
}
.c-hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(201, 169, 110, 0.12), transparent 55%),
    radial-gradient(400px 300px at 10% 80%, rgba(201, 169, 110, 0.06), transparent 55%);
}
.c-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.c-hero__copy { min-width: 0; }
.c-hero__copy .eyebrow { margin: 0 0 10px; }
.c-hero__title {
  margin: 0;
  color: var(--gold-100);
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.04em;
  text-wrap: balance;
}
.c-hero__title .script {
  display: block;
  color: var(--gold-300);
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 8px;
}
.c-hero__lede {
  margin: 20px 0 24px;
  color: var(--gold-400);
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.85;
}
.c-hero__cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.c-hero__meta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 28px 36px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-2);
}
.c-hero__meta > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c-hero__meta strong {
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: 26px; font-weight: 500;
  color: var(--gold-100);
  letter-spacing: 0.03em;
  line-height: 1;
}
.c-hero__meta span {
  margin-top: 4px;
  font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
}

/* Feature card on the right — editorial framed shot with caption block */
.c-hero__feature {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-3);
  background-color: rgba(42, 8, 16, 0.6);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  cursor: pointer;
  transition: transform .4s ease, box-shadow .4s ease;
  min-width: 0;
}
.c-hero__feature:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -18px rgba(0,0,0,.6); }
.c-hero__feature-frame {
  position: absolute; top: 14px; left: 14px; right: 14px;
  height: 36px;
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-bottom: 0;
  pointer-events: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 14px;
  color: var(--gold-100);
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
}
.c-hero__feature-issue { font-family: var(--font-display, "Cormorant Garamond", serif); font-style: italic; font-size: 14px; letter-spacing: 0.06em; text-transform: none; }
.c-hero__feature-caption {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(21, 4, 10, 0.5), rgba(21, 4, 10, 0.85));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 169, 110, 0.22);
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 3px;
  align-items: end;
}
.c-hero__feature-caption .eyebrow { grid-column: 1 / -1; margin: 0; color: var(--gold-400); font-size: 10.5px; }
.c-hero__feature-caption h4 {
  margin: 2px 0 0;
  font-size: 20px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--gold-100);
  line-height: 1.2;
}
.c-hero__feature-caption p {
  margin: 0;
  grid-column: 1 / -1;
  color: rgba(255, 250, 239, 0.78);
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-style: italic; font-size: 13px; letter-spacing: 0.02em;
  line-height: 1.45;
}
.c-hero__feature-price {
  grid-row: 2; grid-column: 2;
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: 24px; letter-spacing: 0.02em; color: var(--gold-100);
  white-space: nowrap;
  align-self: center;
}
.c-hero__feature-price sup { font-size: 11px; top: -.7em; margin-right: 2px; color: var(--gold-300); }

/* ---- Category band ---- */
.c-catband {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 32px 0 4px;
  padding-bottom: 4px;
}
.c-cat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  background: rgba(42, 8, 16, 0.42);
  color: var(--gold-200);
  font-size: 13px; letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.c-cat small {
  font-family: var(--font-display, "Cormorant Garamond", serif);
  color: var(--gold-500);
  font-size: 13px;
}
.c-cat:hover { color: var(--gold-100); border-color: var(--gold-400); }
.c-cat.is-active {
  background: var(--gold-100);
  color: #2a0810;
  border-color: var(--gold-100);
}
.c-cat.is-active small { color: rgba(42, 8, 16, 0.65); }

/* ---- Sort control ---- */
.c-sort {
  display: inline-flex; gap: 0;
  border: 1px solid var(--line-2);
  padding: 3px;
  background: rgba(42, 8, 16, 0.42);
  flex-shrink: 0;
}
.c-sort button {
  background: transparent;
  border: 0;
  color: var(--gold-400);
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
  white-space: nowrap;
}
.c-sort button:hover { color: var(--gold-100); }
.c-sort button.is-active {
  background: var(--gold-200);
  color: #2a0810;
}

/* ---- Customer card swatches ---- */
.c-card__swatches { display: flex; gap: 5px; margin-top: 10px; }
.c-swatch-dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

/* ---- Empty state (compact, refined) ---- */
.c-empty {
  margin: 28px auto 20px;
  text-align: center;
  padding: 0;
  border: 0;
  color: var(--gold-400);
  width: fit-content;
  max-width: 380px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  justify-content: center;
  justify-items: start;
}
.c-empty__icon {
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 24px; height: 24px;
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  color: var(--gold-300);
  opacity: 0.85;
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-en, serif);
}
.c-empty strong {
  grid-row: 1;
  grid-column: 2;
  color: var(--gold-100);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  font-weight: 500;
  line-height: 1.4;
}
.c-empty span {
  grid-row: 2;
  grid-column: 2;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.75;
}

/* Mobile: slightly tighter */
@media (max-width: 720px) {
  .c-empty { margin: 20px auto 12px; max-width: 320px; column-gap: 8px; }
  .c-empty strong { font-size: 13px; }
  .c-empty span { font-size: 11.5px; }
  .c-empty__icon { width: 22px; height: 22px; font-size: 11px; }
}

/* ---- Footer strip ---- */
.c-footstrip {
  margin-top: 56px;
  padding: 44px 0 56px;
  border-top: 1px solid var(--line-1);
  background: radial-gradient(500px 260px at 20% 0%, rgba(201, 169, 110, 0.08), transparent 60%);
}
.c-footstrip__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 44px;
  align-items: start;
}
.c-footstrip--brand-only .c-footstrip__inner {
  grid-template-columns: 1fr;
}
.c-pager {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin: 36px 0 0; flex-wrap: wrap;
}
.c-pager__btn, .c-pager__num {
  min-width: 36px; height: 36px; padding: 0 12px;
  background: transparent; color: var(--gold-200);
  border: 1px solid var(--line-2); border-radius: 2px;
  font-size: 13px; font-family: var(--font-cn); letter-spacing: 0.04em;
  cursor: pointer; transition: border-color .18s, color .18s, background .18s;
}
.c-pager__btn:hover:not([disabled]),
.c-pager__num:hover { border-color: var(--gold-500); color: var(--gold-100); }
.c-pager__num.is-active {
  background: var(--gold-500); color: #2a0a14; border-color: var(--gold-500); font-weight: 500;
}
.c-pager__btn[disabled] { opacity: .4; cursor: not-allowed; }
@media (max-width: 720px) { .c-pager { display: none; } }

/* Customer feedback */
.c-feedback { padding: 48px 0 0; }
.c-feedback__inner {
  border-top: 1px solid var(--line-1);
  padding-top: 48px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.c-feedback__lead {
  color: var(--gold-100); font-size: 22px; font-family: var(--font-cn);
  letter-spacing: 0.06em; margin: 0;
}
.c-feedback__thanks { color: var(--gold-200); font-size: 14px; margin: 0; }
@media (max-width: 720px) {
  .c-feedback { padding-top: 36px; }
  .c-feedback__inner { padding-top: 32px; gap: 16px; }
  .c-feedback__lead { font-size: 18px; }
}

/* Feedback modal */
.fb-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.fb-modal[hidden] { display: none; }
.fb-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(12, 4, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .28s ease;
}
.fb-modal__card {
  position: relative;
  width: 100%; max-width: 520px;
  background: linear-gradient(180deg, rgba(58, 12, 24, 0.98), rgba(42, 8, 16, 0.98));
  border: 1px solid var(--line-3);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,169,110,0.08) inset;
  padding: 36px 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity .32s cubic-bezier(.2,.7,.2,1), transform .32s cubic-bezier(.2,.7,.2,1);
  border-radius: 2px;
}
.fb-modal.is-open .fb-modal__backdrop { opacity: 1; }
.fb-modal.is-open .fb-modal__card { opacity: 1; transform: translateY(0) scale(1); }
.fb-modal__close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px;
  background: transparent; border: 0; color: var(--gold-400);
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: color .18s, transform .18s;
}
.fb-modal__close:hover { color: var(--gold-100); transform: rotate(90deg); }
.fb-modal__eyebrow {
  color: var(--gold-500); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; margin: 0;
}
.fb-modal__title {
  color: var(--gold-100); font-family: var(--font-cn);
  font-size: 22px; letter-spacing: 0.06em; margin: 0;
}
.fb-modal__sub { color: var(--gold-400); font-size: 13px; margin: 0 0 4px; line-height: 1.7; }
.fb-modal__card textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(20, 4, 10, 0.6);
  border: 1px solid var(--line-2); color: var(--gold-100);
  font-family: var(--font-cn); font-size: 14px; line-height: 1.75;
  outline: none; resize: vertical; min-height: 130px;
  transition: border-color .18s, background .18s;
  border-radius: 2px;
}
.fb-modal__card textarea:focus {
  border-color: var(--gold-500);
  background: rgba(20, 4, 10, 0.85);
}
.fb-modal__card textarea::placeholder { color: var(--gold-500); }
.fb-modal__row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 4px;
}
.fb-modal__hint { color: var(--gold-500); font-size: 12px; letter-spacing: 0.04em; }
.fb-modal__actions { display: flex; gap: 8px; }
.fb-modal__actions--center { justify-content: center; margin-top: 8px; }
.fb-modal__state { display: flex; flex-direction: column; gap: 14px; }
.fb-modal__state[hidden] { display: none; }
.fb-modal__state--done { align-items: center; text-align: center; padding: 8px 0 4px; }
.fb-modal__state--done .fb-modal__title { margin-top: 4px; }
.fb-modal__tick {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-100);
  background: radial-gradient(circle, rgba(201,169,110,0.18), rgba(201,169,110,0) 70%);
  animation: fb-tick-pop .42s cubic-bezier(.2,.7,.2,1.2) both;
}
.fb-modal__tick svg circle {
  stroke-dasharray: 158; stroke-dashoffset: 158;
  animation: fb-tick-ring .5s ease-out .1s forwards;
}
.fb-modal__tick svg path {
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: fb-tick-check .34s ease-out .42s forwards;
}
@keyframes fb-tick-pop {
  0% { opacity: 0; transform: scale(.5); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes fb-tick-ring { to { stroke-dashoffset: 0; } }
@keyframes fb-tick-check { to { stroke-dashoffset: 0; } }
@media (max-width: 720px) {
  .fb-modal { padding: 16px; }
  .fb-modal__card { padding: 28px 20px 22px; }
  .fb-modal__title { font-size: 18px; }
  .fb-modal__row { flex-wrap: wrap; gap: 10px; }
  .fb-modal__actions { width: 100%; justify-content: flex-end; }
}
.c-footstrip__inner > div:first-child .serif-en {
  display: block;
  font-size: 26px;
  color: var(--gold-100);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.c-footstrip__inner > div:first-child p {
  margin: 0; color: var(--gold-400); font-size: 13px; letter-spacing: 0.04em;
}
.c-footstrip__cols {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding-top: 10px;
}
.c-footstrip__cols > div {
  max-width: 360px;
}
.c-footstrip__cols h5 {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-cn);
  font-size: 14px; letter-spacing: 0.12em; text-transform: none; font-weight: 500;
}
.c-footstrip__cols p {
  margin: 0; color: var(--gold-400); font-size: 12.5px; line-height: 1.7;
}
.c-footstrip__wrap {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

/* ============================================================
   Customer view — Tablet (≤ 1024)
   ============================================================ */
@media (max-width: 1024px) {
  .c-hero { padding: 44px 0 36px; }
  .c-hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; }
  .c-hero__feature { aspect-ratio: 4 / 5; }
  .c-hero__meta { gap: 20px 28px; }
  .c-hero__meta strong { font-size: 22px; }
}

/* ============================================================
   Customer view — Mobile (≤ 720)
   ============================================================ */
@media (max-width: 720px) {
  .c-hero { padding: 28px 0 24px; }
  .c-hero__inner { grid-template-columns: 1fr; gap: 22px; }
  .c-hero__title { font-size: clamp(26px, 7vw, 34px); line-height: 1.18; }
  .c-hero__title .script { font-size: 0.55em; }
  .c-hero__lede { font-size: 14px; margin: 16px 0 18px; }
  .c-hero__cta-row .cta { flex: 1 1 calc(50% - 5px); text-align: center; justify-content: center; padding-left: 10px; padding-right: 10px; }

  /* Meta: compact 3-column row on mobile */
  .c-hero__meta {
    margin-top: 22px; padding-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .c-hero__meta strong { font-size: 20px; }
  .c-hero__meta span { font-size: 9.5px; letter-spacing: 0.16em; }

  /* Feature card: shorter aspect on mobile so it doesn't dominate */
  .c-hero__feature { aspect-ratio: 4 / 4.2; }
  .c-hero__feature-caption { left: 14px; right: 14px; bottom: 14px; padding: 12px 14px; }
  .c-hero__feature-caption h4 { font-size: 17px; }
  .c-hero__feature-caption p { font-size: 12px; }
  .c-hero__feature-price { font-size: 20px; }

  .c-catband { margin: 24px 0 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .c-catband::-webkit-scrollbar { display: none; }
  .c-cat { flex: 0 0 auto; padding: 7px 12px; font-size: 12.5px; }

  .c-sort { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .c-sort button { padding: 6px 10px; font-size: 11.5px; }

  .c-footstrip { margin-top: 40px; padding: 32px 0 40px; }
  .c-footstrip__inner { gap: 20px; }

  /* Product grid: 2-up on mobile */
  #customerView .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  #customerView .p-card__media { aspect-ratio: 3 / 4; }
  #customerView .p-card__name { font-size: 14px; }
  #customerView .p-card__sku { font-size: 11px; }
  #customerView .p-card__price { font-size: 14px; }
  #customerView .c-swatch-dot { width: 10px; height: 10px; }
}

/* Tiny screens */
@media (max-width: 380px) {
  .c-hero__cta-row .cta { flex: 1 1 100%; }
}

/* Preview embed (iframe) — hide debug chrome so customer page looks final */
body.is-preview-embed .view-switcher,
body.is-preview-embed .viewer-pop,
body.is-preview-embed #toggleTweaks,
body.is-preview-embed #tweaks-panel,
body.is-public .view-switcher,
body.is-public .viewer-pop,
body.is-public #toggleTweaks,
body.is-public #tweaks-panel { display: none !important; }
body.is-preview-embed .header-right,
body.is-public .header-right { gap: 0; }

/* Customer view: retarget global search to feel like a shop search, hide the duplicate in-page one */
body[data-view="customer"] .top-search__kbd { display: none; }
body[data-view="customer"] #cSearch { display: none; }
body[data-view="employee"] .top-search { display: none; }
body[data-view="admin"] .top-search { display: none; }

/* ============================================================
   Customer announcement modal
   ============================================================ */
.announce {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: announce-fade-in 220ms ease-out;
}
.announce[hidden] { display: none; }
.announce__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 2, 6, 0.72);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.announce__card {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background:
    radial-gradient(400px 260px at 90% -10%, rgba(201, 169, 110, 0.18), transparent 60%),
    linear-gradient(180deg, #301018 0%, #1f070f 100%);
  color: var(--gold-100);
  border: 1px solid rgba(201, 169, 110, 0.35);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0,0,0,.2);
  animation: announce-card-in 320ms cubic-bezier(.2,.8,.2,1);
}
.announce__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 32px; height: 32px;
  background: rgba(21, 4, 10, 0.8);
  border: 1px solid rgba(201, 169, 110, 0.35);
  color: var(--gold-200);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.announce__close:hover { color: var(--gold-100); border-color: var(--gold-300); background: rgba(42, 8, 16, 0.9); }

.announce__media {
  aspect-ratio: 16 / 9;
  background: var(--wine-0, #2a0810);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
}
.announce__media-inner {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.announce__body {
  padding: 32px 34px 28px;
}
.announce__eyebrow {
  margin: 0 0 10px;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.announce__eyebrow:empty { display: none; }
.announce__title {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-100);
  line-height: 1.25;
  text-wrap: balance;
}
.announce__text {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gold-300);
}
.announce__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.announce__actions .cta { min-height: 42px; }

/* Mobile */
@media (max-width: 560px) {
  .announce { padding: 16px; align-items: flex-end; }
  .announce__card { max-height: calc(100vh - 32px); }
  .announce__body { padding: 24px 22px 22px; }
  .announce__title { font-size: 21px; }
  .announce__text { font-size: 13.5px; }
  .announce__actions .cta { flex: 1 1 calc(50% - 5px); justify-content: center; }
}

@keyframes announce-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes announce-card-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* Preview embed: let the announcement show so we can preview the real customer flow.
   (It's dismissible via the close button and the localStorage key.) */

/* ============================================================
   Customer: Brand promises band (replaces the old tiny meta)
   ============================================================ */
.c-promises {
  position: relative;
  padding: 56px 0;
  background:
    linear-gradient(180deg, rgba(201, 169, 110, 0.04), transparent 60%),
    radial-gradient(600px 320px at 30% 50%, rgba(201, 169, 110, 0.05), transparent 60%);
  border-bottom: 1px solid var(--line-1);
}
.c-promises__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr);
  gap: 56px;
  align-items: start;
}
.c-promises__head .eyebrow {
  margin: 0 0 14px;
  color: var(--gold-400);
}
.c-promises__head h3 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--gold-100);
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-wrap: balance;
}
.c-promises__head h3::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold-300);
  margin-top: 20px;
  opacity: 0.6;
}
.c-promises__list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.c-promise {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 26px 28px;
  border-right: 1px solid var(--line-2);
  position: relative;
}
.c-promise:last-child { border-right: 0; }
.c-promise__num {
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-style: italic;
  font-size: 38px;
  line-height: 1;
  color: var(--gold-400);
  letter-spacing: 0.02em;
  align-self: start;
  padding-top: 4px;
}
.c-promise__body { min-width: 0; }
.c-promise__body strong {
  display: block;
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--gold-100);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.c-promise__body strong em {
  font-style: normal;
  font-size: 0.62em;
  margin-left: 2px;
  color: var(--gold-300);
  letter-spacing: 0.02em;
  font-weight: 400;
}
.c-promise__label {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.c-promise__body p {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--gold-400);
}

/* Tablet */
@media (max-width: 1024px) {
  .c-promises { padding: 40px 0; }
  .c-promises__inner { grid-template-columns: 1fr; gap: 28px; }
  .c-promise { padding: 22px 20px; gap: 16px; }
  .c-promise__num { font-size: 32px; }
  .c-promise__body strong { font-size: 28px; }
}

/* Mobile — 3 promises stack into a vertical list with horizontal rules */
@media (max-width: 720px) {
  .c-promises { padding: 32px 0; }
  .c-promises__inner { gap: 20px; }
  .c-promises__head h3 { font-size: 19px; }
  .c-promises__head h3::after { margin-top: 14px; }
  .c-promises__list {
    grid-template-columns: 1fr;
  }
  .c-promise {
    border-right: 0;
    border-bottom: 1px solid var(--line-2);
    padding: 18px 4px;
    gap: 18px;
  }
  .c-promise:last-child { border-bottom: 0; }
  .c-promise__num { font-size: 26px; padding-top: 2px; }
  .c-promise__body strong { font-size: 22px; }
  .c-promise__body p { margin-top: 8px; font-size: 12px; }
}

/* ============================================================
   Customer hero — mobile copy slimming + 近期活动 button
   ============================================================ */

/* Default: show full lede, hide short one */
.c-hero__lede--short { display: none; }

/* Announce CTA — subtle outlined with pulsing dot */
.cta--announce {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
}
.cta--announce__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.55);
  animation: announce-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes announce-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(201, 169, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0); }
}

/* Title line helpers — display:block so two lines show without <br/> on desktop */
.c-hero__title-line { display: block; }

/* ---- Mobile ≤720: slim the hero copy ---- */
@media (max-width: 720px) {
  /* Hide the entire "Our Promises" section on mobile — redundant with meta strip */
  .c-promises { display: none; }

  /* Hide eyebrow, script subtitle, and desktop-only CTA */
  .c-hero__eyebrow { display: none; }
  .c-hero__title .script { display: none; }
  .cta--hide-mobile { display: none; }

  /* Swap lede: full hidden, short shown */
  .c-hero__lede--full { display: none; }
  .c-hero__lede--short { display: block; }

  /* Tighter title */
  .c-hero__title { font-size: clamp(24px, 6.5vw, 30px); line-height: 1.25; margin: 0; }
  .c-hero__lede { font-size: 13.5px; margin: 12px 0 16px; line-height: 1.7; }

  /* CTA row: primary + announce stacked nicely */
  .c-hero__cta-row { gap: 8px; flex-wrap: wrap; }
  .c-hero__cta-row .cta { flex: 1 1 calc(50% - 4px); justify-content: center; padding: 10px 12px; font-size: 13px; }
  /* If only one CTA visible (announce disabled), let it take full width */
  .c-hero__cta-row .cta:only-child { flex-basis: 100%; }
}

/* Mobile: tighter footer contact info on the right */
@media (max-width: 720px) {
  .c-footstrip__cols { padding-top: 0; }
  .c-footstrip__cols > div { max-width: 100%; }
}

/* ============================================================
   Mobile header — compact defaults + scroll-driven scale
   ============================================================ */
@media (max-width: 720px) {
  /* Shrink header padding + brand block on mobile */
  .site-header__inner { padding: 8px 0 !important; gap: 10px; }
  .brand { gap: 6px; transform-origin: left center; transition: transform 0.25s ease-out; }
  .brand__logo { width: 56px !important; height: 56px !important; }
  .brand__name { font-size: 13px !important; letter-spacing: 0.18em; }
  .brand__tag  { font-size: 11px !important; margin-top: 2px; }

  /* Scroll-driven scale — JS sets --hdr-scale on :root from 0.92 (top) to 1.08 (scrolled) */
  .brand { transform: scale(var(--hdr-scale, 0.92)); }
}

/* ============================================================
   Customer hero — 3 animated chips (选材 / 鞋楦 / 上脚)
   Thin gold strokes on wine backdrop, matching editorial aesthetic.
   ============================================================ */
.c-hero__chips {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  max-width: 520px;
}
.c-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  background: transparent;
}
.c-chip__art {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.c-chip__art svg {
  width: 100%;
  height: 100%;
  stroke: var(--gold-300, #c9a96e);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  overflow: visible;
}
.c-chip__label {
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--gold-200, #e0c896);
  font-weight: 500;
}

/* ---- 选材: frame + 3 material patterns cross-fading ---- */
.c-chip__frame {
  stroke: var(--gold-400, #b89368);
  stroke-opacity: 0.55;
}
.c-chip__material > * {
  animation: chipMatCycle 6s ease-in-out infinite;
  opacity: 0;
}
.c-chip__mat--a { animation-delay: 0s; }
.c-chip__mat--b { animation-delay: -4s; fill: var(--gold-300, #c9a96e); stroke: none; }
.c-chip__mat--c { animation-delay: -2s; }
@keyframes chipMatCycle {
  0%, 8%   { opacity: 0; }
  15%, 30% { opacity: 0.9; }
  38%, 100%{ opacity: 0; }
}

/* ---- 鞋楦: silhouette draw-on, gentle pulse, two pins fading ---- */
.c-chip__last {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: chipLastDraw 5s ease-in-out infinite;
}
.c-chip__lastline {
  stroke-opacity: 0.35;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: chipLastLine 5s ease-in-out infinite;
}
.c-chip__lastpin {
  fill: var(--gold-300, #c9a96e);
  stroke: none;
  opacity: 0;
  animation: chipLastPin 5s ease-in-out infinite;
}
.c-chip__lastpin--2 { animation-delay: 0.5s; }
@keyframes chipLastDraw {
  0%   { stroke-dashoffset: 220; }
  40%  { stroke-dashoffset: 0; }
  85%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes chipLastLine {
  0%   { stroke-dashoffset: 60; }
  55%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@keyframes chipLastPin {
  0%, 50% { opacity: 0; }
  65%     { opacity: 1; }
  95%     { opacity: 1; }
  100%    { opacity: 0; }
}

/* ---- 上脚: trail draws, then 3 steps fade in one after another ---- */
.c-chip__trail {
  stroke-opacity: 0.4;
  stroke-dasharray: 5 4;
  stroke-dashoffset: 0;
  animation: chipTrail 4.5s linear infinite;
}
.c-chip__step {
  opacity: 0;
  fill: var(--gold-300, #c9a96e);
  fill-opacity: 0.15;
  stroke: var(--gold-300, #c9a96e);
  transform-origin: center;
  animation: chipStep 4.5s ease-in-out infinite;
}
.c-chip__step--1 { animation-delay: 0.2s; }
.c-chip__step--2 { animation-delay: 1.0s; }
.c-chip__step--3 { animation-delay: 1.8s; }
@keyframes chipTrail {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -18; }
}
@keyframes chipStep {
  0%, 10%   { opacity: 0; transform: scale(0.7); }
  20%, 55%  { opacity: 1; transform: scale(1); }
  75%, 100% { opacity: 0; transform: scale(1); }
}

/* Mobile: tighter chips row */
@media (max-width: 720px) {
  .c-hero__chips { margin: 14px 0 18px; column-gap: 18px; }
  .c-chip__art { width: 44px; height: 44px; }
  .c-chip__label { font-size: 11px; letter-spacing: 0.18em; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .c-chip__material > *,
  .c-chip__last, .c-chip__lastline, .c-chip__lastpin,
  .c-chip__trail, .c-chip__step { animation: none; }
  .c-chip__material > * { opacity: 0.7; }
  .c-chip__last { stroke-dashoffset: 0; }
  .c-chip__lastline { stroke-dashoffset: 0; }
  .c-chip__lastpin { opacity: 1; }
  .c-chip__step { opacity: 1; }
}
