/* Mažylių Planeta launch-readiness refinements. */

.mps-category-card {
	position: relative;
	isolation: isolate;
}

.mps-category-card-image {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	object-fit: cover;
	object-position: center;
	transition: transform .24s ease;
}

.mps-category-card:hover .mps-category-card-image {
	transform: scale(1.025);
}

.mps-site-footer h3 {
	margin: 0 0 16px;
	color: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
}

.mps-empty-products {
	margin: 0;
	padding: 26px 28px;
	border: 1px solid #dce7eb;
	border-radius: 20px;
	background: linear-gradient(135deg, #f5fbfe, #fff7fa);
	color: #52636b;
	font-weight: 700;
	text-align: center;
}

.single-product div.product .summary .woocommerce-product-details__short-description {
	margin: 14px 0 18px;
	color: #52636b;
	font-size: 16px;
	line-height: 1.7;
}

.mps-product-buying-info {
	margin: 24px 0 8px;
	padding: 24px;
	border: 1px solid #dce7eb;
	border-radius: 24px;
	background: linear-gradient(145deg, #f8fdff, #fff9fb);
	box-shadow: 0 14px 34px rgba(38, 52, 59, .06);
}

.mps-product-buying-info h2,
.mps-product-buying-info h3 {
	margin: 0;
	color: #26343b;
	letter-spacing: -.02em;
}

.mps-product-buying-info h2 {
	font-size: 22px;
	font-weight: 850;
}

.mps-product-buying-info h3 {
	margin-top: 22px;
	font-size: 17px;
	font-weight: 800;
}

.mps-product-feature-list {
	display: grid;
	gap: 9px;
	margin: 16px 0 18px;
	padding: 0;
	list-style: none;
}

.mps-product-feature-list li {
	position: relative;
	margin: 0;
	padding-left: 28px;
	color: #52636b;
	line-height: 1.55;
}

.mps-product-feature-list li::before {
	content: "";
	position: absolute;
	top: .52em;
	left: 3px;
	width: 11px;
	height: 7px;
	border-bottom: 2px solid #397a9b;
	border-left: 2px solid #397a9b;
	transform: rotate(-45deg);
}

.mps-product-stock {
	display: inline-flex;
	margin-top: 2px;
	padding: 8px 12px;
	align-items: center;
	gap: 5px;
	border-radius: 999px;
	font-size: 13px;
	line-height: 1.2;
}

.mps-product-stock--in {
	background: #eaf7fc;
	color: #28657f;
}

.mps-product-stock--out {
	background: #fceef2;
	color: #89445d;
}

.mps-spec-table-wrap {
	overflow-x: auto;
	margin-top: 12px;
	border: 1px solid #dce7eb;
	border-radius: 16px;
	background: #fff;
}

.mps-spec-table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	font-size: 14px;
}

.mps-spec-table th,
.mps-spec-table td {
	padding: 11px 13px;
	border: 0;
	border-bottom: 1px solid #edf1f3;
	text-align: left;
	vertical-align: top;
}

.mps-spec-table tr:last-child th,
.mps-spec-table tr:last-child td {
	border-bottom: 0;
}

.mps-spec-table th {
	width: 38%;
	color: #52636b;
	font-weight: 800;
}

.mps-product-service-info {
	margin-top: 20px;
	padding: 18px 20px;
	border-radius: 18px;
	background: #fff;
}

.mps-product-service-info h3 {
	margin-top: 0;
}

.mps-product-service-info p {
	margin: 10px 0 0;
	color: #52636b;
	font-size: 14px;
	line-height: 1.6;
}

.mps-product-service-info a {
	color: #2f6886;
	font-weight: 800;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products.mps-home-products li.product .woocommerce-loop-product__title {
	text-wrap: balance;
}

.mps-button:focus-visible,
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.mps-inquiry-button:focus-visible,
.mps-category-card a:focus-visible {
	outline: 3px solid rgba(57, 122, 155, .38);
	outline-offset: 3px;
}

@media (max-width: 700px) {
	.mps-product-buying-info {
		padding: 20px 17px;
		border-radius: 20px;
	}

	.mps-spec-table th,
	.mps-spec-table td {
		padding: 10px;
	}

	.mps-spec-table th {
		width: 42%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mps-category-card-image {
		transition: none;
	}
}

/* Compact homepage shopping flow. */
.home .mps-hero--compact {
	height: clamp(340px, 38vw, 390px);
	min-height: 340px;
	background-position: center 54%;
}

.home .mps-hero--compact .mps-hero-inner {
	display: flex;
	min-height: 100%;
	align-items: center;
	padding-block: 38px;
}

.home .mps-hero--compact .mps-hero-copy {
	max-width: 570px;
}

.home .mps-hero--compact .mps-hero-copy h1 {
	max-width: 650px;
	margin-bottom: 14px;
	font-size: clamp(35px, 4vw, 52px);
	line-height: 1.04;
}

.home .mps-hero--compact .mps-hero-copy > p {
	max-width: 540px;
	margin: 0 0 20px;
	font-size: clamp(15px, 1.4vw, 17px);
	line-height: 1.6;
}

.mps-home-trust {
	border-bottom: 1px solid #e7eef1;
	background: linear-gradient(90deg, #f7fcfe 0%, #fff9fb 100%);
}

.mps-home-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
}

.mps-home-trust article {
	display: flex;
	min-width: 0;
	padding: 17px 16px;
	align-items: center;
	gap: 12px;
	border-right: 1px solid #e5edf0;
}

.mps-home-trust article:last-child {
	border-right: 0;
}

.mps-home-trust-icon {
	display: grid;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	place-items: center;
	border-radius: 14px;
	background: #eaf7fc;
	color: #397a9b;
}

.mps-home-trust article:nth-child(even) .mps-home-trust-icon {
	background: #fceef2;
	color: #a95370;
}

.mps-home-trust-icon svg {
	width: 21px;
	height: 21px;
}

.mps-home-trust strong,
.mps-home-trust span {
	display: block;
}

.mps-home-trust strong {
	color: #26343b;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
}

.mps-home-trust article div > span {
	margin-top: 3px;
	color: #6b7a81;
	font-size: 12px;
	line-height: 1.35;
}

.home .mps-section {
	padding-block: 50px;
}

.home .mps-category-grid--eight {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.home .mps-category-card {
	min-height: 218px;
	border-radius: 24px;
}

.home .mps-category-copy {
	padding: 20px;
}

.home .mps-category-copy h3 {
	font-size: 21px;
}

.home .mps-contact-cta {
	margin-top: 0;
}

/* Shop and category ordering. */
.woocommerce .woocommerce-ordering {
	float: right;
	margin: 0 0 26px;
}

.woocommerce .woocommerce-ordering select.orderby {
	width: min(100%, 310px);
	height: 44px;
	margin: 0;
	padding: 0 42px 0 15px;
	border: 1px solid #d6e3e8;
	border-radius: 14px;
	background-color: #fff;
	color: #33444c;
	font-family: "Nunito Sans", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 44px;
	box-shadow: 0 7px 18px rgba(38, 52, 59, .05);
	cursor: pointer;
}

.woocommerce .woocommerce-ordering select.orderby:hover {
	border-color: #a8d6e8;
}

.woocommerce .woocommerce-ordering select.orderby:focus {
	border-color: #72b9d5;
	outline: 3px solid rgba(114, 185, 213, .18);
	outline-offset: 1px;
}

.woocommerce .woocommerce-result-count {
	margin: 12px 0 26px;
	color: #75838a;
	font-size: 14px;
}

.woocommerce .products {
	clear: both;
}

/* Cleaner WooCommerce product cards. */
.woocommerce ul.products,
ul.products.mps-home-products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.mps-featured-products ul.products {
	grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
	justify-content: center;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product,
ul.products.mps-home-products li.product {
	position: relative;
	display: flex;
	float: none !important;
	width: auto !important;
	min-width: 0;
	height: 100%;
	margin: 0 !important;
	padding: 14px 14px 16px;
	flex-direction: column;
	border: 1px solid #e0e9ed;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(38, 52, 59, .06);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.woocommerce ul.products li.product:hover,
ul.products.mps-home-products li.product:hover {
	border-color: #b9ddea;
	box-shadow: 0 16px 34px rgba(38, 52, 59, .09);
	transform: translateY(-2px);
}

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
ul.products.mps-home-products li.product > a.woocommerce-LoopProduct-link {
	display: flex;
	min-height: 0;
	flex: 1 1 auto;
	flex-direction: column;
	color: inherit;
}

.woocommerce ul.products li.product a img,
ul.products.mps-home-products li.product a img {
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	margin: 0 0 17px !important;
	padding: 10px;
	border-radius: 18px;
	background: #f8fbfc;
	object-fit: contain;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products.mps-home-products li.product .woocommerce-loop-product__title {
	min-height: 2.8em;
	margin: 0 2px 9px !important;
	padding: 0 !important;
	color: #26343b;
	font-size: 16px !important;
	font-weight: 800;
	line-height: 1.4;
}

.woocommerce ul.products li.product .price,
ul.products.mps-home-products li.product .price {
	display: flex;
	min-height: 28px;
	margin: auto 2px 15px !important;
	align-items: center;
	gap: 7px;
	color: #397a9b !important;
	font-size: 17px !important;
	font-weight: 850 !important;
}

.woocommerce ul.products li.product .button,
ul.products.mps-home-products li.product .button {
	display: inline-flex;
	width: 100%;
	min-height: 43px;
	margin: 0 !important;
	padding: 10px 16px !important;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 14px !important;
	background: #397a9b !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-align: center;
	transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.woocommerce ul.products li.product .button:hover,
ul.products.mps-home-products li.product .button:hover {
	background: #2f6d8b !important;
	box-shadow: 0 8px 18px rgba(57, 122, 155, .18);
	transform: translateY(-1px);
}

.woocommerce ul.products li.product.outofstock .button {
	background: #f6d3de !important;
	color: #7f3f56 !important;
}

.woocommerce ul.products li.product.outofstock .button:hover {
	background: #efc3d1 !important;
}

.woocommerce ul.products li.product .onsale,
.woocommerce ul.products li.product .mps-featured-badge,
ul.products.mps-home-products li.product .onsale,
ul.products.mps-home-products li.product .mps-featured-badge {
	top: 24px !important;
	left: 24px !important;
	right: auto !important;
	z-index: 3;
	min-width: auto;
	min-height: auto;
	margin: 0;
	padding: 7px 10px;
	border-radius: 999px;
	background: #f6d3de;
	color: #85415a;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	text-transform: none;
}

.mps-card-stock-badge {
	position: absolute;
	top: 24px;
	right: 24px;
	z-index: 3;
	display: inline-flex;
	padding: 7px 10px;
	align-items: center;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	box-shadow: 0 5px 14px rgba(38, 52, 59, .08);
}

.mps-card-stock-badge--in {
	background: #e6f6fb;
	color: #2d708d;
}

.mps-card-stock-badge--out {
	background: #f4f0f2;
	color: #7b6970;
}

@media (max-width: 1100px) {
	.woocommerce ul.products,
	ul.products.mps-home-products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.home .mps-hero--compact {
		height: 330px;
		min-height: 330px;
	}

	.mps-home-trust-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mps-home-trust article:nth-child(2) {
		border-right: 0;
	}

	.mps-home-trust article:nth-child(-n+2) {
		border-bottom: 1px solid #e5edf0;
	}

	.home .mps-category-grid--eight {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.woocommerce .woocommerce-result-count,
	.woocommerce .woocommerce-ordering {
		float: none;
		width: 100%;
	}

	.woocommerce .woocommerce-result-count {
		margin: 0 0 12px;
	}

	.woocommerce .woocommerce-ordering {
		margin-bottom: 22px;
	}

	.woocommerce .woocommerce-ordering select.orderby {
		width: 100%;
		max-width: none;
	}

	.woocommerce ul.products,
	ul.products.mps-home-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 560px) {
	.home .mps-hero--compact {
		height: 292px;
		min-height: 292px;
		background-position: 60% center;
	}

	.home .mps-hero--compact .mps-hero-inner {
		padding-block: 24px;
	}

	.home .mps-hero--compact .mps-hero-copy {
		max-width: 92%;
	}

	.home .mps-hero--compact .mps-hero-copy h1 {
		margin-bottom: 11px;
		font-size: clamp(28px, 9vw, 36px);
	}

	.home .mps-hero--compact .mps-hero-copy > p {
		margin-bottom: 16px;
		font-size: 14px;
		line-height: 1.5;
	}

	.mps-home-trust article {
		padding: 13px 10px;
		gap: 9px;
	}

	.mps-home-trust-icon {
		width: 34px;
		height: 34px;
		flex-basis: 34px;
		border-radius: 12px;
	}

	.mps-home-trust strong {
		font-size: 12.5px;
	}

	.mps-home-trust article div > span {
		font-size: 11px;
	}

	.home .mps-section {
		padding-block: 36px;
	}

	.home .mps-category-grid--eight {
		gap: 12px;
	}

	.home .mps-category-card {
		min-height: 168px;
		border-radius: 18px;
	}

	.home .mps-category-copy {
		padding: 14px;
	}

	.home .mps-category-copy h3 {
		font-size: 16px;
	}

	.woocommerce ul.products li.product,
	ul.products.mps-home-products li.product {
		padding: 10px 10px 12px;
		border-radius: 18px;
	}

	.woocommerce ul.products li.product a img,
	ul.products.mps-home-products li.product a img {
		margin-bottom: 12px !important;
		padding: 7px;
		border-radius: 14px;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title,
	ul.products.mps-home-products li.product .woocommerce-loop-product__title {
		font-size: 14px !important;
	}

	.woocommerce ul.products li.product .price,
	ul.products.mps-home-products li.product .price {
		font-size: 15px !important;
	}

	.woocommerce ul.products li.product .button,
	ul.products.mps-home-products li.product .button {
		min-height: 40px;
		padding-inline: 10px !important;
		font-size: 12.5px !important;
	}

	.woocommerce ul.products li.product .onsale,
	.woocommerce ul.products li.product .mps-featured-badge,
	ul.products.mps-home-products li.product .onsale,
	ul.products.mps-home-products li.product .mps-featured-badge {
		top: 17px !important;
		left: 17px !important;
		padding: 6px 8px;
		font-size: 9.5px;
	}

	.mps-card-stock-badge {
		top: 17px;
		right: 17px;
		padding: 6px 8px;
		font-size: 9.5px;
	}
}

@media (max-width: 390px) {
	.woocommerce ul.products,
	ul.products.mps-home-products {
		grid-template-columns: 1fr;
	}
}

/* Product purchase controls above the fold. */
.single-product .woocommerce-breadcrumb {
	margin-bottom: 18px;
}

.single-product div.product .summary {
	padding-top: 2px;
}

.single-product div.product .summary .product_title {
	margin-bottom: 10px;
	font-size: clamp(28px, 3.1vw, 42px);
	line-height: 1.08;
}

.single-product div.product .summary > .price {
	margin: 0 0 10px !important;
	font-size: clamp(24px, 2.5vw, 34px) !important;
	line-height: 1.15;
}

.single-product div.product .summary .woocommerce-product-details__short-description {
	margin: 8px 0 12px;
	font-size: 15px;
	line-height: 1.55;
}

.mps-purchase-status {
	display: inline-flex;
	margin: 0 0 14px;
	padding: 8px 12px;
	align-items: center;
	gap: 8px;
	border-radius: 999px;
	font-size: 13px;
	line-height: 1;
}

.mps-purchase-status--in {
	background: #e7f7fb;
	color: #286c88;
}

.mps-purchase-status--out {
	background: #fceef2;
	color: #8b425c;
}

.mps-purchase-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: currentColor;
	box-shadow: 0 0 0 4px rgba(255,255,255,.62);
}

.single-product div.product .summary > p.stock {
	display: none;
}

.single-product div.product form.cart {
	display: flex;
	margin: 0 0 20px;
	align-items: center;
	gap: 10px;
	flex-wrap: nowrap;
}

.single-product div.product form.cart .quantity {
	float: none;
	margin: 0 !important;
	flex: 0 0 74px;
}

.single-product div.product form.cart .qty {
	width: 74px;
	height: 48px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #d4e2e7;
	border-radius: 14px;
	background: #fff;
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	font-weight: 800;
	text-align: center;
}

.single-product div.product form.cart .single_add_to_cart_button,
.single-product .mps-inquiry-button {
	display: inline-flex !important;
	min-height: 48px;
	margin: 0 !important;
	padding: 12px 22px !important;
	align-items: center;
	justify-content: center;
	border-radius: 14px !important;
	font-size: 15px !important;
	font-weight: 850 !important;
	line-height: 1.2 !important;
}

.single-product div.product form.cart .single_add_to_cart_button {
	flex: 1 1 auto;
}

.single-product .mps-inquiry-button {
	width: 100%;
	max-width: 330px;
	margin-bottom: 20px !important;
}

.single-product .mps-product-buying-info {
	margin-top: 4px;
}

.single-product div.product .woocommerce-product-gallery {
	margin-bottom: 24px;
}

.single-product div.product .woocommerce-product-gallery__image img {
	max-height: 510px;
	object-fit: contain;
}

@media (max-width: 768px) {
	.single-product .woocommerce-breadcrumb {
		margin-bottom: 12px;
		font-size: 12px;
	}

	.single-product div.product .summary .product_title {
		font-size: clamp(25px, 7.5vw, 34px);
	}

	.single-product div.product .summary > .price {
		font-size: 25px !important;
	}

	.single-product div.product .summary .woocommerce-product-details__short-description {
		font-size: 14px;
		line-height: 1.5;
	}

	.single-product div.product form.cart {
		gap: 8px;
	}

	.single-product div.product form.cart .quantity {
		flex-basis: 66px;
	}

	.single-product div.product form.cart .qty {
		width: 66px;
		height: 46px;
	}

	.single-product div.product form.cart .single_add_to_cart_button,
	.single-product .mps-inquiry-button {
		min-height: 46px;
		padding: 11px 15px !important;
		font-size: 14px !important;
	}

	.single-product div.product .woocommerce-product-gallery__image img {
		max-height: 390px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products li.product,
	ul.products.mps-home-products li.product,
	.woocommerce ul.products li.product .button,
	ul.products.mps-home-products li.product .button {
		transition: none;
	}
}