@font-face {
  font-family: Poppins;
  src: url("/vitality/goda-assets/feb024b15b6dd7.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: fallback;
}

@font-face {
  font-family: Poppins;
  src: url("/vitality/goda-assets/653868bb6e62ff.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: fallback;
}

:root {
  color-scheme: light;
  font-family: Poppins, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  background: #f8f7f3;
  color: #242321;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

.catalog {
  width: min(100% - 48px, 1040px);
  margin: 0 auto;
  padding: 48px 0 64px;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  margin-bottom: 48px;
}

.wordmark {
  display: block;
  width: 116px;
  height: auto;
}

.catalog-header h1 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.01em;
}

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

.product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.product-image {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  background: #f0efe9;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-name {
  display: block;
  padding: 18px 2px 8px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.product:hover .product-name {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product:focus-visible {
  outline: 2px solid #34312c;
  outline-offset: 5px;
}

@media (min-width: 900px) {
  .catalog {
    padding-top: 56px;
  }

  .product-list {
    gap: 32px;
  }
}

@media (max-width: 540px) {
  .catalog {
    width: min(100% - 32px, 420px);
    padding-top: 28px;
  }

  .catalog-header {
    margin-bottom: 28px;
  }

  .wordmark {
    width: 100px;
  }

  .product-list {
    gap: 14px;
  }

  .product-name {
    padding-top: 14px;
    font-size: 14px;
  }
}

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