/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.min-footer .it-aegis-credit {
	font-size: 12px;
	opacity: 0.6;
}

.min-footer .it-aegis-credit a {
	color: inherit;
	text-decoration: none;
}

.min-footer .it-aegis-credit a:hover {
	opacity: 1;
	text-decoration: underline;
}

/* Попап о переезде магазина (сессия) — основные стили дублируются инлайном в footer */
.kt-relocate-open {
	overflow: hidden !important;
}

.kt-relocate-open .scrollToTop,
.kt-relocate-open .wd-sticky-nav,
.kt-relocate-open .wd-toolbar,
.kt-relocate-open .sticky-toolbar {
	visibility: hidden !important;
	pointer-events: none !important;
	opacity: 0 !important;
}

#kt-relocate-popup {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483647 !important;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	margin: 0 !important;
	isolation: isolate;
}

#kt-relocate-popup.is-open {
	display: flex !important;
}

.kt-relocate-popup__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}

.kt-relocate-popup__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(520px, 100%);
	max-height: min(90dvh, 720px);
	overflow: hidden;
	padding: 0;
	border-radius: 12px;
	background: #fff;
	color: #1a1a1a;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
	animation: kt-relocate-in 0.35s ease;
}

@keyframes kt-relocate-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.kt-relocate-popup__media {
	display: block;
	flex: 0 0 auto;
	width: 100%;
	height: clamp(110px, 18vh, 160px);
	object-fit: cover;
	border-radius: 12px 12px 0 0;
}

.kt-relocate-popup__inner {
	flex: 1 1 auto;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	padding: 16px 24px 20px;
	overscroll-behavior: contain;
}

.kt-relocate-popup__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.92);
	color: #666;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.kt-relocate-popup__close:hover {
	background: #fff;
	color: #111;
}

.kt-relocate-popup__eyebrow {
	margin: 0 0 6px;
	color: rgb(18, 70, 171);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.kt-relocate-popup__title {
	margin: 0 0 12px;
	padding-right: 28px;
	color: #121212;
	font-size: clamp(1.15rem, 2.5vw, 1.45rem);
	line-height: 1.25;
	font-weight: 700;
}

.kt-relocate-popup__body {
	font-size: 14px;
	line-height: 1.5;
}

.kt-relocate-popup__body p {
	margin: 0 0 10px;
}

.kt-relocate-popup__subtitle {
	margin-top: 14px !important;
	margin-bottom: 6px !important;
	color: #121212;
	font-size: 14px;
	font-weight: 700;
}

.kt-relocate-popup__address {
	margin: 10px 0 !important;
	padding: 12px 14px;
	border-left: 3px solid rgb(18, 70, 171);
	background: #f4f7fc;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.kt-relocate-popup__address span {
	display: inline-block;
	margin-top: 2px;
	color: #555;
	font-size: 13px;
	font-weight: 400;
}

.kt-relocate-popup__date {
	margin: 0 !important;
}

@media (max-width: 600px) {
	#kt-relocate-popup {
		align-items: stretch;
		justify-content: stretch;
		padding: 0 !important;
	}

	.kt-relocate-popup__dialog {
		width: 100% !important;
		height: 100% !important;
		max-height: none !important;
		min-height: 100% !important;
		min-height: 100dvh !important;
		border-radius: 0 !important;
		box-shadow: none;
	}

	.kt-relocate-popup__media {
		height: 28vw;
		max-height: 140px;
		min-height: 100px;
		border-radius: 0;
	}

	.kt-relocate-popup__inner {
		padding: 16px 18px max(20px, env(safe-area-inset-bottom));
	}

	.kt-relocate-popup__close {
		top: max(10px, env(safe-area-inset-top));
		right: max(10px, env(safe-area-inset-right));
	}

	.kt-relocate-popup__title {
		margin: 0 0 10px;
		font-size: 1.25rem;
	}

	.kt-relocate-popup__body {
		font-size: 15px;
		line-height: 1.5;
	}

	.kt-relocate-popup__body p {
		margin: 0 0 12px;
	}

	.kt-relocate-popup__address {
		margin: 12px 0 !important;
		padding: 14px 16px;
		font-size: 16px;
	}
}

/* Страница 404 */
.error404 .page-header h1.title {
	position: relative;
	padding: 1.5em 0;
	text-align: center;
	text-transform: uppercase;
	font-weight: 900;
	font-size: inherit;
	line-height: 1;
	color: var(--wd-primary-color, #1246ab);
}

.kt-404__content {
	max-width: 720px;
	margin: 0 auto 60px;
	padding: 0 16px 40px;
	text-align: center;
}

.kt-404__lead {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.5;
	color: #444;
}

.kt-404__search {
	margin: 0 auto 28px;
	max-width: 480px;
}

.kt-404__cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.kt-404__cats a {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #d9e2f2;
	border-radius: 8px;
	background: #f4f7fc;
	color: #1246ab;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.kt-404__cats a:hover {
	background: #1246ab;
	border-color: #1246ab;
	color: #fff;
}

.kt-404__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 20px;
}

.kt-404__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 18px;
	border-radius: 8px;
	background: #1246ab;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}

.kt-404__btn--ghost {
	background: #fff;
	border: 1px solid #1246ab;
	color: #1246ab !important;
}

.kt-404__phone {
	margin: 0;
	font-size: 14px;
	color: #555;
}

.kt-404__phone a {
	color: #1246ab;
	font-weight: 600;
	text-decoration: none;
}

/* Каталог: кнопки на одном уровне */
.wd-products .wd-product {
	height: 100%;
}

.wd-products .wd-product .product-wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.wd-products .wd-product.wd-hover-fw-button .product-element-bottom {
	flex: 1 1 auto;
}

.wd-products[class*="wd-stretch-cont"] .wd-product.wd-hover-fw-button :is(.price, .wrap-price, .product-rating-price) {
	margin-top: 0 !important;
}

.wd-products .wd-product.wd-hover-fw-button .wd-add-btn {
	margin-top: auto;
	width: 100%;
}

.wd-products .wd-product.wd-hover-fw-button .wd-product-sku {
	min-height: 1.4em;
}

.wd-products .wd-product.wd-hover-fw-button .wd-product-sku--empty {
	visibility: hidden;
}

/* Описание товара: абзацы и список характеристик */
.woocommerce-Tabs-panel--description p,
.wd-single-content p,
.elementor-widget-wd_single_product_content p,
#tab-description p {
	margin: 0 0 0.9em;
	line-height: 1.55;
}

.woocommerce-Tabs-panel--description h3,
.wd-single-content h3,
.elementor-widget-wd_single_product_content h3,
#tab-description h3 {
	margin: 1.35em 0 0.65em;
	font-size: 1.15em;
	font-weight: 700;
	color: #121212;
}

.kt-product-specs {
	margin: 0 0 1.2em;
	padding: 0;
	list-style: none;
}

.kt-product-specs li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em 0.85em;
	padding: 0.5em 0;
	border-bottom: 1px dashed #e2e8f0;
	line-height: 1.45;
}

.kt-product-specs li strong {
	flex: 0 0 11em;
	max-width: 42%;
	font-weight: 600;
	color: #121212;
}
