:root {
  --ink: #1e2a24;
  --muted: #647068;
  --soft: #f6f2e8;
  --surface: #fffdf7;
  --sage: #7a9367;
  --forest: #244437;
  --petal: #d8909a;
  --citrus: #e7a84d;
  --clay: #b66b4d;
  --line: rgba(30, 42, 36, 0.14);
  --shadow: 0 24px 70px rgba(36, 68, 55, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.cart-open {
  overflow: hidden;
}

body.lang-zh h1,
body.lang-zh h2 {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-weight: 750;
  line-height: 1.12;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.skip-link {
  background: var(--forest);
  color: #fff;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -56px;
  z-index: 2000;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid rgba(231, 168, 77, 0.72);
  outline-offset: 3px;
}

.site-header {
  background: rgba(255, 253, 247, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.nav-shell {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 76px;
  padding: 0 24px;
}

.brand-mark {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 225px;
}

.brand-symbol {
  align-items: center;
  background: var(--forest);
  color: #fff;
  display: grid;
  flex: 0 0 44px;
  font-family: Georgia, serif;
  font-size: 28px;
  height: 44px;
  place-items: center;
  width: 44px;
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 26px;
}

.nav-links a {
  color: #33433a;
  font-size: 14px;
  font-weight: 650;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.nav-actions > * {
  flex: 0 0 auto;
}

.language-label {
  font-size: 0;
}

.nav-actions select,
.promo-row input,
.checkout-form input,
.checkout-form select,
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.nav-actions select {
  min-width: 132px;
  width: auto;
}

.cart-button,
.icon-button,
.nav-tool {
  align-items: center;
  background: var(--forest);
  border: 0;
  color: #fff;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  min-width: 44px;
}

.nav-tool {
  border: 1px solid var(--forest);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 750;
  min-width: 92px;
  padding: 0 14px;
  white-space: nowrap;
}

.nav-tool.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.cart-button {
  gap: 8px;
  padding: 0 13px;
}

.cart-button svg,
.icon-button svg,
.product-meta svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  min-height: calc(100dvh - 76px);
}

.hero-media {
  background:
    linear-gradient(135deg, rgba(122, 147, 103, 0.2), rgba(216, 144, 154, 0.18)),
    var(--soft);
  display: grid;
  min-height: 620px;
  overflow: hidden;
  place-items: center;
}

.hero-media img {
  height: min(72vh, 680px);
  object-fit: contain;
  width: min(80%, 620px);
}

.hero-copy {
  align-self: center;
  padding: 56px clamp(24px, 5vw, 72px);
}

.eyebrow {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  font-size: clamp(46px, 6vw, 82px);
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(34px, 4vw, 58px);
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-copy > p:not(.eyebrow),
.section-heading p,
.story-section > p,
.wholesale-section p {
  color: var(--muted);
  max-width: 660px;
}

.hero-actions,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.filter,
.product-card button,
.promo-row button {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.filter:hover,
.product-card button:hover,
.promo-row button:hover {
  transform: translateY(-1px);
}

.button.primary,
.product-card button,
.promo-row button {
  background: var(--forest);
  border: 1px solid var(--forest);
  color: #fff;
}

.button.secondary,
.filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.filter.active {
  background: #f1ead9;
  border-color: rgba(36, 68, 55, 0.32);
}

.trust-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin: 34px 0 0;
  padding-top: 24px;
}

.totals div {
  display: flex;
  justify-content: space-between;
}

.trust-row dt {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  white-space: nowrap;
}

.trust-row dd {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.category-band,
.shop-section,
.story-section,
.wholesale-section {
  margin: 0 auto;
  max-width: var(--max);
  padding: 88px 24px;
}

.category-band {
  align-items: start;
  display: grid;
  gap: 36px;
  grid-template-columns: 0.72fr 1.28fr;
}

.category-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.category-grid article,
.product-card,
.inquiry-form,
.cart-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.category-grid article {
  padding: 24px;
}

.category-grid span {
  color: var(--petal);
  display: block;
  font-weight: 800;
  margin-bottom: 24px;
}

.category-grid p,
.product-card p,
.ritual-list span,
.cart-empty,
.form-status,
.promo-row p {
  color: var(--muted);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 0.78fr;
  margin-bottom: 28px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-meta,
.product-notes {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta {
  color: var(--muted);
  font-size: 13px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.product-type {
  background: #f3eadf;
  border-radius: 999px;
  color: #65412f;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  padding: 4px 9px;
}

.product-card p {
  flex: 1;
  font-size: 14px;
  margin-bottom: 14px;
}

.product-notes {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 12px;
}

.product-notes span {
  background: #f6f2e8;
  border-radius: 999px;
  color: #405249;
  font-size: 12px;
  padding: 4px 8px;
}

.product-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 16px;
}

.price {
  font-size: 21px;
  font-weight: 850;
}

.product-card button {
  min-width: 112px;
}

.ritual-section {
  background: #20392f;
  color: #fff;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  padding: 76px max(24px, calc((100vw - var(--max)) / 2 + 24px));
}

.ritual-image img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
  object-fit: cover;
}

.ritual-copy {
  align-self: center;
}

.ritual-copy .eyebrow,
.ritual-copy p,
.ritual-list span {
  color: #d9dfd7;
}

.ritual-list {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.ritual-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  gap: 8px;
  padding-top: 18px;
}

.story-section {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: 0.9fr 1.1fr;
}

.values-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
}

.values-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #405249;
  padding: 10px 14px;
}

.wholesale-section {
  padding-top: 24px;
}

.inquiry-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px;
}

.inquiry-form label,
.checkout-form label,
.promo-row label {
  color: #405249;
  display: grid;
  font-size: 14px;
  font-weight: 750;
  gap: 7px;
}

.inquiry-form .full {
  grid-column: 1 / -1;
}

.inquiry-form button {
  justify-self: start;
}

.cart-drawer {
  background: rgba(20, 31, 26, 0.44);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 220ms ease;
  z-index: 100;
}

.cart-drawer[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel,
.workspace-panel {
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100dvh;
  margin-left: auto;
  max-width: 460px;
  padding: 22px;
  transform: translateX(24px);
  transition: transform 220ms ease;
  width: min(100%, 460px);
}

.cart-drawer[aria-hidden="false"] .cart-panel {
  transform: translateX(0);
}

.cart-header {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.cart-header h2 {
  font-size: 34px;
}

.icon-button {
  background: #f1ead9;
  color: var(--ink);
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 8px 0 18px;
  max-height: 34dvh;
  overflow: auto;
  padding-right: 4px;
}

.cart-line {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: 64px 1fr;
  padding: 10px;
}

.cart-line img {
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.cart-line h3 {
  font-size: 15px;
  margin: 0;
}

.cart-line p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.quantity-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 8px;
}

.quantity-controls {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.quantity-controls button {
  background: #f6f2e8;
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 32px;
  width: 32px;
}

.promo-row {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.promo-row div {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
}

.promo-row button {
  min-height: 44px;
}

.totals {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.totals div:last-child {
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 850;
  padding-top: 12px;
}

.checkout-form {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.checkout {
  width: 100%;
}

.workspace-drawer {
  background: rgba(20, 31, 26, 0.44);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 220ms ease;
  z-index: 110;
}

.workspace-drawer[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.workspace-panel {
  background: var(--surface);
  margin: 0;
  max-width: none;
  overflow: auto;
  padding: 26px;
  transform: translateY(16px);
  transition: transform 220ms ease;
  width: min(100%, 1060px);
}

.workspace-drawer[aria-hidden="false"] .workspace-panel {
  transform: translateY(0);
}

.account-panel {
  margin-left: auto;
}

.admin-panel {
  margin: 0 auto;
}

.account-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1fr);
}

.auth-column,
.auth-form,
.member-card,
.orders-section,
.ops-metrics article,
.ops-toolbar,
.ops-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 14px;
  padding: 20px;
}

.auth-column {
  overflow: hidden;
}

.auth-mode {
  background: #f6f2e8;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, 1fr);
  padding: 6px;
}

.auth-mode button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #405249;
  font-weight: 800;
  min-height: 42px;
}

.auth-mode button.active {
  background: #fff;
  box-shadow: 0 6px 18px rgba(36, 68, 55, 0.1);
  color: var(--forest);
}

.auth-form.hidden {
  display: none;
}

.helper-text {
  color: var(--muted);
  font-size: 13px;
  margin: -4px 0 0;
}

.auth-form label,
.ops-toolbar label {
  color: #405249;
  display: grid;
  font-size: 14px;
  font-weight: 750;
  gap: 7px;
}

.auth-form input,
.ops-toolbar select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.member-card {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr;
  padding: 20px;
}

.member-avatar {
  align-items: center;
  background: #20392f;
  border-radius: 50%;
  color: #fff;
  display: grid;
  font-size: 28px;
  font-weight: 850;
  height: 72px;
  place-items: center;
  width: 72px;
}

.member-card h3,
.orders-section h3 {
  font-size: 24px;
  margin-bottom: 2px;
}

.member-card p {
  color: var(--muted);
  margin: 0;
}

.metric-grid,
.ops-metrics {
  display: grid;
  gap: 12px;
}

.metric-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, 1fr);
}

.metric-grid article {
  background: #f6f2e8;
  border-radius: var(--radius);
  padding: 16px;
}

.metric-grid span,
.ops-metrics strong {
  display: block;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.1;
}

.metric-grid small,
.ops-metrics small {
  color: var(--muted);
  font-weight: 750;
}

.orders-section {
  margin-top: 18px;
  padding: 20px;
}

.panel-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.status-pill,
.order-status {
  background: #f1ead9;
  border-radius: 999px;
  color: #65412f;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  white-space: nowrap;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  padding: 14px;
}

.order-card h4 {
  font-size: 16px;
  margin: 0 0 5px;
}

.order-card p,
.order-card small {
  color: var(--muted);
  margin: 0;
}

.progress-track {
  background: #edf0ea;
  border-radius: 999px;
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
}

.progress-track span {
  background: var(--sage);
  display: block;
  height: 100%;
}

.ops-metrics {
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0;
}

.ops-metrics article {
  padding: 18px;
}

.ops-toolbar {
  margin-bottom: 14px;
  max-width: 260px;
  padding: 14px;
}

.ops-table-wrap {
  overflow-x: auto;
}

.ops-table {
  border-collapse: collapse;
  min-width: 820px;
  width: 100%;
}

.ops-table th,
.ops-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: middle;
}

.ops-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.ops-table button {
  background: #f6f2e8;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 750;
  min-height: 36px;
  padding: 7px 10px;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero-section,
  .category-band,
  .section-heading,
  .ritual-section,
  .story-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 0;
  }

  .hero-media {
    min-height: 420px;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .account-layout,
  .ops-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    gap: 12px;
    min-height: 68px;
    padding: 0 16px;
  }

  .brand-mark {
    min-width: 0;
  }

  .brand-mark > span:last-child {
    display: none;
  }

  .brand-mark small {
    display: none;
  }

  .nav-tool {
    font-size: 0;
    padding: 0;
    width: 44px;
  }

  .nav-tool::after {
    content: attr(data-short);
    font-size: 14px;
  }

  .brand-symbol {
    flex-basis: 40px;
    height: 40px;
    width: 40px;
  }

  .hero-copy,
  .category-band,
  .shop-section,
  .story-section,
  .wholesale-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-media {
    min-height: 340px;
  }

  .trust-row,
  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-wrap: nowrap;
    margin-inline: -18px;
    overflow-x: auto;
    padding: 0 18px 8px;
  }

  .filter {
    flex: 0 0 auto;
  }

  .ritual-section {
    padding: 54px 18px;
  }

  .workspace-panel {
    padding: 18px;
  }

  .account-layout,
  .metric-grid,
  .ops-metrics,
  .order-card {
    grid-template-columns: 1fr;
  }
}

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