.gs-product-configurator-hero {
  padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 7vw, 96px);
  background: rgba(var(--bg-a), 1);
  color: rgba(var(--cl-d), 1);
}

.gs-product-configurator-hero__container {
  min-width: 0;
}

.gs-product-configurator-hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--br-a);
}

.gs-product-configurator-hero__eyebrow {
  margin-bottom: 14px;
  color: rgba(var(--cl-f), 1);
  font: 700 12px/1.1 var(--font-family);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.gs-product-configurator-hero__heading {
  max-width: 760px;
  margin: 0;
  color: rgba(var(--cl-d), 1);
  font: 700 clamp(34px, 3.6vw, 52px)/1.04 var(--font-family2);
  letter-spacing: -.04em;
}

.gs-product-configurator-hero__heading span {
  color: rgba(var(--cl-f), 1);
}

.gs-product-configurator-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 18px;
  color: rgba(var(--cl-d), .82);
  font: 400 12px/1.2 var(--font-family);
}

.gs-product-configurator-hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gs-product-configurator-hero__stars {
  display: inline-flex;
  gap: 1px;
  line-height: 1;
}

.gs-product-configurator-hero__star {
  font-size: 15px;
  line-height: 1;
}

.gs-product-configurator-hero__star.is-full {
  color: rgba(var(--cl-f), 1);
}

.gs-product-configurator-hero__star.is-empty {
  color: rgba(var(--cl-d), .24);
}

.gs-product-configurator-hero__star.is-partial {
  color: transparent;
  background: linear-gradient(90deg, rgba(var(--cl-f), 1) var(--star-fill), rgba(var(--cl-d), .24) var(--star-fill));
  -webkit-background-clip: text;
  background-clip: text;
}

.gs-product-configurator-hero__badge {
  padding: 5px 10px;
  border: 1px solid var(--br-a);
  border-radius: 999px;
  color: rgba(var(--cl-d), .82);
  background: rgba(var(--bg-a), 1);
  font-size: 11px;
}

.gs-product-configurator-hero__price {
  min-width: 150px;
  text-align: right;
}

.gs-product-configurator-hero__price-label {
  margin-bottom: 4px;
  color: rgba(var(--cl-d), .76);
  font: 700 10px/1.1 var(--font-family);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gs-product-configurator-hero__price-value {
  color: rgba(var(--cl-d), 1);
  font: 700 clamp(34px, 4vw, 48px)/1 var(--font-family2);
  letter-spacing: -.035em;
}

.gs-product-configurator-hero__price-note {
  max-width: 180px;
  margin-top: 5px;
  color: rgba(var(--cl-d), .76);
  font: 400 14px/1.3 var(--font-family);
  text-align: right;
}

.gs-product-configurator-hero__description {
  max-width: 690px;
  margin: 28px 0 34px;
  color: rgba(var(--cl-d), 1);
  font: 400 14px/1.55 var(--font-family);
}

.gs-product-configurator-hero__description p {
  margin: 0;
}

.gs-product-configurator-hero__description b,
.gs-product-configurator-hero__description strong {
  font-weight: 700;
}

.gs-product-configurator-hero__configurator {
  min-width: 0;
}

.gs-product-configurator-hero__placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 32px;
  border: 1px dashed var(--br-a);
  border-radius: 20px;
  color: rgba(var(--cl-d), .68);
  background: rgba(var(--bg-a), 1);
  font: 400 16px/1.4 var(--font-family);
  text-align: center;
}

@media (max-width: 700px) {
  .gs-product-configurator-hero__intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gs-product-configurator-hero__price {
    text-align: left;
  }

  .gs-product-configurator-hero__price-note {
    text-align: left;
  }

  .gs-product-configurator-hero__heading {
    font-size: 42px;
  }
}

/* T7 · the photo in the configurator's place (no shortcode) */
.gs-product-configurator-hero__photo {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(var(--bg-a), 1);
  box-shadow: 0 8px 20px rgba(77, 61, 4, .1);
}

.gs-product-configurator-hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
}

/* T7 · photo thumbnails: the description sits under the rating line, price + thumbnails form the right column */
.gs-product-configurator-hero--has-gallery .gs-product-configurator-hero__intro {
  align-items: start;
}

.gs-product-configurator-hero--has-gallery .gs-product-configurator-hero__copy .gs-product-configurator-hero__description {
  margin: 18px 0 0;
}

.gs-product-configurator-hero--has-gallery .gs-product-configurator-hero__configurator {
  margin-top: 34px;
}

.gs-product-configurator-hero__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  min-width: 0;
}

.gs-product-configurator-hero__gallery {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: 100%;
}

.gs-product-configurator-hero__thumbs {
  display: flex;
  gap: 8px;
  max-width: 100%;
}

.gs-product-configurator-hero__thumb {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--br-a);
  background: rgba(var(--bg-c), 1);
  color: rgba(var(--cl-d), 1);
  font: 700 14px/1 var(--font-family);
  text-decoration: none;
}

.gs-product-configurator-hero__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-product-configurator-hero__thumb:hover,
.gs-product-configurator-hero__thumb:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(var(--cl-f), 1);
  color: rgba(var(--cl-f), 1);
}

.gs-product-configurator-hero__thumb.is-hidden {
  display: none;
}

.gs-product-configurator-hero__gallery-label {
  color: rgba(var(--cl-d), .76);
  font: 400 12px/16px var(--font-family);
  text-align: right;
}

/* with thumbnails, the side column moves under the text below 1024 px (as on the review site), so the text keeps its width */
@media (max-width: 1023px) {
  .gs-product-configurator-hero--has-gallery .gs-product-configurator-hero__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .gs-product-configurator-hero--has-gallery .gs-product-configurator-hero__price,
  .gs-product-configurator-hero--has-gallery .gs-product-configurator-hero__price-note,
  .gs-product-configurator-hero--has-gallery .gs-product-configurator-hero__gallery-label {
    text-align: left;
  }

  .gs-product-configurator-hero--has-gallery .gs-product-configurator-hero__price-note {
    max-width: 420px;
  }

  .gs-product-configurator-hero__side,
  .gs-product-configurator-hero__gallery {
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .gs-product-configurator-hero__side,
  .gs-product-configurator-hero__gallery {
    align-items: flex-start;
  }

  .gs-product-configurator-hero__thumbs {
    overflow-x: auto;
  }

  .gs-product-configurator-hero__gallery-label {
    text-align: left;
  }

  .gs-product-configurator-hero__photo {
    border-radius: 16px;
  }

  .gs-product-configurator-hero--has-gallery .gs-product-configurator-hero__configurator {
    margin-top: 24px;
  }
}

/* Narrow phones: the five tiles (four photos + "+N") share the row instead of overflowing it. */
@media (max-width: 480px) {
  .gs-product-configurator-hero__thumbs {
    width: 100%;
    overflow-x: visible;
  }

  .gs-product-configurator-hero__thumb {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 64px;
    height: auto;
    aspect-ratio: 1;
  }
}

/* a linked photo in the configurator's place (2026-12-02: Frosted opens the configurator with a preset size) */
.gs-product-configurator-hero__photo--linked a { display: block; }
.gs-product-configurator-hero__photo--linked a:hover img { opacity: .94; }
.gs-product-configurator-hero__photo-cta { display: flex; justify-content: center; margin-top: 20px; }
