/**
* Theme Name: Partdo Child
* Description: This is a child theme of Partdo, generated by Merlin WP.
* Author: <a href="http://themeforest.net/user/KlbTheme">KlbTheme (Sinan ISIK)</a>
* Template: partdo
* Version: 1.3.26
*/

/* Never block the page behind the theme preloader. */
.site-loading {
	display: none !important;
}

/* Stop the phone from inventing a fake bold for letters the font file
   already draws. That fake bold was thicker than the Lithuanian letters. */
body {
	font-synthesis: none;
}

/* Equal-height cards broke the theme hover footer (absolute, no top/bottom),
   so the add-to-cart button sat on the image. Keep it in the card, always visible. */
.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) .product-footer-details {
	display: none;
}
.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) .product-footer {
	position: relative !important;
	opacity: 1 !important;
	visibility: visible !important;
	left: auto;
	right: auto;
	margin-top: auto;
	z-index: 2;
}
.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) .product-footer .product-footer-inner {
	padding: 0.75rem 0 0;
	margin: 0.75rem 0 0;
	border-top: 1px solid var(--color-info);
}
.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) .product-footer .button {
	margin-top: 0;
}
.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) .product-content-fade {
	margin-bottom: 0 !important;
	top: -1rem;
	bottom: -1rem;
	height: auto;
}
@media screen and (min-width: 992px) {
	.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) > .product {
		z-index: 1;
	}
	.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) > .product:hover {
		z-index: 20;
	}
}

/* Shop page: only the 13 departments. Subtypes show after opening a department. */
.post-type-archive-product .widget_klb_product_categories ul.children {
	display: none;
}

/* Equal-height product cards in the grid (shop, categories, related). */
.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) {
	align-items: stretch;
}
.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) > .product {
	display: flex;
}
.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) > .product > .product {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}
.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) .product-wrapper {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	height: 100%;
	min-height: 0;
}
.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) .product-content {
	display: flex;
	flex-direction: column;
	flex: 0 1 auto;
}
.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) .thumbnail-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex: 0 0 auto;
}
.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) .thumbnail-wrapper > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) .thumbnail-wrapper img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}
.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) .content-wrapper {
	display: flex;
	flex-direction: column;
}
.site-content .products:not(.list-style):not(.large-list):not(.klbth-slider) .product-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	min-height: calc(1.2857142857em * 2);
}

#seopress-user-consent-accept,
#seopress-user-consent-reject {
	background-color: var(--color-primary, #0b5ed7) !important;
	color: #fff !important;
	border: 0;
}
.seopress-user-consent.seopress-user-message {
	padding: 10px 14px !important;
	gap: 8px !important;
}
.seopress-user-consent.seopress-user-message p {
	font-size: 13px !important;
	line-height: 1.35 !important;
	color: #1f2937 !important;
}
.seopress-user-consent.seopress-user-message button {
	padding: 8px 14px !important;
	font-size: 13px !important;
	min-width: 0 !important;
}
@media (max-width: 782px) {
	.seopress-user-consent.seopress-user-message p:last-child {
		flex-direction: row !important;
		gap: 8px !important;
	}
	.seopress-user-consent.seopress-user-message button {
		width: auto !important;
		flex: 1 1 0;
	}
}
/* Empty Elementor slider prices rendered as gray bars under the mobile CTA. */
.klbth-banner .entry-footer.slider-footer > .price {
	display: none !important;
}
.klbth-coupon-banner .coupon-wrapper,
.klbth-coupon-banner .coupon-title,
.klbth-coupon-banner .coupon-description {
	color: #111827 !important;
}
.customer-mission,
.klbth-newsletter-text .entry-subtitle,
.klbth-newsletter-text .entry-description p,
.header-notice,
.header-notice span,
.header-notice a,
.notice-button .notice-text,
.site-footer .privacy-policy a,
.mc4wp-form .privacy-policy a,
.mobile-bottom-menu,
.mobile-bottom-menu ul li a,
.mobile-bottom-menu ul li a span {
	color: #1f2937 !important;
}
/* The "All categories" label sits on the orange header button: white, like the theme default. */
.site-header .dropdown-cats > a.dropdown-toggle,
.site-header .dropdown-cats > a.dropdown-toggle .text,
.site-header .dropdown-cats > a.dropdown-toggle .icon {
	color: #fff !important;
}
.site-footer .custom-background-light .site-copyright p,
.site-footer .custom-background-light .widget_contact .company-mail {
	opacity: 1 !important;
	color: #1f2937 !important;
}
.site-footer .custom-background-dark .site-copyright p {
	opacity: 1 !important;
	color: #d1d5db !important;
}
.site-footer .custom-background-dark .widget_contact .company-mail {
	color: #fff !important;
}
/* Footer logo: the SVG was scaled into a wider box and centred - keep it on the left edge. */
.site-footer .company-logo img {
	width: auto;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
}
.klbth-newsletter-form button.btn,
.mc4wp-form button.btn {
	background-color: var(--color-primary, #0b5ed7) !important;
	color: #fff !important;
}
.klbth-coupon-banner .sale-overflow {
	display: none !important;
}
.site-header img[src*="euparts-logo"],
.site-brand img[src*="euparts-logo"] {
	width: 212px;
	height: auto;
	max-width: 100%;
}
@media (max-width: 767px) {
	.site-header img[src*="euparts-logo"] {
		width: 160px;
	}
}
.product-badges .badge.sale {
	background-color: #b91c1c !important;
	color: #fff !important;
}
.product-stock.in-stock,
.product-stock.in-stock span {
	color: #166534 !important;
}
.products .price del,
.products .price del .amount,
.products .price del bdi,
.product .price del,
.product .price del .amount,
.product .price del bdi {
	color: #4b5563 !important;
}
.products .price ins,
.products .price ins .amount,
.products .price ins bdi,
.product .price ins,
.product .price ins .amount,
.product .price ins bdi {
	color: #ef233c !important;
	font-weight: 800;
}
.product .price,
.products .price,
.product .price .amount,
.products .price .amount,
.single-product .product-detail .price,
.single-product .product-detail .price .amount {
	font-weight: 700;
}
.product .price del,
.products .price del,
.product .price del .amount,
.products .price del .amount,
.single-product .product-detail .price del,
.single-product .product-detail .price del .amount {
	font-weight: 500;
}

/* Cards (shop grids and the homepage sliders): a sale price is taller than a
   normal price, so the cart button dropped. Reserve two title lines and a
   price block tall enough for the old price, the price, and the VAT suffix ("sis. ALV"), and
   pin the button to the bottom. The checkmark that appears after adding
   is the same square as the cart button. */
.products:not(.list-style):not(.large-list) .product-title {
	min-height: calc(2 * 1.2857142857em);
}
.products:not(.list-style):not(.large-list) .product-cart-form {
	align-items: flex-end;
	flex-wrap: nowrap;
}
.products:not(.list-style):not(.large-list) .product-cart-form .price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 3.25rem;
	margin-bottom: 0;
}
.products:not(.list-style):not(.large-list) .product-cart-form .price-tax-incl {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	width: 100%;
	min-height: 3.25rem;
	line-height: 1.15;
}
.products:not(.list-style):not(.large-list) .product-cart-form .price-tax-excl {
	display: none;
}
.products:not(.list-style):not(.large-list) .product-cart-form a.button,
.products:not(.list-style):not(.large-list) .product-cart-form a.added_to_cart {
	align-self: flex-end;
	flex: 0 0 2rem;
	box-sizing: border-box;
	width: 2rem;
	height: 2rem;
	min-width: 2rem;
	max-width: 2rem;
	padding: 0;
	font-size: 0;
	line-height: 1;
	border-radius: var(--theme-theme-radius-small, 8px);
}
.products:not(.list-style):not(.large-list) .product-cart-form a.button {
	margin-left: auto;
}
.products:not(.list-style):not(.large-list) .product-cart-form a.button i,
.products:not(.list-style):not(.large-list) .product-cart-form a.added_to_cart:before {
	font-size: 1.125rem;
	width: auto;
	margin: 0;
	line-height: 1;
}
.products:not(.list-style):not(.large-list) .product-cart-form a.added_to_cart {
	margin: 0 0 0 0.375rem;
}
@media screen and (min-width: 992px) {
	.products:not(.list-style):not(.large-list) .product-cart-form a.button,
	.products:not(.list-style):not(.large-list) .product-cart-form a.added_to_cart {
		flex-basis: 2.375rem;
		width: 2.375rem;
		height: 2.375rem;
		min-width: 2.375rem;
		max-width: 2.375rem;
		border-radius: var(--theme-theme-radius-base, 12px);
	}
	.products:not(.list-style):not(.large-list) .product-cart-form a.button i,
	.products:not(.list-style):not(.large-list) .product-cart-form a.added_to_cart:before {
		font-size: 1.25rem;
	}
}

/* The price the customer pays, in the cart and at checkout. */
.woocommerce-cart .woocommerce-cart-form td.product-price .amount,
.woocommerce-cart .woocommerce-cart-form td.product-subtotal .amount,
.woocommerce-cart .cart_totals .cart-subtotal .amount,
.woocommerce-cart .cart_totals .order-total .amount,
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total .amount,
.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal .amount,
.woocommerce-checkout .order-review-wrapper .shop_table tfoot tr.order-total > td > strong .amount {
	font-weight: 800;
}
.products .product-footer .button,
.products a.add_to_cart_button {
	background-color: var(--color-primary, #0b5ed7) !important;
	color: #fff !important;
}
.klbth-module-header .entry-description p,
.klb-custom-title .entry-description p,
.customer-mission,
.customer-description p,
.site-copyright p {
	color: #374151;
}
/* Selected shipping card: LP Express puts its logo between the radio and the label,
   so the Customizer rule "input:checked + label" never matched it. */
.woocommerce-shipping-methods input[type="radio"]:checked ~ label:first-of-type {
	border-color: #3d7fe0;
	background-color: #dbe7fc;
	color: #000;
}

/* Single product photo: one square frame, whatever the file size.
   The gallery sits in article.product, not div.product. */
.single-product .woocommerce-product-gallery > .flex-viewport {
	aspect-ratio: 1 / 1;
	height: auto !important;
	background: #fff;
}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
	background: #fff;
}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image > a {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

/* No support photo is set, but the empty avatar still reserved a column
   and, with a blank src, stretched the phone row. */
.single-product .product-assistant .assistant-avatar:has(img[src=""]),
.single-product .product-assistant .assistant-avatar:has(img:not([src])) {
	display: none;
}

/* Footer logo was sitting under 5rem of empty padding. */
@media screen and (min-width: 992px) {
	.site-footer .footer-widgets .footer-sidebar {
		padding-top: 1.5rem;
		padding-bottom: 2.5rem;
	}
}
.widget_about_company .company-logo {
	margin-bottom: 0.75rem;
}

/* Product cards everywhere (shop grids, homepage carousels, "Akcijos" deals, related products):
   one square image area, the photo fitted inside, so titles and prices line up. */
.product .thumbnail-wrapper.entry-media {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex: 0 0 auto;
}
.product .thumbnail-wrapper.entry-media > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.product .thumbnail-wrapper.entry-media img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

/* Cart on a phone: the remove control was absolutely positioned and sat
   off the product row. Keep it in the row, lined up with the name and quantity. */
@media screen and (max-width: 767.98px) {
	.woocommerce-cart .woocommerce-cart-form table.shop_table,
	.woocommerce-cart .woocommerce-cart-form table.shop_table thead,
	.woocommerce-cart .woocommerce-cart-form table.shop_table tbody {
		display: block;
		width: 100%;
	}
	.woocommerce-cart .woocommerce-cart-form table.shop_table thead tr {
		display: flex;
		width: 100%;
		justify-content: space-between;
		align-items: center;
	}
	.woocommerce-cart .woocommerce-cart-form table.shop_table thead th.product-remove,
	.woocommerce-cart .woocommerce-cart-form table.shop_table thead th.product-thumbnail,
	.woocommerce-cart .woocommerce-cart-form table.shop_table thead th.product-price,
	.woocommerce-cart .woocommerce-cart-form table.shop_table thead th.product-subtotal {
		display: none !important;
	}
	.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		width: 100%;
		column-gap: 0.75rem;
	}
	.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item > td {
		display: block;
		width: auto;
		border: 0;
	}
	.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-remove {
		position: static;
		flex: 0 0 auto;
		order: 1;
		width: auto !important;
		padding: 0 !important;
	}
	.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-thumbnail {
		display: none;
	}
	.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-name {
		flex: 1 1 0;
		min-width: 0;
		order: 3;
		text-align: left;
	}
	.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-quantity {
		flex: 0 0 auto;
		order: 4;
	}
	.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr:not(.cart_item),
	.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr:not(.cart_item) > td {
		display: block;
		width: 100%;
	}
	.woocommerce-cart .woocommerce-cart-form .product-remove > *,
	.woocommerce-cart .woocommerce-cart-form table td.product-remove a {
		position: static !important;
		top: auto !important;
		left: auto !important;
		margin: 0 !important;
	}
}

/* Footer bank/payment logos: one SVG (350x60 by default), shown larger. */
.site-footer .card-icons img.credit-cards {
	width: 441px;
	max-width: 100%;
	height: auto;
}

/* ---------------------------------------------------------------
 * Euparts design fixes (2026-11-26)
 * ------------------------------------------------------------- */

/* Brand colours: Partdo's secondary colour defaults to cyan (#3BC9DB) and has no theme option */
:root {
	--color-secondary: #0b5ed7;
}

/* Product page icon boxes: keep the text next to the icon, never wrap below it */
.single-product-wrapper .product-detail .product-iconboxes .iconbox {
	display: flex;
	flex-flow: row nowrap;
	align-items: flex-start;
	gap: 14px;
}
.single-product-wrapper .product-detail .product-iconboxes .iconbox .icon {
	flex: 0 0 2.5rem;
	width: 2.5rem;
	max-width: 2.5rem;
	height: 2.5rem;
	margin: 0;
}
.single-product-wrapper .product-detail .product-iconboxes .iconbox .detail {
	flex: 1 1 0;
	min-width: 0;
	padding-top: 2px;
}
.single-product-wrapper .product-detail .product-iconboxes .iconbox .entry-title {
	margin-bottom: 4px;
}

/* "Kysyttävää?" box: no avatar image is set, hide the empty one; call link in brand blue */
.single-product-wrapper .product-detail .product-assistant .assistant-avatar:has(img[src=""]),
.single-product-wrapper .product-detail .product-assistant .assistant-avatar img[src=""] {
	display: none;
}
.single-product-wrapper .product-detail .product-assistant .assistant-content p a {
	color: #0b5ed7;
	font-weight: 600;
}
.single-product-wrapper .product-detail .product-assistant .assistant-content p a:hover {
	color: #0a4fb5;
}

/* Product meta: category path and brand rows share one style */
.product_meta .posted_in {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 6px;
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1.5;
}
.product_meta .posted_in > span:first-child {
	color: #6b7280;
	margin-right: 4px;
}
.product_meta .posted_in a {
	color: #1b1f22;
	font-weight: 600;
}
.product_meta .posted_in a:hover {
	color: #0b5ed7;
}
.product_meta .posted_in .eu-sep {
	color: #adb5bd;
}

/* Product cards: titles take exactly two lines so price + cart button line up across a row */
.products .product .product-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	line-height: 1.4;
	min-height: 2.8em;
}

/* Home "Suosituimmat kategoriat" grid: tidy image tiles */
.klbth-module-categories.style-1 .category-item .entry-media img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	width: 100%;
	background: #fff;
}
.klbth-module-categories.style-1 .category-item .category-name {
	font-size: 15px;
	line-height: 1.35;
}
