:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #6b6459;
  --faint: #9a9288;
  --line: #e8e2d9;
  --line-strong: #d6cec2;
  --accent: #96754b;
  --accent-dark: #6f5537;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.18em;
  font-weight: 400;
  white-space: nowrap;
}

.brand span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.nav a:hover, .nav a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }

.cart-count {
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  letter-spacing: 0;
}

.cart-count.on { display: inline-block; }

.menu-toggle { display: none; }

/* ---------- announcement ---------- */
.announce {
  background: var(--ink);
  color: #f5f1ea;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 9px 16px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: #f2eee8;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  min-height: 520px;
}

.hero-copy { padding: 72px 56px 72px 0; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 440px;
  margin: 0 0 32px;
}

.hero-media { height: 100%; min-height: 520px; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 520px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }

.section.tight { padding: 52px 0; }

.section-head { text-align: center; margin-bottom: 44px; }

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 400;
  margin: 0 0 10px;
}

.section-head p { color: var(--muted); margin: 0; font-size: 14px; }

.section-head.left { text-align: left; }

/* ---------- category tiles ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cat-tile {
  position: relative;
  display: block;
  background: #f2eee8;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-tile:hover img { transform: scale(1.04); }

.cat-tile-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 18px;
  background: linear-gradient(to top, rgba(20, 18, 15, 0.62), rgba(20, 18, 15, 0));
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.product-card { position: relative; }

.product-card .thumb {
  position: relative;
  background: #f2eee8;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.35s;
}

.product-card .thumb img.alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .thumb img.alt { opacity: 1; }

.product-card:hover .thumb img:first-child { transform: scale(1.03); }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  z-index: 2;
}

.product-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 3px;
  line-height: 1.4;
}

.product-card .meta {
  font-size: 12px;
  color: var(--faint);
  margin: 0 0 5px;
  letter-spacing: 0.04em;
}

.product-card .price { font-size: 14px; color: var(--ink); }

.empty-note {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  font-size: 14px;
}

/* ---------- filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.filter-bar a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 15px;
  border: 1px solid var(--line);
  transition: all 0.18s;
}

.filter-bar a:hover { border-color: var(--line-strong); color: var(--ink); }

.filter-bar a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- breadcrumb ---------- */
.crumb {
  font-size: 12px;
  color: var(--faint);
  padding: 22px 0 0;
  letter-spacing: 0.03em;
}

.crumb a:hover { color: var(--ink); }

.crumb span { margin: 0 8px; }

/* ---------- product detail ---------- */
.pd {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  padding: 34px 0 70px;
  align-items: start;
}

.gallery-main {
  background: #f2eee8;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.gallery-thumbs button {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--line);
  background: #f2eee8;
  overflow: hidden;
  cursor: pointer;
}

.gallery-thumbs button.on { border-color: var(--ink); }

.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  margin: 0 0 8px;
  line-height: 1.2;
}

.pd-material {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.pd-price {
  font-size: 20px;
  margin: 0 0 22px;
}

.pd-desc { color: var(--muted); margin: 0 0 26px; font-size: 14.5px; }

.opt-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 9px;
}

.swatches { display: flex; gap: 9px; margin-bottom: 24px; }

.swatches label {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.18s;
}

.swatches input { position: absolute; opacity: 0; pointer-events: none; }

.swatches input:checked + span {
  display: block;
  margin: -9px -17px;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}

.qty-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 14px;
}

.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
}

.qty button {
  width: 38px;
  height: 100%;
  min-height: 46px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  color: var(--muted);
}

.qty input {
  width: 42px;
  text-align: center;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

.qty-row .btn { flex: 1; }

.pd-note {
  font-size: 12.5px;
  color: var(--faint);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.pd-accordion { border-top: 1px solid var(--line); }

.pd-accordion details { border-bottom: 1px solid var(--line); }

.pd-accordion summary {
  padding: 16px 0;
  cursor: pointer;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pd-accordion summary::-webkit-details-marker { display: none; }

.pd-accordion summary::after {
  content: "+";
  font-size: 17px;
  color: var(--muted);
  line-height: 1;
}

.pd-accordion details[open] summary::after { content: "\2212"; }

.pd-accordion .body {
  padding: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.pd-accordion .body p { margin: 0 0 8px; }

/* ---------- reviews ---------- */
.reviews-section {
  border-top: 1px solid var(--line);
  padding: 56px 0 68px;
}

.reviews-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.reviews-head h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin: 0;
}

.reviews-sub { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }

.review-empty {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 34px 32px;
  margin: 28px 0 30px;
}

.review-empty h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
}

.review-empty p { margin: 0; color: var(--muted); font-size: 14px; max-width: 640px; }

.review-policy-notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 36px;
  margin: 32px 0 40px;
}

.review-policy-notes h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 7px;
  color: var(--ink);
}

.review-policy-notes p { margin: 0; font-size: 13.5px; color: var(--muted); }

.review-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 34px 32px;
}

.review-form-wrap h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 500;
}

.review-form-wrap .lead { color: var(--muted); font-size: 13.5px; margin: 0 0 26px; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  border-radius: 0;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field textarea { resize: vertical; min-height: 118px; }

.field .hint { font-size: 12px; color: var(--faint); margin: 6px 0 0; }

.star-input { display: flex; gap: 4px; align-items: center; }

.star-input input { position: absolute; opacity: 0; pointer-events: none; }

.star-input label {
  font-size: 24px;
  line-height: 1;
  color: var(--line-strong);
  cursor: pointer;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.15s;
}

.star-input label:hover,
.star-input label:hover ~ label { color: var(--accent); }

.star-input input:checked ~ label { color: var(--line-strong); }

/* 反向选择：选中项及其左侧全部点亮 */
.star-input { flex-direction: row-reverse; justify-content: flex-end; }
.star-input label { color: var(--line-strong); }
.star-input input:checked ~ label { color: var(--accent); }
.star-input label:hover,
.star-input label:hover ~ label { color: var(--accent); }

.check-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.55;
}

.check-line input { margin-top: 3px; flex: 0 0 auto; }

.form-note {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 14px;
  line-height: 1.6;
}

/* ---------- cart / checkout ---------- */
.page-head { padding: 42px 0 30px; }

.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 400;
  margin: 0 0 8px;
}

.page-head p { color: var(--muted); margin: 0; font-size: 14px; }

.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  padding-bottom: 80px;
  align-items: start;
}

.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.cart-line .img { background: #f2eee8; aspect-ratio: 1/1; overflow: hidden; }

.cart-line h4 { margin: 0 0 4px; font-size: 14px; font-weight: 500; }

.cart-line .cm { font-size: 12px; color: var(--faint); margin: 0 0 10px; }

.cart-line .cq {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}

.cart-line .cq button {
  width: 30px;
  height: 30px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
}

.cart-line .cq span { width: 32px; text-align: center; font-size: 13px; }

.cart-line .rt { text-align: right; font-size: 14px; }

.link-remove {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  color: var(--faint);
  cursor: pointer;
  text-decoration: underline;
  margin-top: 10px;
  font-family: inherit;
}

.link-remove:hover { color: var(--ink); }

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 26px;
  position: sticky;
  top: 92px;
}

.summary h3 {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--muted);
}

.sum-row.total {
  color: var(--ink);
  font-size: 16px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  margin-bottom: 20px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 52px;
  padding-bottom: 80px;
  align-items: start;
}

.form-block h3 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.pay-box {
  border: 1px solid var(--line);
  padding: 20px;
  background: var(--surface);
  margin-bottom: 18px;
}

.pay-box p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.notice {
  border-left: 2px solid var(--accent);
  background: #fdfaf6;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.65;
}

/* ---------- content pages ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  margin: 40px 0 12px;
}

.prose h3 { font-size: 15px; font-weight: 500; margin: 26px 0 8px; }

.prose p { color: #3d3934; margin: 0 0 14px; font-size: 14.5px; }

.prose ul, .prose ol { color: #3d3934; font-size: 14.5px; padding-left: 22px; margin: 0 0 16px; }

.prose li { margin-bottom: 7px; }

.prose a { color: var(--accent-dark); text-decoration: underline; }

.prose .updated {
  font-size: 12.5px;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 80px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 30px;
  margin-bottom: 18px;
}

.contact-card h3 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 500;
}

.contact-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  padding: 20px 0;
  cursor: pointer;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after { content: "+"; color: var(--muted); font-size: 17px; line-height: 1; }

.faq-item[open] summary::after { content: "\2212"; }

.faq-item .ans { padding: 0 0 20px; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #f5f2ec;
  padding: 58px 0 30px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand .brand { font-size: 20px; margin-bottom: 12px; display: block; }

.footer-brand p { color: var(--muted); font-size: 13px; margin: 0 0 6px; max-width: 280px; }

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 500;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }

.footer-col li { margin-bottom: 9px; }

.footer-col a { color: var(--muted); font-size: 13px; }

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- breadcrumb json ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .pd { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout, .checkout-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .summary { position: static; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 48px 0 40px; }
  .hero-media, .hero-media img { min-height: 360px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .menu-toggle {
    display: inline-block;
    background: none;
    border: 0;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
  }
  .nav.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 18px 24px;
    gap: 14px;
    align-items: flex-start;
  }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .review-policy-notes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 52px 0; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .review-form-wrap, .review-empty { padding: 24px 20px; }
}
