/* Product purchasing summary. Scoped to the detail page and shared by SSR/JS. */
.product-detail-main .product-reference-summary {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 44px;
}
.product-detail-main .product-reference-summary .detail-gallery {
  height: auto;
  min-height: 0;
  align-self: start;
  position: relative;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}
.product-detail-main .detail-gallery-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 72px;
  z-index: 2;
  padding: 6px 10px;
  background: #ffffffeb;
}
.product-detail-main .product-reference-summary .detail-gallery-stage {
  aspect-ratio: 1.05;
  min-height: 0;
}
.product-detail-main .detail-gallery-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-offer {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.offer-heading h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.8px;
}
.offer-intro {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.offer-price-panel {
  margin: 24px 0;
  padding: 18px 22px;
  background: #faf7ee;
  border-left: 3px solid var(--yellow);
}
.offer-field-label {
  display: block;
  color: #746648;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
}
.offer-price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin: 5px 0;
}
.offer-currency {
  font-size: 14px;
  font-weight: 700;
}
.offer-price {
  color: var(--navy);
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.8px;
}
.offer-price-on-request {
  font-size: 26px;
  letter-spacing: -0.5px;
}
.offer-unit {
  color: var(--muted);
  font-size: 13px;
}
.offer-price-panel > p,
.offer-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-line;
}
.offer-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.product-offer h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.offer-selected-color {
  color: var(--muted);
  font-size: 11px;
}
.offer-color-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.offer-color-section .offer-section-heading {
  flex-shrink: 0;
  margin: 0;
}
.offer-color-section .offer-selected-color,
.offer-color-section > .offer-help {
  display: none;
}
.offer-colors {
  display: flex;
  flex: 0 1 auto;
  margin-left: auto;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: thin;
  gap: 10px;
}
.offer-color {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-height: 30px;
  min-width: 84px;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}
.offer-color:hover,
.offer-color[aria-pressed='true'] {
  border-color: #b88b14;
  background: #fff9e6;
  box-shadow: inset 0 0 0 1px #b88b14;
}
.offer-color-dot {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid #0002;
  border-radius: 50%;
  box-shadow: 0 1px 3px #102c4014;
}
.offer-color > i {
  margin-left: auto;
  width: 10px;
  visibility: hidden;
  color: #8a6507;
  font-size: 10px;
}
.offer-color[aria-pressed='true'] > i {
  visibility: visible;
}
.offer-spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-content: start;
  margin: 0;
  padding: 0;
  border: 1px solid #cdd7de;
  background: #fff;
}
.offer-spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
}
.offer-spec-row dt {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 9px;
  border-right: 1px solid var(--line);
  background: #edf2f5;
  color: #526473;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}
.offer-spec-row dt > i {
  flex: 0 0 12px;
  color: #6a8191;
  font-size: 11px;
  text-align: center;
}
.offer-spec-row dt > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.offer-spec-row dd {
  margin: 0;
  color: var(--ink);
  min-width: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  padding: 5px 9px;
  background: #fff;
  text-overflow: ellipsis;
  overflow: hidden;
}
.offer-spec-row dd > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.offer-spec-row:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.offer-spec-row:nth-last-child(-n + 2):nth-child(odd),
.offer-spec-row:last-child {
  border-bottom: 0;
}
.offer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.offer-actions .offer-quote {
  min-height: 50px;
  min-width: 210px;
  max-width: 100%;
  justify-content: space-between;
  padding: 14px 22px;
}
.offer-technical {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #aebbc4;
  font-size: 12px;
}
.offer-actions > .offer-help {
  display: none;
}
/* Preserve the original 440px main image (540px minus 90px thumbnails and 10px gap).
   Removing thumbnails must not enlarge the main image.
   Extra color choices scroll within their own area, without stretching images. */
@media (min-width: 901px) {
  .product-detail-main .product-reference-summary .detail-gallery {
    height: 440px;
    grid-template-rows: minmax(0, 1fr);
  }
  .product-detail-main .product-reference-summary .detail-gallery-stage {
    aspect-ratio: auto;
  }
  .product-offer {
    height: 440px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .offer-heading h2 {
    margin-bottom: 0;
    font-size: 28px;
  }
  .offer-price-panel {
    margin: 0;
    padding: 12px 16px;
  }
  .offer-price-panel > p,
  .offer-color-section > .offer-help {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.5;
  }
  .offer-section-heading {
    margin-bottom: 8px;
  }
  .offer-color-section {
    flex: 0 0 auto;
  }
  .product-offer > .offer-spec-list {
    flex: 1 1 auto;
    min-height: 0;
    align-content: stretch;
    grid-auto-rows: minmax(29px, 1fr);
    overflow: auto;
    scrollbar-width: thin;
  }
  .offer-spec-row {
    padding: 0;
    line-height: 1.5;
  }
  .offer-actions {
    flex-shrink: 0;
    margin-top: auto;
    gap: 12px;
  }
  .offer-actions .offer-quote {
    min-height: 46px;
    padding: 12px 22px;
  }
}
@media (max-width: 900px) {
  .product-detail-main .product-reference-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .product-detail-main .product-reference-summary .detail-gallery-stage {
    aspect-ratio: 1.4;
  }
}
@media (max-width: 540px) {
  .offer-spec-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .offer-spec-row:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }
  .offer-spec-row:nth-child(odd) {
    border-right: 0;
  }
  .offer-heading h2 {
    font-size: 27px;
  }
  .offer-price-panel {
    padding: 16px;
    margin: 20px 0;
  }
  .offer-price-on-request {
    font-size: 23px;
  }
  .offer-spec-row {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 0;
  }
  .offer-actions .offer-quote {
    width: 100%;
    min-width: 0;
  }
}
