:root {
  color-scheme: light;
  --ink: #161a22;
  --muted: #5d6573;
  --line: #dde3ec;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --accent: #0b6b61;
  --accent-strong: #084f48;
  --action: #f7c948;
  --action-strong: #f0b429;
  --danger: #b42318;
  --star: #e89b00;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 1rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 26px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--ink);
}

.product-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding: clamp(22px, 4vw, 48px);
}

.gallery {
  position: sticky;
  top: 76px;
  display: grid;
  gap: 14px;
}

.main-image-wrap {
  display: grid;
  place-items: center;
  min-height: clamp(360px, 48vw, 620px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.main-product-image {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: contain;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.thumbnail {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.thumbnail:hover,
.thumbnail.is-active {
  border-color: var(--accent);
  outline: 3px solid rgba(11, 107, 97, 0.14);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  min-width: 0;
}

.store-line,
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: 0;
}

.rating-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.stars {
  color: var(--star);
  font-size: 0.98rem;
  letter-spacing: 0;
}

.rating-line a {
  color: #145ea8;
  font-size: 0.95rem;
  font-weight: 650;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.price-block {
  margin-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.deal {
  margin: 0 0 6px;
  color: var(--danger);
  font-weight: 800;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.price {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
}

.compare {
  color: var(--muted);
  text-decoration: line-through;
}

.save {
  color: var(--danger);
  font-weight: 800;
}

.shipping,
.small-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.color-picker {
  margin-top: 18px;
}

.color-picker p {
  margin: 0 0 10px;
}

.swatches {
  display: flex;
  gap: 10px;
}

.swatch {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.swatch.is-selected {
  outline: 3px solid rgba(11, 107, 97, 0.2);
  border-color: var(--accent);
}

.graphite {
  background: #343a40;
}

.sand {
  background: #c4ad83;
}

.blue {
  background: #496a82;
}

.bullets {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 20px;
  color: #2e3440;
}

.buy-box {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stock {
  margin: 0;
  color: #067647;
  font-size: 1.08rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #161a22;
  background: var(--action);
}

.button.primary:hover {
  background: var(--action-strong);
}

.button.secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.section {
  padding: clamp(46px, 7vw, 86px) clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  background: #ffffff;
}

.copy-block {
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.copy-block p {
  margin: 0;
}

.specs-section {
  background: var(--soft);
}

.spec-table {
  display: grid;
  max-width: 920px;
  margin-top: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.spec-table div {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(180px, 1fr);
  border-top: 1px solid var(--line);
}

.spec-table div:first-child {
  border-top: 0;
}

.spec-table span,
.spec-table strong {
  padding: 14px 16px;
}

.spec-table span {
  color: var(--muted);
  background: #f9fafc;
}

.reviews-section {
  background: #ffffff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review {
  min-height: 160px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review p {
  margin: 0;
  color: var(--muted);
}

.checkout-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(38px, 6vw, 70px) clamp(16px, 4vw, 48px);
  color: #ffffff;
  background: var(--accent-strong);
}

.checkout-band .eyebrow {
  color: var(--action);
}

.checkout-band h2 {
  max-width: 18ch;
}

.site-footer {
  padding: 22px clamp(16px, 4vw, 48px);
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .product-shell,
  .detail-grid,
  .checkout-band {
    grid-template-columns: 1fr;
  }

  .gallery {
    position: static;
  }

  h1 {
    max-width: 15ch;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .checkout-band .button {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .product-shell {
    padding: 14px;
  }

  .main-image-wrap {
    min-height: 320px;
  }

  .thumbnail-row {
    gap: 8px;
  }

  .buy-box .button,
  .checkout-band .button {
    width: 100%;
  }

  .spec-table div {
    grid-template-columns: 1fr;
  }
}
