/* Single product: gallery + summary */
.psection {
	padding: 2% 0;
}

.pro__top {
	display: flex;
	gap: 0;
	align-items: flex-start;
}

.pro__gallery {
	width: 52%;
	flex: none;
}

.pro__summary {
	flex: 1;
	min-width: 0;
	box-sizing: border-box;
	padding: 0 24px;
}

.woocommerce-product-gallery {
	position: relative;
	margin: 0;
}

/* the main image sits right of a 20% thumb column */
.woocommerce-product-gallery:has(.pro-gallery__thumbs) .woocommerce-product-gallery__image {
	margin-left: 20%;
}

.woocommerce-product-gallery__image--placeholder {
	border: 1px solid var(--border-1);
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
	display: block;
}

.woocommerce-product-gallery__image {
	position: relative;
	margin: 0;
}

.woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	display: block;
}

/* the incoming photo fades in over the current one while it swaps underneath */
/* the element selector is needed to out-rank .woocommerce-product-gallery__image
   img, which sets height: auto */
.woocommerce-product-gallery__image img.pro-gallery__overlay {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.26s ease;
}

.woocommerce-product-gallery__image img.pro-gallery__overlay.is-visible {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.pro-gallery__overlay {
		transition: none;
	}
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
}

/* thumbnail strip on the left of the main image, four visible at a time
   (the live gallery is a vertical slider; ours scrolls in the same box) */
.pro-gallery__thumbs-wrap {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 20%;
	z-index: 1;
}

.pro-gallery__thumbs {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	scrollbar-width: none;
}

/* thumbnail arrows: a dark band on the column's top and bottom edge, shown
   while the gallery is hovered (the live slider does the same) */
.pro-gallery__arrow {
	position: absolute;
	z-index: 3;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.55);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.pro-gallery__arrow::before {
	content: "";
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
}

.pro-gallery__arrow--up,
.pro-gallery__arrow--down {
	left: 0;
	width: 100%;
	height: 30px;
}

.pro-gallery__arrow--up {
	top: 0;
}

.pro-gallery__arrow--down {
	bottom: 0;
}

.pro-gallery__arrow--prev,
.pro-gallery__arrow--next {
	top: 50%;
	width: 48px;
	height: 60px;
	transform: translateY(-50%);
}

.pro-gallery__arrow--prev {
	left: 0;
}

.pro-gallery__arrow--next {
	right: 0;
}

.pro-gallery__arrow--prev::before {
	transform: rotate(135deg);
}

.pro-gallery__arrow--next::before {
	transform: rotate(-45deg);
}

.pro-gallery__arrow--up::before {
	transform: rotate(-135deg);
}

.pro-gallery__arrow--down::before {
	transform: rotate(45deg);
}

.pro-gallery__arrow :focus-visible,
.pro-gallery__arrow:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: -2px;
	opacity: 1;
}

.woocommerce-product-gallery:hover .pro-gallery__arrow,
.woocommerce-product-gallery:focus-within .pro-gallery__arrow {
	opacity: 1;
}

.woocommerce-product-gallery:hover .pro-gallery__arrow:hover {
	background: rgba(0, 0, 0, 0.75);
}

.pro-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.pro-gallery__thumbs li {
	width: 100%;
	flex: none;
}

.pro-gallery__thumbs button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.pro-gallery__thumbs button:hover,
.pro-gallery__thumbs button:focus,
.pro-gallery__thumbs button.is-active {
	outline: 2px solid var(--orange);
	outline-offset: -2px;
}

.pro-gallery__thumbs img {
	display: block;
	width: 100%;
	height: auto;
}

.pro__crumb {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	font-size: 1rem;
	line-height: 1.4;
	margin-bottom: 2.5rem;
	color: var(--ink);
}

.pro__crumb-icon {
	flex: none;
	margin-top: 3px;
	color: var(--ink);
}

.crumb a {
	color: var(--ink);
}

.crumb a:hover {
	color: var(--orange);
}

.crumb .breadcrumb_last,
.crumb > span:last-child {
	color: var(--grey);
}

.crumb__sep {
	margin: 0 6px;
	color: var(--border-1);
}

.pro__title {
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 2rem;
}

/* the live template spaces the excerpt and the button apart */
.pro__excerpt {
	margin-bottom: 1.9rem;
}

/* the live product CTA is an orange outline pill with an arrow badge, not the
   skewed dark button the rest of the site uses */
.pro__quote {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 1rem;
	padding: 0.5rem 2rem;
	background: transparent;
	color: var(--orange);
	border: 1px solid var(--orange);
	border-radius: 25px;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
}

.pro__quote:hover {
	background: var(--orange);
	color: var(--white);
}

.pro__quote::before,
.pro__quote::after {
	content: none;
}

.pro__quote-icon {
	flex: none;
	width: 1.2rem;
	height: 1.2rem;
}

/* the live share row: "Share With:" then five brand-coloured 45px circles,
   inset 10px, and the label drops onto its own line on narrow screens */
.pro__share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 10px;
	font-size: 1rem;
}

.pro__share a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	color: var(--white);
}

.pro__share svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.pro__share-btn--fb {
	background: #3b5998;
}

.pro__share-btn--tw {
	background: #1da1f2;
}

.pro__share-btn--li {
	background: #0077b5;
}

.pro__share-btn--wa {
	background: #25d366;
}

.pro__share-btn--mail {
	background: #ea4335;
}

/* tab bar */
.pro-tabs {
	padding-top: 0;
}

.pro-tabs__bar {
	border: 0;
}

/* DESCRIPTION / SPECIFICATIONS bar: two centred labels on a rule, the same
   decorative header the live template prints above the two stacked panels */
.pro-tabs__nav {
	display: flex;
	margin: 0 0 2rem;
	/* parks under the 60px fixed header while the panels scroll past */
	position: sticky;
	top: 60px;
	z-index: 20;
	background: var(--white);
}

.pro-tabs__nav a.is-active {
	background: var(--orange);
	border-bottom-color: var(--orange);
	color: var(--white);
}

.pro-tabs__nav a {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 80px;
	border-bottom: 2px solid #f3908d;
	font-family: var(--font-alt);
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1.1;
	text-transform: uppercase;
	text-align: center;
	color: var(--ink);
}

.pro-tabs__panel {
	display: block;
	margin-bottom: 3rem;
	/* anchor jumps land the panel title below the stuck header + tab bar */
	scroll-margin-top: 140px;
}

/* the description is a stack of full-width images; the live page leaves 6px
   between them */
.pro-tabs__panel picture {
	display: block;
}

.pro-tabs__panel picture + picture {
	margin-top: 6px;
}

.pro-content {
	width: 100%;
}

/* section tag: orange block above each panel, matching the live .tit / h5 pair */
.pro-tabs__panel .tit {
	border-bottom: 1px solid #d8d8d8;
	margin: 0 0 2rem;
}

.pro-tabs__panel .tit h5,
.pro-content h5 {
	display: inline-block;
	margin: 0;
	padding: 1rem 2rem;
	background: var(--orange);
	color: var(--white);
	font-size: 1.4rem;
	font-weight: 700;
	text-transform: uppercase;
	font-family: var(--font-alt);
}

.pro-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.pro-content table th,
.pro-content table td {
	border: 1px solid var(--border-1);
	padding: 15px;
	font-size: 0.9rem;
	line-height: 1.5;
	text-align: left;
}

.pro-content img {
	max-width: 100%;
	height: auto;
}

.pro-scroll ul {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.pro-scroll li img {
	max-width: 100%;
	height: auto;
}

.pro-scroll h6 {
	font-size: 1rem;
	margin: 0.4rem 0;
}

.pro-tab {
	display: none;
}

.pro-related {
	/* the live section leaves 60px above the heading and 61px below the cards */
	padding: 4.2% 0;
}

.pro-related__title {
	font-size: 2.2rem;
	margin-bottom: 2rem;
	text-align: center;
}

/* Recommended Products is a carousel on the live site (four cards, arrows),
   not a grid: same card metrics, laid out as a horizontal scroller */
.pro-related .productgrid {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	/* dragged and cycled by js/site.js: say so with a hand over the cards */
	cursor: -webkit-grab;
	cursor: grab;
}

.pro-related .productgrid * {
	cursor: inherit;
}

.pro-related .productgrid::-webkit-scrollbar {
	display: none;
}

.pro-related .pcard {
	flex: 0 0 calc((100% - 60px) / 4);
	scroll-snap-align: start;
}

.pro-related .pcard__media {
	padding: 0;
}

/* product grid shared with archives */
.productgrid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.pcard {
	background: var(--white);
	text-align: center;
	display: flex;
	flex-direction: column;
}

.pcard__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	background: var(--bg-3);
	overflow: hidden;
	padding: 8px;
	box-sizing: border-box;
}

.pcard__media img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.pcard:hover .pcard__media img {
	transform: scale(1.04);
}

.pcard__title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0.7rem 0 0.4rem;
}

.pcard__title a:hover {
	color: var(--orange);
}

.pcard__btn {
	margin: 0 0 0.4rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--orange);
}

@media (max-width: 1024px) {
	/* the live template hides the tab bar on tablet and phone */
	.pro-tabs__nav {
		display: none;
	}

	.pro-tabs__panel {
		scroll-margin-top: 60px;
	}

	.productgrid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* the live carousel drops to two cards below 980px and one below 768px */
@media (max-width: 979px) {
	.pro-related .pcard {
		flex-basis: calc((100% - 20px) / 2);
	}
}

@media (max-width: 767px) {
	.pro-related .pcard {
		flex-basis: 100%;
	}

	/* the share label takes its own line, the buttons keep one row (live) */
	.pro__share {
		row-gap: 0;
	}

	.pro__share span {
		flex: 1 0 100%;
	}

	.pro__top {
		flex-direction: column;
	}

	.pro__gallery,
	.pro__summary {
		width: 100%;
	}

	.pro__summary {
		padding: 0;
	}

	/* stacked layout: the crumb would start on the thumb strip's last pixel */
	.pro__crumb {
		margin-top: 24px;
	}

	/* thumbs drop under the image and scroll sideways */
	.woocommerce-product-gallery:has(.pro-gallery__thumbs) .woocommerce-product-gallery__image {
		margin-left: 0;
	}

	.pro-gallery__thumbs-wrap {
		position: static;
		width: 100%;
	}

	.pro-gallery__thumbs {
		height: 80px;
		flex-direction: row;
		overflow-x: auto;
		overflow-y: hidden;
	}

	/* a sideways strip needs no scroll arrows */
	.pro-gallery__arrow--up,
	.pro-gallery__arrow--down {
		display: none;
	}

	.pro-gallery__thumbs li {
		width: 80px;
		height: 80px;
		flex: none;
	}

	.pro-gallery__thumbs img {
		height: 100%;
		object-fit: cover;
	}
}

@media (max-width: 767px) {
	.productgrid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.pro-content table {
		font-size: 0.8rem;
	}
}

/* magnifier button in the gallery's top-right corner (the live trigger) */
.pro-gallery__zoom {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #000;
	cursor: pointer;
}

.pro-gallery__zoom:hover {
	background: var(--orange);
	color: var(--white);
}

/* fullscreen viewer */
.pg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
}

.pg-lightbox.is-open {
	display: flex;
}

.pg-lightbox__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 40px 90px;
	overflow: hidden;
	box-sizing: border-box;
}

.pg-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: transform 0.25s ease;
	cursor: zoom-in;
	user-select: none;
	-webkit-user-drag: none;
}

.pg-lightbox__stage.is-zoomed .pg-lightbox__img {
	cursor: zoom-out;
}

.pg-lightbox__btn {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.pg-lightbox__btn:hover {
	background: var(--orange);
}

.pg-lightbox__btn::before {
	content: "";
	width: 12px;
	height: 12px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
}

.pg-lightbox__prev {
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
}

.pg-lightbox__next {
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
}

.pg-lightbox__prev::before {
	transform: rotate(135deg);
}

.pg-lightbox__next::before {
	transform: rotate(-45deg);
}

.pg-lightbox__close {
	top: 18px;
	right: 18px;
	background: rgba(255, 255, 255, 0.14);
}

.pg-lightbox__close::before,
.pg-lightbox__close::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 2px;
	background: currentColor;
	border: 0;
	transform: rotate(45deg);
}

.pg-lightbox__close::after {
	transform: rotate(-45deg);
}

.pg-lightbox__count {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.9rem;
	letter-spacing: 0.04em;
}

body.pg-lightbox-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.pg-lightbox__stage {
		padding: 56px 16px;
	}

	.pg-lightbox__btn {
		width: 44px;
		height: 44px;
	}
}

/* ---------- product content blocks, matched to the live template ---------- */

/* description: one full-width image under the other */
.pro-tabs__panel picture img {
	display: block;
	width: 100%;
	height: auto;
}

/* feature cards: three across, image on top */
.pro-features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2%;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pro-features li {
	padding: 10px 0;
}

.pro-features img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.pro-features h6 {
	margin: 1rem 0;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
}

.pro-features p {
	margin: 0 0 0.9rem;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--ink);
}

/* video: 16:9, full width */
.pro-video iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
}

/* packing list: photo on the left, item list on the right */
.pro-pack {
	display: flex;
	align-items: center;
	gap: 4%;
}

.pro-pack > img {
	flex: none;
	width: 48%;
	height: auto;
	display: block;
}

.pro-pack ul {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding-left: 40px;
	font-size: 1rem;
	line-height: 1.4;
}

.pro-pack li {
	margin: 0;
}

@media (max-width: 767px) {
	.pro-features {
		grid-template-columns: 1fr;
	}

	.pro-pack {
		flex-direction: column;
		align-items: flex-start;
	}

	.pro-pack > img {
		width: 100%;
	}
}

/* FAQ block: photo left, heading + accordion right */
.pro-faq {
	display: flex;
	gap: 4%;
}

.pro-faq__media {
	flex: none;
	width: 38%;
	padding: 10px;
	box-sizing: border-box;
}

.pro-faq__media img {
	display: block;
	width: 100%;
	height: auto;
}

.pro-faq__body {
	flex: 1;
	min-width: 0;
}

.pro-faq__title {
	margin: 0;
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ink);
}

.pro-faq__sub {
	margin: 0 0 0.9rem;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--ink);
}

.pro-faq__list {
	padding-top: 10px;
}

.pro-faq details {
	border: 0;
	background: none;
}

.pro-faq summary {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px;
	background: #ccc;
	color: var(--white);
	font-size: 1rem;
	line-height: 1.4;
	font-weight: 400;
	cursor: pointer;
	list-style: none;
}

.pro-faq summary::-webkit-details-marker {
	display: none;
}

/* plus / minus marker */
.pro-faq summary::before {
	content: "+";
	flex: none;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	line-height: 1;
}

.pro-faq details[open] summary::before {
	content: "−";
}

.pro-faq__q {
	flex: 1;
	min-width: 0;
	padding-top: 0.6rem;
}

.pro-faq__a {
	padding: 1rem;
	background: #f8f8f8;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--ink);
}

@media (max-width: 767px) {
	.pro-faq {
		flex-direction: column;
	}

	.pro-faq__media {
		width: 100%;
	}
}
