/* Nata Jewels product page. All rules scoped to #npdp (or .npdp-lb for the lightbox). Author: Himanshu */

#npdp {
	--np-purple: #7b4fa8;
	--np-purple-dark: #6a479b;
	--np-deep: #2b1a6b;
	--np-ink: #4b4350;
	--np-text: #4a4a4a;
	--np-muted: #7a7480;
	--np-line: #8d8794;
	--np-line-soft: #e6e3ea;
	--np-olive: #7c8b17;
	font-family: "Open Sans", Arial, sans-serif;
	color: var(--np-text);
	background: transparent;
	padding: 40px 0 90px;
	box-sizing: border-box;
}
#npdp *, #npdp *::before, #npdp *::after { box-sizing: border-box; }
#npdp a { color: var(--np-purple); text-decoration: none; transition: color .2s; }
#npdp a:hover { color: var(--np-deep); }
#npdp img { max-width: 100%; height: auto; display: block; }
#npdp button { font-family: inherit; }

#npdp .npdp-wrap { width: 100%; max-width: 1254px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top grid ---------- */
#npdp .npdp-grid {
	display: grid;
	grid-template-columns: minmax(0, 601fr) minmax(0, 549fr);
	gap: 57px;
	align-items: start;
}

/* Gallery */
#npdp .npdp-stage {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: #0a0a0c;
	aspect-ratio: 4 / 5;
}
#npdp .npdp-main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: zoom-in;
}
#npdp .npdp-zoom {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
#npdp .npdp-zoom:hover { background: #f3eefa; color: var(--np-purple); }
#npdp .npdp-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
#npdp .npdp-thumb {
	width: 76px;
	height: 76px;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	padding: 0;
	background: #0a0a0c;
	cursor: pointer;
	opacity: .7;
	transition: opacity .2s, border-color .2s;
}
#npdp .npdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
#npdp .npdp-thumb:hover, #npdp .npdp-thumb.is-active { opacity: 1; border-color: var(--np-purple); }

/* Summary */
#npdp .npdp-summary { padding: 36px 22px 0 0; }
#npdp .npdp-badge {
	display: inline-block;
	padding: 6px 20px;
	border-radius: 999px;
	background: var(--np-purple-dark);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	line-height: 1.5;
}
#npdp .npdp-title {
	margin: 22px 0 0;
	padding: 0 0 22px;
	border-bottom: 1px solid var(--np-line);
	font-family: "Playfair Display", Georgia, serif;
	font-size: 38px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--np-ink);
	letter-spacing: 0;
}
#npdp .npdp-price {
	margin: 26px 0 22px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 30px;
	font-weight: 600;
	color: var(--np-deep);
	line-height: 1.2;
}
#npdp .npdp-price .price { font: inherit; color: inherit; }
#npdp .npdp-price del { opacity: .5; font-size: .75em; margin-right: 8px; }
#npdp .npdp-price ins { text-decoration: none; }
#npdp .npdp-price .woocommerce-Price-amount { color: inherit; }
#npdp .npdp-short { font-size: 17px; line-height: 1.7; color: #444; }
#npdp .npdp-short p { margin: 0; }

#npdp .npdp-stock { margin: 22px 0 0; }
#npdp .npdp-stock .stock,
#npdp .woocommerce-variation-availability .stock {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--np-olive);
}
#npdp .npdp-stock .out-of-stock,
#npdp .woocommerce-variation-availability .out-of-stock { color: #b3261e; }

/* Add to cart row */
#npdp .npdp-cart {
	margin-top: 30px;
	padding-bottom: 30px;
	border-bottom: 1px solid var(--np-line);
}
#npdp .npdp-cart form.cart:not(.variations_form),
#npdp .npdp-cart .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
}
#npdp .npdp-cart form.cart { margin: 0; }
#npdp .npdp-cart .tinv-wraper { order: -1; margin: 0 !important; width: auto !important; display: inline-flex !important; align-items: center; }
#npdp .npdp-cart .tinv-wraper .tinvwl_add_to_wishlist_button { color: var(--np-purple) !important; }
#npdp .npdp-cart .tinvwl_add_to_wishlist-text { display: none !important; }
#npdp .npdp-cart .quantity input.qty {
	width: 64px;
	height: 46px;
	border: 1px solid #d9d4e0;
	border-radius: 6px;
	text-align: center;
	font-size: 16px;
}
#npdp .npdp-cart .single_add_to_cart_button {
	background: var(--np-purple) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 6px !important;
	padding: 13px 18px !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	cursor: pointer;
	transition: background .2s;
}
#npdp .npdp-cart .single_add_to_cart_button:hover { background: var(--np-deep) !important; }
#npdp .npdp-cart .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }

/* Variations */
#npdp .npdp-cart table.variations { width: 100%; border: 0; margin: 0 0 18px; border-collapse: collapse; }
#npdp .npdp-cart table.variations td,
#npdp .npdp-cart table.variations th { border: 0; padding: 6px 0; text-align: left; vertical-align: middle; background: transparent; }
#npdp .npdp-cart table.variations th.label { width: 120px; font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--np-muted); }
#npdp .npdp-cart table.variations select {
	width: 100%;
	max-width: 320px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #d9d4e0;
	border-radius: 6px;
	background: #fff;
	font-size: 15px;
	color: var(--np-text);
}
#npdp .npdp-cart .reset_variations { display: inline-block; margin-left: 10px; font-size: 13px; }
#npdp .npdp-cart .woocommerce-variation-price { margin-bottom: 8px; }
#npdp.npdp-sync .npdp-cart .woocommerce-variation-price { display: none; }
#npdp .npdp-cart .woocommerce-variation { margin: 0 0 14px; }
#npdp .npdp-cart .single_variation_wrap { margin-top: 4px; }
#npdp .npdp-cart .woocommerce-variation-price .price { font-family: "Playfair Display", Georgia, serif; font-weight: 600; color: var(--np-deep); font-size: 22px; }
#npdp .npdp-cart .woocommerce-variation-description p { margin: 0 0 10px; }

/* Meta table */
#npdp .npdp-meta { position: relative; margin-top: 52px; border-top: 1px solid var(--np-line-soft); }
#npdp .npdp-meta::before {
	content: "";
	position: absolute;
	top: -2px;
	left: 0;
	width: 46px;
	height: 3px;
	background: var(--np-purple);
}
#npdp .npdp-meta-row {
	display: flex;
	align-items: baseline;
	padding: 20px 0;
	border-bottom: 1px solid var(--np-line-soft);
}
#npdp .npdp-meta-label {
	flex: 0 0 126px;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--np-muted);
}
#npdp .npdp-meta-value { font-size: 16px; color: #222; line-height: 1.6; }
#npdp .npdp-meta-value a { color: var(--np-purple); }

/* Share */
#npdp .npdp-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 70px; }
#npdp .npdp-share-label { font-size: 14px; font-weight: 700; color: #222; margin-right: 6px; }
#npdp .npdp-share-btn {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #f1eff4;
	color: #222 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	transition: background .2s, color .2s;
}
#npdp .npdp-share-btn:hover { background: var(--np-purple); color: #fff !important; }
#npdp .npdp-share-btn.is-done { background: var(--np-olive); color: #fff !important; }

/* ---------- Tabs ---------- */
#npdp .npdp-tabs-section { margin-top: 80px; }
#npdp .npdp-tabs { margin: 0 -9px; }
#npdp .npdp-tablist { display: flex; gap: 2px; padding-left: 46px; position: relative; z-index: 1; }
#npdp .npdp-tab {
	border: 0;
	background: #f4f2f7;
	color: var(--np-deep);
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	border-radius: 8px 8px 0 0;
	line-height: 1.3;
	transition: background .2s, color .2s;
}
#npdp .npdp-tab:hover { background: #ebe6f3; }
#npdp .npdp-tab.is-active { background: #fff; color: var(--np-purple); box-shadow: 0 -6px 18px rgba(60, 40, 100, .06); }
#npdp .npdp-panels {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 14px 40px rgba(60, 40, 100, .10);
	padding: 28px 50px 56px;
	margin-top: -1px;
}
#npdp .npdp-panel[hidden] { display: none; }
#npdp .npdp-panel h2,
#npdp .npdp-panel .woocommerce-Reviews-title {
	margin: 0 0 14px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 38px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--np-ink);
}
#npdp .npdp-prose { font-size: 20px; line-height: 1.8; color: #555; }
#npdp .npdp-prose p { margin: 0 0 1em; }
#npdp .npdp-prose p:last-child { margin-bottom: 0; }
#npdp .woocommerce-product-attributes { width: 100%; border-collapse: collapse; font-size: 16px; }
#npdp .woocommerce-product-attributes th,
#npdp .woocommerce-product-attributes td { padding: 14px 0; border: 0; border-bottom: 1px solid var(--np-line-soft); text-align: left; background: transparent; }
#npdp .woocommerce-product-attributes th { width: 200px; font-weight: 600; color: var(--np-ink); }
#npdp .woocommerce-product-attributes td p { margin: 0; }

/* Reviews */
#npdp #reviews { font-size: 16px; line-height: 1.7; }
#npdp #reviews ol.commentlist { list-style: none; padding: 0; margin: 0 0 24px; }
#npdp #reviews ol.commentlist li { margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--np-line-soft); }
#npdp #reviews .comment-reply-title { font-family: "Playfair Display", Georgia, serif; font-size: 24px; color: var(--np-ink); display: block; margin-bottom: 10px; }
#npdp #reviews input[type="text"],
#npdp #reviews input[type="email"],
#npdp #reviews textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d9d4e0;
	border-radius: 6px;
	font-size: 15px;
	background: #fff;
}
#npdp #reviews .form-submit input[type="submit"] {
	background: var(--np-purple);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
#npdp #reviews .form-submit input[type="submit"]:hover { background: var(--np-deep); }
#npdp #reviews .star-rating { color: #e0a82e; }
#npdp #reviews p.stars a { color: #e0a82e; }

/* ---------- Related ---------- */
#npdp .npdp-related { margin-top: 84px; }
#npdp .npdp-related-title {
	margin: 0 0 34px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 38px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--np-ink);
}
#npdp .npdp-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 -16px; }
#npdp .npdp-card { padding: 0 16px; text-align: center; }
#npdp .npdp-card-img { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; background: #f1eff4; }
#npdp .npdp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
#npdp .npdp-card-img:hover img { transform: scale(1.04); }
#npdp .npdp-card-title { margin: 22px 0 12px; font-family: "Playfair Display", Georgia, serif; font-size: 20px; font-weight: 600; line-height: 1.25; }
#npdp .npdp-card-title a { color: var(--np-purple); }
#npdp .npdp-card-price { font-size: 16px; color: #444; margin-bottom: 20px; }
#npdp .npdp-card-price .woocommerce-Price-amount { color: inherit; }
#npdp .npdp-card-btn {
	display: inline-block;
	background: var(--np-purple);
	color: #fff !important;
	border: 0;
	border-radius: 6px;
	padding: 11px 16px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	transition: background .2s;
}
#npdp .npdp-card-btn:hover { background: var(--np-deep); }
#npdp .npdp-card-btn.added { display: none; }
#npdp .npdp-card .added_to_cart { display: inline-block; margin-top: 6px; font-size: 14px; }
#npdp .npdp-card-wish { margin-top: 16px; min-height: 24px; }
#npdp .npdp-card-wish .tinv-wraper { margin: 0 !important; display: inline-flex !important; width: auto !important; }
#npdp .npdp-card-wish .tinvwl_add_to_wishlist_button { color: var(--np-purple) !important; font-size: 16px; }
#npdp .npdp-card-wish .tinvwl_add_to_wishlist-text { display: inline !important; }

/* ---------- Lightbox ---------- */
.npdp-lb {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(8, 6, 14, .92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 70px;
}
.npdp-lb[hidden] { display: none; }
.npdp-lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.npdp-lb button {
	position: absolute;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.npdp-lb button:hover { background: rgba(255, 255, 255, .28); }
.npdp-lb-close { top: 20px; right: 20px; }
.npdp-lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.npdp-lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.npdp-lb.is-single .npdp-lb-nav { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	#npdp .npdp-grid { gap: 36px; }
	#npdp .npdp-title { font-size: 32px; }
	#npdp .npdp-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 900px) {
	#npdp { padding-top: 24px; }
	#npdp .npdp-grid { grid-template-columns: 1fr; }
	#npdp .npdp-summary { padding: 0; }
	#npdp .npdp-tabs { margin: 0; }
	#npdp .npdp-tablist { padding-left: 0; overflow-x: auto; }
	#npdp .npdp-tab { white-space: nowrap; }
	#npdp .npdp-panels { padding: 24px 22px 36px; }
	#npdp .npdp-panel h2,
	#npdp .npdp-related-title { font-size: 30px; }
	#npdp .npdp-prose { font-size: 17px; }
	#npdp .npdp-tabs-section { margin-top: 56px; }
	#npdp .npdp-related { margin-top: 60px; }
}
@media (max-width: 520px) {
	#npdp .npdp-wrap { padding: 0 16px; }
	#npdp .npdp-title { font-size: 28px; }
	#npdp .npdp-price { font-size: 26px; }
	#npdp .npdp-meta-label { flex-basis: 96px; }
	#npdp .npdp-share { margin-top: 40px; }
	#npdp .npdp-related-grid { margin: 0 -8px; }
	#npdp .npdp-card { padding: 0 8px; }
	#npdp .npdp-card-title { font-size: 17px; }
	.npdp-lb { padding: 60px 16px; }
}


/* ---------- Refinements ---------- */

/* In-stock text is not shown. Out-of-stock notices still are. */
#npdp .stock.in-stock,
#npdp .woocommerce-variation-availability .in-stock { display: none !important; }

/* Gallery polish */
#npdp .npdp-stage { box-shadow: 0 22px 50px -18px rgba(30, 15, 60, .35); }
@media (min-width: 901px) {
	#npdp .npdp-gallery { position: sticky; top: 100px; }
}

/* Variation pills */
#npdp .npdp-select-hidden { display: none !important; }
#npdp .npdp-cart table.variations,
#npdp .npdp-cart table.variations tbody,
#npdp .npdp-cart table.variations tr,
#npdp .npdp-cart table.variations th,
#npdp .npdp-cart table.variations td { display: block; width: 100%; }
#npdp .npdp-cart table.variations { margin: 0 0 22px; }
#npdp .npdp-cart table.variations tr { margin-bottom: 18px; }
#npdp .npdp-cart table.variations tr:last-child { margin-bottom: 0; }
#npdp .npdp-cart table.variations th.label { padding: 0 0 10px; width: 100%; }
#npdp .npdp-cart table.variations th.label label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--np-muted);
}
#npdp .npdp-picked { margin-left: 10px; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--np-deep); }
#npdp .npdp-pills { display: flex; flex-wrap: wrap; gap: 10px; }
#npdp .npdp-pill {
	min-width: 52px;
	padding: 10px 20px;
	border: 1.5px solid #ddd6e8;
	border-radius: 999px;
	background: #fff;
	color: var(--np-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s, box-shadow .2s, transform .2s;
}
#npdp .npdp-pill:hover { border-color: var(--np-purple); color: var(--np-purple); transform: translateY(-1px); }
#npdp .npdp-pill.is-active {
	background: var(--np-purple);
	border-color: var(--np-purple);
	color: #fff;
	box-shadow: 0 8px 18px -8px rgba(123, 79, 168, .75);
}
#npdp .npdp-pill.is-off {
	opacity: .38;
	cursor: not-allowed;
	text-decoration: line-through;
	background: #f6f4f9;
	transform: none;
}
#npdp .npdp-pill.is-off:hover { border-color: #ddd6e8; color: var(--np-ink); }
#npdp .npdp-pill:focus-visible,
#npdp .npdp-share-btn:focus-visible,
#npdp .npdp-tab:focus-visible,
#npdp .single_add_to_cart_button:focus-visible { outline: 2px solid var(--np-deep); outline-offset: 3px; }
#npdp .npdp-cart .reset_variations { display: inline-block; margin: 14px 0 0; font-size: 13px; font-weight: 600; text-decoration: underline; }

/* Add to cart row */
#npdp .npdp-cart .single_add_to_cart_button {
	padding: 15px 40px !important;
	box-shadow: 0 12px 24px -12px rgba(123, 79, 168, .8);
	transition: background .2s, transform .2s, box-shadow .2s;
}
#npdp .npdp-cart .single_add_to_cart_button:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(43, 26, 107, .75); }
#npdp .npdp-cart .tinv-wraper { flex: 0 0 auto; line-height: 1; }
#npdp .npdp-cart .tinv-wraper .tinvwl_add_to_wishlist_button {
	/* TI Wishlist renders this as an inline <a> with the heart in ::before, so
	   justify-content did nothing and the heart sat in the top-left corner.
	   Making it a flex box centres the heart inside the circle. */
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px !important;
	height: 48px !important;
	min-width: 48px;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	line-height: 1 !important;
	border: 1.5px solid #ddd6e8;
	border-radius: 50%;
	background: #fff;
	transition: border-color .2s, background .2s;
}
#npdp .npdp-cart .tinv-wraper .tinvwl_add_to_wishlist_button::before {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
	font-size: 20px;
}
#npdp .npdp-cart .tinv-wraper .tinvwl_add_to_wishlist_button:hover { border-color: var(--np-purple); background: #f6f1fb; }

/* Trust strip */
#npdp .npdp-trust { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; }
#npdp .npdp-trust li { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: var(--np-muted); }
#npdp .npdp-trust svg { width: 18px; height: 18px; color: var(--np-purple); flex: none; }

/* Related cards */
#npdp .npdp-card { transition: transform .3s ease; }
#npdp .npdp-card:hover { transform: translateY(-4px); }
#npdp .npdp-card-img { box-shadow: 0 14px 30px -18px rgba(30, 15, 60, .45); }

/* Below-the-fold section: skip its layout/paint work until it is near the viewport. */
#npdp .npdp-related { content-visibility: auto; contain-intrinsic-size: auto 560px; }
