:root {
  --bg: #f4f0e8;
  --paper: #fbf8f2;
  --ink: #121212;
  --muted: #6d675c;
  --line: rgba(18, 18, 18, 0.12);
  --accent: #aa8350;
  --accent-soft: rgba(170, 131, 80, 0.12);
  --dark: #161616;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --shadow: 0 20px 40px rgba(18, 18, 18, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans TC", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
button, input, textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.site-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.left-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.wordmark,
.mobile-wordmark {
  text-align: left;
}
.wordmark-cn {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.wordmark-en,
.mobile-wordmark small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--muted);
}

.rail-block,
.rail-contact,
.mobile-nav,
.card-soft,
.card-dark,
.form-card,
.side-panel,
.product-panel,
.checkout-panel,
.site-footer,
.hero-image,
.strip-panel,
.editorial-product,
.site-footer,
.catalog-head,
.hero-copy,
.hero-note {
  border-radius: var(--radius-xl);
}

.rail-copy,
.rail-contact {
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.rail-copy p,
.rail-contact p,
.rail-contact a {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.rail-nav {
  display: grid;
  gap: 10px;
}
.rail-nav button,
.mobile-nav button {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.rail-nav button:hover,
.mobile-nav button:hover {
  transform: translateX(3px);
  border-color: rgba(170, 131, 80, 0.4);
}

.desktop-cart,
.mobile-icon,
.button-dark,
.button-light {
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.desktop-cart,
.mobile-icon {
  padding: 14px 18px;
  background: var(--dark);
  color: white;
}
.desktop-cart span,
.mobile-icon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  margin-left: 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
}
.desktop-cart:hover,
.mobile-icon:hover,
.button-dark:hover,
.button-light:hover {
  transform: translateY(-1px);
}

.main-column {
  min-width: 0;
}

.mobile-header,
.mobile-nav { display: none; }

main {
  padding: 30px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}
.card-soft {
  background: var(--paper);
  border: 1px solid rgba(18, 18, 18, 0.07);
  box-shadow: var(--shadow);
}
.card-dark {
  background: var(--dark);
  color: white;
}
.hero-copy {
  padding: 42px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-light { color: #d7b382; }
.hero-copy h1 {
  margin: 24px 0 0;
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: 820px;
}
.hero-copy p {
  margin: 28px 0 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.button-dark,
.button-light {
  padding: 16px 24px;
  font-weight: 600;
}
.button-dark {
  background: var(--dark);
  color: white;
}
.button-light {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.full { width: 100%; }

.hero-visual-stack {
  display: grid;
  gap: 24px;
}
.hero-large,
.hero-image {
  overflow: hidden;
  background: #ddd;
  min-height: 250px;
}
.hero-large img,
.hero-image img,
.editorial-product img,
.feature-card img,
.product-detail-image img {
  height: 100%;
  object-fit: cover;
}
.hero-large { min-height: 420px; }
.hero-small-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 24px;
}
.hero-note {
  padding: 28px;
}
.hero-note h2 {
  margin: 18px 0 0;
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.hero-note p {
  margin: 18px 0 0;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
}

.strip-panel,
.catalog-head,
.site-footer {
  margin-top: 28px;
  padding: 30px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(18, 18, 18, 0.08);
}
.strip-head,
.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.strip-head h2,
.catalog-head h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.strip-head p,
.catalog-head p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}
.featured-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 22px;
  margin-top: 28px;
}
.feature-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.feature-card.large .feature-body {
  padding: 26px 28px 30px;
}
.feature-card img { height: 300px; }
.feature-card.large img { height: 380px; }
.feature-body {
  padding: 22px 22px 24px;
}
.feature-body h3 {
  margin: 10px 0 0;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.feature-body p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}
.feature-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.feature-actions button,
.product-actions button,
.list-button,
.ghost-button {
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.list-button {
  background: var(--dark);
  color: white;
}
.ghost-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.catalog-section { margin-top: 28px; }
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.category-bar button {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
  color: var(--ink);
}
.category-bar button.active {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

.editorial-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.editorial-product {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(18, 18, 18, 0.08);
  box-shadow: var(--shadow);
}
.editorial-product.tall {
  grid-column: span 2;
  grid-template-columns: 1fr 1fr;
}
.editorial-product img { height: 100%; min-height: 320px; }
.product-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.product-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.product-category {
  color: var(--muted);
  font-size: 13px;
}
.product-content h3 {
  margin: 16px 0 0;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.product-content p {
  margin: 14px 0 0;
  line-height: 1.8;
  color: var(--muted);
}
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.product-specs span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(18,18,18,0.05);
  font-size: 13px;
  color: #47433d;
}
.product-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 24px;
}
.product-price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
}
.footer-copy h3 {
  margin: 0;
  font-size: 40px;
  letter-spacing: -0.05em;
}
.footer-copy p {
  margin: 8px 0 0;
  letter-spacing: 0.26em;
  font-size: 12px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 22px;
}
.footer-grid p, .footer-grid a {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
}

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  z-index: 100;
}
.overlay.open { display: flex; }
.panel {
  position: relative;
  width: min(1180px, 100%);
  background: var(--paper);
  border-radius: 36px;
  border: 1px solid rgba(18,18,18,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  overflow: auto;
}
.side-panel {
  margin-left: auto;
  width: min(480px, 100%);
  padding: 28px;
}
.checkout-panel,
.product-panel {
  padding: 28px;
}
.close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--dark);
  color: white;
  font-size: 26px;
}
.side-panel-head h3,
.checkout-head h3 {
  margin: 8px 0 0;
  font-size: 34px;
  letter-spacing: -0.05em;
}
.cart-items,
.checkout-items {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.cart-item,
.checkout-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img,
.checkout-item img {
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
}
.cart-item h4,
.checkout-item h4 {
  margin: 0;
  font-size: 16px;
}
.cart-item p,
.checkout-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.qty-row button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(18,18,18,0.08);
}
.cart-summary,
.checkout-total {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.cart-summary div,
.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-top: 16px;
}
.checkout-form {
  display: grid;
  gap: 18px;
}
.form-card {
  padding: 22px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(18,18,18,0.08);
}
.form-card h4 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
input,
textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(18,18,18,0.1);
  background: white;
  outline: none;
}
textarea { min-height: 140px; resize: vertical; }
.span-2 { grid-column: span 2; }
.sticky-card { position: sticky; top: 0; }
.success-message {
  margin-top: 22px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(170,131,80,0.12);
}
.success-message h3 {
  margin: 10px 0 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}
.success-message p { margin: 10px 0 0; color: #574a38; line-height: 1.8; }
.hidden { display: none; }

.product-detail {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
}
.product-detail-image {
  overflow: hidden;
  border-radius: 30px;
  background: #ddd;
  min-height: 520px;
}
.product-detail-body {
  padding: 20px 8px 8px;
}
.product-detail-body h3 {
  margin: 16px 0 0;
  font-size: 48px;
  line-height: 0.98;
  letter-spacing: -0.06em;
}
.product-detail-body p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.9;
}
.product-detail-body .price {
  margin-top: 22px;
  font-size: 34px;
  font-weight: 800;
}
.detail-specs {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.detail-specs div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(18,18,18,0.05);
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 1180px) {
  .site-shell { grid-template-columns: 1fr; }
  .left-rail { display: none; }
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(244,240,232,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .mobile-wordmark span {
    display: block;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.05em;
  }
  .mobile-actions { display: flex; gap: 10px; }
  .mobile-nav {
    padding: 0 20px 18px;
    gap: 10px;
    background: rgba(244,240,232,0.92);
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav.open { display: grid; }
  main { padding: 20px; }
  .editorial-grid,
  .product-detail,
  .checkout-layout,
  .site-footer,
  .strip-head,
  .catalog-head,
  .featured-columns,
  .editorial-products,
  .hero-small-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .editorial-product,
  .editorial-product.tall {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero-copy,
  .strip-panel,
  .catalog-head,
  .site-footer,
  .side-panel,
  .checkout-panel,
  .product-panel { padding: 22px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-note h2,
  .product-content h3,
  .product-detail-body h3,
  .footer-copy h3 { font-size: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .product-bottom,
  .strip-head,
  .catalog-head,
  .site-footer { gap: 18px; }
}
