@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Noto+Sans+SC:wght@400;500;600&display=swap');

:root {
  --bg: #f4f2ef;
  --ink: #161916;
  --muted: #6e736f;
  --line: #e2ddd5;
  --panel: #fffcf8;
  --accent: #243f38;
  --gold: #9a7b4f;
  --font: "Noto Sans SC", "PingFang SC", sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(244, 242, 239, 0.88);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  font-family: var(--display);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav { display: flex; gap: 16px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.nav a:hover { color: var(--ink); }

.hero {
  max-width: 1120px; margin: 0 auto;
  padding: 36px 20px 20px;
}
.hero h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.hero p { margin: 0; color: var(--muted); max-width: 42ch; font-size: 14px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 8px 20px 56px; }

.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.filters a, .filters span {
  font-size: 12px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: #fff;
}
.filters a.active, .filters a:hover {
  border-color: var(--accent); color: var(--accent); background: #eef3f1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px 14px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 25, 22, 0.08);
}
.card-media {
  aspect-ratio: 4/5;
  background: #ece7e0;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 12px 12px 14px; }
.card-sku {
  font-size: 11px; letter-spacing: 0.08em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 4px;
}
.card-title {
  font-family: var(--display);
  font-size: 20px; font-weight: 600; line-height: 1.2; margin: 0 0 6px;
}
.card-meta { font-size: 12px; color: var(--muted); }
.card-price {
  margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent);
}

.empty {
  padding: 48px 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 10px; background: #fff;
}

.product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}
.gallery-main {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #ece7e0;
  aspect-ratio: 4/5;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button {
  width: 64px; height: 80px; padding: 0; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; cursor: pointer; background: #fff;
}
.thumbs button.active { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.p-sku { font-size: 12px; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; }
.p-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  margin: 6px 0 10px; font-weight: 600; line-height: 1.15;
}
.p-price { font-size: 18px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.specs {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 8px 12px; font-size: 13px;
  padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.p-desc { margin-top: 16px; color: var(--muted); font-size: 13px; white-space: pre-wrap; }
.back { display: inline-block; margin-bottom: 16px; font-size: 12px; color: var(--muted); }
.back:hover { color: var(--ink); }
.site-footer {
  max-width: 1120px; margin: 0 auto;
  padding: 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 18px; }
  .hero { padding-top: 24px; }
}
