/* === NUGIRAY — Shared Stylesheet === */
/* Aesop-inspired palette: 米白底 / 深棕字 / 古铜 / 极简衬线 */

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

:root {
  --bg: #F5F1EA;
  --bg-warm: #ECE6DC;
  --bg-deep: #D8CFC0;
  --ink: #1F1B16;
  --ink-soft: #5A544A;
  --accent: #8B6F47;
  --line: #D8CFC0;
  --shadow: 0 2px 24px rgba(31, 27, 22, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.serif { font-family: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif; font-weight: 400; }

/* 中文模式: 切字体, 字距更紧凑 */
html[lang="zh-CN"] body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  letter-spacing: 0.05em;
  line-height: 1.75;
}
html[lang="zh-CN"] .serif {
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  letter-spacing: 0.08em;
}
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] h4 {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  letter-spacing: 0.05em;
}
html[lang="zh-CN"] .eyebrow {
  letter-spacing: 0.2em;
  font-weight: 400;
}
html[lang="zh-CN"] .product-note,
html[lang="zh-CN"] .pdp-tagline,
html[lang="zh-CN"] .cart-item-note {
  letter-spacing: 0.05em;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

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

/* === Header === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 100;
  gap: 24px;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  letter-spacing: 0.4em;
  color: var(--ink);
  flex-shrink: 0;
}
nav { display: flex; gap: 32px; }
nav a {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}
nav a:hover, nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.cart-link { font-variant-numeric: tabular-nums; }
.lang-switch { display: flex; gap: 8px; font-size: 12px; letter-spacing: 0.1em; }
.lang-switch a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-transform: uppercase;
}
.lang-switch a.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 16px 36px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  font-weight: 400;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-large { padding: 20px 48px; font-size: 13px; }
.btn-full { width: 100%; text-align: center; }

/* === Hero (Home) === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  align-items: center;
  padding: 60px 48px;
  gap: 60px;
}
.hero-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 88px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero-text .lede {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 420px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-image {
  background: var(--bg-warm);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image svg { width: 60%; height: auto; }

/* === Sections === */
section {
  padding: 100px 48px;
  border-top: 1px solid var(--line);
}
.section-header {
  text-align: center;
  margin-bottom: 72px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-header p {
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto;
}

/* === Product Grid (Home + Collection) === */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.product { cursor: pointer; }
.product-img {
  background: var(--bg-warm);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s;
  overflow: hidden;
}
.product-img svg { width: 50%; height: auto; transition: transform 0.6s; }
.product:hover .product-img { background: #E4DCCA; }
.product:hover .product-img svg { transform: scale(1.05); }
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.product-note {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.product-price {
  font-size: 14px;
  letter-spacing: 0.05em;
}
.product-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 12px;
  line-height: 1.6;
}

/* === Story (Home) === */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.story-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
}
.story-text p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.8;
}
.story-image {
  background: var(--bg-warm);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-image svg { width: 60%; }

/* === Maison Hero (about) === */
.maison-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 100px 48px;
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
}
.maison-hero-text { max-width: 900px; margin: 0 auto; text-align: center; }
.maison-hero-text h1 {
  font-size: 76px;
  margin-bottom: 32px;
  line-height: 1.05;
}
.maison-hero-text .lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === Story Section (about) === */
.story-section { padding: 100px 48px; border-top: 1px solid var(--line); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.story-block h3 {
  font-size: 38px;
  margin-bottom: 24px;
  line-height: 1.15;
}
.story-block p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.8;
}

/* === Atelier === */
.atelier-section { padding: 100px 48px; border-top: 1px solid var(--line); background: var(--bg-warm); }
.atelier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}
.atelier-image svg { width: 100%; height: auto; }
.atelier-text h2 { font-size: 44px; margin-bottom: 24px; line-height: 1.15; }
.atelier-text p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.8;
}
.atelier-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* === Sourcing === */
.sourcing-section { padding: 100px 48px; border-top: 1px solid var(--line); }
.sourcing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  max-width: 1280px;
  margin: 0 auto;
  border: 1px solid var(--line);
}
.source-card {
  background: var(--bg);
  padding: 48px 32px;
}
.source-region {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.source-card h4 {
  font-size: 24px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.source-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* === Craft === */
.craft-section { padding: 100px 48px; border-top: 1px solid var(--line); background: var(--bg-warm); }
.craft-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.craft-text h2 { font-size: 44px; line-height: 1.15; margin-bottom: 24px; }
.craft-text p { color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.craft-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
}
.craft-step { border-top: 1px solid var(--line); padding-top: 24px; }
.step-num {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}
.craft-step h4 { font-size: 20px; margin-bottom: 12px; }
.craft-step p { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

/* === Product Detail Page (PDP) === */
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 60px 48px;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 70vh;
}
.pdp-image {
  background: var(--bg-warm);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-image svg { width: 60%; height: auto; }
.pdp-details h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 12px;
}
.pdp-tagline {
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.pdp-price {
  font-size: 22px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.pdp-description {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 40px;
}
.pdp-notes {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.pdp-notes h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
}
.note-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.note-row:last-child { border-bottom: none; }
.note-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 2px;
}
.note-ingredients {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.pdp-options {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.pdp-option {
  padding: 14px 20px;
  border: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  background: var(--bg);
  transition: all 0.2s;
}
.pdp-option:hover { border-color: var(--ink); }
.pdp-option.selected { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.pdp-quantity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.qty-label { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft); }
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
}
.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
}
.qty-btn:hover { background: var(--bg-warm); }
.qty-input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
.pdp-meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.pdp-meta div { margin-bottom: 8px; }
.pdp-meta strong { color: var(--ink); font-weight: 500; }

/* === Cart Page === */
.cart-section { padding: 80px 48px; max-width: 1080px; margin: 0 auto; }
.cart-section h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 400;
  margin-bottom: 48px;
  text-align: center;
}
.cart-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--ink-soft);
}
.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto auto auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item-img {
  background: var(--bg-warm);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-img svg { width: 50%; }
.cart-item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  margin-bottom: 4px;
}
.cart-item-note {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
}
.cart-item-price { font-size: 15px; min-width: 80px; text-align: right; }
.cart-item-remove {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 8px;
}
.cart-item-remove:hover { color: var(--ink); }
.cart-summary {
  margin-top: 48px;
  padding: 32px;
  background: var(--bg-warm);
  max-width: 400px;
  margin-left: auto;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
}
.cart-summary-row.total {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 500;
}

/* === Discovery Set Page === */
.discovery-cta {
  background: var(--bg-warm);
  padding: 100px 48px;
  text-align: center;
}
.discovery-cta h2 { font-size: 56px; margin-bottom: 24px; }

/* === Contact Page === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 48px;
}
.contact-info h2 { font-size: 44px; margin-bottom: 24px; }
.contact-info p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 16px; }
.contact-info .label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-top: 32px; margin-bottom: 8px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 16px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); }

/* === Footer === */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 48px 40px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto 60px;
}
.footer-brand h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  letter-spacing: 0.3em;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 13px; color: var(--line); line-height: 1.7; max-width: 320px; }
footer h5 {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a {
  color: var(--bg);
  font-size: 13px;
  opacity: 0.85;
  transition: all 0.2s;
}
footer a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #3A332B;
  padding-top: 24px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--line);
  opacity: 0.7;
}

/* === Responsive === */
@media (max-width: 900px) {
  .hero, .story, .story-grid, .atelier-grid, .craft-grid, .pdp, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text h1, .section-header h2, .pdp-details h1, .cart-section h1, .maison-hero-text h1 { font-size: 44px; }
  .products, .sourcing-grid, .craft-steps, .atelier-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  header { padding: 20px 24px; flex-wrap: wrap; gap: 16px; }
  nav { gap: 16px; }
  section { padding: 60px 24px; }
  .cart-item { grid-template-columns: 80px 1fr auto; gap: 12px; }
  .cart-item-img { grid-row: span 2; }
  .pdp { padding: 40px 24px; }
  .lang-switch { display: none; }
}
