/* ── WooCommerce pages — force scrolled header state ──────────────────────── */

.single-product .site-header,
.woocommerce-page .site-header {
  background-color: #002e6d;
}

.single-product .site-header .site-logo-header,
.woocommerce-page .site-header .site-logo-header {
  opacity: 1;
}

.single-product .site-header .site-header__cta,
.woocommerce-page .site-header .site-header__cta {
  border-color: #fff;
}

/* ── Product Layout — gallery + summary side by side ───────────────────────── */

.woocommerce div.product {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.woocommerce div.product .synexis-product-gallery {
  flex: 0 0 50%;
  max-width: 50%;
}

.woocommerce div.product .summary {
  flex: 1 1 0%;
  min-width: 0;
}

/* Full-width elements below the gallery+summary row */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products,
.woocommerce div.product .up-sells {
  flex: 0 0 100%;
}

@media (max-width: 767px) {
  .woocommerce div.product .synexis-product-gallery,
  .woocommerce div.product .summary {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ── Product Gallery — Swiper carousel ─────────────────────────────────────── */

.synexis-product-gallery {
  margin-bottom: 2rem;
}

/* Main image */
.synexis-product-gallery__main {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
}

.synexis-product-gallery__main .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.synexis-product-gallery__main .swiper-wrapper {
  align-items: flex-start;
}

.synexis-product-gallery__main .swiper-button-prev,
.synexis-product-gallery__main .swiper-button-next {
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.synexis-product-gallery__main .swiper-button-prev::after,
.synexis-product-gallery__main .swiper-button-next::after {
  font-size: 14px;
}

/* Thumbnails */
.synexis-product-gallery__thumbs {
  width: 100%;
}

.synexis-product-gallery__thumbs .swiper-slide {
  opacity: 0.5;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease;
}

.synexis-product-gallery__thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--bs-primary, #0d6efd);
}

.synexis-product-gallery__thumbs .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1;
}

/* Intro video (slide 1) */
.synexis-product-gallery__main .swiper-slide video {
  width: 100%;
  height: auto;
  max-height: 634px;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Video thumbnail: poster + play badge */
.synexis-product-gallery__thumbs .swiper-slide.synexis-product-gallery__thumb--video {
  position: relative;
}
.synexis-product-gallery__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.synexis-product-gallery__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}

/* Accessible play/pause control on the intro video */
.synexis-product-gallery__slide--video {
  position: relative;
}
.synexis-product-gallery__video-toggle {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.synexis-product-gallery__video-toggle:hover {
  background: rgba(0, 0, 0, 0.75);
}
.synexis-product-gallery__video-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* Pause icon (two bars) — shown while playing */
.synexis-product-gallery__video-toggle .pp-icon {
  width: 12px;
  height: 14px;
  box-sizing: border-box;
  border-left: 4px solid #fff;
  border-right: 4px solid #fff;
}
/* Play icon (triangle) — shown while paused */
.synexis-product-gallery__video-toggle.is-paused .pp-icon {
  width: 0;
  height: 0;
  border: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
