:root {
  --ink: #202b2a;
  --muted: #69716f;
  --line: #e2dfd8;
  --paper: #ffffff;
  --soft: #f6f4ef;
  --accent: #8b6846;
  --accent-dark: #65482f;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, white);
  outline-offset: 3px;
}
.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;
}

.showroom {
  width: 100%;
  overflow: clip;
  background: var(--paper);
}
.intro {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 88px) 0 40px;
}
.eyebrow, .section-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.intro h1, .catalog h2, .category-section h3, .product-modal h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
}
.intro h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: .98;
}
.intro > p {
  max-width: 680px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.7;
}
.trust-row {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-row div {
  padding: 0 24px;
  display: grid;
  gap: 5px;
  text-align: center;
}
.trust-row div + div { border-left: 1px solid var(--line); }
.trust-row strong { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.trust-row span { color: var(--muted); font-size: 12px; }

.catalog {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(58px, 7vw, 86px) 0 40px;
}
.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.catalog h2 {
  margin: 0;
  font-size: clamp(34px, 4.3vw, 52px);
  line-height: 1.05;
}
.result-count {
  padding-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}
.search-row {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, 310px);
  gap: 12px;
}
.search-box, .category-select {
  min-width: 0;
  height: 52px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.search-box {
  padding: 0 15px;
  gap: 10px;
}
.search-icon {
  color: var(--accent);
  font-size: 25px;
  transform: rotate(-20deg);
}
.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
}
.search-box input::placeholder { color: #8b928f; }
.search-box button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.category-select select {
  width: 100%;
  height: 100%;
  padding: 0 42px 0 15px;
  border: 0;
  outline: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.browser-toolbar {
  min-height: 42px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}
.back-button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.back-button:hover { border-color: var(--ink); }

.category-groups { margin-top: 46px; display: grid; gap: 64px; }
.category-section { min-width: 0; }
.group-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.category-section h3 {
  margin: 0;
  padding: 0 0 14px;
  font-size: clamp(25px, 3vw, 34px);
}
.group-heading > span {
  padding-bottom: 17px;
  color: var(--muted);
  font-size: 11px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.category-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(29, 35, 32, .04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: 0 18px 44px rgba(29, 35, 32, .09);
}
.category-image, .product-image, .modal-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fbfaf7, #efede7);
}
.category-image {
  width: 100%;
  aspect-ratio: 1.85;
  display: block;
}
.category-image img, .product-image img, .modal-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.category-image img { padding: 7%; }
.image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 5px;
  color: #827b71;
  text-align: center;
}
.image-fallback strong {
  font-family: var(--serif);
  font-size: clamp(25px, 3.2vw, 44px);
  font-weight: 400;
  letter-spacing: .04em;
}
.image-fallback span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.category-image:has(img) .image-fallback,
.product-image:has(img) .image-fallback,
.modal-image:has(img) .image-fallback {
  display: none;
}
.category-copy {
  min-height: 78px;
  padding: 16px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.category-copy > span { min-width: 0; display: grid; gap: 5px; }
.category-copy strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.12;
  text-overflow: ellipsis;
}
.category-copy small { color: var(--muted); font-size: 10px; }
.category-copy b { color: var(--accent); font-size: 19px; }

.product-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 12px 42px rgba(29, 35, 32, .045);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(29, 35, 32, .1);
}
.product-image {
  width: 100%;
  aspect-ratio: 1.25;
  padding: 0;
  display: block;
  border: 0;
  cursor: pointer;
}
.product-image img {
  padding: 8%;
  transition: transform .38s ease;
}
.product-card:hover .product-image img { transform: scale(1.04); }
.quick-view {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(31, 43, 42, .92);
  color: white;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(5px);
  transition: .2s ease;
}
.product-card:hover .quick-view { opacity: 1; transform: none; }
.product-info { padding: 20px; }
.product-meta {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.product-info h3 {
  min-height: 52px;
  margin: 8px 0 17px;
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-info button {
  padding: 10px 13px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.product-info button:hover { background: var(--ink); color: white; }
.load-more {
  padding-top: 38px;
  display: grid;
  place-items: center;
  gap: 10px;
}
.load-more button, .empty-state button {
  padding: 13px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.load-more span { color: var(--muted); font-size: 10px; }
.empty-state {
  margin-top: 30px;
  padding: 70px 20px;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  text-align: center;
}
.empty-state strong { font-family: var(--serif); font-size: 28px; font-weight: 400; }
.empty-state span { color: var(--muted); }
.empty-state button { margin-top: 10px; }
.catalog-note {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  z-index: 9999;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(20, 27, 26, .74);
  backdrop-filter: blur(7px);
}
.product-modal {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  border-radius: 22px;
  background: white;
  box-shadow: 0 35px 100px rgba(0,0,0,.28);
}
.modal-close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}
.modal-image {
  min-height: 540px;
  display: grid;
  place-items: center;
}
.modal-image img {
  max-height: 580px;
  padding: 8%;
}
.modal-content { padding: clamp(40px, 5vw, 60px); }
.modal-content h2 {
  margin: 10px 0 24px;
  padding-right: 22px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
}
.modal-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.feature-list { padding-top: 4px; }
.feature-list > strong {
  display: block;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}
.feature-list ul {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}
.feature-list li {
  position: relative;
  padding-left: 18px;
  color: #56605d;
  font-size: 12px;
  line-height: 1.55;
}
.feature-list li::before {
  content: "";
  position: absolute;
  top: .58em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.modal-note {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .category-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-modal { grid-template-columns: 1fr; }
  .modal-image { min-height: 330px; }
}

@media (max-width: 640px) {
  .intro, .trust-row, .catalog, .catalog-note {
    width: min(100% - 28px, 1200px);
  }
  .intro { padding: 40px 0 28px; }
  .intro h1 { font-size: 42px; }
  .intro > p { font-size: 15px; }
  .trust-row {
    padding: 0;
    grid-template-columns: 1fr;
  }
  .trust-row div { padding: 16px; }
  .trust-row div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .catalog { padding: 46px 0 30px; }
  .catalog-heading { align-items: start; }
  .result-count { white-space: nowrap; }
  .search-row {
    margin-top: 25px;
    grid-template-columns: 1fr;
  }
  .search-box input { font-size: 16px; }
  .category-groups { margin-top: 38px; gap: 50px; }
  .category-grid, .product-grid { grid-template-columns: 1fr; }
  .category-image { aspect-ratio: 2.05; }
  .product-grid { gap: 16px; }
  .product-image { aspect-ratio: 1.45; }
  .quick-view { opacity: 1; transform: none; }
  .product-info h3 { min-height: 0; font-size: 20px; }
  .browser-toolbar { align-items: start; flex-direction: column; }
  .modal-backdrop {
    padding: 0;
    place-items: stretch;
    background: white;
  }
  .product-modal {
    width: 100%;
    max-height: none;
    min-height: 100vh;
    border-radius: 0;
  }
  .modal-image { min-height: 280px; }
  .modal-content { padding: 28px 20px 70px; }
  .modal-content h2 { padding-right: 30px; font-size: 34px; }
  .modal-close { position: fixed; top: 12px; right: 12px; }
}

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