.product-shell {
  width: min(100%, 1380px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.product-topbar {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.product-back {
  justify-self: start;
}

.product-logo {
  grid-column: 2;
}

.product-topbar-spacer {
  grid-column: 3;
}

.product-overview {
  display: grid;
  gap: 30px;
  padding: 22px 18px 44px;
  background: #fff;
}

.product-media {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.product-gallery-stage {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e2e3df;
  border-radius: 12px;
  background: #f8f8f7;
}

.product-gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.product-gallery-thumbnails {
  display: flex;
  gap: 9px;
  margin: 0 -18px;
  overflow-x: auto;
  padding: 2px 18px 8px;
  scroll-padding-inline: 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.product-gallery-thumbnail {
  display: grid;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 3px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #b7bbb8;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-gallery-thumbnail:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.product-gallery-thumbnail.is-active {
  border: 2px solid var(--green);
  box-shadow: 0 0 0 2px rgba(14, 95, 54, 0.12);
}

.product-gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  pointer-events: none;
}

.product-gallery-thumbnail:focus-visible,
.product-buy-button:focus-visible,
.product-return-link:focus-visible {
  outline: 3px solid rgba(14, 95, 54, 0.42);
  outline-offset: 3px;
}

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

.product-eyebrow,
.product-section-heading > span,
.product-decision-copy > span {
  display: block;
  color: #a86e20;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.product-summary h1,
.product-section-heading h2,
.product-decision h2 {
  color: var(--green-dark);
  font-family: "Times New Roman", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

.product-summary h1 {
  margin: 9px 0 0;
  font-size: clamp(32px, 9vw, 46px);
  line-height: 1;
}

.product-lead {
  margin: 14px 0 0;
  color: #3d4540;
  font-size: 15px;
  line-height: 1.55;
}

.product-summary-divider {
  height: 1px;
  margin: 22px 0;
  background: #d8dbd8;
}

.product-summary-section + .product-summary-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #d8dbd8;
}

.product-summary-section h2 {
  margin: 0 0 14px;
  color: #171a18;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.product-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.product-details > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.product-details dt,
.product-details dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.product-details dt {
  color: #202521;
  font-weight: 800;
}

.product-details dd {
  color: #4a514c;
}

.product-about ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.product-about li {
  padding-left: 2px;
  color: #303631;
  font-size: 13px;
  line-height: 1.5;
}

.product-buy-button {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 24px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #11643a, #063f27);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 11px 23px rgba(8, 68, 39, 0.2);
}

.product-buy-button:hover {
  background: linear-gradient(135deg, #147344, #073922);
}

.product-fit-note {
  margin: 13px 0 0;
  color: #5c4630;
  font-size: 11px;
  line-height: 1.45;
}

.product-a-plus-intro {
  padding: 46px 18px 24px;
  background:
    radial-gradient(circle at 88% 9%, rgba(211, 163, 82, 0.16), transparent 34%),
    linear-gradient(180deg, #f7f1e7 0%, #fffdf8 100%);
}

.product-a-plus-hero {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(14, 54, 34, 0.12);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(17, 42, 27, 0.13);
}

.product-a-plus-hero img,
.product-feature-visual img,
.product-visual-card picture img {
  width: 100%;
  height: auto;
}

.product-section {
  padding: 42px 18px;
}

.product-support-section,
.product-engineering-section {
  background: #fffefa;
}

.product-feature-section,
.product-guides-section {
  background: linear-gradient(180deg, #f1f4ef 0%, #f8f7f2 100%);
}

.product-section-heading {
  max-width: 760px;
  margin: 0 auto 24px;
}

.product-section-heading h2 {
  margin: 8px 0 0;
  font-size: 29px;
  line-height: 1.02;
}

.product-section-heading p {
  margin: 11px 0 0;
  color: #485149;
  font-size: 13px;
  line-height: 1.55;
}

.product-feature-list,
.product-visual-list {
  display: grid;
  max-width: 1200px;
  gap: 18px;
  margin: 0 auto;
}

.product-feature-card,
.product-visual-card {
  overflow: hidden;
  border: 1px solid rgba(220, 216, 206, 0.98);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 11px 27px rgba(22, 31, 24, 0.09);
}

.product-feature-card-important {
  border-color: rgba(192, 126, 43, 0.42);
  box-shadow: 0 12px 30px rgba(130, 83, 28, 0.12);
}

.product-feature-copy {
  padding: 20px 18px 18px;
}

.product-feature-copy > span {
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: #e8c985;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}

.product-feature-copy h3,
.product-visual-card h3 {
  color: var(--green-dark);
  font-family: "Times New Roman", Georgia, serif;
  font-weight: 700;
}

.product-feature-copy h3 {
  margin: 11px 0 0;
  font-size: 23px;
  line-height: 1.05;
}

.product-feature-copy p {
  margin: 9px 0 0;
  color: #454e47;
  font-size: 12px;
  line-height: 1.55;
}

.product-feature-visual,
.product-visual-card picture {
  display: block;
  background: #fff;
}

.product-visual-card h3 {
  margin: 0;
  padding: 15px 18px;
  border-bottom: 1px solid #ece8df;
  font-size: 20px;
  line-height: 1.1;
}

.product-decision {
  padding: 48px 18px calc(50px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 0%, rgba(223, 180, 103, 0.16), transparent 42%),
    linear-gradient(180deg, #0b4b2e, #052e1d);
  color: #fff;
}

.product-decision-copy {
  max-width: 860px;
  margin: 0 auto;
}

.product-decision-copy > span {
  color: #e7c783;
}

.product-decision h2 {
  margin: 9px 0 0;
  color: #fff;
  font-size: 31px;
  line-height: 1;
}

.product-decision-copy > p {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.65;
}

.product-compatibility-callout {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(230, 194, 126, 0.34);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
}

.product-compatibility-callout i {
  color: #e7c783;
  font-size: 20px;
  line-height: 1.3;
}

.product-compatibility-callout p {
  margin: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.55;
}

.product-buy-button-final {
  background: linear-gradient(135deg, #d29d4f, #b87423);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.product-buy-button-final:hover {
  background: linear-gradient(135deg, #deb061, #a9671e);
}

.product-return-link {
  display: block;
  width: max-content;
  margin: 21px auto 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.48);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 380px) {
  .product-topbar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .product-back span {
    font-size: 10px;
  }

  .product-logo {
    width: 100px;
  }

  .product-overview,
  .product-a-plus-intro,
  .product-section,
  .product-decision {
    padding-right: 14px;
    padding-left: 14px;
  }

  .product-gallery-thumbnails {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
    scroll-padding-inline: 14px;
  }

  .product-summary h1 {
    font-size: 31px;
  }

  .product-details > div {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 9px;
  }
}

@media (min-width: 768px) {
  .product-shell {
    border-radius: 18px;
  }

  .product-topbar {
    min-height: 60px;
    padding: 0 40px;
  }

  .product-back {
    font-size: 13px;
  }

  .product-logo {
    width: 142px;
  }

  .product-overview {
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    align-items: start;
    gap: clamp(28px, 4vw, 58px);
    padding: 48px 40px 68px;
  }

  .product-media {
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start;
    gap: 14px;
  }

  .product-gallery-stage {
    grid-column: 2;
    grid-row: 1;
    border-radius: 4px;
  }

  .product-gallery-thumbnails {
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    gap: 8px;
    max-height: 620px;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 4px 2px 2px;
    scroll-padding-block: 2px;
    scroll-snap-type: y proximity;
  }

  .product-gallery-thumbnail {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }

  .product-summary h1 {
    font-size: clamp(36px, 3.4vw, 48px);
    line-height: 1.02;
  }

  .product-lead {
    font-size: 16px;
  }

  .product-summary-section h2 {
    font-size: 23px;
  }

  .product-details > div {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .product-details dt,
  .product-details dd,
  .product-about li {
    font-size: 13px;
  }

  .product-buy-button {
    min-height: 52px;
  }

  .product-fit-note {
    font-size: 12px;
  }

  .product-a-plus-intro {
    padding: 76px 40px 38px;
  }

  .product-a-plus-hero {
    border-radius: 16px;
  }

  .product-section {
    padding: 72px 40px;
  }

  .product-section-heading {
    max-width: 920px;
    margin-bottom: 34px;
    text-align: center;
  }

  .product-section-heading h2 {
    font-size: 43px;
  }

  .product-section-heading p {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    font-size: 15px;
  }

  .product-feature-list,
  .product-visual-list {
    gap: 28px;
  }

  .product-feature-card {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: stretch;
  }

  .product-feature-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .product-feature-card:nth-child(even) .product-feature-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .product-feature-card:nth-child(even) .product-feature-visual {
    grid-column: 1;
    grid-row: 1;
  }

  .product-feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 28px;
  }

  .product-feature-copy h3 {
    font-size: 28px;
  }

  .product-feature-copy p {
    font-size: 14px;
  }

  .product-feature-visual {
    display: flex;
    align-items: center;
  }

  .product-visual-card h3 {
    padding: 18px 24px;
    font-size: 24px;
  }

  .product-decision {
    padding: 80px 40px calc(70px + env(safe-area-inset-bottom));
  }

  .product-decision-copy {
    text-align: center;
  }

  .product-decision h2 {
    font-size: 49px;
  }

  .product-decision-copy > p {
    font-size: 15px;
  }

  .product-compatibility-callout {
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }

  .product-buy-button-final {
    width: auto;
    min-width: 230px;
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery-thumbnail {
    transition: none;
  }
}
