/**
 * File: assets/css/quick-view.css
 * Theme: My Joom Theme
 * Description: Quick View trigger button (on product cards) + modal styles.
 */

/* Trigger button - stacks directly below the wishlist icon on each card style */
.mj-quick-view-btn {
	position: absolute;
	right: 14px;
	z-index: 10;
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	border-radius: 50%;
	border: none;
	background: var(--card-bg-color, #ffffff);
	color: var(--secondary-color, #0f172a);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transition: all 0.2s ease;
}

/* Vertical offset = wishlist icon's own top + its height + a small gap,
   matched per card style since each one sizes/positions its wishlist icon differently. */
.mj-product-card-v2 .mj-quick-view-btn {
	top: 54px;
	right: 14px;
}

.mj-product-card-v3 .mj-quick-view-btn {
	top: 52px;
	right: 14px;
	width: 30px;
	height: 30px;
	min-width: 30px;
	min-height: 30px;
}

.mj-premium-card .mj-quick-view-btn {
	top: 52px;
	right: 12px;
}

.mj-quick-view-btn:hover {
	background: var(--primary-color, #FA3434);
	color: var(--btn-text-color, #ffffff);
	transform: scale(1.1);
}

@media (max-width: 768px) {
	.mj-quick-view-btn {
		width: 28px;
		height: 28px;
		min-width: 28px;
		min-height: 28px;
		background: rgba(255, 255, 255, 0.95);
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
	}

	.mj-product-card-v2 .mj-quick-view-btn,
	.mj-product-card-v3 .mj-quick-view-btn,
	.mj-premium-card .mj-quick-view-btn {
		top: 48px;
	}
}

/* Compare trigger button - stacks directly below the Quick View button,
   same sizing/offset logic (icon height + a small gap) per card style.
   Position/placement is scoped to the card contexts only (below) - this
   same button/class is also reused inline (not absolutely positioned)
   inside .joom-actions-top on the single product page. */
.mj-compare-btn {
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	border-radius: 50%;
	border: none;
	background: var(--card-bg-color, #ffffff);
	color: var(--secondary-color, #0f172a);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transition: all 0.2s ease;
}

.mj-product-card-v2 .mj-compare-btn {
	position: absolute;
	right: 14px;
	z-index: 10;
	top: 94px;
}

.mj-product-card-v3 .mj-compare-btn {
	position: absolute;
	right: 14px;
	z-index: 10;
	top: 90px;
	width: 30px;
	height: 30px;
	min-width: 30px;
	min-height: 30px;
}

.mj-premium-card .mj-compare-btn {
	position: absolute;
	right: 12px;
	z-index: 10;
	top: 92px;
}

.mj-compare-btn:hover {
	background: var(--primary-color, #FA3434);
	color: var(--btn-text-color, #ffffff);
	transform: scale(1.1);
}

.mj-compare-btn.in-compare {
	background: var(--primary-color, #FA3434);
	color: var(--btn-text-color, #ffffff);
}

@media (max-width: 768px) {
	.mj-compare-btn {
		width: 28px;
		height: 28px;
		min-width: 28px;
		min-height: 28px;
		background: rgba(255, 255, 255, 0.95);
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
	}

	.mj-product-card-v2 .mj-compare-btn,
	.mj-product-card-v3 .mj-compare-btn,
	.mj-premium-card .mj-compare-btn {
		top: 86px;
	}
}

/* Quick View modal's own Compare button - sibling of .mj-qv-share-btn inside .mj-qv-title-actions */
.mj-qv-compare-btn {
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	border-radius: 50%;
	background: var(--bg-color, #f8fafc);
	border: 1px solid var(--border-color, #e2e8f0);
	color: var(--secondary-color, #0f172a);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	cursor: pointer;
	transition: all 0.2s ease;
}
.mj-qv-compare-btn i {
	font-size: 14px;
}
.mj-qv-compare-btn:hover,
.mj-qv-compare-btn.in-compare {
	background: #fff5f5;
	border-color: var(--primary-color, #FA3434);
	color: var(--primary-color, #FA3434);
}

/* Modal shell */
.mj-qv-modal {
	position: fixed;
	inset: 0;
	/* dvh tracks the real visible viewport as mobile browser chrome
	   (address bar) shows/hides; plain vh uses the taller layout viewport,
	   which left a gap between the bottom-sheet and the true screen edge. */
	height: 100vh;
	height: 100dvh;
	z-index: 999999;
}

.mj-qv-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.7);
	cursor: pointer;
}

.mj-qv-content {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: var(--card-bg-color, #ffffff);
	border-radius: 16px;
	width: 95%;
	max-width: 760px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	z-index: 1000000;
}

.mj-qv-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: #f1f5f9;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.mj-qv-close:hover {
	background: #fee2e2;
	color: #ef4444;
}

.mj-qv-body {
	padding: 28px 32px 14px;
}

.mj-qv-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
}

.mj-qv-spinner {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 3px solid #e2e8f0;
	border-top-color: var(--primary-color, #FA3434);
	animation: mj-qv-spin 0.8s linear infinite;
}

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

.mj-qv-error {
	padding: 40px 0;
	text-align: center;
	color: #ef4444;
	font-weight: 600;
}

/* Attribute Gallery video modal - layered on top of .mj-qv-modal itself (higher z-index) since it opens from the play button inside an already-open Quick View. */
.mj-qv-video-modal {
	position: fixed;
	inset: 0;
	z-index: 1000001;
	display: none;
	align-items: center;
	justify-content: center;
}

.mj-qv-video-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.85);
	cursor: pointer;
}

.mj-qv-video-modal-box {
	position: relative;
	width: calc(100% - 48px);
	max-width: 860px;
	aspect-ratio: 16 / 9;
	max-height: 85vh;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	background: #000;
}

.mj-qv-video-modal-content {
	width: 100%;
	height: 100%;
	border-radius: 16px;
	overflow: hidden;
}

.mj-qv-video-modal-close {
	position: absolute;
	top: -12px;
	right: -12px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: var(--primary-color, #FA3434);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	z-index: 2;
	transition: transform 0.2s ease;
}

.mj-qv-video-modal-close:hover {
	transform: scale(1.1);
}

/* Layout */
.mj-qv-layout {
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	gap: 32px;
}

.mj-qv-main-image-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	background: var(--bg-color, #f8fafc);
}

.mj-qv-main-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mj-qv-gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	color: var(--secondary-color, #0f172a);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 13px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease;
}

.mj-qv-gallery-arrow:hover {
	background: var(--primary-color, #FA3434);
	color: var(--btn-text-color, #ffffff) !important;
}

.mj-qv-gallery-arrow.prev {
	left: 10px;
}

.mj-qv-gallery-arrow.next {
	right: 10px;
}

.mj-qv-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.mj-qv-thumb {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	opacity: 0.7;
	transition: all 0.2s ease;
}

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

.mj-qv-thumb:hover {
	opacity: 1;
}

.mj-qv-thumb.active {
	border-color: var(--primary-color, #FA3434);
	opacity: 1;
}

/* Product Attribute Gallery video - a centered play button on the main image itself (matching the single product page's .joom-gallery-video-badge), not a rail thumbnail. Opens in Quick View's own embedded video modal (openVideoModal() in quick-view.js) rather than product.js's MyJoomProduct.openMediaModal, since that script isn't loaded on shop/archive pages where Quick View also runs. */
@keyframes jmQvBadgeRipple {
	0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(250, 52, 52, 0.3); opacity: 1; }
	100% { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(250, 52, 52, 0); opacity: 0; }
}

.mj-qv-video-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 44px;
	height: 44px;
	padding: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	z-index: 5;
}

.mj-qv-video-badge::before,
.mj-qv-video-badge::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(250, 52, 52, 0.25);
	z-index: -1;
	animation: jmQvBadgeRipple 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
	box-sizing: border-box;
}

.mj-qv-video-badge::after {
	animation-delay: 1s;
}

.mj-qv-video-badge:hover {
	animation: none;
	transform: translate(-50%, -50%) scale(1.1);
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.mj-qv-video-badge:hover::before,
.mj-qv-video-badge:hover::after {
	animation: none;
	opacity: 0;
}

.mj-qv-video-badge i {
	font-size: 16px;
	color: var(--primary-color, #FA3434);
	margin-left: 2px;
	transition: transform 0.3s;
}

.mj-qv-video-badge:hover i {
	transform: scale(1.1);
}

/* Info column */
.mj-qv-cat a {
	font-size: 13px;
	font-weight: 600;
	color: var(--light-text-color, #64748b) !important;
	text-decoration: none;
}

.mj-qv-title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0;
}

.mj-qv-title {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0;
	color: var(--secondary-color, #0f172a);
}

.mj-qv-title-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.mj-qv-wishlist {
	flex-shrink: 0;
}

.mj-qv-share-btn {
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	border-radius: 50%;
	background: var(--bg-color, #f8fafc);
	border: 1px solid var(--border-color, #e2e8f0);
	color: var(--secondary-color, #0f172a);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	cursor: pointer;
	transition: all 0.2s ease;
}

.mj-qv-share-btn i {
	font-size: 14px;
}

.mj-qv-share-btn:hover {
	background: #fff5f5;
	border-color: var(--primary-color, #FA3434);
	color: var(--primary-color, #FA3434);
}

/* Share modal - same visual design as the single product page's
   body.single-product .joom-share-modal (product.js/joom-ui.css), given
   its own namespace here (.mj-qv-share-*) since that one is deliberately
   scoped to body.single-product and Quick View also runs on other pages. */
.mj-qv-share-modal {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000002;
	background: transparent;
}

.mj-qv-share-modal.is-open {
	display: flex;
}

.mj-qv-share-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.mj-qv-share-content {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	padding: 26px 18px 18px;
	max-width: 430px;
	width: min(92vw, 430px);
}

.mj-qv-share-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: none;
	border: none;
	font-size: 18px;
	color: #888;
	cursor: pointer;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.mj-qv-share-close:hover {
	background: #fee2e2;
	color: #ef4444;
}

.mj-qv-share-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--primary-color, #FA3434);
	margin: 0 0 14px;
	text-align: center;
	line-height: 1.2;
}

.mj-qv-share-options {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
}

.mj-qv-share-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 13px;
	color: #333;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.2s ease;
}

.mj-qv-share-option:hover {
	background: #ffeaea;
	border-color: var(--primary-color, #FA3434);
	color: var(--primary-color, #FA3434);
}

.mj-qv-share-link-section {
	display: flex;
	gap: 8px;
	margin-top: 14px;
}

.mj-qv-share-link-input {
	flex: 1;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	background: #f9fafb;
	height: 40px;
}

.mj-qv-share-copy-btn {
	background: var(--primary-color, #FA3434);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	cursor: pointer;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.mj-qv-share-copy-btn:hover {
	background: #d32f2f;
}

.mj-qv-wishlist .woosw-btn {
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	border-radius: 50%;
	background: var(--bg-color, #f8fafc);
	border: 1px solid var(--border-color, #e2e8f0);
	color: var(--secondary-color, #0f172a);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	cursor: pointer;
	transition: all 0.2s ease;
}

.mj-qv-wishlist .woosw-btn i,
.mj-qv-wishlist .woosw-btn::before {
	font-size: 15px !important;
	margin: 0;
	line-height: 1;
}

.mj-qv-wishlist .woosw-btn:hover,
.mj-qv-wishlist .woosw-btn.woosw-added {
	background: #fff5f5;
	border-color: var(--primary-color, #FA3434);
	color: var(--primary-color, #FA3434);
}

.mj-qv-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

/* Deliberately its own component (.mj-qv-stars), not WooCommerce's
   .star-rating: that class carries a same-specificity `.woocommerce
   .star-rating { display:block; ... }` rule in WC's own stylesheet that
   fights any theme override on a coin-flip depending on enqueue order, and
   its markup also embeds a plain-text a11y sentence ("Rated 5 out of 5
   based on...") meant to stay hidden behind WC's icon-font (which 404s on
   this install - assets/fonts/star.woff2). A unique classname sidesteps
   both problems outright. Fill amount comes from the --mj-qv-rating-pct
   custom property set inline per product, not a hardcoded width. */
.mj-qv-stars {
	--mj-qv-rating-pct: 0%;
	position: relative;
	display: inline-block;
	font-size: 14px;
	line-height: 1;
}

.mj-qv-stars::before {
	content: "★★★★★";
	display: block;
	letter-spacing: 2px;
	color: var(--border-color, #e2e8f0);
	white-space: nowrap;
}

.mj-qv-stars::after {
	content: "★★★★★";
	display: block;
	letter-spacing: 2px;
	color: var(--star-rating-color, #f5a623);
	white-space: nowrap;
	position: absolute;
	top: 0;
	left: 0;
	width: var(--mj-qv-rating-pct);
	overflow: hidden;
}

.mj-qv-rating-count {
	font-size: 13px;
	color: var(--light-text-color, #64748b);
}

.mj-qv-price {
	font-size: 24px;
	font-weight: 800;
	color: var(--sale-price-color, #FA3434);
	margin-bottom: 4px;
}

.mj-qv-price del {
	color: var(--regular-price-color, #94a3b8);
	font-weight: 500;
	font-size: 0.7em;
}

.mj-qv-price ins {
	text-decoration: none;
}

/* The theme never defines a global .screen-reader-text rule (single-product.php
   sidesteps this by building prices with wc_price() instead of get_price_html());
   this modal uses get_price_html()/variation price_html directly, so the a11y
   text WooCommerce embeds in it needs hiding here or it prints inline. */
.mj-qv-price .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mj-qv-stock {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 6px;
}

.mj-qv-stock.in-stock {
	color: var(--stock-in-color, #16a34a);
}

.mj-qv-stock.out-of-stock {
	color: var(--stock-out-color, #ef4444);
}

.mj-qv-desc {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-color, #475569);
	margin: 0 0 12px;
}

/* Variations */
.mj-qv-attr-group {
	margin-bottom: 16px;
}

.mj-qv-attr-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-color, #334155);
	margin-bottom: 8px;
}

.mj-qv-swatches,
.mj-qv-size-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mj-qv-swatch {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--border-color, #e2e8f0);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-color, #f1f5f9);
	transition: border-color 0.2s ease;
}

.mj-qv-swatch img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mj-qv-swatch-fallback {
	font-size: 13px;
	font-weight: 700;
	color: var(--light-text-color, #64748b);
	text-transform: uppercase;
}

.mj-qv-swatch.active {
	border-color: var(--primary-color, #FA3434);
}

.mj-qv-size-badge {
	min-width: 40px;
	height: 36px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--border-color, #e2e8f0);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.mj-qv-size-badge.active {
	border-color: var(--primary-color, #FA3434);
	background: var(--primary-color, #FA3434);
	color: var(--btn-text-color, #ffffff);
}

/* Qty + cart */
.mj-qv-cart-row {
	display: flex;
	align-items: stretch;
	gap: 12px;
	margin-top: 14px;
}

.mj-qv-qty-container {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	border: 1px solid var(--border-color, #e2e8f0);
	border-radius: 10px;
	overflow: hidden;
}

.mj-qv-qty-btn {
	width: 38px;
	flex-shrink: 0;
	height: 44px;
	border: none;
	background: var(--bg-color, #f8fafc);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	color: var(--text-color, #334155);
	transition: all 0.2s ease;
}

.mj-qv-qty-btn:hover {
	background: #fee2e2;
	color: #ef4444;
}

/* Doubled up as `.mj-qv-qty-container input` to out-specificity style.css's
   global `input[type="number"] { width:100%; padding:.75rem; border:1px... }`
   (an attribute selector, which otherwise beats a lone class here and blew
   this input up to fill the row, pushing Add to Cart off the edge). */
.mj-qv-qty-input,
.mj-qv-qty-container input.mj-qv-qty-input {
	width: 44px;
	flex-shrink: 0;
	height: 44px;
	padding: 0;
	background: var(--card-bg-color, #ffffff);
	border: none;
	border-left: 1px solid var(--border-color, #e2e8f0);
	border-right: 1px solid var(--border-color, #e2e8f0);
	border-radius: 0;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--text-color, #334155);
	-moz-appearance: textfield;
}

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

/* Colors match .mj-cart-btn/.mj-v2-cart-btn/.mj-v3-cart-btn (the same button
   on product cards) exactly - these read the merchant's actual Customizer
   settings (Theme Options > Colors > Add to Cart) via --add-to-cart-* custom
   properties, not a fixed brand color, so changing that setting re-colors
   this button too instead of it staying stuck on a hardcoded red. */
.mj-qv-add-to-cart-btn {
	flex: 1;
	min-width: 140px;
	max-width: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 20px;
	border-radius: 10px;
	background: var(--add-to-cart-bg, #0f172a);
	border: 2px solid var(--add-to-cart-border, var(--add-to-cart-bg, #0f172a));
	/* !important: the theme's global `a:not(.button)...` link-color reset
	   (pro-style.css) outranks a single-class selector on specificity and
	   would otherwise repaint this text the same color as the button background. */
	color: var(--add-to-cart-color, #ffffff) !important;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.mj-qv-add-to-cart-btn:hover {
	background: var(--add-to-cart-hover, #FA3434);
	border-color: var(--add-to-cart-border-hover, var(--add-to-cart-hover, #FA3434));
	color: var(--add-to-cart-hover-color, #ffffff) !important;
}

.mj-qv-add-to-cart-btn.mj-qv-disabled {
	background: #cbd5e1;
	cursor: not-allowed;
	pointer-events: none;
}

.mj-qv-add-to-cart-btn.mj-is-go-to-cart {
	background: var(--go-to-cart-bg, #10b981);
}

.mj-qv-add-to-cart-btn.mj-is-go-to-cart:hover {
	background: var(--go-to-cart-hover, #059669);
}

.mj-qv-add-to-cart-btn.loading {
	opacity: 0.7;
}

.mj-qv-message {
	margin-top: 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--stock-in-color, #16a34a);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.mj-qv-message.is-visible {
	opacity: 1;
}

.mj-qv-view-full {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--secondary-color, #0f172a) !important;
	text-decoration: none;
	border-bottom: 1px solid var(--border-color, #cbd5e1);
	padding-bottom: 2px;
}

.mj-qv-view-full:hover {
	color: var(--primary-color, #FA3434) !important;
	border-color: var(--primary-color, #FA3434);
}

@media (max-width: 768px) {
	/* Bottom sheet: sizes to its content (capped at 90vh with internal
	   scroll) instead of forcing full-screen height, which either left a
	   dead gap under short content or cut the Add to Cart button off the
	   bottom edge on taller content. */
	.mj-qv-content {
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		width: auto;
		max-width: none;
		max-height: 88vh;
		max-height: 88dvh;
		border-radius: 20px 20px 0 0;
		transform: none;
		box-sizing: border-box;
	}

	.mj-qv-body {
		padding: 20px;
		padding-top: 12px;
		/* env() keeps content clear of the home-indicator / gesture-bar area
		   on notched phones instead of tucking it underneath. */
		padding-bottom: max(8px, env(safe-area-inset-bottom));
	}

	.mj-qv-close {
		top: 12px;
		right: 12px;
	}

	.mj-qv-layout {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.mj-qv-main-image-wrap {
		max-width: 260px;
		margin: 0 auto;
	}

	.mj-qv-thumbs {
		justify-content: center;
		gap: 10px;
		margin-top: 14px;
	}

	.mj-qv-title {
		font-size: 19px;
	}

	.mj-qv-desc {
		margin-bottom: 14px;
	}

	.mj-qv-cart-row {
		margin-top: 18px;
	}

	.mj-qv-view-full {
		margin-top: 14px;
		margin-bottom: 6px;
	}
}
