/* Pro Primes single-product page — reference (light) design. Loaded last. */

/* ---------- Base: light product surface (mobile + desktop) ---------- */
body.single-product {
	background: #fdfdfd;
	color: #1c1e22;
}

body.single-product .pp-content {
	background: #fdfdfd;
	color: #1c1e22;
}

body.single-product .site-main,
body.single-product main.site-main,
body.single-product #main,
body.single-product .pp-main {
	width: 100%;
	max-width: none;
	padding: 0 12px calc(150px + env(safe-area-inset-bottom));
	background: #fdfdfd;
	color: #1c1e22;
}

html[data-theme="dark"] body.single-product .site-main,
html[data-theme="dark"] body.single-product #main,
html[data-theme="dark"] body.single-product .pp-main {
	background: #101211;
	color: #eee;
}

body.single-product .woocommerce-notices-wrapper {
	padding: 12px 0 0;
}

body.single-product .woocommerce-message,
body.single-product .woocommerce-info,
body.single-product .woocommerce-error {
	margin: 0 0 12px;
	border-radius: 10px;
	font-size: 12px;
}

/* ---------- Breadcrumb ---------- */
body.single-product .woocommerce-breadcrumb,
body.single-product .woocommerce-breadcrumb a {
	margin: 14px 0 4px;
	color: #8a9199;
	font-size: 11px;
	line-height: 1.8;
}

/* ---------- Product card container ---------- */
.woocommerce div.product {
	position: relative;
	margin: 6px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

/* ---------- Gallery ---------- */
.woocommerce div.product div.images {
	position: relative;
	width: 100% !important;
	margin: 0 !important;
	padding: 12px;
	border-radius: 16px;
	background: #ffffff;
	border: 1px solid #e9edf2;
	box-shadow: 0 2px 10px #1018280d;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
	border-radius: 12px;
	overflow: hidden;
}

.woocommerce div.product div.images img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 12px;
}

.woocommerce-product-gallery {
	position: static;
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	z-index: 3;
	top: 22px;
	left: 22px;
	width: 34px;
	height: 34px;
	border: 0 !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	color: #0b0a68 !important;
	box-shadow: 0 2px 8px #10182826;
	font-size: 0 !important;
}

.woocommerce-product-gallery__trigger:before {
	content: '⤢';
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	font-size: 15px;
	line-height: 1;
}

.woocommerce-product-gallery__trigger img {
	display: none !important;
}

body.single-product .onsale,
body.single-product span.onsale {
	position: absolute;
	z-index: 3;
	top: 22px;
	right: 22px;
	left: auto;
	min-width: 52px;
	padding: 4px 9px;
	border-radius: 9px;
	background: #e02b4f;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}

.woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
	padding: 0 2px;
	list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs li {
	width: 58px;
}

.woocommerce-product-gallery .flex-control-thumbs img {
	width: 58px;
	height: 58px;
	border: 2px solid #e9edf2;
	border-radius: 10px;
	object-fit: cover;
	opacity: 1;
}

.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	border-color: #0074fc;
}

/* ---------- Summary ---------- */
.woocommerce div.product div.summary {
	position: relative;
	width: 100% !important;
	margin: 0 !important;
	padding: 16px 4px 4px;
	text-align: right;
}

body.single-product div.product .product_title {
	margin: 0 0 6px;
	color: #0b0a68;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.7;
}

.woocommerce div.product .woocommerce-product-rating {
	margin: 0 0 10px;
}

.woocommerce div.product .star-rating,
.woocommerce div.product p.stars a {
	color: #f5a623;
}

.woocommerce div.product .woocommerce-review-link {
	color: #8a9199;
	font-size: 11px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 14px;
	color: #0b0a68;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.5;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
	color: #9aa3ad;
	font-size: 13px;
	font-weight: 500;
	opacity: 1;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
	margin: 0;
	color: #0b0a68;
	font-size: 21px;
	font-weight: 800;
	text-decoration: none;
}

.woocommerce div.product .pp-discount-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 8px;
	background: #fde8ee;
	color: #e02b4f;
	font-size: 10px;
	font-weight: 700;
}

.woocommerce div.product .woocommerce-short-description {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid #e9edf2;
	border-radius: 12px;
	background: #f7f9fc;
	color: #3c434d;
	font-size: 12px;
	line-height: 2;
}

.woocommerce div.product .woocommerce-short-description ul {
	margin: 0;
	padding: 0;
	padding-inline-start: 0;
	list-style: none;
}

.woocommerce div.product .woocommerce-short-description li {
	position: relative;
	padding-inline-start: 24px;
}

.woocommerce div.product .woocommerce-short-description li:before {
	content: '✓';
	position: absolute;
	inset-inline-start: 2px;
	color: #16a34a;
	font-size: 12px;
	font-weight: 700;
}

.woocommerce div.product .product_meta {
	margin: 0 0 14px;
	padding-top: 12px;
	border-top: 1px solid #e9edf2;
	color: #8a9199;
	font-size: 11px;
}

.woocommerce div.product .product_meta span {
	display: block;
	margin: 0 0 4px;
}

.woocommerce div.product .product_meta a,
.woocommerce div.product .posted_in a {
	color: #0b0a68;
	font-weight: 600;
}

/* ---------- Variations ---------- */
.pp-product-options-prompt {
	margin: 0 0 8px;
	color: #0b0a68;
	font-size: 12px;
	font-weight: 700;
}

.woocommerce div.product form.cart {
	margin: 0 0 16px;
	padding: 0;
}

.woocommerce div.product form.cart .variations label {
	display: block;
	margin-bottom: 4px;
	color: #0b0a68;
	font-weight: 700;
}

.woocommerce div.product form.cart .variations select:focus,
.woocommerce div.product form.cart .quantity .qty:focus {
	outline: 3px solid #0074fc33;
	outline-offset: 1px;
}

.pp-sticky-buy:disabled,
.pp-sticky-buy.is-disabled {
	cursor: not-allowed;
	opacity: .55;
	box-shadow: none;
}

.woocommerce div.product form.cart .variations {
	margin: 0 0 12px;
	border: 0;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
	display: block;
	padding: 4px 0;
	border: 0;
	color: #3c434d;
	font-size: 12px;
	text-align: right;
}

.woocommerce div.product form.cart .variations select {
	width: 100%;
	height: 42px;
	border: 1px solid #dfe7f0;
	border-radius: 11px;
	background: #ffffff;
	color: #1c1e22;
	font-size: 13px;
}

.woocommerce div.product .reset_variations {
	color: #0074fc;
	font-size: 11px;
}

/* ---------- Quantity + add to cart ---------- */
.woocommerce div.product form.cart .quantity {
	float: none;
	display: inline-flex;
	align-items: center;
	margin: 0 0 10px;
}

.woocommerce div.product form.cart .quantity .qty {
	width: 74px;
	height: 46px;
	border: 1px solid #dfe7f0;
	border-radius: 11px;
	background: #ffffff;
	color: #1c1e22;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
}

.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart button.single_add_to_cart_button,
.woocommerce div.product .single_add_to_cart_button {
	display: flex;
	width: 100%;
	height: 50px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 13px;
	background: #0074fc;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	box-shadow: 0 6px 16px #0074fc33;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce div.product .single_add_to_cart_button:hover {
	background: #0167db;
	color: #fff;
}

.woocommerce div.product form.cart .button:disabled,
.woocommerce div.product form.cart .button.disabled {
	opacity: .5;
	box-shadow: none;
}

.woocommerce div.product form.cart .button:before {
	content: '🛒';
	font-size: 15px;
}

body.single-product .wccm-variation-unavailable,
body.single-product .woocommerce-variation-description {
	padding: 10px 12px;
	border-radius: 10px;
	background: #f7f9fc;
	color: #3c434d;
	font-size: 12px;
}

/* ---------- Trust strip ---------- */
.pp-product-trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin: 0 0 16px;
}

.pp-product-trust > div {
	display: flex;
	min-height: 62px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 8px 4px;
	border: 1px solid #e9edf2;
	border-radius: 12px;
	background: #ffffff;
	color: #3c434d;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
}

.pp-product-trust svg {
	width: 21px;
	height: 21px;
	color: #0074fc;
}

/* ---------- Tabs ---------- */
.woocommerce div.product .woocommerce-tabs {
	margin: 6px 0 0;
	padding: 0;
	border: 1px solid #e9edf2;
	border-radius: 14px;
	background: #ffffff;
	overflow: hidden;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	overflow-x: auto;
	margin: 0;
	padding: 0 12px;
	border-bottom: 1px solid #e9edf2;
	background: #ffffff;
	white-space: nowrap;
	scrollbar-width: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	white-space: nowrap;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 13px 12px;
	color: #8a9199;
	font-size: 12px;
	font-weight: 600;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: #0b0a68;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active:after {
	content: '';
	position: absolute;
	right: 12px;
	left: 12px;
	bottom: -1px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: #0074fc;
}

.woocommerce div.product .woocommerce-tabs .panel {
	margin: 0;
	padding: 14px;
	color: #3c434d;
	font-size: 12px;
	line-height: 2;
}

.woocommerce div.product .woocommerce-tabs .panel h2,
.woocommerce div.product .woocommerce-tabs .panel h3 {
	margin: 0 0 8px;
	color: #0b0a68;
	font-size: 14px;
}

.woocommerce div.product .woocommerce-tabs .panel p {
	margin: 0 0 10px;
}

.woocommerce div.product .woocommerce-tabs .panel ul {
	margin: 0 0 10px;
	padding-inline-start: 18px;
}

/* ---------- Related / up-sells ---------- */
.woocommerce div.product .related,
.woocommerce div.product .up-sells {
	margin: 16px 0 0;
}

.woocommerce div.product .related h2,
.woocommerce div.product .up-sells h2 {
	margin: 0 0 10px;
	color: #0b0a68;
	font-size: 14px;
	font-weight: 800;
}

.woocommerce div.product .related ul.products,
.woocommerce div.product .up-sells ul.products {
	display: flex !important;
	grid-template-columns: none !important;
	overflow-x: auto;
	gap: 10px !important;
	margin: 0 !important;
	padding: 2px 2px 8px;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.woocommerce div.product .related ul.products::-webkit-scrollbar,
.woocommerce div.product .up-sells ul.products::-webkit-scrollbar {
	display: none;
}

.woocommerce div.product .related ul.products li.product,
.woocommerce div.product .up-sells ul.products li.product {
	flex: 0 0 158px;
	min-width: 158px;
	margin: 0 !important;
	padding: 8px;
	border: 1px solid #e9edf2 !important;
	border-radius: 13px;
	background: #ffffff;
	box-shadow: 0 2px 8px #1018280a;
	scroll-snap-align: start;
	overflow: hidden;
}

.woocommerce div.product .related ul.products li.product > a img,
.woocommerce div.product .up-sells ul.products li.product > a img {
	width: calc(100% - 8px) !important;
	height: auto;
	margin: 4px !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
}

.woocommerce div.product .related ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .up-sells ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	overflow: hidden;
	min-height: 34px;
	margin: 2px 4px 4px;
	color: #0b0a68;
	font-size: 11px !important;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.woocommerce div.product .related ul.products li.product .price,
.woocommerce div.product .up-sells ul.products li.product .price {
	margin: 0 4px 6px;
	color: #0b0a68;
	font-size: 12px;
	font-weight: 700;
}

.woocommerce div.product .related ul.products li.product .button,
.woocommerce div.product .up-sells ul.products li.product .button {
	width: calc(100% - 8px);
	margin: 0 4px 6px;
	padding: 0;
	border-radius: 9px;
	background: #0074fc;
	color: #fff;
	font-size: 11px;
}

/* ---------- Sticky purchase bar (mobile) ---------- */
.pp-sticky-purchase {
	position: fixed;
	z-index: 58;
	right: 0;
	left: 0;
	bottom: calc(66px + env(safe-area-inset-bottom));
	display: flex;
	align-items: stretch;
	gap: 10px;
	padding: 10px 12px;
	border-top: 1px solid #e3e9f1;
	border-radius: 16px 16px 0 0;
	background: #ffffff;
	box-shadow: 0 -6px 20px #1018281f;
}

.pp-sticky-purchase[hidden] {
	display: none;
}

.pp-sticky-buy {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	order: -1;
	min-width: 168px;
	height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: 13px;
	background: #0074fc;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 6px 14px #0074fc33;
}

.pp-sticky-buy:hover {
	background: #0167db;
	color: #fff;
}

.pp-sticky-price {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.pp-sticky-price span {
	color: #8a9199;
	font-size: 10px;
	line-height: 1.6;
}

.pp-sticky-price b {
	display: flex;
	align-items: baseline;
	gap: 6px;
	color: #0b0a68;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.4;
	white-space: nowrap;
}

.pp-sticky-price del {
	color: #9aa3ad;
	font-size: 11px;
	font-weight: 500;
}

.pp-sticky-price ins {
	margin: 0;
	color: #0b0a68;
	text-decoration: none;
}

.pp-sticky-price .amount {
	white-space: nowrap;
}

/* ---------- Bottom nav + header scoping (mobile) ---------- */
@media (max-width: 650px) {
	html[data-theme="dark"] body.single-product .pp-header {
		background: #0c1214;
		box-shadow: 0 4px 14px #00000026;
	}

	html[data-theme="light"] body.single-product .pp-header,
	html[data-theme="light"] body.single-product .pp-header-main {
		background: #f4f6f8;
	}

	html[data-theme="dark"] body.single-product .pp-header-main {
		background: #171918;
	}

	body.single-product .pp-topbar {
		display: none;
	}

	body.single-product .pp-mobile-nav {
		background: #eff4fc;
		border-top: 1px solid #dbe4ef;
		box-shadow: 0 -4px 16px #10182814;
	}

	html[data-theme="dark"] body.single-product .pp-mobile-nav {
		background: #1b1d1c;
		border-top-color: #2b2e2d;
	}

	body.single-product .pp-mobile-nav a,
	body.single-product .pp-mobile-nav button {
		color: #6b7480;
	}

	body.single-product .pp-mobile-nav a:first-child {
		color: #0074fc;
	}
}

/* ---------- Desktop refinements ---------- */
@media (min-width: 651px) {
	.pp-sticky-purchase {
		display: none !important;
	}

	body.single-product .site-main,
	body.single-product main.site-main {
		width: min(1120px, calc(100% - 70px));
		padding: 28px 0 calc(60px + env(safe-area-inset-bottom));
	}

	.woocommerce div.product {
		padding: 24px 26px;
		border: 1px solid #e9edf2;
		border-radius: 16px;
		background: #ffffff;
		box-shadow: 0 2px 12px #1018280a;
	}

	.woocommerce div.product div.summary {
		padding-inline-end: 6px;
	}

	.woocommerce div.product .product_title {
		font-size: 24px;
	}

	.woocommerce div.product p.price,
	.woocommerce div.product span.price,
	.woocommerce div.product p.price ins,
	.woocommerce div.product span.price ins {
		font-size: 24px;
	}

	.woocommerce div.product .woocommerce-tabs .panel {
		padding: 20px 24px;
		font-size: 13px;
	}

	.woocommerce div.product .related ul.products li.product,
	.woocommerce div.product .up-sells ul.products li.product {
		flex: 0 0 200px;
		min-width: 200px;
	}
}

/* ---------- Dark mode variant ---------- */
html[data-theme="dark"] body.single-product,
html[data-theme="dark"] body.single-product .pp-content {
	background: #101211;
	color: #eee;
}

html[data-theme="dark"] .woocommerce div.product,
html[data-theme="dark"] .woocommerce div.product div.images,
html[data-theme="dark"] .woocommerce div.product .woocommerce-short-description,
html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs,
html[data-theme="dark"] .woocommerce div.product .related ul.products li.product,
html[data-theme="dark"] .woocommerce div.product .up-sells ul.products li.product,
html[data-theme="dark"] .pp-product-trust > div,
html[data-theme="dark"] .pp-sticky-purchase {
	border-color: #2b2e2d;
	background: #1b1d1c;
	color: #eee;
}

html[data-theme="dark"] body.single-product div.product .product_title,
html[data-theme="dark"] .woocommerce div.product p.price,
html[data-theme="dark"] .woocommerce div.product span.price,
html[data-theme="dark"] .woocommerce div.product p.price ins,
html[data-theme="dark"] .woocommerce div.product span.price ins,
html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs .panel h2,
html[data-theme="dark"] .woocommerce div.product .related h2,
html[data-theme="dark"] .woocommerce div.product .related ul.products li.product .woocommerce-loop-product__title,
html[data-theme="dark"] .woocommerce div.product .related ul.products li.product .price,
html[data-theme="dark"] .pp-sticky-price b,
html[data-theme="dark"] .pp-sticky-price ins {
	color: #f4f4f4 !important;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-short-description,
html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs .panel,
html[data-theme="dark"] .woocommerce div.product .product_meta,
html[data-theme="dark"] .pp-product-trust > div {
	color: #b9bdc0;
}

html[data-theme="dark"] .woocommerce div.product .woocommerce-breadcrumb,
html[data-theme="dark"] .woocommerce div.product .woocommerce-breadcrumb a,
html[data-theme="dark"] .woocommerce div.product .woocommerce-review-link,
html[data-theme="dark"] .pp-sticky-price span,
html[data-theme="dark"] .woocommerce div.product p.price del {
	color: #8e9290;
}

html[data-theme="dark"] .woocommerce div.product form.cart .variations select,
html[data-theme="dark"] .woocommerce div.product form.cart .quantity .qty {
	border-color: #3a3d3b;
	background: #232625;
	color: #fff;
}

html[data-theme="dark"] body.single-product .pp-mobile-nav {
	background: #1b1d1c;
	border-color: #2b2e2d;
}

html[data-theme="dark"] body.single-product .pp-mobile-nav a,
html[data-theme="dark"] body.single-product .pp-mobile-nav button {
	color: #9c9c9c;
}

html[data-theme="dark"] body.single-product .pp-mobile-nav a:first-child {
	color: #4da3ff;
}
