/**
 * VapeVault Product Detail — design ported from the xsmokehub
 * ProductDetail.tsx (black/white minimal, DM Serif Display headings).
 *
 * @package VapeVault_Product_Detail
 */

/* ------------------------------------------------------------------ */
/* Layout & container                                                  */
/* ------------------------------------------------------------------ */
.vpd-container {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.vpd-grid-main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	padding: 40px 0 64px;
}

@media (min-width: 1024px) {
	.vpd-grid-main {
		grid-template-columns: 1fr 1fr;
		gap: 48px;
	}
}

/* ------------------------------------------------------------------ */
/* Breadcrumb                                                          */
/* ------------------------------------------------------------------ */
.vpd-breadcrumb {
	border-bottom: 1px solid #e5e5e5;
	background: #fff;
}
.vpd-breadcrumb .vpd-container {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 12px;
	padding-bottom: 12px;
	font-size: 12px;
	color: #888;
}
.vpd-breadcrumb a {
	color: #888;
	text-decoration: none;
	transition: color 0.2s ease;
}
.vpd-breadcrumb a:hover {
	color: #222;
}
.vpd-breadcrumb .vpd-breadcrumb-sep {
	color: #ccc;
}

/* ------------------------------------------------------------------ */
/* Gallery                                                             */
/* ------------------------------------------------------------------ */
.vpd-gallery-main {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 16px;
	cursor: zoom-in;
}
.vpd-gallery-slide,
.vpd-gallery-img {
	width: 100%;
	height: 100%;
}
.vpd-gallery-img {
	object-fit: contain;
	display: block;
	transition: transform 0.3s ease;
}
.vpd-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	background: #222;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 6px 12px;
	border-radius: 999px;
}
.vpd-gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(4px);
	color: #222;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	transition: background 0.2s ease;
	z-index: 2;
}
.vpd-gallery-arrow:hover {
	background: #fff;
}
.vpd-gallery-prev {
	left: 12px;
}
.vpd-gallery-next {
	right: 12px;
}
.vpd-gallery-zoom {
	position: absolute;
	bottom: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(4px);
	color: #222;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	transition: background 0.2s ease;
	z-index: 2;
}
.vpd-gallery-zoom:hover {
	background: #fff;
}
.vpd-gallery-thumbs {
	display: flex;
	gap: 12px;
	flex-wrap: nowrap;
	overflow-x: auto;
}
.vpd-thumb {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 12px;
	overflow: hidden;
	background: #f5f5f5;
	cursor: pointer;
	opacity: 0.6;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}
.vpd-thumb:hover {
	opacity: 1;
}
.vpd-thumb.is-active {
	border-color: #222;
	opacity: 1;
}
.vpd-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ------------------------------------------------------------------ */
/* Lightbox                                                            */
/* ------------------------------------------------------------------ */
.vpd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.92);
}
.vpd-lightbox[hidden] {
	display: none;
}
.vpd-lightbox-close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease;
}
.vpd-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.2);
}
.vpd-lightbox-img {
	max-width: 100%;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 16px;
}

/* ------------------------------------------------------------------ */
/* Summary                                                             */
/* ------------------------------------------------------------------ */
.vpd-brand {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #888;
	font-weight: 500;
	margin: 0 0 8px;
}
.vpd-title {
	font-family: 'DM Serif Display', Georgia, serif;
	font-weight: 400;
	font-size: 30px;
	line-height: 1.2;
	color: #222;
	margin: 0 0 12px;
}
@media (min-width: 1024px) {
	.vpd-title {
		font-size: 36px;
	}
}
.vpd-rating-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.vpd-stars {
	display: inline-flex;
	gap: 2px;
}
.vpd-rating-num {
	font-size: 14px;
	font-weight: 500;
	color: #222;
}
.vpd-rating-count {
	font-size: 14px;
	color: #888;
}
.vpd-stock-pill {
	font-size: 10px;
	font-weight: 600;
	color: #4caf50;
	background: rgba(76, 175, 80, 0.1);
	padding: 3px 8px;
	border-radius: 999px;
	margin-left: 4px;
}
.vpd-stock-pill--out {
	color: #d9534f;
	background: rgba(217, 83, 79, 0.1);
}
.vpd-price-row {
	border-top: 1px solid #e5e5e5;
	padding-top: 20px;
	margin-bottom: 20px;
}
.vpd-price {
	font-size: 30px;
	font-weight: 600;
	color: #222;
	margin: 0;
}
.vpd-price del {
	color: #888;
	font-size: 20px;
	font-weight: 400;
}
.vpd-price ins {
	text-decoration: none;
}
.vpd-delivery {
	font-size: 12px;
	color: #888;
	margin: 4px 0 0;
}
.vpd-description {
	font-size: 14px;
	color: #555;
	line-height: 1.6;
	margin: 0 0 24px;
}

/* ------------------------------------------------------------------ */
/* "Available In" variation pills                                      */
/* ------------------------------------------------------------------ */
.vpd-options {
	margin-bottom: 24px;
}
.vpd-options-label,
.vpd-variation-label {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #888;
	margin: 0 0 12px;
}
.vpd-variation-group {
	margin-bottom: 16px;
}
.vpd-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.vpd-pill {
	font-size: 12px;
	font-weight: 500;
	padding: 8px 16px;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
	color: #666;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.vpd-pill:hover {
	border-color: #222;
	color: #222;
}
.vpd-pill.is-active {
	background: #222;
	border-color: #222;
	color: #fff;
}
.vpd-attribute-select {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}
.vpd-reset {
	display: inline-block;
	font-size: 12px;
	color: #888;
	margin-top: 4px;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.vpd-reset:hover {
	color: #222;
}
.vpd-variation-message {
	font-size: 14px;
	color: #d9534f;
	padding: 12px;
	background: #fafafa;
	border-radius: 12px;
}
/* The wrapper carries WooCommerce's "variations" class so its JS can find
   the selects — force our column layout so theme .variations table styles
   never leak in. */
.vpd-variations {
	display: flex !important;
	flex-direction: column !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.woocommerce .vpd-product form.vpd-cart-form {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 0 12px !important;
}

/* ------------------------------------------------------------------ */
/* Cart row: qty + add to cart + wishlist + buy now                    */
/* ------------------------------------------------------------------ */
.vpd-cart-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}
.vpd-qty {
	display: flex;
	align-items: center;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	overflow: hidden;
	flex-shrink: 0;
}
.vpd-qty-btn {
	width: 40px;
	height: 44px;
	border: 0;
	background: transparent;
	color: #888;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}
.vpd-qty-btn:hover {
	color: #222;
	background: #f5f5f5;
}
.vpd-qty-input {
	width: 40px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: #222;
	border: 0;
	-moz-appearance: textfield;
	appearance: textfield;
	background: transparent;
}
.vpd-qty-input::-webkit-outer-spin-button,
.vpd-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.vpd-btn {
	font-family: 'DM Sans', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	height: 44px;
	padding: 0 24px;
	border-radius: 12px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.vpd-btn-dark {
	background: #222;
	color: #fff;
}
.vpd-btn-dark:hover {
	background: #000;
}
.vpd-btn-dark:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.vpd-btn-outline {
	background: #fff;
	color: #222;
	border-color: #222;
}
.vpd-btn-outline:hover {
	background: #222;
	color: #fff;
}
.vpd-btn-outline:disabled {
	background: #fff;
	color: #aaa;
	border-color: #e5e5e5;
	cursor: not-allowed;
}
.vpd-btn.is-loading {
	opacity: 0.7;
	cursor: progress;
}
.vpd-add-to-cart {
	flex: 1;
}
.vpd-add-to-cart.is-added {
	background: #4caf50 !important;
}
.vpd-wishlist {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
	color: #888;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.vpd-wishlist:hover {
	border-color: #222;
	color: #222;
}
.vpd-wishlist.is-active {
	background: #222;
	border-color: #222;
	color: #fff;
}
.vpd-buy-now {
	width: 100%;
	display: block;
}

/* ------------------------------------------------------------------ */
/* Variation price / availability (populated by WooCommerce variation   */
/* JS inside .woocommerce-variation).                                  */
/* ------------------------------------------------------------------ */
/* The purchase area is ALWAYS visible (matching the design). For       */
/* variable products the Add-to-Cart / Buy Now buttons are disabled by  */
/* JS until a complete, purchasable variation is chosen — never hidden. */
.vpd-cart-form .single_variation_wrap,
.vpd-cart-form .woocommerce-variation-add-to-cart {
	display: block !important;
}
.vpd-variation-hint {
	display: none;
	font-size: 12px;
	color: #888;
	margin: 0 0 12px;
}
.vpd-cart-form .woocommerce-variation {
	margin: 12px 0;
}
.vpd-cart-form .woocommerce-variation-price,
.vpd-cart-form .woocommerce-variation-availability {
	margin: 4px 0;
}
.vpd-cart-form .woocommerce-variation-price .price {
	font-size: 20px;
	font-weight: 600;
	color: #222;
}
.vpd-cart-form .woocommerce-variation-price .price del {
	color: #888;
	font-size: 15px;
	font-weight: 400;
}
.vpd-cart-form .woocommerce-variation-price .price ins {
	text-decoration: none;
}
.vpd-cart-form .woocommerce-variation-availability .stock {
	color: #4caf50;
	font-size: 12px;
	margin: 0;
}
.vpd-cart-form .woocommerce-variation-availability .out-of-stock {
	color: #d9534f;
}

/* ------------------------------------------------------------------ */
/* Trust badges                                                        */
/* ------------------------------------------------------------------ */
.vpd-trust {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.vpd-trust-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
	font-size: 10px;
	color: #888;
	line-height: 1.4;
}
.vpd-trust-item span:first-child {
	font-size: 18px;
}

/* ------------------------------------------------------------------ */
/* Tabs                                                                */
/* ------------------------------------------------------------------ */
.vpd-tabs {
	margin-bottom: 64px;
}
.vpd-tab-bar {
	display: flex;
	gap: 0;
	overflow-x: auto;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 40px;
}
.vpd-tab-btn {
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 500;
	padding: 16px 24px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: #888;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.vpd-tab-btn:hover {
	color: #222;
}
.vpd-tab-btn.is-active {
	border-bottom-color: #222;
	color: #222;
}
.vpd-tab-panel {
	display: none;
}
.vpd-tab-panel.is-active {
	display: block;
}
.vpd-tab-heading {
	font-family: 'DM Serif Display', Georgia, serif;
	font-weight: 400;
	font-size: 24px;
	color: #222;
	margin: 0 0 16px;
}
.vpd-desc-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: start;
}
@media (min-width: 1024px) {
	.vpd-desc-grid {
		grid-template-columns: 1fr 1fr;
	}
}
.vpd-desc-copy {
	font-size: 14px;
	color: #555;
	line-height: 1.7;
}
.vpd-desc-copy p {
	margin: 0 0 16px;
}
.vpd-desc-image {
	border-radius: 16px;
	overflow: hidden;
	background: #f5f5f5;
	aspect-ratio: 4 / 3;
}
.vpd-desc-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* ------------------------------------------------------------------ */
/* Specifications table                                                */
/* ------------------------------------------------------------------ */
.vpd-specs {
	max-width: 640px;
	border: 1px solid #e5e5e5;
	border-radius: 16px;
	overflow: hidden;
}
.vpd-spec-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 16px 24px;
	border-bottom: 1px solid #e5e5e5;
}
.vpd-spec-row:last-child {
	border-bottom: 0;
}
.vpd-spec-label {
	font-size: 14px;
	font-weight: 500;
	color: #888;
}
.vpd-spec-value {
	font-size: 14px;
	color: #222;
}

/* ------------------------------------------------------------------ */
/* Features                                                            */
/* ------------------------------------------------------------------ */
.vpd-features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
}
@media (min-width: 1024px) {
	.vpd-features {
		grid-template-columns: repeat(4, 1fr);
	}
}
.vpd-feature {
	background: #f5f5f5;
	border-radius: 16px;
	padding: 24px;
}
.vpd-feature-icon {
	font-size: 28px;
	margin: 0 0 16px;
}
.vpd-feature-title {
	font-size: 14px;
	font-weight: 600;
	color: #222;
	margin: 0 0 8px;
}
.vpd-feature-desc {
	font-size: 12px;
	color: #888;
	line-height: 1.6;
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Reviews                                                             */
/* ------------------------------------------------------------------ */
.vpd-reviews-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
	gap: 16px;
	flex-wrap: wrap;
}
.vpd-reviews-summary {
	display: flex;
	align-items: center;
	gap: 8px;
}
.vpd-reviews-score {
	font-size: 14px;
	font-weight: 600;
	color: #222;
}
.vpd-reviews-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
@media (min-width: 640px) {
	.vpd-reviews-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.vpd-reviews-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
.vpd-review-card {
	background: #f5f5f5;
	border-radius: 16px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.vpd-review-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.vpd-review-verified {
	font-size: 10px;
	font-weight: 600;
	color: #4caf50;
}
.vpd-review-text {
	font-size: 14px;
	color: #444;
	line-height: 1.6;
	margin: 0;
	flex: 1;
}
.vpd-review-footer {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 8px;
	border-top: 1px solid #e5e5e5;
}
.vpd-avatar {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: #222;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.vpd-review-author {
	font-size: 12px;
	font-weight: 600;
	color: #222;
	margin: 0;
}
.vpd-review-date {
	font-size: 10px;
	color: #888;
	margin: 0;
}
.vpd-no-reviews {
	font-size: 14px;
	color: #888;
}
.vpd-write-review-toggle {
	margin-top: 24px;
}
.vpd-review-form {
	margin-top: 24px;
	max-width: 560px;
	background: #f5f5f5;
	border-radius: 16px;
	padding: 24px;
}
.vpd-review-form[hidden] {
	display: none;
}
.vpd-review-form-label {
	font-size: 12px;
	font-weight: 500;
	color: #888;
	margin: 0 0 8px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.vpd-star-pick {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-start;
	gap: 4px;
}
.vpd-star-pick input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.vpd-star-pick label {
	display: flex;
	cursor: pointer;
}
.vpd-star-pick label svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: #ccc;
	stroke-width: 1.5;
	transition: fill 0.15s ease, stroke 0.15s ease;
}
/* Selected / hovered stars: white fill with a black outline. */
.vpd-star-pick label:hover svg,
.vpd-star-pick label:hover ~ label svg,
.vpd-star-pick input:checked ~ label svg {
	fill: #fff;
	stroke: #222;
}
.vpd-review-field {
	margin: 16px 0 0;
}
.vpd-review-field label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #222;
	margin-bottom: 6px;
}
.vpd-review-field .required {
	color: #d9534f;
}
.vpd-review-field textarea,
.vpd-review-field input[type='text'],
.vpd-review-field input[type='email'] {
	width: 100%;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 14px;
	font-family: 'DM Sans', system-ui, sans-serif;
	background: #fff;
	color: #222;
}
.vpd-review-field textarea:focus,
.vpd-review-field input:focus {
	outline: none;
	border-color: #222;
}
.vpd-review-fields-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}
@media (min-width: 640px) {
	.vpd-review-fields-row {
		grid-template-columns: 1fr 1fr;
	}
}
.vpd-review-submit {
	margin: 20px 0 0;
}

/* ------------------------------------------------------------------ */
/* Related products                                                    */
/* ------------------------------------------------------------------ */
.vpd-related {
	margin-bottom: 64px;
}
.vpd-related-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 32px;
	gap: 16px;
}
.vpd-eyebrow {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #888;
	font-weight: 500;
	margin: 0 0 4px;
}
.vpd-related-title {
	font-family: 'DM Serif Display', Georgia, serif;
	font-weight: 400;
	font-size: 30px;
	color: #222;
	margin: 0;
}
.vpd-related-link {
	font-size: 14px;
	font-weight: 500;
	color: #222;
	text-decoration: underline;
	text-underline-offset: 4px;
	transition: opacity 0.2s ease;
}
.vpd-related-link:hover {
	opacity: 0.6;
}
.vpd-related-grid {
	display: grid;
	/* Phones: two compact columns. (ProductDetail.tsx uses a single column
	   below 640px, but every other grid in the suite runs two per row on
	   mobile; a single 220px+ min-width auto-fill here collapsed to one
	   lonely column on phones.) */
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
@media (min-width: 640px) {
	.vpd-related-grid {
		gap: 24px;
	}
}
@media (min-width: 1024px) {
	.vpd-related-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Keep the two-column related cards legible on narrow phones. */
@media (max-width: 639px) {
	.vpd-related-body {
		padding: 12px;
	}
	.vpd-related-name {
		font-size: 13px;
		margin-bottom: 8px;
	}
	.vpd-related-price {
		font-size: 14px;
	}
	.vpd-related-view {
		font-size: 11px;
	}
}
.vpd-related-card {
	display: block;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.vpd-related-card:hover {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.vpd-related-thumb {
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
	overflow: hidden;
}
.vpd-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}
.vpd-related-card:hover .vpd-related-thumb img {
	transform: scale(1.05);
}
.vpd-related-body {
	padding: 16px;
}
.vpd-related-name {
	font-size: 14px;
	font-weight: 600;
	color: #222;
	margin: 0 0 12px;
	line-height: 1.4;
}
.vpd-related-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.vpd-related-price {
	font-size: 16px;
	font-weight: 600;
	color: #222;
}
.vpd-related-price del {
	font-size: 13px;
	color: #888;
	font-weight: 400;
}
.vpd-related-price ins {
	text-decoration: none;
}
.vpd-related-view {
	font-size: 12px;
	font-weight: 500;
	color: #888;
}

/* ------------------------------------------------------------------ */
/* Theme overrides — the plugin's styles always win over Minimog and    */
/* WooCommerce defaults (buttons, tabs, quantity stepper, pills, etc.). */
/* ------------------------------------------------------------------ */
.vpd-product button,
.vpd-product button.vpd-btn,
.vpd-product .vpd-btn,
.vpd-product .single_add_to_cart_button,
.vpd-product .button,
.vpd-product .button.alt {
	font-family: 'DM Sans', system-ui, sans-serif;
	box-shadow: none;
	text-shadow: none;
	letter-spacing: normal;
	text-transform: none;
	line-height: 1.2;
	margin: 0;
}

/* Buttons */
.vpd-product .vpd-btn {
	background: transparent;
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}
/* Neutralise Minimog's generic button / .single_add_to_cart_button rules
   inside our layout. IMPORTANT: this reset deliberately does NOT force
   background/color/border — forcing `background: transparent !important`
   here previously beat the variant rules below on specificity and turned
   every button into invisible plain text. The variants (vpd-btn-dark /
   vpd-btn-outline) own those properties and carry the same specificity. */
body.woocommerce .vpd-product .vpd-btn {
	width: auto !important;
	height: 44px !important;
	min-width: 0 !important;
	min-height: 44px !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 24px !important;
	border-radius: 12px !important;
	font-family: 'DM Sans', system-ui, sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}
body.woocommerce .vpd-product .vpd-cart-row .vpd-add-to-cart {
	flex: 1 1 auto !important;
	width: auto !important;
}
body.woocommerce .vpd-product .vpd-buy-now {
	width: 100% !important;
	margin-top: 0 !important;
}
body.woocommerce .vpd-product .woocommerce-variation-add-to-cart {
	padding: 12px 0 0 !important;
	margin: 0 !important;
}

/* Variants — same specificity tier as the reset so they always win over the
   theme AND over the neutral baseline above. */
body.woocommerce .vpd-product .vpd-btn.vpd-btn-dark {
	background: #222 !important;
	color: #fff !important;
	border: 1px solid #222 !important;
}
body.woocommerce .vpd-product .vpd-btn.vpd-btn-dark:hover {
	background: #000 !important;
	color: #fff !important;
	border-color: #000 !important;
}
body.woocommerce .vpd-product .vpd-btn.vpd-btn-dark:disabled,
body.woocommerce .vpd-product .vpd-btn.vpd-btn-dark.disabled {
	background: #f5f5f5 !important;
	color: #aaa !important;
	border-color: #eee !important;
	opacity: 1;
	cursor: not-allowed;
}
body.woocommerce .vpd-product .vpd-btn.vpd-btn-outline {
	background: #fff !important;
	color: #222 !important;
	border: 1px solid #222 !important;
}
body.woocommerce .vpd-product .vpd-btn.vpd-btn-outline:hover {
	background: #222 !important;
	color: #fff !important;
	border-color: #222 !important;
}
body.woocommerce .vpd-product .vpd-btn.vpd-btn-outline:disabled,
body.woocommerce .vpd-product .vpd-btn.vpd-btn-outline.disabled {
	background: #fff !important;
	color: #aaa !important;
	border-color: #e5e5e5 !important;
	opacity: 1;
	cursor: not-allowed;
}
body.woocommerce .vpd-product .vpd-btn.is-loading {
	opacity: 0.7;
	cursor: progress;
}
body.woocommerce .vpd-product .vpd-btn.is-added {
	background: #4caf50 !important;
	border-color: #4caf50 !important;
	color: #fff !important;
}

/* Tabs */
.vpd-product .vpd-tab-btn {
	background: transparent !important;
	border: 0 !important;
	border-bottom: 2px solid transparent !important;
	border-radius: 0 !important;
	color: #888 !important;
	font-family: 'DM Sans', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	padding: 16px 24px;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.2;
}
.vpd-product .vpd-tab-btn:hover {
	color: #222 !important;
}
.vpd-product .vpd-tab-btn.is-active {
	border-bottom-color: #222 !important;
	color: #222 !important;
}

/* Quantity stepper */
.vpd-product .vpd-qty-btn {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: #888 !important;
	width: 40px;
	height: 44px;
	padding: 0;
	margin: 0;
}
.vpd-product .vpd-qty-btn:hover {
	color: #222 !important;
	background: #f5f5f5 !important;
}
.vpd-product .vpd-qty-input {
	font-family: 'DM Sans', system-ui, sans-serif;
}

/* Variation pills */
.vpd-product .vpd-pill {
	background: #fff !important;
	border: 1px solid #e5e5e5 !important;
	color: #666 !important;
	border-radius: 12px;
	padding: 8px 16px;
	font-size: 12px;
	font-weight: 500;
}
.vpd-product .vpd-pill:hover {
	border-color: #222 !important;
	color: #222 !important;
	background: #fff !important;
}
.vpd-product .vpd-pill.is-active {
	background: #222 !important;
	border-color: #222 !important;
	color: #fff !important;
}

/* Wishlist */
.vpd-product .vpd-wishlist {
	background: #fff !important;
	border: 1px solid #e5e5e5 !important;
	color: #888 !important;
	border-radius: 12px;
}
.vpd-product .vpd-wishlist:hover {
	border-color: #222 !important;
	color: #222 !important;
}
.vpd-product .vpd-wishlist.is-active {
	background: #222 !important;
	border-color: #222 !important;
	color: #fff !important;
}

/* Gallery controls */
.vpd-product .vpd-gallery-arrow,
.vpd-product .vpd-gallery-zoom {
	background: rgba(255, 255, 255, 0.8) !important;
	border: 0 !important;
	border-radius: 12px;
	color: #222 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
	padding: 0;
	line-height: 1;
}
.vpd-product .vpd-gallery-arrow:hover,
.vpd-product .vpd-gallery-zoom:hover {
	background: #fff !important;
	color: #222 !important;
}

/* Variation price/availability populated by WooCommerce JS */
.vpd-product .woocommerce-variation-price .price,
.vpd-product .woocommerce-variation-price .price .amount {
	color: #222 !important;
}
.vpd-product .woocommerce-variation-availability .stock {
	color: #4caf50 !important;
}

/* ------------------------------------------------------------------ */
/* Review photo upload (customer-uploaded images)                      */
/* ------------------------------------------------------------------ */
.vpd-review-upload {
	margin: 20px 0 0;
}
.vpd-review-upload-label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #222;
	margin-bottom: 8px;
}
.vpd-upload-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	background: #fff !important;
	border: 1px dashed #d0d0d0 !important;
	border-radius: 12px;
	color: #888 !important;
	padding: 14px 16px;
	cursor: pointer;
	font-family: 'DM Sans', system-ui, sans-serif;
}
.vpd-upload-btn:hover {
	border-color: #222 !important;
	color: #222 !important;
}
/* Inner icon / text never capture the click — the whole button (starting at
   "Click to upload product photos") opens the file picker. */
.vpd-upload-btn svg,
.vpd-upload-btn > span {
	pointer-events: none;
}
.vpd-upload-title {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #222;
}
.vpd-upload-hint {
	display: block;
	font-size: 11px;
	color: #888;
}
.vpd-uploaded {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.vpd-upload-thumb {
	position: relative;
	width: 88px;
	height: 88px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e5e5e5;
	background: #f5f5f5;
}
.vpd-upload-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.vpd-upload-remove {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 20px;
	height: 20px;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.65) !important;
	color: #fff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.vpd-upload-err {
	display: none;
	font-size: 12px;
	color: #d9534f;
	margin-top: 8px;
}
.vpd-upload-err.is-visible {
	display: block;
}
.vpd-review-err {
	display: none;
	font-size: 13px;
	color: #d9534f;
	margin: 0 0 12px;
	padding: 10px 14px;
	background: rgba(217, 83, 79, 0.08);
	border-radius: 10px;
}
.vpd-review-err.is-visible {
	display: block;
}
.vpd-review-thanks {
	font-size: 14px;
	color: #222;
	padding: 16px 0;
	margin: 0;
}

/* Review images on cards */
.vpd-review-images {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.vpd-review-thumb {
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	cursor: zoom-in;
}
.vpd-review-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ------------------------------------------------------------------ */
/* Bulletproof overrides — body.woocommerce prefix + !important beats   */
/* Minimog and WooCommerce regardless of load order / specificity.      */
/* ------------------------------------------------------------------ */
/* Baseline: neutralise theme typography / link / box rules. */
body.woocommerce .vpd-product,
body.woocommerce .vpd-product p,
body.woocommerce .vpd-product h1,
body.woocommerce .vpd-product h2,
body.woocommerce .vpd-product h3,
body.woocommerce .vpd-product a,
body.woocommerce .vpd-product button,
body.woocommerce .vpd-product input,
body.woocommerce .vpd-product textarea {
	box-sizing: border-box;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
}
body.woocommerce .vpd-product .vpd-title {
	font-family: 'DM Serif Display', Georgia, serif !important;
	font-size: 30px !important;
	font-weight: 400 !important;
	color: #222 !important;
	line-height: 1.2 !important;
	margin: 0 0 12px !important;
}
@media (min-width: 1024px) {
	body.woocommerce .vpd-product .vpd-title {
		font-size: 36px !important;
	}
}
body.woocommerce .vpd-product .vpd-brand,
body.woocommerce .vpd-product .vpd-description,
body.woocommerce .vpd-product .vpd-delivery,
body.woocommerce .vpd-product .vpd-rating-count,
body.woocommerce .vpd-product .vpd-eyebrow {
	font-family: 'DM Sans', system-ui, sans-serif !important;
}
body.woocommerce .vpd-gallery-arrow,
body.woocommerce .vpd-product .vpd-gallery-zoom {
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: rgba(255, 255, 255, 0.8) !important;
	backdrop-filter: blur(4px);
	color: #222 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: 14px;
}
body.woocommerce .vpd-product .vpd-gallery-arrow:hover,
body.woocommerce .vpd-product .vpd-gallery-zoom:hover {
	background: #fff !important;
	color: #222 !important;
}

/* Quantity stepper */
body.woocommerce .vpd-product .vpd-qty {
	display: flex !important;
	align-items: center;
	border: 1px solid #e5e5e5 !important;
	border-radius: 12px !important;
	overflow: hidden;
	background: #fff !important;
	box-shadow: none !important;
	margin: 0 !important;
}
body.woocommerce .vpd-product .vpd-qty-btn {
	width: 40px !important;
	height: 44px !important;
	min-width: 40px !important;
	min-height: 44px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #888 !important;
	box-shadow: none !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}
body.woocommerce .vpd-product .vpd-qty-btn:hover {
	background: #f5f5f5 !important;
	color: #222 !important;
}
body.woocommerce .vpd-product .vpd-qty-input {
	width: 40px !important;
	min-width: 40px !important;
	max-width: 40px !important;
	border: 0 !important;
	background: transparent !important;
	color: #222 !important;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	font-family: 'DM Sans', system-ui, sans-serif;
	padding: 0 !important;
	margin: 0 !important;
	height: 44px !important;
	-moz-appearance: textfield;
	appearance: textfield;
}
body.woocommerce .vpd-product .vpd-qty-input::-webkit-outer-spin-button,
body.woocommerce .vpd-product .vpd-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Wishlist — icon-only. Our heart SVG is the visible content; the woosw
   link (WPC Smart Wishlist) sits on top as an invisible full-cover overlay so
   the real wishlist add/remove logic keeps working with no text ever shown. */
body.woocommerce .vpd-product .vpd-wishlist {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid #e5e5e5 !important;
	border-radius: 12px !important;
	background: #fff !important;
	box-shadow: none !important;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
	cursor: pointer;
}
body.woocommerce .vpd-product .vpd-wishlist:hover {
	border-color: #222 !important;
	color: #222 !important;
}
body.woocommerce .vpd-product .vpd-wishlist .vpd-wishlist-heart {
	display: flex !important;
	align-items: center;
	justify-content: center;
	color: inherit;
	pointer-events: none;
}
body.woocommerce .vpd-product .vpd-wishlist .vpd-wishlist-heart svg {
	width: 16px !important;
	height: 16px !important;
	display: block;
}
/* The functional overlay: visually silent, still clickable, covers the box. */
body.woocommerce .vpd-product .vpd-wishlist .woosw-btn {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	opacity: 0 !important;
	overflow: hidden !important;
	cursor: pointer;
}
/* Active (wishlisted) state — driven by our class and, as a fallback, by the
   woosw plugin's own .woosw-added class so the fill never desyncs. */
body.woocommerce .vpd-product .vpd-wishlist.is-active,
body.woocommerce .vpd-product .vpd-wishlist:has(.woosw-btn.woosw-added) {
	background: #222 !important;
	border-color: #222 !important;
	color: #fff !important;
}
body.woocommerce .vpd-product .vpd-wishlist.is-active .vpd-wishlist-heart svg path,
body.woocommerce .vpd-product .vpd-wishlist:has(.woosw-btn.woosw-added) .vpd-wishlist-heart svg path {
	fill: currentColor;
}

/* Review photo upload — clean layout, no theme interference */
body.woocommerce .vpd-product .vpd-review-upload {
	margin: 20px 0 0 !important;
	padding: 0 !important;
}
body.woocommerce .vpd-product .vpd-review-upload-label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #222;
	margin: 0 0 8px !important;
}
body.woocommerce .vpd-product .vpd-upload-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	background: #fff !important;
	border: 1px dashed #d0d0d0 !important;
	border-radius: 12px;
	color: #888 !important;
	padding: 14px 16px !important;
	margin: 0 !important;
	cursor: pointer;
	font-family: 'DM Sans', system-ui, sans-serif;
	box-shadow: none !important;
}
body.woocommerce .vpd-product .vpd-upload-btn:hover {
	border-color: #222 !important;
	color: #222 !important;
}
body.woocommerce .vpd-product .vpd-upload-title {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #222;
	line-height: 1.4;
}
body.woocommerce .vpd-product .vpd-upload-hint {
	display: block;
	font-size: 11px;
	color: #888;
	line-height: 1.4;
}
