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


/* Карточка Mehaten */
.wd-product.wd-hover-mehaten {
	container-type: inline-size;
	--text-align: left;
}

.wd-hover-mehaten .mehaten-card {
	display: flex;
	flex-direction: column;
	gap: 0;
	height: 100%;
	min-width: 0;
	padding: clamp(12px, 4.6cqi, 24px);
	border: 1px solid #e3e9f3;
	border-radius: clamp(18px, 6cqi, 32px);
	background: #fff;
	text-align: left;
}

/* Изображение */
.wd-hover-mehaten .product-element-top {
	flex-shrink: 0;
	margin: 0;
	border-radius: clamp(14px, 4.6cqi, 24px);
	background: #f5f6fa;
}

.wd-hover-mehaten .product-image-link {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
}

.wd-hover-mehaten .product-image-link img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Штатные метки Woodmart */
.wd-hover-mehaten .product-labels {
	top: clamp(10px, 4cqi, 20px);
	inset-inline-start: clamp(10px, 4cqi, 20px);
}

.wd-hover-mehaten .product-label {
	min-width: 0;
	min-height: 0;
	padding: 0.5em 0.75em;
	border-radius: 10px;
	font-size: clamp(12px, 4cqi, 20px);
	font-weight: 700;
	line-height: 1.2;
}

.wd-hover-mehaten .product-label.new {
	background: #209e56;
	color: #fff;
}

/* Содержимое */
.wd-hover-mehaten .mehaten-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: clamp(10px, 2.5cqi, 14px);
	min-height: clamp(220px, 78cqi, 410px);
	padding-top: clamp(18px, 6cqi, 32px);
}

.wd-hover-mehaten .mehaten-card__body > * {
	margin: 0;
}

.wd-hover-mehaten .mehaten-card .wd-product-sku {
	color: #98a0b1;
	font-size: clamp(12px, 4.3cqi, 22px);
	font-weight: 400;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.wd-hover-mehaten .wd-product-sku .wd-label {
	color: inherit;
	font-weight: inherit;
}

.wd-hover-mehaten .mehaten-card .wd-entities-title {
	margin: 0;
	color: #171e2a;
	font-size: clamp(16px, 5.4cqi, 28px);
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.wd-hover-mehaten .wd-entities-title a {
	color: inherit;
}

.wd-hover-mehaten .wd-entities-title a:hover {
	color: #1e5bea;
}

/* Характеристики */
.wd-hover-mehaten .mehaten-card__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.wd-hover-mehaten .mehaten-card__specs li {
	margin: 0;
	padding: 0.45em 0.7em;
	border-radius: 12px;
	background: #f5f6fa;
	color: #30394a;
	font-size: clamp(12px, 4.3cqi, 22px);
	line-height: 1.2;
}

/* Наличие */
.wd-hover-mehaten .mehaten-card .wd-product-stock {
	margin: 6px 0 0;
	font-size: clamp(14px, 4.6cqi, 24px);
	font-weight: 600;
	line-height: 1.3;
}

.wd-hover-mehaten .wd-product-stock.in-stock {
	color: #209e56;
}

.wd-hover-mehaten .wd-product-stock.out-of-stock {
	color: #b91c1c;
}

.wd-hover-mehaten .wd-product-stock.available-on-backorder {
	color: #a66a13;
}

.wd-hover-mehaten .mehaten-card .wd-product-stock::before {
	display: inline-block;
	width: 0.6em;
	height: 0.6em;
	margin-inline-end: 0.5em;
	border-radius: 50%;
	background: currentColor;
	content: "";
	vertical-align: 0.05em;
}

/* Цена и покупка */
.wd-hover-mehaten .mehaten-card__buy {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 24px;
}

.wd-hover-mehaten .mehaten-card__price {
	flex: 1 1 120px;
	min-width: 0;
}

.wd-hover-mehaten .mehaten-card__price .price {
	margin: 0;
	color: #171e2a;
	font-size: clamp(26px, 8cqi, 42px);
	font-weight: 700;
	line-height: 1.15;
}

.wd-hover-mehaten .mehaten-card__price :is(.amount, ins) {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.wd-hover-mehaten .mehaten-card__price del {
	display: block;
	margin-bottom: 4px;
	color: #98a0b1;
	font-size: 0.52em;
	font-weight: 400;
}

.wd-hover-mehaten .mehaten-card__price .wd-price-unit {
	margin-inline-start: 0.2em;
	color: #98a0b1;
	font-size: 0.52em;
	font-weight: 400;
}

/* Используем существующую иконку и состояния кнопки Woodmart */
.wd-hover-mehaten .mehaten-card__cart {
	flex: 0 0 auto;
	margin: 0;
	--wd-action-icon-size: clamp(22px, 7cqi, 36px);
	--wd-action-icon-color: #fff;
	--wd-action-icon-color-hover: #fff;
	--wd-action-color: #fff;
	--wd-action-color-hover: #fff;
}

.wd-hover-mehaten .mehaten-card__cart.wd-action-btn .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	min-height: 44px;
	padding: 12px 16px;
	border: 0;
	border-radius: 14px;
	background: #1e5bea;
	color: #fff;
	box-shadow: none;
}

.wd-hover-mehaten .mehaten-card__cart.wd-action-btn .button:hover {
	background: #164bcc;
}

.wd-hover-mehaten .mehaten-card__cart--icon.wd-action-btn .button {
	width: clamp(44px, 18cqi, 96px);
	height: clamp(44px, 18cqi, 96px);
	padding: 0;
	border-radius: clamp(14px, 4.6cqi, 24px);
}

/* Текст остаётся доступным скринридерам */
.wd-hover-mehaten .mehaten-card__cart--icon .wd-action-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}


.elementor-widget-mehaten_category_card,
.elementor-widget-mehaten_category_card > .elementor-widget-container {
	height: 100%;
}

.mehaten-category-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	box-sizing: border-box;
	height: 100%;
	min-width: 0;
	color: #171e2a;
	text-align: start;
	text-decoration: none;
	overflow-wrap: anywhere;
}

a.mehaten-category-card:hover {
	border-color: #1e63ff;
	color: #171e2a;
}

a.mehaten-category-card:focus-visible {
	outline: 3px solid #1e63ff;
	outline-offset: 4px;
}

.mehaten-category-card__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin-bottom: 24px;
	border-radius: 12px;
	color: #1e63ff;
	font-size: 34px;
	line-height: 1;
}

.mehaten-category-card__icon--background {
	background: #edf4ff;
}

.mehaten-category-card__icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.mehaten-category-card .mehaten-category-card__title {
	margin: 0 0 8px;
	color: #171e2a;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
}

.mehaten-category-card .mehaten-category-card__text {
	margin: 0 0 12px;
	color: #6b7280;
	font-size: 24px;
	line-height: 1.4;
}

.mehaten-category-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #e1e7f0;
	color: #6b7280;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
}


.mehaten-category-card__arrow {
	flex: 0 0 auto;
	color: #1e63ff;
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
}

@media (max-width: 767px) {
	.mehaten-category-card {
		padding: 24px;
		border-radius: 24px;
	}

	.mehaten-category-card .mehaten-category-card__title {
		font-size: 26px;
	}

	.mehaten-category-card .mehaten-category-card__text,
	.mehaten-category-card__footer {
		font-size: 20px;
	}
}