/* =========================================================
   NEXGEN CARE
   CUSTOM WOOCOMMERCE SINGLE PRODUCT
   FINAL CLEAN VERSION
   ========================================================= */

/* =========================================================
   PAGE
   ========================================================= */

body.single-product {
	margin: 0;
	overflow-x: hidden;
	background: #f5f6f7;
}

body.single-product .nxsp-page {
	--nxsp-bg: #f5f6f7;
	--nxsp-card: #ffffff;
	--nxsp-text: #242a2f;
	--nxsp-muted: #68727b;
	--nxsp-border: #e4e7ea;
	--nxsp-button: #252b30;
	--nxsp-button-hover: #171c20;
	--nxsp-radius: 14px;

	width: 100%;
	max-width: 1380px;
	margin: 0 auto;
	padding: 24px 24px 70px;
	box-sizing: border-box;
	color: var(--nxsp-text);
}

body.single-product .nxsp-page,
body.single-product .nxsp-page *,
body.single-product .nxsp-page *::before,
body.single-product .nxsp-page *::after {
	box-sizing: border-box;
}

body.single-product .nxsp-page img {
	max-width: 100%;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */

body.single-product .nxsp-breadcrumb {
	margin: 0 0 22px;
	font-size: 13px;
	line-height: 1.5;
	color: #68727b;
}

body.single-product .nxsp-breadcrumb-nav {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

body.single-product .nxsp-breadcrumb a {
	color: #626b73;
	text-decoration: none;
}

body.single-product .nxsp-breadcrumb-separator {
	color: #9aa1a7;
}

/* =========================================================
   MAIN PRODUCT AREA
   ========================================================= */

body.single-product .nxsp-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 34px;
	align-items: start;
}

/* =========================================================
   GALLERY
   ========================================================= */

body.single-product .nxsp-gallery-column {
	min-width: 0;
}

body.single-product .nxsp-gallery-card {
	background: #ffffff;
	border: 1px solid var(--nxsp-border);
	border-radius: var(--nxsp-radius);
	padding: 20px;
	box-shadow: 0 8px 30px rgba(30, 36, 40, 0.05);
}

body.single-product .nxsp-custom-gallery {
	width: 100%;
}

body.single-product .nxsp-main-image-box {
	position: relative;
	width: 100%;
	min-height: 560px;

	display: flex;
	align-items: center;
	justify-content: center;

	background: #ffffff;
	border-radius: 10px;
	overflow: hidden;
}

body.single-product .nxsp-main-image {
	display: none;

	width: 100%;
	height: 560px;

	object-fit: contain;
	object-position: center;
}

body.single-product .nxsp-main-image.is-active {
	display: block;
}

body.single-product .nxsp-no-image {
	display: flex;
	align-items: center;
	justify-content: center;

	min-height: 560px;

	color: #7b838a;
	font-size: 15px;
}

/* =========================================================
   GALLERY THUMBNAILS
   ========================================================= */

body.single-product .nxsp-gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

body.single-product .nxsp-gallery-thumb {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	aspect-ratio: 1 / 1;

	padding: 5px;

	border: 1px solid var(--nxsp-border);
	border-radius: 8px;

	background: #ffffff;

	cursor: pointer;

	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

body.single-product .nxsp-gallery-thumb:hover {
	border-color: #b9c0c5;
}

body.single-product .nxsp-gallery-thumb.is-active {
	border-color: #2f363c;
	box-shadow: 0 0 0 1px #2f363c;
}

body.single-product .nxsp-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 5px;
}

/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

body.single-product .nxsp-info-column {
	min-width: 0;

	background: #ffffff;
	border: 1px solid var(--nxsp-border);
	border-radius: var(--nxsp-radius);

	padding: 32px;

	box-shadow: 0 8px 30px rgba(30, 36, 40, 0.05);
}

body.single-product .nxsp-eyebrow {
	margin-bottom: 10px;

	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;

	letter-spacing: 0.08em;
	text-transform: uppercase;

	color: #707980;
}

body.single-product .nxsp-eyebrow a {
	color: #707980;
	text-decoration: none;
}

body.single-product .nxsp-product-title {
	margin: 0;

	font-size: clamp(28px, 3vw, 42px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;

	color: var(--nxsp-text);
}

body.single-product .nxsp-rating {
	margin-top: 15px;
}

body.single-product .nxsp-rating .star-rating {
	margin: 0;
}

body.single-product .nxsp-short-description {
	margin-top: 20px;

	font-size: 15px;
	line-height: 1.8;

	color: #606a72;
}

body.single-product .nxsp-short-description p {
	margin: 0 0 10px;
}

body.single-product .nxsp-short-description p:last-child {
	margin-bottom: 0;
}

/* =========================================================
   STOCK
   ========================================================= */

body.single-product .nxsp-stock-row {
	margin-top: 20px;
}

body.single-product .nxsp-stock-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;

	padding: 7px 12px;

	border: 1px solid #dce9e1;
	border-radius: 999px;

	background: #f4faf6;
	color: #2f6f4e;

	font-size: 13px;
	font-weight: 700;
}

body.single-product .nxsp-stock-badge.nxsp-stock-out {
	border-color: #eadede;
	background: #faf4f4;
	color: #8a4848;
}

body.single-product .nxsp-stock-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #3d9867;
}

/* =========================================================
   PURCHASE AREA
   ========================================================= */

body.single-product .nxsp-purchase {
	margin-top: 24px;
}

/* Hide price */
body.single-product .nxsp-page .price,
body.single-product .nxsp-page .woocommerce-Price-amount,
body.single-product .nxsp-page .woocommerce-variation-price,
body.single-product .nxsp-page .single_variation .price,
body.single-product .nxsp-page .single_variation_wrap .price {
	display: none !important;
}

/* =========================================================
   VARIATIONS
   ========================================================= */

body.single-product .nxsp-purchase form.cart {
	margin: 0;
}

body.single-product .nxsp-purchase .variations {
	width: 100%;
	margin: 0 0 18px;
	border: 0;
}

body.single-product .nxsp-purchase .variations tbody,
body.single-product .nxsp-purchase .variations tr,
body.single-product .nxsp-purchase .variations td {
	border: 0;
}

body.single-product .nxsp-purchase .variations tr {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	margin-bottom: 12px;
}

body.single-product .nxsp-purchase .variations td.label {
	padding: 0;
	text-align: left;
}

body.single-product .nxsp-purchase .variations td.value {
	padding: 0;
}

body.single-product .nxsp-purchase .variations label {
	font-size: 14px;
	font-weight: 600;
	color: var(--nxsp-text);
}

body.single-product .nxsp-purchase .variations select {
	width: 100%;
	min-height: 46px;

	padding: 10px 38px 10px 12px;

	border: 1px solid var(--nxsp-border);
	border-radius: 8px;

	background: #ffffff;
	color: var(--nxsp-text);

	font-size: 14px;
}

body.single-product .nxsp-purchase .reset_variations {
	display: inline-block;
	margin-top: 8px;

	font-size: 12px;
	color: #68727a;
}

/* Quantity hidden */
body.single-product .nxsp-purchase .quantity {
	display: none !important;
}

/* Add To Cart hidden */
body.single-product .nxsp-purchase .single_add_to_cart_button,
body.single-product .nxsp-purchase button.single_add_to_cart_button {
	display: none !important;
}

/* =========================================================
   BUY NOW
   ========================================================= */

body.single-product .nx-manual-buy-now-button {
	display: block;

	width: 100%;
	min-height: 52px;

	margin-top: 12px;
	padding: 14px 20px;

	border: 0;
	border-radius: 8px;

	background: #3c454c;
	color: #ffffff;

	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;

	cursor: pointer;

	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

body.single-product .nx-manual-buy-now-button:hover {
	background: #2b3237;
	transform: translateY(-1px);
}

/* =========================================================
   TRUST
   ========================================================= */

body.single-product .nxsp-trust-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;

	margin-top: 24px;
	padding-top: 24px;

	border-top: 1px solid var(--nxsp-border);
}

body.single-product .nxsp-trust-item {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	min-width: 0;
}

body.single-product .nxsp-trust-mark {
	flex: 0 0 24px;

	width: 24px;
	height: 24px;

	display: flex;
	align-items: center;
	justify-content: center;

	border-radius: 50%;

	background: #edf5f0;
	color: #397254;

	font-size: 13px;
	font-weight: 700;
}

body.single-product .nxsp-trust-item strong {
	display: block;

	font-size: 12px;
	line-height: 1.35;

	color: var(--nxsp-text);
}

body.single-product .nxsp-trust-item small {
	display: block;

	margin-top: 3px;

	font-size: 10px;
	line-height: 1.4;

	color: #7b858c;
}

/* =========================================================
   PRODUCT META
   ========================================================= */

body.single-product .nxsp-meta {
	margin-top: 22px;
	padding-top: 18px;

	border-top: 1px solid var(--nxsp-border);

	font-size: 12px;
	line-height: 1.7;

	color: var(--nxsp-muted);
}

body.single-product .nxsp-meta .product_meta {
	margin: 0;
}

body.single-product .nxsp-meta a {
	color: #515b63;
}

/* =========================================================
   TABS
   ========================================================= */

body.single-product .nxsp-content-section {
	width: 100%;
	margin: 40px auto 0;
}

body.single-product .nxsp-tabs {
	width: 100%;
	max-width: 1200px;

	margin: 0 auto;

	background: #ffffff;

	border: 1px solid var(--nxsp-border);
	border-radius: var(--nxsp-radius);

	padding: 28px;

	box-shadow: 0 8px 30px rgba(30, 36, 40, 0.04);
}

body.single-product .nxsp-tabs .woocommerce-tabs {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

body.single-product .nxsp-tabs ul.tabs {
	float: none !important;

	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-wrap: wrap !important;

	width: 100% !important;

	margin: 0 0 30px !important;
	padding: 0 !important;

	gap: 8px !important;

	border: 0 !important;
}

body.single-product .nxsp-tabs ul.tabs::before,
body.single-product .nxsp-tabs ul.tabs::after {
	display: none !important;
}

body.single-product .nxsp-tabs ul.tabs li {
	float: none !important;
	display: block !important;

	margin: 0 !important;
	padding: 0 !important;

	border: 0 !important;

	background: transparent !important;
}

body.single-product .nxsp-tabs ul.tabs li::before,
body.single-product .nxsp-tabs ul.tabs li::after {
	display: none !important;
}

body.single-product .nxsp-tabs ul.tabs li a {
	display: block;

	padding: 10px 16px !important;

	border: 1px solid #e1e5e9 !important;
	border-radius: 7px !important;

	background: #ffffff !important;

	color: #56616a !important;

	font-size: 12px !important;
	font-weight: 600 !important;

	text-align: center !important;
	text-decoration: none !important;
}

body.single-product .nxsp-tabs ul.tabs li.active a {
	background: #f1f4f6 !important;
	border-color: #d5dadd !important;
	color: #17324d !important;
}

body.single-product .nxsp-tabs .woocommerce-Tabs-panel {
	float: none !important;

	width: 100% !important;
	max-width: 900px !important;

	margin: 0 auto !important;
	padding: 0 !important;

	font-size: 14px;
	line-height: 1.8;

	color: #5f6971;
}

body.single-product .nxsp-tabs .woocommerce-Tabs-panel h2 {
	margin-top: 0 !important;
	color: #17324d;
}

/* Reviews */
body.single-product .nxsp-tabs #reviews {
	margin: 0;
}

body.single-product .nxsp-tabs #reviews ol.commentlist {
	margin-left: 0;
	padding-left: 0;
}

body.single-product .nxsp-tabs #review_form_wrapper {
	margin-top: 24px;
}

body.single-product .nxsp-tabs #review_form input[type="text"],
body.single-product .nxsp-tabs #review_form input[type="email"],
body.single-product .nxsp-tabs #review_form textarea {
	width: 100%;
	padding: 11px 13px;

	border: 1px solid var(--nxsp-border);
	border-radius: 8px;

	background: #ffffff;
}

body.single-product .nxsp-tabs #review_form textarea {
	min-height: 130px;
	resize: vertical;
}

/* =========================================================
   RELATED PRODUCTS
   ========================================================= */

body.single-product .related.products {
	width: 100%;
	max-width: 1200px;

	margin: 48px auto 0 !important;
	padding: 0 0 70px !important;

	clear: both !important;
	float: none !important;
}

body.single-product .related.products > h2 {
	margin: 0 0 22px !important;

	font-size: 24px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;

	color: #17324d !important;
}

/* Grid */
body.single-product .related.products ul.products {
	display: grid !important;

	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

	gap: 22px !important;

	width: 100% !important;

	margin: 0 !important;
	padding: 0 !important;

	list-style: none !important;
}

body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after {
	display: none !important;
}

/* Card */
body.single-product .related.products ul.products li.product {
	width: 100% !important;
	min-width: 0 !important;

	float: none !important;
	clear: none !important;

	margin: 0 !important;
	padding: 0 0 14px !important;

	display: flex !important;
	flex-direction: column !important;

	background: #ffffff !important;

	border: 1px solid #e1e5e9 !important;
	border-radius: 12px !important;

	overflow: hidden !important;

	box-shadow: none !important;

	text-align: center !important;
}

/* Product image */
body.single-product .related.products ul.products li.product img {
	display: block !important;

	width: 100% !important;
	height: 220px !important;

	margin: 0 !important;
	padding: 12px !important;

	object-fit: contain !important;
	object-position: center !important;

	background: #f7f9fb !important;

	border: 0 !important;
	border-radius: 0 !important;

	transform: none !important;
}

/* Product title */
body.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box !important;

	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;

	overflow: hidden !important;

	width: 100% !important;
	height: 44px !important;
	min-height: 44px !important;

	margin: 0 !important;
	padding: 14px 12px 0 !important;

	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;

	text-align: center !important;

	color: #004b6d !important;
}

/* =========================================================
   IMPORTANT:
   BLOCKSY CATEGORY META
   ========================================================= */

/*
 * Blocksy outputs product categories through its
 * post-meta system.
 *
 * Typical structure:
 *
 * <ul class="entry-meta">
 *     <li class="meta-categories">...</li>
 * </ul>
 *
 * We target that actual structure here.
 */

body.single-product .related.products ul.products li.product > ul.entry-meta,
body.single-product .related.products ul.products li.product > .entry-meta,
body.single-product .related.products ul.products li.product .entry-meta {
	display: flex !important;

	align-items: center !important;
	justify-content: center !important;

	flex-wrap: wrap !important;

	width: 100% !important;
	max-width: 100% !important;

	min-width: 0 !important;

	margin: 8px 0 0 !important;
	padding: 0 12px !important;

	list-style: none !important;

	box-sizing: border-box !important;

	text-align: center !important;

	overflow: hidden !important;
}

/* Remove list styling */
body.single-product .related.products ul.products li.product .entry-meta li {
	list-style: none !important;

	margin: 0 !important;
	padding: 0 !important;

	width: auto !important;
	max-width: 100% !important;

	text-align: center !important;
}

/* Actual category item */
body.single-product .related.products ul.products li.product .entry-meta .meta-categories {
	display: block !important;

	width: 100% !important;
	max-width: 100% !important;

	margin: 0 !important;
	padding: 0 !important;

	text-align: center !important;

	white-space: normal !important;
	overflow-wrap: anywhere !important;
	word-break: normal !important;

	box-sizing: border-box !important;
}

/* Category links */
body.single-product .related.products ul.products li.product .entry-meta .meta-categories a {
	display: inline !important;

	max-width: 100% !important;

	margin: 0 !important;
	padding: 0 !important;

	font-size: 10px !important;
	font-weight: 500 !important;

	line-height: 1.45 !important;

	color: #66727c !important;

	text-align: center !important;
	text-decoration: none !important;

	white-space: normal !important;
	overflow-wrap: anywhere !important;
}

/* Category separator */
body.single-product .related.products ul.products li.product .entry-meta .meta-categories .separator {
	display: inline !important;
}

/* Any text inside category meta */
body.single-product .related.products ul.products li.product .entry-meta .meta-categories * {
	max-width: 100% !important;

	text-align: center !important;

	white-space: normal !important;
	overflow-wrap: anywhere !important;
}

/* =========================================================
   FALLBACK FOR OTHER BLOCKSY META OUTPUT
   ========================================================= */

body.single-product .related.products ul.products li.product [data-id="categories"],
body.single-product .related.products ul.products li.product .meta-categories {
	display: block !important;

	width: 100% !important;
	max-width: 100% !important;

	margin: 8px 0 0 !important;
	padding: 0 12px !important;

	box-sizing: border-box !important;

	text-align: center !important;

	font-size: 10px !important;
	line-height: 1.45 !important;

	color: #66727c !important;

	white-space: normal !important;
	overflow-wrap: anywhere !important;
}

/* =========================================================
   HIDE UNWANTED RELATED ELEMENTS
   ========================================================= */

body.single-product .related.products ul.products li.product .price,
body.single-product .related.products ul.products li.product .woocommerce-Price-amount,
body.single-product .related.products ul.products li.product .star-rating,
body.single-product .related.products ul.products li.product .button,
body.single-product .related.products ul.products li.product .add_to_cart_button,
body.single-product .related.products ul.products li.product .added_to_cart,
body.single-product .related.products ul.products li.product .onsale {
	display: none !important;
}

/* =========================================================
   RELATED HOVER
   ========================================================= */

body.single-product .related.products ul.products li.product:hover {
	transform: none !important;

	border-color: #e1e5e9 !important;

	box-shadow: none !important;
}

body.single-product .related.products ul.products li.product:hover img {
	transform: none !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

	body.single-product .nxsp-page {
		padding-left: 20px;
		padding-right: 20px;
	}

	body.single-product .nxsp-hero {
		gap: 22px;
	}

	body.single-product .nxsp-gallery-card {
		padding: 16px;
	}

	body.single-product .nxsp-main-image-box,
	body.single-product .nxsp-main-image {
		height: 470px;
		min-height: 470px;
	}

	body.single-product .nxsp-info-column {
		padding: 25px;
	}

	body.single-product .related.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* =========================================================
   MOBILE TABLET
   ========================================================= */

@media (max-width: 767px) {

	body.single-product .nxsp-page {
		padding: 18px 15px 50px;
	}

	body.single-product .nxsp-hero {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	body.single-product .nxsp-main-image-box,
	body.single-product .nxsp-main-image {
		height: 420px;
		min-height: 420px;
	}

	body.single-product .nxsp-info-column {
		padding: 22px 20px;
	}

	body.single-product .nxsp-product-title {
		font-size: 30px;
	}

	body.single-product .nxsp-trust-grid {
		grid-template-columns: 1fr;
		gap: 13px;
	}

	body.single-product .nxsp-tabs {
		padding: 22px 18px;
	}

	body.single-product .related.products {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575px) {

	body.single-product .nxsp-page {
		padding-left: 12px;
		padding-right: 12px;
	}

	body.single-product .nxsp-main-image-box,
	body.single-product .nxsp-main-image {
		height: 340px;
		min-height: 340px;
	}

	body.single-product .nxsp-gallery-thumbs {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
	}

	body.single-product .nxsp-info-column {
		padding: 20px 16px;
	}

	body.single-product .nxsp-product-title {
		font-size: 26px;
	}

	body.single-product .nxsp-short-description {
		font-size: 14px;
	}

	body.single-product .nxsp-purchase .variations tr {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	body.single-product .nxsp-tabs {
		padding: 18px 14px;
	}

	body.single-product .nxsp-tabs ul.tabs {
		gap: 6px !important;
	}

	body.single-product .nxsp-tabs ul.tabs li a {
		padding: 8px 11px !important;
		font-size: 10px !important;
	}

	body.single-product .nxsp-tabs .woocommerce-Tabs-panel {
		font-size: 13px;
	}

	body.single-product .related.products {
		margin-top: 40px !important;
		padding-bottom: 50px !important;
	}

	body.single-product .related.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}

	body.single-product .related.products ul.products li.product img {
		height: 160px !important;
		padding: 8px !important;
	}

	body.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
		height: 38px !important;
		min-height: 38px !important;

		padding: 10px 7px 0 !important;

		font-size: 11px !important;
		line-height: 1.35 !important;
	}

	body.single-product .related.products ul.products li.product .entry-meta {
		margin-top: 7px !important;
		padding: 0 7px !important;
	}

	body.single-product .related.products ul.products li.product .entry-meta .meta-categories a {
		font-size: 8px !important;
		line-height: 1.4 !important;
	}
}

/* =========================================================
   390px
   ========================================================= */

@media (max-width: 390px) {

	body.single-product .nxsp-page {
		padding-left: 10px;
		padding-right: 10px;
	}

	body.single-product .nxsp-main-image-box,
	body.single-product .nxsp-main-image {
		height: 300px;
		min-height: 300px;
	}

	body.single-product .nxsp-product-title {
		font-size: 24px;
	}

	body.single-product .related.products ul.products li.product img {
		height: 145px !important;
	}
}

/* =========================================================
   360px
   ========================================================= */

@media (max-width: 360px) {

	body.single-product .nxsp-info-column {
		padding: 18px 14px;
	}

	body.single-product .nxsp-main-image-box,
	body.single-product .nxsp-main-image {
		height: 270px;
		min-height: 270px;
	}
}


/* Fix Related Product Title Clipping */

body.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
	height: auto !important;
	min-height: 58px !important;
	padding: 12px 12px 6px !important;
	line-height: 1.4 !important;
}

@media (max-width: 575px) {
	body.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
		min-height: 48px !important;
		padding: 9px 8px 5px !important;
	}
}