/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --bg: #f6f1ea;
  --bg-soft: #fbf7f1;
  --surface: #ffffff;
  --ink: #1f1b16;
  --ink-soft: #5a5147;
  --ink-mute: #8c8377;
  --line: #e7dccf;
  --line-soft: #efe6d8;
  --accent: #b08855;
  --accent-ink: #6f5232;
  --accent-soft: #f0e3d0;
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, 0.04), 0 2px 8px rgba(60, 40, 20, 0.04);
  --shadow-md: 0 4px 16px rgba(60, 40, 20, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ─── Base ───────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Topbar ─────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 241, 234, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand__mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, #d6a978 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tg-link:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}
.tg-link--top svg { color: var(--accent); }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  padding: 64px 24px 32px;
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 14px;
  font-weight: 500;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.hero__lead {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.5vw, 17px);
  max-width: 580px;
  margin: 0 auto;
}

/* ─── Chips (category nav) ───────────────────────────── */
.chips {
  position: sticky;
  top: 60px;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 24px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.chip__count {
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.6;
  font-weight: 400;
}

/* ─── Catalog ────────────────────────────────────────── */
.catalog {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.category {
  scroll-margin-top: 120px;
  margin: 48px 0 0;
}
.category:first-child { margin-top: 0; }
.category__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.category__title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.005em;
}
.category__count {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__media {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(176, 136, 85, 0.06), rgba(176, 136, 85, 0.02)),
    var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.card__media-text { opacity: 0.55; }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.card__desc {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.45;
  margin: 0;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.card__price {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.card__price-cur {
  font-size: 16px;
  color: var(--ink-mute);
  margin-left: 3px;
}
.card__status {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.card__status--in {
  background: rgba(70, 130, 60, 0.10);
  color: #4a7038;
}
.card__status--out {
  background: rgba(140, 90, 40, 0.10);
  color: #8a5e2f;
}

/* ─── CTA section ────────────────────────────────────── */
.cta {
  padding: 60px 24px;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.cta__inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.cta__title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 600;
  margin: 0 0 14px;
}
.cta__text {
  color: var(--ink-soft);
  margin: 0 0 26px;
  font-size: 15px;
}
.cta__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta__button:hover {
  background: var(--accent-ink);
  transform: translateY(-1px);
}

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--ink-mute);
  font-size: 13px;
}
.footer__line { margin: 4px 0; }
.footer__line--muted { font-size: 12px; opacity: 0.75; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  .topbar__inner { padding: 12px 16px; }
  .brand { font-size: 19px; }
  .tg-link span { display: none; }
  .tg-link { padding: 8px 10px; }
  .hero { padding: 44px 20px 20px; }
  .chips { top: 56px; padding: 12px 16px; }
  .catalog { padding: 24px 16px 60px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card { padding: 14px; gap: 10px; }
  .card__title { font-size: 18px; }
  .card__price { font-size: 20px; }
  .card__media { aspect-ratio: 1 / 1; }
  .cta { padding: 44px 20px; }
}
