/* Product media: series pages + product pages (loaded after the page styles). */

/* ---------- Price: current price first, struck-through price smaller after it ---------- */
.series-total-page--complete .vape-pdp-price-row .vape-pdp-price,
.single-product div.product .vape-pdp-price-row p.price.vape-pdp-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 10px;
	row-gap: 2px;
}
.vape-pdp-price-row .vape-pdp-price ins {
	order: 1;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: none;
}
.vape-pdp-price-row .vape-pdp-price del {
	order: 2;
	color: #8a94a3;
	font-size: .52em;
	font-weight: 600;
	opacity: 1;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}
.vape-pdp-price-row .vape-pdp-price del .amount,
.vape-pdp-price-row .vape-pdp-price ins .amount { color: inherit; }
.vape-pdp-price-row .vape-pdp-price .screen-reader-text { order: 3; }

/* ---------- Weekly offer badge (top right of the main image) ---------- */
.fumot-weekly-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 21;
	padding: 7px 13px;
	border-radius: 999px;
	background: #d63384;
	color: #fff;
	box-shadow: 0 6px 18px rgba(214, 51, 132, .3);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .01em;
	pointer-events: none;
}

/* ---------- Series page: main image opens the full-screen view ---------- */
.series-total-page .vape-main-img-box { touch-action: pan-y; }
.series-total-page .vape-main-img-box img.is-zoomable { cursor: zoom-in; -webkit-user-drag: none; user-select: none; }
.series-total-page .vape-main-img-box img.is-zoomable:focus-visible { outline: 3px solid #1975fc; outline-offset: -3px; }

/* ---------- Product page gallery ---------- */
.single-product div.product div.images.woocommerce-product-gallery { position: relative; }
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image a { cursor: zoom-in; }
.single-product .woocommerce-product-gallery__trigger { display: none !important; }
.single-product div.product div.images .flex-control-thumbs { display: none; }
.single-product .woocommerce-product-gallery .flex-viewport { touch-action: pan-y; }

.single-product .woocommerce-product-gallery .flex-direction-nav { position: absolute; inset: 50% 0 auto; z-index: 20; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.single-product .woocommerce-product-gallery .flex-direction-nav li { margin: 0; padding: 0; }
.single-product .woocommerce-product-gallery .flex-direction-nav a {
	position: absolute;
	top: 0;
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: #111827;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
	font-size: 28px;
	line-height: 1;
	text-decoration: none;
	transform: translateY(-50%);
	pointer-events: auto;
}
.single-product .woocommerce-product-gallery .flex-direction-nav a:hover { background: #fff; color: #1975fc; }
.single-product .woocommerce-product-gallery .flex-direction-nav .flex-prev { left: 12px; }
.single-product .woocommerce-product-gallery .flex-direction-nav .flex-next { right: 12px; }
.single-product .woocommerce-product-gallery .flex-direction-nav .flex-disabled { display: none; }

.fumot-gallery-counter {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 21;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(7, 17, 31, .72);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

.single-product .woocommerce-product-gallery .vape-video-btn {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 21;
	padding: 10px 16px;
	border: 0;
	border-radius: 999px;
	background: rgba(7, 17, 31, .88);
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}
.single-product .woocommerce-product-gallery .vape-video-btn:hover { background: #1975fc; color: #fff; }

/* Video popup on product pages (series pages get it from product-category.css). */
.single-product .vape-video-popup { position: fixed; inset: 0; z-index: 2147483646; display: none; width: 100vw; height: 100vh; padding: 16px; align-items: center; justify-content: center; box-sizing: border-box; }
.single-product .vape-video-popup.active { display: flex; }
.single-product .vape-video-popup .vape-video-bg { position: fixed; inset: 0; z-index: 2147483646; width: 100vw; height: 100vh; padding: 0; border: 0; border-radius: 0; background: rgba(0, 0, 0, .72); }
.single-product .vape-video-popup .vape-video-box { position: relative; z-index: 2147483647; width: min(900px, 92vw); overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; }
.single-product .vape-video-popup .vape-video-box video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.single-product .vape-video-popup .vape-video-close { position: fixed; top: 20px; right: 20px; z-index: 2147483647; display: flex; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .98); color: #111827; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-size: 30px; font-weight: 400; line-height: 1; cursor: pointer; }
body.vape-video-open { overflow: hidden; }

/* Full-screen view (PhotoSwipe) on product pages: only close + arrows. */
.single-product .pswp__button--share,
.single-product .pswp__button--fs,
.single-product .pswp__button--zoom { display: none !important; }

/* ---------- Series page full-screen viewer ---------- */
.fumot-lightbox[hidden] { display: none; }
.fumot-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 72px;
	background: rgba(4, 12, 24, .94);
	touch-action: pan-y;
}
.fumot-lightbox__figure { display: flex; width: 100%; height: 100%; margin: 0; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.fumot-lightbox__figure img { display: block; max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.fumot-lightbox__figure figcaption { color: rgba(255, 255, 255, .85); font-size: 15px; font-weight: 600; text-align: center; }
.fumot-lightbox__close,
.fumot-lightbox__nav {
	position: absolute;
	z-index: 2;
	display: grid;
	width: 46px;
	min-width: 46px;
	height: 46px;
	min-height: 46px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	box-shadow: none;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.fumot-lightbox__close:hover,
.fumot-lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.fumot-lightbox__close:focus-visible,
.fumot-lightbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fumot-lightbox__close { top: 16px; right: 16px; }
.fumot-lightbox__nav { top: 50%; transform: translateY(-50%); }
.fumot-lightbox__nav.is-prev { left: 16px; }
.fumot-lightbox__nav.is-next { right: 16px; }
.fumot-lightbox__counter { position: absolute; top: 26px; left: 20px; color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
body.fumot-lightbox-open { overflow: hidden; }

@media (max-width: 768px) {
	.fumot-weekly-badge { top: 10px; right: 10px; padding: 6px 11px; font-size: 12px; }
	.fumot-gallery-counter { left: 10px; bottom: 10px; font-size: 12px; }
	.single-product .woocommerce-product-gallery .vape-video-btn { right: 12px; bottom: 12px; padding: 9px 13px; font-size: 13px; }
	.single-product .woocommerce-product-gallery .flex-direction-nav a { width: 34px; height: 34px; font-size: 24px; }
	.single-product .woocommerce-product-gallery .flex-direction-nav .flex-prev { left: 8px; }
	.single-product .woocommerce-product-gallery .flex-direction-nav .flex-next { right: 8px; }
	.single-product .vape-video-popup { padding: 12px; }
	.single-product .vape-video-popup .vape-video-box { border-radius: 14px; }
	.single-product .vape-video-popup .vape-video-close { top: 14px; right: 14px; width: 42px; height: 42px; font-size: 28px; }
	.fumot-lightbox { padding: 60px 8px; }
	.fumot-lightbox__close { top: 10px; right: 10px; width: 42px; min-width: 42px; height: 42px; min-height: 42px; }
	.fumot-lightbox__nav { top: 50%; bottom: auto; transform: translateY(-50%); width: 38px; min-width: 38px; height: 38px; min-height: 38px; background: rgba(4, 12, 24, .55); font-size: 26px; }
	.fumot-lightbox__nav.is-prev { left: 6px; }
	.fumot-lightbox__nav.is-next { right: 6px; }
	.fumot-lightbox__counter { top: 22px; left: 14px; }
}

/* Series page feature gallery: arrows + counter on the main image instead of a thumbnail strip. */
.series-total-page .vape-thumb-gallery--features { display: none; }
.series-total-page .fumot-series-nav {
	position: absolute;
	top: 50%;
	z-index: 20;
	display: grid;
	width: 40px;
	min-width: 0;
	height: 40px;
	min-height: 0;
	padding: 0 0 3px;
	place-items: center;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: #111827;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
	font-family: inherit;
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	-webkit-tap-highlight-color: transparent;
}
.series-total-page .vape-main-img-box .fumot-series-ghost {
	position: absolute;
	z-index: 1;
	max-width: none;
	max-height: none;
	margin: 0;
	object-fit: contain;
	pointer-events: none;
}
.series-total-page .fumot-series-nav:hover { background: #fff; color: #1975fc; }
.series-total-page .fumot-series-nav:focus-visible { outline: 2px solid #1975fc; outline-offset: 2px; }
.series-total-page .fumot-series-nav.is-prev { left: 12px; }
.series-total-page .fumot-series-nav.is-next { right: 12px; }
@media (max-width: 768px) {
	.series-total-page .fumot-series-nav { width: 34px; height: 34px; font-size: 24px; }
	.series-total-page .fumot-series-nav.is-prev { left: 8px; }
	.series-total-page .fumot-series-nav.is-next { right: 8px; }
}
.series-total-page .fumot-series-nav[hidden],
.fumot-lightbox__nav[hidden] { display: none; }
