body.single-product {
	background: #070908;
	color: #f7f1e8;
}

body.single-product #main-content,
body.single-product .site-content,
body.single-product .content-area {
	background:
		radial-gradient(circle at 15% 8%, rgba(190, 146, 82, 0.08), transparent 28%),
		linear-gradient(180deg, #070908 0%, #0a0d0b 58%, #070908 100%);
}

body.single-product .pba-product-template {
	width: min(100% - clamp(32px, 7vw, 96px), 1420px);
	margin: 0 auto;
	padding: clamp(34px, 5vw, 72px) 0 58px;
	color: #f7f1e8;
}

body.single-product .pba-product-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.88fr);
	gap: clamp(46px, 5.4vw, 72px);
	align-items: start;
}

body.single-product .pba-product-media {
	min-width: 0;
}

body.single-product .pba-main-image-wrap {
	position: relative;
	display: grid;
	place-items: center;
	background: transparent;
	min-height: 0;
	overflow: hidden;
}

body.single-product .pba-main-image-link {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

body.single-product .pba-main-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
}

body.single-product .onsale {
	position: absolute;
	z-index: 2;
	top: 18px;
	left: 18px;
	min-height: 0;
	border-radius: 0;
	background: #caa160;
	color: #070908;
	padding: 8px 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

body.single-product .pba-zoom-dot {
	position: absolute;
	z-index: 3;
	top: 22px;
	right: 22px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #f7f1e8;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

body.single-product .pba-zoom-dot::before,
body.single-product .pba-zoom-dot::after {
	content: "";
	position: absolute;
	display: block;
}

body.single-product .pba-zoom-dot::before {
	width: 15px;
	height: 15px;
	border: 2px solid #070908;
	border-radius: 50%;
	top: 14px;
	left: 14px;
}

body.single-product .pba-zoom-dot::after {
	width: 10px;
	height: 2px;
	background: #070908;
	transform: rotate(45deg);
	top: 30px;
	left: 29px;
}

body.single-product .pba-product-thumbs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(14px, 1.8vw, 22px);
	margin-top: 22px;
}

body.single-product .pba-product-thumb {
	position: relative;
	appearance: none;
	display: block;
	width: 100%;
	padding: 0;
	border: 1px solid rgba(247, 241, 232, 0.22);
	background: transparent;
	cursor: pointer;
	overflow: hidden;
}

body.single-product .pba-product-thumb.is-active {
	border-color: #caa160;
	box-shadow: inset 0 0 0 1px #caa160;
}

body.single-product .pba-product-thumb img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

body.single-product .woocommerce-product-gallery.pba-native-gallery-fixed .woocommerce-product-gallery__image {
	background: transparent;
}

body.single-product .woocommerce-product-gallery.pba-native-gallery-fixed .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

body.single-product .woocommerce-product-gallery.pba-native-gallery-fixed .flex-control-thumbs li {
	position: relative;
	overflow: hidden;
	background: transparent;
}

body.single-product .woocommerce-product-gallery.pba-native-gallery-fixed .flex-control-thumbs img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: auto;
	object-fit: contain;
	background: transparent;
}

body.single-product .pba-native-thumb-label {
	position: absolute;
	right: 7px;
	bottom: 7px;
	display: inline-flex;
	align-items: center;
	max-width: calc(100% - 14px);
	background: rgba(7, 9, 8, 0.74);
	color: #f7f1e8;
	padding: 5px 7px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.1;
}

body.single-product .pba-thumb-label {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(7, 9, 8, 0.72);
	color: #f7f1e8;
	padding: 7px 9px;
	font-size: 13px;
	line-height: 1;
}

body.single-product .pba-thumb-label::before {
	content: "";
	width: 13px;
	height: 13px;
	border: 2px solid currentColor;
	border-top: 0;
	transform: rotate(45deg);
}

body.single-product .pba-product-panel {
	border: 0;
}

body.single-product .pba-panel-inner {
	padding-top: clamp(8px, 1.4vw, 22px);
}

body.single-product .pba-eyebrow {
	margin-bottom: 17px;
	color: #caa160;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

body.single-product .pba-product-title-copy {
	margin: 0;
	max-width: 12em;
	color: #fbf6ef;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(42px, 4vw, 58px);
	font-weight: 400;
	line-height: 1.07;
	letter-spacing: 0;
}

body.single-product .pba-price-copy {
	margin-top: 25px;
	color: #d7a75e;
	font-size: clamp(20px, 1.7vw, 22px);
	font-weight: 700;
}

body.single-product .pba-product-description-copy {
	max-width: 580px;
	margin-top: 24px;
	color: #d4d0c9;
	font-size: 16px;
	line-height: 1.62;
}

body.single-product .pba-product-description-copy p {
	margin: 0 0 1em;
	color: inherit;
}

body.single-product .pba-canonical-purchase {
	border-top: 1px solid rgba(247, 241, 232, 0.28);
	margin-top: 31px;
	padding-top: 25px;
}

body.single-product .pba-canonical-purchase form.cart,
body.single-product .pba-canonical-purchase .variations_form {
	display: grid;
	gap: 22px;
	margin: 0;
}

body.single-product .pba-canonical-purchase table.variations,
body.single-product .pba-canonical-purchase table.variations tbody,
body.single-product .pba-canonical-purchase table.variations tr,
body.single-product .pba-canonical-purchase table.variations th,
body.single-product .pba-canonical-purchase table.variations td {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
}

body.single-product .pba-native-size-label,
body.single-product .pba-native-size-select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	white-space: nowrap !important;
}

body.single-product .pba-size-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 16px;
}

body.single-product .pba-size-title {
	color: #fbf6ef;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

body.single-product .pba-size-guide-toggle {
	border: 0;
	background: transparent;
	color: #fbf6ef;
	padding: 0;
	font-size: 13px;
	cursor: pointer;
}

body.single-product .pba-size-options {
	display: grid;
	grid-template-columns: repeat(5, minmax(54px, 1fr));
	gap: 12px;
}

body.single-product .pba-size-option {
	min-height: 56px;
	border: 1px solid rgba(247, 241, 232, 0.45);
	background: #090d0b;
	color: #fbf6ef;
	padding: 0 14px;
	font-size: 15px;
}

body.single-product .pba-size-option.is-active {
	border-color: #fbf6ef;
	background: #fbf6ef;
	color: #070908;
}

body.single-product .pba-size-option:disabled {
	cursor: not-allowed;
	opacity: 0.35;
}

body.single-product .pba-selected-dimensions {
	min-height: 22px;
	margin-top: 14px;
	color: #fbf6ef;
	font-size: 15px;
	line-height: 1.45;
}

body.single-product .pba-canonical-purchase .single_variation_wrap {
	display: grid;
	gap: 18px;
}

body.single-product .pba-canonical-purchase .woocommerce-variation {
	color: #f7f1e8;
}

body.single-product .pba-canonical-purchase .woocommerce-variation-price {
	display: none;
}

body.single-product .pba-canonical-purchase .woocommerce-variation-description {
	color: #d4d0c9;
}

body.single-product .pba-canonical-purchase .woocommerce-variation-add-to-cart,
body.single-product .pba-canonical-purchase form.cart:not(.variations_form) {
	display: grid;
	grid-template-columns: 94px minmax(0, 1fr);
	gap: 18px;
	align-items: stretch;
}

body.single-product .pba-canonical-purchase .quantity {
	width: 100%;
	margin: 0;
}

body.single-product .pba-canonical-purchase input.qty {
	width: 100%;
	height: 70px;
	min-height: 70px;
	border: 1px solid rgba(247, 241, 232, 0.34);
	border-radius: 0;
	background: #090d0b;
	color: #fbf6ef;
	padding: 0 8px;
	font-size: 19px;
	text-align: center;
}

body.single-product .pba-canonical-purchase .single_add_to_cart_button {
	width: 100%;
	min-height: 70px;
	border: 1px solid #fbf6ef;
	border-radius: 0;
	background: #fbf6ef;
	color: #070908;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

body.single-product .pba-canonical-purchase .single_add_to_cart_button:hover {
	background: #d7a75e;
	border-color: #d7a75e;
	color: #070908;
}

body.single-product .pba-canonical-purchase .reset_variations {
	display: inline-block;
	margin-top: 10px;
	color: #caa160;
	font-size: 13px;
}

body.single-product .pba-trust-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin-top: 30px;
}

body.single-product .pba-trust-item {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	color: #f4eee6;
	font-size: 14px;
	line-height: 1.25;
}

body.single-product .pba-icon {
	position: relative;
	width: 34px;
	height: 34px;
	color: #f4eee6;
}

body.single-product .pba-icon::before,
body.single-product .pba-icon::after {
	content: "";
	position: absolute;
	display: block;
}

body.single-product .pba-icon--delivery::before {
	left: 1px;
	top: 11px;
	width: 22px;
	height: 13px;
	border: 2px solid currentColor;
}

body.single-product .pba-icon--delivery::after {
	left: 5px;
	bottom: 3px;
	width: 6px;
	height: 6px;
	border: 2px solid currentColor;
	border-radius: 50%;
	box-shadow: 17px 0 0 -2px #070908, 17px 0 0 0 currentColor;
}

body.single-product .pba-icon--secure::before {
	left: 8px;
	top: 2px;
	width: 18px;
	height: 24px;
	border: 2px solid currentColor;
	border-radius: 0 0 10px 10px;
	transform: skewY(-12deg);
}

body.single-product .pba-icon--secure::after {
	left: 15px;
	top: 12px;
	width: 9px;
	height: 5px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
}

body.single-product .pba-icon--print::before {
	left: 8px;
	top: 2px;
	width: 16px;
	height: 28px;
	border: 2px solid currentColor;
	border-radius: 100% 0 100% 0;
	transform: rotate(42deg);
}

body.single-product .pba-icon--print::after {
	left: 17px;
	top: 10px;
	width: 2px;
	height: 22px;
	background: currentColor;
	transform: rotate(42deg);
}

body.single-product .pba-accordions {
	margin-top: 45px;
	border-top: 1px solid rgba(247, 241, 232, 0.28);
}

body.single-product .pba-accordion {
	border-bottom: 1px solid rgba(247, 241, 232, 0.28);
}

body.single-product .pba-accordion summary {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 21px 0;
	color: #fbf6ef;
	font-size: 18px;
	font-weight: 400;
	list-style: none;
}

body.single-product .pba-accordion summary::-webkit-details-marker {
	display: none;
}

body.single-product .pba-accordion summary::after {
	content: "+";
	color: #fbf6ef;
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
}

body.single-product .pba-accordion[open] summary::after {
	content: "-";
}

body.single-product .pba-accordion-content {
	padding: 0 0 20px;
	color: #d4d0c9;
	font-size: 15px;
	line-height: 1.65;
}

body.single-product .pba-size-guide-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.single-product .pba-artwork-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	border-top: 1px solid rgba(247, 241, 232, 0.24);
	border-bottom: 1px solid rgba(247, 241, 232, 0.24);
	margin-top: clamp(58px, 8vw, 88px);
	padding: 38px 0;
}

body.single-product .pba-artwork-nav div:last-child {
	text-align: right;
}

body.single-product .pba-artwork-nav a {
	color: #fbf6ef;
	font-size: 16px;
	letter-spacing: 0;
	text-transform: none;
}

body.single-product .pba-artwork-nav div:first-child a::before {
	content: "<-";
	margin-right: 16px;
}

body.single-product .pba-artwork-nav div:last-child a::after {
	content: "->";
	margin-left: 16px;
}

body.single-product .ppcp-messages,
body.single-product [id^="zoid-paypal-message"],
body.single-product .paypal-buttons,
body.single-product .wc-stripe-payment-request-wrapper {
	display: none !important;
}

@media (max-width: 1080px) {
	body.single-product .pba-product-template {
		width: min(100% - 40px, 780px);
		padding-top: 34px;
	}

	body.single-product .pba-product-hero {
		grid-template-columns: 1fr;
		gap: 38px;
	}

	body.single-product .pba-main-image-wrap {
		min-height: 0;
	}

	body.single-product .pba-main-image {
		max-height: none;
	}
}

@media (max-width: 640px) {
	body.single-product .pba-product-template {
		width: calc(100% - 28px);
		padding-top: 24px;
	}

	body.single-product .pba-product-title-copy {
		font-size: clamp(36px, 11vw, 48px);
	}

	body.single-product .pba-product-thumbs {
		gap: 10px;
	}

	body.single-product .pba-thumb-label {
		right: 7px;
		bottom: 7px;
		padding: 6px 7px;
		font-size: 11px;
	}

	body.single-product .pba-size-options {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	body.single-product .pba-canonical-purchase .woocommerce-variation-add-to-cart,
	body.single-product .pba-canonical-purchase form.cart:not(.variations_form) {
		grid-template-columns: 82px minmax(0, 1fr);
		gap: 12px;
	}

	body.single-product .pba-canonical-purchase input.qty,
	body.single-product .pba-canonical-purchase .single_add_to_cart_button {
		min-height: 60px;
		height: 60px;
	}

	body.single-product .pba-canonical-purchase .single_add_to_cart_button {
		font-size: 12px;
		letter-spacing: 0.18em;
	}

	body.single-product .pba-trust-row {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	body.single-product .pba-artwork-nav {
		grid-template-columns: 1fr;
		padding: 28px 0;
	}

	body.single-product .pba-artwork-nav div:last-child {
		text-align: left;
	}
}


/* Pixel Brush Print/Digital controls - v0.3.0 */
body.single-product .pba-format-control {
	margin-bottom: 18px;
}

body.single-product .pba-format-title,
body.single-product .pba-digital-title {
	margin-bottom: 12px;
	color: #fbf6ef;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

body.single-product .pba-format-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

body.single-product .pba-format-option {
	min-height: 54px;
	border: 1px solid rgba(247, 241, 232, 0.42);
	background: #090d0b;
	color: #fbf6ef;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}

body.single-product .pba-format-option.is-active {
	border-color: #d7a75e;
	background: #d7a75e;
	color: #070908;
}

body.single-product .pba-format-option:focus-visible,
body.single-product .pba-size-option:focus-visible,
body.single-product .pba-size-guide-toggle:focus-visible,
body.single-product .pba-product-thumb:focus-visible,
body.single-product .pba-canonical-purchase .single_add_to_cart_button:focus-visible {
	outline: 2px solid #d7a75e;
	outline-offset: 3px;
}

body.single-product .pba-native-format-label,
body.single-product .pba-native-format-select,
body.single-product .pba-size-row-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	white-space: nowrap !important;
}

body.single-product .pba-digital-panel {
	border: 1px solid rgba(215, 167, 94, 0.42);
	background: rgba(215, 167, 94, 0.07);
	padding: 17px 18px 18px;
	color: #e8e1d7;
	font-size: 15px;
	line-height: 1.55;
}

body.single-product .pba-digital-panel[hidden],
body.single-product .pba-format-control[hidden],
body.single-product [data-pba-size-control][hidden] {
	display: none !important;
}

body.single-product .pba-digital-panel p {
	margin: 0 0 11px;
}

body.single-product .pba-digital-panel p:last-child,
body.single-product .pba-digital-licence p {
	margin-bottom: 0;
}

body.single-product .pba-digital-shipping {
	color: #fbf6ef;
	font-weight: 700;
}

body.single-product .pba-digital-licence {
	border-top: 1px solid rgba(247, 241, 232, 0.18);
	margin-top: 14px;
	padding-top: 14px;
}

body.single-product .pba-digital-licence strong {
	display: block;
	margin-bottom: 7px;
	color: #d7a75e;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

body.single-product .pba-digital-delivery-copy {
	display: none;
}

body.single-product .is-digital-selected .pba-print-delivery-copy,
body.single-product .is-digital-selected .pba-trust-item--delivery {
	display: none;
}

body.single-product .is-digital-selected .pba-digital-delivery-copy {
	display: block;
}

@media (max-width: 640px) {
	body.single-product .pba-format-options {
		grid-template-columns: 1fr;
	}

	body.single-product .pba-format-option {
		min-height: 50px;
	}
}

/* Product gallery sizing and navigation: scoped to Product Template only. */
body.single-product .pba-product-template .pba-product-hero { grid-template-columns: minmax(0,45fr) minmax(0,55fr); gap: clamp(28px,4vw,56px); }
body.single-product .pba-product-template .pba-product-media { min-width:0; align-self:start; }
body.single-product .pba-product-template .pba-main-image-wrap { width:100%; min-height:0; height:auto; max-height:580px; }
body.single-product .pba-product-template .pba-main-image-link { width:100%; height:auto; max-height:580px; }
body.single-product .pba-product-template img.pba-main-image { width:auto; height:auto; max-width:100%; max-height:580px; object-fit:contain; object-position:center; margin:0 auto; }
body.single-product .pba-product-template .pba-product-gallery { display:grid; grid-template-columns:72px minmax(0,1fr); gap:14px; align-items:start; min-width:0; }
body.single-product .pba-product-template .pba-main-image-wrap { grid-column:2; grid-row:1; height:580px; }
body.single-product .pba-product-template .pba-main-image-link { touch-action:pan-y pinch-zoom; }
body.single-product .pba-product-template .pba-product-thumbs { position:relative; grid-column:1; grid-row:1; display:flex; flex-direction:column; justify-content:flex-start; flex-wrap:nowrap; gap:12px; margin:0; max-height:580px; overflow-x:hidden; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#bca681 #171a18; }
body.single-product .pba-product-template .pba-product-thumb { border:1px solid rgba(188,166,129,.25); box-shadow:none; background:#111512; border-radius:2px; }
body.single-product .pba-product-template .pba-product-thumb.is-active { border-color:#d4bc91; box-shadow:inset 0 0 0 1px #d4bc91; }
body.single-product .pba-product-template .pba-product-thumb:focus-visible { outline:2px solid #d4bc91; outline-offset:-3px; }
body.single-product .pba-product-template .pba-product-thumb { flex:0 0 90px; width:72px; height:90px; min-height:0; padding:3px; }
body.single-product .pba-product-template .pba-product-thumb img { width:100%; height:100%; max-height:100%; object-fit:contain; object-position:center; }
body.single-product .pba-product-template .pba-thumb-label { left:2px; right:2px; bottom:2px; padding:3px 2px; font-size:8px; line-height:1.15; text-align:center; }
@media(max-width:1080px) {
 body.single-product .pba-product-template .pba-product-hero { grid-template-columns:minmax(0,1fr); gap:28px; }
 body.single-product .pba-product-template .pba-product-media { width:100%; max-width:560px; margin-inline:auto; }
 body.single-product .pba-product-template .pba-main-image-wrap,
 body.single-product .pba-product-template .pba-main-image-link,
 body.single-product .pba-product-template img.pba-main-image { max-height:520px; }
}
@media(max-width:767px) {
 body.single-product .pba-product-template .pba-product-gallery { display:flex; flex-direction:column; gap:12px; }
 body.single-product .pba-product-template .pba-main-image-wrap { height:400px; }
 body.single-product .pba-product-template .pba-main-image-link { max-width:320px; margin-inline:auto; }
 body.single-product .pba-product-template .pba-main-image-wrap,
 body.single-product .pba-product-template .pba-main-image-link,
 body.single-product .pba-product-template img.pba-main-image { max-height:400px; }
 body.single-product .pba-product-template .pba-product-thumbs { flex-direction:row; width:100%; max-width:100%; max-height:none; overflow-x:auto; overflow-y:hidden; gap:10px; margin:0; padding:2px 0; }
 body.single-product .pba-product-template .pba-product-thumb:first-child { margin-left:auto; }
 body.single-product .pba-product-template .pba-product-thumb:last-child { margin-right:auto; }
 body.single-product .pba-product-template .pba-product-thumb { flex-basis:60px; width:60px; height:75px; }
 body.single-product .pba-product-template .pba-zoom-dot { width:44px; height:44px; top:12px; right:12px; }
}

/* On-demand full-screen image viewer; no changes to product or visualiser controls. */
.pba-gallery-viewer { box-sizing:border-box; position:fixed; inset:0; margin:0; padding:0; width:100vw; height:100dvh; max-width:none; max-height:none; border:0; background:#080b09; color:#f7f1e8; }
.pba-gallery-viewer[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.pba-gallery-viewer::backdrop { background:rgba(0,0,0,.94); }
.pba-gallery-viewer .pba-viewer-toolbar,.pba-gallery-viewer .pba-viewer-footer { display:flex; align-items:center; gap:12px; padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left)); background:#111612; border-bottom:1px solid #514936; }
.pba-gallery-viewer .pba-viewer-count { margin-right:auto; font-size:14px; color:#d4bc91; }
.pba-gallery-viewer button { min-height:44px; border:1px solid #8d7d60; border-radius:3px; background:#171d18; color:#f7f1e8; padding:8px 14px; font:inherit; cursor:pointer; }
.pba-gallery-viewer button:disabled { opacity:.4; cursor:default; }
.pba-gallery-viewer button:focus-visible,.pba-gallery-viewer .pba-viewer-stage:focus-visible { outline:2px solid #e3c99b; outline-offset:-3px; }
.pba-gallery-viewer .pba-viewer-stage { overflow:auto; min-width:0; min-height:0; touch-action:pan-x pan-y pinch-zoom; overscroll-behavior:contain; }
.pba-gallery-viewer .pba-viewer-stage:has(+ .pba-viewer-footer) { scrollbar-width:thin; scrollbar-color:#bca681 #111612; }
.pba-gallery-viewer .pba-viewer-canvas { display:flex; align-items:center; justify-content:center; box-sizing:border-box; padding:12px; }
.pba-gallery-viewer img.pba-viewer-image { display:block; flex:none; max-width:none; max-height:none; object-fit:contain; }
.pba-gallery-viewer .pba-viewer-footer { border-top:1px solid #514936; border-bottom:0; justify-content:space-between; padding-bottom:max(12px,env(safe-area-inset-bottom)); }
.pba-gallery-viewer .pba-viewer-footer span { font-size:12px; color:#b9b4a9; }
@media(max-width:767px) {
 .pba-gallery-viewer .pba-viewer-toolbar { gap:8px; flex-wrap:wrap; }
 .pba-gallery-viewer .pba-viewer-count { flex-basis:100%; }
 .pba-gallery-viewer [data-viewer-close] { margin-left:auto; }
 .pba-gallery-viewer .pba-viewer-footer span { display:none; }
}

/* Product-page header clearance: avoid stacking legacy main and template padding. */
body.single-product #main-content.pba-shop { padding-top:36px!important; }
body.single-product #main-content .pba-product-template { padding-top:0!important; }
/* Existing logged-in sticky header extends below its normal flow box. */
body.single-product.admin-bar #main-content.pba-shop { padding-top:68px!important; }
@media(max-width:782px) { body.single-product.admin-bar #main-content.pba-shop { padding-top:82px!important; } }
@media(max-width:767px) {
 body.single-product #main-content.pba-shop { padding-top:20px!important; }
 body.single-product.admin-bar #main-content.pba-shop { padding-top:66px!important; }
}
body.single-product .pba-product-template .pba-main-image-wrap { align-items:start; }
@media(min-width:1081px) {
 body.single-product .pba-product-template .pba-product-panel--primary > .pba-panel-inner { padding-top:0; }
}

/* Compact explanation stays inside the existing JS-controlled format group. */
body.single-product .pba-format-help {
	max-width: 50ch;
	margin: 8px 0 0;
	color: rgba(247, 241, 232, 0.82);
	font-size: 14px;
	line-height: 1.5;
}
