/* ==========================================================================
   VapeEra Custom — single product page
   Loaded on product pages only (inc/shop/product.php). Styles WooCommerce's own markup.
   ========================================================================== */

.single-product .vc-main--shop {
	padding-top: var(--vc-space-3);
}

/* 1. Layout: gallery | summary
   ========================================================================== */
.woocommerce div.product.vc-product {
	display: block;
}

.vc-product__main {
	display: grid;
	gap: var(--vc-space-5);
	margin-bottom: var(--vc-space-7);
}

@media (min-width: 900px) {
	.vc-product__main {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		gap: clamp(2rem, 4vw, 4rem);
		align-items: start;
	}

	.vc-product__gallery {
		position: sticky;
		top: calc(var(--vc-sticky-offset, 140px));
	}
}

/* Undo WooCommerce's float widths — the grid handles columns. */
.woocommerce div.product .vc-product__gallery div.images,
.woocommerce div.product .vc-product__summary.summary {
	float: none;
	width: auto;
	margin: 0;
}

/* 2. Gallery (WooCommerce native: flexslider + zoom + photoswipe)
   ========================================================================== */
.vc-product__gallery {
	min-width: 0;
}

@media (max-width: 899px) {
	.vc-product__gallery {
		position: relative;
	}
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
	margin: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .flex-viewport {
	overflow: hidden;
	border-radius: var(--vc-radius);
	background: var(--vc-surface-alt);
}

.woocommerce div.product div.images img {
	aspect-ratio: 1;
	object-fit: contain;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	top: var(--vc-space-3);
	right: var(--vc-space-3);
	z-index: 5;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--vc-shadow);
}

/* Thumbnails: one scrollable row (products can have 30+ images). */
.woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	gap: var(--vc-space-2);
	margin: var(--vc-space-3) 0 0;
	padding: 0 0 var(--vc-space-1);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.woocommerce div.product div.images .flex-control-thumbs li {
	flex: 0 0 clamp(64px, 17%, 88px);
	width: auto;
	float: none;
	margin: 0;
	scroll-snap-align: start;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
	border: 2px solid transparent;
	border-radius: var(--vc-radius-sm);
	background: var(--vc-surface-alt);
	opacity: 0.7;
	cursor: pointer;
	transition: opacity 0.15s, border-color 0.15s;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
	border-color: var(--vc-primary);
	opacity: 1;
}

/* Arrows (directionNav) */
.vc-product__gallery .flex-direction-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vc-product__gallery .flex-direction-nav a {
	position: absolute;
	top: 0;
	z-index: 4;
	display: flex;
	width: 40px;
	height: 40px;
	margin-top: calc(50% - 20px);
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 50%;
	background: rgb(255 255 255 / 92%);
	box-shadow: var(--vc-shadow);
	color: transparent;
	text-decoration: none;
}

.vc-product__gallery .flex-direction-nav a::before {
	content: "";
	width: 10px;
	height: 10px;
	border-top: 2px solid var(--vc-ink);
	border-right: 2px solid var(--vc-ink);
}

.vc-product__gallery .flex-direction-nav .flex-prev {
	left: var(--vc-space-3);
}

.vc-product__gallery .flex-direction-nav .flex-prev::before {
	transform: translateX(2px) rotate(-135deg);
}

.vc-product__gallery .flex-direction-nav .flex-next {
	right: var(--vc-space-3);
}

.vc-product__gallery .flex-direction-nav .flex-next::before {
	transform: translateX(-2px) rotate(45deg);
}

.vc-product__gallery .flex-direction-nav .flex-disabled {
	opacity: 0;
	pointer-events: none;
}

/* 3. Summary
   ========================================================================== */
.vc-product__summary {
	min-width: 0;
}

.vc-product__brand {
	margin: 0 0 var(--vc-space-1);
	font-size: 0.8rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.vc-product__brand a {
	color: var(--vc-primary-ink);
	text-decoration: none;
}

.woocommerce div.product .product_title {
	margin-bottom: var(--vc-space-2);
	font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem);
	line-height: 1.2;
}

.vc-product__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--vc-space-1) var(--vc-space-2);
	margin: 0 0 var(--vc-space-3);
	font-size: var(--vc-text-sm);
}

.vc-product__rating .star-rating {
	float: none;
	margin: 0;
}

.vc-product__rating-value {
	font-weight: 750;
}

.vc-product__rating a {
	color: var(--vc-ink-soft);
	font-weight: 600;
}

.vc-product__rating-first {
	display: inline-block;
	padding-block: 4px; /* 24px+ tap target (WCAG 2.5.8). */
	color: var(--vc-muted) !important;
	font-weight: 500 !important;
}

.woocommerce div.product .vc-product__summary > p.price,
.woocommerce div.product .vc-product__summary > .price {
	margin: 0;
	color: var(--vc-ink);
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.2;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
	margin-right: var(--vc-space-2);
	color: var(--vc-muted);
	font-size: 0.65em;
	font-weight: 500;
	opacity: 1;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
	color: var(--vc-danger);
	text-decoration: none;
}

.vc-product__price-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--vc-space-2) var(--vc-space-3);
	margin: var(--vc-space-2) 0 var(--vc-space-4);
}

.vc-product__price-meta .vc-saving {
	padding: 0.2rem 0.65rem;
	border-radius: var(--vc-radius-pill);
	background: rgb(185 28 28 / 8%);
	font-size: var(--vc-text-sm);
}

.vc-product__price-meta .vc-stock {
	font-size: var(--vc-text-sm);
}

.vc-product__options {
	color: var(--vc-muted);
	font-size: var(--vc-text-sm);
}

.vc-product__options::before {
	content: "·";
	margin-right: var(--vc-space-3);
}

.woocommerce div.product .woocommerce-product-details__short-description {
	margin-bottom: var(--vc-space-4);
	color: var(--vc-ink-soft);
}

.woocommerce-product-details__short-description > *:last-child {
	margin-bottom: 0;
}

/* 4. Add to cart: variations, option buttons, quantity
   ========================================================================== */
.woocommerce div.product form.cart {
	margin: 0 0 var(--vc-space-4);
	padding: var(--vc-space-4);
	border: 1px solid var(--vc-line);
	border-radius: var(--vc-radius);
	background: var(--vc-surface);
}

.woocommerce div.product form.cart .variations {
	width: 100%;
	margin: 0 0 var(--vc-space-3);
	border: 0;
}

.woocommerce div.product form.cart .variations tr {
	display: block;
	margin-bottom: var(--vc-space-3);
}

.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
	display: block;
	padding: 0;
	border: 0;
	line-height: 1.4;
	text-align: left;
}

.woocommerce div.product form.cart .variations th.label {
	margin-bottom: var(--vc-space-2);
}

.woocommerce div.product form.cart .variations label {
	font-size: var(--vc-text-sm);
	font-weight: 750;
}

.woocommerce div.product form.cart .variations select {
	width: 100%;
	max-width: none;
	min-height: 48px;
	margin: 0;
	font-weight: 600;
}

/* "Clear" sits on the label line (top right) instead of reserving an empty row under the
   options while it is hidden. */
.woocommerce div.product form.cart .variations tr {
	position: relative;
}

.woocommerce div.product form.cart .variations tr:last-child {
	margin-bottom: 0;
}

.woocommerce div.product form.cart .reset_variations {
	position: absolute;
	top: 0;
	right: 0;
	display: inline-block;
	margin: 0;
	font-size: var(--vc-text-sm);
	font-weight: 650;
	line-height: 1.4;
}

/* Native select stays for WooCommerce, visually replaced by the option buttons. */
.vc-select-replaced {
	position: absolute !important;
	width: 1px !important;
	min-width: 0 !important; /* WooCommerce sets min-width: 75% on variation selects. */
	max-width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	opacity: 0;
	pointer-events: none;
}

.vc-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: var(--vc-space-2);
}

.vc-swatch {
	min-width: 56px;
	min-height: 44px;
	padding: 0 var(--vc-space-4);
	border: 1.5px solid var(--vc-line);
	border-radius: var(--vc-radius-sm);
	background: var(--vc-surface);
	color: var(--vc-ink);
	font-size: var(--vc-text-sm);
	font-weight: 650;
	transition: border-color 0.15s, background-color 0.15s;
}

.vc-swatch:hover {
	border-color: var(--vc-primary);
}

.vc-swatch[aria-checked="true"] {
	border-color: var(--vc-ink);
	background: var(--vc-ink);
	color: #fff;
}

.vc-swatch[aria-disabled="true"] {
	color: var(--vc-muted);
	text-decoration: line-through;
	opacity: 0.5;
	cursor: not-allowed;
}

/* Selected variation: price / availability / description (WooCommerce markup). */
.woocommerce div.product .woocommerce-variation {
	margin-bottom: var(--vc-space-3);
}

.woocommerce div.product .woocommerce-variation-price .price {
	font-size: 1.35rem;
	font-weight: 800;
}

.woocommerce div.product .woocommerce-variation-availability p.stock,
.woocommerce div.product p.stock {
	margin: var(--vc-space-1) 0 0;
	font-size: var(--vc-text-sm);
	font-weight: 650;
}

.woocommerce div.product .stock.in-stock {
	color: var(--vc-success);
}

.woocommerce div.product .stock.out-of-stock {
	color: var(--vc-danger);
}

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: var(--vc-space-3);
}

.woocommerce div.product form.cart:not(.variations_form) > * {
	margin: 0;
}

.woocommerce div.product form.cart div.quantity {
	float: none;
	display: inline-flex;
	margin: 0;
}

.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .button {
	flex: 1;
	min-width: 180px;
	min-height: 54px;
	margin: 0;
	padding: 0 var(--vc-space-5);
	border-radius: var(--vc-radius-pill);
	background: var(--vc-ink);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 750;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
	background: var(--vc-primary-ink);
}

.woocommerce div.product form.cart .single_add_to_cart_button.disabled,
.woocommerce div.product form.cart .single_add_to_cart_button:disabled {
	opacity: 0.45;
}

/* YITH wishlist button placed after the add-to-cart button. */
.vc-product__summary .yith-wcwl-add-to-wishlist {
	flex-basis: 100%;
	margin: 0;
	font-size: var(--vc-text-sm);
	font-weight: 650;
}

.vc-product__summary .yith-wcwl-add-to-wishlist a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--vc-ink-soft);
	text-decoration: none;
}

/* 5. Delivery facts & product meta
   ========================================================================== */
/* Dispatch countdown (assets/js/dispatch.js), right above the benefits box. */
.vc-dispatch {
	display: flex;
	align-items: center;
	gap: var(--vc-space-2);
	margin: 0 0 var(--vc-space-3);
	color: var(--vc-ink-soft);
	font-size: var(--vc-text-sm);
	font-weight: 600;
}

.vc-dispatch svg {
	flex-shrink: 0;
	color: var(--vc-primary-deep);
}

.vc-dispatch.is-today {
	color: var(--vc-success);
}

.vc-dispatch.is-today svg {
	color: currentColor;
}

.vc-product__benefits {
	display: grid;
	gap: var(--vc-space-2);
	margin: 0 0 var(--vc-space-4);
	padding: var(--vc-space-4);
	border-radius: var(--vc-radius);
	background: var(--vc-surface-alt);
	list-style: none;
	font-size: var(--vc-text-sm);
}

.vc-product__benefits li {
	display: flex;
	align-items: flex-start;
	gap: var(--vc-space-2);
	color: var(--vc-ink-soft);
}

.vc-product__benefits .vc-icon {
	color: var(--vc-primary-deep);
}

.vc-product__benefits strong {
	color: var(--vc-ink);
}

.woocommerce div.product .product_meta {
	display: grid;
	gap: 4px;
	padding-top: var(--vc-space-3);
	border-top: 1px solid var(--vc-line);
	color: var(--vc-muted);
	font-size: var(--vc-text-sm);
}

.woocommerce div.product .product_meta a {
	display: inline-block;
	padding-block: 3px; /* 24px+ tap target (WCAG 2.5.8). */
	color: var(--vc-ink-soft);
}

/* 6. Information sections (template-parts/product/details.php): jump links + <details>
   ========================================================================== */
.vc-pdetails {
	max-width: 960px;
	margin: 0 auto var(--vc-space-7);
}

.vc-pdetails__nav {
	position: sticky;
	/* Flush under the sticky header (the offset includes a 16px gap for other sticky elements). */
	top: calc(var(--vc-sticky-offset, 16px) - 16px);
	z-index: 5;
	margin: 0 0 var(--vc-space-4);
	padding: var(--vc-space-2) 0;
	background: var(--vc-surface);
}

.vc-pdetails__nav ul {
	display: flex;
	gap: var(--vc-space-2);
	margin: 0;
	padding: 0 0 2px;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}

.vc-pdetails__nav ul::-webkit-scrollbar {
	display: none;
}

.vc-pdetails__nav a {
	display: block;
	padding: 0.45rem 0.95rem;
	border: 1px solid var(--vc-line);
	border-radius: var(--vc-radius-pill);
	color: var(--vc-ink-soft);
	font-size: var(--vc-text-sm);
	font-weight: 650;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.15s, color 0.15s;
}

.vc-pdetails__nav a:hover {
	border-color: var(--vc-primary);
	color: var(--vc-ink);
}

.vc-pdetails__sections {
	border-top: 1px solid var(--vc-line);
}

.vc-pdetail {
	border-bottom: 1px solid var(--vc-line);
	scroll-margin-top: calc(var(--vc-sticky-offset, 0px) + 64px);
}

.vc-pdetail__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--vc-space-3);
	padding: var(--vc-space-4) var(--vc-space-1);
	cursor: pointer;
	list-style: none;
}

.vc-pdetail__summary::-webkit-details-marker {
	display: none;
}

.vc-pdetail__summary:hover .vc-pdetail__title {
	color: var(--vc-primary-ink);
}

.vc-pdetail__title {
	margin: 0;
	font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
	transition: color 0.15s;
}

/* The chevron points down when closed, up when open. */
.vc-pdetail__summary .vc-icon {
	flex-shrink: 0;
	color: var(--vc-muted);
	transition: transform 0.2s var(--vc-ease);
}

.vc-pdetail[open] > .vc-pdetail__summary .vc-icon {
	transform: rotate(180deg);
}

.vc-pdetail__body {
	max-width: 80ch;
	padding: 0 var(--vc-space-1) var(--vc-space-6);
	color: var(--vc-ink-soft);
}

.vc-pdetail__body > *:last-child {
	margin-bottom: 0;
}

.vc-pdetail__body h3,
.vc-pdetail__body h4,
.vc-pdetail__body h5,
.vc-pdetail__body h6 {
	margin: var(--vc-space-5) 0 var(--vc-space-2);
	color: var(--vc-ink);
	font-size: 1.05rem;
}

.vc-pdetail__body h3:first-child {
	margin-top: 0;
}

/* Delivery / Returns pages (VapeEra Core) */
.vc-pdetail__body .vapeera-product-tab > *:first-child {
	margin-top: 0;
}

/* Specifications */
.vc-specs__table,
.woocommerce table.shop_attributes {
	width: 100%;
	margin: 0 0 var(--vc-space-4);
	border: 1px solid var(--vc-line);
	border-radius: var(--vc-radius-sm);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	font-size: var(--vc-text-sm);
}

.vc-specs__table th,
.vc-specs__table td,
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
	padding: var(--vc-space-3) var(--vc-space-4);
	border: 0;
	border-bottom: 1px solid var(--vc-line);
	font-style: normal;
	text-align: left;
	vertical-align: top;
}

.vc-specs__table th,
.woocommerce table.shop_attributes th {
	width: 36%;
	background: var(--vc-surface-alt);
	color: var(--vc-ink);
	font-weight: 700;
}

.vc-specs__table td,
.woocommerce table.shop_attributes td {
	color: var(--vc-ink-soft);
}

.woocommerce table.shop_attributes td p {
	margin: 0;
	padding: 0;
}

.vc-specs__table tr:last-child th,
.vc-specs__table tr:last-child td,
.woocommerce table.shop_attributes tr:last-child th,
.woocommerce table.shop_attributes tr:last-child td {
	border-bottom: 0;
}

.vc-specs__subtitle {
	margin-top: var(--vc-space-5);
}

@media (max-width: 479px) {
	.vc-specs__table th,
	.vc-specs__table td,
	.woocommerce table.shop_attributes th,
	.woocommerce table.shop_attributes td {
		padding: var(--vc-space-2) var(--vc-space-3);
	}
}

/* FAQ accordion: shared styles live in main.css. */
.vc-pdetail__body .vc-faq__question h3 {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
}

/* Reviews */
.woocommerce #reviews #comments ol.commentlist {
	padding: 0;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
	border-color: var(--vc-line);
	border-radius: var(--vc-radius-sm);
}

.woocommerce #review_form #respond {
	padding: var(--vc-space-5);
	border-radius: var(--vc-radius);
	background: var(--vc-surface-alt);
}

.woocommerce #review_form #respond .form-submit input,
.woocommerce #review_form #respond .form-submit .submit {
	min-height: 48px;
	padding: 0 var(--vc-space-5);
	border-radius: var(--vc-radius-pill);
	background: var(--vc-ink);
	color: #fff;
	font-weight: 700;
}

.woocommerce #review_form #respond p.stars a {
	color: #f59e0b;
}

/* 7. Upsells, cross-sells and related products (theme rails)
   ========================================================================== */
.vc-product .vc-rail {
	padding-block: 0 var(--vc-space-7);
}

.vc-product .vc-rail:last-child {
	padding-bottom: 0; /* The page bottom padding already spaces it from the footer. */
}

.vc-product .vc-rail > .vc-container {
	padding-inline: 0;
}

/* 8. Sticky add-to-cart bar (mobile)
   ========================================================================== */
.vc-sticky-atc {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: var(--vc-space-3);
	padding: var(--vc-space-2) var(--vc-gutter) calc(var(--vc-space-2) + env(safe-area-inset-bottom));
	border-top: 1px solid var(--vc-line);
	background: var(--vc-surface);
	box-shadow: 0 -8px 24px rgb(15 23 42 / 10%);
}

.vc-sticky-atc__info {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.vc-sticky-atc__name {
	overflow: hidden;
	font-size: 0.8rem;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vc-sticky-atc__price {
	font-size: 0.95rem;
	font-weight: 800;
}

.vc-sticky-atc__price del {
	color: var(--vc-muted);
	font-weight: 500;
}

.vc-sticky-atc__price ins {
	color: var(--vc-danger);
	text-decoration: none;
}

.vc-sticky-atc__btn {
	flex-shrink: 0;
}

@media (min-width: 900px) {
	.vc-sticky-atc {
		display: none !important;
	}
}

/* With the bar showing, the floating buttons sit ~144px up: keep the footer's last links clear of them. */
@media (max-width: 899px) {
	.single-product .vc-footer__bottom {
		padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px));
	}
}

/* 9. Multi-buy offer selector (VapeEra Core data, theme markup: vapeera-core/multibuy/builder.php)
   ========================================================================== */
.vc-offer {
	margin: var(--vc-space-5) 0;
	padding: var(--vc-space-4);
	border: 1px solid var(--vc-line);
	border-radius: var(--vc-radius);
	background: var(--vc-surface-alt);
}

.vc-offer__tiers {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.vc-offer__title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--vc-space-1) var(--vc-space-2);
	margin: 0 0 var(--vc-space-3);
	padding: 0;
}

.vc-offer__heading {
	font-size: var(--vc-text-lg);
	font-weight: 800;
}

.vc-offer__sub {
	color: var(--vc-muted);
	font-size: var(--vc-text-sm);
}

.vc-offer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
	gap: var(--vc-space-2);
}

@media (max-width: 479px) {
	.vc-offer {
		padding: var(--vc-space-3);
	}

	.vc-offer__tier {
		padding: var(--vc-space-4) var(--vc-space-1) var(--vc-space-2);
	}

	.vc-offer__price {
		font-size: 1.15rem;
	}

	.vc-offer__each,
	.vc-offer__save {
		font-size: 0.72rem;
	}
}

.vc-offer__tier {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: var(--vc-space-4) var(--vc-space-2) var(--vc-space-3);
	border: 2px solid var(--vc-line);
	border-radius: var(--vc-radius-sm);
	background: var(--vc-surface);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s var(--vc-ease), box-shadow 0.15s var(--vc-ease);
}

.vc-offer__tier:hover {
	border-color: var(--vc-primary);
}

.vc-offer__tier:has(.vc-offer__radio:checked) {
	border-color: var(--vc-primary-deep);
	box-shadow: 0 0 0 3px rgb(58 162 177 / 20%);
}

.vc-offer__radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.vc-offer__tier:has(.vc-offer__radio:focus-visible) {
	outline: 3px solid var(--vc-primary);
	outline-offset: 2px;
}

.vc-offer__flag {
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.15rem 0.6rem;
	border-radius: var(--vc-radius-pill);
	background: var(--vc-ink);
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.35;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.vc-offer__flag--best {
	background: var(--vc-primary-deep);
}

.vc-offer__flag--popular {
	background: var(--vc-accent);
}

.vc-offer__qty {
	color: var(--vc-muted);
	font-size: var(--vc-text-sm);
	font-weight: 650;
}

.vc-offer__price {
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.2;
}

.vc-offer__each {
	color: var(--vc-ink-soft);
	font-size: 0.8rem;
}

.vc-offer__save {
	margin-top: 2px;
	color: var(--vc-success);
	font-size: 0.8rem;
	font-weight: 750;
}

.vc-offer__units {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--vc-space-2) var(--vc-space-3);
	margin-top: var(--vc-space-4);
}

.vc-offer__units:empty {
	display: none;
}

.vc-offer__units .vapeera-mb__unit {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vc-offer__units label {
	font-size: var(--vc-text-sm);
	font-weight: 650;
}

.vc-offer__units select {
	width: 100%;
	min-height: 44px;
	font-size: max(16px, 1rem);
}

/* The tier the basket has reached (assets/js/product.js). */
.vc-offer__tier.is-current {
	border-color: var(--vc-success);
}

.vc-offer__tier.is-current::after {
	content: "¹3";
	position: absolute;
	top: 4px;
	right: 6px;
	color: var(--vc-success);
	font-size: 0.8rem;
	font-weight: 800;
}

/* What this offer looks like in the basket (filled from the Store API cart). */
.vc-offer__basket {
	margin: var(--vc-space-3) 0 0;
	padding: var(--vc-space-2) var(--vc-space-3);
	border-left: 3px solid var(--vc-success);
	border-radius: var(--vc-radius-sm);
	background: var(--vc-surface);
	font-size: var(--vc-text-sm);
	font-weight: 600;
}

/* Mix & match offers: the other products that count. */
.vc-offer__related {
	margin-top: var(--vc-space-3);
	font-size: var(--vc-text-sm);
}

.vc-offer__related summary {
	min-height: 44px;
	display: flex;
	align-items: center;
	color: var(--vc-primary-ink);
	font-weight: 650;
	cursor: pointer;
}

.vc-offer__related-list {
	margin: 0 0 var(--vc-space-2);
	padding-left: 1.2em;
}

.vc-offer__related-list li + li {
	margin-top: 4px;
}

.vc-offer__status {
	min-height: 1.4em;
	margin: var(--vc-space-3) 0 var(--vc-space-2);
	font-size: var(--vc-text-sm);
	font-weight: 650;
}

/* No message yet: don't hold a blank line above the button. */
.vc-offer__status:empty {
	min-height: 0;
	margin: var(--vc-space-4) 0 0;
}

.vc-offer__submit {
	width: 100%;
	min-height: 50px;
}

.vc-offer__note {
	margin: var(--vc-space-2) 0 0;
	color: var(--vc-muted);
	font-size: 0.8rem;
}

/* ==========================================================================
   Brand layout: gallery + summary in one white card, details as a tabbed card
   ========================================================================== */
.vc-product__main {
	padding: clamp(1rem, 3vw, 2.25rem);
	border: 1px solid var(--vc-line);
	border-radius: var(--vc-radius-lg);
	background: var(--vc-surface);
}

.vc-product__summary .product_title {
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
	letter-spacing: -0.03em;
}

/* Gallery images sit on the tinted surface inside the white card. */
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .flex-viewport {
	border-radius: var(--vc-radius);
}

/* Details: a white card. Without JavaScript the sections stay a list of <details>. */
.vc-pdetails {
	max-width: none;
	padding: clamp(1rem, 3vw, 2.25rem);
	border: 1px solid var(--vc-line);
	border-radius: var(--vc-radius-lg);
	background: var(--vc-surface);
}

.vc-pdetails__nav {
	top: calc(var(--vc-sticky-offset, 16px) - 16px);
	border-bottom: 1px solid var(--vc-line);
	background: var(--vc-surface);
}

/* Tabs (assets/js/product.js adds .is-tabbed and the ARIA roles). */
.vc-pdetails.is-tabbed .vc-pdetails__nav {
	margin-bottom: var(--vc-space-5);
	padding: 0;
}

.vc-pdetails.is-tabbed .vc-pdetails__nav ul {
	gap: var(--vc-space-1);
	padding: 0;
}

.vc-pdetails.is-tabbed .vc-pdetails__nav a {
	position: relative;
	padding: 0.9rem 1.1rem;
	border: 0;
	border-radius: 0;
	color: var(--vc-muted);
	font-family: var(--vc-font-heading);
	font-size: 0.95rem;
	font-weight: 700;
}

.vc-pdetails.is-tabbed .vc-pdetails__nav a::after {
	content: "";
	position: absolute;
	right: 0.6rem;
	bottom: -1px;
	left: 0.6rem;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: transparent;
}

.vc-pdetails.is-tabbed .vc-pdetails__nav a:hover {
	color: var(--vc-ink);
}

.vc-pdetails.is-tabbed .vc-pdetails__nav a[aria-selected="true"] {
	color: var(--vc-ink);
}

.vc-pdetails.is-tabbed .vc-pdetails__nav a[aria-selected="true"]::after {
	background: var(--vc-primary-deep);
}

.vc-pdetails.is-tabbed .vc-pdetails__sections {
	border-top: 0;
}

.vc-pdetails.is-tabbed .vc-pdetail {
	border-bottom: 0;
}

.vc-pdetails.is-tabbed .vc-pdetail[hidden] {
	display: none;
}

/* The tab already names the panel; the <summary> heading stays for screen readers. */
.vc-pdetails.is-tabbed .vc-pdetail__summary {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	pointer-events: none;
}

.vc-pdetails.is-tabbed .vc-pdetail__body {
	padding: 0 0 var(--vc-space-2);
}

.vc-pdetails.is-tabbed .vc-pdetail:focus-visible {
	outline-offset: 6px;
}

/* Related / upsell rails below: a section title in the heading face. */
.single-product .related > h2,
.single-product .upsells > h2,
.single-product .vc-rail__title {
	font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
	letter-spacing: -0.03em;
}

/* Spend & save offer (VapeEra Core multibuy/spend.php) */
.vapeera-spend-offer {
	margin: 0 0 1.25rem;
	padding: 0.875rem 1rem;
	border: 1px dashed var(--vc-primary-soft);
	border-radius: var(--vc-radius-sm);
	background: var(--vc-primary-tint);
	color: var(--vc-ink);
}

.vapeera-spend-offer__title {
	margin: 0 0 0.375rem;
	font-family: var(--vc-font-heading);
	font-weight: 700;
	color: var(--vc-primary-ink);
}

.vapeera-spend-offer__tiers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0 0 0.5rem;
	padding: 0;
	list-style: none;
}

.vapeera-spend-offer__tiers li {
	padding: 0.25rem 0.625rem;
	border-radius: var(--vc-radius-pill);
	background: var(--vc-surface);
	font-size: var(--vc-text-sm);
	font-weight: 600;
	color: var(--vc-primary-deep);
}

.vapeera-spend-offer__note {
	margin: 0;
	font-size: var(--vc-text-sm);
	color: var(--vc-muted);
}

/* Helpful guides (template-parts/product/guides.php): blog links under the information sections.
   ========================================================================== */
.vc-product-guides {
	max-width: 960px;
	margin: 0 auto var(--vc-space-7);
	padding: var(--vc-space-5);
	border: 1px solid var(--vc-line);
	border-radius: var(--vc-radius);
	background: var(--vc-surface);
}

.vc-product-guides__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--vc-space-2) var(--vc-space-4);
	margin-bottom: var(--vc-space-3);
}

.vc-product-guides__title {
	margin: 0;
	font-size: var(--vc-h3);
}

.vc-product-guides__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vc-product-guides__list li + li {
	border-top: 1px solid var(--vc-line);
}

.vc-product-guides__link {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--vc-space-1) var(--vc-space-4);
	padding: var(--vc-space-3) 0;
	color: var(--vc-ink);
	text-decoration: none;
}

.vc-product-guides__name {
	font-weight: 600;
}

.vc-product-guides__link:hover .vc-product-guides__name {
	color: var(--vc-primary-ink);
	text-decoration: underline;
}

.vc-product-guides__meta {
	color: var(--vc-muted);
	font-size: var(--vc-text-sm);
	white-space: nowrap;
}
