:root {
  --bg: #f4f1ea;
  --ink: #1f2422;
  --accent: #5f6f62;
  --panel: #fbfaf6;
  --muted: color-mix(in srgb, var(--ink) 58%, transparent);
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --font: "Avenir Next", "Neue Haas Grotesk Text Pro", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

button, input, a {
  font: inherit;
}

button, a {
  color: inherit;
}

button {
  cursor: pointer;
}

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

.notice {
  padding: 9px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 16px 28px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 230px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-wordmark {
  width: min(220px, 42vw);
  height: auto;
}

.primary-nav,
.mobile-menu,
.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav {
  justify-content: center;
}

.nav-link,
.category-tab,
.text-button,
.back-button,
.icon-button {
  border: 0;
  background: transparent;
  color: var(--ink);
}

.nav-link,
.text-button,
.category-tab {
  min-height: 36px;
  padding: 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-tab {
  border-bottom: 1px solid transparent;
}

.category-tab.is-active {
  border-color: var(--ink);
}

.icon-button {
  display: none;
  min-width: 42px;
  min-height: 42px;
  font-size: 22px;
}

.mobile-menu {
  display: none;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.collection-view {
  padding: 62px 28px 84px;
}

.collection-heading {
  max-width: 780px;
  margin-bottom: 58px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 0.96;
  font-weight: 400;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  font-weight: 400;
}

.collection-heading p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.collection-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.category-tabs {
  flex-wrap: wrap;
}

.search-field {
  display: grid;
  gap: 8px;
  width: min(300px, 100%);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-field input {
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(54px, 7vw, 104px) clamp(32px, 5vw, 74px);
}

.product-card {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--panel);
  margin-bottom: 16px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-card:hover img,
.product-card:focus-visible img {
  opacity: 0.88;
  transform: translateY(-2px);
}

.product-title {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sold {
  color: color-mix(in srgb, var(--ink) 42%, transparent);
}

.product-view {
  padding: 26px 28px 88px;
}

.back-button {
  min-height: 42px;
  margin-bottom: 26px;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(280px, 0.34fr);
  gap: clamp(38px, 6vw, 84px);
  align-items: start;
}

.carousel-frame {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 4 / 5;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 260ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 58px;
  border: 0;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  color: var(--ink);
  font-size: 30px;
}

.carousel-control.prev { left: 0; }
.carousel-control.next { right: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  padding: 0;
  background: transparent;
}

.carousel-dot.is-active {
  background: var(--ink);
}

.detail-copy {
  padding-top: 14px;
}

.detail-copy h1 {
  font-size: clamp(38px, 5vw, 70px);
}

.detail-copy p {
  color: var(--muted);
}

.detail-copy strong {
  color: var(--ink);
  font-weight: 500;
}

.inquire-button,
.footer-inquiry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
  border: 1px solid var(--ink);
  padding: 0 24px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inquire-button {
  width: 100%;
}

.inquire-button.is-disabled {
  pointer-events: none;
  opacity: 0.52;
}

.product-suggestions {
  margin-top: 42px;
}

.suggestions {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.suggestion-grid {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  padding-bottom: 8px;
}

.suggestion-card {
  flex: 0 0 clamp(104px, 9vw, 132px);
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.suggestion-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--panel);
  opacity: 0.82;
  transition: opacity 180ms ease;
}

.suggestion-card:hover img,
.suggestion-card:focus-visible img {
  opacity: 1;
}

.suggestion-card strong {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
}

.suggestion-card span {
  color: var(--muted);
  font-size: 11px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  padding: 52px 28px 42px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 460px;
  color: var(--muted);
}

.hint {
  color: var(--muted);
}

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

  .product-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .notice {
    padding-inline: 18px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-wordmark {
    width: min(190px, 48vw);
  }

  .icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-nav {
    display: none;
  }

  .mobile-menu.is-open {
    display: flex;
  }

  .collection-view,
  .product-view {
    padding-inline: 14px;
  }

  .collection-tools {
    display: grid;
    align-items: stretch;
  }

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

  .site-footer {
    display: grid;
    padding-inline: 14px;
  }
}
