/**
 * JA Single Product — scoped enhancements (does not override Elementor layout)
 */

:root {
	--ja-slate-50: #f8fafc;
	--ja-slate-100: #f1f5f9;
	--ja-slate-200: #e2e8f0;
	--ja-slate-300: #cbd5e1;
	--ja-slate-500: #64748b;
	--ja-slate-800: #1e293b;
	--ja-slate-900: #0f172a;
	--ja-blue-600: #2563eb;
	--ja-blue-700: #1d4ed8;
	--ja-emerald-100: #d1fae5;
	--ja-emerald-800: #065f46;
	--ja-amber-50: #fffbeb;
	--ja-amber-800: #92400e;
	--ja-whatsapp: #25d366;
	--ja-radius: 12px;
}

/* Subtle page background only */
body.ja-woo-single-style-active.single-product #content,
body.ja-woo-single-style-active.single-product .site-main {
	background-color: var(--ja-slate-50);
}

/* ---- Gallery ---- */
body.ja-woo-single-style-active .woocommerce-product-gallery {
	position: relative;
	background: var(--ja-slate-50);
	border-radius: var(--ja-radius);
	border: 1px solid var(--ja-slate-200);
	padding: 0.75rem;
}

body.ja-woo-single-style-active .woocommerce-product-gallery__image img {
	object-fit: contain;
	width: 100%;
	height: auto;
	max-height: 420px;
}

body.ja-woo-single-style-active .ja-gallery-badges {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	pointer-events: none;
}

body.ja-woo-single-style-active .ja-gallery-badges .ja-stock-badge,
body.ja-woo-single-style-active .ja-gallery-badges .ja-condition-badge {
	margin: 0;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
}

body.ja-woo-single-style-active .ja-gallery-badges .ja-stock-badge--in {
	background: var(--ja-emerald-100);
	color: var(--ja-emerald-800);
	border: 1px solid #a7f3d0;
}

body.ja-woo-single-style-active .ja-gallery-badges .ja-condition-badge {
	background: var(--ja-slate-100);
	color: var(--ja-slate-800);
	border: 1px solid var(--ja-slate-200);
}

body.ja-woo-single-style-active .ja-stock-badge--moved {
	display: none !important;
}

/*
 * Thumbnails: Woo default is 100×100 + Flexslider sets tiny inline widths on <li>.
 * Grid + !important overrides let thumbs fill 25% of gallery width each.
 */
body.ja-woo-single-style-active .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.65rem;
	margin: 0.65rem 0 0;
	padding: 0;
	list-style: none;
	width: 100% !important;
	float: none !important;
}

body.ja-woo-single-style-active .flex-control-thumbs li {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0;
	list-style: none;
}

body.ja-woo-single-style-active .flex-control-thumbs li img {
	display: block;
	border: 2px solid var(--ja-slate-200);
	border-radius: 8px;
	width: 100% !important;
	height: auto !important;
	max-width: none !important;
	aspect-ratio: 1;
	object-fit: cover;
	cursor: pointer;
}

body.ja-woo-single-style-active .flex-control-thumbs li img.flex-active,
body.ja-woo-single-style-active .flex-control-thumbs li img:hover {
	border-color: var(--ja-blue-600);
}

/* ---- Title ---- */
body.ja-woo-single-style-active .product_title {
	font-size: clamp(1.25rem, 2.5vw, 1.85rem);
	font-weight: 800;
	line-height: 1.2;
	color: var(--ja-slate-900);
	margin-bottom: 0.5rem;
}

body.ja-woo-single-style-active .ja-product-brand {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ja-blue-600);
	margin: 0 0 0.35rem;
}

/* ---- Disclaimer & dispatch (in place) ---- */
body.ja-woo-single-style-active .ja-disclaimer-box {
	display: block;
	background: var(--ja-amber-50);
	color: var(--ja-amber-800);
	border: 1px solid #fde68a;
	border-radius: var(--ja-radius);
	padding: 0.85rem 1rem;
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	line-height: 1.5;
}

body.ja-woo-single-style-active p.ja-dispatch-notice {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: rgba(209, 250, 229, 0.65);
	color: #047857;
	font-weight: 600;
	font-size: 0.85rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	border: none;
	margin: 0 0 0.75rem;
}

/* Jordan price message */
body.ja-woo-single-style-active .ja-hide-prices-jo-message {
	display: block;
	font-size: 0.85rem;
	color: var(--ja-slate-500);
	text-align: center;
	margin: 0.5rem 0 0;
	padding: 0;
	background: none;
	border: none;
}

/* ---- Meta SKU / Condition ---- */
body.ja-woo-single-style-active .ja-meta-grid > .elementor-container {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

body.ja-woo-single-style-active .ja-meta-grid .elementor-column > .elementor-widget-wrap {
	background: var(--ja-slate-50);
	border: 1px solid var(--ja-slate-100);
	border-radius: 8px;
	padding: 0.65rem 0.85rem !important;
}

body.ja-woo-single-style-active .ja-meta-grid h2.elementor-heading-title {
	font-size: 0.65rem;
	color: var(--ja-slate-500);
	text-transform: uppercase;
	margin: 0 0 0.2rem;
}

/* ---- Action area: grey card around button group (no DOM move) ---- */
body.ja-woo-single-style-active .ja-product-actions-host {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	background: var(--ja-slate-50);
	border: 1px solid var(--ja-slate-200);
	border-radius: 16px;
	padding: 1rem;
	margin: 0.75rem 0 1rem;
}

body.ja-woo-single-style-active .ja-product-actions-host > .elementor-element {
	margin: 0 !important;
	width: 100% !important;
}

body.ja-woo-single-style-active .ja-product-actions-host > .elementor-widget-container,
body.ja-woo-single-style-active .ja-product-actions-host .elementor-widget-container {
	margin: 0 !important;
	padding: 0 !important;
}

/* Full width widgets (shortcode row with multiple buttons) */
body.ja-woo-single-style-active .ja-product-actions-host > .elementor-widget-shortcode {
	grid-column: 1 / -1;
}

body.ja-woo-single-style-active .ja-product-actions-host .elementor-button,
body.ja-woo-single-style-active .ja-product-actions-host a.button,
body.ja-woo-single-style-active .ja-product-actions-host a.add-request-quote-button,
body.ja-woo-single-style-active .ja-product-actions-host .yith-ywraq-button,
body.ja-woo-single-style-active .ja-product-actions-host a[href*="wa.me"],
body.ja-woo-single-style-active .ja-product-actions-host a[role="button"] {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 42px;
	padding: 0.65rem 0.75rem !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	border-radius: 10px !important;
	box-sizing: border-box;
	margin: 0 !important;
}

/* Quote */
body.ja-woo-single-style-active .ja-product-actions-host a.add-request-quote-button,
body.ja-woo-single-style-active .ja-product-actions-host .yith-ywraq-button,
body.ja-woo-single-style-active .ja-product-actions-host .ja-btn-quote {
	background: var(--ja-blue-600) !important;
	color: #fff !important;
	border: none !important;
}

/* WhatsApp */
body.ja-woo-single-style-active .ja-product-actions-host a[href*="wa.me"],
body.ja-woo-single-style-active .ja-product-actions-host .ja-btn-whatsapp {
	background: var(--ja-whatsapp) !important;
	color: #fff !important;
	border: none !important;
}

/* Secondary outline buttons */
body.ja-woo-single-style-active .ja-product-actions-host .ja-btn-nyp,
body.ja-woo-single-style-active .ja-product-actions-host .ja-btn-ebay,
body.ja-woo-single-style-active .ja-product-actions-host a[role="button"] {
	background: #fff !important;
	color: var(--ja-slate-800) !important;
	border: 1px solid var(--ja-slate-300) !important;
}

/* Shortcode inner flex for [iconsjo_add_to_cart] row */
body.ja-woo-single-style-active .ja-product-actions-host .elementor-shortcode {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

/* Add to cart when visible */
body.ja-woo-single-style-active .ja-product-actions-host .single_add_to_cart_button {
	background: #6b2d5c !important;
	color: #fff !important;
	border: none !important;
}

/* Stock badge in summary */
body.ja-woo-single-style-active .ja-stock-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	margin-bottom: 0.5rem;
}

body.ja-woo-single-style-active .ja-stock-badge--in {
	background: var(--ja-emerald-100);
	color: var(--ja-emerald-800);
	border: 1px solid #a7f3d0;
}

@media (max-width: 520px) {
	body.ja-woo-single-style-active .ja-product-actions-host,
	body.ja-woo-single-style-active .ja-product-actions-host .elementor-shortcode {
		grid-template-columns: 1fr;
	}
}
