/* ==================================================================
 * Single product page (inc/product-page.php, js/product-page.js)
 * Loaded only on is_product().
 * ================================================================== */

.single-product {
	--pp-blue: #0f69af;
	--pp-blue-hover: #0b5590;
	--pp-blue-tint: #eef5fb;
	--pp-border: #e6ebf0;
	--pp-border-light: #f1f1f1;
	--pp-text: #212121;
	--pp-muted: #6b7280;
	--pp-radius: 10px;
	--pp-ctl-h: 52px; /* = height of the theme's "Į krepšelį" button (17.85px padding + 14px × 1.2) */
}

/* ------------------------------------------------------------------
 * 1. Price + "Jūs sutaupote" pill
 * ------------------------------------------------------------------ */

.woocommerce.single-product div.product .summary p.price {
	display: inline-block;
	vertical-align: middle;
	margin: 0 12px 12px 0;
}

.woocommerce.single-product div.product .summary p.price del {
	color: var(--pp-muted);
	opacity: 1;
	font-size: .8em;
	font-weight: 400;
	margin-right: 6px;
}

.woocommerce.single-product div.product .summary p.price ins {
	text-decoration: none;
	font-weight: 700;
}

.single-product .summary .saving_total_price {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	vertical-align: middle;
	margin: 0 0 12px;
	padding: 5px 12px 5px 9px;
	border-radius: 999px;
	background: #fdecec;
	color: #c81e1e;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.single-product .summary .saving_total_price::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.single-product .summary .saving_total_price .amount {
	font-weight: 700;
}

/* Omnibus: "Mažiausia kaina per 30 d. iki nuolaidos: X €" under the price (inc/price-history.php). */
.single-product .summary .lv-price-lowest {
	clear: both;
	margin: -4px 0 14px;
	color: var(--pp-muted);
	font-size: 13px;
	line-height: 1.4;
}

.single-product .summary .lv-price-lowest .amount,
.single-product .summary .lv-price-lowest bdi {
	color: inherit;
	font-size: inherit;
	font-weight: 600;
}

/* Selected variation: pill + 30-day line under the variation price. */
.single-product .summary .lv-var-extra {
	margin: 8px 0 4px;
}

.single-product .summary .lv-var-extra .lv-price-lowest {
	margin: 0 0 8px;
}

.single-product .summary .lv-price-from {
	font-size: .6em;
	font-weight: 400;
	color: var(--pp-muted);
}

/* Short description starts on its own line after the price row. */
.single-product .summary .woocommerce-product-details__short-description {
	clear: both;
}

/* ------------------------------------------------------------------
 * 2. Free shipping with a code
 * ------------------------------------------------------------------ */

.single-product .pp-ship-note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 4px 0 16px;
	padding: 12px 14px;
	border: 1px solid #cfe2f3;
	border-radius: var(--pp-radius);
	background: var(--pp-blue-tint);
	color: var(--pp-text);
	font-size: 15px;
	line-height: 1.45;
}

.single-product .pp-ship-note__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: var(--pp-blue);
}

.single-product .pp-ship-note__body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	min-height: 36px;
	font-weight: 500;
}

.single-product .pp-ship-note .pp-code-chip,
.single-product .pp-ship-note .pp-code-chip:focus,
.single-product .pp-ship-note .pp-code-chip:active {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 5px 10px !important;
	border: 1px dashed var(--pp-blue) !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: var(--pp-blue) !important;
	font-family: inherit;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: .04em;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.single-product .pp-ship-note .pp-code-chip:hover {
	background: var(--pp-blue) !important;
	color: #fff !important;
}

.single-product .pp-ship-note .pp-code-chip:focus-visible {
	outline: 2px solid var(--pp-blue);
	outline-offset: 2px;
}

.single-product .pp-ship-note .pp-code-chip.is-copied {
	border-style: solid !important;
	border-color: #15803d !important;
	background: #ecfdf3 !important;
	color: #15803d !important;
}

.single-product .pp-code-chip__status {
	color: #15803d;
	font-size: 13px;
	font-weight: 600;
}

.single-product .pp-code-chip__status:empty {
	display: none;
}

/* ------------------------------------------------------------------
 * 3. Gallery: dots, arrows, counter, drag
 * ------------------------------------------------------------------ */

.single-product div.product .woocommerce-product-gallery .flex-viewport {
	margin-bottom: 0;
	border-radius: var(--pp-radius);
}

.single-product .woocommerce-product-gallery img {
	-webkit-user-drag: none;
	user-select: none;
}

@media (hover: hover) and (pointer: fine) {
	.single-product .pp-gallery--multi .flex-viewport {
		cursor: grab;
	}
	.single-product .pp-gallery.is-dragging .flex-viewport,
	.single-product .pp-gallery.is-dragging .flex-viewport a {
		cursor: grabbing;
	}
}

/* Dots */
.single-product .woocommerce-product-gallery .flex-control-paging {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	line-height: 0;
}

.single-product .woocommerce-product-gallery .flex-control-paging li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-product .woocommerce-product-gallery .flex-control-paging a {
	position: relative;
	display: block;
	width: 24px; /* hit area */
	height: 24px;
	overflow: hidden;
	color: transparent;
	font-size: 0;
	text-indent: -9999px;
}

.single-product .woocommerce-product-gallery .flex-control-paging a::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	border-radius: 999px;
	background: #c9d3dd;
	transition: background-color .2s ease, width .2s ease, margin .2s ease;
}

.single-product .woocommerce-product-gallery .flex-control-paging a:hover::after {
	background: #8fa6bb;
}

.single-product .woocommerce-product-gallery .flex-control-paging a.flex-active::after {
	width: 18px;
	margin-left: -9px;
	background: var(--pp-blue);
}

.single-product .woocommerce-product-gallery .flex-control-paging a:focus-visible {
	outline: 2px solid var(--pp-blue);
	outline-offset: -2px;
	border-radius: 6px;
}

/* Many images: counter instead of dots */
.single-product .pp-gallery--many .flex-control-paging {
	display: none;
}

.single-product .pp-gallery-counter {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 3;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(33, 33, 33, .72);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	pointer-events: none;
}

/* Arrows */
.single-product .woocommerce-product-gallery .flex-direction-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-product .woocommerce-product-gallery .flex-direction-nav li {
	margin: 0;
	list-style: none;
}

.single-product .woocommerce-product-gallery .flex-direction-nav a {
	position: absolute;
	top: calc(50% - 21px - 42px); /* centre of the photo (thumbnail row ~84px below) */
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	overflow: hidden;
	border: 1px solid var(--pp-border);
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	color: transparent;
	font-size: 0;
	text-decoration: none;
	opacity: 1;
	transition: opacity .2s ease, background-color .2s ease;
}

.single-product .woocommerce-product-gallery .flex-direction-nav a::before {
	content: "";
	width: 18px;
	height: 18px;
	background: var(--pp-text);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.single-product .woocommerce-product-gallery .flex-direction-nav .flex-prev {
	left: 12px;
}

.single-product .woocommerce-product-gallery .flex-direction-nav .flex-next {
	right: 12px;
}

.single-product .woocommerce-product-gallery .flex-direction-nav .flex-next::before {
	transform: scaleX(-1);
}

.single-product .woocommerce-product-gallery:hover .flex-direction-nav a,
.single-product .woocommerce-product-gallery .flex-direction-nav a:focus-visible {
	opacity: 1;
}

.single-product .woocommerce-product-gallery .flex-direction-nav a:hover {
	background: #fff;
}

.single-product .woocommerce-product-gallery .flex-direction-nav a:hover::before {
	background: var(--pp-blue);
}

.single-product .woocommerce-product-gallery .flex-direction-nav a:focus-visible {
	outline: 2px solid var(--pp-blue);
	outline-offset: 2px;
}

/* Endless gallery: the "disabled" end arrow wraps around (js/product-page.js), so it looks and works like the others. */
.single-product .woocommerce-product-gallery .flex-direction-nav a.flex-disabled {
	opacity: 1 !important;
	pointer-events: auto;
	cursor: pointer;
}

/* Arrows always visible; a bit smaller on phones (swipe still works). */
@media (max-width: 767px) {
	.single-product .woocommerce-product-gallery .flex-direction-nav a {
		width: 36px;
		height: 36px;
	}
	.single-product .woocommerce-product-gallery .flex-direction-nav a::before {
		width: 16px;
		height: 16px;
	}
	.single-product .woocommerce-product-gallery .flex-direction-nav .flex-prev {
		left: 8px;
	}
	.single-product .woocommerce-product-gallery .flex-direction-nav .flex-next {
		right: 8px;
	}
}

/* ------------------------------------------------------------------
 * 5. Quantity stepper (main form + sticky bar)
 * ------------------------------------------------------------------ */

.woocommerce.single-product div.product form.cart:not(.variations_form):not(.grouped_form),
.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
}

.woocommerce.single-product div.product form.cart:not(.variations_form):not(.grouped_form)::before,
.woocommerce.single-product div.product form.cart:not(.variations_form):not(.grouped_form)::after {
	display: none; /* clearfix pseudo elements would become flex items */
}

/* No quantity field (sold individually, only 1 in stock...): WooCommerce still prints div.quantity with a
   hidden input. As an empty flex item it added a gap before "Į krepšelį". The hidden input is still sent. */
.woocommerce.single-product div.product form.cart div.quantity:has(> input[type="hidden"]),
.woocommerce.single-product div.product form.cart div.quantity.hidden {
	display: none;
}

.woocommerce.single-product div.product form.cart div.quantity.pp-qty {
	float: none;
	height: auto;
	min-height: var(--pp-ctl-h);
	margin: 0;
}

.woocommerce.single-product div.product form.cart .single_add_to_cart_button {
	float: none;
	min-height: var(--pp-ctl-h);
	margin: 0;
}

.single-product .pp-qty {
	display: inline-flex;
	align-items: stretch;
	height: var(--pp-ctl-h);
	border: 1px solid var(--pp-border);
	border-radius: var(--pp-radius);
	background: #fff;
	overflow: hidden;
}

.single-product .pp-qty input.qty,
.woocommerce.single-product .pp-qty .qty {
	width: 52px;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent;
	box-shadow: none;
	color: var(--pp-text);
	font-size: 16px; /* ≥16px: no zoom on iOS */
	font-weight: 600;
	line-height: 1;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.single-product .pp-qty input.qty::-webkit-inner-spin-button,
.single-product .pp-qty input.qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.single-product .pp-qty input.qty:focus {
	outline: none;
	background: var(--pp-blue-tint);
}

.single-product .pp-qty .pp-qty__btn,
.single-product .pp-qty .pp-qty__btn:focus,
.single-product .pp-qty .pp-qty__btn:active {
	display: inline-flex !important;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 100%;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--pp-blue) !important;
	font-size: 0 !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: background-color .15s ease;
}

.single-product .pp-qty .pp-qty__btn:hover {
	background: var(--pp-blue-tint) !important;
	color: var(--pp-blue-hover) !important;
}

.single-product .pp-qty .pp-qty__btn:focus-visible {
	outline: 2px solid var(--pp-blue);
	outline-offset: -2px;
}

.single-product .pp-qty .pp-qty__btn:disabled,
.single-product .pp-qty .pp-qty__btn:disabled:hover {
	background: transparent !important;
	color: #c3ccd5 !important;
	cursor: not-allowed !important;
}

.single-product .pp-qty .pp-qty__btn svg {
	display: block;
	pointer-events: none;
}

/* ------------------------------------------------------------------
 * 6. Trust badges + meta rows
 * ------------------------------------------------------------------ */

.single-product .pp-trust {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.single-product .pp-trust__item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--pp-border-light);
	border-radius: var(--pp-radius);
	background: #fafbfc;
	list-style: none;
}

.single-product .pp-trust__icon {
	flex: none;
	color: var(--pp-blue);
}

.single-product .pp-trust__txt {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-size: 13px;
	line-height: 1.3;
	color: var(--pp-muted);
}

.single-product .pp-trust__txt strong {
	color: var(--pp-text);
	font-size: 13.5px;
	font-weight: 600;
}

.single-product svg.pp-trust__icon {
	display: block;
	box-sizing: border-box;
	width: 36px;
	height: 36px;
	padding: 8px;
	border-radius: 50%;
	background: #e8f1f9;
}

@media (max-width: 380px) {
	.single-product .pp-trust__item {
		padding: 8px;
		gap: 8px;
	}
	.single-product .pp-trust__icon {
		width: 20px;
		height: 20px;
	}
}

.single-product .woocommerce-product-attributes-item--pp_categories a,
.single-product .woocommerce-product-attributes-item--pp_tags a {
	color: var(--pp-blue);
	text-decoration: none;
}

.single-product .woocommerce-product-attributes-item--pp_categories a:hover,
.single-product .woocommerce-product-attributes-item--pp_tags a:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------
 * 4. Sticky add-to-cart bar
 * ------------------------------------------------------------------ */

.pp-sticky {
	--pp-blue: #0f69af;
	--pp-blue-hover: #0b5590;
	--pp-blue-tint: #eef5fb;
	--pp-border: #e6ebf0;
	--pp-text: #212121;
	--pp-muted: #6b7280;
	--pp-radius: 10px;
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 990;
	border-top: 1px solid var(--pp-border);
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 -6px 20px rgba(15, 35, 60, .08);
	font-family: Inter, sans-serif;
	transform: translateY(110%);
	visibility: hidden;
	transition: transform .25s ease, visibility 0s linear .25s;
}

.pp-sticky.is-visible {
	transform: none;
	visibility: visible;
	transition: transform .25s ease, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
	.pp-sticky,
	.pp-sticky.is-visible {
		transition: none;
	}
}

.pp-sticky__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 10px 16px;
	padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

.pp-sticky__thumb {
	flex: none;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border: 1px solid var(--pp-border);
	border-radius: 8px;
	background: #fff;
}

.pp-sticky__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pp-sticky__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.pp-sticky__title {
	overflow: hidden;
	color: var(--pp-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.pp-sticky__price {
	color: var(--pp-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.pp-sticky__price del {
	margin-right: 4px;
	color: var(--pp-muted);
	font-size: 12px;
	font-weight: 400;
}

.pp-sticky__price ins {
	text-decoration: none;
}

.pp-sticky__price .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.single-product .pp-sticky .pp-qty {
	--pp-ctl-h: 44px;
	flex: none;
}

.woocommerce.single-product .pp-sticky .pp-qty input.qty {
	width: 40px;
}

.woocommerce.single-product .pp-sticky .pp-qty .pp-qty__btn {
	width: 36px;
}

.pp-sticky .pp-sticky__btn,
.pp-sticky .pp-sticky__btn:focus,
.pp-sticky .pp-sticky__btn:active {
	position: relative;
	flex: none;
	min-height: 44px;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: var(--pp-radius) !important;
	background: var(--pp-blue) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	white-space: nowrap;
}

.pp-sticky .pp-sticky__btn:hover {
	background: var(--pp-blue-hover) !important;
}

.pp-sticky .pp-sticky__btn:focus-visible {
	outline: 2px solid var(--pp-blue);
	outline-offset: 2px;
}

.pp-sticky .pp-sticky__btn.is-loading {
	color: transparent !important;
	pointer-events: none;
}

.pp-sticky .pp-sticky__btn.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pp-spin .7s linear infinite;
}

@keyframes pp-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.pp-sticky .pp-sticky__btn.is-loading::after {
		animation-duration: 2s;
	}
}

/* Mobile: price + stepper + button */
@media (max-width: 767px) {
	.pp-sticky__inner {
		gap: 8px;
		padding: 8px 12px;
		padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
	}
	.pp-sticky__thumb,
	.pp-sticky__title {
		display: none;
	}
	.pp-sticky__price {
		white-space: normal;
	}
	.pp-sticky .pp-sticky__btn {
		padding: 0 16px !important;
	}
	/* Room for the bar at the end of the page. */
	body.single-product.pp-sticky-on {
		padding-bottom: 64px;
	}
}

@media (max-width: 359px) {
	.pp-sticky .pp-sticky__qty {
		display: none;
	}
}

@media (max-width: 575px) {
	.woocommerce.single-product div.product form.cart .single_add_to_cart_button {
		flex: 1 1 auto;
	}
	/* Quantity + "Į krepšelį" + wishlist heart on one row at 375px: the button takes what is left. */
	.woocommerce.single-product div.product form.cart .single_add_to_cart_button:has(+ .lv-wl-btn--inline) {
		flex: 1 1 0;
		min-width: 0;
		padding-left: 10px !important;
		padding-right: 10px !important;
	}
}

/* Gallery dots / arrows are <a>: neutralise the global a:hover/a:focus/a:active underline + colour. */
.single-product .woocommerce-product-gallery .flex-control-paging a,
.single-product .woocommerce-product-gallery .flex-control-paging a:visited,
.single-product .woocommerce-product-gallery .flex-control-paging a:hover,
.single-product .woocommerce-product-gallery .flex-control-paging a:focus,
.single-product .woocommerce-product-gallery .flex-control-paging a:active,
.single-product .woocommerce-product-gallery .flex-direction-nav a,
.single-product .woocommerce-product-gallery .flex-direction-nav a:visited,
.single-product .woocommerce-product-gallery .flex-direction-nav a:hover,
.single-product .woocommerce-product-gallery .flex-direction-nav a:focus,
.single-product .woocommerce-product-gallery .flex-direction-nav a:active {
	color: transparent;
	text-decoration: none;
}

/* Thumbnails: one row of small, clickable images under the photo (scrolls sideways when many). */
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 2px 2px 6px;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
	flex: 0 0 64px;
	width: 64px !important;
	margin: 0 !important;
	padding: 0;
	list-style: none;
	float: none !important;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 64px;
	height: 64px;
	border: 2px solid transparent;
	border-radius: 8px;
	background: #fff;
	object-fit: contain;
	opacity: .6;
	cursor: pointer;
	transition: opacity .15s ease, border-color .15s ease;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img:hover {
	opacity: 1;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	border-color: var(--pp-blue);
	opacity: 1;
}

@media (max-width: 575px) {
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
		flex-basis: 52px;
		width: 52px !important;
	}
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img {
		width: 52px;
		height: 52px;
	}
}

/* Videos inside the "Video turinys" tab: the tab title replaces the old heading. */
.single-product .woocommerce-Tabs-panel--video .videoDiv > h2,
.single-product .woocommerce-Tabs-panel--video .videoDiv > hr {
	display: none;
}

.single-product .woocommerce-Tabs-panel--video .videoDiv {
	margin: 0;
}

/* Thumbnails: gap under the photo (WooCommerce's own "div.images .flex-control-thumbs { margin: 0 }" is more specific) and centred row. */
.single-product div.product div.images.woocommerce-product-gallery .flex-control-thumbs {
	margin: 16px 0 0 !important;
	/* WooCommerce's "overflow: hidden" clipped the last thumbnails; js/product-page.js keeps the active one in view. */
	overflow-x: auto !important;
	overflow-y: hidden !important;
}

.single-product div.product div.images.woocommerce-product-gallery .flex-control-thumbs li:first-child {
	margin-left: auto !important;
}

.single-product div.product div.images.woocommerce-product-gallery .flex-control-thumbs li:last-child {
	margin-right: auto !important;
}

/* Rating under the product title: gold stars (empty stars light grey), same gold as the review summaries. */
.single-product div.product .woocommerce-product-rating .star-rating::before {
	color: #E6EBF0;
	opacity: 1;
}

.single-product div.product .woocommerce-product-rating .star-rating span,
.single-product div.product .woocommerce-product-rating .star-rating span::before {
	color: #CC7A00;
}

/* Stars + "(N pirkėjų atsiliepimai)" on one aligned line, smaller text. */
.single-product div.product .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 6px 0 14px;
	line-height: 1;
}

.single-product div.product .woocommerce-product-rating .star-rating {
	float: none;
	margin: 0;
	font-size: 15px;
}

.single-product div.product .woocommerce-product-rating .woocommerce-review-link,
.single-product div.product .woocommerce-product-rating .woocommerce-review-link:visited {
	color: #6b7280;
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
}

.single-product div.product .woocommerce-product-rating .woocommerce-review-link:hover,
.single-product div.product .woocommerce-product-rating .woocommerce-review-link:focus,
.single-product div.product .woocommerce-product-rating .woocommerce-review-link:active {
	color: #0f69af;
	text-decoration: none;
}

/* Video slider arrows: same round white buttons with a blue chevron as the review carousels. */
.single-product .videoDiv .swiper-button-prev,
.single-product .videoDiv .swiper-button-next {
	width: 40px;
	height: 40px;
	margin-top: -20px;
	border: 1px solid #e3e8ee;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	color: #0f69af;
	transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

.single-product .videoDiv .swiper-button-prev { left: 6px; }
.single-product .videoDiv .swiper-button-next { right: 6px; }

.single-product .videoDiv .swiper-button-prev::after,
.single-product .videoDiv .swiper-button-next::after {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	font-size: 0;
}

.single-product .videoDiv .swiper-button-next::after {
	transform: scaleX(-1);
}

.single-product .videoDiv .swiper-button-prev:hover,
.single-product .videoDiv .swiper-button-next:hover {
	background: #0f69af;
	color: #fff;
}

.single-product .videoDiv .swiper-button-disabled {
	opacity: 0;
	pointer-events: none;
}

/* Long description folded to ~320px with a fade; "Rodyti daugiau" / "Rodyti mažiau". */
.single-product .pp-desc-body.is-collapsed {
	position: relative;
	max-height: 320px;
	overflow: hidden;
}

.single-product .pp-desc-body.is-collapsed::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 90px;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}

.single-product button.pp-desc-more,
.single-product button.pp-desc-more:hover,
.single-product button.pp-desc-more:focus,
.single-product button.pp-desc-more:active {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	padding: 8px 16px !important;
	border: 1px solid #0f69af !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #0f69af !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	text-decoration: none;
}

.single-product button.pp-desc-more:hover {
	background: #e8f1f9 !important;
}

.single-product button.pp-desc-more:focus-visible {
	outline: 2px solid #0f69af;
	outline-offset: 2px;
}

.single-product button.pp-desc-more[hidden] {
	display: none;
}

.single-product .pp-desc-always {
	margin-top: 18px;
}

/* Video slider: arrows sit in the side gutters with a gap to the videos. */
.single-product .videoDiv .swiper-container-wrapper.pp-video-nav {
	position: relative;
	padding: 0 60px;
}

.single-product .videoDiv .pp-video-nav > .swiper-button-prev { left: 4px; }
.single-product .videoDiv .pp-video-nav > .swiper-button-next { right: 4px; }

@media (max-width: 575px) {
	.single-product .videoDiv .swiper-container-wrapper.pp-video-nav {
		padding: 0 48px;
	}
	.single-product .videoDiv .pp-video-nav > .swiper-button-prev,
	.single-product .videoDiv .pp-video-nav > .swiper-button-next {
		width: 36px;
		height: 36px;
		margin-top: -18px;
	}
	.single-product .videoDiv .pp-video-nav > .swiper-button-prev { left: 2px; }
	.single-product .videoDiv .pp-video-nav > .swiper-button-next { right: 2px; }
}

/* "Papildoma informacija" tab: clean spec list instead of the default WooCommerce table. */
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes {
	width: 100%;
	max-width: 760px;
	margin: 0;
	border: 1px solid #E6EBF0;
	border-radius: 10px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
}

.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes tr,
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes tr:nth-child(even) th,
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes tr:nth-child(even) td {
	background: transparent;
}

.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes th,
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes td {
	padding: 14px 18px;
	border: 0;
	border-top: 1px solid #F1F1F1;
	vertical-align: middle;
	line-height: 1.5;
	text-align: left;
}

.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes tr:first-child th,
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes tr:first-child td {
	border-top: 0;
}

.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes th {
	width: 32%;
	background: #f7f9fb;
	color: #6b7280;
	font-weight: 500;
}

.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes td {
	color: #212121;
	font-style: normal;
	font-weight: 500;
}

.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes td p {
	margin: 0;
	padding: 0;
	font-style: normal;
}

/* Category / tag links as small chips. */
.single-product .woocommerce-Tabs-panel--additional_information td a,
.single-product .woocommerce-Tabs-panel--additional_information td a:visited,
.single-product .woocommerce-Tabs-panel--additional_information td a:hover,
.single-product .woocommerce-Tabs-panel--additional_information td a:focus,
.single-product .woocommerce-Tabs-panel--additional_information td a:active {
	display: inline-block;
	margin: 2px 4px 2px 0;
	padding: 4px 12px;
	border: 1px solid #cfe0ef;
	border-radius: 999px;
	background: #f1f7fc;
	color: #0f69af;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
}

.single-product .woocommerce-Tabs-panel--additional_information td a:hover,
.single-product .woocommerce-Tabs-panel--additional_information td a:focus {
	border-color: #0f69af;
	background: #e8f1f9;
}

.single-product .woocommerce-Tabs-panel--additional_information td a:focus-visible {
	outline: 2px solid #0f69af;
	outline-offset: 2px;
}

@media (max-width: 575px) {
	.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes th,
	.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes td {
		display: block;
		width: auto;
		padding: 10px 14px;
	}
	.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes td {
		border-top: 0;
		padding-top: 0;
	}
	.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes th {
		background: transparent;
		padding-bottom: 4px;
		font-size: 13px;
	}
}

/* No striped rows: every row on the same white background. */
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes tr th,
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes tr td,
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes tr:nth-child(odd) th,
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes tr:nth-child(odd) td,
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes tr:nth-child(even) th,
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes tr:nth-child(even) td {
	background: #fff !important;
}

/* Narrower label column, separated from the value by a thin divider. */
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes th {
	width: 180px;
	border-right: 1px solid #E6EBF0;
	font-size: 14px;
}

@media (max-width: 575px) {
	.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes th {
		width: auto;
		border-right: 0;
	}
}

/* Room at the bottom of the page for the sticky add-to-cart bar, so the footer's last line stays visible. */
body.single-product:has(.pp-sticky) {
	padding-bottom: 72px;
}

@media (max-width: 767px) {
	body.single-product:has(.pp-sticky) {
		padding-bottom: 84px;
	}
}

/* "Papildoma informacija": table across the full tab width. */
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes {
	max-width: none;
}

/* Description / reviews / video tabs: visible keyboard focus. */
.woocommerce div.product .woocommerce-tabs ul.tabs li a:focus-visible {
	outline: 2px solid #0f69af;
	outline-offset: 3px;
	border-radius: 4px;
	text-decoration: none;
}

/* Inline hint instead of WooCommerce's alert() when no variation is chosen. */
.lv-var-msg {
	margin: 8px 0 12px;
	padding: 8px 12px;
	border-left: 3px solid #e11d48;
	border-radius: 6px;
	background: #fff1f2;
	color: #9f1239;
	font-size: 14px;
	line-height: 1.4;
}

/* Lightbox (WooCommerce PhotoSwipe), owner 2026-12-01: the close "X" in the right corner. WooCommerce's top bar is a
   flex row whose last item is the (invisible) preloader, which took the corner; counter left, preloader, zoom, close. */
.pswp__top-bar .pswp__counter { margin-right: auto; }
.pswp__top-bar .pswp__preloader { order: 1; }
.pswp__top-bar .pswp__button--zoom { order: 2; }
.pswp__top-bar .pswp__button--close { order: 3; }

/* Thumbnails: no visible scrollbar, but they scroll with a finger (js/product-page.js keeps FlexSlider's swipe off them). */
.single-product div.product div.images.woocommerce-product-gallery .flex-control-thumbs {
	scrollbar-width: none;
	-ms-overflow-style: none;
	touch-action: pan-x;
	overscroll-behavior-x: contain;
}
.single-product div.product div.images.woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

/* "Papildoma informacija" on phones (owner 2026-12-01: labels and category chips looked clumsy):
   label and value side by side in compact rows, smaller one-line chips. */
@media (max-width: 575px) {
	.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes tr {
		display: grid;
		grid-template-columns: 96px minmax(0, 1fr);
		align-items: start;
		gap: 10px;
		padding: 10px 12px;
		border-top: 1px solid #edf1f5;
	}
	.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes tr:first-child {
		border-top: 0;
	}
	.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes th,
	.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes td {
		display: block;
		width: auto;
		padding: 0 !important;
		border: 0 !important;
		font-size: 13.5px;
		line-height: 1.45;
	}
	.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes th {
		padding-top: 2px !important;
		color: #6b7280;
		font-size: 12.5px;
		font-weight: 500;
	}
	.single-product .woocommerce-Tabs-panel--additional_information td a,
	.single-product .woocommerce-Tabs-panel--additional_information td a:visited,
	.single-product .woocommerce-Tabs-panel--additional_information td a:hover,
	.single-product .woocommerce-Tabs-panel--additional_information td a:focus,
	.single-product .woocommerce-Tabs-panel--additional_information td a:active {
		max-width: 100%;
		margin: 0 4px 6px 0;
		padding: 3px 9px;
		border-radius: 6px;
		font-size: 12.5px;
		line-height: 1.35;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		vertical-align: top;
	}
}
