:root {
  color-scheme: light;
  color: #152c23;
  background: #f8faf8;
  font:
    17px/1.55 system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #116c4e;
}
header {
  background: white;
  border-bottom: 1px solid #d5e4dc;
}
nav,
main,
footer {
  margin: auto;
  max-width: 70rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
}
nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
nav a:first-child {
  margin-right: auto;
}
nav img {
  display: block;
  object-fit: contain;
  max-width: 23vw;
}
main {
  min-height: 65vh;
}
h1 {
  line-height: 1.15;
  font-size: clamp(1.8rem, 4vw, 3rem);
}
form {
  margin: 2rem 0 1rem;
}
form div {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
input,
button,
.button {
  border-radius: 0.45rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
}
input {
  border: 1px solid #779387;
  width: min(22rem, 100%);
  min-width: 0;
}
button,
.button {
  background: #116c4e;
  border: 1px solid #116c4e;
  color: white;
  cursor: pointer;
  font-weight: 650;
}
.button {
  display: inline-block;
  text-decoration: none;
}
.products {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 44%), 1fr));
  gap: 0.8rem;
  padding: 0;
}
.products li {
  background: white;
  border: 1px solid #d5e4dc;
  border-radius: 0.6rem;
  padding: 0.85rem;
}
.products img {
  width: 100%;
  height: 9rem;
  object-fit: contain;
}
.products a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.35;
}
.products a:hover strong {
  text-decoration: underline;
}
.products span {
  color: #486457;
  font-size: 0.88rem;
}
.products p {
  margin: 0.45rem 0 0;
}
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
}
.detail img {
  width: 100%;
  max-height: 25rem;
  object-fit: contain;
  background: white;
  border-radius: 0.6rem;
  padding: 0.8rem;
}
.price {
  font-weight: 700;
  font-size: 1.35rem;
}
#cart li {
  margin: 0.5rem 0;
}
#cart button {
  margin-left: 0.65rem;
  background: white;
  color: #116c4e;
  padding: 0.2rem 0.55rem;
}
footer {
  border-top: 1px solid #d5e4dc;
  margin-top: 2rem;
}
@media (max-width: 38rem) {
  .detail {
    grid-template-columns: 1fr;
  }
  .detail img {
    max-height: 16rem;
  }
  nav {
    gap: 0.75rem;
  }
}
