/* Product-page variant A. Keep WooCommerce's native gallery and purchase DOM. */
body.helliston-tera360.single-product .t360-shop-main {
  padding-top: 28px;
}
body.helliston-tera360.single-product .t360-shop-main > .t360-shell > .woocommerce-breadcrumb {
  margin-bottom: 28px;
  font-size: 12px;
  line-height: 1.6;
  color: #667c8c;
}
body.helliston-tera360.single-product div.product > .woocommerce-product-gallery {
  float: left;
  width: 54%;
  margin: 0 0 44px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}
/* No empty rail for a product with one photo, or before slider initialization. */
body.helliston-tera360.single-product div.product > .woocommerce-product-gallery:not(:has(.flex-control-thumbs)) {
  grid-template-columns: minmax(0, 1fr);
}
body.helliston-tera360.single-product .woocommerce-product-gallery > :is(.flex-viewport, .woocommerce-product-gallery__wrapper) {
  min-width: 0;
  grid-column: -2 / -1;
  grid-row: 1;
}
body.helliston-tera360.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img:not(.zoomImg) {
  padding: clamp(12px, 1.8vw, 26px);
  background: #fff;
}
/* The zoom overlay must cover, not blend with, the smaller photo underneath.
   Leave its dimensions, position and opacity under WooCommerce's control. */
body.helliston-tera360.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img.zoomImg {
  mix-blend-mode: normal;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: fill;
  background: #fff;
}
body.helliston-tera360.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 66px;
  max-height: min(48vw, 650px);
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 2px;
  scrollbar-width: thin;
  scrollbar-color: #c9d6df transparent;
}
body.helliston-tera360.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
  float: none;
  clear: none;
  flex: 0 0 auto;
  width: 62px;
  margin: 0;
  padding: 0;
  border: 0;
}
body.helliston-tera360.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
  display: block;
  width: 62px;
  height: 62px;
  margin: 0;
  padding: 4px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #dce5ec;
  border-radius: 6px;
  opacity: 1;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.helliston-tera360.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img:hover {
  border-color: #789de5;
}
body.helliston-tera360.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
  border-color: var(--t360-blue);
  box-shadow: 0 0 0 1px var(--t360-blue);
}
body.helliston-tera360.single-product div.product > .summary {
  float: right;
  width: 42%;
  margin: 0 0 44px;
  padding: 0;
  color: #536b7c;
  background: #fff;
  border: 0;
}
body.helliston-tera360.single-product .summary .single-product-category {
  display: block;
  margin-bottom: 12px;
  color: #657b8d;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .035em;
}
body.helliston-tera360.single-product .summary .single-product-category a { color: inherit; }
body.helliston-tera360.single-product .summary .product_title {
  margin: 0 0 18px;
  font-size: clamp(26px, 2.45vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
body.helliston-tera360.single-product .summary :is(p.price, span.price) {
  margin: 0 0 20px;
  color: var(--t360-navy);
  font-size: 28px;
  font-weight: 750;
  line-height: 1.3;
}
body.helliston-tera360.single-product .summary .woocommerce-price-suffix {
  color: #667c8c;
  font-size: 12px;
  font-weight: 400;
}
body.helliston-tera360.single-product .summary .woocommerce-product-details__short-description {
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
body.helliston-tera360.single-product .summary .woocommerce-product-details__short-description p { margin: 0 0 14px; }
body.helliston-tera360.single-product .summary .woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }
/* Preserve all existing product-specific compatibility copy, including its colour. */
body.helliston-tera360.single-product .summary form.cart {
  margin: 0 0 16px;
  gap: 12px;
}
body.helliston-tera360.single-product .summary form.cart:not(.variations_form):not(.grouped_form) {
  flex-wrap: wrap;
}
body.helliston-tera360.single-product .summary form.cart .quantity {
  flex: 0 0 74px;
  margin: 0;
}
body.helliston-tera360.single-product .summary form.cart .quantity .qty {
  width: 74px;
  min-height: 50px;
  margin: 0;
  padding: 10px 8px;
  text-align: center;
  color: var(--t360-navy);
}
body.helliston-tera360.single-product .summary form.cart .single_add_to_cart_button {
  flex: 1 1 auto;
  min-height: 50px;
  margin: 0;
  padding: 12px 22px;
  font-size: 15px;
  line-height: 1.5;
}
body.helliston-tera360.single-product .summary .product_meta {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #e3eaf0;
  font-size: 11px;
  line-height: 1.7;
  color: #728594;
}
body.helliston-tera360.single-product .summary .product_meta > span { display: block; }
body.helliston-tera360.single-product .summary .product_meta a { color: inherit; }
body.helliston-tera360.single-product .t360-product-information { padding-top: 32px; }
@media (max-width: 1023px) {
  body.helliston-tera360.single-product div.product > .woocommerce-product-gallery {
    float: none;
    width: 100%;
    max-width: 680px;
    margin: 0 auto 32px;
  }
  body.helliston-tera360.single-product div.product > .summary { float: none; width: 100%; margin-bottom: 36px; }
  body.helliston-tera360.single-product .summary .product_title { font-size: 30px; }
  body.helliston-tera360.single-product div.product .woocommerce-product-gallery .flex-control-thumbs { max-height: 570px; }
  body.helliston-tera360.single-product .summary .woocommerce-product-details__short-description { font-size: 15px; }
}
@media (max-width: 600px) {
  body.helliston-tera360.single-product .t360-shop-main { padding-top: 18px; }
  body.helliston-tera360.single-product .t360-shop-main > .t360-shell > .woocommerce-breadcrumb { margin-bottom: 18px; font-size: 11px; }
  body.helliston-tera360.single-product div.product > .woocommerce-product-gallery { display: block; margin-bottom: 26px; }
  body.helliston-tera360.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
    flex-direction: row;
    width: 100%;
    max-height: none;
    gap: 8px;
    margin-top: 10px;
    padding: 3px 2px 8px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  body.helliston-tera360.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li,
  body.helliston-tera360.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img { width: 54px; }
  body.helliston-tera360.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img { height: 54px; }
  body.helliston-tera360.single-product .summary .product_title { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  body.helliston-tera360.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img { transition: none; }
}
