/*
Theme Name:   Iluproff Child
Theme URI:    https://gblab.ee
Description:  Iluproff e-poe alamteema: mallid, CSS ja väljund. Äriloogika on pluginas iluproff-shop.
Author:       GB Lab
Author URI:   https://gblab.ee
Template:     iluproff
Version:      0.3.0
Requires PHP: 8.1
Text Domain:  iluproff-child
Update URI:   false
*/

/*
 * Основные настройки дизайна (цвета, шрифт, кнопки, сетка) — в настройках темы (Theme Settings) и Header builder.
 * Здесь только то, чего нет в настройках: детали как на shop.iluproff.ee.
 */

:root {
	--ilu-navy: #012561;
	--ilu-ink: #121212;
	--ilu-muted: #7d7d84;
	--ilu-line: #e6e6ea;
	--ilu-sale: #cb190c;
	--ilu-new: #1d7a46;
	--ilu-top: #1f4fb8;
	/* Полоса «Tasuta tarne…» над шапкой: шампань под тёмно-синий. */
	--ilu-strip-bg: #f1e2c0;
	--ilu-strip-line: #e2cb95;
	--ilu-strip-ink: var(--ilu-navy);
}

/* ---------- Полоса над шапкой (Woodmart → Theme Settings → Header banner, текст [ilu_free_shipping]) ---------- */

body {
	--wd-hb-opt-h: 34px;
}

.wd-hb-wrapp .wd-hb {
	background: var(--ilu-strip-bg);
	border-bottom: 1px solid var(--ilu-strip-line);
	color: var(--ilu-strip-ink);
}

/*
 * Полоса всегда видна при прокрутке, на компьютере и телефоне (Георг, 2026-11-23): sticky у прямого потомка body
 * (у body overflow-x: clip — sticky работает), над липкой шапкой темы (z-index .whb-main-header = 390).
 * Липкая шапка Woodmart (position: fixed при прокрутке) встаёт под полосу.
 */
.wd-hb-wrapp.wd-display {
	position: sticky;
	top: var(--wd-admin-bar-h, 0px);
	z-index: 395;
}

.wd-hb-wrapp.wd-display ~ .wd-page-wrapper :is(.whb-clone, .whb-sticked .whb-main-header) {
	top: calc(var(--wd-admin-bar-h, 0px) + var(--wd-hb-opt-h));
}

.wd-hb .container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.ilu-freeship {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: inherit;
}

.ilu-freeship strong {
	font-weight: 800;
	white-space: nowrap;
}

.ilu-freeship__icon {
	flex: none;
}

@media (max-width: 768.98px) {
	body {
		--wd-hb-opt-h: 32px;
	}

	.wd-hb .container {
		padding-inline: 12px;
	}

	.ilu-freeship {
		gap: 6px;
		font-size: 12px;
		letter-spacing: .02em;
	}

	.ilu-freeship__icon {
		width: 18px;
		height: 18px;
	}
}

/* «Tasuta» у способа доставки в корзине и кассе. */
.ilu-ship-free {
	font-weight: 700;
	color: var(--ilu-new);
}

/* ---------- Шапка ---------- */

/* Логотип: у SVG нет собственной ширины во flex-колонке — задаём явно. */
.whb-ilulogodesktop .wd-logo img {
	width: 230px;
	height: auto;
}

.whb-ilulogomobile .wd-logo img {
	width: 130px;
	height: auto;
}

/* Переключатель языка [iluproff_lang_dropdown] в группе иконок шапки. */
.ilu-langdd {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.ilu-langdd .ilu-langdd__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	margin: 0;
	padding: 0 10px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--ilu-ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
}

.ilu-langdd .ilu-langdd__btn:hover {
	background: none;
	color: var(--ilu-navy);
}

.ilu-langdd .ilu-langdd__btn:focus-visible,
.ilu-langdd__link:focus-visible {
	outline: 2px solid var(--ilu-navy);
	outline-offset: 2px;
}

.ilu-langdd__caret {
	transition: transform .2s ease;
}

.ilu-langdd.is-open .ilu-langdd__caret {
	transform: rotate(180deg);
}

.ilu-langdd__menu {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 500;
	min-width: 170px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.ilu-langdd.is-open .ilu-langdd__menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* Запасной вариант без JS — по наведению мышью. */
@media (hover: hover) {
	.ilu-langdd:hover .ilu-langdd__menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

.ilu-langdd__menu li {
	margin: 0;
}

.ilu-langdd__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 18px;
	color: var(--ilu-ink);
	font-size: 14px;
	line-height: 1.3;
}

.ilu-langdd__link:hover,
.ilu-langdd__link.is-current {
	background: #f4f5f8;
	color: var(--ilu-navy);
}

.ilu-langdd__link.is-current {
	font-weight: 700;
}

.ilu-langdd__code {
	min-width: 22px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ilu-muted);
}

@media (max-width: 1024px) {
	.ilu-langdd .ilu-langdd__btn {
		gap: 4px;
		padding: 0 6px;
		font-size: 12px;
	}

	.ilu-langdd__caret {
		display: none;
	}
}

.ilu-header-contact {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
	font-size: 14px;
}

.ilu-header-contact a {
	color: var(--ilu-navy);
}

.ilu-header-contact__phone {
	font-weight: 500;
}

.ilu-header-contact__msg {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ilu-phone-icon {
	display: inline-flex;
	align-items: center;
	color: var(--ilu-ink);
}

/* Синяя полоса меню: пункты по центру, заглавные, белые. */
.whb-header-bottom .wd-nav-main {
	justify-content: center;
}

.whb-header-bottom .wd-nav-main > li > a {
	padding-inline: 18px;
	letter-spacing: .02em;
}

/* Меню всегда в одну строку: на узких ноутбуках (1025–1279 px) пункты плотнее, без переноса на вторую строку. */
@media (min-width: 1025px) {
	.whb-header-bottom .wd-nav-main {
		flex-wrap: nowrap;
		white-space: nowrap;
	}
}

@media (min-width: 1025px) and (max-width: 1279px) {
	.whb-header-bottom .wd-nav-main {
		column-gap: 6px;
	}

	.whb-header-bottom .wd-nav-main > li > a {
		padding-inline: 10px;
		font-size: 13px;
		letter-spacing: .01em;
	}
}

/* На мобильных нижняя строка шапки — белая, с поиском на всю ширину. */
@media (max-width: 1024px) {
	.whb-header-bottom,
	.whb-header-bottom .whb-flex-row {
		background-color: #fff !important;
	}

	.whb-header-bottom .wd-search-form,
	.whb-header-bottom .searchform {
		width: 100%;
	}
}

/* ---------- Объём и тип кожи/волос под кратким описанием (вместо вкладки «Lisainfo») ---------- */

.single-product .summary .shop_attributes {
	width: auto;
	margin: 0 0 20px;
	border: 0;
}

.single-product .summary .shop_attributes tr {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	border: 0;
}

.single-product .summary .shop_attributes th,
.single-product .summary .shop_attributes td {
	width: auto;
	padding: 3px 0;
	border: 0;
	background: none;
	font-size: 14px;
	line-height: 1.5;
	text-align: start;
}

.single-product .summary .shop_attributes th {
	color: var(--ilu-muted);
	font-weight: 400;
	text-transform: none;
}

.single-product .summary .shop_attributes th .wd-attr-name::after {
	content: ":";
}

.single-product .summary .shop_attributes td {
	color: var(--ilu-ink);
	font-weight: 600;
}

/* ---------- Цена в карточке товара (страница товара) ---------- */

.single-product .summary .price {
	color: var(--ilu-ink);
	font-weight: 700;
}

.single-product .summary .price del {
	color: #9c9ca1;
	font-weight: 400;
}

.single-product .summary .price ins {
	text-decoration: none;
}

.ilu-b2b-note {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--ilu-navy);
}

/* ---------- Карточка товара ---------- */

.ilu-single-sku {
	margin: -6px 0 14px;
	font-size: 13px;
	color: var(--ilu-muted);
}

/* Бренд после краткого описания: «Bränd: HydroPeptide ›» — простая ссылка со стрелкой на страницу бренда,
 * без рамки; при наведении чуть темнее, стрелка слегка сдвигается. */
.ilu-single-brand {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
}

.ilu-single-brand__label {
	color: var(--ilu-muted);
}

.single-product .ilu-single-brand .ilu-single-brand__link {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ilu-navy);
	font-weight: 600;
	text-decoration: none;
	transition: color .15s ease;
}

.single-product .ilu-single-brand .ilu-single-brand__link svg {
	transition: transform .15s ease;
}

.single-product .ilu-single-brand .ilu-single-brand__link:hover {
	color: #00143a;
}

.single-product .ilu-single-brand .ilu-single-brand__link:hover svg {
	transform: translateX(2px);
}

.single-product .ilu-single-brand .ilu-single-brand__link:focus-visible {
	outline: 2px solid var(--ilu-navy);
	outline-offset: 3px;
	border-radius: 2px;
}

@media (pointer: coarse) {
	.single-product .ilu-single-brand .ilu-single-brand__link {
		min-height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.single-product .ilu-single-brand .ilu-single-brand__link,
	.single-product .ilu-single-brand .ilu-single-brand__link svg {
		transition: none;
	}
}

.ilu-sale-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: -8px 0 16px;
	font-size: 13px;
	color: var(--ilu-muted);
}

.ilu-sale-info__saved .amount {
	color: var(--ilu-sale);
	font-weight: 600;
}

.ilu-desc-intro {
	margin-bottom: 18px;
}

.ilu-desc-section {
	border-top: 1px solid var(--ilu-line);
}

.ilu-desc-section:last-child {
	border-bottom: 1px solid var(--ilu-line);
}

.ilu-desc-section__title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--ilu-ink);
	cursor: pointer;
	list-style: none;
}

.ilu-desc-section__title::-webkit-details-marker {
	display: none;
}

/* H2 раздела описания выглядит как прежняя подпись summary (SEO: структура заголовков). */
.ilu-desc .ilu-desc-section .ilu-desc-section__heading {
	margin: 0;
	padding: 0;
	font: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: none;
	color: inherit;
}

/* Крупный плюс в круге; при раскрытии вертикальная черта сворачивается — получается минус. */
.ilu-desc-section__title::after {
	content: "";
	flex: none;
	width: 36px;
	height: 36px;
	border: 1.5px solid var(--ilu-line);
	border-radius: 50%;
	background:
		linear-gradient(var(--ilu-navy), var(--ilu-navy)) center / 14px 2px no-repeat,
		linear-gradient(var(--ilu-navy), var(--ilu-navy)) center / 2px 14px no-repeat;
	transition: background-size .2s ease, border-color .2s ease;
}

.ilu-desc-section__title:hover::after {
	border-color: var(--ilu-navy);
}

.ilu-desc-section[open] > .ilu-desc-section__title::after {
	background-size: 14px 2px, 2px 0;
}

.ilu-desc-section__body {
	padding-bottom: 16px;
}

.ilu-desc-section__body > :last-child {
	margin-bottom: 0;
}

/* ---------- Главная ---------- */

.ilu-promo-strip {
	padding: 10px 16px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ilu-navy);
}

.ilu-section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}

.ilu-section-head a {
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 2px;
	color: var(--ilu-ink);
}

/* Ряд главной без товаров (нет скидок, пустой TOP) — без заголовка и ссылки «Kõik …» (2026-11-23). */
.ilu-section-head:has(+ .elementor-widget-wd_products):not(:has(+ .elementor-widget-wd_products .wd-product)) {
	display: none;
}

/* ---------- Индекс брендов [product_brand_list] ---------- */

#brands_a_z .brands_index {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

#brands_a_z .brands_index a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--ilu-line);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ilu-ink);
}

#brands_a_z .brands_index a:hover {
	border-color: var(--ilu-navy);
	background: var(--ilu-navy);
	color: #fff;
}

#brands_a_z h3 {
	margin: 28px 0 12px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--ilu-line);
	text-transform: uppercase;
}

#brands_a_z ul.brands {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 8px 24px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

#brands_a_z a.top {
	font-size: 12px;
	color: var(--ilu-muted);
}



/* Выпадающие «мегаменю» Каталог и Бренды: обычный dropdown темы, но в колонки (как на оригинале). */
.wd-nav-main > .ilu-mega-cols > .wd-dropdown-menu.wd-design-default {
	width: auto;
}

.wd-nav-main > .ilu-mega-cols--catalog > .wd-dropdown-menu .wd-sub-menu {
	width: 460px;
	columns: 2;
	column-gap: 24px;
}

/* Бренды открываются от левого края пункта (раньше right: 0 — на любом экране список уходил за левый край,
   2026-11-23). Если окно узкое, скрипт iluproff-child-megafit (inc/setup.php) сдвигает список внутрь окна. */
.wd-nav-main > .ilu-mega-cols--brands > .wd-dropdown-menu {
	left: 0;
	right: auto;
}

.wd-nav-main > .ilu-mega-cols--brands > .wd-dropdown-menu .wd-sub-menu {
	width: min(860px, calc(100vw - 72px));
	columns: 4;
	column-gap: 24px;
}

.ilu-mega-cols .wd-sub-menu > li {
	break-inside: avoid;
}

.wd-nav-main > .ilu-nolink > a {
	cursor: default;
}

/* ---------- Подвал: 4 колонки + строка реквизитов (синий фон задан в Theme Settings) ---------- */

.ilu-footer {
	color: rgb(255 255 255 / 82%);
	font-size: 14px;
	line-height: 1.6;
}

.ilu-footer a {
	color: #fff;
}

.ilu-footer a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ilu-footer p {
	margin-bottom: 12px;
}

.ilu-footer.ilu-footer__top {
	display: grid !important;
	grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
	gap: 32px 48px;
	margin: 0;
	padding: 48px 0 36px;
}

.ilu-footer__top > .wp-block-column {
	min-width: 0;
	margin: 0;
}

.ilu-footer__logo {
	margin: 0 0 18px;
}

.ilu-footer__logo img {
	display: block;
	width: 190px;
	max-width: 100%;
	height: auto;
}

.ilu-footer__tagline {
	max-width: 300px;
	font-size: 13px;
}

.ilu-footer__title {
	margin-bottom: 16px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ilu-footer__title a {
	text-decoration: none;
}

.ilu-footer__subtitle {
	margin: 22px 0 6px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ilu-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ilu-footer__links li {
	margin: 0 0 9px;
	line-height: 1.4;
}

.ilu-footer__links a {
	color: rgb(255 255 255 / 82%);
}

.ilu-footer__links a:hover {
	color: #fff;
}

.ilu-footer__phone {
	font-size: 18px;
	font-weight: 700;
}

.ilu-footer__salon {
	font-size: 13px;
}

.ilu-footer.ilu-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 32px;
	padding: 18px 0 22px;
	border-top: 1px solid rgb(255 255 255 / 18%);
	font-size: 12px;
	color: rgb(255 255 255 / 65%);
}

.ilu-footer__bottom p {
	margin: 0;
}

.ilu-footer__legal {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

/* Подпись разработчика: справа в строке реквизитов, чуть прозрачнее, подчёркивание только при наведении. */
.ilu-footer__credit {
	align-self: center;
	color: rgb(255 255 255 / 50%);
	white-space: nowrap;
}

.ilu-footer .ilu-footer__credit a {
	color: rgb(255 255 255 / 70%);
	text-decoration: none;
}

.ilu-footer .ilu-footer__credit a:hover,
.ilu-footer .ilu-footer__credit a:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 1024px) {
	.ilu-footer.ilu-footer__top {
		grid-template-columns: 1fr 1fr;
		padding-top: 36px;
	}
}

@media (max-width: 575px) {
	.ilu-footer.ilu-footer__top {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 32px 0 24px;
	}

	.ilu-footer.ilu-footer__bottom {
		flex-direction: column;
	}

	.ilu-footer__credit {
		align-self: stretch;
		margin-top: 8px !important;
		text-align: center;
	}
}

/* Тема оборачивает HTML-блок подвала в контейнер с отступами — убираем лишние. */
.footer-container .main-footer {
	padding-block: 0;
}

/* ---------- B2B (модуль iluproff-shop/B2b) ---------- */

.ilu-b2b-single {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 6px 0 18px;
}

.ilu-b2b-cta {
	display: inline-block;
	padding: 10px 14px;
	border: 1px solid var(--ilu-line);
	border-left: 3px solid var(--ilu-navy);
	background: #f6f7fb;
	font-size: 14px;
	line-height: 1.45;
	color: var(--ilu-ink);
}

.ilu-b2b-cta a {
	color: var(--ilu-navy);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ilu-b2b-cta--pending {
	border-left-color: #c58a00;
	background: #fffaf0;
}

.ilu-b2b-ask {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 22px;
	background: var(--ilu-navy);
	color: #fff;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.ilu-b2b-ask:hover {
	color: #fff;
	opacity: .9;
}


/* =====================================================================
 * Карточки товаров — единый вид в каталоге и каруселях главной (hover «standard» темы).
 * Фото → название → код → цена. Цена всегда видна и стоит на одном уровне в ряду.
 * Мышь: при наведении карточка приподнимается с тенью, белый блок «название/код/цена» плавно
 * поднимается на высоту кнопки (чуть заезжая на фото), под ценой выезжает кнопка на всю ширину.
 * В обычном состоянии кнопка спрятана за нижним краем (overflow:hidden) — пустого места под ценой нет,
 * высота карточки не меняется. Тач: кнопка под ценой видна всегда, без сдвигов.
 * ===================================================================== */

/* Ряды одной высоты: в сетке и в каруселях темы (слайды растягиваем). */
.wd-carousel .wd-carousel-wrap {
	align-items: stretch;
}

.wd-carousel .wd-carousel-wrap > .wd-carousel-item {
	display: flex;
	height: auto !important;
	align-self: stretch !important;
}

/* Карточки в сетке каталога тоже растягиваем на высоту ряда (тема ставит align-items:start). */
.wd-products > .wd-product.wd-hover-standard {
	align-self: stretch;
}

.wd-product.wd-hover-standard {
	--ilu-btn-h: 40px;
	--ilu-btn-gap: 8px;
	--ilu-shift: calc(var(--ilu-btn-h) + var(--ilu-btn-gap));
	--ilu-ease: cubic-bezier(.2, .7, .2, 1);
	display: flex;
	flex-direction: column;
	width: 100%;
}

.wd-product.wd-hover-standard .wd-product-wrapper {
	position: relative;
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(0, 1fr);
	/* фото | название | код | гибкий отступ | цена | (кнопка на тач) */
	grid-template-rows: auto auto auto 1fr auto auto;
	gap: 0;
	padding: 10px 10px 14px;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
	text-align: center;
	transition: transform .3s var(--ilu-ease), box-shadow .3s var(--ilu-ease);
}

/* Белая «подложка» под названием/кодом/ценой — при наведении поднимается вместе с ними и закрывает низ фото. */
.wd-product.wd-hover-standard .wd-product-wrapper::before {
	content: "";
	grid-row: 2 / 6;
	grid-column: 1;
	z-index: 1;
	margin: 0 -10px -14px;
	border-radius: 10px 10px 0 0;
	background: #fff;
	transition: transform .3s var(--ilu-ease), box-shadow .3s var(--ilu-ease);
	pointer-events: none;
}

.wd-product.wd-hover-standard .wd-product-thumb {
	grid-row: 1;
	grid-column: 1;
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
}

.wd-product.wd-hover-standard .wd-entities-title,
.wd-product.wd-hover-standard .wd-product-sku,
.wd-product.wd-hover-standard .price {
	position: relative;
	z-index: 2;
	grid-column: 1; /* явно: иначе подложка ::before в той же ячейке выдавливает их в новую колонку */
	transition: transform .3s var(--ilu-ease);
}

.wd-product.wd-hover-standard .wd-entities-title {
	grid-row: 2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	margin: 0;
	padding-top: 12px;
	color: var(--ilu-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
}

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

/* «Tootekood: XXX» — одной строкой, мелко и серо (подпись и номер одним стилем). */
.wd-product .wd-product-sku {
	grid-row: 3;
	display: block;
	margin: 0;
	padding-top: 3px;
	color: #a2a2aa;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: .01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wd-product .wd-product-sku .wd-label,
.wd-product .wd-product-sku .wd-sku {
	color: inherit;
	font: inherit;
}

/* Цена — крупно, всегда внизу карточки (ровно в ряду). */
.wd-product.wd-hover-standard .price {
	grid-row: 5;
	align-self: end;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 0 8px;
	margin: 0;
	padding-top: 8px;
	color: var(--ilu-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
}

.wd-product.wd-hover-standard .price ins {
	order: 1;
	text-decoration: none;
}

.wd-product.wd-hover-standard .price del {
	order: 2;
	color: #9c9ca1;
	font-size: 13px;
	font-weight: 400;
}

.wd-product.wd-hover-standard .price .ilu-b2b-note {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3; /* длинная B2B-подпись в карточке — максимум 3 строки, полный текст на странице товара */
	line-clamp: 3;
	overflow: hidden;
	color: var(--ilu-navy);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
}

/* Кнопка «Lisa ostukorvi» / B2B — под ценой, на всю ширину. */
.wd-product.wd-hover-standard .wd-add-btn {
	z-index: 3;
	margin: 0;
}

.wd-product.wd-hover-standard .wd-add-btn > a.button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: var(--ilu-btn-h);
	height: var(--ilu-btn-h);
	padding: 0 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* B2B-кнопка модуля B2B — тот же размер, светлый вариант с синей обводкой. */
.wd-product.wd-hover-standard .wd-add-btn > a.ilu-b2b-loop-btn {
	border: 1px solid var(--ilu-navy);
	background: #fff;
	color: var(--ilu-navy);
}

.wd-product.wd-hover-standard .wd-add-btn > a.ilu-b2b-loop-btn:hover {
	background: var(--ilu-navy);
	color: #fff;
}

.wd-product.wd-hover-standard .wd-add-btn > a.ilu-b2b-loop-btn.is-pending {
	border-color: #c58a00;
	color: #7a5500;
}

/* Сердечко «в избранное» — круглый значок в правом верхнем углу фото. */
.wd-product.wd-hover-standard .wd-buttons {
	top: 8px;
	right: 8px;
	z-index: 3;
	border-radius: 50%;
	background: rgb(255 255 255 / 92%);
	box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

/* Бейджи акции/новинки. */
.wd-product .product-labels {
	top: 8px;
	left: 8px;
}

.wd-product .product-labels .product-label {
	min-width: 0;
	min-height: 0;
	padding: 4px 7px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: .02em;
}

.wd-product .product-labels .onsale {
	background-color: var(--ilu-sale);
}

/* Плашка «новинка» — отдельный блок «Плашка NEW» в конце файла. */

/* ---- Мышь: эффект при наведении ---- */
@media (hover: hover) and (pointer: fine) {
	/* Кнопка спрятана за нижним краем карточки и не занимает места. */
	.wd-product.wd-hover-standard .wd-add-btn {
		position: absolute;
		right: 10px;
		bottom: 14px;
		left: 10px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(calc(100% + 14px));
		transition: transform .3s var(--ilu-ease), opacity .2s ease, visibility .3s;
	}

	.wd-product.wd-hover-standard .wd-buttons {
		opacity: 0;
		visibility: hidden;
		transform: translateY(-4px);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}

	.wd-product.wd-hover-standard:hover .wd-product-wrapper,
	.wd-product.wd-hover-standard:focus-within .wd-product-wrapper {
		transform: translateY(-4px);
		box-shadow: 0 14px 32px rgb(1 37 97 / 12%), 0 2px 6px rgb(1 37 97 / 6%);
	}

	/* Название/код/цена и белая подложка поднимаются на высоту кнопки. */
	.wd-product.wd-hover-standard:hover .wd-product-wrapper::before,
	.wd-product.wd-hover-standard:hover .wd-entities-title,
	.wd-product.wd-hover-standard:hover .wd-product-sku,
	.wd-product.wd-hover-standard:hover .price,
	.wd-product.wd-hover-standard:focus-within .wd-product-wrapper::before,
	.wd-product.wd-hover-standard:focus-within .wd-entities-title,
	.wd-product.wd-hover-standard:focus-within .wd-product-sku,
	.wd-product.wd-hover-standard:focus-within .price {
		transform: translateY(calc(-1 * var(--ilu-shift)));
	}

	.wd-product.wd-hover-standard:hover .wd-product-wrapper::before,
	.wd-product.wd-hover-standard:focus-within .wd-product-wrapper::before {
		box-shadow: 0 -8px 16px rgb(1 37 97 / 6%);
	}

	.wd-product.wd-hover-standard:hover .wd-add-btn,
	.wd-product.wd-hover-standard:focus-within .wd-add-btn,
	.wd-product.wd-hover-standard:hover .wd-buttons,
	.wd-product.wd-hover-standard:focus-within .wd-buttons {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

/* ---- Тач: кнопка под ценой видна всегда, компактная; сердечко видно всегда ---- */
@media (hover: none), (pointer: coarse) {
	.wd-product.wd-hover-standard {
		--ilu-btn-h: 34px;
	}

	.wd-product.wd-hover-standard .wd-add-btn {
		grid-row: 6;
		grid-column: 1;
		padding-top: var(--ilu-btn-gap); /* margin перебивается логическими отступами темы */
	}

	.wd-product.wd-hover-standard .wd-add-btn > a.button {
		padding: 0 6px;
		font-size: 11px;
		letter-spacing: .02em;
	}

	.wd-product.wd-hover-standard .wd-buttons {
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
	}
}

@media (max-width: 768px) {
	.wd-product.wd-hover-standard .wd-product-wrapper {
		padding: 6px 6px 10px;
	}

	.wd-product.wd-hover-standard .wd-product-wrapper::before {
		margin: 0 -6px -10px;
	}

	.wd-product.wd-hover-standard .wd-entities-title {
		padding-top: 10px;
		font-size: 13px;
	}

	.wd-product.wd-hover-standard .price {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wd-product.wd-hover-standard .wd-product-wrapper,
	.wd-product.wd-hover-standard .wd-product-wrapper::before,
	.wd-product.wd-hover-standard .wd-entities-title,
	.wd-product.wd-hover-standard .wd-product-sku,
	.wd-product.wd-hover-standard .price,
	.wd-product.wd-hover-standard .wd-add-btn,
	.wd-product.wd-hover-standard .wd-buttons {
		transition: none;
	}

	.wd-product.wd-hover-standard:hover .wd-product-wrapper,
	.wd-product.wd-hover-standard:focus-within .wd-product-wrapper {
		transform: none;
	}
}


/* =====================================================================
 * Плашки NEW и TOP — маленький прямоугольник 44×24 без скругления, белый текст, левый верхний угол фото
 * (форма как у NEW на оригинале shop.iluproff.ee). Каталог, карусели, карточка товара.
 * Цвета по типу (Георг, 2026-11-17): NEW — зелёная, скидка — красная (--ilu-sale, блок «Бейджи» выше),
 * TOP — синяя. TOP ставит плагин (модуль home_rows): товары из ряда TOP на главной.
 * Текст и подпись для скринридера NEW (Uus / Новый товар) — inc/shop.php, iluproff_child_new_label().
 * ===================================================================== */
.product-labels .product-label.new,
.product-labels .product-label.ilu-top,
.product-labels .product-label.ilu-bf-label {
	min-width: 44px;
	min-height: 24px;
	height: 24px;
	padding: 0 8px;
	border-radius: 0;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: .08em;
	text-transform: uppercase;
	box-shadow: none;
}

.product-labels .product-label.new {
	background-color: var(--ilu-new, #1d7a46);
}

.product-labels .product-label.ilu-top {
	background-color: var(--ilu-top, #1f4fb8);
}

/* Black Friday (модуль black_friday, только во время кампании): чёрная, первая в стопке. */
.product-labels .product-label.ilu-bf-label {
	background-color: #000;
	letter-spacing: .06em;
}

/* Карточка товара: тема ставит бейджи справа — как на оригинале, в левый верхний угол фото. */
.single-product .woocommerce-product-gallery .wd-carousel-inner > .product-labels {
	inset-inline-start: 10px;
	inset-inline-end: auto;
	top: 10px;
	align-items: flex-start;
}

/* Скрытый текст для скринридера. */
.ilu-vh {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Форма обратной связи (Contact Form 7): попап «Saada meile sõnum» и страница «Kontakt» ---------- */

html.ilu-dialog-open {
	overflow: hidden;
}

.ilu-dialog {
	width: min(560px, calc(100% - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: #fff;
	color: var(--ilu-ink);
	box-shadow: 0 24px 64px rgba(1, 37, 97, .22);
	overflow: hidden;
}

.ilu-dialog::backdrop {
	background: rgba(8, 18, 45, .5);
	backdrop-filter: blur(2px);
}

.ilu-dialog[open] {
	animation: ilu-dialog-in .24s cubic-bezier(.2, .8, .2, 1);
}

@keyframes ilu-dialog-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(.98);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.ilu-dialog__panel {
	position: relative;
	max-height: calc(100dvh - 32px);
	padding: 36px 36px 28px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ilu-dialog__close {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ilu-ink);
	cursor: pointer;
	transition: background-color .15s ease;
}

.ilu-dialog__close:hover,
.ilu-dialog__close:focus-visible {
	background: #f1f3f8;
}

.ilu-dialog__title,
.ilu-contact-section__title {
	margin: 0 48px 6px 0;
	font-size: 26px;
	line-height: 1.2;
}

.ilu-dialog__lead,
.ilu-contact-section__lead {
	margin: 0 0 24px;
	color: var(--ilu-muted);
	font-size: 15px;
	line-height: 1.5;
}

/* Страница «Kontakt»: слева карточка салона (текст страницы), справа форма; на телефоне — друг под другом. */
.ilu-contact-layout {
	display: grid;
	gap: 24px;
	align-items: start;
	margin-top: 8px;
}

.ilu-contact-info {
	padding: 32px;
	border-radius: 16px;
	background: #f4f6fa;
	color: var(--ilu-ink);
	font-size: 16px;
	line-height: 1.8;
}

.ilu-contact-info > :last-child {
	margin-bottom: 0;
}

.ilu-contact-info strong {
	display: block;
	margin-bottom: 10px;
	font-size: 18px;
	letter-spacing: .04em;
}

.ilu-contact-info strong + br {
	display: none;
}

.ilu-contact-info a {
	color: var(--ilu-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (min-width: 1025px) {
	.ilu-contact-layout {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
		gap: 40px;
	}

	.ilu-contact-info {
		position: sticky;
		top: 120px;
	}
}

.ilu-contact-section {
	margin: 0;
	padding: 40px;
	border: 1px solid var(--ilu-line);
	border-radius: 16px;
	background: #fff;
	scroll-margin-top: 120px;
}

.ilu-contact-section__title {
	margin-inline-end: 0;
}

.ilu-cf {
	display: grid;
	gap: 16px;
}

.ilu-cf__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ilu-cf__field {
	display: block;
	margin: 0;
}

.ilu-cf__label {
	display: block;
	margin-bottom: 6px;
	color: var(--ilu-ink);
	font-size: 13px;
	font-weight: 600;
}

.ilu-cf__req {
	color: var(--ilu-sale);
}

.ilu-cf .wpcf7-form-control-wrap {
	display: block;
}

.ilu-cf input[type="text"],
.ilu-cf input[type="email"],
.ilu-cf input[type="tel"],
.ilu-cf textarea {
	width: 100%;
	min-height: 48px;
	border: 1px solid #d8dae2;
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.ilu-cf textarea {
	min-height: 140px;
	padding-block: 12px;
	resize: vertical;
}

.ilu-cf input:focus,
.ilu-cf textarea:focus {
	border-color: var(--ilu-navy);
	box-shadow: 0 0 0 3px rgba(1, 37, 97, .12);
	outline: none;
}

.ilu-cf .wpcf7-not-valid {
	border-color: var(--ilu-sale);
}

.ilu-cf .wpcf7-not-valid-tip {
	margin-top: 5px;
	color: var(--ilu-sale);
	font-size: 12.5px;
}

.ilu-cf .cf-turnstile:empty {
	display: none;
}

/* Служебные поля CF7 и пустая строка ответа до отправки не видны (на странице товара WooCommerce рисует рамку fieldset). */
.ilu-cf-form .hidden-fields-container,
.ilu-cf-form.init .wpcf7-response-output,
.ilu-cf-form.resetting .wpcf7-response-output,
.ilu-cf-form.submitting .wpcf7-response-output {
	display: none;
}

.ilu-cf__actions {
	position: relative;
}

.ilu-cf .ilu-cf__submit {
	width: 100%;
	min-height: 52px;
	border-radius: 10px;
	background-color: var(--ilu-navy);
	color: #fff;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.ilu-cf .ilu-cf__submit:hover {
	background-color: #0a347d;
	color: #fff;
}

/* Значок загрузки CF7 — по центру кнопки, а не сбоку. */
.ilu-cf__actions .wpcf7-spinner {
	position: absolute;
	top: 50%;
	inset-inline-end: 16px;
	margin: -12px 0 0;
}

.ilu-cf__note {
	margin: 0;
	color: var(--ilu-muted);
	font-size: 12.5px;
	line-height: 1.5;
}

.ilu-cf__note a {
	color: inherit;
	text-decoration: underline;
}

.ilu-cf-form .wpcf7-response-output {
	margin: 16px 0 0 !important;
	padding: 12px 14px !important;
	border-width: 1px !important;
	border-radius: 10px;
	font-size: 14px;
}

.ilu-cf-form.sent .wpcf7-response-output {
	border-color: #2e7d5b !important;
	background: #eef8f3;
	color: #1d5a40;
}

.ilu-cf-form.invalid .wpcf7-response-output,
.ilu-cf-form.unaccepted .wpcf7-response-output,
.ilu-cf-form.spam .wpcf7-response-output,
.ilu-cf-form.failed .wpcf7-response-output {
	border-color: #e0a3a0 !important;
	background: #fdf1f0;
	color: #8a1c14;
}

@media (max-width: 575px) {
	.ilu-dialog {
		width: calc(100% - 20px);
		max-height: calc(100dvh - 20px);
	}

	.ilu-dialog__panel {
		max-height: calc(100dvh - 20px);
		padding: 28px 20px 20px;
	}

	.ilu-dialog__title,
	.ilu-contact-section__title {
		font-size: 22px;
	}

	.ilu-cf__row {
		grid-template-columns: 1fr;
	}

	.ilu-contact-section,
	.ilu-contact-info {
		padding: 24px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ilu-dialog[open] {
		animation: none;
	}
}

/* ---------- Липкая панель «Lisa ostukorvi» на странице товара (sticky add to cart темы) ---------- */

.wd-sticky-btn {
	border-top: 1px solid var(--ilu-line);
	background: #fff;
	box-shadow: 0 -8px 24px rgba(1, 37, 97, .08);
}

.wd-sticky-btn .wd-entities-title {
	color: var(--ilu-ink);
	font-size: 15px;
	font-weight: 600;
}

.wd-sticky-btn .price {
	color: var(--ilu-ink);
	font-size: 18px;
	font-weight: 700;
}

.wd-sticky-btn .single_add_to_cart_button {
	border-radius: 10px;
}

/*
 * Телефон: та же светлая панель, что на ПК — фото, название, цена и кнопка «Lisa ostukorvi».
 * Мобильная схема темы (прозрачный фон, без товара, кнопка с количеством на всю ширину) отменяется.
 * Сетка: [фото | название / цена | кнопка]; блоки темы .wd-sticky-btn-content и -cart раскладываются в неё
 * через display: contents. Количество на телефоне не показываем (меняется в корзине).
 */
@media (max-width: 768.98px) {
	.wd-sticky-btn.wd-sticky-btn {
		height: auto;
		min-height: var(--wd-sticky-btn-height);
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--ilu-line);
		background-color: #fff;
		box-shadow: 0 -6px 20px rgba(1, 37, 97, .10);
	}

	.wd-sticky-btn.wd-sticky-btn .wd-sticky-btn-container {
		display: grid;
		grid-template-columns: 48px minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		align-items: center;
		column-gap: 10px;
		row-gap: 2px;
		width: 100%;
		max-width: none;
		padding: 0;
	}

	.wd-sticky-btn.wd-sticky-btn .wd-sticky-btn-content,
	.wd-sticky-btn.wd-sticky-btn .wd-sticky-btn-cart,
	.wd-sticky-btn.wd-sticky-btn .wd-sticky-btn-info {
		display: contents !important;
		margin: 0 !important;
	}

	.wd-sticky-btn.wd-sticky-btn .wd-sticky-btn-thumbnail {
		grid-column: 1;
		grid-row: 1 / span 2;
		width: 48px;
		height: 48px;
		border: 1px solid var(--ilu-line);
		border-radius: 8px;
		background: #fff;
	}

	.wd-sticky-btn.wd-sticky-btn .wd-sticky-btn-thumbnail img {
		width: 100%;
		min-width: 0;
		max-width: none;
		height: 100%;
		max-height: none;
		border-radius: 0;
		object-fit: contain;
	}

	.wd-sticky-btn.wd-sticky-btn .wd-entities-title {
		grid-column: 2;
		grid-row: 1;
		align-self: end;
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
		line-clamp: 1;
		color: var(--ilu-ink);
		font-size: 13px;
		font-weight: 500;
		line-height: 1.3;
	}

	.wd-sticky-btn.wd-sticky-btn .price {
		grid-column: 2;
		grid-row: 2;
		align-self: start;
		display: flex !important;
		flex-wrap: wrap;
		align-items: baseline;
		column-gap: 6px;
		margin: 0;
		color: var(--ilu-ink);
		font-size: 16px;
		font-weight: 700;
		line-height: 1.25;
		text-align: start;
	}

	.wd-sticky-btn.wd-sticky-btn .price del {
		order: 2;
		font-size: 12px;
		font-weight: 400;
	}

	.wd-sticky-btn.wd-sticky-btn :is(form.cart, .wd-sticky-add-to-cart, p.stock) {
		grid-column: 3;
		grid-row: 1 / span 2;
		width: auto;
		margin: 0 !important;
	}

	.wd-sticky-btn.wd-sticky-btn p.stock {
		display: block !important;
		font-size: 13px;
	}

	.wd-sticky-btn.wd-sticky-btn form.cart div.quantity {
		display: none !important;
	}

	.wd-sticky-btn.wd-sticky-btn :is(.single_add_to_cart_button, .wd-sticky-add-to-cart) {
		width: auto;
		height: 46px;
		min-height: 46px;
		padding: 0 16px !important;
		border-radius: 8px !important;
		font-size: 13px;
		letter-spacing: .03em;
		white-space: nowrap;
	}
}

/* ---------- Заголовок страницы: длинные эстонские слова не вылезают за экран ---------- */

.wd-page-title .entry-title,
.entry-content h2 {
	overflow-wrap: break-word;
	hyphens: auto;
}

/* Размер задаёт переменная Woodmart (её CSS подключается позже, поэтому меняем переменную, а не font-size). */
@media (max-width: 575px) {
	.wd-page-title .entry-title.title {
		--wd-title-font-s: 28px;
		line-height: 1.2;
	}
}

/* ---------- «Küsi selle toote kohta» на странице товара и карточка товара в попапе ---------- */

.ilu-product-question {
	margin: 2px 0 18px;
}

.ilu-product-question__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 0;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--ilu-ink);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

.ilu-product-question__btn:hover,
.ilu-product-question__btn:focus-visible {
	background: none;
	color: var(--ilu-navy);
}

.ilu-product-question__btn svg {
	flex: none;
	color: var(--ilu-navy);
}

.ilu-product-question__btn span {
	text-decoration: underline;
	text-decoration-color: var(--ilu-line);
	text-underline-offset: 4px;
	transition: text-decoration-color .15s ease;
}

.ilu-product-question__btn:hover span {
	text-decoration-color: currentColor;
}

.ilu-dialog__product {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: -6px 0 22px;
	padding: 12px;
	border: 1px solid var(--ilu-line);
	border-radius: 12px;
	background: #f7f8fb;
}

.ilu-dialog__product-img {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	background: #fff;
	object-fit: contain;
}

.ilu-dialog__product-text {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.ilu-dialog__product-name {
	color: var(--ilu-ink);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
}

.ilu-dialog__product-sku {
	color: var(--ilu-muted);
	font-size: 12.5px;
}

/* ---------- Товары, которые не продаются онлайн (модуль B2b, режим none): консультация вместо корзины ---------- */

.ilu-consult {
	display: grid;
	gap: 14px;
	max-width: 520px;
	margin: 4px 0 22px;
	padding: 18px 20px;
	border: 1px solid var(--ilu-line);
	border-left: 3px solid var(--ilu-navy);
	background: #f6f7fb;
	scroll-margin-top: 120px;
}

.ilu-consult__text {
	margin: 0;
	color: var(--ilu-ink);
	font-size: 14.5px;
	line-height: 1.5;
}

.ilu-consult__btn,
.ilu-consult__btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 50px;
	padding: 0 22px;
	border: 0;
	border-radius: 6px;
	background: var(--ilu-navy);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
}

.ilu-consult__btn:hover,
.ilu-consult__btn:focus-visible {
	background: #0a3a86;
	color: #fff;
}

.ilu-consult__btn svg {
	flex: none;
}

@media (max-width: 767px) {
	.ilu-consult {
		max-width: none;
		padding: 16px;
	}
}

/* ---------------------------------------------------------------------------
 * Оттенки / объём / размер одной линейки (Woodmart Linked variations,
 * `wp ilu variants apply`): кнопки-карточки в сетке, у каждого оттенка свой URL.
 * ------------------------------------------------------------------------ */
.single-product .variations_form-linked {
	margin-bottom: 18px;
}

.single-product .variations_form-linked .variations,
.single-product .variations_form-linked .variations tbody,
.single-product .variations_form-linked .variations tr,
.single-product .variations_form-linked .variations th,
.single-product .variations_form-linked .variations td {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
}

.single-product .variations_form-linked .variations tr + tr {
	margin-top: 14px;
}

.single-product .variations_form-linked .variations th.label {
	margin-bottom: 8px;
	color: var(--ilu-muted);
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
}

.single-product .variations_form-linked .variations th.label label {
	display: inline-flex;
	margin: 0;
	color: inherit;
	font: inherit;
}

.single-product .variations_form-linked .variations th.label label::after {
	content: ":";
	margin: 0;
}

.single-product .variations_form-linked .wd-swatches-product {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	align-items: stretch;
	gap: 8px;
	margin: 0;
}

.single-product .variations_form-linked .wd-swatches-product .wd-swatch.wd-text {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: auto;
	min-height: 52px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid rgba(17, 24, 39, 0.14);
	border-radius: 10px;
	background: #fff;
	color: var(--ilu-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
	text-transform: none;
	overflow-wrap: anywhere;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.single-product .variations_form-linked .wd-swatches-product .wd-swatch.wd-text::after {
	content: none;
}

.single-product .variations_form-linked .wd-swatches-product .wd-swatch.wd-text:hover {
	border-color: rgba(17, 24, 39, 0.45);
}

.single-product .variations_form-linked .wd-swatches-product .wd-swatch.wd-text:focus-visible {
	outline: 2px solid var(--wd-primary-color);
	outline-offset: 2px;
}

.single-product .variations_form-linked .wd-swatches-product .wd-swatch.wd-text.wd-active {
	border-color: var(--wd-primary-color);
	box-shadow: inset 0 0 0 1px var(--wd-primary-color);
	color: var(--wd-primary-color);
	font-weight: 600;
	pointer-events: none;
}

.single-product .variations_form-linked .wd-swatches-product .wd-swatch.wd-text.wd-disabled {
	opacity: 0.5;
}

@media (max-width: 575px) {
	.single-product .variations_form-linked .wd-swatches-product {
		grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	}

	.single-product .variations_form-linked .wd-swatches-product .wd-swatch.wd-text {
		min-height: 48px;
		font-size: 13px;
	}
}

/* ---------- Главная: баннеры на телефоне — слайдер (контейнер Elementor .ilu-banner-slider, inc/home-banners.php) ---------- */
/* Контейнер виден только на телефоне (на ПК и планшете — два баннера в ряд). Свайп — нативная прокрутка со scroll-snap. */

.ilu-banner-slider {
	display: flex;
	flex-direction: column;
}

.ilu-banner-slider > .e-con-inner {
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.ilu-banner-slider > .e-con-inner::-webkit-scrollbar {
	display: none;
}

.ilu-banner-slider > .e-con-inner > .ilu-banner {
	flex: 0 0 100%;
	width: 100% !important;
	max-width: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.ilu-banner-slider .ilu-banner img {
	display: block;
	width: 100%;
	height: auto;
}

.ilu-banner-dots {
	display: flex;
	justify-content: center;
	gap: 2px;
	padding-top: 6px;
}

.ilu-banner-dots button,
.ilu-banner-dots button:hover,
.ilu-banner-dots button:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	min-width: 0;
	height: 24px;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	cursor: pointer;
}

.ilu-banner-dots button::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 4px;
	background: #c9cdd8;
	transition: width .2s ease, background-color .2s ease;
}

.ilu-banner-dots button[aria-current="true"]::before {
	width: 20px;
	background: var(--ilu-navy);
}

.ilu-banner-dots button:focus-visible {
	outline: 2px solid var(--ilu-navy);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.ilu-banner-dots button::before {
		transition: none;
	}
}

/* ---------------------------------------------------------------------------
 * Каталог, категории, бренды, поиск по товарам: без большого заголовка страницы —
 * сразу хлебные крошки, фильтры и сортировка. H1 остаётся в разметке для поисковиков
 * и экранных дикторов (визуально скрыт), название раздела видно в хлебных крошках.
 * ------------------------------------------------------------------------ */
.woodmart-archive-shop .wd-page-title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------------------
 * Фото товара: клик/тап по фото открывает лайтбокс (Woodmart image_action = popup,
 * отдельная кнопка «увеличить» выключена). Лайтбокс светлый и спокойный, как фон фото,
 * без кнопки «поделиться».
 * ------------------------------------------------------------------------ */
.single-product .woocommerce-product-gallery__image a {
	cursor: zoom-in;
}

.pswp .pswp__bg {
	background: #fff;
}

.pswp .pswp__ui .pswp__top-bar,
.pswp .pswp__ui .pswp__caption {
	background-color: transparent;
}

.pswp .pswp__ui--one-slide .pswp__counter {
	display: none;
}

.pswp .pswp__counter {
	color: var(--ilu-ink);
	opacity: 0.7;
}

/* Иконки PhotoSwipe — белый спрайт: на светлом фоне делаем их тёмными. */
.pswp .pswp__button {
	filter: invert(1);
}

/* #feda9e после invert(1) = фирменный синий #012561. */
.pswp .pswp__button:focus-visible {
	outline: 2px solid #feda9e;
	outline-offset: 2px;
}

.pswp .pswp__button--share,
.pswp .pswp__share-modal {
	display: none !important;
}

/* ---------------------------------------------------------------------------
 * Фильтр цены без кнопки «Filtreeri»: товары фильтруются, когда отпускаешь ползунок
 * (inc/shop.php → assets/price-filter.js). Кнопка остаётся в разметке (её нажимает скрипт),
 * но скрыта; диапазон «Hind: 10 € — 80 €» на всю ширину.
 * ------------------------------------------------------------------------ */
.widget_price_filter .price_slider_amount .button {
	display: none;
}

.widget_price_filter .price_slider_amount .price_label {
	float: none;
	width: 100%;
	text-align: start;
}
