:root {
  --product-green: #0d6b3c;
  --product-green-dark: #074527;
  --product-green-soft: #edf7f1;
  --product-ink: #17211b;
  --product-muted: #66736b;
  --product-line: #dfe8e2;
  --product-paper: #ffffff;
  --product-page: #f5f8f6;
  --product-shadow: 0 14px 40px rgba(9, 54, 31, 0.08);
}

html {
  scroll-behavior: smooth;
}

body.simple-product-page {
  color: var(--product-ink);
  background: var(--product-page);
  line-height: 1.7;
}

body.simple-product-page .simple-product-main {
  width: min(1200px, calc(100% - 40px));
  margin: 34px auto 72px;
  padding-top: 86px;
}

body.admin-bar.simple-product-page .simple-product-tabs {
  top: 108px;
}

.simple-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
  max-width: none;
  margin: 0;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--product-line);
  border-radius: 24px;
  background: var(--product-paper);
  box-shadow: var(--product-shadow);
}

.simple-product-gallery {
  display: block;
  min-width: 0;
}

.simple-product-main-image {
  display: grid;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 1 / 1;
  place-items: center;
  border: 1px solid var(--product-line);
  border-radius: 18px;
  background: #fff;
}

.simple-product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 160ms ease;
}

.simple-product-main-image img.is-switching {
  opacity: 0.18;
}

.simple-product-image-placeholder {
  min-height: 100%;
  border-radius: inherit;
}

.simple-product-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.gallery-thumb {
  display: block;
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.gallery-thumb img,
.simple-product-thumbs .gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible,
.gallery-thumb.is-active {
  border-color: var(--product-green);
}

.gallery-thumb:hover {
  transform: translateY(-2px);
}

.gallery-thumb:focus-visible {
  outline: 3px solid rgba(13, 107, 60, 0.2);
  outline-offset: 2px;
}

.simple-product-copy {
  padding-top: 0;
}

.simple-product-copy .eyebrow {
  margin: 0 0 9px;
  color: var(--product-green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.simple-product-copy h1 {
  max-width: none;
  margin: 0 0 22px;
  color: #0b2718;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: 0;
}

.simple-product-copy > p:not(.eyebrow) {
  margin: 0 0 15px;
  color: #536159;
  font-size: 1.02rem;
  line-height: 1.7;
}

.quick-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.quick-spec {
  min-width: 0;
  padding: 13px 15px;
  border-radius: 8px;
  background: var(--product-green-soft);
}

.quick-spec strong,
.quick-spec span {
  display: block;
  overflow-wrap: anywhere;
}

.quick-spec strong {
  color: var(--product-green-dark);
  font-size: 1.05rem;
}

.quick-spec span {
  color: var(--product-muted);
  font-size: 0.8rem;
}

.simple-product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.simple-product-copy .simple-quote-link,
.simple-product-copy .simple-pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 0;
  padding: 0 27px;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.drawer-contact .drawer-product-contact {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--dark-green);
  background: var(--lime);
  font-weight: 800;
  text-decoration: none;
}

.simple-product-copy .simple-quote-link {
  color: #fff;
  background: var(--product-green);
  box-shadow: 0 9px 22px rgba(13, 107, 60, 0.22);
}

.simple-product-copy .simple-quote-link:hover {
  color: #fff;
  background: var(--product-green-dark);
}

.simple-product-copy .simple-pdf-link {
  color: var(--product-green-dark);
  border: 1px solid rgba(13, 107, 60, 0.35);
  background: transparent;
}

.simple-product-tabs {
  position: sticky;
  top: 76px;
  z-index: 15;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: none;
  margin: 24px 0;
  padding: 10px;
  border: 1px solid var(--product-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(9, 54, 31, 0.05);
  backdrop-filter: blur(12px);
  scrollbar-width: thin;
}

.simple-product-tabs a {
  display: block;
  flex: 1 0 108px;
  min-width: 0;
  min-height: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  color: #435149;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.simple-product-tabs a:hover,
.simple-product-tabs a.is-active {
  color: var(--product-green-dark);
  background: var(--product-green-soft);
}

.simple-product-content,
.simple-product-message {
  scroll-margin-top: 150px;
  margin-top: 24px;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--product-line);
  border-radius: 20px;
  background: var(--product-paper);
}

.simple-product-content h2,
.simple-product-message h2 {
  max-width: none;
  margin: 0 0 18px;
  color: #0b2718;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-lead {
  max-width: 850px;
  margin: -4px 0 26px;
  color: var(--product-muted);
}

.section-lead > :first-child,
.info-panel > :first-child {
  margin-top: 0;
}

.section-lead > :last-child,
.info-panel > :last-child {
  margin-bottom: 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.info-panel {
  min-width: 0;
  padding: 24px;
  border-radius: 8px;
  background: var(--product-green-soft);
}

.info-panel h3 {
  margin: 0 0 10px;
  color: var(--product-green-dark);
  font-size: 1.15rem;
}

.info-panel p,
.info-panel ul {
  color: #526158;
}

.info-panel ul {
  padding-left: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--product-line);
  border-radius: 8px;
  background: #fcfefd;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 107, 60, 0.24);
  box-shadow: 0 12px 28px rgba(9, 54, 31, 0.07);
}

.feature-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.feature-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--product-green);
  font-size: 0.8rem;
  font-weight: 800;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: #173923;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--product-muted);
}

.product-video-wrap {
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: 16px;
  background: #07110b;
  box-shadow: 0 12px 30px rgba(9, 54, 31, 0.1);
}

.product-video-wrap iframe,
.product-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
  object-fit: contain;
}

.simple-external-media-link {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
}

.parameter-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--product-line);
  border-radius: 14px;
}

.parameter-table-wrap table {
  width: 100%;
  max-width: none;
  margin: 0;
  border-collapse: collapse;
  background: #fff;
}

.parameter-table-wrap th,
.parameter-table-wrap td {
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid var(--product-line);
  text-align: left;
  vertical-align: top;
}

.parameter-table-wrap tr:last-child th,
.parameter-table-wrap tr:last-child td {
  border-bottom: 0;
}

.parameter-table-wrap th {
  width: 31%;
  min-width: 190px;
  color: #173923;
  background: #f2f8f4;
  font-size: 0.94rem;
}

.parameter-table-wrap td {
  color: #526158;
}

.parameter-detail {
  overflow: hidden;
  margin: 26px 0 0;
  border: 1px solid var(--product-line);
  border-radius: 16px;
  background: #fff;
}

.parameter-detail img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
}

.parameter-download {
  margin: 20px 0 0;
}

.parameter-download a {
  color: var(--product-green);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 11px;
}

.faq-list details {
  padding: 0 20px;
  border: 1px solid var(--product-line);
  border-radius: 8px;
  background: #fcfefd;
}

.faq-list summary {
  position: relative;
  padding: 17px 34px 17px 0;
  color: #173923;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--product-green);
  border-bottom: 2px solid var(--product-green);
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 160ms ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--product-muted);
}

.simple-product-message {
  color: #fff;
  border-color: var(--product-green);
  background: linear-gradient(135deg, #084b2a, var(--product-green));
}

.simple-product-message h2 {
  color: #fff;
}

.simple-product-message .wp-cf7-form-slot,
.simple-product-message .wpcf7,
.simple-product-message .contact-form {
  width: 100%;
  max-width: none;
  margin: 0;
}

.simple-product-message .wp-cf7-form-slot > .wpcf7 {
  color: var(--product-ink);
}

.simple-product-message .wpcf7 form {
  width: 100%;
}

.simple-product-message .wpcf7-response-output {
  margin: 14px 0 0;
  color: #fff;
}

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

  .simple-product-copy h1 {
    font-size: clamp(2.15rem, 8vw, 3.4rem);
  }

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

  .feature-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 782px) {
  body.admin-bar.simple-product-page .simple-product-tabs {
    top: 114px;
  }
}

@media (max-width: 700px) {
  body.simple-product-page .simple-product-main {
    width: min(100% - 24px, 1200px);
    margin-top: 18px;
    padding-top: 66px;
  }

  .simple-product-hero,
  .simple-product-content,
  .simple-product-message {
    padding: 20px;
    border-radius: 16px;
  }

  .simple-product-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .simple-product-tabs {
    top: 66px;
    margin: 14px 0;
  }

  .quick-specs {
    grid-template-columns: 1fr;
  }

  .simple-product-copy .simple-quote-link,
  .simple-product-copy .simple-pdf-link {
    flex: 1 1 auto;
  }

  .parameter-table-wrap th,
  .parameter-table-wrap td {
    padding: 13px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .simple-product-main-image img,
  .gallery-thumb,
  .feature-card,
  .faq-list summary::after {
    transition: none;
  }
}
