:root {
  --bg: #f5f1e8;
  --bg-deep: #eee8dc;
  --surface: #fffdf8;
  --surface-soft: #fbf7ef;
  --ink: #1d211d;
  --ink-soft: #4c4f48;
  --muted: #79736a;
  --faint: #a09a8e;
  --line: rgba(32, 45, 36, 0.1);
  --line-strong: rgba(32, 45, 36, 0.18);
  --pine: #22372e;
  --pine-deep: #172a21;
  --pine-soft: #33493e;
  --brass: #b08b57;
  --brass-deep: #8a663a;
  --brass-soft: #eadcc4;
  --sage: #dfe5da;
  --clay: #b86b4e;
  --success: #4d7a5e;
  --shadow: 0 18px 48px rgba(35, 48, 39, 0.08);
  --shadow-soft: 0 10px 28px rgba(35, 48, 39, 0.05);
  --radius: 22px;
  --radius-sm: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  background: #e9e2d4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

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

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

::selection {
  background: rgba(176, 139, 87, 0.26);
}

.serif {
  font-family: var(--serif);
}

.eyebrow {
  display: block;
  color: var(--brass-deep);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow.light {
  color: rgba(234, 220, 196, 0.68);
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: none;
  vertical-align: -0.125em;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(32, 45, 36, 0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hairline {
  height: 1px;
  background: var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.985);
  opacity: 0.9;
}

.btn-primary {
  background: var(--pine);
  color: #fbf8f1;
  box-shadow: 0 12px 24px rgba(34, 55, 46, 0.18);
}

.btn-brass {
  background: linear-gradient(135deg, #d1b17d, #b08b57 58%, #9c7745);
  color: #281f12;
}

.btn-ghost {
  border: 1px solid rgba(34, 55, 46, 0.22);
  color: var(--pine);
  background: transparent;
}

.btn-soft {
  background: var(--bg-deep);
  color: var(--pine);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 12px;
}

.btn-xs {
  height: 30px;
  padding: 0 13px;
  font-size: 11px;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn.disabled {
  background: #c7ccc4;
  color: #f7f5ef;
  box-shadow: none;
  cursor: not-allowed;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}

.chip.active {
  background: var(--pine);
  border-color: var(--pine);
  color: #fbf8f1;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  background: rgba(234, 220, 196, 0.46);
  color: var(--brass-deep);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1;
}

.tag-sage {
  background: rgba(223, 229, 218, 0.72);
  color: #4c6152;
}

.stars {
  position: relative;
  display: inline-block;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  height: 1em;
  font-family: "Times New Roman", var(--serif), serif;
}

.stars-track {
  color: #d8d1c3;
}

.stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: var(--brass);
  white-space: nowrap;
}

.price {
  font-family: "Didot", "Bodoni 72", var(--serif);
  letter-spacing: -0.02em;
}

.price .unit {
  font-size: 0.55em;
  margin-right: 1px;
}

.scroll-x {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.scroll-x::-webkit-scrollbar {
  display: none;
}

.field {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #f6f1e7;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field:focus {
  outline: none;
  border-color: rgba(176, 139, 87, 0.5);
  background: #fffdf8;
}

.textarea {
  width: 100%;
  min-height: 96px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: #f6f1e7;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.textarea:focus {
  outline: none;
  border-color: rgba(176, 139, 87, 0.5);
  background: #fffdf8;
}

.placeholder::placeholder {
  color: #aaa294;
}

.hidden {
  display: none !important;
}

.press {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.press:active {
  transform: scale(0.988);
  opacity: 0.88;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brass-deep);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brass);
  display: inline-block;
  flex: none;
}

.empty {
  padding: 46px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.empty-seal {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(176, 139, 87, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--brass-deep);
  font-family: var(--serif);
  font-size: 26px;
}

.empty-seal::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(176, 139, 87, 0.26);
}

.empty-title {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.empty-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.empty-action {
  margin-top: 18px;
}

.footer-note {
  padding: 30px 20px 18px;
  text-align: center;
  color: #9d9689;
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.9;
}

.mask {
  position: absolute;
  inset: 0;
  background: rgba(18, 25, 21, 0.5);
  backdrop-filter: blur(2px);
  z-index: 60;
  animation: fade-in 0.24s ease both;
}

/* Shared admin bits */
.admin-body {
  background: var(--bg);
}

.admin-card {
  background: var(--surface);
  border: 1px solid rgba(32, 45, 36, 0.06);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(35, 48, 39, 0.04);
}

.admin-eyebrow {
  display: block;
  color: #a28a63;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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