/* =========================================================================
   S4epka — WooCommerce
   Стандартні стилі WooCommerce вимкнено, тут — повна заміна.
   ========================================================================= */

.woocommerce-notices-wrapper:empty {
	display: none;
}

/* Повідомлення ------------------------------------------------------------ */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin: 0 0 24px;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--pine);
	border-radius: var(--radius);
	background: var(--surface);
	list-style: none;
	color: var(--ink);
}

.woocommerce-error {
	border-left-color: var(--sale);
	display: block;
}

.woocommerce-error li + li {
	margin-top: 4px;
}

.woocommerce-message .button,
.woocommerce-info .button {
	order: 2;
	min-height: 38px;
	padding: 0.5em 1em;
}

/* Каталог ----------------------------------------------------------------- */

.shop .page-title {
	margin-bottom: 0;
}

.woocommerce-products-header {
	padding-block: 0 8px;
}

.woocommerce-products-header .page-title {
	margin-top: 0;
}

.term-description {
	max-width: 70ch;
	margin-top: 0.8rem;
	color: var(--muted);
}

.shop > .container > .crumbs {
	padding-top: clamp(20px, 3vw, 36px);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 8px;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font-size: var(--fs-sm);
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s;
}

.chip span {
	font-size: var(--fs-xs);
	color: var(--muted);
}

.chip:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.chip.is-active {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}

.chip.is-active span {
	color: rgba(255, 255, 255, 0.7);
}

.woocommerce-result-count {
	margin: 18px 0;
	font-size: var(--fs-sm);
	color: var(--muted);
}

.woocommerce-ordering {
	float: right;
	margin: 10px 0 18px;
}

.woocommerce-ordering select {
	width: auto;
	min-height: 40px;
	padding-block: 0.4em;
	font-size: var(--fs-sm);
}

ul.products {
	clear: both;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 20px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

ul.products.columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

ul.products::before,
ul.products::after {
	display: none;
}

ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
}

ul.products li.product > a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	color: var(--ink);
	text-decoration: none;
}

ul.products li.product img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	margin-bottom: 14px;
	border-radius: var(--radius-lg);
	background: var(--ply-soft);
	transition: transform 0.5s var(--ease), box-shadow 0.3s;
}

ul.products li.product:hover img {
	box-shadow: var(--shadow);
}

.card__title {
	margin: 0 0 4px;
	font: 500 var(--fs-md) / 1.3 var(--display);
	letter-spacing: -0.005em;
}

.card__meta {
	margin: 0 0 6px;
	font-size: var(--fs-xs);
	color: var(--muted);
}

ul.products li.product .price {
	display: block;
	margin: auto 0 12px;
	padding-top: 4px;
	font-weight: 600;
	color: var(--ink);
}

ul.products li.product .button {
	align-self: flex-start;
	min-height: 40px;
	padding: 0.55em 1.1em;
	background: transparent;
	color: var(--ink);
	border-color: var(--line);
}

ul.products li.product .button:hover {
	background: var(--pine);
	border-color: var(--pine);
	color: #fff;
}

ul.products li.product .added_to_cart {
	margin-top: 8px;
	font-size: var(--fs-sm);
}

ul.products li.product .button.loading {
	opacity: 0.6;
	pointer-events: none;
}

ul.products li.product .star-rating {
	margin-bottom: 6px;
}

/* Ціни */

.price {
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.price del {
	margin-right: 6px;
	color: var(--muted);
	font-weight: 400;
	opacity: 0.8;
}

.price ins {
	text-decoration: none;
	color: var(--sale);
}

.price-from {
	font-weight: 400;
	color: var(--muted);
}

.price-request {
	font-weight: 500;
	color: var(--muted);
}

.onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--sale);
	color: #fff;
	font: 600 12px/1.4 var(--body);
}

/* Рейтинг */

.star-rating {
	position: relative;
	display: inline-block;
	width: 5.4em;
	height: 1.1em;
	overflow: hidden;
	font-size: 0.95rem;
	line-height: 1;
}

.star-rating::before {
	content: "★★★★★";
	position: absolute;
	inset: 0;
	color: var(--line);
	letter-spacing: 0.1em;
}

.star-rating span {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	padding-top: 1.5em;
}

.star-rating span::before {
	content: "★★★★★";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--ply);
	letter-spacing: 0.1em;
}

/* Пагінація */

.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
}

.woocommerce-pagination .page-numbers span.current {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

/* Бічна панель з фільтрами */

.shop--sidebar .container {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 0 40px;
}

.shop--sidebar .container > * {
	grid-column: 2;
}

.shop--sidebar .shop__filters {
	grid-column: 1;
	grid-row: 1 / span 20;
}

.widget {
	margin-bottom: 28px;
}

.widget__title {
	font-size: var(--fs-md);
}

/* Сторінка товару --------------------------------------------------------- */

.single-product .shop > .container {
	padding-top: clamp(16px, 2.5vw, 28px);
}

div.product {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 0 clamp(24px, 4vw, 64px);
	align-items: start;
}

div.product > .onsale {
	top: 16px;
	left: 16px;
}

div.product .woocommerce-product-gallery {
	position: relative;
	grid-column: 1;
	min-width: 0;
	margin-bottom: 40px;
}

div.product .summary {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

div.product .woocommerce-tabs,
div.product .related,
div.product .upsells,
div.product > section,
div.product > div:not(.summary):not(.woocommerce-product-gallery) {
	grid-column: 1 / -1;
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
}

.woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	background: var(--ply-soft);
}

.woocommerce-product-gallery .flex-viewport {
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image img {
	border-radius: 0;
}

.woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--radius);
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.2s;
}

.woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs img:hover {
	opacity: 1;
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	font-size: 0;
	text-decoration: none;
}

.woocommerce-product-gallery__trigger::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 11px;
	width: 13px;
	height: 13px;
	border: 2px solid var(--ink);
	border-radius: 50%;
}

.woocommerce-product-gallery__trigger::after {
	content: "";
	position: absolute;
	left: 25px;
	top: 25px;
	width: 2px;
	height: 7px;
	background: var(--ink);
	transform: rotate(-45deg);
}

/* Якщо галерея без слайдера (одне фото або кілька без Flexslider) */
.woocommerce-product-gallery__wrapper:not(.flex-viewport *) {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.woocommerce-product-gallery__wrapper:not(.flex-viewport *) > :first-child {
	grid-column: 1 / -1;
}

.product_title {
	margin-bottom: 0.4em;
	font-size: var(--fs-2xl);
	line-height: 1.1;
}

.summary > .price {
	margin-bottom: 1.2rem;
	font: 600 var(--fs-xl) / 1.2 var(--display);
}

.summary .woocommerce-product-details__short-description {
	margin-bottom: 1.4rem;
	color: var(--text);
}

.summary .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

.summary .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	font-size: var(--fs-sm);
}

form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin: 0 0 1.4rem;
	padding: 18px 0;
	border-block: 1px solid var(--line);
}

form.cart.variations_form {
	display: block;
}

form.cart .quantity {
	flex: 0 0 auto;
}

.quantity .qty {
	width: 84px;
	min-height: 50px;
	text-align: center;
	-moz-appearance: textfield;
}

form.cart .single_add_to_cart_button {
	flex: 1 1 220px;
	min-height: 50px;
	font-size: var(--fs-md);
}

form.cart .button.disabled,
form.cart .button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

table.variations {
	width: 100%;
	margin-bottom: 14px;
	border-collapse: collapse;
}

table.variations th,
table.variations td {
	display: block;
	padding: 0;
	text-align: left;
}

table.variations th.label {
	padding-bottom: 6px;
}

table.variations td.value {
	padding-bottom: 14px;
}

.reset_variations {
	display: inline-block;
	margin-top: 8px;
	font-size: var(--fs-sm);
}

.woocommerce-variation-price {
	margin-bottom: 12px;
	font: 600 var(--fs-lg) / 1.2 var(--display);
}

.woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.stock {
	margin: 0 0 12px;
	font-size: var(--fs-sm);
	font-weight: 600;
}

.stock.in-stock {
	color: var(--ok);
}

.stock.out-of-stock {
	color: var(--sale);
}

.quote-cta {
	margin-bottom: 1.4rem;
	padding: 18px;
	border-radius: var(--radius-lg);
	background: var(--ply-soft);
}

.quote-cta p {
	margin-bottom: 14px;
}

.quote-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.perks {
	display: grid;
	gap: 10px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
	font-size: var(--fs-sm);
}

.perks li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.perks .icon {
	width: 22px;
	height: 22px;
	color: var(--pine);
}

.perks__more {
	margin-bottom: 1.4rem;
	padding-left: 34px;
	font-size: var(--fs-sm);
}

.product_meta {
	display: grid;
	gap: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-size: var(--fs-xs);
	color: var(--muted);
}

.product_meta a {
	color: var(--muted);
}

/* Вкладки */

.woocommerce-tabs {
	margin-top: 24px;
}

.woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--line);
}

.woocommerce-tabs ul.tabs li a {
	display: block;
	margin-bottom: -1px;
	padding: 12px 0;
	border-bottom: 2px solid transparent;
	color: var(--muted);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
	border-bottom-color: var(--ink);
	color: var(--ink);
}

.woocommerce-Tabs-panel {
	max-width: 820px;
	margin-bottom: 40px;
}

.woocommerce-Tabs-panel img {
	height: auto;
	border-radius: var(--radius);
}

table.shop_attributes {
	width: 100%;
	border-collapse: collapse;
}

table.shop_attributes th,
table.shop_attributes td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

table.shop_attributes th {
	width: 35%;
	color: var(--ink);
	font-weight: 600;
}

table.shop_attributes td p {
	margin: 0;
}

/* Відгуки */

#reviews .commentlist {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

#reviews .comment_container {
	display: flex;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

#reviews .avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

#reviews .comment-text {
	flex: 1 1 auto;
	min-width: 0;
}

.comment-form-rating .stars a {
	color: var(--ply);
	text-decoration: none;
	font-size: 0;
}

.comment-form-rating .stars a::before {
	content: "★";
	font-size: 1.4rem;
}

.related > h2,
.upsells > h2,
.cross-sells > h2 {
	margin: 24px 0 24px;
	font-size: var(--fs-xl);
}

/* Кошик ------------------------------------------------------------------- */

.woocommerce-cart-form {
	margin-bottom: 32px;
}

table.shop_table {
	width: 100%;
	margin-bottom: 24px;
	border-collapse: collapse;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	font-size: var(--fs-sm);
}

table.shop_table th,
table.shop_table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: middle;
}

table.shop_table thead th {
	color: var(--muted);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

table.shop_table tr:last-child td {
	border-bottom: 0;
}

table.shop_table .product-thumbnail img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: var(--radius);
}

table.shop_table a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: var(--muted);
	font-size: 1.3rem;
	text-decoration: none;
}

table.shop_table a.remove:hover {
	background: var(--sale);
	color: #fff;
}

table.shop_table .product-name a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

table.shop_table td.actions {
	text-align: right;
}

.coupon {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	float: left;
}

.coupon label {
	display: none;
}

.coupon input {
	width: 200px;
}

.cart-collaterals {
	display: flex;
	justify-content: flex-end;
}

.cart_totals {
	width: 100%;
	max-width: 440px;
}

.cart_totals h2 {
	font-size: var(--fs-xl);
}

.wc-proceed-to-checkout .checkout-button {
	width: 100%;
	min-height: 54px;
	font-size: var(--fs-md);
}

/* Оформлення замовлення -------------------------------------------------- */

form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 0 clamp(24px, 4vw, 56px);
	align-items: start;
}

form.checkout > .woocommerce-NoticeGroup {
	grid-column: 1 / -1;
}

#customer_details {
	grid-column: 1;
	grid-row: 1 / span 2;
}

#order_review_heading,
#order_review {
	grid-column: 2;
}

#order_review {
	padding: 22px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
}

#order_review table.shop_table {
	border: 0;
	border-radius: 0;
}

#order_review_heading {
	margin-top: 0;
	font-size: var(--fs-xl);
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
	font-size: var(--fs-xl);
}

.form-row {
	margin: 0 0 14px;
}

.form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: var(--fs-sm);
}

.form-row .required {
	color: var(--sale);
	text-decoration: none;
}

.form-row-first,
.form-row-last {
	display: inline-block;
	width: calc(50% - 6px);
	vertical-align: top;
}

.form-row-first {
	margin-right: 8px;
}

.woocommerce-invalid input {
	border-color: var(--sale);
}

#payment ul.payment_methods {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

#payment ul.payment_methods li {
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}

#payment .payment_box {
	margin-top: 8px;
	padding: 12px 14px;
	border-radius: var(--radius);
	background: var(--paper);
	font-size: var(--fs-sm);
}

#payment .payment_box p:last-child {
	margin: 0;
}

#place_order {
	width: 100%;
	min-height: 54px;
	font-size: var(--fs-md);
}

.woocommerce-terms-and-conditions-wrapper {
	margin-bottom: 14px;
	font-size: var(--fs-sm);
}

/* Select2 (вибір міста й відділення) */

.select2-container .select2-selection--single {
	height: 46px;
	border: 1px solid #cfcabd;
	border-radius: var(--radius);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 44px;
	padding-left: 0.9em;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 44px;
}

/* Особистий кабінет ------------------------------------------------------- */

.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 32px;
}

.woocommerce-account .woocommerce > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}

.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 12px 4px;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}

.woocommerce-MyAccount-navigation li.is-active a {
	font-weight: 600;
	color: var(--pine);
}

.woocommerce-account:not(.logged-in) .woocommerce {
	display: block;
}

.u-columns.col2-set {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.woocommerce-form-login,
.woocommerce-form-register {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

/* Адаптивність ------------------------------------------------------------ */

@media (max-width: 1100px) {
	ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	ul.products,
	ul.products.columns-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 12px;
	}

	div.product,
	form.checkout,
	.woocommerce-account .woocommerce,
	.u-columns.col2-set,
	.shop--sidebar .container {
		grid-template-columns: minmax(0, 1fr);
	}

	div.product .summary,
	div.product .woocommerce-product-gallery,
	#customer_details,
	#order_review_heading,
	#order_review,
	.shop--sidebar .container > *,
	.shop--sidebar .shop__filters {
		grid-column: 1;
		grid-row: auto;
		position: static;
	}

	div.product .woocommerce-product-gallery {
		margin-bottom: 24px;
	}

	.woocommerce-ordering {
		float: none;
	}

	table.shop_table_responsive thead {
		display: none;
	}

	table.shop_table_responsive tr {
		display: block;
		padding: 10px 0;
		border-bottom: 1px solid var(--line);
	}

	table.shop_table_responsive td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 6px 16px;
		border: 0;
		text-align: right;
	}

	table.shop_table_responsive td::before {
		content: attr(data-title);
		font-weight: 600;
		color: var(--ink);
		text-align: left;
	}

	table.shop_table_responsive td.product-remove::before,
	table.shop_table_responsive td.product-thumbnail::before,
	table.shop_table_responsive td.actions::before {
		display: none;
	}

	table.shop_table_responsive td.actions {
		display: block;
	}

	.coupon {
		float: none;
		width: 100%;
		margin-bottom: 10px;
	}

	.coupon input {
		flex: 1 1 auto;
		width: auto;
	}
}

@media (max-width: 480px) {
	.card__title {
		font-size: var(--fs-sm);
	}

	ul.products li.product .button {
		width: 100%;
		padding-inline: 0.6em;
		font-size: var(--fs-xs);
	}

	.form-row-first,
	.form-row-last {
		display: block;
		width: 100%;
		margin-right: 0;
	}
}

/* Кнопки старих плагінів у картках товарів */
.yith-wcqv-button,
.fami-btn-quickview {
	display: none !important;
}

/* Опис розділу під товарами ---------------------------------------------- */
.archive-about {
	clear: both;
	margin-top: clamp(32px, 5vw, 56px);
	padding-top: clamp(24px, 4vw, 40px);
	border-top: 1px solid var(--line);
}

.archive-about .term-description,
.archive-about .page-description {
	max-width: 80ch;
	margin: 0;
	color: var(--ink);
	opacity: 0.85;
	line-height: 1.7;
}

.archive-about h2,
.archive-about h3 {
	margin-top: 1.4em;
}

/* Ціна за м² */
.price-m2 {
	white-space: nowrap;
}

.price-unit {
	font-size: 0.8em;
	font-weight: 500;
	color: var(--muted);
}

.quote-cta .quote-cta__price {
	margin-bottom: 0.4rem;
	font-size: var(--fs-md);
	color: var(--ink);
}

.quote-cta__price b {
	font-weight: 700;
	white-space: nowrap;
}

/* Форма розрахунку вартості на сторінці товару */
.qform {
	margin-bottom: 12px;
}

.qform > summary {
	list-style: none;
	cursor: pointer;
}

.qform > summary::-webkit-details-marker {
	display: none;
}

.qform[open] > summary {
	display: none;
}

.qform__form {
	padding: 18px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
}

.qform__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.qform__grid label {
	display: grid;
	gap: 4px;
	margin: 0;
	min-width: 0;
}

.qform__grid label > span {
	font-size: var(--fs-xs);
	color: var(--muted);
}

.qform__grid input,
.qform__grid textarea {
	width: 100%;
	margin: 0;
}

.qform__wide {
	grid-column: 1 / -1;
}

.qform__hp {
	position: absolute;
	left: -9999px;
}

.qform__est {
	margin: 14px 0 0 !important;
	padding: 10px 12px;
	border-radius: var(--radius);
	background: var(--pine-soft);
	color: var(--pine);
	font-size: var(--fs-sm);
}

.qform__form .btn {
	width: 100%;
	margin-top: 14px;
}

.quote-cta .qform__note {
	margin: 8px 0 0;
	font-size: var(--fs-xs);
	color: var(--muted);
	text-align: center;
}

.quote-cta .qform__done,
.quote-cta .qform__err {
	padding: 12px 14px;
	border-radius: var(--radius);
	font-weight: 500;
}

.qform__done {
	background: #e3efe6;
	color: var(--ok);
}

.qform__err {
	background: #f6e1dc;
	color: var(--sale);
}

@media (max-width: 480px) {
	.qform__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Ціна за м²: одиниця й символи — окремим рядком, щоб не вилазило за картку */
.price-m2 {
	display: inline-block;
	max-width: 100%;
	white-space: normal;
}

.price-m2 .price-unit {
	display: block;
	margin-top: 3px;
	font-size: 0.62em;
	font-weight: 500;
	line-height: 1.35;
	white-space: normal;
	overflow-wrap: anywhere;
}

ul.products li.product .price-m2 .price-unit {
	font-size: 0.8rem;
}

/* Новинка */
.s4-new {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--pine);
	color: #fff;
	font: 600 12px/1.4 var(--body);
	letter-spacing: 0.02em;
}
.s4-new--below {
	top: 44px;
}
div.product > .s4-new {
	top: 16px;
	left: 16px;
}
div.product > .s4-new--below {
	top: 48px;
}
