/*
Theme Name: zhila
Theme URI:
Author: semdestroyer
Author URI:
Description: Жила Лабс темка
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 7.2
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zhilabs
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * IMPORTANT: This file is only served on the frontend when `SCRIPT_DEBUG` is enabled;
 * in most instances, the `style.min.css` file will be served. It is not recommended that you
 * use the Theme File Editor to modify this stylesheet. Instead, add the necessary style
 * overrides via "Additional CSS" in the Site Editor.
 */

/*
 * IMPORTANT: This file is only served on the frontend when `SCRIPT_DEBUG` is enabled;
 * in most instances, the `style.min.css` file will be served. It is not recommended that you
 * use the Theme File Editor to modify this stylesheet. Instead, add the necessary style
 * overrides via "Additional CSS" in the Site Editor.
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
	overflow-x: auto;
}

/* === Скрываем текст кнопок пагинации === */
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
	font-size: 0; /* Скрываем текст */
	line-height: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: #333;
	text-decoration: none;
	transition: all 0.2s ease;
	position: relative;
}

/* === Стрелка «Назад» (левая) === */
.wp-block-query-pagination-previous::before {
	content: '';
	display: inline-block;
	width: 35px;
	height: 35px;
	/*background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");*/
	background-image: url("assets/icons/Arrow 2.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

/* === Стрелка «Вперёд» (правая) === */
.wp-block-query-pagination-next::before {
	content: '';
	display: inline-block;
	width: 35px;
	height: 35px;
	/*background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");*/
	background-image: url("assets/icons/Arrow 1.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

/* === Ховер-эффект === */
/*.wp-block-query-pagination-previous:hover,*/
/*.wp-block-query-pagination-next:hover {*/
/*	background-color: #0073aa;*/
/*	border-color: #0073aa;*/
/*	color: #fff;*/
/*}*/

/* === Доступность: оставляем текст для скринридеров === */
/* (опционально, если хочешь сохранить a11y) */
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
	/* Если нужно полностью скрыть текст визуально, но оставить для скринридеров: */
	/* text-indent: -9999px; */
	/* Но font-size: 0 + flex-центрирование уже хорошо работает */
}

.wp-block-details summary::marker {
	content: none;
}

.wp-block-details summary {
	list-style: none;
	display: flex;
	align-items: center;      /* точное вертикальное центрирование */
	gap: 18px;                /* отступ, который не ломает строку */
	cursor: pointer;
}

.wp-block-details summary::after {
	content: "";
	width: 16px;              /* реальный размер иконки */
	height: 16px;
	flex-shrink: 0;           /* запрещаем сжатие при узком контейнере */
	background: url("assets/icons/Filter_Arrow_Closed.svg") no-repeat center / contain;
}

.wp-block-details[open] summary::after {
	background-image: url("assets/icons/Filter_Arrow_Open.svg");
}

.wc-block-product-template__responsive {
	text-align: left;
}

.zhila-product-title {
	text-align: left !important;
}

/* 1. Скрываем поле ввода по умолчанию */
.wp-block-search .wp-block-search__input {
	width: 0;
	max-width: 0;
	padding: 0;
	border: none;
	opacity: 0;
	overflow: hidden;
	transition: all 0.3s ease;
	visibility: hidden;
}

/* 2. Когда блок активен (класс добавится через JS) — показываем поле */
.wp-block-search.search-active .wp-block-search__input {
	width: 250px;
	max-width: 250px;
	padding: 8px 12px;
	margin-right: 8px;
	border: 1px solid #ccc;
	opacity: 1;
	visibility: visible;
}

/* 3. Превращаем кнопку в чистую иконку */
.wp-block-search .wp-block-search__button {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0;
	margin: 0;
	min-height: auto;
	color: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0; /* Чтобы кнопка не сжималась */
}

/* Скрываем оригинальную иконку */
.wp-block-search .wp-block-search__button svg,
.wp-block-search .wp-block-search__button .wp-block-search__icon-button {
	display: none !important;
}

.wp-block-search .wp-block-search__button::before {
	content: '';
	display: block;
	width: 24px;
	height: 24px;
	background-image: url('assets/icons/SearchBlack.svg');
	background-size: contain;
	background-repeat: no-repeat;
}

.zhila-search-front .wp-block-search__button::before {
	background-image: url('assets/icons/SearchWhite.svg') !important;
}

/* Опционально: убираем обводку при фокусе на кнопке */
.wp-block-search .wp-block-search__button:focus {
	outline: none;
	box-shadow: none;
}

.wp-block-group:has(.zhila-filter) {
	align-items: flex-start !important;
	align-content: flex-start !important;
}

/* Сам фильтр прижимаем к верху */
.zhila-filter {
	align-self: flex-start !important;
	align-content: flex-start !important;
	margin-top: 35% !important;
}

/* === ЦЕНТРИРОВАНИЕ ЗАГОЛОВКА ТОВАРА === */
.wp-block-post-title {
	text-align: left !important;
}

.wp-block-post-title a {
	display: block !important;
	text-align: left !important;
}

/* === СЕПАРАТОР НА ВСЮ ШИРИНУ === */
.wp-block-separator {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.zhila-products-with-filters {
	/* Ломаем ограничения WordPress по ширине */
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 40px !important;  /* Отступ от левого края экрана */
	padding-right: 40px !important; /* Отступ от правого края экрана */
	margin-top: 3%;
	box-sizing: border-box !important;

	/* Включаем сетку: левая колонка 280px, правая занимает всё остальное */
	display: grid !important;
	grid-template-columns: 280px 1fr !important;
	gap: 10px !important; /* Расстояние между фильтрами и товарами */

	/* ЭТО прижимает фильтры к верху, а не растягивает по высоте */
	align-items: start !important;
}

.zhila-products {
	padding: 0 !important;
}

.collab-filter-block a{
	text-decoration: none;
	font-weight: normal;
	font-family: Inter, sans-serif;
	font-weight: 600;
}

/* ==========================================
   СТИЛИЗАЦИЯ КАТЕГОРИЙ ПОД КОЛЛАБОРАЦИИ
   ========================================== */

/* Убираем маркеры списка и отступы */
.zhila-filter .wc-block-product-categories-list,
.zhila-filter .wc-block-product-categories-list ul {
	list-style: none !important;
	padding-left: 0 !important;
	margin: 0 !important;
	font-family: Inter, sans-serif;
	font-weight: 600;
}

.zhila-filter a{
	text-decoration: none;
	font-weight: normal;
	font-family: Inter, sans-serif;
	font-weight: 600;
}

/* Убираем отступы у элементов списка */
.zhila-filter .wc-block-product-categories-list-item {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

/* СКРЫВАЕМ счетчик товаров (14), (1) и т.д. */
.zhila-filter .wc-block-product-categories-list-item-count {
	display: none !important;
}

/* Стилизуем ссылки на категории */
.zhila-filter .wc-block-product-categories-list-item__name {
	text-decoration: none !important;
	color: inherit !important; /* Наследуем цвет от родителя */
	font-weight: normal !important;
	font-size: inherit !important;
	font-family: Inter, sans-serif;
	font-weight: 600;
}


.zhila-filter .wc-block-product-categories-list-item:first-child {
	/* Не скрываем, оставляем все категории */
}

/* 2. Исправляем регистр для коллабораций - делаем как на макете */
.zhila-filter .collab-filter-block a,
.zhila-filter .collab-filter-block li {
	text-transform: none !important; /* Убираем верхний регистр */
	font-weight: 400 !important;
	font-size: 14px !important;
	/* Оставляем как есть: AlinaRin, Flynnflytaggart и т.д. */
}

/* 3. Для категорий оставляем нормальный регистр */
.zhila-filter .wc-block-product-categories-list-item__name {
	text-transform: none !important; /* Убираем uppercase */
	font-weight: 400 !important;
	font-size: 14px !important;
}

/* 4. Заголовки details (КАТЕГОРИИ, КОЛЛАБОРАЦИИ, ЦВЕТ) */
.zhila-filter details summary {
	text-transform: uppercase !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	letter-spacing: 0.05em !important;
}

/* 5. Убираем маркеры списка */
.zhila-filter ul {
	list-style: none !important;
	padding-left: 0 !important;
}

/* ЖЕСТКАЯ СИНХРОНИЗАЦИЯ ШРИФТА И ВЕСА */
.zhila-filter,
.zhila-filter details summary,
.zhila-filter .wc-block-product-categories-list-item__name,
.zhila-filter .collab-filter-block a,
.zhila-filter .collab-filter-block li,
.zhila-filter h2,
.zhila-filter h3,
.wp-block-post-title,
.wp-block-heading {
	/* 1. Принудительно один и тот же шрифт (чтобы не подменялся на Arial) */
	font-family: 'Inter', sans-serif !important;

	/* 2. Одинаковый вес. Поставь 400 (обычный) или 500 (medium). Главное - везде одинаково */
	font-weight: 400 !important;
	color: #4D4C51;
	/* 3. Убираем жирность, которую WooCommerce впихивает инлайном */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.woocommerce-product-gallery__image--placeholder img{
	border: 1px solid;
}

/* ===================================
   Стили для выбора размера одежды
   =================================== */

.size-selector-wrapper {
	width: 100%;
	max-width: 340px;
	margin: 25px 0;
}

.size-buttons {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.size-option {
	cursor: pointer;
	appearance: none;
	padding: 0;
	border: 0;
	background: transparent;
}

.size-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 55px;
	height: 55px;
	padding: 0 15px;
	border: 1px solid #14141E;
	background: #F6F4EB;
	color: #222;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	box-sizing: border-box;
	user-select: none;
}

.size-btn:hover {
	border-color: #999;
	background: #f0f0f0;
}

.size-option.active .size-btn,
.size-option[aria-pressed="true"] .size-btn {
	border-color: #000;
	background: #0A856A;
	color: #F6F4EB;
	font-weight: 600;

}

.size-add-btn {
	width: 100%;
	height: 52px;
	background: #1a1a1a;
	color: #fff;
	border: none;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.25s ease;
	box-sizing: border-box;

	/* 🔧 Фикс: всегда по центру, текст не прыгает */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	white-space: nowrap;
}

.size-add-btn:hover:not(:disabled) {
	background: #000;
}

.size-add-btn:disabled {
	background: #1a1a1a;
	cursor: default;
	opacity: 0.85;
}

@media (max-width: 480px) {
	.size-selector-wrapper {
		max-width: 100%;
	}

	.size-btn {
		min-width: 50px;
		height: 50px;
		padding: 0 12px;
		font-size: 14px;
	}

	.size-add-btn {
		height: 48px;
		font-size: 14px;
	}
}

/****/
.custom-cart {
	/*width: 50%;*/
	/*max-width: 1200px;*/
	/*margin: 0 auto;*/
}

.custom-cart__item {
	display: grid;
	grid-template-columns: 200px 1fr auto auto auto;
	gap: 30px;
	align-items: start;
	padding: 30px 0;
}

.custom-cart__image img {
	width: 100%;
	height: auto;
	border: 1px solid #14141E;
}

.custom-cart__title {
	margin: 0 0 5px 0;
	font-size: 18px;
	font-weight: 600;
}

.custom-cart__subtitle {
	margin: 0;
	color: #666;
	font-size: 14px;
}

.custom-cart__info {
	display: flex;
	align-self: stretch;
	flex-direction: column;
}

.custom-cart__options {
	display: flex;
	gap: 15px;
	margin-top: auto;
}

.custom-cart__size,
.custom-cart__qty {
	width: 50px;
	height: 50px;
	border: 1px solid #333;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
}

.custom-cart__qty-input {
	width: 100%;
	height: 100%;
	border: none;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	background: transparent;
}

.custom-cart__qty-input::-webkit-inner-spin-button,
.custom-cart__qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.custom-cart__price {
	font-size: 20px;
	font-weight: 600;
	min-width: 100px;
	text-align: right;
}

.custom-cart__remove {
	color: #333;
	text-decoration: underline;
	font-size: 14px;
}

.custom-cart__lower {
	align-items: end;
}

.custom-cart__totals {
	margin-top: 40px;
	padding: 30px;
}

.custom-cart__total-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
}

.custom-cart__total-row-position {
	border-bottom: 1px solid #ddd;
}

.custom-cart__total-row--total {
	font-weight: 700;
	font-size: 18px;
	margin-top: 10px;
}

@media (max-width: 768px) {
	.custom-cart__item {
		grid-template-columns: 96px minmax(0, 1fr) auto;
		gap: 15px;
	}
	.custom-cart__price {
		font-size: 16px;
	}
}

.zhila-variation-attribute {
	margin: 0;
	padding: 0;
	border: 0;
}

.zhila-variation-status {
	min-height: 1.5em;
	margin-top: 8px;
	color: #b42318;
	font-size: 13px;
}

.zhila-variation-selector.is-loading {
	opacity: .7;
	pointer-events: none;
}

.zhila-cart-added-notice {
	position: fixed;
	right: 24px;
	top: 24px;
	z-index: 100000;
	display: flex;
	max-width: calc(100vw - 48px);
	padding: 16px 20px;
	align-items: center;
	gap: 24px;
	background: var(--zhila-green, #0a856a);
	color: #f6f4eb;
	box-shadow: 0 8px 30px rgba(20, 20, 30, .18);
	opacity: 0;
	transform: translateY(-12px);
	transition: opacity .2s ease, transform .2s ease;
}

.zhila-cart-added-notice.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.zhila-cart-added-notice a {
	color: inherit;
	font-weight: 700;
}

#custom-wc-toasts {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 100000;
	display: grid;
	width: min(430px, calc(100vw - 48px));
	gap: 10px;
	pointer-events: none;
}

.zhila-toast {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 28px;
	gap: 18px;
	align-items: start;
	padding: 16px 14px 16px 20px;
	color: #f6f4eb;
	background: #0a856a;
	box-shadow: 0 8px 30px rgba(20, 20, 30, .18);
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: auto;
}

.zhila-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.zhila-toast--error {
	background: #af372d;
}

.zhila-toast--info {
	background: #4d4c51;
}

.zhila-toast__content {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 18px;
	font-size: 14px;
	line-height: 1.35;
}

.zhila-toast__content a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
}

.zhila-toast__close {
	display: grid;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 24px;
	line-height: 1;
	place-items: center;
	cursor: pointer;
}

.zhila-checkout {
	/* Ломаем ограничения WordPress по ширине */
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 200px !important;  /* Отступ от левого края экрана */
	padding-right: 200px !important; /* Отступ от правого края экрана */
	box-sizing: border-box !important;
	/* Включаем сетку: левая колонка 280px, правая занимает всё остальное */
	display: grid !important;
	grid-template-columns: 1fr 0.35fr !important;
	gap: 10px !important; /* Расстояние между фильтрами и товарами */
}

.zhila-checkout-block {
	display: flex;
	justify-content: center; /* по горизонтали */
	align-items: center;    /* по вертикали */
	/*align-content: center;*/
	/*align-self: center;*/
}

.zhila-checkout-details {
	padding-right: 10px;
}

.zhila-checkout-item {
	display: flex;
	justify-content: center; /* по горизонтали */
	align-items: center;    /* по вертикали */
}

/*TODO: уточнить нужно ли скроллить*/
.zhila-proceed {
	position: -webkit-sticky; /* Safari */
	position: sticky;
	top: 0;
}

.zhila-checkout-fields input {
	border: solid #1a1a1a 1px;
	background: #F6F4EB;
}

/*.zhila-checkout-item {*/
/*	align-self: center;*/
/*}*/

/*.z-checkout-row {*/
/*	display: flex;*/
/*}*/

/*.z-checkout-column {*/
/*	flex: 50%; !* Each column takes up 50% of the row's width *!*/
/*	padding: 10px;*/
/*}*/

.shipment-selector-wrapper {
	width: 100%;
	max-width: 540px;
	margin: 25px 0;
}

.shipment-buttons {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.shipment-option {
	cursor: pointer;
}

.shipment-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 55px;
	height: 55px;
	padding: 0 15px;
	border: 1px solid #14141E;
	background: #F6F4EB;
	color: #222;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	box-sizing: border-box;
	user-select: none;
}

.shipment-btn:hover {
	border-color: #999;
	background: #f0f0f0;
}

.shipment-btn.active {
	border-color: #000;
	background: #0A856A;
	color: #F6F4EB;
	font-weight: 600;

}

.shipment-add-btn {
	width: 100%;
	height: 52px;
	background: #1a1a1a;
	color: #fff;
	border: none;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.25s ease;
	box-sizing: border-box;

	/* 🔧 Фикс: всегда по центру, текст не прыгает */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	white-space: nowrap;
}

.shipment-add-btn:hover:not(:disabled) {
	background: #000;
}

.shipment-add-btn:disabled {
	background: #1a1a1a;
	cursor: default;
	opacity: 0.85;
}

.zhila-delivery-placeholder {}

h2.has-ibm-plex-sans-font-family {
	font-family: 'IBM Plex Sans', sans-serif !important;
	font-weight: 600 !important;
}

.zhila-product-price {
	color: #4D4C51;
	font-family: Inter, serif;
}

/* Checkout completion: the order key in WooCommerce's received URL protects
 * customer-facing order details; payment confirmation itself stays server-side. */
.zhila-order-confirmation {
	max-width: 1120px;
	padding: clamp(32px, 6vw, 80px) clamp(20px, 4vw, 48px);
}

.zhila-order-confirmation > .wc-block-order-confirmation-status {
	border: 1px solid #0a856a;
	background: #e9f5ef;
	color: #075e4b;
	padding: clamp(24px, 4vw, 48px);
	text-align: center;
}

@media (max-width: 1024px) {
	.zhila-checkout {
		padding-inline: clamp(24px, 5vw, 64px) !important;
		grid-template-columns: minmax(0, 1fr) 320px !important;
		gap: 24px !important;
	}

	.wp-block-columns.alignwide {
		padding-inline: 24px;
	}
}

@media (max-width: 782px) {
	body {
		overflow-x: hidden;
	}

	.wp-site-blocks > header .wp-block-group.alignwide,
	.wp-site-blocks > .wp-block-group > .wp-block-group.alignwide {
		padding-inline: 16px;
	}

	.wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.wp-block-navigation__responsive-container-open {
		display: flex;
	}

	.zhila-checkout {
		display: flex !important;
		flex-direction: column !important;
		padding-inline: 16px !important;
	}

	.zhila-checkout-details {
		padding-right: 0;
	}

	.zhila-proceed {
		position: static;
		margin-top: 16px;
		padding: 20px 0;
	}

	.custom-cart__item {
		padding: 20px 0;
	}

	.custom-cart__image img {
		aspect-ratio: 1;
		object-fit: cover;
	}

	.shipment-buttons,
	.size-buttons {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.shipment-btn,
	.size-btn {
		min-width: 0;
		width: 100%;
	}

	.woocommerce.product > main > .wp-block-columns {
		gap: 24px;
	}

	.woocommerce.product .wp-block-column[style*="512px"] {
		flex-basis: auto !important;
	}
}

@media (max-width: 480px) {
	.custom-cart__item {
		grid-template-columns: 80px minmax(0, 1fr);
	}

	.custom-cart__price {
		grid-column: 2;
		text-align: left;
	}

	.custom-cart__title {
		font-size: 16px;
	}

	.wp-block-woocommerce-product-collection .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

.zhila-product-price-sale {
	color: #0A856A;
}

.zhila-carousel-header {
	color: #14141E;
	font-family: 'IBM Plex Sans', sans-serif !important;
	font-weight: 600 !important;
}

/* Меняем порядок: новая цена слева, старая справа */
.zhila-product-price .wc-block-components-product-price,
.wc-block-grid__product-price {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Новая цена (ins) - первая, крупная, зелёная */
.zhila-product-price ins,
.wc-block-grid__product-price ins {
	order: 1;
	font-size: 20px;
	font-weight: bold;
	color: #00875a;
	text-decoration: none;
}

/* Старая цена (del) - вторая, зачёркнутая, серая */
.zhila-product-price del,
.wc-block-grid__product-price del {
	order: 2;
	font-size: 16px;
	color: #999;
	opacity: 0.7;
}

/* Скрываем текст для скринридеров */
.zhila-product-price .screen-reader-text {
	display: none;
}

/* Корзина */
.wc-block-mini-cart__button svg,
.wc-block-components-mini-cart__button svg {
	display: none !important;
}
/* Делаем кнопку контейнером для нашей иконки */
.wc-block-mini-cart__button,
.wc-block-components-mini-cart__button {
	position: relative !important;
	background: transparent !important;
	padding: 0 !important;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px !important;
}

/* Вставляем нашу иконку */
.wc-block-mini-cart__button::before,
.wc-block-components-mini-cart__button::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 24px;
	height: 24px;
	background-image: url('assets/icons/Cart.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	display: block !important;
}

.zhila-cart-button-front .wc-block-mini-cart__button::before,
.zhila-cart-button-front .wc-block-components-mini-cart__button::before {
	background-image: url('assets/icons/CartWhite.svg') !important;
}


/* 1. Разрешаем кнопке и обертке показывать то, что выходит за их края */
.wc-block-mini-cart__button,
.wc-block-mini-cart__quantity-badge {
	overflow: visible !important;
	position: relative !important;
}

/* 2. Настраиваем сам бейдж */
.wc-block-mini-cart__badge {
	/* Используем то, что уже задумано Woo, но двигаем вправо */
	position: absolute !important;
	left: 100% !important; /* Ставим на правый край иконки */
	margin-left: 30px !important; /* <-- Двигай это значение (5px, 10px, 15px), чтобы отодвинуть от иконки */
	top: 50% !important;
	transform: translateY(-50%) !important;

	/* Сбрасываем, чтобы не растягивался и был кружком */
	right: auto !important;
	width: auto !important;
	min-width: 20px !important;
	height: 20px !important;
	padding: 0 5px !important;
	border-radius: 10px !important;

	/* Центровка цифры внутри */
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;

	/* Твой дизайн (зеленый, как ты хотел) */
	background-color: #00875a !important;
	color: #ffffff !important;
	font-size: 12px !important;
	font-weight: bold !important;
}
.zhila-cart-button-front .wc-block-mini-cart__badge {
	background-color: #ffffff !important;
	color: #00875a !important;
}
/*.product-category,*/
/*.wc-block-components-product-category-list {*/
/*	font-size: 12px;*/
/*	color: #888;*/
/*	margin-bottom: 5px;*/
/*}*/

/*.product-category a,*/
/*.wc-block-components-product-category-list a {*/
/*	color: #4D4C51;*/
/*	text-decoration: none;*/
/*}*/

/*.product-category a:hover,*/
/*.wc-block-components-product-category-list a:hover {*/
/*	color: #00875a;*/
/*}*/

/* Ярлык типа товара */
.product-type-link {
	display: inline-block;
	font-size: 16px;
	font-weight: 500;
	color: #4D4C51;
	text-transform: lowercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	margin: 0;
	transition: color 0.2s ease;
}


/* Если нужно с дефисами (как slug) */
.product-type-link.slug-style {
	font-family: monospace;
	background: #f5f5f5;
	padding: 2px 8px;
	border-radius: 4px;
}

.wc-block-product-categories-list-item a {
	color: #4D4C51;
}

/* ========================================================================== */
/* Zhila layout system — matched to refs/ desktop and 360px compositions.     */
/* ========================================================================== */
:root {
	--zhila-bg: #f6f4eb;
	--zhila-ink: #14141e;
	--zhila-green: #0a856a;
	--zhila-desktop-gutter: clamp(32px, 5.2vw, 100px);
	--zhila-content: 1460px;
}

html,
body,
.wp-site-blocks {
	background: var(--zhila-bg);
	color: var(--zhila-ink);
}

body {
	margin: 0;
	font-family: Inter, sans-serif;
}

.wp-site-blocks {
	padding: 0;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.alignwide,
.zhila-header-inner,
.zhila-footer-inner {
	width: min(calc(100% - (2 * var(--zhila-desktop-gutter))), var(--zhila-content));
	max-width: none !important;
	margin-inline: auto !important;
}

/* Header */
.zhila-home-hero {
	min-height: clamp(520px, 32vw, 650px);
	display: flex;
	flex-direction: column;
}

.zhila-home-header {
	position: relative;
	min-height: 100px;
	padding: 0 !important;
}

.zhila-home-header .wp-block-site-logo {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

.zhila-home-intro {
	width: min(calc(100% - (2 * var(--zhila-desktop-gutter))), var(--zhila-content));
	max-width: none !important;
	margin: auto auto 0;
	padding-top: 0 !important;
	padding-bottom: clamp(42px, 4vw, 72px) !important;
}

.zhila-home-intro h2 {
	max-width: 1300px !important;
	font-size: clamp(36px, 3.1vw, 60px) !important;
	line-height: .98 !important;
	letter-spacing: -.025em;
}

.zhila-site-header {
	position: relative;
	z-index: 50;
	background: var(--zhila-bg);
}

.zhila-header-inner {
	display: grid !important;
	grid-template-columns: clamp(220px, 22vw, 340px) auto minmax(0, 1fr);
	align-items: center;
	min-height: 136px;
	padding: 0 !important;
}

.zhila-header-context {
	grid-column: 1;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
}

.zhila-header-context a,
.zhila-site-header a {
	color: inherit;
	text-decoration: none;
}

.zhila-header-logo {
	position: static;
	grid-column: 2;
	justify-self: start;
	transform: none;
}

.zhila-header-logo img {
	width: clamp(106px, 8vw, 150px);
	height: auto;
	filter: brightness(0);
}

.zhila-header-actions {
	grid-column: 3;
	min-width: 0;
	justify-content: flex-end;
	gap: 18px !important;
}

.zhila-primary-navigation {
	font-size: 14px;
	font-weight: 500;
}

.zhila-primary-navigation .wp-block-navigation__container {
	gap: 36px;
}

.zhila-mobile-menu-only {
	display: none !important;
}

.zhila-header-search {
	margin: 0;
}

.zhila-header-search .wp-block-search__inside-wrapper {
	padding: 0;
	border: 0;
}

.zhila-header-search .wp-block-search__button {
	padding: 4px;
	background: transparent;
	color: var(--zhila-ink);
}

.zhila-header-search .wp-block-search__input {
	position: absolute;
	right: 100%;
	background: var(--zhila-bg);
}

.zhila-header-actions .wc-block-mini-cart__button,
.zhila-header-actions .wp-block-woocommerce-customer-account a {
	padding: 4px;
}

.zhila-header-account {
	display: block;
}

@media (min-width: 783px) {
	.zhila-site-header .zhila-header-account {
		display: flex !important;
		visibility: visible !important;
	}

	.zhila-site-header .zhila-header-account a {
		display: flex !important;
		align-items: center;
		justify-content: center;
	}

	.zhila-site-header .zhila-header-account svg {
		width: 24px;
		height: 24px;
	}
}

body.woocommerce-account .zhila-site-header .zhila-header-account,
body.woocommerce-account .zhila-home-header .wp-block-woocommerce-customer-account {
	display: none !important;
}

@media (min-width: 783px) and (max-width: 1439px) {
	.zhila-home-hero {
		min-height: 100px;
		background: var(--zhila-bg) !important;
		color: var(--zhila-ink) !important;
	}

	.zhila-home-intro {
		display: none;
	}

	.zhila-home-header,
	.zhila-home-header a,
	.zhila-home-header button,
	.zhila-home-header .wc-block-mini-cart__button,
	.zhila-home-header .wp-block-search__button,
	.zhila-home-header .wp-block-woocommerce-customer-account a {
		color: var(--zhila-ink) !important;
	}

	.zhila-home-header .wp-block-site-logo img {
		filter: brightness(0);
	}
}

.zhila-header-wishlist {
	display: inline-flex;
	width: 24px;
	height: 24px;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 1;
}

/* Product and catalogue grids */
.zhila-products-with-filters {
	display: grid !important;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: clamp(36px, 5vw, 92px);
	width: min(calc(100% - (2 * var(--zhila-desktop-gutter))), var(--zhila-content));
	margin-inline: auto;
	align-items: start;
}

.zhila-products-with-filters > * {
	min-width: 0;
}

.wp-block-woocommerce-product-template,
.wc-block-product-template {
	gap: 44px 14px !important;
}

.wp-block-woocommerce-product-template.is-flex-container,
.wc-block-product-template.is-flex-container {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.zhila-products .wc-block-product-template {
	align-items: stretch;
}

.zhila-products .wc-block-product {
	display: flex !important;
	align-self: stretch;
	flex-direction: column;
}

.zhila-products .product-type-link {
	margin: 4px 0 0;
}

.zhila-products .zhila-product-price,
.zhila-products .wc-block-components-product-price {
	margin: auto 0 0 !important;
	padding-top: 6px;
	color: #686868 !important;
	line-height: 1.25;
}

.zhila-products .wc-block-components-product-price > .woocommerce-Price-amount,
.zhila-products .zhila-product-price > .woocommerce-Price-amount {
	color: #686868 !important;
}

.zhila-products .wc-block-components-product-price ins,
.zhila-products .wc-block-components-product-price ins .woocommerce-Price-amount,
.zhila-products .zhila-product-price ins,
.zhila-products .zhila-product-price ins .woocommerce-Price-amount {
	color: var(--zhila-green) !important;
}

.zhila-products .wc-block-components-product-price del,
.zhila-products .wc-block-components-product-price del .woocommerce-Price-amount,
.zhila-products .zhila-product-price del,
.zhila-products .zhila-product-price del .woocommerce-Price-amount {
	color: #999 !important;
}

.wc-block-product,
.product {
	min-width: 0;
}

.wc-block-components-product-image,
.wc-block-grid__product-image,
.wc-block-product .wp-block-woocommerce-product-image {
	position: relative;
	margin: 0 0 15px;
}

.wc-block-components-product-image img,
.wc-block-grid__product-image img,
.wp-block-woocommerce-product-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	border: 1px solid var(--zhila-ink);
	box-sizing: border-box;
}

.zhila-product-title,
.wc-block-product .wp-block-post-title {
	margin: 0 !important;
	text-align: left !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
}

.wc-block-components-product-price,
.wc-block-grid__product-price {
	margin-top: 10px;
	font-size: 14px;
	font-weight: 600;
}

.wc-block-components-product-price .woocommerce-Price-amount:first-child {
	color: var(--zhila-green);
}

/* Single product */
.woocommerce.product > main {
	width: min(calc(100% - (2 * var(--zhila-desktop-gutter))), var(--zhila-content));
	max-width: none !important;
	margin-inline: auto;
}

.woocommerce.product > main > .wp-block-columns {
	display: grid;
	grid-template-columns: minmax(0, clamp(460px, 46vw, 680px)) minmax(300px, 1fr);
	gap: clamp(140px, 13vw, 250px);
	align-items: start;
}

.woocommerce.product .wp-block-post-title {
	font-size: clamp(34px, 3vw, 56px) !important;
	line-height: .98;
	text-transform: uppercase;
}

.woocommerce.product .wp-block-post-excerpt {
	font-size: 15px;
	line-height: 1.55;
}

.woocommerce-product-gallery__wrapper img {
	border: 1px solid var(--zhila-ink);
}

.size-selector-wrapper {
	max-width: 480px;
	margin-top: 52px;
}

.size-buttons {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
}

.size-btn {
	width: 100%;
	min-width: 0;
	height: 62px;
}

.size-add-btn {
	height: 62px;
	background: var(--zhila-ink);
}

/* Checkout/cart */
.zhila-checkout-block {
	display: block;
}

.zhila-checkout-block > form.checkout {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

.zhila-checkout {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 390px !important;
	gap: clamp(70px, 9vw, 170px) !important;
	width: min(calc(100% - (2 * var(--zhila-desktop-gutter))), var(--zhila-content)) !important;
	padding: 40px 0 120px !important;
	margin-inline: auto !important;
}

@media (min-width: 783px) and (max-width: 1279px) {
	.zhila-checkout {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 360px) !important;
		gap: 48px !important;
	}
}

.custom-cart__item {
	grid-template-columns: 200px minmax(0, 1fr) minmax(90px, 120px);
	gap: clamp(20px, 3vw, 36px);
	align-items: start;
	min-height: 200px;
	padding: 20px 0;
	box-sizing: border-box;
}

.custom-cart__image {
	width: 200px;
	height: 200px;
}

.custom-cart__image img {
	width: 200px;
	height: 200px;
	aspect-ratio: 1;
	object-fit: contain;
}

.custom-cart__info,
.custom-cart__price {
	height: 200px;
	min-height: 200px;
	box-sizing: border-box;
}

.custom-cart__info {
	overflow: hidden;
}

.custom-cart__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.custom-cart__subtitle {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.custom-cart__options {
	flex: 0 0 auto;
	height: 50px;
	max-height: 50px;
	overflow: hidden;
	margin-top: auto;
}

.custom-cart__price {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

.custom-cart__lower {
	margin-top: auto;
}

.custom-cart__totals {
	margin: 0;
	padding: 0;
}

.zhila-proceed {
	top: 28px;
}

.zhila-checkout-fields .form-row {
	margin-bottom: 24px;
}

.zhila-checkout-fields input,
.zhila-checkout-fields select,
.zhila-checkout-fields textarea {
	width: 100%;
	min-height: 62px;
	padding: 14px 18px;
	border-radius: 0;
	box-sizing: border-box;
}

/* Footer */
.zhila-site-footer {
	min-height: 470px;
	padding: 70px 0 48px;
	background: var(--zhila-ink);
	color: var(--zhila-bg);
}

.zhila-site-footer a {
	color: inherit;
	text-decoration: none;
}

.zhila-footer-logo img {
	width: 150px;
	filter: brightness(0) invert(1);
}

.zhila-footer-columns {
	max-width: 850px;
	margin: -42px 0 70px auto;
	gap: 80px;
}

.zhila-footer-column p {
	margin: 0 0 13px;
	font-size: 13px;
	line-height: 1.25;
}

.zhila-footer-heading {
	margin-bottom: 24px !important;
	color: #89888e;
	font-size: 11px !important;
}

.zhila-footer-socials {
	display: flex;
	gap: 14px;
	margin-top: 24px;
	font-weight: 700;
}

.zhila-payment-logos {
	margin: 0 0 0 230px;
	color: #b7b6b7;
	font-size: 28px;
	font-weight: 800;
}

@media (max-width: 782px) {
	:root {
		--zhila-desktop-gutter: 20px;
	}

	.alignwide,
	.zhila-header-inner,
	.zhila-footer-inner {
		width: calc(100% - 40px);
	}

	/* Mobile header */
	.zhila-cart-added-notice {
		top: 80px;
		right: 20px;
		left: 20px;
		justify-content: space-between;
		font-size: 12px;
	}

	#custom-wc-toasts {
		top: 78px;
		right: 20px;
		left: 20px;
		width: auto;
	}

	.zhila-toast {
		padding: 13px 10px 13px 14px;
		gap: 10px;
	}

	.zhila-toast__content {
		font-size: 12px;
	}
	.zhila-home-hero {
		min-height: 72px;
		background: var(--zhila-bg) !important;
		color: var(--zhila-ink) !important;
	}

	.zhila-home-header {
		min-height: 72px;
		width: calc(100% - 40px);
		color: var(--zhila-ink);
	}

	.zhila-home-header .wp-block-site-logo {
		position: static;
		transform: none;
		order: -1;
		margin-right: auto;
	}

	.zhila-home-header .wp-block-site-logo img {
		width: 96px;
		filter: brightness(0);
	}

	.zhila-home-header > .wp-block-group:last-child,
	.zhila-home-header .wc-block-mini-cart__button,
	.zhila-home-header .wp-block-search__button,
	.zhila-home-header .wp-block-woocommerce-customer-account a {
		color: var(--zhila-ink) !important;
	}

	.zhila-home-header .wp-block-navigation__container {
		display: none;
	}

	.zhila-home-header .wp-block-navigation__responsive-container-open {
		display: flex;
	}

	.zhila-home-intro {
		display: none;
	}

	.zhila-header-inner {
		display: flex !important;
		min-height: 72px;
	}

	.zhila-header-context,
	.zhila-primary-navigation .wp-block-navigation__container {
		display: none;
	}

	.zhila-header-logo {
		position: static;
		transform: none;
		margin-right: auto;
	}

	.zhila-header-logo img {
		width: 96px;
	}

	.zhila-header-actions {
		flex: 0 0 auto;
		gap: 8px !important;
	}

	.zhila-primary-navigation {
		order: 10;
	}

	.zhila-primary-navigation .wp-block-navigation__responsive-container-open {
		display: flex;
		padding: 4px;
	}

	.zhila-primary-navigation .wp-block-navigation__responsive-container.is-menu-open {
		position: fixed;
		inset: 0;
		display: flex;
		padding: 24px;
		background: var(--zhila-green) !important;
		color: var(--zhila-bg) !important;
	}

	.zhila-primary-navigation .wp-block-navigation__responsive-container-content {
		padding-top: 64px !important;
	}

	.zhila-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		display: flex;
		width: 100%;
		align-items: stretch;
		gap: 0;
	}

	.zhila-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		display: flex !important;
		width: 100%;
		padding: 14px 0;
		border-bottom: 1px solid rgba(246, 244, 235, .75);
		font-size: 13px;
	}

	.zhila-mobile-menu-only {
		display: flex !important;
	}

	body:has(.wp-block-navigation__responsive-container.is-menu-open) {
		overflow: hidden;
	}

	.zhila-header-search .wp-block-search__input,
	.zhila-header-account {
		display: none;
	}

	/* Mobile catalogue */
	.zhila-products-with-filters {
		display: block !important;
		width: calc(100% - 40px);
		margin-inline: auto;
	}

	.zhila-filter {
		margin-bottom: 28px;
	}

	.zhila-filter details {
		padding: 12px 0;
		border-bottom: 1px solid #bbb9b2;
	}

	.wp-block-woocommerce-product-template.is-flex-container,
	.wc-block-product-template.is-flex-container,
	.wc-block-product-template__responsive,
	.wp-block-woocommerce-product-collection .wc-block-product-template {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 30px 7px !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.wc-block-product-template__responsive > li,
	.wc-block-product-template > li {
		width: auto !important;
		min-width: 0 !important;
	}

	.wc-block-components-product-image,
	.wc-block-grid__product-image,
	.wp-block-woocommerce-product-image {
		margin-bottom: 10px !important;
	}

	.zhila-product-title,
	.wc-block-product .wp-block-post-title {
		font-size: 11px !important;
	}

	.wc-block-components-product-price,
	.wc-block-grid__product-price {
		margin-top: 7px;
		font-size: 11px;
	}

	/* Mobile product */
	.woocommerce.product > main {
		width: calc(100% - 40px);
	}

	.woocommerce.product > main > .wp-block-columns {
		display: flex;
		flex-direction: column;
		gap: 22px;
		padding: 0 !important;
	}

	.woocommerce.product > main > .wp-block-columns > .wp-block-column {
		width: 100%;
	}

	.woocommerce.product .wp-block-post-title {
		font-size: 26px !important;
		line-height: .95;
		overflow-wrap: anywhere;
		word-break: normal;
	}

	.woocommerce.product .wc-block-product .wp-block-post-title {
		font-size: 11px !important;
		line-height: 1.25 !important;
		text-transform: none;
	}

	.woocommerce.product .wp-block-post-excerpt {
		font-size: 12px;
		line-height: 1.45;
	}

	.woocommerce-product-gallery {
		width: 100% !important;
		max-width: 100% !important;
		overflow: visible;
	}

	.woocommerce-product-gallery__image img {
		width: 100% !important;
		height: auto !important;
		object-fit: contain;
	}

	.size-selector-wrapper {
		max-width: none;
		margin: 38px 0 0;
	}

	.zhila-variation-selector .size-buttons,
	.size-selector-wrapper .size-buttons {
		display: grid !important;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 8px;
	}

	.size-btn {
		height: 46px;
		padding: 0;
		font-size: 13px;
	}

	.size-add-btn {
		height: 60px;
	}

	/* Mobile checkout */
	.zhila-checkout {
		display: flex !important;
		width: calc(100% - 48px) !important;
		padding: 8px 0 64px !important;
		flex-direction: column !important;
		gap: 42px !important;
	}

	.zhila-checkout > .cdek-zhila-selector {
		order: 2;
	}

	.zhila-checkout > :has(.zhila-proceed) {
		order: 3;
	}

	.custom-cart__item {
		position: relative;
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		grid-template-rows: 112px auto;
		gap: 16px;
		min-height: 0;
		padding: 8px 0;
	}

	.custom-cart__image img {
		width: 112px;
		height: 112px;
	}

	.custom-cart__image {
		width: 112px;
		height: 112px;
	}

	.custom-cart__info {
		height: 112px;
		min-height: 112px;
		padding-right: 30px;
		box-sizing: border-box;
	}

	.custom-cart__title {
		max-width: 100%;
		white-space: normal !important;
		overflow-wrap: anywhere;
		line-height: 1.15;
	}

	.custom-cart__title {
		font-size: 16px;
	}

	.custom-cart__options {
		height: auto;
		max-height: none;
		gap: 8px;
		overflow: hidden;
	}

	.custom-cart__size,
	.custom-cart__qty {
		width: auto;
		height: auto;
		border: 0;
		justify-content: flex-start;
		font-size: 12px;
		font-weight: 400;
	}

	.custom-cart__price {
		grid-column: 2;
		display: block;
		height: auto;
		min-height: 0;
		margin-top: -2px;
		font-size: 18px;
		text-align: left;
	}

	.custom-cart__remove {
		position: absolute;
		top: 10px;
		right: 0;
		width: 24px;
		height: 24px;
		font-size: 0;
		text-decoration: none;
	}

	.custom-cart__remove::before,
	.custom-cart__remove::after {
		content: '';
		position: absolute;
		top: 11px;
		left: 3px;
		width: 18px;
		height: 1px;
		background: currentColor;
		transform: rotate(45deg);
	}

	.custom-cart__remove::after {
		transform: rotate(-45deg);
	}

	.shipment-buttons {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 9px;
	}

	.shipment-btn {
		width: 100%;
		min-width: 0;
		height: 48px;
		padding: 4px;
		font-size: 10px;
		text-align: center;
	}

	.zhila-checkout-fields input {
		min-height: 48px;
	}

	.custom-cart__total-row {
		padding: 13px 0;
		font-size: 16px;
	}

	.zhila-proceed .size-add-btn {
		margin-top: 30px;
		background: #b9b8b3;
	}

	/* Mobile footer */
	.zhila-site-footer {
		min-height: 0;
		padding: 28px 0 24px;
	}

	.zhila-footer-logo img {
		width: 98px;
	}

	.zhila-footer-columns {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 18px 28px;
		margin: 42px 0 38px;
	}

	.zhila-footer-columns > .wp-block-column {
		width: auto !important;
		flex-basis: auto !important;
		margin: 0 !important;
	}

	.zhila-footer-offer {
		grid-column: 2;
	}

	.zhila-footer-column p {
		font-size: 11px;
	}

	.zhila-footer-heading {
		font-size: 9px !important;
	}

	.zhila-payment-logos {
		margin: 0;
		white-space: nowrap;
		font-size: 23px;
	}
}
.wc-block-components-product-title a,
.wp-block-post-title a {
	color: #000000 !important;
}

/* Анимация тряски для input/select/textarea */
@keyframes zhila-shake {
	0%, 100% { transform: translateX(0); }
	10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
	20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Класс анимации для input */
.zhila-shake-animation {
	animation: zhila-shake 0.5s ease-in-out !important;
}

/* Красные поля */
.form-row.zhila-field-invalid input,
.form-row.zhila-field-invalid select,
.form-row.zhila-field-invalid textarea {
	border-color: #AF372D !important;
	color: #AF372D !important;
}

/* Красные плейсхолдеры */
.form-row.zhila-field-invalid input::placeholder,
.form-row.zhila-field-invalid textarea::placeholder {
	color: #AF372D !important;
	opacity: 0.6;
}

/* Красные лейблы */
.form-row.zhila-field-invalid label {
	color: #AF372D !important;
	position: relative;
	padding-right: 24px; /* место под иконку справа */
}

/* Иконка ошибки */
.zhila-error-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 6px;
	vertical-align: middle;
}

/* Сама иконка — SVG прямо в CSS */
.form-row.zhila-field-invalid label::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	background-image: url("assets/icons/validation_failure.svg");
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

/* Красные лейблы */
.form-row.zhila-field-invalid label {
	color: #AF372D !important;
	position: relative;
	padding-right: 24px;
}

/* Иконка прижата к правому краю */
.form-row.zhila-field-invalid label::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	/*background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e2401c'><path d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/></svg>");*/
	background-image: url("assets/icons/validation_failure.svg");
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

/* Красные поля */
.form-row.zhila-field-invalid input,
.form-row.zhila-field-invalid select,
.form-row.zhila-field-invalid textarea {
	border-color: #AF372D !important;
	color: #AF372D !important;
}

.form-row.zhila-field-invalid input::placeholder,
.form-row.zhila-field-invalid textarea::placeholder {
	color: #AF372D !important;
	opacity: 0.6;
}

/* Тряска */
@keyframes zhila-shake {
	0%, 100% { transform: translateX(0); }
	10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
	20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.zhila-shake-animation {
	animation: zhila-shake 0.5s ease-in-out !important;
}

.cdek-zhila-selector.zhila-field-invalid {
	border: 2px solid #AF372D !important;
	border-radius: 8px;
	padding: 15px !important;
}
.zhila-cdek-error {
	color: #AF372D;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 15px;
	padding: 10px;
	background-color: #fff5f5;
	border-radius: 4px;
	border-left: 3px solid #AF372D;
}
@keyframes zhila-shake {
	0%, 100% { transform: translateX(0); }
	10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
	20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.zhila-shake-animation {
	animation: zhila-shake 0.5s ease-in-out !important;
}

/*TODO: расскоментить если нужны будут бейджи на распродажу в карточке товара*/
.onsale {
	display: none !important;
}

.wc-block-mini-cart__badge[hidden] {
	display: none !important;
}

.zhila-product-title {
	margin-bottom: 0px !important;
	margin-top: 0px !important;
}

.zhila-product-image-wrapper {
	width: 100% !important;
	height: auto !important;
	min-width: 0;
	box-sizing: border-box;
	aspect-ratio: 1;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

.zhila-product-image-wrapper img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	margin: 0;
	object-fit: contain;
}

/* WooCommerce оборачивает картинку в .wc-block-components-product-image и вешает
   на неё margin-bottom (15px в каталоге, 12px в рейлах). Внутри квадратной
   обёртки с overflow:hidden этот отступ центрируется и сдвигает картинку вверх
   на половину отступа — верхняя граница рамки (border у img, style.css:1472)
   уезжает за край и обрезается. Прижимаем WC-обёртку к размеру плитки. */
.wc-block-product .zhila-product-image-wrapper > .wc-block-components-product-image,
.wc-block-product .zhila-product-image-wrapper > .wc-block-grid__product-image {
	width: 100%;
	height: 100%;
	margin: 0 !important;
	aspect-ratio: auto;
}

.zhila-product-image-wrapper > .wc-block-components-product-image > a,
.zhila-product-image-wrapper > .wc-block-grid__product-image > a {
	display: block;
	width: 100%;
	height: 100%;
}

.zhila-products .wc-block-product,
.zhila-products .wc-block-product:hover,
.zhila-products .wc-block-product:focus-within,
.zhila-products .wc-block-components-product-image,
.zhila-products .wc-block-components-product-image:hover,
.zhila-products .zhila-product-image-wrapper,
.zhila-products .zhila-product-image-wrapper:hover,
.zhila-products .wc-block-components-product-image > a,
.zhila-products .wc-block-components-product-image > a:hover {
	background: transparent !important;
	background-color: transparent !important;
}

.zhila-products .wc-block-product a:focus-visible {
	outline: 2px solid var(--zhila-green);
	outline-offset: 3px;
}

/* Mobile corrections for legacy fixed-size home carousel rules above. */
@media (max-width: 782px) {
	.zhila-products-with-filters .zhila-filter {
		margin-top: 0 !important;
	}

	.zhila-products-with-filters .wp-block-woocommerce-product-collection,
	.zhila-products-with-filters .wc-block-product-template {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	.zhila-products-with-filters .zhila-product-image-wrapper {
		width: 100% !important;
		height: auto !important;
		min-width: 0 !important;
		aspect-ratio: 1;
	}

	.zhila-products-with-filters .zhila-carousel-header {
		max-width: 100%;
		font-size: 20px !important;
		line-height: 1.1;
		overflow-wrap: anywhere;
	}

	.zhila-checkout .shipment-buttons {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 5px !important;
	}

	.zhila-checkout .shipment-option,
	.zhila-checkout .shipment-btn {
		width: 100% !important;
		min-width: 0 !important;
		padding-inline: 4px !important;
		font-size: 9px;
	}

	.zhila-checkout-fields,
	.zhila-checkout-fields .form-row,
	.zhila-checkout .shipment-selector-wrapper,
	.zhila-checkout .cdek-zhila-selector,
	.zhila-checkout .cdek-zhila-map {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box;
	}
}

/* Product composition and reusable recommendations rail. */
.zhila-single-product > main {
	width: min(calc(100% - 80px), 1360px);
	max-width: none !important;
	margin-inline: auto;
}

.zhila-single-product .zhila-product-layout {
	--zhila-product-copy-width: 480px;
	display: grid !important;
	grid-template-columns: minmax(0, 560px) minmax(320px, 416px);
	grid-template-areas:
		"gallery breadcrumbs"
		"gallery info";
	column-gap: clamp(72px, 13vw, 160px);
	row-gap: 20px;
	align-items: start;
	justify-content: start;
	width: 100% !important;
	max-width: 1360px !important;
	padding: 54px 0 34px;
	margin-inline: auto !important;
	margin-bottom: 34px !important;
}

.zhila-product-gallery-column,
.zhila-product-breadcrumbs,
.zhila-product-summary,
.zhila-product-info {
	padding-top: 25px;
	min-width: 0;
}

.zhila-product-gallery-column {
	grid-area: gallery;
}

.zhila-product-breadcrumbs {
	grid-area: breadcrumbs;
	justify-self: start;
	width: min(100%, var(--zhila-product-copy-width));
	max-width: var(--zhila-product-copy-width);
	box-sizing: border-box;
	margin: 0;
}

.zhila-product-info {
	grid-area: info;
	justify-self: start;
	width: min(100%, var(--zhila-product-copy-width));
	max-width: var(--zhila-product-copy-width);
	box-sizing: border-box;
	margin: 0;
}

.zhila-single-product .woocommerce-product-gallery {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	opacity: 1 !important;
}

.zhila-product-gallery-column .wp-block-woocommerce-product-image-gallery {
	width: 100% !important;
	max-width: none !important;
}

.zhila-single-product .woocommerce-product-gallery__image > a {
	display: block;
	box-sizing: border-box;
	aspect-ratio: 1;
	overflow: hidden;
	border: 1px solid #14141e;
}

.zhila-single-product .woocommerce-product-gallery__image > a > img,
.zhila-single-product .woocommerce-product-gallery__image--placeholder img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
}

.zhila-single-product .flex-control-thumbs {
	margin: 14px 0 0 !important;
}

.zhila-single-product .flex-control-thumbs img {
	box-sizing: border-box;
	border: 1px solid transparent;
	object-fit: cover;
}

.zhila-single-product .flex-control-thumbs img.flex-active {
	border-color: #14141e;
}

.zhila-product-breadcrumbs > .wc-block-breadcrumbs,
.zhila-product-breadcrumbs > .wp-block-breadcrumbs,
.zhila-product-breadcrumbs .woocommerce-breadcrumb {
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
	margin-right: 0 !important;
	margin-left: 0 !important;
	text-align: left;
}

.zhila-product-breadcrumbs > .wc-block-breadcrumbs,
.zhila-product-breadcrumbs > .wp-block-breadcrumbs {
	justify-self: stretch;
	font-size: 11px !important;
}

.zhila-product-breadcrumbs .woocommerce-breadcrumb {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	color: #8c8b87;
	font-size: inherit !important;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.woocommerce-breadcrumb,
.wc-block-components-breadcrumbs,
.wc-block-breadcrumbs {
	box-sizing: border-box;
	max-width: 100%;
	font-size: clamp(10px, .72vw, 12px);
	line-height: 1.4;
	letter-spacing: .01em;
	overflow-wrap: break-word;
	word-break: normal;
}

.woocommerce-breadcrumb a,
.wc-block-components-breadcrumbs a,
.wc-block-breadcrumbs a {
	white-space: nowrap;
}

.zhila-product-summary > .wp-block-post-title {
	max-width: 520px;
	margin: 0 0 25px !important;
	color: #14141e;
	font-size: clamp(36px, 3vw, 54px) !important;
	font-weight: 700 !important;
	line-height: .98 !important;
	text-transform: uppercase;
}

.zhila-product-summary > .wp-block-post-excerpt,
.zhila-product-summary .zhila-product-description {
	width: 100%;
	max-width: var(--zhila-product-copy-width);
	box-sizing: border-box;
	margin: 0 0 18px;
	color: #4d4c51;
	font-size: 15px;
	line-height: 1.5;
}

.zhila-product-description > :first-child {
	margin-top: 0;
}

.zhila-product-description > :last-child {
	margin-bottom: 0;
}

.zhila-single-product-price,
.zhila-selected-variation-price {
	min-height: 24px;
	margin: 0 0 12px;
	color: #14141e;
	font-size: 18px;
	font-weight: 600;
}

.zhila-product-info > .zhila-single-product-price,
.zhila-product-info .zhila-selected-variation-price {
	width: 100%;
	max-width: var(--zhila-product-copy-width);
	box-sizing: border-box;
}

.zhila-selected-variation-price:empty {
	display: none;
}

.zhila-size-guide {
	display: inline-block;
	margin: 0 0 52px;
	color: #4d4c51;
	font-size: 14px;
	text-decoration: underline;
}

.zhila-product-summary .size-selector-wrapper {
	width: 100%;
	max-width: var(--zhila-product-copy-width);
	margin-top: 0;
}

.zhila-product-summary .size-buttons {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 20px;
}

.zhila-product-summary .size-buttons > br,
.zhila-product-summary .size-buttons > p {
	display: none !important;
}

.zhila-product-summary .size-option,
.zhila-product-summary .size-btn {
	width: 100%;
	min-width: 0;
}

.zhila-product-summary .size-option:disabled .size-btn {
	border-color: #bbb9b2;
	color: #aaa8a2;
	text-decoration: line-through;
	cursor: not-allowed;
}

.zhila-product-summary .size-add-btn {
	height: 62px;
}

.zhila-care-guide {
	display: inline-block;
	margin-top: 16px;
	color: #4d4c51;
	font-size: 13px;
	text-decoration: underline;
}

.zhila-simple-product-selector .size-add-btn {
	display: flex;
	box-sizing: border-box;
	width: 100%;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.zhila-variation-selector .added_to_cart.wc-forward {
	display: none !important;
}

.zhila-recommendations,
.zhila-product-rail {
	position: relative;
	width: 100%;
	max-width: none !important;
	overflow: visible;
}

.zhila-recommendations {
	padding: 0 0 110px;
	margin-inline: 0 !important;
}

.zhila-recommendations__title {
	margin: 0 !important;
	font-size: clamp(32px, 3vw, 48px) !important;
	font-weight: 600 !important;
}

.zhila-rail-heading {
	display: flex;
	width: 100%;
	max-width: none !important;
	min-width: 0;
	margin: 0 0 50px !important;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

/* The Product Collection block constrains ordinary children to contentSize.
 * The rail header belongs to the full-width track, so keep both edges aligned. */
.zhila-recommendations > .zhila-rail-heading,
.zhila-product-rail > .zhila-rail-heading {
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
}

body.single-product .zhila-single-product .zhila-recommendations .zhila-rail-heading {
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
}

.zhila-rail-heading .zhila-carousel-header {
	margin: 0 !important;
}

.zhila-rail-controls-mount {
	display: flex;
	flex: 0 0 auto;
}

.zhila-recommendations .wc-block-product-template,
.zhila-product-rail .wc-block-product-template {
	display: flex !important;
	grid-template-columns: none !important;
	align-items: flex-start;
	gap: 14px !important;
	width: 100%;
	padding: 0 0 12px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	flex-wrap: nowrap !important;
}

.zhila-recommendations .wc-block-product-template::-webkit-scrollbar,
.zhila-product-rail .wc-block-product-template::-webkit-scrollbar {
	display: none;
}

.zhila-recommendations .wc-block-product {
	flex: 0 0 calc((100% - 42px) / 4);
	min-width: 240px;
	width: calc((100% - 42px) / 4) !important;
	margin: 0 !important;
	padding: 0 !important;
	align-self: flex-start;
	scroll-snap-align: start;
}

.zhila-product-rail .wc-block-product {
	flex: 0 0 calc((100% - 28px) / 3);
	min-width: 260px;
	width: calc((100% - 28px) / 3) !important;
	margin: 0 !important;
	padding: 0 !important;
	align-self: stretch;
	scroll-snap-align: start;
}

.zhila-recommendations .wc-block-product {
	position: relative !important;
	display: grid !important;
	grid-template-rows: auto 36px 30px 25px;
	grid-auto-flow: row;
	align-content: start;
	top: auto !important;
	transform: none !important;
	margin-block-start: 0 !important;
}

.zhila-product-rail .wc-block-product-template {
	align-items: stretch;
}

.zhila-product-rail .wc-block-product {
	position: relative !important;
	display: flex !important;
	flex-direction: column;
	top: auto !important;
	transform: none !important;
	margin-block-start: 0 !important;
}

.zhila-product-rail .zhila-product-price,
.zhila-product-rail .wc-block-components-product-price {
	width: 100%;
	align-self: stretch;
	justify-content: flex-start;
	margin-top: auto !important;
	color: #686868 !important;
	text-align: left !important;
}

.zhila-product-rail .wp-block-woocommerce-product-image,
.zhila-product-rail .wc-block-components-product-image,
.zhila-product-rail .zhila-product-image-wrapper {
	height: auto !important;
	box-sizing: border-box;
}

.zhila-product-rail .wc-block-components-product-price > .woocommerce-Price-amount,
.zhila-product-rail .zhila-product-price > .woocommerce-Price-amount {
	color: #686868 !important;
}

.zhila-product-rail .wc-block-components-product-price ins,
.zhila-product-rail .wc-block-components-product-price ins .woocommerce-Price-amount,
.zhila-product-rail .zhila-product-price ins,
.zhila-product-rail .zhila-product-price ins .woocommerce-Price-amount {
	color: var(--zhila-green) !important;
}

.zhila-product-rail .wc-block-components-product-price del,
.zhila-product-rail .wc-block-components-product-price del .woocommerce-Price-amount,
.zhila-product-rail .zhila-product-price del,
.zhila-product-rail .zhila-product-price del .woocommerce-Price-amount {
	color: #999 !important;
}

.zhila-recommendations .wc-block-product > :first-child,
.zhila-product-rail .wc-block-product > :first-child,
.zhila-recommendations .wc-block-product .wp-block-woocommerce-product-image,
.zhila-product-rail .wc-block-product .wp-block-woocommerce-product-image {
	margin-top: 0 !important;
}

.zhila-recommendations .wp-block-woocommerce-product-image,
.zhila-recommendations .wc-block-components-product-image,
.zhila-product-rail .wp-block-woocommerce-product-image,
.zhila-product-rail .wc-block-components-product-image {
	grid-row: 1;
	width: 100% !important;
	margin: 0 0 12px !important;
	aspect-ratio: 1;
}

.zhila-recommendations .wp-block-woocommerce-product-image a,
.zhila-recommendations .wc-block-components-product-image a,
.zhila-product-rail .wp-block-woocommerce-product-image a,
.zhila-product-rail .wc-block-components-product-image a {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.zhila-recommendations .wp-block-woocommerce-product-image img,
.zhila-recommendations .wc-block-components-product-image img,
.zhila-product-rail .wp-block-woocommerce-product-image img,
.zhila-product-rail .wc-block-components-product-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: contain;
}

.zhila-recommendations .zhila-product-title,
.zhila-recommendations .wp-block-post-title,
.zhila-product-rail .zhila-product-title,
.zhila-product-rail .wp-block-post-title {
	grid-row: 2;
	align-self: start;
	margin: 0 0 4px !important;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.zhila-recommendations .zhila-product-label,
.zhila-recommendations .taxonomy-product_label,
.zhila-recommendations .product-type-link,
.zhila-product-rail .zhila-product-label,
.zhila-product-rail .taxonomy-product_label,
.zhila-product-rail .product-type-link {
	grid-row: 3;
	align-self: start;
	margin: 0 !important;
	line-height: 20px;
}

.zhila-recommendations .zhila-product-price,
.zhila-recommendations .wc-block-components-product-price,
.zhila-product-rail .zhila-product-price,
.zhila-product-rail .wc-block-components-product-price {
	grid-row: 4;
	align-self: end;
	display: flex;
	min-height: 24px;
	margin: 0 !important;
	align-items: baseline;
	gap: 8px;
	line-height: 1.25;
}

.zhila-recommendations .wc-block-components-product-price ins,
.zhila-recommendations .wc-block-components-product-price del,
.zhila-product-rail .wc-block-components-product-price ins,
.zhila-product-rail .wc-block-components-product-price del {
	display: inline-flex;
	margin: 0;
	align-items: baseline;
	line-height: inherit;
}

.zhila-single-product .zhila-recommendations .wp-block-post-title,
.zhila-single-product .zhila-recommendations .zhila-product-title {
	margin: 0 0 4px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-transform: uppercase;
}

.zhila-single-product .zhila-recommendations .zhila-product-label,
.zhila-single-product .zhila-recommendations .taxonomy-product_label {
	margin: 0 0 8px !important;
	font-size: 13px !important;
}

.zhila-rail-controls {
	position: static;
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}

.zhila-rail-arrow {
	width: 44px;
	height: 44px;
	border: 1px solid #14141e;
	background: #f6f4eb;
	color: #14141e;
	font-size: 22px;
	cursor: pointer;
}

.zhila-rail-arrow:disabled {
	opacity: 0;
	pointer-events: none;
}

/* Catalogue rails use the same muted regular price as the product label. */
.zhila-product-price,
.zhila-product-price .wc-block-components-product-price,
.zhila-recommendations .wc-block-components-product-price {
	color: #686868 !important;
}

.zhila-product-price .woocommerce-Price-amount,
.zhila-recommendations .woocommerce-Price-amount {
	color: #686868 !important;
}

/* The cart and the single-product price remain black. */
.zhila-single-product-price,
.zhila-selected-variation-price {
	color: #14141e !important;
}

.zhila-single-product-price .woocommerce-Price-amount,
.zhila-selected-variation-price .woocommerce-Price-amount {
	color: #14141e !important;
}

.zhila-product-price ins,
.zhila-recommendations ins,
.zhila-single-product-price ins,
.zhila-selected-variation-price ins,
.zhila-product-price ins .woocommerce-Price-amount,
.zhila-recommendations ins .woocommerce-Price-amount,
.zhila-single-product-price ins .woocommerce-Price-amount,
.zhila-selected-variation-price ins .woocommerce-Price-amount {
	color: #0a856a !important;
	font-weight: 700;
	text-decoration: none;
}

.zhila-product-price del,
.zhila-recommendations del,
.zhila-single-product-price del,
.zhila-selected-variation-price del,
.zhila-product-price del .woocommerce-Price-amount,
.zhila-recommendations del .woocommerce-Price-amount,
.zhila-single-product-price del .woocommerce-Price-amount,
.zhila-selected-variation-price del .woocommerce-Price-amount {
	color: #999892 !important;
	font-size: .8em;
}

.zhila-checkout-agreement {
	margin: 14px 0 0;
	font-size: 11px;
	font-style: italic;
	line-height: 1.35;
}

.zhila-checkout-agreement a {
	color: inherit;
	text-decoration: underline;
}

#z-totals-shipping-cost[data-state="loading"] {
	color: #77756f;
	font-size: 13px;
}

.zhila-menu-toggle,
.zhila-menu-overlay {
	display: none;
}

@media (min-width: 783px) and (max-width: 1100px) {
	.zhila-single-product > main {
		width: calc(100% - 48px);
	}

	.zhila-single-product .zhila-product-layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"breadcrumbs"
			"gallery"
			"info";
		gap: 24px;
		padding-top: 36px;
	}

	.zhila-product-info {
		max-width: var(--zhila-product-copy-width);
	}

	.zhila-product-summary > .wp-block-post-title {
		font-size: clamp(32px, 4vw, 42px) !important;
	}

	.zhila-product-summary .size-buttons {
		gap: 8px;
	}

	.zhila-checkout {
		width: calc(100% - 48px) !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	.zhila-products-with-filters {
		width: calc(100% - 48px);
		min-width: 0;
	}

	.zhila-products-with-filters .wp-block-woocommerce-product-template.is-flex-container,
	.zhila-products-with-filters .wc-block-product-template.is-flex-container,
	.zhila-products-with-filters .wc-block-product-template__responsive,
	.zhila-products-with-filters .wp-block-woocommerce-product-collection .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.zhila-product-rail .wc-block-product,
	.zhila-recommendations .wc-block-product {
		min-width: 220px;
	}
}

@media (max-width: 782px) {
	.zhila-product-summary .woocommerce-breadcrumb,
	.woocommerce-breadcrumb,
	.wc-block-components-breadcrumbs,
	.wc-block-breadcrumbs {
		display: -webkit-box;
		max-height: 2.8em;
		margin-bottom: 18px;
		overflow: hidden;
		font-size: 10px;
		line-height: 1.4;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.zhila-single-product > main {
		width: calc(100% - 40px);
		padding-inline: 0;
	}

	.zhila-single-product .zhila-product-layout {
		--zhila-product-copy-width: 100%;
		display: grid !important;
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"breadcrumbs"
			"gallery"
			"info";
		padding: 16px 0 58px;
		gap: 24px;
	}

	.zhila-product-gallery-column,
	.zhila-product-breadcrumbs,
	.zhila-product-summary,
	.zhila-product-info {
		width: 100%;
		max-width: 100%;
	}

	.zhila-product-breadcrumbs > .wc-block-breadcrumbs,
	.zhila-product-breadcrumbs > .wp-block-breadcrumbs {
		font-size: 10px !important;
	}

	.zhila-product-summary > .wp-block-post-title {
		width: 100%;
		max-width: 100%;
		font-size: 28px !important;
		line-height: 1 !important;
		overflow-wrap: anywhere;
	}

	.zhila-product-summary .size-buttons {
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
		gap: 7px;
	}

	.zhila-product-summary .size-btn {
		height: 48px;
		padding: 0;
		font-size: 12px;
	}

	.zhila-size-guide {
		margin-bottom: 28px;
	}

	.zhila-recommendations {
		padding-bottom: 64px;
	}

	.zhila-recommendations__title {
		margin-bottom: 0 !important;
		font-size: 28px !important;
	}

	.zhila-rail-heading {
		margin-bottom: 28px !important;
		gap: 12px;
	}

	.zhila-recommendations .wc-block-product {
		flex-basis: calc((100% - 7px) / 2);
		min-width: 0;
		width: calc((100% - 7px) / 2) !important;
	}

	.zhila-product-rail .wc-block-product {
		flex-basis: calc((100% - 7px) / 2);
		min-width: 0;
		width: calc((100% - 7px) / 2) !important;
	}

	.zhila-rail-controls {
		position: static;
	}

	.zhila-rail-arrow {
		width: 36px;
		height: 36px;
	}

	.wp-block-woocommerce-product-collection .wc-block-components-product-price,
	.wp-block-woocommerce-product-collection .zhila-product-price,
	.zhila-recommendations .wc-block-components-product-price {
		font-size: 11px !important;
		line-height: 1.25;
	}

	.wp-block-woocommerce-product-collection .wc-block-components-product-price ins,
	.wp-block-woocommerce-product-collection .wc-block-components-product-price ins .woocommerce-Price-amount,
	.wp-block-woocommerce-product-collection .zhila-product-price ins,
	.wp-block-woocommerce-product-collection .zhila-product-price ins .woocommerce-Price-amount,
	.zhila-recommendations ins,
	.zhila-recommendations ins .woocommerce-Price-amount {
		font-size: 1em !important;
	}

	.wp-block-woocommerce-product-collection .wc-block-components-product-price del,
	.wp-block-woocommerce-product-collection .wc-block-components-product-price del .woocommerce-Price-amount,
	.wp-block-woocommerce-product-collection .zhila-product-price del,
	.wp-block-woocommerce-product-collection .zhila-product-price del .woocommerce-Price-amount,
	.zhila-recommendations del,
	.zhila-recommendations del .woocommerce-Price-amount {
		font-size: 9px !important;
	}

	.zhila-menu-toggle {
		display: block;
		flex: 0 0 24px;
		width: 24px;
		height: 24px;
		padding: 0;
		border: 0;
		background: transparent url('assets/icons/Burger.svg') center / 24px 24px no-repeat;
		cursor: pointer;
	}

	.wp-block-navigation__responsive-container-open {
		display: none !important;
	}

	.zhila-menu-overlay {
		position: fixed;
		inset: 0;
		z-index: 1000000;
		display: block;
		padding: 22px 24px;
		background: #0a8d73;
		color: #f6f4eb;
	}

	.zhila-menu-overlay[hidden] {
		display: none;
	}

	.zhila-menu-overlay__top {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.zhila-menu-overlay__logo img {
		display: block;
		width: 98px;
		filter: brightness(0) invert(1);
	}

	.zhila-menu-overlay__logo span {
		color: #f6f4eb;
		font-size: 30px;
		font-weight: 800;
	}

	.zhila-menu-overlay__actions {
		display: flex;
		align-items: center;
		gap: 14px;
	}

	.zhila-menu-icon,
	.zhila-menu-close {
		display: inline-flex;
		width: 20px;
		height: 20px;
		padding: 0;
		align-items: center;
		justify-content: center;
		border: 0;
		background: transparent;
		color: #f6f4eb;
		font-size: 24px;
		line-height: 1;
		text-decoration: none;
	}

	.zhila-menu-icon--search {
		background: url('assets/icons/SearchWhite.svg') center / contain no-repeat;
	}

	.zhila-menu-icon--cart {
		background: url('assets/icons/CartWhite.svg') center / contain no-repeat;
	}

	.zhila-menu-overlay__nav {
		display: grid;
		margin-top: 34px;
	}

	.zhila-menu-overlay__nav a {
		padding: 12px 0;
		border-bottom: 1px solid rgba(246, 244, 235, .85);
		color: inherit;
		font-size: 13px;
		text-decoration: none;
	}

	.zhila-menu-overlay__nav a:last-child {
		border-bottom: 0;
	}

	body.zhila-menu-open {
		overflow: hidden;
	}

	.zhila-home-header {
		display: flex;
		width: calc(100% - 40px) !important;
		min-height: 72px;
		padding: 0 !important;
		align-items: center;
		box-sizing: border-box;
	}

	.zhila-home-header > .wp-block-group:first-child {
		display: none;
	}

	.zhila-home-header > .wp-block-group:last-child {
		display: flex;
		align-items: center;
		gap: 10px;
		margin-left: auto;
	}

	.zhila-home-header .wp-block-woocommerce-customer-account {
		display: none !important;
	}

	.zhila-home-header .zhila-header-wishlist {
		display: inline-flex;
		color: #14141e !important;
	}

	.custom-cart__total-row > :last-child {
		max-width: 58%;
		text-align: right;
		overflow-wrap: anywhere;
	}

	.zhila-cart-added-notice {
		top: 78px;
		right: 20px;
		left: 20px;
		max-width: none;
	}
}
