:root {
  color-scheme: light;
  --background: #f9f8f6;
  --foreground: #1a1a1a;
  --muted: #6c6863;
  --muted-panel: #d6cfbf;
  --accent: #a08a72;
  --accent-strong: #806b55;
  --line: rgba(26, 26, 26, 0.14);
  --line-strong: rgba(26, 26, 26, 0.24);
  --paper: #f9f8f6;
  --white: #fff;
  --success: #2f684c;
  --warning: #8a641c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0.025;
  background-image:
    radial-gradient(circle at 20% 20%, #1a1a1a 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, #1a1a1a 0 1px, transparent 1px);
  background-size: 38px 38px, 47px 47px;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: -48px;
  left: 18px;
  z-index: 1000;
  background: var(--foreground);
  color: var(--background);
  padding: 10px 14px;
}
.skip-link:focus { top: 18px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: block;
  padding: 0 clamp(24px, 4vw, 64px);
  background: rgba(249, 248, 246, 0.96);
  border-bottom: 1px solid rgba(26, 26, 26, 0.05);
  backdrop-filter: blur(12px);
}
.site-header::after {
  content: "";
  display: block;
  max-width: 1600px;
  height: 1px;
  margin: 0 auto;
  background: var(--line);
}
.brand,
.site-nav {
  height: 74px;
}
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 150px;
}
.brand-mark { display: none; }
.brand strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}
.brand small { display: none; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px, 3vw, 40px);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  transition: color 260ms ease;
}
.site-nav a:hover,
.site-nav a.active { color: var(--foreground); }
.cart-link span {
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--foreground);
  font-size: 11px;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 20px;
  height: 1px;
  background: var(--foreground);
}

main {
  min-height: 100vh;
  padding-top: 74px;
}
.page {
  padding: clamp(44px, 7vw, 96px) clamp(24px, 4vw, 64px);
}
.section {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(40px, 5vw, 56px);
  padding: clamp(46px, 6vw, 78px) clamp(24px, 4vw, 64px) clamp(56px, 7vw, 88px);
  background: var(--background);
}
.hero > div:first-child {
  max-width: 430px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.5vw, 59px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}
.hero h1 + p,
.hero p {
  max-width: 390px;
  margin: 22px 0 0;
  color: #222;
  font-size: 15px;
  line-height: 1.75;
}
.hero .eyebrow {
  margin-bottom: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-media {
  width: 100%;
  max-width: 870px;
  justify-self: end;
  overflow: hidden;
  background: var(--muted-panel);
  aspect-ratio: 734 / 474;
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--foreground);
  border-radius: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}
.btn:hover,
.btn.primary {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}
.btn.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}
.btn.ghost { border-color: var(--line-strong); }
.btn.full { width: 100%; }

.stats {
  width: calc(100% - clamp(48px, 8vw, 128px));
  max-width: 1600px;
  margin: 0 auto clamp(54px, 7vw, 92px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  min-height: 118px;
  padding: 28px clamp(18px, 4vw, 44px);
  border-left: 1px solid var(--line);
  background: transparent;
}
.stat:first-child { border-left: 0; }
.stat strong {
  display: block;
  color: var(--foreground);
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1;
  font-weight: 500;
}
.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.panel,
.product-card,
.filter-bar,
.cart-panel,
.inquiry-panel {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.panel {
  padding: clamp(28px, 4vw, 48px);
}
.panel h2,
.section-title h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}
.panel p,
.section-title p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.cap-list {
  display: grid;
  gap: 0;
  margin-top: 28px;
}
.cap-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.cap-item span {
  width: auto;
  height: auto;
  display: block;
  border-radius: 0;
  color: var(--foreground);
  background: transparent;
  font-size: 24px;
  font-weight: 500;
}
.cap-item strong { display: block; font-size: 20px; }
.cap-item small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 30px;
}
.section-title > div { max-width: 820px; }

.filter-bar {
  padding: 0 0 24px;
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr auto;
  gap: 14px;
  margin-bottom: 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.filter-bar select,
.filter-bar input,
.form-grid input,
.form-grid textarea {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0 2px;
  background: transparent;
  color: var(--foreground);
}
.filter-bar input:focus,
.filter-bar select:focus,
.form-grid input:focus,
.form-grid textarea:focus {
  outline: 0;
  border-color: var(--foreground);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 220ms ease, transform 220ms ease;
}
.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--muted-panel);
}
.product-card-body {
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}
.product-card h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}
.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tag + .tag::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.detail-media {
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--muted-panel);
  box-shadow: none;
}
.detail-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 700;
}
.detail-copy p {
  color: var(--muted);
  line-height: 1.75;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.spec {
  padding: 16px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.spec dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.spec dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}
.cart-panel,
.inquiry-panel {
  padding: clamp(22px, 3vw, 34px);
}
.cart-empty {
  padding: 54px 20px;
  text-align: center;
  color: var(--muted);
}
.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 0;
  background: var(--muted-panel);
}
.cart-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.cart-item p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.cart-controls {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 10px;
}
.cart-controls input {
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0 2px;
  background: transparent;
}
.icon-btn {
  min-width: 42px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 12px;
}

.form-grid {
  display: grid;
  gap: 18px;
}
.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.form-grid textarea {
  min-height: 118px;
  padding-top: 10px;
  resize: vertical;
}
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.form-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.success-box,
.warning-box {
  border-radius: 0;
  padding: 18px;
  line-height: 1.6;
}
.success-box {
  background: rgba(47, 104, 76, 0.08);
  color: var(--success);
  border: 1px solid rgba(47, 104, 76, 0.28);
}
.warning-box {
  background: rgba(160, 138, 114, 0.12);
  color: var(--warning);
  border: 1px solid rgba(160, 138, 114, 0.35);
}

.loading-view,
.error-view {
  min-height: 55vh;
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  color: var(--muted);
}
.loader {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--foreground);
  animation: spin 850ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: 0;
  background: var(--foreground);
  color: var(--background);
  box-shadow: 0 18px 45px rgba(26, 26, 26, 0.18);
  font-size: 14px;
}

.footer {
  width: calc(100% - clamp(48px, 8vw, 128px));
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
}
.footer strong {
  color: var(--foreground);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .brand,
  .site-nav { height: 68px; }
  main { padding-top: 68px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    height: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(249, 248, 246, 0.98);
    backdrop-filter: blur(12px);
  }
  .site-nav.open { display: flex; }
  .site-nav a { justify-content: space-between; }
  .hero,
  .split,
  .detail-layout,
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 42px;
  }
  .hero > div:first-child {
    max-width: 640px;
  }
  .hero-media {
    justify-self: stretch;
    max-width: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .section-title {
    display: block;
  }
  .section-title .btn {
    margin-top: 18px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 18px;
  }
  .page {
    padding: 34px 18px;
  }
  .hero {
    padding: 34px 18px 44px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-actions {
    display: grid;
  }
  .hero-media {
    aspect-ratio: 4 / 5;
  }
  .stats,
  .product-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    width: calc(100% - 36px);
  }
  .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .stat:first-child {
    border-top: 0;
  }
  .cart-item {
    grid-template-columns: 76px 1fr;
  }
  .cart-item img {
    width: 76px;
    height: 76px;
  }
  .cart-controls {
    grid-template-columns: 82px 1fr;
  }
  .cart-controls .icon-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .footer {
    width: calc(100% - 36px);
  }
}
