/* Starboard HQ 2027 product layout (opt-in per product, 2026-10-23). */
.hq-gallery-top .gallery-main-wrap img { aspect-ratio: 4 / 5; object-fit: contain; background: #f4f4f4; }
.hq-gallery-top .g-thumb img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Like HQ, the video / features follow the purchase area closely: 64 + 64 px between the sections become 16 + 16,
   and the sections after them (sizes and prices, constructions, specifications, gallery) 24 + 24. */
.detail-top { padding-bottom: 16px; }
.detail-top ~ .section:not(.section-gray) { padding-top: 24px; padding-bottom: 24px; }
.detail-top + .section.hq-video, .detail-top + .section.hq-features { padding-top: 16px; }
.desc-area .container > .rule-head:first-child { margin-top: 0; }
@media (max-width: 700px) {
  .detail-top ~ .section:not(.section-gray) { padding-top: 20px; padding-bottom: 20px; }
  .detail-top + .section.hq-video, .detail-top + .section.hq-features { padding-top: 16px; }
}

/* HQ usage line above the title, introduction under it, NEW / BEST SELLER badges on the main photo. */
.hq-usage { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #6b7780; }
.hq-intro { margin: 14px 0 6px; font-size: 15px; line-height: 1.7; color: #3c4a52; }
.hq-main-photo { position: relative; }
.hq-badges { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.hq-badge { font-family: var(--font-head); font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .04em; }
.hq-badge--new { padding: 5px 8px; background: var(--red); color: #fff; }
.hq-badge--best { padding: 4px 6px; background: rgba(255, 255, 255, .85); color: #111; }
@media (max-width: 700px) {
  /* Mobile gives the photo a fixed height: the photo box takes the photo's own width, centred on the grey panel,
     so the badges stay on the photo instead of the empty panel beside it. */
  .hq-gallery-top .gallery-main-wrap { background: #f4f4f4; }
  .hq-main-photo { width: fit-content; max-width: 100%; margin: 0 auto; }
  .hq-gallery-top .gallery-main-wrap img { width: auto; max-width: 100%; }
  .hq-badges { top: 10px; right: 10px; }
  .hq-intro { font-size: 14.5px; }
}

/* HQ constructions section (inside the shared construction cards): HQ's wide deck photo on top, text below. */
.constr-list--paired .constr-block.has-media.constr-block--hq { grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.constr-list--paired .constr-block--hq .constr-media { width: auto; margin: 0; }
.constr-list--paired .constr-block--hq .constr-media img { width: 100%; max-width: 420px; max-height: none; background: #fff; }
.constr-body .constr-tagline { margin: -2px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #6b7780; }
.constr-body .constr-sizes { margin-top: 12px; font-size: 14px; color: #3c4a52; }
.constr-body .constr-sizes strong { margin-right: 6px; color: #111; }

.hq-picker { margin: 22px 0 18px; }
.hq-picker[hidden] { display: none; }
.hq-picker-group { margin-bottom: 18px; }
.hq-picker-label { margin: 0 0 10px; font-size: 14px; color: #3c4a52; }
.hq-picker-label strong { color: #111; }
.hq-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.hq-sizes button {
  min-height: 42px; padding: 9px 14px; border: 1px solid #d5dadd; background: #fff; color: #222;
  font: inherit; font-size: 14px; cursor: pointer; border-radius: 2px;
}
.hq-sizes button:hover { border-color: #111; }
.hq-sizes button[aria-checked="true"] { background: #111; border-color: #111; color: #fff; font-weight: 700; }
.hq-constructions { display: flex; flex-wrap: wrap; gap: 10px; }
.hq-constructions button {
  display: grid; justify-items: center; gap: 6px; width: 132px; padding: 8px; border: 1px solid #d5dadd;
  background: #fff; font: inherit; font-size: 12px; font-weight: 700; color: #222; cursor: pointer; border-radius: 2px;
}
.hq-constructions button img { width: 100%; height: 40px; object-fit: contain; }
.hq-constructions .hq-construction-text { align-content: center; min-height: 44px; }
.hq-constructions button:hover { border-color: #111; }
.hq-constructions button[aria-checked="true"] { border: 2px solid #111; padding: 7px; }
.hq-constructions button[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
.hq-sizes button:focus-visible, .hq-constructions button:focus-visible,
.hq-slider button:focus-visible, .hq-track:focus-visible { outline: 3px solid #078197; outline-offset: 2px; }
.hq-picker-note { min-height: 1.5em; margin: 0; font-size: 13px; color: #55666f; }
/* With the picker working, the widget keeps price, quantity and buttons; its option list is the picker. */
.shop-purchase.hq-driven .shop-option-heading,
.shop-purchase.hq-driven .shop-variant-label { display: none; }

.hq-video .container { max-width: 1100px; }
.hq-video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.hq-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hq-video-caption { margin: 12px 0 0; font-size: 14.5px; line-height: 1.6; color: #3c4a52; }

.hq-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 22px; }
.hq-feature img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #f4f4f4; }
.hq-feature h3 { margin: 16px 0 8px; font-size: 14px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #111; }
.hq-feature p { margin: 0; font-size: 14.5px; line-height: 1.7; color: #33424a; }

.hq-slider { position: relative; }
.hq-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hq-track::-webkit-scrollbar { display: none; }
.hq-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.hq-slide img { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 880; object-fit: cover; }
.hq-slider button {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: #111; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.hq-slide-prev { left: 12px; }
.hq-slide-next { right: 12px; }
.hq-credit { margin: 10px 0 0; font-size: 12px; color: #6b7a82; }

@media (max-width: 900px) {
  .hq-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
}
@media (max-width: 600px) {
  .hq-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .hq-sizes button { flex: 1 1 calc(50% - 8px); padding: 9px 8px; font-size: 13px; }
  .hq-constructions button { width: calc(50% - 5px); }
  .hq-slider button { width: 36px; height: 36px; font-size: 22px; }
}
