/* ── Font ── */
@font-face {
  font-family: "Max";
  src: url("MaxVF.woff2") format("woff2"), url("MaxVF.ttf") format("truetype");
  font-display: block;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: 50;
}

body {
  background: #eee;
  font-family: "Max", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #000;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 12px 0;
}

.nav-group {
  display: flex;
  justify-content: center;
  gap: 6px;
  position: relative;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 29px;
  padding: 7px 12px 5px;
  background: #d9d9d9;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  box-shadow: 1px 2px 8px rgba(0, 0, 0, 0.15);
  font-family: inherit;
  font-size: 16px;
  color: #000;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.nav-btn.active {
  border-color: #000;
}

.nav-btn:hover {
  border-color: #fff;
}

.nav-btn.active:hover {
  border-color: #000;
}

.nav-btn.about-active {
  border-color: #fff;
}

/* ── About overlay panel ── */
.about-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  padding: 12px;
  background: #d9d9d9;
  border: 1px solid #fff;
  border-radius: 5px;
  box-shadow: 1px 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  line-height: 1.4;
}

.about-panel.open {
  display: block;
}

.about-panel h2 {
  font-size: 16px;
  font-weight: 50;
  margin-bottom: 10px;
}

.about-panel p {
  margin-bottom: 10px;
}

.about-panel p:last-child {
  margin-bottom: 0;
}

.about-panel .muted {
  color: rgba(0, 0, 0, 0.5);
}

.about-panel a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.about-panel a:hover {
  border-bottom-color: rgba(0, 0, 0, 0.6);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ── Catalogue ── */
.catalogue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.row {
  display: flex;
  justify-content: center;
  gap: 12px;
  height: 300px;
  align-items: flex-start;
}

.img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.img-wrap img {
  height: calc(100% - 16px);
  width: auto;
  object-fit: cover;
  display: block;
}

.img-wrap figcaption {
  font-size: 10px;
  text-align: left;
  align-self: stretch;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  justify-content: space-between;
}

.img-wrap:hover figcaption {
  opacity: 1;
}

.img-wrap.product figcaption {
  opacity: 1;
}

.buy-label {
  text-align: right;
}

/* ── Page layouts (about / shop) ── */
.page {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page h1 {
  font-size: 22px;
  font-weight: normal;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.page p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.72);
  margin-bottom: 12px;
}

.page .muted {
  color: rgba(0, 0, 0, 0.5);
  font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .row {
    height: 200px;
  }
}

@media (max-width: 600px) {
  .row {
    height: 140px;
  }
  .nav-btn {
    font-size: 14px;
    padding: 5px 10px;
    height: 26px;
  }
}
