:root {
  --canvas: #fbfaf7;
  --paper: #ffffff;
  --stone: #F5F5F0;
  --ink: #3F2C20;
  --brand: #4A3728;
  --muted: #766a61;
  --line: #e4ded6;
  --accent: #C97B54;
  --accent-dark: #a96644;
  --shadow: 0 24px 70px rgba(62, 44, 32, 0.1);
  --max: 1440px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  letter-spacing: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  min-height: 84px;
  padding: 0 clamp(22px, 4vw, 64px);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(228, 222, 214, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 4vw, 58px);
  font-size: 15px;
  color: var(--brand);
}

.site-nav > a,
.nav-group > a {
  position: relative;
  padding: 31px 0;
}

.site-nav > a::after,
.nav-group > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.site-nav a:hover::after,
.nav-group:hover > a::after {
  transform: scaleX(1);
}

.nav-group {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 180px;
  padding: 12px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.nav-dropdown a {
  display: block;
  padding: 10px 0;
  color: var(--muted);
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cart-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 15px;
}

.cart-link strong,
.mobile-cart strong {
  min-width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  transition: transform 260ms var(--ease);
}

.cart-link strong.bump,
.mobile-cart strong.bump {
  transform: scale(1.12);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--brand);
}

main {
  flex: 1;
}

.luxury-home {
  background: var(--canvas);
}

.hero {
  position: relative;
  max-width: 1920px;
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--stone);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  align-items: center;
  padding: clamp(54px, 8vw, 112px) clamp(24px, 6vw, 96px);
  background-image:
    linear-gradient(90deg, rgba(251, 250, 247, 0.95) 0%, rgba(251, 250, 247, 0.78) 31%, rgba(251, 250, 247, 0.08) 58%, rgba(251, 250, 247, 0) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center right;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 560ms var(--ease), transform 900ms var(--ease);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  width: min(520px, 92vw);
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.98;
  font-weight: 800;
}

.hero p {
  width: min(480px, 100%);
  margin: 26px 0 30px;
  color: var(--brand);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 2;
}

.hero-controls {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: clamp(24px, 5vw, 58px);
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: rgba(74, 55, 40, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.42);
  transition: background 220ms var(--ease), transform 220ms var(--ease);
}

.hero-controls button:hover {
  background: rgba(74, 55, 40, 0.72);
  transform: translateY(-2px);
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-weight: 650;
  transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: scale(0.97);
}

.button.accent {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.accent:hover {
  background: var(--accent-dark);
}

.button.outline {
  background: transparent;
}

.button.large {
  width: 100%;
  min-height: 56px;
}

.category-rail {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px clamp(22px, 4vw, 64px) 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.category-rail a {
  min-height: 124px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-right: 0;
  background: rgba(255, 255, 255, 0.52);
  transition: background 220ms var(--ease), transform 220ms var(--ease);
}

.category-rail a:last-child {
  border-right: 1px solid var(--line);
}

.category-rail a:hover {
  background: var(--paper);
  transform: translateY(-4px);
}

.category-rail span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  font-weight: 750;
}

.category-rail strong,
.category-rail small {
  display: block;
}

.category-rail strong {
  margin-bottom: 9px;
  font-size: 20px;
}

.category-rail small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px clamp(22px, 4vw, 64px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.editorial-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 650;
}

.editorial-head svg {
  width: 14px;
  height: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
}

.featured-grid {
  align-items: stretch;
}

.product-card {
  background: rgba(255, 255, 255, 0.58);
  transition: transform 260ms var(--ease), background 260ms var(--ease), box-shadow 260ms var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  background: var(--paper);
  box-shadow: 0 16px 44px rgba(62, 44, 32, 0.08);
}

.product-image-link {
  display: block;
  overflow: hidden;
  background: var(--stone);
  aspect-ratio: 1 / 1.05;
}

.product-card.lead .product-image-link {
  aspect-ratio: 1.18 / 1;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--ease);
}

.product-card:hover img {
  transform: scale(1.035);
}

.product-copy {
  padding: 20px 0 0;
}

.product-copy span,
.product-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.product-copy > a {
  display: block;
  margin: 8px 0 3px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
}

.product-copy p {
  margin: 0 0 14px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
}

.product-bottom strong {
  color: var(--accent-dark);
  font-size: 16px;
}

.product-bottom button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), border-color 220ms var(--ease);
}

.product-card:hover .product-bottom button,
.product-bottom button:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-bottom button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.arrival-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr;
  gap: clamp(18px, 2.4vw, 36px);
}

.arrival-grid .product-image-link {
  aspect-ratio: 1.45 / 1;
}

.craft-split {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  min-height: 520px;
  margin: 18px auto 0;
  max-width: 1920px;
  background: linear-gradient(90deg, #f7f4ee, #fff 48%, #fff);
}

.craft-copy {
  padding: clamp(54px, 8vw, 96px) clamp(28px, 7vw, 96px);
  align-self: center;
}

.craft-copy h2 {
  margin: 0 0 24px;
  color: var(--brand);
  font-size: clamp(32px, 4vw, 48px);
}

.craft-copy strong {
  display: block;
  margin-bottom: 20px;
  color: var(--brand);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35;
}

.craft-copy p {
  width: min(520px, 100%);
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.craft-copy .button {
  margin-top: 18px;
}

.craft-split > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.service-rail {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px clamp(22px, 4vw, 64px) 72px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-rail article {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 18px;
  padding: 20px 26px;
  border: 1px solid var(--line);
  border-right: 0;
  background: rgba(255, 255, 255, 0.68);
}

.service-rail article:last-child {
  border-right: 1px solid var(--line);
}

.service-rail span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  color: var(--brand);
}

.service-rail svg {
  width: 32px;
  height: 32px;
}

.service-rail strong {
  align-self: end;
  font-size: 16px;
}

.service-rail p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.listing-hero,
.content-page,
.contact-page,
.cart-page,
.detail-layout,
.listing-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(22px, 4vw, 64px);
  padding-right: clamp(22px, 4vw, 64px);
}

.listing-hero {
  padding-top: 82px;
  padding-bottom: 42px;
}

.listing-hero h1,
.content-page h1,
.contact-page h1 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
}

.listing-hero p,
.content-page > p,
.contact-page p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(28px, 4vw, 54px);
  padding-top: 28px;
  padding-bottom: 96px;
}

.filters {
  position: sticky;
  top: 112px;
  align-self: start;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.filters label,
.spec-grid label,
.message-form label {
  display: grid;
  gap: 10px;
  color: var(--brand);
  font-weight: 700;
}

.filters label + label {
  margin-top: 20px;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 123, 84, 0.14);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: clamp(36px, 5vw, 72px);
  padding-top: 64px;
  padding-bottom: 82px;
}

.gallery > img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
  background: var(--stone);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.thumbs button {
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
}

.thumbs button.active {
  border-color: var(--accent);
}

.thumbs img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
}

.detail-info {
  align-self: start;
  padding: 44px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.detail-info > span {
  color: var(--muted);
  font-size: 14px;
}

.detail-info h1 {
  margin: 14px 0 18px;
  color: var(--brand);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
}

.detail-price {
  display: block;
  margin-bottom: 20px;
  color: var(--accent-dark);
  font-size: 32px;
}

.detail-info p {
  color: var(--muted);
  line-height: 1.9;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.product-notes {
  display: grid;
  gap: 16px;
  margin: 30px 0 0;
}

.product-notes div {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.product-notes dt {
  color: var(--brand);
  font-weight: 750;
}

.product-notes dd {
  margin: 0;
  color: var(--muted);
}

.cart-page {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 96px;
}

.cart-page .section-head {
  grid-column: 1 / -1;
}

.cart-list {
  display: grid;
  gap: 18px;
}

.cart-row {
  display: grid;
  grid-template-columns: 130px minmax(180px, 1fr) auto auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.cart-row img {
  width: 130px;
  height: 96px;
  object-fit: cover;
}

.cart-row a {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-weight: 760;
}

.cart-row span {
  color: var(--muted);
  font-size: 13px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.qty button,
.remove {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--brand);
}

.remove {
  padding: 0 12px;
}

.checkout-card {
  align-self: start;
  padding: 30px;
  background: var(--stone);
  border: 1px solid var(--line);
}

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

.checkout-card strong {
  display: block;
  margin: 14px 0;
  color: var(--accent);
  font-size: 38px;
}

.checkout-card p {
  color: var(--muted);
  line-height: 1.8;
}

.content-page {
  padding-top: 82px;
  padding-bottom: 100px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}

.story-grid article {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.story-grid strong {
  color: var(--brand);
  font-size: 20px;
}

.story-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.contact-page {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  padding-top: 82px;
  padding-bottom: 100px;
}

.contact-list {
  margin-top: 34px;
}

.contact-list p {
  margin: 0 0 18px;
}

.contact-list strong {
  display: block;
  color: var(--brand);
}

.message-form {
  display: grid;
  gap: 18px;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.empty {
  padding: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 42px;
  bottom: 38px;
  z-index: 40;
  padding: 16px 20px;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
  animation: rise 260ms var(--ease);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  margin-top: auto;
  background: var(--brand);
  color: #fff;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px clamp(22px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 40px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.mobile-cart {
  display: none;
}

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arrival-grid,
  .craft-split,
  .detail-layout,
  .cart-page,
  .contact-page,
  .listing-layout {
    grid-template-columns: 1fr;
  }

  .service-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-rail article:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .filters {
    position: static;
  }
}

@media (max-width: 767px) {
  .site-header {
    grid-template-columns: auto auto auto;
    min-height: 68px;
    padding: 0 18px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .site-nav {
    position: fixed;
    inset: 68px 18px auto;
    display: none;
    grid-column: 1 / -1;
    align-items: start;
    justify-content: start;
    gap: 0;
    padding: 12px 20px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav > a,
  .nav-group > a,
  .nav-group {
    width: 100%;
    padding: 13px 0;
  }

  .site-nav > a::after,
  .nav-group > a::after {
    display: none;
  }

  .nav-dropdown {
    position: static;
    min-width: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .cart-link span {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero-slide {
    align-items: start;
    padding: 48px 22px;
    background-image:
      linear-gradient(180deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.82) 43%, rgba(251, 250, 247, 0.08) 100%),
      var(--hero-image);
    background-position: center bottom;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero p {
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-controls {
    right: 22px;
    bottom: 22px;
  }

  .category-rail,
  .product-grid,
  .arrival-grid,
  .service-rail,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .category-rail {
    padding-top: 32px;
  }

  .category-rail a,
  .category-rail a:last-child,
  .service-rail article,
  .service-rail article:last-child {
    border-right: 1px solid var(--line);
  }

  .section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .section-head {
    align-items: start;
  }

  .product-bottom button {
    opacity: 1;
    transform: none;
  }

  .craft-copy {
    padding: 46px 22px;
  }

  .craft-split > img {
    min-height: 320px;
  }

  .cart-row {
    grid-template-columns: 86px 1fr;
  }

  .cart-row img {
    width: 86px;
    height: 72px;
  }

  .qty,
  .cart-row > strong,
  .remove {
    grid-column: 2;
    justify-self: start;
  }

  .spec-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .mobile-cart {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
