:root {
  color-scheme: light;
  --ink: #142019;
  --muted: #607067;
  --line: #dce3dd;
  --soft: #f5f7f4;
  --green: #21865a;
  --green-dark: #166341;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

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

.product-header {
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.product-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 18px;
}

.product-brand span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
}

.product-header nav { display: flex; gap: 28px; }
.product-header nav a { color: #344239; text-decoration: none; font-weight: 700; }
.product-header nav a:hover { color: var(--green); }

main { width: min(1220px, calc(100% - 40px)); margin: 0 auto; }

.breadcrumbs {
  min-width: 0;
  padding: 24px 0;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
}

.breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }

.product-detail {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(40px, 7vw, 92px);
  padding: 12px 0 72px;
  align-items: start;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2, h3, p { letter-spacing: 0; }

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
}

.product-lead { margin: 24px 0; color: var(--muted); font-size: 18px; max-width: 680px; }

.product-purchase {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.product-purchase strong { font-size: 30px; }
.product-purchase span { font-weight: 700; }
.in-stock { color: var(--green-dark); }
.out-of-stock { color: #93472f; }

.primary-button {
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--green);
  text-decoration: none;
  font-weight: 800;
}

.primary-button:hover { background: var(--green-dark); }

dl { margin: 30px 0 0; border-top: 1px solid var(--line); }
dl div { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 20px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.product-spec-link { color: var(--green-dark); text-underline-offset: 3px; }
.product-spec-link:hover { color: var(--green); }

.product-description,
.product-information {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(320px, 1.2fr);
  gap: clamp(36px, 8vw, 110px);
}

.product-description {
  border-bottom: 0;
}

.product-description h2,
.product-information h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
}

.product-description-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
}

.product-description-copy p:last-child { margin-bottom: 0; }

.product-information > p { margin: 0; color: var(--muted); font-size: 17px; }

.related-section { padding: 70px 0 80px; }
.section-heading { margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.related-product { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); }
.related-product-image { aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--soft); }
.related-product img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.related-product > div { padding: 16px; }
.related-product p { margin: 0 0 7px; color: var(--muted); font-size: 13px; }
.related-product h3 { margin: 0 0 14px; font-size: 16px; line-height: 1.35; }
.related-product h3 a { text-decoration: none; }
.related-product h3 a:hover { color: var(--green); }

footer {
  min-height: 90px;
  padding: 28px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

.not-found { min-height: calc(100vh - 76px); padding: 15vh 0; max-width: 720px; }
.not-found h1 { margin-bottom: 18px; }
.not-found p:not(.eyebrow) { margin-bottom: 28px; color: var(--muted); font-size: 18px; }

@media (max-width: 820px) {
  .product-header nav { display: none; }
  .product-detail, .product-description, .product-information { grid-template-columns: 1fr; }
  .product-detail { gap: 30px; padding-bottom: 54px; }
  .product-image { max-height: 520px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  main { width: min(100% - 28px, 1220px); }
  .product-header { padding-inline: 14px; }
  .product-brand { font-size: 16px; }
  .product-brand span { width: 40px; height: 40px; }
  h1 { font-size: 36px; }
  .product-purchase { align-items: flex-start; flex-direction: column; gap: 4px; }
  .primary-button { width: 100%; }
  dl div { grid-template-columns: 1fr; gap: 3px; }
  .product-description, .product-information { padding: 48px 0; }
  .related-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
}
