:root {
  --green: #173d2b;
  --green-ink: #1f2a24;
  --cream: #f7f3e8;
  --cream-strong: #fffaf0;
  --aqua: #8fd6bf;
  --olive: #8a9b4f;
  --mango: #f5a623;
  --line: rgba(23, 61, 43, 0.14);
  --shadow: 0 18px 44px rgba(23, 61, 43, 0.12);
  --max: 1220px;
  font-family: Inter, "Avenir Next", Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--green-ink);
  background: var(--cream);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
}

body,
button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.page-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 46px);
  color: var(--green);
  background: rgba(247, 243, 232, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--green);
}

.brand-word {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1;
}

.brand-leaf {
  position: absolute;
  top: -10px;
  left: 48px;
  width: 13px;
  height: 22px;
  border-radius: 100% 0 100% 0;
  background: var(--olive);
  transform: rotate(33deg);
}

.back-link,
.cart-button,
.language-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: var(--cream-strong);
  font-size: 14px;
  font-weight: 850;
}

.language-select select {
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  outline: 0;
}

.language-select option {
  color: var(--green);
  background: var(--cream-strong);
}

.back-link {
  padding: 0 16px;
}

.cart-button {
  gap: 8px;
  padding: 0 14px;
}

.cart-button span {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: var(--green);
  background: var(--mango);
  font-size: 12px;
}

main,
.box-footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.box-hero {
  position: relative;
  margin: 24px 0 44px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--green);
  box-shadow: var(--shadow);
}

.box-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin: 0;
  color: inherit;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.box-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 250, 240, 0.86);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.45;
}

.box-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 44px;
}

.box-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream-strong);
  box-shadow: var(--shadow);
}

.box-image-slot {
  margin: 0;
  background: var(--cream-strong);
  border-bottom: 1px solid var(--line);
}

.box-image-slot img {
  display: block;
  width: 100%;
  height: auto;
}

.box-card-copy {
  display: flex;
  flex: 1;
  min-height: 310px;
  flex-direction: column;
  padding: 20px;
}

.box-number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--aqua);
  font-size: 14px;
  font-weight: 900;
}

.box-card h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(24px, 2.2vw, 31px);
  line-height: 1;
}

.box-card p {
  margin: 10px 0 0;
  color: rgba(31, 42, 36, 0.72);
  font-size: 15px;
  line-height: 1.45;
}

.box-card .best-for {
  color: var(--green);
  font-weight: 760;
}

.box-meta {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-weight: 850;
}

.box-meta span + span {
  color: rgba(31, 42, 36, 0.62);
  font-size: 13px;
}

.add-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: auto;
  border: 0;
  border-radius: 999px;
  color: var(--cream-strong);
  background: var(--green);
  font-weight: 900;
}

.box-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-weight: 800;
}

.box-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .box-card-grid {
    grid-template-columns: 1fr;
  }

  .box-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  }

  .box-image-slot {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .box-card-copy {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .page-header {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .brand-word {
    font-size: 15px;
  }

  .brand-leaf {
    left: 40px;
  }

  .back-link {
    display: none;
  }

  .box-card {
    display: block;
  }

  .box-image-slot {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .box-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
