.product-header {
  position: sticky;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 22px clamp(18px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.breadcrumb a:hover {
  color: var(--green);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
  min-height: 660px;
  background: #edf0e9;
}

.product-hero-copy {
  align-self: center;
  max-width: 720px;
  padding: clamp(54px, 7vw, 100px) clamp(24px, 5vw, 76px);
}

.product-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(48px, 6vw, 76px);
  color: var(--green-dark);
}

.product-lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.product-hero-media {
  min-height: 660px;
  margin: 0;
  overflow: hidden;
  background: #d9ddd6;
}

.product-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-specs span {
  padding: 9px 12px;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.button.outline {
  color: var(--green-dark);
  background: transparent;
  border-color: var(--green);
}

.product-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.product-trust div {
  padding: 26px clamp(18px, 3vw, 38px);
  background: #fff;
}

.product-trust strong,
.product-trust span {
  display: block;
}

.product-trust strong {
  margin-bottom: 7px;
  color: var(--green);
  font-size: 17px;
}

.product-trust span {
  color: var(--muted);
  line-height: 1.55;
}

.product-section {
  padding: clamp(68px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.product-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.product-heading h2,
.panel-intro h2,
.product-quote h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.1;
}

.product-heading p:not(.eyebrow),
.panel-intro > p,
.product-quote p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.style-selector-section {
  padding-bottom: 34px;
  background: #fff;
}

.style-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 4px;
  padding: 4px;
  background: #e6ebe4;
  border-radius: 8px;
}

.style-tab {
  min-height: 48px;
  padding: 0 22px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.style-tab.is-active {
  color: #fff;
  background: var(--green);
}

.style-panel[hidden] {
  display: none;
}

.panel-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: end;
  padding-top: 54px;
  padding-bottom: 36px;
  background: #fff;
}

.panel-intro > p {
  max-width: 700px;
  margin-bottom: 4px;
}

.product-gallery,
.transom-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 290px;
  gap: 12px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(70px, 8vw, 100px);
  background: #fff;
}

.product-gallery button,
.transom-gallery button {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: #eef1eb;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: zoom-in;
}

.product-gallery button:hover img,
.transom-gallery button:hover img {
  transform: scale(1.025);
}

.product-gallery img,
.transom-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.product-gallery .gallery-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.transom-gallery .gallery-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.specifications-band {
  background: #eef0e9;
}

.spec-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.spec-list {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spec-list div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.spec-list div:last-child {
  border-bottom: 0;
}

.spec-list dt {
  color: var(--green-dark);
  font-weight: 800;
}

.spec-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.color-panel {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.color-panel h3 {
  font-size: 22px;
}

.color-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.color-options {
  display: grid;
  gap: 10px;
}

.color-options span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.swatch {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 1px solid #aeb7ad;
  border-radius: 50%;
}

.swatch-white {
  background: #fff;
}

.swatch-black {
  background: #202421;
}

.feature-band {
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-grid article {
  min-height: 190px;
  padding: 28px;
  background: #fff;
}

.feature-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 19px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.size-band {
  background: #e2e8e0;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.size-grid span {
  display: grid;
  min-height: 64px;
  place-items: center;
  padding: 10px;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid #cad3c8;
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
}

.size-grid .custom-size {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.product-quote {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  padding: clamp(68px, 8vw, 100px) clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--green-dark);
}

.product-quote > div {
  max-width: 760px;
}

.product-quote .eyebrow {
  color: #efbd77;
}

.product-quote p:not(.eyebrow) {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.quote-button {
  flex: 0 0 auto;
  color: var(--green-dark);
  background: #fff;
}

.lightbox {
  width: min(1100px, 94vw);
  max-height: 92vh;
  padding: 44px 12px 12px;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(12, 19, 15, 0.84);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 56px);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 6px;
  right: 8px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

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

  .product-hero-media {
    min-height: 560px;
  }

  .product-trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-gallery,
  .transom-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 260px;
  }

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

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .size-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .product-hero {
    min-height: 0;
  }

  .product-hero h1 {
    font-size: 46px;
  }

  .product-hero-media {
    min-height: 430px;
  }

  .product-trust,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .panel-intro {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .style-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .product-gallery,
  .transom-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }

  .product-gallery .gallery-feature,
  .transom-gallery .gallery-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .size-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-quote {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-button {
    width: 100%;
  }
}
