:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --ink: #1b1f1c;
  --muted: #6f756e;
  --line: #e5dcce;
  --brand: #b8342a;
  --brand-dark: #8f251d;
  --gold: #a9853f;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(40, 30, 20, 0.07);
  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { border-radius: 11px; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font-size: 17px; letter-spacing: 0.02em; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: 0.06em; }

.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav a:hover, .nav a.on { color: var(--ink); border-color: var(--brand); }

.search { margin-left: auto; display: flex; align-items: center; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 16px; width: 280px; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink); min-width: 0; }
.search input::placeholder { color: #a8a49b; }
.search button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 7px 15px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.search button:hover { background: var(--brand); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }

.eyebrow { display: inline-block; font-size: 11px; letter-spacing: 0.22em; color: var(--gold); font-weight: 700; margin-bottom: 14px; }

.hero h1 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.02em; }
.hero-copy > p { color: var(--muted); font-size: 16px; max-width: 480px; margin: 20px 0 28px; }

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

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 26px; font-size: 14px; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s, background 0.18s; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(184, 52, 42, 0.26); }
.btn.primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn.ghost { border-color: var(--line); background: #fff; }
.btn.ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.hero-points { display: flex; gap: 36px; margin: 40px 0 0; padding: 0; list-style: none; }
.hero-points strong { display: block; font-family: var(--serif); font-size: 26px; }
.hero-points span { color: var(--muted); font-size: 12.5px; }

.hero-collage { position: relative; height: 420px; }
.collage-item { position: absolute; width: 62%; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #fff; transition: transform 0.3s; }
.collage-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.collage-item span { position: absolute; left: 14px; bottom: 12px; background: rgba(27, 31, 28, 0.82); color: #fff; font-size: 12px; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.collage-item:nth-child(1) { top: 0; left: 0; transform: rotate(-4deg); }
.collage-item:nth-child(2) { bottom: 0; right: 0; transform: rotate(4deg); z-index: 2; }
.collage-item:hover { transform: rotate(0) translateY(-6px); z-index: 3; }

/* ---------- sections ---------- */
.section { padding: 54px 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-size: 30px; }
.more { color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.more:hover { color: var(--brand); border-color: var(--brand); }

.cat-rail { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-rail a { display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 600; transition: all 0.2s; }
.cat-rail a span { background: #f0e9dc; color: var(--muted); font-size: 11px; border-radius: 999px; padding: 1px 8px; }
.cat-rail a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.cat-rail a:hover span { background: #f8e6e2; color: var(--brand); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { background: #efe9dd; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 11px; color: var(--gold); letter-spacing: 0.1em; font-weight: 700; }
.card h3 { font-size: 17px; margin: 7px 0 6px; }
.card-sub { margin: 0 0 14px; color: var(--muted); font-size: 13px; flex: 1; }
.card-foot { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.price { color: var(--brand); font-weight: 800; font-size: 20px; font-family: var(--serif); }
.price i { font-style: normal; font-size: 13px; margin-right: 2px; }
.was { color: #a8a49b; font-size: 12px; text-decoration: line-through; }
.off { font-size: 10.5px; font-weight: 800; color: var(--brand); background: #f8e6e2; border-radius: 5px; padding: 2px 7px; letter-spacing: 0.04em; }

/* ---------- philosophy ---------- */
.philosophy { background: var(--ink); color: #f3eee4; padding: 68px 0; margin-top: 30px; }
.philosophy .eyebrow { color: #c9a45f; }
.philosophy .section-head h2 { color: #fff; }
.philo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.philo-grid article span { font-family: var(--serif); font-size: 13px; color: #c9a45f; letter-spacing: 0.16em; }
.philo-grid article h3 { margin: 12px 0 10px; font-size: 20px; color: #fff; }
.philo-grid article p { margin: 0; color: rgba(243, 238, 228, 0.62); font-size: 13.5px; }

/* ---------- page head ---------- */
.page-head { padding: 44px 24px 8px; }
.crumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12.5px; margin-bottom: 16px; }
.crumb a:hover { color: var(--brand); }
.crumb em { font-style: normal; color: var(--ink); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.page-head > p { color: var(--muted); margin: 10px 0 0; font-size: 14px; }

/* ---------- detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 28px; padding-bottom: 30px; }
.detail-main { border-radius: 22px; overflow: hidden; background: #efe9dd; box-shadow: var(--shadow); }
.detail-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.detail-thumbs img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color 0.2s; }
.detail-thumbs img:hover { border-color: var(--brand); }

.detail-info h1 { font-size: clamp(26px, 3vw, 36px); margin: 8px 0 10px; }
.detail-sub { color: var(--muted); margin: 0 0 22px; font-size: 15px; }

.price-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.price-box > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.price-box .label { font-size: 12px; color: var(--muted); }
.price.big { font-size: 40px; }
.price-meta { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.price-note { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); }

.highlights { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 9px; }
.highlights li { position: relative; padding-left: 22px; font-size: 14px; }
.highlights li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 0 0 24px; }
.specs > div { background: var(--surface); padding: 12px 15px; }
.specs dt { font-size: 11.5px; color: var(--muted); }
.specs dd { margin: 3px 0 0; font-size: 13.5px; font-weight: 600; }

.buy { width: 100%; font-size: 15px; padding: 15px; }
.shop-line { text-align: center; color: var(--muted); font-size: 12px; margin: 12px 0 0; }

.prose { color: #3c423c; font-size: 15px; max-width: 760px; }
.prose h2 { font-size: 22px; margin: 28px 0 10px; }
.narrow { max-width: 780px; }

/* ---------- empty / 404 ---------- */
.empty { text-align: center; padding: 60px 24px 90px; }
.empty h1, .empty h2 { font-size: 30px; margin-bottom: 12px; }
.empty p { color: var(--muted); margin: 0 0 24px; }

/* ---------- footer ---------- */
.site-footer { background: #171b18; color: rgba(243, 238, 228, 0.72); margin-top: 40px; padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer-brand strong { font-family: var(--serif); font-size: 20px; color: #fff; }
.footer-brand p { margin: 12px 0 0; font-size: 13px; max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-meta { font-size: 12px; line-height: 1.9; }
.footer-meta p { margin: 0; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy, .hero-collage, .card, .philo-grid article, .detail-gallery, .detail-info { animation: rise 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.card:nth-child(5) { animation-delay: 0.2s; }
.card:nth-child(6) { animation-delay: 0.25s; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-collage { height: 340px; max-width: 520px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .philo-grid { grid-template-columns: 1fr; gap: 24px; }
  .detail { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
  .nav { order: 3; width: 100%; gap: 18px; }
  .search { width: 100%; margin-left: 0; order: 4; }
  .grid, .grid.three { grid-template-columns: 1fr; }
  .section { padding: 40px 20px; }
  .hero { padding: 40px 0 20px; }
  .hero-points { gap: 22px; }
  .specs { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .page-head { padding: 28px 20px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
