/* Single product page. */

.lv-product-page { padding-block: 32px var(--lv-space); }
.lv-product-page .lv-breadcrumbs { margin-bottom: 24px; }

.lv-product__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

/* ---------- Gallery ---------- */
.lv-product__gallery { position: sticky; top: 96px; }
.lv-product__gallery .woocommerce-product-gallery { position: relative; }
.lv-product__gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.lv-product__gallery .woocommerce-product-gallery__image {
	border-radius: var(--lv-radius);
	overflow: hidden;
	background: var(--lv-surface);
}
.lv-product__gallery .woocommerce-product-gallery__image img { width: 100%; }
/* Vertical thumbnail rail on the left of the main image (design). */
.lv-product__gallery .woocommerce-product-gallery {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 16px;
	align-items: start;
}
.lv-product__gallery .woocommerce-product-gallery__wrapper { grid-column: 2; grid-row: 1; }
.lv-product__gallery .flex-control-thumbs {
	grid-column: 1;
	grid-row: 1;
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 0;
	list-style: none;
	padding: 0;
	align-content: start;
}
.lv-product__gallery .flex-control-thumbs img {
	border-radius: calc(var(--lv-radius) * .6);
	cursor: pointer;
	opacity: .6;
	transition: opacity var(--lv-transition);
	border: 2px solid transparent;
}
.lv-product__gallery .flex-control-thumbs img.flex-active,
.lv-product__gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--lv-primary); }
.lv-product__gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--lv-bg);
	box-shadow: var(--lv-shadow-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0; /* hide WooCommerce's default 🔍 emoji */
	color: var(--lv-text);
	transition: background var(--lv-transition), color var(--lv-transition);
}
/* Clean line "zoom-in" icon (magnifier + plus) via mask, colour-controlled. */
.lv-product__gallery .woocommerce-product-gallery__trigger::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--lv-zoom-icon) center / 20px no-repeat;
	mask: var(--lv-zoom-icon) center / 20px no-repeat;
	--lv-zoom-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='11'%20cy='11'%20r='7'/%3E%3Cline%20x1='21'%20y1='21'%20x2='16.2'%20y2='16.2'/%3E%3Cline%20x1='11'%20y1='8'%20x2='11'%20y2='14'/%3E%3Cline%20x1='8'%20y1='11'%20x2='14'%20y2='11'/%3E%3C/svg%3E");
}
.lv-product__gallery .woocommerce-product-gallery__trigger:hover {
	background: var(--lv-primary);
	color: #fff;
}

/* ---------- Summary ---------- */
.lv-product__titlebar {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}
/* Title takes only its own width so the stock chip sits right beside it with a
   consistent gap — no big empty space when the name is short. */
.lv-product__titlebar .product_title { margin: 0; flex: 0 1 auto; }
.lv-product__summary .product_title {
	font-size: clamp(24px, 3vw, 34px);
	margin-bottom: 8px;
}
/* Inline stock pill next to the title (design). */
.lv-stock-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
	margin-top: 7px;
	padding: 5px 12px;
	border-radius: 999px;
	background: #e7f6ee;
	color: #1c7a49;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.lv-stock-badge svg { width: 15px; height: 15px; }
.lv-stock-badge--out { background: #fdecec; color: var(--lv-sale, #e04f4f); }
.lv-product__summary .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--lv-muted);
	margin-bottom: 6px;
}
/* Price — clearly distinct from the title (own colour weight + size). */
.lv-product__summary .price {
	font-size: 30px;
	font-weight: 800;
	font-family: var(--lv-font-heading);
	color: var(--lv-text, #141414) !important;
	display: block;
	margin: 4px 0 18px;
	letter-spacing: -0.01em;
}
.lv-product__summary .price del { color: var(--lv-muted); font-weight: 500; font-size: 20px; margin-right: 8px; opacity: .8; }
.lv-product__summary .price ins { text-decoration: none; color: var(--lv-sale); font-weight: 800; }
.lv-product__summary .woocommerce-product-details__short-description {
	color: var(--lv-muted);
	margin-bottom: 20px;
}

.lv-product__highlights {
	list-style: none;
	display: grid;
	gap: 8px;
	margin: 0 0 22px;
	font-size: 14px;
}
.lv-product__highlights li { display: flex; gap: 10px; align-items: center; }
.lv-product__highlights svg { color: var(--lv-primary); flex-shrink: 0; }

/* Variations */
.lv-product__summary .variations { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.lv-product__summary .variations th { text-align: left; padding: 8px 0; font-size: 14px; }
.lv-product__summary .variations td { padding: 8px 0; }
.lv-product__summary .reset_variations { font-size: 13px; color: var(--lv-muted); }

/* Quantity + add to cart */
.lv-product__summary form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	margin-bottom: 22px;
}
.lv-product__summary form.cart .quantity {
	display: inline-flex;
	align-items: stretch;
	border: 1.5px solid var(--lv-border);
	border-radius: var(--lv-btn-radius);
	overflow: hidden;
}
.lv-product__summary form.cart .quantity input {
	width: 46px;
	border: 0;
	text-align: center;
	font-weight: 600;
	padding: 0;
	box-shadow: none !important;
	-moz-appearance: textfield;
	appearance: textfield;
}
.lv-product__summary form.cart .quantity input::-webkit-outer-spin-button,
.lv-product__summary form.cart .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* +/- steppers injected by product.js. */
.lv-qty-btn {
	align-self: stretch;
	width: 40px;
	border: 0;
	background: none;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: var(--lv-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color var(--lv-transition), background var(--lv-transition);
}
.lv-qty-btn:hover { color: var(--lv-primary); background: var(--lv-surface); }
.lv-product__summary form.cart .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 150px;
	background: var(--lv-primary);
	color: #fff;
	border: 0;
	border-radius: var(--lv-btn-radius);
	padding: 12px 22px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all var(--lv-transition);
}
.lv-product__summary form.cart .single_add_to_cart_button:hover { filter: brightness(1.08); box-shadow: var(--lv-shadow-md); }
/* "Buy Now" sits beside "Add to cart" (compact, equal width). Same brand
   colours — only size + alignment differ from the old full-width version. */
.lv-product__summary form.cart .lv-product__buynow {
	flex: 1 1 auto;
	min-width: 150px;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--lv-btn-radius);
}

.lv-product__summary .product_meta {
	display: grid;
	gap: 6px;
	font-size: 13px;
	color: var(--lv-muted);
	padding-top: 18px;
	border-top: 1px solid var(--lv-border);
	margin-bottom: 18px;
}
.lv-product__summary .product_meta a { color: var(--lv-text); }
.lv-product__summary .product_meta a:hover { color: var(--lv-primary); }

.lv-product__trust {
	list-style: none;
	display: grid;
	gap: 10px;
	background: var(--lv-surface);
	border-radius: var(--lv-radius);
	padding: 16px 18px;
	font-size: 14px;
	margin-bottom: 18px;
}
.lv-product__trust li { display: flex; align-items: center; gap: 10px; }
.lv-product__trust svg { color: var(--lv-primary); flex-shrink: 0; }

.lv-product__links { display: flex; gap: 22px; margin-bottom: 18px; }
.lv-product__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 0;
	background: none;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--lv-text);
	cursor: pointer;
	transition: color var(--lv-transition);
}
.lv-product__link:hover { color: var(--lv-muted); }
.lv-product__link.is-active { color: var(--lv-sale); }

.lv-product__share {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 13px;
	color: var(--lv-muted);
}
/* Icon-only share buttons — each in its own brand colour (icons use currentColor). */
.lv-product__share a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--lv-border, #dfe0df);
	color: var(--brand, var(--lv-text));
	transition: background var(--lv-transition), color var(--lv-transition), border-color var(--lv-transition);
}
.lv-product__share a[href*="wa.me"], .lv-product__share a[href*="whatsapp"] { --brand: #25D366; }
.lv-product__share a[href*="facebook"] { --brand: #1877F2; }
.lv-product__share a[href*="pinterest"] { --brand: #E60023; }
.lv-product__share a[href*="instagram"] { --brand: #E4405F; }
.lv-product__share a:hover { background: var(--brand, var(--lv-text)); color: #fff; border-color: var(--brand, var(--lv-text)); }
.lv-product__share a svg { width: 18px; height: 18px; }

/* ---------- Tabs (centered uppercase, underline active — design) ---------- */
.lv-product__sections { margin-top: var(--lv-space); }
.woocommerce-tabs .tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	border-bottom: 1px solid var(--lv-border);
	margin-bottom: 36px;
}
.woocommerce-tabs .tabs li a {
	display: block;
	padding: 14px 22px;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--lv-muted);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
.woocommerce-tabs .tabs li.active a { color: var(--lv-text); border-color: var(--lv-text); }
.woocommerce-tabs .panel { max-width: 1100px; margin-inline: auto; color: var(--lv-muted); }
.woocommerce-tabs .panel h2:first-child { display: none; }

/* Description tab as 3 columns (design). */
.lv-desc-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.lv-desc-col h3 { font-size: 17px; font-weight: 600; color: var(--lv-text); margin-bottom: 14px; }
.lv-desc-col p { font-size: 14px; line-height: 1.7; }
.lv-desc-list { list-style: none; display: grid; gap: 10px; }
.lv-desc-list li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; }
.lv-desc-list li::before { content: "›"; position: absolute; left: 4px; color: var(--lv-text); font-weight: 700; }
@media (max-width: 768px) { .lv-desc-cols { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Select Size pills (plugin) ---------- */
.lv-size-select { margin-bottom: 18px; }
.lv-size-select__label {
	display: block;
	font-weight: 500;
	font-size: 14px;
	margin-bottom: 10px;
	color: var(--lv-text);
}
.lv-size-select__label .lv-req { color: var(--lv-sale, #e04f4f); }
.lv-size-select__error { color: var(--lv-sale, #e04f4f); font-size: 13px; font-weight: 500; margin: 8px 0 0; }
.lv-size-select__error[hidden] { display: none; }
/* Highlight the pills when the shopper tries to add without choosing. */
.lv-size-select:has([data-lv-size-error]:not([hidden])) .lv-pills { outline: 1.5px solid var(--lv-sale, #e04f4f); outline-offset: 6px; border-radius: 6px; }

/* ---------- Customize Your Order field (plugin) ---------- */
.lv-custom-note { width: 100%; margin-bottom: 4px; }
.lv-custom-note label {
	font-weight: 500;
	font-size: 14px;
	display: block;
	margin-bottom: 6px;
	color: var(--lv-text);
}
.lv-custom-note textarea { border-radius: 10px; resize: vertical; }

/* ---------- Variation pills (size selector — design) ---------- */
.lv-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.lv-pills button {
	border: 1.5px solid var(--lv-border);
	background: var(--lv-bg);
	border-radius: 999px;
	padding: 9px 18px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--lv-transition);
}
.lv-pills button:hover { border-color: var(--lv-text); }
.lv-pills button.is-active { background: var(--lv-text); border-color: var(--lv-text); color: #fff; }
.lv-pills button:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
form.cart .variations select.lv-pills-replaced { display: none; }
form.cart .variations th { font-weight: 600; }

/* The stock now lives in the title bar (.lv-stock-badge); hide Woo's default
   in-form stock line so it isn't shown twice. */
.lv-product__summary p.stock,
.lv-product__summary form.cart .stock { display: none; }

/* ---------- Related / upsell rows ---------- */
.related.products, .upsells.products, .lv-product-section { margin-top: var(--lv-space); }
.related.products > h2, .upsells.products > h2 {
	font-size: clamp(22px, 3vw, 30px);
	margin-bottom: 24px;
}
.related.products ul.products, .upsells.products ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px 20px;
	list-style: none;
}
.related.products ul.products li, .upsells.products ul.products li { margin: 0; }

/* ---------- Reviews ---------- */
#reviews .commentlist { list-style: none; display: grid; gap: 18px; }
#reviews .comment_container {
	display: flex;
	gap: 14px;
	background: var(--lv-surface);
	border-radius: var(--lv-radius);
	padding: 18px;
}
#reviews .comment_container img.avatar { border-radius: 50%; width: 44px; height: 44px; }
#reviews .comment-form { display: grid; gap: 14px; max-width: 640px; }
/* Branded review submit button (was an unstyled browser button). */
#reviews .comment-form .form-submit { margin: 6px 0 0; }
#reviews .comment-form input[type="submit"],
#reviews .comment-form button[type="submit"],
#reviews #submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	justify-self: start;
	background: var(--lv-primary);
	color: #fff;
	border: 1.5px solid transparent;
	border-radius: var(--lv-btn-radius);
	padding: 13px 34px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	transition: all var(--lv-transition);
}
#reviews .comment-form input[type="submit"]:hover,
#reviews .comment-form button[type="submit"]:hover,
#reviews #submit:hover { filter: brightness(1.08); box-shadow: var(--lv-shadow-md); }

/* "Save my name…" consent: checkbox inline-left of its label (was stacked). */
#reviews .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
}
#reviews .comment-form-cookies-consent input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	flex-shrink: 0;
	accent-color: var(--lv-primary);
}
#reviews .comment-form-cookies-consent label {
	display: inline;
	margin: 0;
	font-weight: 400;
	font-size: 14px;
	color: var(--lv-muted);
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.4;
}

/* Read-only star rating (WooCommerce outputs width-% based .star-rating).
   The theme dequeues Woo's CSS, so re-implement the stars with unicode. */
.star-rating {
	position: relative;
	display: inline-block;
	width: 6.4em;
	height: 1.2em;
	font-size: 15px;
	line-height: 1.2;
	font-family: Arial, sans-serif;
	overflow: hidden;
	vertical-align: middle;
}
.star-rating::before {
	content: "★★★★★";
	position: absolute;
	left: 0;
	top: 0;
	letter-spacing: .1em;
	color: #d8d8d8;
}
.star-rating span {
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
	white-space: nowrap;
	padding-top: 1.5em; /* hide the "N of 5" text */
}
.star-rating span::before {
	content: "★★★★★";
	position: absolute;
	left: 0;
	top: 0;
	letter-spacing: .1em;
	color: #f5a623;
}

/* Interactive star selector in the review form (WooCommerce .stars markup).
   Row-reverse lets `:hover ~ a` fill left→right without JS. */
.comment-form-rating label { display: block; margin-bottom: 6px; }
p.stars { margin: 0 0 4px; }
p.stars > span { display: inline-flex; flex-direction: row-reverse; }
p.stars a {
	position: relative;
	width: 1.4em;
	height: 1.4em;
	font-size: 26px;
	line-height: 1.4;
	text-indent: -9999px;
	overflow: hidden;
	text-decoration: none;
}
p.stars a::before {
	content: "★";
	position: absolute;
	inset: 0;
	text-indent: 0;
	text-align: center;
	color: #d8d8d8;
	transition: color .12s ease;
}
p.stars a:hover::before,
p.stars a:hover ~ a::before { color: #f5a623; }
p.stars.selected a.active::before,
p.stars.selected a.active ~ a::before { color: #f5a623; }
p.stars.selected a:not(.active)::before { color: #d8d8d8; }

/* ---------- Sticky ATC bar ---------- */
.lv-sticky-atc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--lv-bg);
	border-top: 1px solid var(--lv-border);
	box-shadow: 0 -8px 28px rgb(16 24 40 / .08);
	z-index: 80;
	transform: translateY(100%);
	transition: transform .3s ease;
}
.lv-sticky-atc.is-visible { transform: translateY(0); }
.lv-sticky-atc[hidden] { display: block; visibility: hidden; }
.lv-sticky-atc.is-visible[hidden] { visibility: visible; }
.lv-sticky-atc__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 10px;
}
.lv-sticky-atc__info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lv-sticky-atc__info img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.lv-sticky-atc__title {
	margin: 0;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 340px;
}
.lv-sticky-atc__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.lv-product__layout { grid-template-columns: 1fr; }
	.lv-product__gallery { position: static; }
	.related.products ul.products, .upsells.products ul.products { grid-template-columns: repeat(2, 1fr); }
	.lv-sticky-atc__info { display: none; }
	.lv-sticky-atc__actions { width: 100%; }
	.lv-sticky-atc__actions .lv-btn { flex: 1; }
}

/* Phones: move the vertical thumbnail rail below the main image as a horizontal
   strip — a 110px side rail steals a third of the screen otherwise. Also let the
   add-to-cart row and tabs breathe. */
@media (max-width: 600px) {
	.lv-product__gallery .woocommerce-product-gallery { grid-template-columns: 1fr; gap: 12px; }
	.lv-product__gallery .woocommerce-product-gallery__wrapper { grid-column: 1; grid-row: 1; }
	.lv-product__gallery .flex-control-thumbs {
		grid-column: 1;
		grid-row: 2;
		grid-template-columns: repeat(5, 1fr);
		gap: 8px;
	}
	.lv-product__summary form.cart .single_add_to_cart_button,
	.lv-product__summary form.cart .lv-product__buynow { min-width: 0; width: 100%; }
	.lv-product__summary form.cart .quantity { width: 100%; justify-content: space-between; }
	.lv-product__summary form.cart .quantity input { flex: 1; width: auto; }
	.woocommerce-tabs .tabs li a { padding: 12px 14px; }
	.lv-product__links { flex-wrap: wrap; gap: 14px; }
}
