/* ============================================================
   JSB Ajax Product Page — Layout & Styles
   ============================================================ */

/* Wrapper: two columns side-by-side */
.jsb-product-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
	max-width:100%;
	margin: 0 auto;
	padding: 32px 16px;
	box-sizing: border-box;
}

/* Gallery column — 70%, visually on the left */
.jsb-col-right {
	flex: 0 0 calc(70% - 20px);
	max-width: calc(70% - 20px);
	min-width: 0;
	order: 0;
}

/* Info column — 30%, visually on the right */
.jsb-col-left {
	flex: 0 0 calc(30% - 20px);
	max-width: calc(30% - 20px);
	min-width: 220px;
	order: 1;
}

/* ── Gallery ─────────────────────────────────────────────── */
.jsb-gallery {
	margin-bottom: 32px;
}

.jsb-gallery-main {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
	background: #ffffff;
	position: relative;
}

/* ── Gallery nav arrows ─────────────────────────────────── */
.jsb-gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba( 255, 255, 255, 0.88 );
	border: none;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.15 );
	color: #1a1a1a;
	transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
	padding: 0;
	line-height: 1;
}

.jsb-gallery-nav--prev { left: 12px; }
.jsb-gallery-nav--next { right: 12px; }

.jsb-gallery-nav:hover {
	background: #fff;
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.22 );
	transform: translateY( -50% ) scale( 1.08 );
}

.jsb-gallery-nav:active {
	transform: translateY( -50% ) scale( 0.96 );
}

.jsb-gallery-nav svg {
	width: 20px;
	height: 20px;
	display: block;
	flex-shrink: 0;
}

/* ── Fullscreen button ───────────────────────────────────── */
.jsb-gallery-fullscreen {
	position: absolute;
	bottom: 12px;
	right: 12px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba( 255, 255, 255, 0.88 );
	border: none;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.15 );
	color: #1a1a1a;
	padding: 0;
	line-height: 1;
	transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}

.jsb-gallery-fullscreen:hover {
	background: #fff;
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.22 );
	transform: scale( 1.08 );
}

.jsb-gallery-fullscreen svg {
	width: 18px;
	height: 18px;
	display: block;
}

.jsb-gallery-main .jsb-main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transition: opacity 0.2s ease;
	cursor: zoom-in;
}

.jsb-gallery-main .jsb-main-image.is-loading {
	opacity: 0.4;
}

/* ── Lightbox ────────────────────────────────────────────── */
.jsb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.jsb-lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.jsb-lightbox-overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.92 );
	cursor: zoom-out;
}

/* Stage: image above, thumbs below — centred column */
.jsb-lightbox-stage {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	max-width: calc( 100vw - 120px );
	max-height: calc( 100vh - 40px );
}

/* Image wrapper */
.jsb-lightbox-img-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 1;
	min-height: 0;
}

.jsb-lightbox-img {
	display: block;
	max-width: 100%;
	max-height: calc( 100vh - 160px );
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 8px 48px rgba( 0, 0, 0, 0.6 );
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	transform: scale( 0.97 );
	user-select: none;
	-webkit-user-drag: none;
}

.jsb-lightbox-img.is-loaded {
	opacity: 1;
	transform: scale( 1 );
}

/* Thumbnail strip */
.jsb-lightbox-thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	max-width: 100%;
	padding: 4px 2px;
	scrollbar-width: none;
	-ms-overflow-style: none;
	flex-shrink: 0;
}

.jsb-lightbox-thumbs::-webkit-scrollbar {
	display: none;
}

.jsb-lightbox-thumb {
	flex: 0 0 auto;
	width: 68px;
	height: 52px;
	padding: 0;
	border: 2px solid rgba( 255, 255, 255, 0.2 );
	border-radius: 6px;
	overflow: hidden;
	background: rgba( 255, 255, 255, 0.08 );
	cursor: pointer;
	transition: border-color 0.18s, opacity 0.18s;
	opacity: 0.55;
}

.jsb-lightbox-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jsb-lightbox-thumb:hover {
	opacity: 0.85;
	border-color: rgba( 255, 255, 255, 0.5 );
}

.jsb-lightbox-thumb.is-active {
	border-color: #fff;
	opacity: 1;
}

/* Hide thumbs strip when only one image */
.jsb-lightbox[data-count="1"] .jsb-lightbox-thumbs {
	display: none;
}

/* Close button */
.jsb-lightbox-close {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba( 255, 255, 255, 0.12 );
	border: 1px solid rgba( 255, 255, 255, 0.2 );
	border-radius: 50%;
	cursor: pointer;
	color: #fff;
	padding: 0;
	transition: background 0.18s;
}

.jsb-lightbox-close:hover {
	background: rgba( 255, 255, 255, 0.25 );
}

.jsb-lightbox-close svg {
	width: 20px;
	height: 20px;
	display: block;
}

/* Prev / Next nav */
.jsb-lightbox-nav {
	position: fixed;
	top: 50%;
	transform: translateY( -50% );
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba( 255, 255, 255, 0.12 );
	border: 1px solid rgba( 255, 255, 255, 0.2 );
	border-radius: 50%;
	cursor: pointer;
	color: #fff;
	padding: 0;
	transition: background 0.18s, transform 0.18s;
}

.jsb-lightbox-nav--prev { left: 16px; }
.jsb-lightbox-nav--next { right: 16px; }

.jsb-lightbox-nav:hover {
	background: rgba( 255, 255, 255, 0.25 );
	transform: translateY( -50% ) scale( 1.08 );
}

.jsb-lightbox-nav svg {
	width: 24px;
	height: 24px;
	display: block;
}

/* Counter "2 / 5" — sits above the thumb strip inside the stage */
.jsb-lightbox-counter {
	color: rgba( 255, 255, 255, 0.6 );
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-align: center;
	flex-shrink: 0;
	pointer-events: none;
	margin-top: -6px;
}

/* Hide nav + counter when only one image */
.jsb-lightbox[data-count="1"] .jsb-lightbox-nav,
.jsb-lightbox[data-count="1"] .jsb-lightbox-counter {
	display: none;
}

/* Swipe support — no text selection while dragging */
.jsb-lightbox.is-open {
	-webkit-user-select: none;
	user-select: none;
}

@media ( max-width: 600px ) {
	.jsb-lightbox-stage {
		max-width: 100vw;
		padding: 0 8px;
	}

	.jsb-lightbox-img {
		max-height: calc( 100vh - 200px );
	}

	.jsb-lightbox-thumb {
		width: 56px;
		height: 44px;
	}

	.jsb-lightbox-nav--prev { left: 8px; }
	.jsb-lightbox-nav--next { right: 8px; }
}

.jsb-gallery-thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
}

.jsb-gallery-thumbs::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

.jsb-thumb-btn {
	flex: 1 1 0;
	min-width: 0;
	background: none;
	border: 2px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	padding: 0;
	overflow: hidden;
	transition: border-color 0.15s, opacity 0.15s;
}

.jsb-thumb-btn:hover {
	border-color: #aaa;
	opacity: 0.85;
}

.jsb-thumb-btn.is-active {
	border-color: #1a1a1a;
}

.jsb-thumb-img {
	width: 100%;
	height: 72px;
	object-fit: cover;
	display: block;
}

/* ── Product Custom Variations section ───────────────────── */
.jsb-variations-section {
	margin-bottom: 32px;
}

.jsb-variations-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e0e0e0;
}

/* ── Cards section (below gallery) ──────────────────────── */
.jsb-cards-section {
	margin-bottom: 32px;
}

.jsb-cards-section-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e0e0e0;
}

.jsb-cards-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 16px;
}

.jsb-card {
	margin-top: 5px;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 18px 16px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: box-shadow 0.18s, transform 0.18s;
}

.jsb-card:hover {
	box-shadow: 0 4px 18px rgba( 0, 0, 0, 0.08 );
	transform: translateY( -2px );
}

/* Selectable cards (those with a numeric_price set) */
.jsb-card--selectable {
	cursor: pointer;
	transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}

.jsb-card--selectable:hover {
	border-color: #999;
}

.jsb-card--selectable.is-active {
	margin-top: 5px;
	border-color: #1a1a1a;
	transform: translateY( -2px );
}

.jsb-card--selectable.is-active .jsb-card-title {
	color: #1a1a1a;
}

.jsb-card--selectable.is-active .jsb-card-price {
	color: #1a1a1a;
}

/* Icon + Title side by side */
.jsb-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.jsb-card-icon {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	flex-shrink: 0;
}

.jsb-card-icon-img {
	width: 35px;
	height: 35px;
	object-fit: contain;
	display: block;
}

.jsb-card-title {
	font-size: 0.88rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	line-height: 1.3;
}

.jsb-card-desc {
	font-size: 0.8rem;
	color: #666;
	line-height: 1.5;
	margin: 0;
}

.jsb-card-price {
	font-size: 0.95rem;
	font-weight: 700;
	color: #c0392b;
	margin-top: auto;
}

/* ── Description ─────────────────────────────────────────── */
.jsb-description-heading {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e0e0e0;
}

.jsb-description-body {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #444;
}

.jsb-description-body p:last-child {
	margin-bottom: 0;
}

/* ── Info row (above title) ──────────────────────────────── */
.jsb-info-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.jsb-info-left,
.jsb-info-right {
	font-size: 0.85rem;
	font-weight: 600;
	color: #666;
	line-height: 1.4;
}

.jsb-info-right {
	text-align: right;
}

/* ── Product title ───────────────────────────────────────── */
.jsb-product-title {
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 12px;
	color: #1a1a1a;
}

/* ── Short description ───────────────────────────────────── */
.jsb-short-description {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #555;
	margin-bottom: 20px;
}

.jsb-short-description p:last-child {
	margin-bottom: 0;
}

/* ── Shipping note ───────────────────────────────────────── */
.jsb-shipping-note {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f0f7ff;
	border: 1px solid #c8dff7;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 0.88rem;
	font-weight: 600;
	color: #1a5276;
	margin-bottom: 20px;
}

.jsb-shipping-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: #2271b1;
}

/* ── Pricing ─────────────────────────────────────────────── */
.jsb-pricing {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.jsb-price-regular del {
	color: #999;
	font-size: 1rem;
}

.jsb-price-sale {
	font-size: 1.6rem;
	font-weight: 700;
	color: #c0392b;
}

.jsb-price-range {
	font-size: 1.2rem;
	font-weight: 600;
	color: #333;
}

/* Override WooCommerce wc_price wrappers inside our elements */
.jsb-pricing .woocommerce-Price-amount {
	font-weight: inherit;
	color: inherit;
	font-size: inherit;
}

/* ── Stock badge ─────────────────────────────────────────── */
.jsb-stock {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.jsb-stock--instock {
	background: #e6f4ea;
	color: #1e7e34;
}

.jsb-stock--outofstock {
	background: #fdecea;
	color: #c0392b;
}

.jsb-stock--onbackorder {
	background: #fff8e1;
	color: #856404;
}

/* ── Variation selects ───────────────────────────────────── */
.jsb-variation-row {
	margin-bottom: 14px;
}

.jsb-variation-label {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	margin-bottom: 4px;
	color: #333;
}

.jsb-variation-select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	cursor: pointer;
	appearance: auto;
}

.jsb-variation-select:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
	border-color: #2271b1;
}

/* ── Quantity control ────────────────────────────────────── */
.jsb-qty-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.jsb-qty-label {
	font-size: 0.88rem;
	font-weight: 600;
	color: #333;
	min-width: 28px;
}

.jsb-qty-control {
	display: flex;
	align-items: center;
	border: 1px solid #ccc;
	border-radius: 6px;
	overflow: hidden;
}

.jsb-qty-btn {
	background: #f5f5f5;
	border: none;
	width: 36px;
	height: 40px;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	color: #444;
	transition: background 0.15s;
	user-select: none;
}

.jsb-qty-btn:hover {
	background: #e8e8e8;
}

.jsb-qty-input {
	width: 56px;
	height: 40px;
	border: none;
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
	text-align: center;
	font-size: 1rem;
	-moz-appearance: textfield;
}

.jsb-qty-input::-webkit-outer-spin-button,
.jsb-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.jsb-qty-input:focus {
	outline: 2px solid #2271b1;
	outline-offset: -2px;
}

/* ── Add to cart button ──────────────────────────────────── */
.jsb-atc-btn {
	display: block;
	width: 100%;
	padding: 14px 24px;
	background: #1a1a1a;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	text-align: center;
}

.jsb-atc-btn:hover:not(:disabled) {
	background: #333;
}

.jsb-atc-btn:active:not(:disabled) {
	transform: scale(0.98);
}

.jsb-atc-btn:disabled,
.jsb-atc-btn--disabled {
	background: #aaa;
	cursor: not-allowed;
	opacity: 0.7;
}

.jsb-atc-btn.is-loading {
	opacity: 0.75;
	pointer-events: none;
}

/* ── Feedback message ────────────────────────────────────── */
.jsb-atc-message {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 0.92rem;
	text-align: center;
}

.jsb-atc-message--success {
	background: #e6f4ea;
	color: #1e7e34;
	border: 1px solid #b7dfbe;
}

.jsb-atc-message--error {
	background: #fdecea;
	color: #c0392b;
	border: 1px solid #f5c6cb;
}

/* ── Size & Area boxes ───────────────────────────────────── */
.jsb-size-area-row {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
}

.jsb-info-box {
	flex: 1;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 12px 14px;
	background: #fafafa;
}

.jsb-info-box-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #999;
	margin-bottom: 4px;
}

.jsb-info-box-value {
	font-size: 0.95rem;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.3;
}

/* ── Technical Drawing ───────────────────────────────────── */
.jsb-technical-drawing {
	margin-bottom: 24px;
}

.jsb-technical-drawing-title {
	font-size: 0.9rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e0e0e0;
}

.jsb-drawing-lightbox-btn {
	display: block;
	width: 100%;
	padding: 0;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: none;
	cursor: zoom-in;
	position: relative;
	overflow: hidden;
	line-height: 0; /* removes gap below inline img */
}

.jsb-drawing-lightbox-btn:hover .jsb-drawing-img {
	opacity: 0.88;
}

.jsb-drawing-lightbox-btn:hover .jsb-drawing-zoom-hint {
	opacity: 1;
}

.jsb-drawing-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 5px;
	transition: opacity 0.18s;
}

/* Expand icon that appears on hover */
.jsb-drawing-zoom-hint {
	position: absolute;
	bottom: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	background: rgba( 255, 255, 255, 0.9 );
	border-radius: 7px;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.15 );
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.18s;
	pointer-events: none;
}

.jsb-drawing-zoom-hint svg {
	width: 16px;
	height: 16px;
	display: block;
	color: #1a1a1a;
}

/* ── Optional Extras ─────────────────────────────────────── */
.jsb-extras {
	margin-bottom: 24px;
	position: relative;
}

/* Loader overlay while AJAX is in flight */
.jsb-extras.is-loading::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba( 255, 255, 255, 0.6 );
	border-radius: 6px;
	z-index: 1;
}

.jsb-extras.is-loading::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 22px;
	margin: -11px 0 0 -11px;
	border: 3px solid #e0e0e0;
	border-top-color: #1a1a1a;
	border-radius: 50%;
	animation: jsb-spin 0.7s linear infinite;
	z-index: 2;
}

@keyframes jsb-spin {
	to { transform: rotate( 360deg ); }
}

/* Dim checkboxes while loading */
.jsb-extras.is-loading .jsb-extra-item {
	pointer-events: none;
	opacity: 0.5;
}

.jsb-extras-title {
	font-size: 0.9rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 4px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e0e0e0;
}

.jsb-extra-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}

.jsb-extra-item:last-child {
	border-bottom: none;
}

/* Clickable label portion (checkbox + text) */
.jsb-extra-label {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
	cursor: pointer;
}

.jsb-extra-label:hover .jsb-extra-title-text {
	color: #2271b1;
}

/* Right side: price + tooltip icon */
.jsb-extra-right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

/* ── Tooltip info icon ───────────────────────────────────── */
.jsb-tooltip-btn {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	color: #bbb;
	flex-shrink: 0;
	transition: color 0.15s;
	line-height: 1;
}

.jsb-tooltip-btn:hover {
	color: #2271b1;
}

.jsb-tooltip-btn svg {
	width: 16px;
	height: 16px;
	display: block;
}

/* Hidden content container (read by JS, never shown directly) */
.jsb-tooltip-content {
	display: none !important;
}

/* ── Tooltip modal ───────────────────────────────────────── */
.jsb-tooltip-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.22s ease;
	pointer-events: none;
}

.jsb-tooltip-modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

.jsb-tooltip-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.52 );
	cursor: pointer;
}

.jsb-tooltip-modal-box {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 48px rgba( 0, 0, 0, 0.22 );
	max-width: 520px;
	width: 100%;
	max-height: 80vh;
	overflow-y: auto;
	padding: 32px 28px 28px;
	box-sizing: border-box;
	transform: translateY( 12px ) scale( 0.97 );
	transition: transform 0.22s ease;
}

.jsb-tooltip-modal.is-open .jsb-tooltip-modal-box {
	transform: translateY( 0 ) scale( 1 );
}

.jsb-tooltip-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: #f0f0f0;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	color: #444;
	transition: background 0.15s, color 0.15s;
}

.jsb-tooltip-modal-close:hover {
	background: #1a1a1a;
	color: #fff;
}

.jsb-tooltip-modal-close svg {
	width: 16px;
	height: 16px;
	display: block;
}

.jsb-tooltip-modal-body {
	font-size: 0.92rem;
	line-height: 1.7;
	color: #333;
}

.jsb-tooltip-modal-body > *:first-child { margin-top: 0; }
.jsb-tooltip-modal-body > *:last-child  { margin-bottom: 0; }
.jsb-tooltip-modal-body p  { margin: 0 0 10px; }
.jsb-tooltip-modal-body h2,
.jsb-tooltip-modal-body h3,
.jsb-tooltip-modal-body h4 { color: #1a1a1a; margin: 0 0 8px; }
.jsb-tooltip-modal-body ul,
.jsb-tooltip-modal-body ol { padding-left: 20px; margin: 0 0 10px; }
.jsb-tooltip-modal-body li { margin-bottom: 4px; }
.jsb-tooltip-modal-body a  { color: #2271b1; text-decoration: underline; }
.jsb-tooltip-modal-body img { max-width: 100%; height: auto; border-radius: 6px; }

/* Prevent body scroll when modal open */
body.jsb-modal-open {
	overflow: hidden;
}

.jsb-extra-check {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	cursor: pointer;
	accent-color: #1a1a1a;
	margin: 0;
}

.jsb-extra-content {
	flex: 1;
	min-width: 0;
}

.jsb-extra-price-label {
	flex-shrink: 0;
}

.jsb-extra-title-text {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.3;
}

.jsb-extra-desc-text {
	display: block;
	font-size: 0.8rem;
	color: #777;
	line-height: 1.3;
	margin-top: 1px;
}

.jsb-extra-price-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: #444;
	white-space: nowrap;
}

/* ── Price summary (shown when extras selected) ──────────── */
.jsb-price-summary {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 14px;
}

.jsb-price-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 9px 14px;
	font-size: 0.88rem;
	color: #555;
	border-bottom: 1px solid #f0f0f0;
}

.jsb-price-summary-row:last-child {
	border-bottom: none;
}

.jsb-price-summary-extra-item {
	color: #1a5276;
	background: #f0f7ff;
	font-size: 0.84rem;
}

.jsb-summary-extra-name {
	font-style: italic;
}

.jsb-summary-extra-price {
	white-space: nowrap;
}

.jsb-price-summary-total {
	font-weight: 700;
	font-size: 0.95rem;
	color: #1a1a1a;
	background: #fafafa;
}

/* Skeleton shimmer while AJAX loads */
.jsb-summary-total-value.is-loading,
.jsb-summary-extras-value.is-loading {
	display: inline-block;
	width: 70px;
	height: 14px;
	background: linear-gradient( 90deg, #e0e0e0 25%, #ebebeb 50%, #e0e0e0 75% );
	background-size: 200% 100%;
	animation: jsb-shimmer 1.2s infinite;
	border-radius: 4px;
	vertical-align: middle;
}

@keyframes jsb-shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ── Buy Now button ──────────────────────────────────────── */
.jsb-buy-section {
	margin-top: 4px;
}

.jsb-buy-now-btn {
	display: block;
	width: 100%;
	padding: 15px 24px;
	background: #1a1a1a;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	text-align: center;
}

.jsb-buy-now-btn:hover:not(:disabled) {
	background: #333;
}

.jsb-buy-now-btn:active:not(:disabled) {
	transform: scale(0.98);
}

.jsb-buy-now-btn:disabled,
.jsb-buy-now-btn.is-loading {
	opacity: 0.65;
	cursor: not-allowed;
	pointer-events: none;
}

/* ── Enquiry form ────────────────────────────────────────── */
.jsb-product-wrap .jsb-enquiry {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 2px solid #e0e0e0;
}

.jsb-product-wrap .jsb-enquiry-title {
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 6px;
	padding: 0;
	border: none;
	background: none;
}

.jsb-product-wrap .jsb-enquiry-desc {
	font-size: 0.85rem;
	color: #666;
	line-height: 1.55;
	margin: 0 0 18px;
	padding: 0;
}

.jsb-product-wrap .jsb-form-field {
	margin-bottom: 10px;
	padding: 0;
}

.jsb-product-wrap .jsb-form-input,
.jsb-product-wrap .jsb-form-input[type="text"],
.jsb-product-wrap .jsb-form-input[type="email"],
.jsb-product-wrap .jsb-form-input[type="tel"],
.jsb-product-wrap textarea.jsb-form-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	margin: 0;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	font-size: 0.9rem;
	font-family: inherit;
	line-height: 1.5;
	color: #1a1a1a;
	background: #fff;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.jsb-product-wrap .jsb-form-input::placeholder,
.jsb-product-wrap textarea.jsb-form-input::placeholder {
	color: #aaa;
	opacity: 1;
}

.jsb-product-wrap .jsb-form-input:focus,
.jsb-product-wrap textarea.jsb-form-input:focus {
	outline: none;
	border-color: #1a1a1a;
	box-shadow: 0 0 0 3px rgba( 26, 26, 26, 0.08 );
}

.jsb-product-wrap textarea.jsb-form-input {
	resize: vertical;
	min-height: 90px;
	height: auto;
}

/* ── Marketing opt-in checkbox ───────────────────────────── */
.jsb-product-wrap .jsb-marketing-opt-in,
.jsb-callback-modal-box .jsb-marketing-opt-in {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
	cursor: pointer;
	user-select: none;
}

.jsb-marketing-opt-in input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.jsb-marketing-check-mark {
	width: 18px;
	height: 18px;
	min-width: 18px;
	border: 2px solid #ccc;
	border-radius: 4px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
	transition: border-color 0.15s, background 0.15s;
}

.jsb-marketing-check-mark::after {
	content: '';
	width: 10px;
	height: 6px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate( -45deg ) translateY( -1px );
	opacity: 0;
	transition: opacity 0.15s;
}

.jsb-marketing-opt-in input[type="checkbox"]:checked ~ .jsb-marketing-check-mark {
	background: #1a1a1a;
	border-color: #1a1a1a;
}

.jsb-marketing-opt-in input[type="checkbox"]:checked ~ .jsb-marketing-check-mark::after {
	opacity: 1;
}

.jsb-marketing-opt-in:hover .jsb-marketing-check-mark {
	border-color: #1a1a1a;
}

.jsb-marketing-check-text {
	font-size: 0.82rem;
	color: #555;
	line-height: 1.45;
	padding-top: 1px;
}

/* ── Enquiry buttons ─────────────────────────────────────── */
.jsb-product-wrap .jsb-enquiry-buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 14px;
}

.jsb-product-wrap .jsb-enquiry-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 18px;
	border-radius: 6px;
	font-size: 0.82rem;
	font-family: inherit;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	border: 2px solid #1a1a1a;
	-webkit-appearance: none;
	appearance: none;
	transition: background 0.18s, color 0.18s, opacity 0.18s;
	position: relative;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-shadow: none;
}

.jsb-product-wrap .jsb-enquiry-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Primary — solid dark */
.jsb-product-wrap .jsb-enquiry-btn--primary {
	background: #1a1a1a;
	color: #fff;
}

.jsb-product-wrap .jsb-enquiry-btn--primary:hover:not(:disabled) {
	background: #333;
	border-color: #333;
	color: #fff;
}

/* Secondary — outline */
.jsb-product-wrap .jsb-enquiry-btn--secondary {
	background: transparent;
	color: #1a1a1a;
}

.jsb-product-wrap .jsb-enquiry-btn--secondary:hover:not(:disabled) {
	background: #1a1a1a;
	color: #fff;
}

/* Spinner inside button while loading */
.jsb-product-wrap .jsb-enquiry-btn.is-loading::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: jsb-spin 0.7s linear infinite;
	flex-shrink: 0;
	vertical-align: middle;
}

/* ── Enquiry feedback message ────────────────────────────── */
.jsb-product-wrap .jsb-enquiry-message {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 0.88rem;
	text-align: center;
	line-height: 1.4;
}

.jsb-product-wrap .jsb-enquiry-message--success {
	background: #e6f4ea;
	color: #1e7e34;
	border: 1px solid #b7dfbe;
}

.jsb-product-wrap .jsb-enquiry-message--error {
	background: #fdecea;
	color: #c0392b;
	border: 1px solid #f5c6cb;
}

/* ── Technical Specifications ────────────────────────────── */
.jsb-specs-section {
	margin-bottom: 32px;
}

.jsb-specs-section-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e0e0e0;
}

.jsb-specs-table {
	display: flex;
	flex-direction: column;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	overflow: hidden;
}

.jsb-spec-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 13px 18px;
	border-bottom: 1px solid #f0f0f0;
	background: #fff;
	transition: background 0.15s;
}

.jsb-spec-row:last-child {
	border-bottom: none;
}

.jsb-spec-row:nth-child(even) {
	background: #fafafa;
}

.jsb-spec-row:hover {
	background: #f5f8ff;
}

/* Left side: icon + title */
.jsb-spec-row-left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.jsb-spec-icon {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	flex-shrink: 0;
}

.jsb-spec-icon-img {
	width: 35px;
	height: 35px;
	object-fit: contain;
	display: block;
}

.jsb-spec-title-text {
	font-size: 0.88rem;
	font-weight: 700;
	color: #1a1a1a;
	white-space: nowrap;
}

/* Right side: description */
.jsb-spec-row-desc {
	font-size: 0.88rem;
	color: #555;
	text-align: right;
	line-height: 1.45;
}

/* ── Call Back Request Modal ─────────────────────────────── */
.jsb-callback-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.22s ease;
	pointer-events: none;
}

.jsb-callback-modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

.jsb-callback-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.52 );
	cursor: pointer;
}

.jsb-callback-modal-box {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 16px 56px rgba( 0, 0, 0, 0.22 );
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 36px 32px 30px;
	box-sizing: border-box;
	transform: translateY( 14px ) scale( 0.97 );
	transition: transform 0.22s ease;
}

.jsb-callback-modal.is-open .jsb-callback-modal-box {
	transform: translateY( 0 ) scale( 1 );
}

.jsb-callback-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: #f0f0f0;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	color: #444;
	transition: background 0.15s, color 0.15s;
}

.jsb-callback-modal-close:hover {
	background: #1a1a1a;
	color: #fff;
}

.jsb-callback-modal-close svg {
	width: 16px;
	height: 16px;
	display: block;
}

.jsb-callback-modal-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 6px;
}

.jsb-callback-modal-desc {
	font-size: 0.88rem;
	color: #666;
	line-height: 1.55;
	margin: 0 0 20px;
}

/* Reuse .jsb-form-field / .jsb-form-input from enquiry form */
.jsb-callback-modal-box .jsb-form-field {
	margin-bottom: 10px;
}

.jsb-callback-modal-box .jsb-form-input,
.jsb-callback-modal-box .jsb-form-input[type="text"],
.jsb-callback-modal-box .jsb-form-input[type="email"],
.jsb-callback-modal-box .jsb-form-input[type="tel"],
.jsb-callback-modal-box textarea.jsb-form-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	margin: 0;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	font-size: 0.9rem;
	font-family: inherit;
	line-height: 1.5;
	color: #1a1a1a;
	background: #fff;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.jsb-callback-modal-box .jsb-form-input::placeholder,
.jsb-callback-modal-box textarea.jsb-form-input::placeholder {
	color: #aaa;
	opacity: 1;
}

.jsb-callback-modal-box .jsb-form-input:focus,
.jsb-callback-modal-box textarea.jsb-form-input:focus {
	outline: none;
	border-color: #1a1a1a;
	box-shadow: 0 0 0 3px rgba( 26, 26, 26, 0.08 );
}

.jsb-callback-modal-box textarea.jsb-form-input {
	resize: vertical;
	min-height: 80px;
}

/* ── Callback time radio group ───────────────────────────── */
.jsb-callback-time-group {
	margin: 16px 0 20px;
}

.jsb-callback-time-heading {
	font-size: 0.88rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #ebebeb;
}

.jsb-callback-radio {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	margin-bottom: 6px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.9rem;
	color: #333;
	transition: border-color 0.15s, background 0.15s;
	user-select: none;
}

.jsb-callback-radio:last-child {
	margin-bottom: 0;
}

.jsb-callback-radio:hover {
	border-color: #1a1a1a;
	background: #fafafa;
}

.jsb-callback-radio input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.jsb-callback-radio-mark {
	width: 18px;
	height: 18px;
	border: 2px solid #ccc;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s;
}

.jsb-callback-radio-mark::after {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #1a1a1a;
	opacity: 0;
	transform: scale( 0 );
	transition: opacity 0.15s, transform 0.15s;
}

.jsb-callback-radio input[type="radio"]:checked ~ .jsb-callback-radio-mark {
	border-color: #1a1a1a;
}

.jsb-callback-radio input[type="radio"]:checked ~ .jsb-callback-radio-mark::after {
	opacity: 1;
	transform: scale( 1 );
}

.jsb-callback-radio:has( input[type="radio"]:checked ) {
	border-color: #1a1a1a;
	background: #f5f5f5;
}

/* ── Callback submit button ──────────────────────────────── */
.jsb-callback-submit {
	display: block;
	width: 100%;
	padding: 13px 24px;
	background: #1a1a1a;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.9rem;
	font-family: inherit;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.18s, opacity 0.18s;
}

.jsb-callback-submit:hover:not(:disabled) {
	background: #333;
}

.jsb-callback-submit:disabled,
.jsb-callback-submit.is-loading {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Callback feedback message ───────────────────────────── */
.jsb-callback-message {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 0.88rem;
	text-align: center;
	line-height: 1.4;
}

.jsb-callback-message--success {
	background: #e6f4ea;
	color: #1e7e34;
	border: 1px solid #b7dfbe;
}

.jsb-callback-message--error {
	background: #fdecea;
	color: #c0392b;
	border: 1px solid #f5c6cb;
}

/* ── Responsive ──────────────────────────────────────────── */
@media ( max-width: 768px ) {
	.jsb-product-wrap {
		flex-direction: column;
		gap: 24px;
	}

	.jsb-col-right,
	.jsb-col-left {
		flex: 0 0 100%;
		max-width: 100%;
		order: unset;
	}

	/* On mobile: gallery first, then info */
	.jsb-col-right { order: 0; }
	.jsb-col-left  { order: 1; }

	/* Hide prev/next buttons on touch devices — swipe is used instead */
	.jsb-gallery-nav {
		display: none;
	}

	/* Variations cards: single horizontal scrollable row on mobile */
	.jsb-variations-section .jsb-cards-grid {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 12px;
		padding-bottom: 8px;
		/* Hide scrollbar */
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.jsb-variations-section .jsb-cards-grid::-webkit-scrollbar {
		display: none;
	}

	.jsb-variations-section .jsb-cards-grid .jsb-card {
		flex: 0 0 72%;
		scroll-snap-align: start;
		min-width: 0;
	}
}
