:root {
  --paper: #f3f5f0;
  --surface: #ffffff;
  --ink: #1c2822;
  --muted: #6b756f;
  --line: #dce2da;
  --forest: #173c32;
  --forest-strong: #0f2d26;
  --sage: #aebcab;
  --sage-light: #e7ece4;
  --sun: #f2c66d;
  --clay: #c96b4a;
  --oak: #ad7a45;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(16, 42, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#catalog,
#categories,
#contact {
  scroll-margin-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

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

svg {
  display: block;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--forest);
  font-weight: 700;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220, 226, 218, 0.78);
  background: rgba(247, 248, 244, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1280px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand-logo {
  width: 176px;
  height: auto;
}

.desktop-nav {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav a {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 0;
  height: 2px;
  background: var(--clay);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--ink);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  width: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.icon-button:hover {
  border-color: var(--line);
  background: var(--surface);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.action-count {
  position: absolute;
  right: 3px;
  top: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: var(--forest);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(14, 43, 35, 0.98) 0%, rgba(19, 55, 45, 0.9) 44%, rgba(19, 55, 45, 0.28) 78%, rgba(19, 55, 45, 0.1) 100%),
    linear-gradient(0deg, rgba(9, 29, 24, 0.48), transparent 40%);
}

.hero-woodwork {
  position: absolute;
  top: -12%;
  right: -3%;
  width: 64%;
  height: 126%;
  display: flex;
  gap: 5px;
  opacity: 0.82;
  transform: skewX(-9deg);
  transform-origin: bottom right;
}

.hero-woodwork span {
  flex: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 38%, rgba(0, 0, 0, 0.16)),
    repeating-linear-gradient(82deg, transparent 0 18px, rgba(67, 37, 16, 0.18) 19px 21px),
    var(--oak);
  box-shadow: inset -8px 0 18px rgba(50, 24, 8, 0.16);
}

.hero-woodwork span:nth-child(2n) {
  background-color: #bd8a50;
}

.hero-woodwork span:nth-child(3n) {
  background-color: #916437;
}

.hero-woodwork span:nth-child(4n) {
  background-color: #ca9a61;
}

.hero-woodwork span:nth-child(5n) {
  flex-grow: 1.45;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to right, black, transparent 78%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 40px));
  min-height: 520px;
  margin: 0 auto;
  padding: 68px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: end;
  gap: 72px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.eyebrow-light {
  color: var(--sun);
}

.hero h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 600;
  line-height: 1.04;
}

.hero-summary {
  max-width: 470px;
  margin: 24px 0 32px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.75;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.hero-cta:hover {
  background: #fff;
  color: var(--forest);
}

.hero-cta svg {
  width: 17px;
  height: 17px;
}

.hero-index {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-index div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-index span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

.hero-index strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.hero-vertical-label {
  position: absolute;
  z-index: 2;
  right: 19px;
  top: 50%;
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.3em;
  transform: translateY(-50%) rotate(90deg);
}

.catalog-tools {
  position: relative;
  z-index: 4;
  margin-top: -34px;
}

.tools-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  border: 1px solid rgba(220, 226, 218, 0.88);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-form {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 20px;
}

.search-form > svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--muted);
  stroke-width: 1.7;
}

.search-form input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.search-form input::placeholder {
  color: #949d97;
}

.search-form input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  width: 34px;
  height: 34px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.search-clear:hover {
  background: var(--sage-light);
}

.search-clear svg {
  width: 17px;
  height: 17px;
}

.search-submit {
  align-self: stretch;
  min-width: 96px;
  margin: 6px;
  border: 0;
  border-radius: 5px;
  background: var(--forest);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease;
}

.search-submit:hover {
  background: var(--forest-strong);
}

.category-bar {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.filter-level-bar {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 20px;
  border-top: 1px solid var(--line);
}

.category-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.category-bar-label svg {
  width: 16px;
  height: 16px;
}

.filter-level-label {
  width: 92px;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.filter-level-label b {
  color: var(--clay);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.category-tabs {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 60, 50, 0.34) transparent;
}

.category-tabs::-webkit-scrollbar {
  display: block;
  height: 5px;
}

.category-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.category-tabs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(23, 60, 50, 0.34);
}

.category-tabs::-webkit-scrollbar-thumb:hover {
  background: rgba(23, 60, 50, 0.52);
}

.category-tab {
  min-width: 86px;
  height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.category-count {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(23, 60, 50, 0.08);
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.category-tab.is-active .category-count {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.category-tab::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--category-color, var(--sage));
}

.category-tab:hover {
  border-color: var(--sage);
  color: var(--ink);
}

.category-tab.is-active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.category-tab.is-active::before {
  background: var(--sun);
}

.product-section {
  padding: 82px 0 98px;
}

.section-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.section-header h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.2;
}

.product-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.sort-wrap {
  position: relative;
  flex: none;
}

.sort-button {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sort-button:hover,
.sort-button[aria-expanded="true"] {
  border-color: var(--sage);
  background: var(--surface);
  color: var(--ink);
}

.sort-button svg {
  width: 15px;
  height: 15px;
}

.sort-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: 142px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(21, 50, 42, 0.15);
}

.sort-option {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  font-size: 12px;
}

.sort-option:hover {
  background: var(--sage-light);
  color: var(--ink);
}

.sort-option.is-active {
  color: var(--forest);
  font-weight: 700;
}

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

.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  border-color: #bfc9bd;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(25, 55, 46, 0.1);
}

.card-media-button {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--sage-light);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.product-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.75), transparent 60%),
    var(--sage-light);
}

.product-visual img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  transition: transform 500ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.product-visual img.is-card-cover {
  padding: 0;
  object-fit: cover;
  object-position: var(--image-position, 50% 50%);
}

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

.product-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--forest);
  isolation: isolate;
}

.product-placeholder::before,
.product-placeholder::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.product-placeholder::before {
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 60, 50, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px rgba(23, 60, 50, 0.035),
    0 0 0 58px rgba(23, 60, 50, 0.025);
}

.product-placeholder::after {
  left: 0;
  right: 0;
  bottom: 16%;
  height: 1px;
  background: rgba(23, 60, 50, 0.18);
}

.placeholder-series {
  color: rgba(23, 60, 50, 0.44);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.placeholder-id {
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(24px, 2.7vw, 38px);
  font-weight: 600;
  line-height: 1;
}

.placeholder-note {
  margin-top: 6px;
  color: rgba(23, 60, 50, 0.42);
  font-size: 9px;
}

.placeholder-view {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  color: rgba(23, 60, 50, 0.56);
  font-size: 9px;
  font-weight: 700;
}

.card-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(23, 60, 50, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--forest);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.card-favorite:hover {
  transform: scale(1.05);
  background: #fff;
}

.card-favorite.is-active {
  border-color: var(--clay);
  background: var(--clay);
  color: #fff;
}

.card-favorite svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.card-favorite.is-active svg {
  fill: currentColor;
}

.product-info {
  padding: 17px 16px 18px;
}

.product-info-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.product-category {
  color: var(--clay);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.product-model {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.product-title-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Songti SC", "STSong", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.product-series {
  margin: 4px 0 0;
  color: var(--clay);
  font-size: 10px;
  font-weight: 700;
}

.product-specs {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.product-specs span {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.product-specs b {
  flex: none;
  color: #89928c;
  font-weight: 500;
}

.product-specs em {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  min-height: 390px;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--forest);
  display: grid;
  place-items: center;
}

.empty-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.5;
}

.empty-state h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 26px;
  font-weight: 600;
}

.empty-state p {
  margin: 9px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.text-button {
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid var(--forest);
  background: transparent;
  color: var(--forest);
  font-weight: 700;
  cursor: pointer;
}

.material-story {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: #fff;
  isolation: isolate;
}

.story-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background:
    radial-gradient(circle at 83% 22%, rgba(242, 198, 109, 0.3), transparent 24%),
    repeating-linear-gradient(88deg, transparent 0 32px, rgba(255, 255, 255, 0.065) 33px 34px, transparent 35px 68px),
    linear-gradient(110deg, #102f27 0%, #204b3f 56%, #79502e 150%);
}

.story-grain::after {
  content: "";
  position: absolute;
  right: 8%;
  top: -15%;
  width: 36%;
  height: 130%;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  transform: skewX(-13deg);
}

.story-inner {
  width: min(1280px, calc(100% - 40px));
  min-height: 420px;
  margin: 0 auto;
  padding: 78px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 100px;
  align-items: center;
}

.story-heading h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.25;
}

.story-copy > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.95;
}

.material-stats {
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.material-stats div {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.material-stats strong {
  color: var(--sun);
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
  font-weight: 500;
}

.material-stats span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
}

.site-footer {
  background: var(--sage-light);
  padding: 54px 0 24px;
}

.footer-inner,
.footer-bottom {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid #cdd8cd;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 190px;
  height: auto;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.footer-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.footer-contact a,
.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-contact a:hover {
  color: var(--forest);
}

.footer-contact svg {
  width: 15px;
  height: 15px;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #7d8980;
  font-size: 9px;
}

.footer-bottom button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.mobile-nav {
  display: none;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(8, 25, 21, 0.66);
  backdrop-filter: blur(4px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 200ms ease;
}

.detail-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(5, 24, 19, 0.38);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.detail-modal.is-open .detail-backdrop,
.detail-modal.is-open .detail-panel {
  opacity: 1;
}

.detail-modal.is-open .detail-panel {
  transform: translateY(0) scale(1);
}

.detail-close {
  position: absolute;
  z-index: 3;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(23, 60, 50, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.detail-close:hover {
  background: #fff;
}

.detail-close svg {
  width: 18px;
  height: 18px;
}

.detail-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--sage-light);
}

.detail-visual img {
  width: 100%;
  height: 100%;
  padding: 20px;
  object-fit: contain;
  background: #f0f3ed;
}

.detail-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), transparent 56%),
    var(--sage-light);
  color: var(--forest);
}

.detail-placeholder::before {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 60, 50, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(23, 60, 50, 0.032),
    0 0 0 92px rgba(23, 60, 50, 0.022);
}

.detail-placeholder span,
.detail-placeholder strong,
.detail-placeholder small {
  position: relative;
  z-index: 1;
}

.detail-placeholder span {
  color: rgba(23, 60, 50, 0.46);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.detail-placeholder strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 500;
  line-height: 1;
}

.detail-placeholder small {
  color: rgba(23, 60, 50, 0.45);
  font-size: 11px;
}

.detail-content {
  padding: 54px 46px 36px;
  overflow-y: auto;
}

.detail-content h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.28;
}

.detail-model {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.detail-description {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.detail-specs {
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-specs div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-specs dt {
  color: #89928c;
  font-size: 11px;
}

.detail-specs dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.finish-row {
  margin-top: 24px;
}

.finish-row > span {
  display: block;
  margin-bottom: 10px;
  color: #89928c;
  font-size: 11px;
}

#finishSwatches {
  display: flex;
  align-items: center;
  gap: 10px;
}

.finish-swatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.finish-swatch::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px var(--line);
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 32px;
}

.button-secondary,
.button-primary {
  height: 48px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.button-secondary {
  border: 1px solid var(--line);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--sage);
  background: var(--sage-light);
}

.button-secondary.is-active {
  border-color: var(--clay);
  color: var(--clay);
}

.button-secondary.is-active svg {
  fill: currentColor;
}

.button-primary {
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #fff;
}

.button-primary:hover {
  background: var(--forest-strong);
}

.button-secondary svg,
.button-primary svg {
  width: 17px;
  height: 17px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 150;
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  border-radius: 4px;
  background: var(--forest-strong);
  color: #fff;
  box-shadow: 0 12px 36px rgba(10, 34, 28, 0.24);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 40px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-inner {
    gap: 60px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  #catalog,
  #categories,
  #contact {
    scroll-margin-top: 60px;
  }

  .header-inner {
    width: calc(100% - 24px);
    height: 60px;
  }

  .brand {
    gap: 0;
  }

  .brand-logo {
    width: 146px;
  }

  .header-actions {
    gap: 0;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .icon-button:nth-child(2) {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 446px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(14, 43, 35, 0.98) 0%, rgba(19, 55, 45, 0.86) 56%, rgba(19, 55, 45, 0.28) 100%),
      linear-gradient(0deg, rgba(9, 29, 24, 0.48), transparent 44%);
  }

  .hero-woodwork {
    right: -31%;
    width: 95%;
    opacity: 0.65;
  }

  .hero-content {
    width: calc(100% - 40px);
    padding: 50px 0 42px;
    display: block;
  }

  .hero-copy {
    max-width: 330px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .hero-summary {
    max-width: 290px;
    margin: 18px 0 24px;
    font-size: 13px;
  }

  .hero-cta {
    min-height: 42px;
    padding: 0 16px;
    font-size: 12px;
  }

  .hero-index,
  .hero-vertical-label {
    display: none;
  }

  .catalog-tools {
    margin-top: -20px;
  }

  .tools-inner {
    width: calc(100% - 24px);
  }

  .search-form {
    height: 56px;
    padding-left: 15px;
    gap: 10px;
  }

  .search-form input {
    font-size: 13px;
  }

  .search-submit {
    min-width: 70px;
    margin: 5px;
    font-size: 12px;
  }

  .category-bar {
    min-height: 67px;
    gap: 10px;
    padding: 10px 12px;
  }

  .category-bar-label {
    gap: 4px;
    font-size: 10px;
  }

  .category-bar-label svg {
    width: 14px;
    height: 14px;
  }

  .filter-level-bar {
    min-height: 54px;
    gap: 10px;
    padding: 7px 12px;
  }

  .filter-level-label {
    width: 52px;
    gap: 4px;
    font-size: 10px;
  }

  .filter-level-label b {
    font-size: 8px;
  }

  .category-tabs {
    gap: 6px;
  }

  .category-tab {
    min-width: auto;
    height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .product-section {
    padding: 52px 0 64px;
  }

  .section-inner,
  .story-inner,
  .footer-inner,
  .footer-bottom {
    width: calc(100% - 24px);
  }

  .section-header {
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .section-description {
    max-width: 240px;
    font-size: 12px;
    line-height: 1.65;
  }

  .sort-button {
    height: 38px;
    padding: 0 10px;
  }

  .sort-button span {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card:hover {
    transform: none;
    box-shadow: none;
  }

  .product-info {
    padding: 12px 11px 14px;
  }

  .product-info-topline {
    margin-bottom: 4px;
  }

  .product-category {
    font-size: 8px;
  }

  .product-model {
    font-size: 9px;
  }

  .product-title-button {
    font-size: 16px;
    line-height: 1.35;
  }

  .product-specs {
    gap: 2px;
    margin-top: 9px;
    font-size: 9px;
  }

  .product-series {
    margin-top: 3px;
    font-size: 9px;
  }

  .product-specs span {
    gap: 5px;
  }

  .card-favorite {
    top: 7px;
    right: 7px;
    width: 32px;
    height: 32px;
  }

  .card-favorite svg {
    width: 14px;
    height: 14px;
  }

  .placeholder-series {
    font-size: 7px;
  }

  .placeholder-id {
    font-size: 23px;
  }

  .placeholder-note,
  .placeholder-view {
    font-size: 8px;
  }

  .story-inner {
    min-height: 0;
    padding: 58px 0;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .story-heading h2 {
    font-size: 39px;
  }

  .story-copy > p {
    font-size: 13px;
  }

  .material-stats {
    margin-top: 28px;
  }

  .site-footer {
    padding: 38px 0 20px;
  }

  .footer-brand {
    display: grid;
    justify-items: start;
    gap: 9px;
  }

  .footer-logo {
    width: 165px;
  }

  .footer-inner {
    display: block;
    padding-bottom: 28px;
  }

  .footer-contact {
    margin-top: 24px;
    display: grid;
    gap: 10px;
  }

  .footer-bottom {
    padding-top: 18px;
    display: grid;
    gap: 10px;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 5px 10px env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    backdrop-filter: blur(16px);
  }

  .mobile-nav a,
  .mobile-nav button {
    min-width: 0;
    border: 0;
    background: transparent;
    color: #87918a;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    cursor: pointer;
    font-size: 9px;
  }

  .mobile-nav a.is-active,
  .mobile-nav button.is-active {
    color: var(--forest);
  }

  .mobile-nav svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.7;
  }

  .mobile-icon-wrap {
    position: relative;
    display: grid;
    place-items: center;
  }

  .mobile-icon-wrap em {
    position: absolute;
    left: 13px;
    top: -5px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 99px;
    background: var(--clay);
    color: #fff;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
  }

  .detail-modal {
    padding: 0;
    place-items: end center;
  }

  .detail-panel {
    width: 100%;
    max-height: 94dvh;
    border-radius: 8px 8px 0 0;
    grid-template-columns: 1fr;
    overflow-y: auto;
    transform: translateY(32px);
  }

  .detail-visual {
    min-height: 0;
    height: min(40dvh, 320px);
  }

  .detail-placeholder strong {
    font-size: 54px;
  }

  .detail-content {
    padding: 26px 20px calc(24px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  .detail-content h2 {
    padding-right: 30px;
    font-size: 28px;
  }

  .detail-description {
    margin-bottom: 20px;
    font-size: 12px;
  }

  .detail-specs div {
    grid-template-columns: 76px 1fr;
    padding: 10px 0;
  }

  .detail-actions {
    margin-top: 24px;
  }

  .toast {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 370px) {
  .product-info {
    padding: 10px 9px 12px;
  }

  .product-title-button {
    font-size: 15px;
  }

  .product-specs em {
    max-width: 95px;
  }

  .section-description {
    display: none;
  }

  .search-form input {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
