/* Luniva — single product page. Builds on home.css (tokens, buttons, cards) and stays scoped under .lnv. */

.lnv-pd-page {
	padding-top: clamp(14px, 2vw, 28px);
}

/* ---- Notices (added to cart, errors) ---- */

.lnv-pd__notices .woocommerce-notices-wrapper:empty {
	display: none;
}

.lnv .lnv-pd__notices .woocommerce-message,
.lnv .lnv-pd__notices .woocommerce-info,
.lnv .lnv-pd__notices .woocommerce-error {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin: 0 0 16px;
	padding: 14px 20px;
	border: 1px solid #cfe5d8;
	border-radius: 14px;
	background: #eef6f1;
	color: var(--lnv-text);
	font-size: 16px;
	list-style: none;
}

.lnv .lnv-pd__notices .woocommerce-error {
	border-color: #f0c9cc;
	background: #fcf0f1;
}

.lnv .lnv-pd__notices .woocommerce-message::before,
.lnv .lnv-pd__notices .woocommerce-info::before,
.lnv .lnv-pd__notices .woocommerce-error::before {
	content: none;
}

.lnv .lnv-pd__notices .button {
	order: 2;
	float: none;
	margin: 0;
	padding: 8px 18px 6px;
	border: 1px solid var(--lnv-text);
	border-radius: 999px;
	background: transparent;
	color: var(--lnv-text);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.3;
}

.lnv .lnv-pd__notices .button:hover {
	background: var(--lnv-text);
	color: #fff;
}

/* ---- Layout ---- */

.lnv .lnv-pd {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	align-items: start;
	gap: clamp(28px, 5vw, 80px);
	padding-bottom: clamp(56px, 7vw, 96px);
}

/* ---- Gallery ---- */

.lnv-pd__gallery {
	position: sticky;
	top: 24px;
}

.lnv-pd__stage {
	position: relative;
	aspect-ratio: 1;
	border-radius: 22px;
	overflow: hidden;
	background: #eeeeec;
}

.lnv .lnv-pd__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lnv-pd__flag {
	position: absolute;
	top: 16px;
	inset-inline-start: 16px;
	padding: 7px 14px 5px;
	border-radius: 999px;
	background: var(--lnv-ink);
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
}

.lnv-pd__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.lnv .lnv-pd__thumb {
	appearance: none;
	width: 76px;
	height: 76px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 12px;
	overflow: hidden;
	background: #eeeeec;
	cursor: pointer;
	box-shadow: none;
	transition: border-color .2s;
}

.lnv .lnv-pd__thumb:hover,
.lnv .lnv-pd__thumb.is-active {
	border-color: var(--lnv-gold);
}

.lnv .lnv-pd__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---- Summary ---- */

.lnv-pd__summary {
	padding-top: clamp(0px, 1.5vw, 20px);
}

.lnv-pd__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-bottom: 14px;
}

.lnv .lnv-pd__meta .lnv-eyebrow {
	margin: 0;
}

.lnv .lnv-pd__meta a.lnv-eyebrow:hover {
	color: var(--lnv-red-dark);
}

.lnv-pd__code {
	padding: 4px 12px 2px;
	border: 1px solid rgba(201, 164, 92, .55);
	border-radius: 999px;
	color: #a07f38;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1.5;
	direction: ltr;
	unicode-bidi: isolate;
}

.lnv .lnv-pd__title {
	font-family: var(--lnv-display);
	font-size: clamp(32px, 3.6vw, 50px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.005em;
	color: var(--lnv-text);
	text-transform: capitalize;
	text-wrap: balance;
}

.lnv:lang(ar) .lnv-pd__title {
	font-size: clamp(28px, 3.2vw, 44px);
	line-height: 1.3;
	letter-spacing: 0;
}

.lnv-pd__pricing {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 16px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--lnv-line);
}

.lnv-pd__price {
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--lnv-text);
}

.lnv-pd__price del {
	margin-inline-end: 8px;
	color: var(--lnv-muted);
	font-size: .7em;
	font-weight: 400;
}

.lnv-pd__price ins {
	color: var(--lnv-red);
	text-decoration: none;
}

.lnv-pd__stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.3;
}

.lnv-pd__stock::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.lnv-pd__stock.is-in {
	color: #1c7a4b;
}

.lnv-pd__stock.is-out {
	color: var(--lnv-muted);
}

/* ---- Description ---- */

.lnv-pd__desc {
	margin-top: 22px;
	color: #3b3936;
	font-size: 17.5px;
}

.lnv .lnv-pd__desc p + p,
.lnv .lnv-pd__details-text p + p {
	margin-top: .8em;
}

.lnv-pd__desc.is-clamped .lnv-pd__desc-text {
	max-height: 10.4em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 55%, transparent);
	mask-image: linear-gradient(#000 55%, transparent);
}

.lnv .lnv-pd__more {
	appearance: none;
	margin-top: 10px;
	padding: 0 0 2px;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	background: none;
	color: var(--lnv-text);
	font-family: var(--lnv-body);
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	box-shadow: none;
}

.lnv .lnv-pd__more:hover {
	background: none;
	color: var(--lnv-red);
}

/* ---- Add to cart, directly under the description ---- */

.lnv-pd__buy {
	display: grid;
	gap: 12px;
	margin-top: 28px;
}

.lnv .lnv-pd__buy form.cart {
	display: flex;
	align-items: stretch;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.lnv .lnv-pd__buy .stock {
	display: none;
}

.lnv .lnv-pd__buy .quantity {
	direction: ltr;
	display: inline-flex;
	align-items: center;
	flex: none;
	float: none;
	height: 58px;
	margin: 0;
	padding: 0 6px;
	border: 1px solid var(--lnv-text);
	border-radius: 999px;
	background: #fff;
}

.lnv .lnv-pd__buy .quantity:has(input[type="hidden"]) {
	display: none;
}

.lnv .lnv-pd__buy .quantity input.qty {
	width: 44px;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--lnv-text);
	font-family: var(--lnv-body);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.lnv .lnv-pd__buy .quantity input.qty::-webkit-outer-spin-button,
.lnv .lnv-pd__buy .quantity input.qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.lnv .lnv-qty__btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--lnv-text);
	cursor: pointer;
	box-shadow: none;
	transition: background-color .2s;
}

.lnv .lnv-qty__btn:hover {
	background: var(--lnv-sand);
	color: var(--lnv-text);
}

/* The theme paints every .button.alt in its own olive green with !important-level rules, hence the weight here. */
.lnv .lnv-pd__buy form.cart button.single_add_to_cart_button {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	margin: 0;
	padding: 14px 26px 12px;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--lnv-red) !important;
	color: #fff !important;
	font-family: var(--lnv-body);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
	opacity: 1;
	transition: background-color .25s var(--lnv-ease), transform .25s var(--lnv-ease);
}

.lnv:lang(ar) .lnv-pd__buy form.cart button.single_add_to_cart_button {
	padding-block: 12px;
	font-weight: 700;
	letter-spacing: 0;
}

.lnv .lnv-pd__buy form.cart button.single_add_to_cart_button:hover {
	background: var(--lnv-red-dark) !important;
	transform: translateY(-2px);
}

.lnv .lnv-pd__buy form.cart button.single_add_to_cart_button.is-loading {
	opacity: .75;
	pointer-events: none;
}

.lnv .lnv-pd__buy form.cart button.single_add_to_cart_button.is-added {
	background: var(--lnv-teal) !important;
}

.lnv .lnv-btn--wa {
	width: 100%;
	min-height: 54px;
	border-color: #1fa855;
	color: #13743c;
}

.lnv .lnv-btn--wa:hover {
	background: #1fa855;
	color: #fff;
}

.lnv .lnv-pd__viewcart {
	justify-self: start;
}

/* ---- Facts under the buy block ---- */

.lnv .lnv-pd__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid var(--lnv-line);
}

.lnv-pd__facts li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.lnv-pd__facts .lnv-ico {
	width: 24px;
	height: 24px;
	margin-top: 1px;
	color: var(--lnv-gold);
}

.lnv-pd__facts strong {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.lnv-pd__facts span {
	display: block;
	margin-top: 2px;
	color: var(--lnv-muted);
	font-size: 13.5px;
	line-height: 1.45;
}

/* ---- Full description ---- */

.lnv-pd__details {
	padding-block: clamp(48px, 6vw, 84px);
	border-top: 1px solid var(--lnv-line);
	background: #fff;
}

.lnv-pd__details .lnv-title {
	font-size: clamp(28px, 3vw, 40px);
}

.lnv-pd__details-text {
	max-width: 72ch;
	margin-top: 20px;
	color: #3b3936;
	font-size: 17.5px;
}

.lnv .lnv-pd__details-text h3,
.lnv .lnv-pd__details-text h4 {
	margin-top: 1.4em;
	margin-bottom: .4em;
	font-family: var(--lnv-body);
	font-size: 19px;
	font-weight: 600;
	color: var(--lnv-text);
}

.lnv .lnv-pd__details-text ul,
.lnv .lnv-pd__details-text ol,
.lnv .lnv-pd__desc-text ul,
.lnv .lnv-pd__desc-text ol {
	margin-top: .6em;
	padding-inline-start: 1.3em;
	list-style: disc;
}

.lnv .lnv-pd__details-text ol,
.lnv .lnv-pd__desc-text ol {
	list-style: decimal;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
	.lnv .lnv-pd {
		grid-template-columns: 1fr;
	}

	.lnv-pd__gallery {
		position: static;
	}

	.lnv-pd__stage {
		border-radius: 18px;
	}
}

@media (max-width: 640px) {
	.lnv-pd__price {
		font-size: 26px;
	}

	.lnv-pd__desc,
	.lnv-pd__details-text {
		font-size: 16.5px;
	}

	.lnv .lnv-pd__buy .quantity {
		height: 54px;
		padding: 0 4px;
	}

	.lnv .lnv-pd__buy .quantity input.qty {
		width: 34px;
	}

	.lnv .lnv-qty__btn {
		width: 38px;
		height: 38px;
	}

	.lnv .lnv-pd__buy form.cart button.single_add_to_cart_button {
		min-height: 54px;
		padding-inline: 16px;
		font-size: 16px;
	}

	.lnv .lnv-pd__facts {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}
