:root {
  --ink: #181713;
  --muted: #746f65;
  --paper: #f5f2eb;
  --white: #fffdf8;
  --line: #ded8cd;
  --gold: #a57b3e;
  --gold-soft: #d7bd8a;
  --green: #183d32;
  --shadow: 0 18px 50px rgba(30, 26, 18, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
.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; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.announcement {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 7px 18px;
  color: #f5efe2;
  background: var(--green);
  font-size: 12px;
  letter-spacing: .12em;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(222, 216, 205, .9);
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(1440px, calc(100% - 48px));
  min-height: 76px;
  margin: auto;
  display: grid;
  grid-template-columns: auto minmax(280px, 680px) auto;
  align-items: center;
  gap: 34px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}
.brand-mark span span { color: var(--gold); }
.brand-crown { color: var(--gold); font-size: 13px; transform: rotate(45deg); }
.search-box {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(165,123,62,.12); }
.search-box svg { width: 20px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-box input::placeholder { color: #9d978c; }
.search-box kbd { padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--paper); font-size: 11px; }
.header-actions { display: flex; gap: 8px; justify-content: end; }
.language-picker { display: flex; align-items: center; }
.language-picker select {
  min-height: 38px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.language-picker select:focus { outline: 2px solid rgba(165,123,62,.22); border-color: var(--gold); }
.action-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.action-button:hover { background: var(--paper); }
.action-button > span:first-child { font-size: 21px; }
.action-button b { min-width: 19px; padding: 2px 5px; border-radius: 10px; color: #fff; background: var(--gold); font-size: 10px; }
.brand-strip {
  width: min(1440px, calc(100% - 48px));
  margin: auto;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(222, 216, 205, .65);
}
.brand-strip::-webkit-scrollbar { display: none; }
.brand-link {
  flex: 0 0 auto;
  padding: 13px 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
}
.brand-link:hover, .brand-link.active { color: var(--ink); border-bottom-color: var(--gold); }

main { min-height: 70vh; }
.loading-screen { min-height: 60vh; display: grid; place-items: center; align-content: center; gap: 16px; color: var(--muted); }
.loader { width: 34px; height: 34px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  overflow: hidden;
  background: #ede7dc;
}
.hero-copy { padding: clamp(58px, 8vw, 112px) max(32px, calc((100vw - 1392px) / 2)); padding-right: clamp(40px, 7vw, 110px); }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero h1, .section-heading h2, .product-title { font-family: Georgia, "Times New Roman", "Noto Serif SC", serif; }
.hero h1 { max-width: 690px; margin: 0; font-size: clamp(46px, 5vw, 76px); line-height: .98; letter-spacing: -.035em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-lede { max-width: 600px; margin: 26px 0 30px; color: #625d54; font-size: 17px; line-height: 1.75; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.primary-button, .secondary-button, .load-more {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s;
}
.primary-button { color: #fff; background: var(--ink); }
.primary-button:hover, .load-more:hover { transform: translateY(-2px); background: var(--green); }
.secondary-button { color: var(--ink); background: transparent; }
.secondary-button:hover { background: rgba(255,255,255,.65); }
.hero-visual { position: relative; min-height: 440px; background: var(--ink); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(237,231,220,.25), transparent 35%), linear-gradient(0deg, rgba(10,10,8,.42), transparent 45%); }
.hero-caption { position: absolute; z-index: 1; right: 30px; bottom: 28px; left: 30px; display: flex; align-items: end; justify-content: space-between; gap: 20px; color: #fff; }
.hero-caption strong { display: block; max-width: 520px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(20px, 2vw, 31px); line-height: 1.15; }
.hero-caption span { color: #e3d5ba; font-size: 13px; white-space: nowrap; }

.stats-bar { width: min(1392px, calc(100% - 48px)); margin: 28px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.stat { padding: 23px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 29px; }
.stat span { color: var(--muted); font-size: 12px; letter-spacing: .08em; }

.catalog-section { width: min(1392px, calc(100% - 48px)); margin: 76px auto 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(33px, 4vw, 52px); line-height: 1; }
.result-count { color: var(--muted); font-size: 14px; }
.filter-panel { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr auto; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.filter-panel select, .filter-panel input { width: 100%; min-height: 45px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: #fff; }
.filter-panel select:focus, .filter-panel input:focus { border-color: var(--gold); }
.clear-filter { padding: 0 16px; border: 0; border-radius: 10px; color: var(--muted); background: var(--paper); cursor: pointer; }
.clear-filter:hover { color: var(--ink); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; margin-top: 28px; }
.product-card { position: relative; min-width: 0; }
.card-media { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; background: #e8e2d8; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.product-card:hover .card-media img { transform: scale(1.035); }
.factory-pill { position: absolute; top: 12px; left: 12px; padding: 6px 9px; border-radius: 7px; color: #fff; background: rgba(24,23,19,.78); backdrop-filter: blur(8px); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.save-card { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255,253,248,.86); backdrop-filter: blur(8px); font-size: 20px; cursor: pointer; }
.save-card.saved { color: #fff; background: var(--gold); }
.card-copy { padding: 15px 4px 0; }
.card-brand { margin: 0 0 6px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.card-title { margin: 0; min-height: 44px; font-size: 14px; font-weight: 600; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-price { font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 700; }
.card-images { color: var(--muted); font-size: 11px; }
.load-more-wrap { margin-top: 48px; display: grid; place-items: center; }
.load-more { min-width: 200px; color: #fff; background: var(--ink); }
.empty-state { grid-column: 1 / -1; padding: 80px 20px; text-align: center; color: var(--muted); }

.breadcrumbs { width: min(1392px, calc(100% - 48px)); margin: 26px auto; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--gold); }
.product-layout { width: min(1392px, calc(100% - 48px)); margin: 0 auto 80px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: clamp(34px, 6vw, 92px); align-items: start; }
.media-column { min-width: 0; }
.gallery { min-width: 0; }
.main-image { aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: #e6e0d5; }
.main-image img { width: 100%; height: 100%; object-fit: contain; }
.product-page .site-header { position: static; }
.product-page .breadcrumbs, .product-page .product-layout, .product-page .related { width: min(1080px, calc(100% - 48px)); }
.product-page .product-layout { gap: 32px; margin-bottom: 32px; }
.product-page .main-image { aspect-ratio: auto; background: transparent; border-radius: 8px; }
.product-page .main-image img { display: block; width: 100%; height: auto; object-fit: contain; }
.product-page .product-title { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.15; }
.model-info { margin-top: 24px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, #fffdf8, #f4efe6); box-shadow: 0 16px 42px rgba(44, 39, 30, .06); }
.model-info-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.model-info-heading .eyebrow { margin-bottom: 8px; font-size: 10px; }
.model-info-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", "Noto Serif SC", serif; font-size: clamp(27px, 3vw, 36px); line-height: 1.05; }
.model-identity { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.model-identity span { padding: 6px 9px; border: 1px solid #d8cfbf; border-radius: 999px; color: #655f55; background: rgba(255,255,255,.65); font-size: 10px; font-weight: 600; }
.model-name { margin: 20px 0 0; color: var(--green); font-family: Georgia, "Times New Roman", "Noto Serif SC", serif; font-size: 20px; font-weight: 700; line-height: 1.45; }
.model-info-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 28px; margin-top: 24px; }
.model-info h3 { margin: 0 0 13px; color: var(--ink); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.model-info ul { margin: 0; padding-left: 18px; color: #5f5a51; font-size: 13px; line-height: 1.75; }
.model-info li + li { margin-top: 6px; }
.model-parameters dl { margin: 0; border-top: 1px solid var(--line); }
.model-spec-row { display: grid; grid-template-columns: minmax(86px, .75fr) minmax(0, 1.25fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.model-spec-row dt { color: var(--muted); }
.model-spec-row dd { margin: 0; color: #403c35; font-weight: 600; }
.model-spec-wide { display: block; }
.model-character { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.model-character p { margin: 0; color: #5f5a51; font-size: 13px; line-height: 1.85; }
.product-summary { padding-top: 12px; }
.product-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.product-kicker i { width: 26px; height: 1px; background: var(--gold); }
.product-title { margin: 0; font-size: clamp(34px, 4vw, 55px); line-height: 1.04; letter-spacing: -.025em; }
.product-description { margin: 24px 0 22px; padding-left: 18px; border-left: 3px solid var(--gold); color: #5f5a51; font-size: 16px; line-height: 1.8; }
.product-price { margin: 0 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 700; }
.product-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.product-badges span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--muted); font-size: 11px; }
.detail-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.detail-actions .save-detail { min-width: 52px; padding: 0; font-size: 22px; }
.buyer-note { margin: 22px 0 0; padding: 18px; border-radius: 12px; background: #ebe5d9; color: #5c574e; font-size: 13px; line-height: 1.7; }
.spec-section { margin-top: 40px; }
.spec-section h2 { margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: 27px; }
.spec-table { border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.55; }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; font-weight: 500; }
.detail-gallery { width: min(1080px, calc(100% - 48px)); margin: 0 auto 64px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.detail-gallery-heading { margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 5px; background: #f5f6f3; text-align: left; }
.detail-gallery-heading h2 { margin: 0; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.5; }
.detail-images { display: block; width: 100%; max-width: none; margin: 0; }
.detail-photo { display: block; position: static; float: none; clear: both; width: 100%; min-width: 0; margin: 0 0 12px; }
.detail-photo:last-child { margin-bottom: 0; }
.detail-image-link { display: block; width: 100%; }
.detail-photo img { display: block; position: static; width: 100%; max-width: 100%; height: auto; object-fit: contain; border-radius: 0; background: #e6e0d5; }
.thumbs, .thumb { display: none !important; }
.detail-photo figcaption { display: none; }
.related { width: min(1392px, calc(100% - 48px)); margin: 0 auto 100px; }
.related h2 { margin: 0 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 60px; padding: 56px max(24px, calc((100vw - 1392px) / 2)); color: #dfd7c8; background: #171813; }
.footer-mark { color: #fff; }
.site-footer p { max-width: 620px; margin: 18px 0 0; color: #9f9b92; font-size: 13px; line-height: 1.75; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: start; gap: 10px; }
.footer-meta span { padding: 7px 10px; border: 1px solid #3c3c35; border-radius: 8px; font-size: 11px; }
.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: 360px; padding: 13px 16px; border-radius: 10px; color: #fff; background: var(--green); box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 18px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-panel { grid-template-columns: repeat(2, 1fr); }
  .filter-panel .clear-filter { min-height: 44px; }
  .hero h1 { font-size: 54px; }
  .product-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .announcement { font-size: 10px; }
  .header-inner { width: calc(100% - 28px); min-height: 66px; grid-template-columns: 1fr auto; }
  .brand-mark { font-size: 17px; }
  .search-box { grid-column: 1 / -1; grid-row: 2; margin-bottom: 12px; }
  .header-actions .action-label, .search-box kbd { display: none; }
  .header-actions { gap: 3px; }
  .language-picker select { min-height: 36px; max-width: 82px; padding-left: 8px; font-size: 11px; }
  .brand-strip { width: calc(100% - 28px); gap: 18px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 58px 24px 54px; }
  .hero h1 { font-size: 47px; }
  .hero-visual { min-height: 390px; }
  .stats-bar { width: calc(100% - 28px); grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .catalog-section, .breadcrumbs, .product-layout, .detail-gallery, .related { width: calc(100% - 28px); }
  .catalog-section { margin-top: 58px; }
  .section-heading { align-items: start; flex-direction: column; }
  .filter-panel { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .product-page .breadcrumbs, .product-page .product-layout, .product-page .related { width: calc(100% - 28px); }
  .detail-gallery { padding: 12px; border-radius: 8px; }
  .detail-gallery-heading { margin-bottom: 12px; padding: 9px 10px; }
  .detail-photo { margin-bottom: 8px; }
  .model-info-heading { align-items: start; flex-direction: column; }
  .model-identity { justify-content: start; }
  .model-info-grid { grid-template-columns: 1fr; }
  .product-title { font-size: 38px; }
  .site-footer { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 440px) {
  .product-grid { grid-template-columns: 1fr; gap: 30px; }
  .card-title { min-height: auto; }
  .hero-caption { align-items: start; flex-direction: column; }
  .detail-actions { grid-template-columns: 1fr 52px; }
  .spec-row { grid-template-columns: 110px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
