/*
 * Дополнения темы Door Strong поверх основного дизайна.
 * Здесь только то, что нужно для интеграции с WordPress/WooCommerce,
 * чтобы не править скомпилированный assets/css/style.css.
 */

.products__img {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background: var(--surface-warm);
}

.products__img img {
	display: block;
	width: 100%;
	height: 100%;
	-o-object-fit: contain;
	object-fit: contain;
}

.cart__item-img img {
	display: block;
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	border-radius: 10px;
}

.products__name a,
.pages__item-name a {
	color: inherit;
	text-decoration: none;
}

/* Пагинация WordPress */
.catalog__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}

.catalog__pagination nav {
	display: flex;
	justify-content: center;
}

/* Сам список — только контейнер: без рамки и лишних отступов */
.catalog__pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.catalog__pagination ul.page-numbers li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.catalog__pagination .page-numbers:not(ul) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: transparent;
	color: var(--text);
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.catalog__pagination a.page-numbers:hover {
	border-color: var(--text);
}

.catalog__pagination .page-numbers.current {
	background: var(--text);
	color: #fff;
	border-color: var(--text);
}

.catalog__pagination .page-numbers.dots {
	border-color: transparent;
	color: var(--text-gray);
}

/* Заголовки контента обычных страниц */
.page-content h2,
.page-content h3 {
	margin-top: 1.2em;
}

.page-content p,
.page-content ul,
.page-content ol {
	margin-top: 0.8em;
}

/* ===== Фильтры каталога: диапазоны, сортировка, спиннер ===== */
.catalog-filter__range {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 8px;
}

.catalog-filter__range-native {
	width: 100%;
	accent-color: var(--accent);
}

.catalog-filter__range-inputs {
	display: flex;
	gap: 8px;
}

.catalog-filter__range-input {
	width: 100%;
	min-width: 0;
	padding: 6px 8px;
	border: 1px solid var(--border);
	border-radius: 6px;
	font: inherit;
	color: var(--text);
	background: #fff;
}

.catalog-page__filter-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.catalog-page__filter-apply,
.catalog-page__filter-reset {
	flex: 1 1 auto;
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px solid var(--text);
	background: var(--text);
	color: #fff;
	font: inherit;
	cursor: pointer;
}

.catalog-page__filter-reset {
	background: #fff;
	color: var(--text);
	border-color: var(--border);
}

.catalog-page__sort {
	display: inline-flex;
	align-items: center;
	margin-left: auto;
}

.catalog-page__toolbar {
	flex-wrap: wrap-reverse;
}

.catalog-page__sort-select {
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	color: var(--text);
	cursor: pointer;
}

.catalog-page__spinner {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba(255, 255, 255, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
}

.catalog-page__spinner.is-active {
	opacity: 1;
	visibility: visible;
}

.catalog-page__spinner.is-active::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 3px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	-webkit-animation: doorstrong-spin 0.7s linear infinite;
	animation: doorstrong-spin 0.7s linear infinite;
}

@-webkit-keyframes doorstrong-spin {
	to { -webkit-transform: rotate(360deg); }
}
@keyframes doorstrong-spin {
	to { transform: rotate(360deg); }
}

/* ===== Отступ фиксированного хедера от админ-бара WordPress ===== */
body.admin-bar .header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .header {
		top: 46px;
	}
}

/* ===== Меню шапки ===== */
.header__top-nav,
.header__menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.header__menu-list {
	display: contents;
}

.header__menu-list li {
	display: contents;
}

/* ===== Карточка товара ===== */
/* ===== Галерея товара: высокие слайды + миниатюры слева ===== */
.product__gallery {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-start;
}

.product__slider.swiper {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
}

.product__slide {
	aspect-ratio: 3 / 4;
}

.product__slide-img {
	-o-object-fit: contain;
	object-fit: contain;
	background: var(--surface-warm);
}

.product__thumbs {
	order: -1;
	flex: 0 0 96px;
	width: 96px;
	height: 420px;
	margin-top: 0;
}

.product__thumbs.swiper-vertical > .swiper-wrapper {
	flex-direction: column;
}

.product__thumbs .swiper-slide {
	height: auto;
}

.product__thumb {
	aspect-ratio: 3 / 4;
}

.product__slider-pagination {
	order: 2;
	width: 100%;
	margin-top: 4px;
}

@media (max-width: 780px) {
	.product__gallery {
		flex-direction: column;
	}

	.product__slider.swiper {
		flex: 0 0 auto;
		width: 100%;
	}

	.product__thumbs {
		order: 0;
		flex: 0 0 auto;
		width: 100%;
		height: auto;
		margin-top: 12px;
	}

	.product__thumbs.swiper-vertical > .swiper-wrapper {
		flex-direction: row;
	}
}

.product__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	-o-object-fit: contain;
	object-fit: contain;
	border-radius: 6px;
}

.product__actions .product__add-form {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

/* Форма вариаций WooCommerce (form.cart) — снимаем стили корзины */
.product__actions form.cart {
	padding-top: 0;
	padding-bottom: 0;
	background: none;
}

.product__actions .single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 15px 32px;
	border: 0;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
}

.product__actions .single_add_to_cart_button:hover {
	background: #c8181d;
}

.product__actions .quantity {
	display: inline-flex;
	align-items: center;
}

.product__actions .quantity input {
	width: 72px;
	min-height: 54px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	font: inherit;
	text-align: center;
}

.product__variations {
	margin-bottom: 20px;
}

.product__variations .variations {
	width: 100%;
	border-collapse: collapse;
}

.product__variations .variations tbody,
.product__variations .variations tr {
	display: block;
}

.product__variations .variations th,
.product__variations .variations td {
	display: block;
	width: 100%;
	padding: 0;
	text-align: left;
	font-weight: 400;
}

.product__variations .variations th.label {
	margin-bottom: 8px;
	color: var(--text-gray);
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.product__variations .variations th.label label {
	font-weight: inherit;
}

.product__variations .variations select {
	width: 100%;
	min-height: 54px;
	padding: 14px 44px 14px 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background-color: var(--background);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	color: var(--text);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	transition: border-color 0.2s;
}

.product__variations .variations select:focus {
	border-color: var(--accent);
	outline: none;
}

.product__variations .reset_variations {
	display: inline-block;
	margin-top: 8px;
	color: var(--accent);
	font-size: 13px;
	text-decoration: none;
}

/* Свотчи цвета вместо селекта */
.product__variations .variations select {
	display: none;
}

.product-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.product-swatch {
	width: 40px;
	height: 40px;
	padding: 0;
	border: 2px solid var(--border);
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	cursor: pointer;
	transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.product-swatch:hover {
	transform: scale(1.08);
}

.product-swatch.is-active {
	border-color: var(--accent);
	box-shadow: 0 0 0 2px rgba(237, 28, 36, 0.18);
}

.product__variations .reset_variations:hover {
	text-decoration: underline;
}

/* форма вариаций внутри старого блока (если где-то осталась) */
.product__actions .variations {
	width: 100%;
	border-collapse: collapse;
}

.product__actions .variations th,
.product__actions .variations td {
	padding: 6px 0;
	text-align: left;
	font-weight: 400;
}

.product__actions .variations select {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: 10px;
	font: inherit;
	background: #fff;
}

/* WC обновляет обзор заказа по этому селектору — обёртка не должна влиять на раскладку */
.checkout__summary .woocommerce-checkout-review-order-table {
	display: contents;
}

/* ===== Хлебные крошки ===== */
.breadcrumbs {
	padding-top: 20px;
	font-size: 13px;
	line-height: 1.4;
}

.breadcrumbs__container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.breadcrumbs__link {
	color: var(--text-gray);
	text-decoration: none;
	transition: color 0.2s;
}

.breadcrumbs__link:hover {
	color: var(--accent);
}

.breadcrumbs__sep {
	color: var(--border-strong);
}

.breadcrumbs__current {
	color: var(--text);
}

/* ===== Табы на странице товара (Описание / Оплата и доставка) ===== */
.product-tabs {
	margin-top: clamp(32px, 24px + 1.6666666667vw, 48px);
}

.product-tabs__title {
	margin-bottom: 16px;
	color: var(--text);
	font-size: clamp(1.25rem, 1rem + 0.5vw, 1.5rem);
	font-weight: 700;
}

.product-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 24px;
}

.product-tabs__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: -1px;
	padding: 12px 18px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--text-gray);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
}

.product-tabs__btn:hover {
	color: var(--text);
}

.product-tabs__btn.is-active {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.product-tabs__btn-icon {
	width: 20px;
	height: 20px;
	-o-object-fit: contain;
	object-fit: contain;
}

.product-tabs__panel {
	display: none;
}

.product-tabs__panel.is-active {
	display: block;
}

.product-tabs__panel-icon {
	width: 40px;
	height: 40px;
	margin-bottom: 12px;
	-o-object-fit: contain;
	object-fit: contain;
}

.product-tabs__content {
	max-width: 860px;
	color: var(--text-gray);
	font-size: 15px;
	line-height: 1.7;
}

.product-tabs__content p + p {
	margin-top: 12px;
}

/* Переносы строк в блоках «Доставка» / «Оплата» (там обычный текст) */
.product-tabs__panel:not([data-panel="description"]) .product-tabs__content {
	white-space: pre-line;
}

.product-tabs__content h2,
.product-tabs__content h3,
.product-tabs__content h4 {
	margin: 24px 0 0;
	color: var(--text);
	font-weight: 700;
	line-height: 1.3;
}

.product-tabs__content h2 {
	font-size: 1.25rem;
}

.product-tabs__content h3 {
	font-size: 1.0625rem;
}

.product-tabs__content h4 {
	font-size: 1rem;
}

.product-tabs__content h2 + p,
.product-tabs__content h3 + p,
.product-tabs__content h4 + p {
	margin-top: 8px;
}

.product-tabs__content a {
	color: var(--accent);
	text-decoration: underline;
}

.product-tabs__content a:hover {
	text-decoration: none;
}

.product-tabs__content ul,
.product-tabs__content ol {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.product-tabs__content ul {
	border-top: 1px solid var(--border);
}

.product-tabs__content ol {
	counter-reset: ds-list;
}

.product-tabs__content li {
	display: grid;
	grid-template-columns: minmax(140px, 240px) minmax(0, 1fr);
	gap: 4px 24px;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
	font-size: 14px;
	line-height: 1.55;
}

.product-tabs__content ol li {
	grid-template-columns: 28px minmax(0, 1fr);
}

.product-tabs__content ol li::before {
	counter-increment: ds-list;
	content: counter(ds-list) ".";
	color: var(--accent);
	font-weight: 600;
}

.product-tabs__content li strong {
	color: var(--text-gray);
	font-weight: 500;
}

.product-tabs__content li > strong:first-child {
	color: var(--text);
	font-weight: 600;
}

@media (max-width: 640px) {
	.product-tabs__content li {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}
}

/* ===== Уведомления WooCommerce — всплывающие тосты ===== */
.woocommerce-notices-wrapper {
	position: fixed;
	top: calc(var(--header-height, 122px) + 16px);
	right: 16px;
	z-index: 90;
	width: min(340px, calc(100vw - 32px));
	pointer-events: none;
}

body.admin-bar .woocommerce-notices-wrapper {
	top: calc(var(--header-height, 122px) + 48px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .woocommerce-notices-wrapper {
		top: calc(var(--header-height, 122px) + 62px);
	}
}

.woocommerce-notices-wrapper:not(:empty) {
	margin: 0;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
	pointer-events: auto;
	box-shadow: 0 14px 40px rgba(17, 20, 24, 0.18);
	-webkit-animation: doorstrong-toast-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation: doorstrong-toast-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@-webkit-keyframes doorstrong-toast-in {
	from { opacity: 0; -webkit-transform: translateX(120%); }
	to { opacity: 1; -webkit-transform: translateX(0); }
}
@keyframes doorstrong-toast-in {
	from { opacity: 0; transform: translateX(120%); }
	to { opacity: 1; transform: translateX(0); }
}
@-webkit-keyframes doorstrong-toast-out {
	to { opacity: 0; -webkit-transform: translateX(120%); }
}
@keyframes doorstrong-toast-out {
	to { opacity: 0; transform: translateX(120%); }
}

.woocommerce-notices-wrapper .woocommerce-message.is-hiding,
.woocommerce-notices-wrapper .woocommerce-info.is-hiding,
.woocommerce-notices-wrapper .woocommerce-error.is-hiding {
	-webkit-animation: doorstrong-toast-out 0.35s ease forwards;
	animation: doorstrong-toast-out 0.35s ease forwards;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	position: relative;
	margin: 0 0 12px;
	padding: 16px 20px 16px 62px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface-warm);
	color: var(--text);
	font-size: 15px;
	line-height: 1.5;
	list-style: none;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	position: absolute;
	left: 18px;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

.woocommerce-message {
	border-color: rgba(31, 122, 77, 0.25);
	background: rgba(31, 122, 77, 0.07);
}

.woocommerce-message::before {
	content: "✓";
	background: var(--success);
}

.woocommerce-info {
	border-color: rgba(237, 28, 36, 0.18);
	background: rgba(237, 28, 36, 0.05);
}

.woocommerce-info::before {
	content: "i";
	background: var(--accent);
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
}

.woocommerce-error {
	border-color: rgba(237, 28, 36, 0.35);
	background: rgba(237, 28, 36, 0.08);
}

.woocommerce-error::before {
	content: "!";
	background: var(--accent);
}

.woocommerce-message a.button,
.woocommerce-info a.button {
	float: right;
	margin-left: 16px;
	color: var(--accent);
	font-weight: 600;
	text-decoration: underline;
}

.woocommerce-message a.restore-item {
	color: var(--accent);
	font-weight: 600;
	text-decoration: underline;
}

/* ===== Пустая корзина (WC-разметка) ===== */
.wc-empty-cart-message .cart-empty {
	margin: 0 0 20px;
	padding: 32px 20px;
	border: 1px dashed var(--border);
	border-radius: 12px;
	background: var(--surface-warm);
	color: var(--text-gray);
	text-align: center;
}

.return-to-shop {
	margin: 0;
	text-align: center;
}

.return-to-shop .button,
.woocommerce .button.wc-backward {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 28px;
	border: 0;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s;
}

.return-to-shop .button:hover,
.woocommerce .button.wc-backward:hover {
	background: #c8181d;
}

/* ===== Пустая корзина (вёрстка .cart__empty) ===== */
.cart__empty {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 72px 20px;
	text-align: center;
	color: var(--text-gray);
}

.cart__empty.opened {
	display: flex;
}

.cart__empty-icon {
	width: 104px;
	height: 104px;
	color: var(--accent-3);
	stroke-width: 1.4;
}

.cart__empty > div {
	color: var(--text);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.cart__empty .cart__continue {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin-top: 4px;
	padding: 14px 28px;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s;
}

.cart__empty .cart__continue:hover {
	background: #c8181d;
	color: #fff;
}

/* ===== Спиннер на кнопках «В корзину» / «Оформить» ===== */
.woocommerce a.button.loading,
.woocommerce button.button.loading,
.ajax_add_to_cart.loading,
.products__btn.loading,
.add_to_cart_button.loading,
.products__actions .add_to_cart_button.loading,
.single_add_to_cart_button.loading,
.product__add.loading,
.checkout__pay.loading,
#place_order.loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

.woocommerce a.button.loading::after,
.woocommerce button.button.loading::after,
.ajax_add_to_cart.loading::after,
.products__btn.loading::after,
.add_to_cart_button.loading::after,
.products__actions .add_to_cart_button.loading::after,
.single_add_to_cart_button.loading::after,
.product__add.loading::after,
.checkout__pay.loading::after,
#place_order.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	-webkit-animation: doorstrong-spin 0.7s linear infinite;
	animation: doorstrong-spin 0.7s linear infinite;
}

.products__btn_outline.loading::after,
.product__buy.loading::after {
	border-color: rgba(26, 26, 26, 0.25);
	border-top-color: var(--text);
}

.ajax_add_to_cart.added::after,
.products__btn.added::after {
	content: "✓";
	position: static;
	width: auto;
	height: auto;
	margin: 0 0 0 6px;
	border: 0;
	color: currentColor;
	-webkit-animation: none;
	animation: none;
}

/* Ссылку «Просмотр корзины» после добавления не показываем */
.added_to_cart {
	display: none !important;
}

/* Спиннер при изменении количества в корзине */
.cart__item.is-loading .cart__qty {
	position: relative;
	opacity: 0.6;
	pointer-events: none;
}

.cart__item.is-loading .cart__qty::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	-webkit-animation: doorstrong-spin 0.7s linear infinite;
	animation: doorstrong-spin 0.7s linear infinite;
}

/* Спиннер при удалении товара из корзины */
.cart__item.is-removing {
	opacity: 0.6;
	pointer-events: none;
}

.cart__item.is-removing .cart__remove {
	position: relative;
	color: transparent !important;
}

.cart__item.is-removing .cart__remove .icon {
	visibility: hidden;
}

.cart__item.is-removing .cart__remove::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	-webkit-animation: doorstrong-spin 0.7s linear infinite;
	animation: doorstrong-spin 0.7s linear infinite;
}

/* Спиннер на кнопке «Оформить заказ» */
.cart__checkout.is-loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

.cart__checkout.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	-webkit-animation: doorstrong-spin 0.7s linear infinite;
	animation: doorstrong-spin 0.7s linear infinite;
}

/* ===== AJAX-поиск в шапке ===== */
.header-search {
	position: fixed;
	inset: 0;
	z-index: 120;
	pointer-events: none;
}

.header-search.opened {
	pointer-events: auto;
}

.header-search__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 20, 24, 0.4);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.header-search.opened .header-search__overlay {
	opacity: 1;
	visibility: visible;
}

/* Поле выезжает прямо под иконкой поиска (координаты ставит JS) */
.header-search__panel {
	position: absolute;
	top: 96px;
	right: 24px;
	width: min(440px, calc(100% - 32px));
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(17, 20, 24, 0.25);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px) scale(0.97);
	transform-origin: top right;
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.header-search.opened .header-search__panel {
	opacity: 1;
	visibility: visible;
	transform: none;
}

@media (max-width: 767px) {
	.header-search__panel {
		left: 0;
		right: 0;
		width: 100%;
		border-width: 0 0 1px;
		border-radius: 0 0 16px 16px;
		transform: translateY(-16px);
		transform-origin: top center;
	}
}

/* Кнопка поиска в мобильной шапке */
.header__action-search {
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
}

.header__action-search .icon {
	width: 18px;
	height: 18px;
}

.header__action-search:hover {
	color: var(--accent);
	border-color: var(--accent);
}

@media (max-width: 1099px) {
	.header__action-search {
		display: inline-flex;
	}
}

.header-search__form {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
}

.header-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	font: inherit;
	font-size: 18px;
	color: var(--text);
	padding: 8px 0;
}

.header-search__submit,
.header-search__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
}

.header-search__submit:hover,
.header-search__close:hover {
	background: var(--surface-warm);
}

.header-search__results {
	max-height: 60vh;
	overflow-y: auto;
}

.header-search__result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	color: var(--text);
	text-decoration: none;
	border-bottom: 1px solid var(--border);
}

.header-search__result:hover {
	background: var(--surface-warm);
}

.header-search__result-img {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--placeholder);
}

.header-search__result-img img {
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	display: block;
}

.header-search__result-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.header-search__result-title {
	font-weight: 600;
}

.header-search__result-price {
	color: var(--text-secondary);
}

.header-search__empty {
	padding: 24px 16px;
	color: var(--text-secondary);
	text-align: center;
}

/* ===== Записи: блок, архив, рубрики, одиночная запись ===== */
.posts {
	margin-bottom: clamp(48px, 40px + 2vw, 80px);
}

.posts__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.posts__head {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 640px;
}

.posts__title {
	color: var(--text);
	font-size: clamp(1.75rem, 1rem + 1.875vw, 2.875rem);
	font-weight: 700;
	line-height: 1.12;
}

.posts__subtitle {
	max-width: 511px;
	color: var(--text-gray);
	font-size: 15px;
	line-height: 1.55;
}

.posts__grid {
	display: grid;
	grid-template-columns: repeat(var(--posts-columns, 3), minmax(0, 1fr));
	gap: 20px;
}

.posts__list {
	width: 100%;
}

/* Карточка записи */
.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--background);
	box-shadow: 0 1px 2px rgba(17, 20, 24, 0.04);
	transition: box-shadow 0.25s, transform 0.25s;
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(17, 20, 24, 0.08);
}

.post-card__img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: var(--placeholder);
}

.post-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__img-icon {
	width: 48px;
	height: 48px;
	color: var(--border);
}

.post-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px 18px 20px;
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.32px;
}

.post-card__cat {
	color: var(--accent-2);
	text-decoration: none;
	transition: color 0.2s;
}

.post-card__cat:hover {
	color: var(--accent);
}

.post-card__date {
	color: var(--text-gray);
	font-weight: 600;
	letter-spacing: 0.66px;
}

.post-card__name {
	margin-bottom: 10px;
	color: var(--text);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.post-card__name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.post-card__name a:hover {
	color: var(--accent);
}

.post-card__desc {
	margin-bottom: 18px;
	color: var(--text-gray);
	font-size: 14px;
	line-height: 1.55;
}

.post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--accent-3);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.56px;
	text-decoration: none;
	transition: gap 0.2s, color 0.2s;
}

.post-card__more .icon {
	width: 16px;
	height: 16px;
}

.post-card__more:hover {
	gap: 12px;
}

/* Слайдер записей */
.posts--slider .posts__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 40px) / 3);
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.posts--slider .posts__track::-webkit-scrollbar {
	display: none;
}

.posts--slider .posts__track > .post-card {
	scroll-snap-align: start;
}

.posts__controls {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.posts__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--background);
	color: var(--text);
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}

.posts__arrow .icon {
	width: 18px;
	height: 18px;
}

.posts__arrow_prev .icon {
	transform: rotate(180deg);
}

.posts__arrow:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.posts__arrow[disabled] {
	opacity: 0.35;
	cursor: default;
}

.posts__more {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: 1px solid var(--accent-3);
	border-radius: 8px;
	background: var(--background);
	color: var(--accent-3);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.56px;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.posts__more .icon {
	width: 16px;
	height: 16px;
}

.posts__more:hover {
	background: var(--accent-3);
	color: #fff;
}

/* Архив и одиночная запись */
.posts-archive {
	padding-block: clamp(32px, 24px + 2vw, 56px);
}

.posts-archive__title {
	color: var(--text);
	font-size: clamp(1.625rem, 1rem + 1.4583333333vw, 2.5rem);
	font-weight: 700;
	line-height: 1.1;
}

.posts-archive__desc {
	max-width: 720px;
	margin-top: 16px;
	color: var(--text-gray);
	font-size: 15px;
	line-height: 1.6;
}

.posts-archive__list {
	margin-top: 32px;
}

.posts-archive__empty {
	margin-top: 24px;
	color: var(--text-gray);
}

.post-entry {
	padding-block: clamp(32px, 24px + 2vw, 56px);
}

.post-entry__title {
	color: var(--text);
	font-size: clamp(1.75rem, 1rem + 1.875vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
}

.post-entry__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-top: 16px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
}

.post-entry__image {
	margin-top: 28px;
	overflow: hidden;
	border-radius: 12px;
}

.post-entry__image img {
	width: 100%;
	max-height: 560px;
	-o-object-fit: cover;
	object-fit: cover;
}

.post-entry__content,
.entry-content {
	margin-top: 28px;
	color: var(--text-gray);
	font-size: 16px;
	line-height: 1.75;
}

.post-entry__content > * + *,
.entry-content > * + * {
	margin-top: 16px;
}

.post-entry__content > h2,
.post-entry__content > h3,
.post-entry__content > h4,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4 {
	margin-top: 32px;
	color: var(--text);
	font-weight: 700;
	line-height: 1.3;
}

.post-entry__content > h2,
.entry-content > h2 {
	font-size: 1.5rem;
}

.post-entry__content > h3,
.entry-content > h3 {
	font-size: 1.1875rem;
}

.post-entry__content > p a,
.entry-content > p a,
.post-entry__content > ul a,
.entry-content > ul a {
	color: var(--accent);
	text-decoration: underline;
}

.post-entry__content > p a:hover,
.entry-content > p a:hover,
.post-entry__content > ul a:hover,
.entry-content > ul a:hover {
	text-decoration: none;
}

.post-entry__content > ul,
.post-entry__content > ol,
.entry-content > ul,
.entry-content > ol {
	padding-left: 22px;
}

.post-entry__content > ul,
.entry-content > ul {
	list-style: disc;
}

.post-entry__content > ol,
.entry-content > ol {
	list-style: decimal;
}

.post-entry__content > ul > li + li,
.post-entry__content > ol > li + li,
.entry-content > ul > li + li,
.entry-content > ol > li + li {
	margin-top: 6px;
}

.post-entry__content > blockquote,
.entry-content > blockquote {
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--accent);
	color: var(--text);
	font-style: italic;
}

.post-entry__content > img,
.entry-content > img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.post-entry__content > figure img,
.entry-content > figure img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.post-entry__footer {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

/* Навигация по записям (рубрики) */
.posts-nav {
	margin-top: 24px;
}

.posts-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.posts-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--background);
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.posts-nav__link:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.posts-nav__link.is-active {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

.posts-nav__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--placeholder);
	color: var(--text-gray);
	font-size: 11px;
	font-weight: 700;
}

.posts-nav__link.is-active .posts-nav__count {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

/* Теги и навигация внутри записи */
.post-entry__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.post-entry__tag {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--text-gray);
	font-size: 13px;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.post-entry__tag:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.post-entry__nav {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

@media (max-width: 1024px) {
	.posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.posts--slider .posts__track {
		grid-auto-columns: calc((100% - 20px) / 2);
	}
}

@media (max-width: 640px) {
	.posts__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.posts--slider .posts__track {
		grid-auto-columns: 82%;
	}
}

/* Карточки категорий на главной: фото не должно растягивать карточку */
.categories__img {
	overflow: hidden;
}

.categories__img img {
	width: 100%;
	height: 100%;
	-o-object-fit: contain;
	object-fit: contain;
}

/* Пустая категория / ничего не найдено */
.catalog-page__empty {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: clamp(32px, 24px + 3vw, 64px) 24px;
	border: 1px dashed var(--border);
	border-radius: 12px;
	background: var(--background);
	text-align: center;
}

.catalog-page__empty-icon {
	width: 56px;
	height: 56px;
	color: var(--border);
}

.catalog-page__empty-title {
	color: var(--text);
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
	font-weight: 700;
	line-height: 1.25;
}

.catalog-page__empty-text {
	max-width: 520px;
	margin: 0 auto;
	color: var(--text-gray);
	font-size: 15px;
	line-height: 1.6;
}

.catalog-page__empty-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
	padding: 12px 24px;
	border-radius: 8px;
	background: var(--accent);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: opacity 0.2s;
}

.catalog-page__empty-link:hover {
	opacity: 0.85;
}

/* Описание категории в каталоге */
.catalog-page__desc {
	max-width: 860px;
	margin-top: 16px;
	color: var(--text-gray);
	font-size: 15px;
	line-height: 1.6;
}

.catalog-page__desc > * + * {
	margin-top: 10px;
}

/* Вложенный контейнер не дублирует ограничение ширины и отступы
   (блоки в контенте страницы уже обёрнуты в .container) */
.container .container {
	width: auto;
	max-width: none;
	padding-inline: 0;
}

/* Миниатюры категорий в меню «Каталог» */
.header__catalog-thumb,
.catalog__thumb {
	overflow: hidden;
}

.header__catalog-thumb img,
.catalog__thumb img {
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
}

/* ===== Купон на страницах корзины и оформления заказа ===== */
.woocommerce-form-coupon-toggle {
	margin-bottom: 20px;
}

.woocommerce-form-coupon-toggle .woocommerce-info {
	margin-bottom: 0;
}

.woocommerce-form-coupon-toggle .showcoupon {
	color: var(--accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woocommerce-form-coupon-toggle .showcoupon:hover {
	text-decoration: none;
}

form.checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
	margin: 0 0 20px;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--background);
}

form.checkout_coupon .form-row {
	flex: 1 1 260px;
	margin: 0;
	padding: 0;
	float: none;
	width: auto;
}

form.checkout_coupon .form-row-last {
	flex: 0 0 auto;
}

form.checkout_coupon .input-text {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--background);
	color: var(--text);
	font: inherit;
	font-size: 15px;
	transition: border-color 0.2s;
}

form.checkout_coupon .input-text:focus {
	outline: none;
	border-color: var(--accent);
}

form.checkout_coupon button.button {
	height: 100%;
	padding: 13px 26px;
	border: 1px solid var(--accent);
	border-radius: 8px;
	background: var(--accent);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: opacity 0.2s;
}

form.checkout_coupon button.button:hover {
	opacity: 0.85;
}




/* ===== Плавающая кнопка корзины со счётчиком ===== */
.cart-widget {
	position: fixed;
	right: clamp(16px, 12px + 0.8333vw, 24px);
	bottom: clamp(16px, 12px + 0.8333vw, 24px);
	z-index: 95;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	box-shadow: 0 12px 30px rgba(237, 28, 36, 0.35);
	transition: transform 0.2s, box-shadow 0.2s;
}

.cart-widget .icon {
	width: 24px;
	height: 24px;
}

.cart-widget:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(237, 28, 36, 0.45);
}

.cart-widget__count {
	position: absolute;
	top: -4px;
	right: -4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border: 2px solid var(--background);
	border-radius: 999px;
	background: var(--text);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.cart-widget:not(.is-active) .cart-widget__count {
	display: none;
}

@-webkit-keyframes doorstrong-cart-pulse {
	0% { -webkit-transform: scale(1); }
	40% { -webkit-transform: scale(1.16); }
	100% { -webkit-transform: scale(1); }
}
@keyframes doorstrong-cart-pulse {
	0% { transform: scale(1); }
	40% { transform: scale(1.16); }
	100% { transform: scale(1); }
}

.cart-widget.is-pulse {
	-webkit-animation: doorstrong-cart-pulse 0.45s ease;
	animation: doorstrong-cart-pulse 0.45s ease;
}

@media (max-width: 1099px) {
	.cart-widget {
		width: 52px;
		height: 52px;
	}
}
/* ===== AOS-анимации появления ===== */
[data-aos] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: calc(var(--aos-delay, 0) * 1ms);
	will-change: opacity, transform;
}

[data-aos="fade-in"] { transform: none; }
[data-aos="fade-left"] { transform: translateX(-36px); }
[data-aos="fade-right"] { transform: translateX(36px); }
[data-aos="zoom-in"] { transform: scale(0.94); }

[data-aos].aos-animate {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	[data-aos] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ===== Hover-эффекты карточек ===== */
.products__img img,
.post-card__img img,
.categories__img img {
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.products__card:hover .products__img img,
.post-card:hover .post-card__img img,
.categories__card:hover .categories__img img {
	transform: scale(1.06);
}

/* ===== Липкая галерея + блок вариаций (доработка) ===== */
@media (min-width: 981px) {
	.product__main { align-items: flex-start; }
	.product__gallery {
		position: sticky;
		top: calc(var(--header-height, 122px) + 20px);
		align-self: flex-start;
	}
	body.admin-bar .product__gallery {
		top: calc(var(--header-height, 122px) + 52px);
	}
}

.single_variation_wrap { margin-top: 6px; }
.woocommerce-variation-price { margin: 10px 0; }
.woocommerce-variation-price .price {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
}
.woocommerce-variation-availability {
	margin: 4px 0;
	font-size: 14px;
	color: #6b7280;
}
.woocommerce-variation-description { font-size: 14px; color: #4b5563; }
.woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 10px;
}
.woocommerce-variation-add-to-cart .quantity { display: inline-flex; align-items: center; }
.woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 0 0 auto; }
.product__actions .reset_variations {
	display: inline-block;
	margin-left: 8px;
	font-size: 13px;
	color: #9aa0a3;
}
.price-on-request { font-weight: 700; font-size: 22px; }

/* Подсветка обновляющегося атрибута при смене вариации */
.product__feature.is-updated .product__feature-value { transition: background-color .4s; background: #fff7d6; }

/* Цена в карточке каталога */
.products__price {
	font-weight: 700;
	font-size: 18px;
	white-space: nowrap;
}
.products__price .woocommerce-Price-amount { font-weight: 700; }
.products__price del { color: #9aa0a3; font-weight: 400; font-size: 15px; margin-right: 6px; }
.products__price ins { text-decoration: none; }

/* Блок выбора вариации (вынесен из .product__actions) */
.single_variation_wrap { margin: 14px 0; }
.single_variation_wrap .woocommerce-variation-price .price { font-size: 28px; font-weight: 700; }
.single_variation_wrap .woocommerce-variation-availability { margin: 4px 0; }
.product__variations .variations th.label { font-weight: 600; text-align: left; padding-right: 12px; }

/* Оформление блока вариации как у одиночного товара */
.single_variation_wrap form.cart { padding: 0; background: none; }
.single_variation_wrap .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0;
}
.single_variation_wrap .single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 15px 32px;
	border: 0;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s;
}
.single_variation_wrap .single_add_to_cart_button:hover { background: #c8181d; }
.single_variation_wrap .quantity { display: inline-flex; align-items: center; }
.single_variation_wrap .quantity input {
	width: 72px;
	min-height: 54px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	font: inherit;
	text-align: center;
}
.single_variation_wrap .woocommerce-variation-price { margin: 8px 0 14px; }
.single_variation_wrap .woocommerce-variation-price .price {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
}
.single_variation_wrap .woocommerce-variation-availability { margin: 4px 0; font-size: 14px; color: #6b7280; }
/* Кнопка «Купить в один клик» под блоком вариации */
.product__info > .product__actions,
form.variations_form > .product__actions { margin-top: 12px; }
.product__actions .product__buy { margin: 0; }

/* ===== Аккуратные уведомления WooCommerce ===== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 16px 20px 16px 60px;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(17, 20, 24, 0.08);
}
.woocommerce-message > .button,
.woocommerce-info > .button,
.woocommerce-error > .button,
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
	float: none;
	margin-left: auto;
	padding: 10px 18px;
	border-radius: 10px;
	background: var(--text);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}
.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-error a.button:hover {
	background: var(--accent);
	color: #fff;
}
.woocommerce-message a.restore-item { color: var(--accent); font-weight: 600; }
/* Текст-ссылка в сообщении не должна «прыгать» */
.woocommerce-message br { display: none; }

/* Один ряд у вариации: количество + «В корзину» + «Купить в один клик» */
.single_variation_wrap .woocommerce-variation-add-to-cart { align-items: stretch; }
.single_variation_wrap .woocommerce-variation-add-to-cart .product__actions {
	margin: 0;
	display: inline-flex;
	align-items: center;
}
.single_variation_wrap .woocommerce-variation-add-to-cart .product__buy {
	min-height: 54px;
	padding: 0 24px;
	border-radius: 10px;
	white-space: nowrap;
}
/* Кнопка «Купить в один клик» для одиночного товара — та же высота */
.product__actions .product__buy { min-height: 54px; padding: 0 24px; border-radius: 10px; }

/* Товар без цены — только надпись, без кнопок */
.product__on-request {
	margin: 14px 0;
	padding: 18px 20px;
	border: 1px dashed var(--border);
	border-radius: 12px;
	background: var(--surface-warm);
}
.product__on-request-label { display: block; font-size: 22px; font-weight: 700; }
.product__on-request-text { margin: 8px 0 0; color: var(--text-gray); font-size: 14px; line-height: 1.5; }

/* ===== Модалка корзины (по клику на виджет) ===== */
.cart-modal {
	position: fixed;
	inset: 0;
	z-index: 210;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 12px + .83vw, 24px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}
.cart-modal.opened { opacity: 1; visibility: visible; }
.cart-modal__overlay { position: absolute; inset: 0; background: rgba(20, 20, 26, .55); }
.cart-modal__panel {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 85vh;
	overflow-y: auto;
	background: var(--background);
	border-radius: 16px;
	padding: 24px;
	transform: translateY(12px);
	transition: transform .3s;
}
.cart-modal.opened .cart-modal__panel { transform: none; }
.cart-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
}
.cart-modal__close .icon { width: 18px; height: 18px; }
.cart-modal__close:hover { color: var(--accent); border-color: var(--accent); }
.cart-modal__title { font-size: 20px; font-weight: 700; margin-bottom: 16px; padding-right: 44px; }
.cart-modal__items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.cart-modal__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.cart-modal__img img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.cart-modal__name { color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.3; }
.cart-modal__name:hover { color: var(--accent); }
.cart-modal__meta { margin-top: 3px; color: var(--text-gray); font-size: 13px; }
.cart-modal__remove { color: #b0b0b0; font-size: 22px; line-height: 1; }
.cart-modal__remove:hover { color: var(--accent); }
.cart-modal__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px solid var(--border);
	font-size: 16px;
	font-weight: 700;
}
.cart-modal__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cart-modal__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 16px;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}
.cart-modal__btn:hover { background: #c8181d; }
.cart-modal__btn_outline { background: 0 0; border: 1px solid var(--border); color: var(--text); }
.cart-modal__btn_outline:hover { background: var(--surface); color: var(--accent); }
.cart-modal__empty { padding: 28px 12px; text-align: center; color: var(--text-gray); }

/* Количество у вариативного товара: «−/+» как у одиночного */
.woocommerce-variation-add-to-cart .quantity.cart__qty {
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
}
.woocommerce-variation-add-to-cart .cart__qty-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.woocommerce-variation-add-to-cart .cart__qty-btn {
	width: 44px;
	height: 54px;
	font-size: 18px;
	line-height: 1;
	color: var(--text);
}
.woocommerce-variation-add-to-cart .cart__qty-btn:hover { background: var(--surface); color: var(--accent); }
.woocommerce-variation-add-to-cart .cart__qty-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 54px;
	font-size: 16px;
	font-weight: 600;
}

/* ===== Виджет корзины виден только при товарах + выезжающая справа панель ===== */
.cart-widget:not(.is-active) { display: none; }

.cart-modal {
	position: fixed;
	inset: 0;
	z-index: 95; /* ниже хедера (100) — навигация остаётся доступной */
	pointer-events: none;
	opacity: 1;
	visibility: visible;
}
.cart-modal.opened { pointer-events: auto; }
.cart-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 26, .4);
	opacity: 0;
	transition: opacity .3s;
}
.cart-modal.opened .cart-modal__overlay { opacity: 1; }
.cart-modal__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(400px, 100%);
	height: 100%;
	max-width: none;
	max-height: none;
	border-radius: 0;
	padding: calc(var(--header-height, 122px) + 16px) 24px 24px;
	background: var(--background);
	box-shadow: -18px 0 50px rgba(17, 20, 24, .16);
	transform: translateX(100%);
	transition: transform .3s ease;
	overflow-y: auto;
}
.cart-modal.opened .cart-modal__panel { transform: none; }
@media screen and (max-width: 782px) {
	.cart-modal__panel { padding-top: calc(var(--header-height, 78px) + 16px); }
}
body.admin-bar .cart-modal__panel { padding-top: calc(var(--header-height, 122px) + 48px); }

/* ===== Компактный поповер над виджетом (не на весь сайт) ===== */
.cart-modal {
	position: fixed;
	inset: 0;
	z-index: 95;
	pointer-events: none;
	opacity: 1;
	visibility: visible;
}
.cart-modal.opened { pointer-events: none; }
.cart-modal__overlay { display: none; }
.cart-modal__panel {
	position: fixed;
	top: auto;
	left: auto;
	right: clamp(16px, 12px + 0.8333vw, 24px);
	bottom: calc(clamp(16px, 12px + 0.8333vw, 24px) + 68px);
	width: min(360px, calc(100vw - 32px));
	height: auto;
	max-height: min(70vh, 520px);
	border-radius: 16px;
	padding: 18px;
	box-shadow: 0 20px 60px rgba(17, 20, 24, .22);
	transform: translateY(12px) scale(.98);
	opacity: 0;
	transform-origin: bottom right;
	transition: transform .25s ease, opacity .25s ease;
	overflow-y: auto;
	pointer-events: none;
}
.cart-modal.opened .cart-modal__panel {
	transform: none;
	opacity: 1;
	pointer-events: auto;
}

/* Спиннер внутри поповера во время добавления/удаления */
.cart-modal__panel.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, .55);
	z-index: 2;
}
.cart-modal__panel.is-loading::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	border: 3px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	-webkit-animation: doorstrong-spin .7s linear infinite;
	animation: doorstrong-spin .7s linear infinite;
	z-index: 3;
}

/* Липкий сайдбар фильтров каталога (десктоп) */
@media (min-width: 1100px) {
	.catalog-page__filters {
		position: sticky;
		top: calc(var(--header-height, 122px) + 20px);
		align-self: start;
		max-height: calc(100vh - var(--header-height, 122px) - 40px);
		overflow-y: auto;
	}
	body.admin-bar .catalog-page__filters {
		top: calc(var(--header-height, 122px) + 52px);
	}
}

/* Категории в фильтрах — обычные ссылки */
.catalog-page__filter-options_links { gap: 6px; }
.catalog-page__cat-link {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 11px;
	border: 1px solid var(--border);
	border-radius: 9px;
	background: var(--background);
	color: var(--text);
	font-size: 14px;
	line-height: 1.3;
	transition: border-color .2s, color .2s, background-color .2s;
}
.catalog-page__cat-link::before {
	content: "";
	width: 6px;
	height: 6px;
	flex: none;
	border-radius: 50%;
	background: var(--accent-2);
	transition: background-color .2s;
}
.catalog-page__cat-link:hover {
	border-color: var(--accent-2);
	color: var(--accent-2);
	background: var(--surface-warm);
}
.catalog-page__cat-link.is-active {
	border-color: var(--accent);
	color: var(--accent);
	font-weight: 700;
	background: rgba(237, 28, 36, .05);
}
.catalog-page__cat-link.is-active::before { background: var(--accent); }

/* Форма фильтров + разделители между группами */
.catalog-page__filters-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.catalog-page__filter {
	padding: 14px 0;
	border-top: 1px solid var(--border);
}
.catalog-page__filter:first-of-type {
	border-top: 0;
	padding-top: 0;
}
.catalog-page__filter-title {
	margin-bottom: 10px;
	color: var(--text-gray);
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
}
.catalog-page__filters-head { margin-bottom: 6px; }
.catalog-page__filter-buttons {
	display: flex;
	gap: 10px;
	padding-top: 14px;
	border-top: 1px solid var(--border);
}
.catalog-page__filter-apply {
	flex: 1;
	min-height: 44px;
	border: 0;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s;
}
.catalog-page__filter-apply:hover { background: #c8181d; }
.catalog-page__filter-reset {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: 0 0;
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .2s, color .2s;
}
.catalog-page__filter-reset:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Похожие товары — слайдер ===== */
.product__recommended { margin-top: 48px; }
.product__recommended-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}
.product__recommended-title { font-size: clamp(1.5rem, 1rem + 1vw, 2rem); font-weight: 700; }
.product__recommended-nav { display: flex; gap: 8px; }
.product__recommended-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--background);
	color: var(--text);
	transition: border-color .2s, color .2s, opacity .2s;
}
.product__recommended-arrow .icon { width: 18px; height: 18px; }
.product__recommended-arrow_prev .icon { transform: rotate(90deg); }
.product__recommended-arrow_next .icon { transform: rotate(-90deg); }
.product__recommended-arrow:hover { border-color: var(--accent); color: var(--accent); }
.product__recommended-arrow:disabled { opacity: .4; cursor: default; }
.product__recommended-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 6px;
	scrollbar-width: none;
}
.product__recommended-track::-webkit-scrollbar { display: none; }
.product__recommended-slide {
	flex: 0 0 auto;
}

/* Поповер корзины — высота по содержимому (не фиксированная) */
.cart-modal__panel {
	height: auto !important;
	min-height: 0;
	max-height: min(80vh, 600px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Скроллится только содержимое — фон/спиннер остаются на месте */
.cart-modal__content {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

/* Перебиваем старые «ящичные» отступы панели (в т.ч. под хедер и админ-бар) */
.cart-modal__panel,
body.admin-bar .cart-modal__panel,
.cart-modal .cart-modal__panel {
	padding: 18px !important;
}
@media screen and (max-width: 782px) {
	.cart-modal__panel,
	body.admin-bar .cart-modal__panel {
		padding: 16px !important;
	}
}

/* Пустая корзина */
.cart-modal__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 22px 12px;
	text-align: center;
	color: var(--text-gray);
}
.cart-modal__empty-icon { width: 34px; height: 34px; color: #d0d0d0; }
.cart-modal__empty .cart-modal__btn { min-height: 44px; padding: 0 20px; margin-top: 6px; }

/* ===== Поиск на странице магазина ===== */
.catalog-page__search { display: flex; gap: 10px; margin-bottom: 16px; }
.catalog-page__search-form { position: relative; flex: 1; display: flex; }
.catalog-page__search-input {
	width: 100%;
	height: 50px;
	padding: 0 54px 0 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--background);
	color: var(--text);
	font-size: 15px;
	transition: border-color .2s;
}
.catalog-page__search-input:focus { border-color: var(--accent); outline: none; }
.catalog-page__search-submit {
	position: absolute;
	right: 7px;
	top: 7px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 8px;
	background: var(--accent);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color .2s;
}
.catalog-page__search-submit:hover { background: #c8181d; }
.catalog-page__search-submit .icon { width: 18px; height: 18px; }
.catalog-page__search-modal {
	height: 50px;
	padding: 0 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--background);
	color: var(--text);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	transition: border-color .2s, color .2s;
}
.catalog-page__search-modal:hover { border-color: var(--accent); color: var(--accent); }
.catalog-page__search-modal .icon { width: 18px; height: 18px; }
.catalog-page__search-results {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 30;
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(17, 20, 24, .14);
	overflow: hidden;
}
.catalog-page__search-results:empty { display: none; }
.catalog-page__search-item {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px 14px;
	border-bottom: 1px solid var(--border);
}
.catalog-page__search-item:last-child { border-bottom: 0; }
.catalog-page__search-item:hover { background: var(--surface-warm); }
.catalog-page__search-item-img img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.catalog-page__search-item-title { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.catalog-page__search-item-price { display: block; margin-top: 2px; font-size: 13px; color: var(--text-gray); }
.catalog-page__search-empty { padding: 14px; color: var(--text-gray); font-size: 14px; }

/* Слайдер похожих: видимые карточки + перетаскивание */
.product__recommended-track { cursor: grab; }
.product__recommended-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.product__recommended-track.is-dragging a { pointer-events: none; }
.product__recommended-track .products__card,
.product__recommended-track [data-aos] {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
	animation: none !important;
}

/* Карточки одной высоты + кнопки снизу */
.products__grid { align-items: stretch; }
.products__card {
	height: 100%;
	display: flex;
	flex-direction: column;
}
.products__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}
.products__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.products__actions { margin-top: auto; }
.product__recommended-slide { display: flex; }
.product__recommended-slide .products__card { width: 100%; }

/* Слайдер похожих: обрезаем края, без анимаций */
.product__recommended-slider,
.product__recommended-slider.swiper { overflow: hidden; }

/* Базовые стили Swiper — только для нашего слайдера (чтобы не конфликтовать с темой) */
.product__recommended-slider { position: relative; }
.product__recommended-slider .swiper-wrapper {
	display: flex;
	box-sizing: content-box;
	transition-property: transform;
}
.product__recommended-slider .swiper-slide {
	flex-shrink: 0;
	width: 100%;
	position: relative;
	transition-property: transform;
}
.product__recommended,
.product__recommended * {
	animation: none !important;
}
.product__recommended [data-aos],
.product__recommended .products__card {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

/* ===== Современные уведомления WooCommerce (плотные, без прозрачности) ===== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	font-size: 12.5px;
	line-height: 1.35;
	padding: 9px 12px 9px 38px;
	border: 0;
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(17, 20, 24, 0.12);
}
.woocommerce-message { background: #eef8f1; }
.woocommerce-info { background: #fdeeee; }
.woocommerce-error { background: #fdecec; }
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	left: 10px;
	width: 20px;
	height: 20px;
	font-size: 11px;
}
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
	padding: 6px 12px;
	font-size: 12px;
	border-radius: 8px;
}

/* ===== Слайдер секции «Популярные» (products__inner) ===== */
.products__slider {
	position: relative;
	overflow: hidden;
}
.products__slider .swiper-wrapper {
	display: flex;
	box-sizing: content-box;
	transition-property: transform;
}
.products__slider .swiper-slide {
	flex-shrink: 0;
	width: 100%;
	position: relative;
	transition-property: transform;
}
.products__slide { display: flex; }
.products__slide .products__card { width: 100%; }
.products__slider .products__card,
.products__slider [data-aos] {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
	animation: none !important;
}
.products__slider-nav {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 18px;
}
.products__slider-arrow {
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--background);
	color: var(--text);
	cursor: pointer;
	transition: border-color .2s, color .2s, background-color .2s;
}
.products__slider-arrow:hover {
	border-color: var(--accent-2);
	color: var(--accent-2);
}
.products__slider-arrow .icon { width: 18px; height: 18px; }
.products__slider-arrow_prev .icon { transform: rotate(90deg); }
.products__slider-arrow_next .icon { transform: rotate(-90deg); }

/* Заголовок + кнопка «Смотреть все» — в одну строку */
.products__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.products__top .products__head { flex: 1 1 auto; }
.products__top-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}
.products__top-side .products__more { align-self: flex-end; }
.products__top-side .products__slider-nav { margin-top: 0; }
.products__more {
	width: auto;
	max-width: none;
	flex: none;
	margin: 0;
	align-self: flex-start;
	white-space: nowrap;
}
@media (max-width: 640px) {
	.products__more { width: 100%; }
	.products__top-side { width: 100%; align-items: stretch; }
	.products__top-side .products__more { align-self: stretch; }
	.products__top-side .products__slider-nav { justify-content: flex-end; }
}

/* Мобильный: картинки товаров ниже */
@media (max-width: 767px) {
	.products__img { aspect-ratio: 1 / 1; }
}

/* Характеристики товара — на всю ширину */
.product__features { max-width: none; }

/* Одинаковая высота карточек в слайдерах */
.products__slider .swiper-wrapper,
.product__recommended-slider .swiper-wrapper { align-items: stretch; }
.products__slider .swiper-slide,
.product__recommended-slider .swiper-slide { height: auto; display: flex; }
.products__slider .products__card,
.product__recommended-slider .products__card { height: 100%; }

/* ===== Страница «Заказ принят» ===== */
.order-success {
	max-width: 900px;
	padding-block: clamp(28px, 4vw, 56px);
}
.order-success__hero { text-align: center; }
.order-success__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 74px;
	height: 74px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: #eef8f1;
	color: #1F7A4D;
}
.order-success__hero_failed .order-success__icon { background: #fdecec; color: var(--accent); }
.order-success__icon .icon { width: 36px; height: 36px; }
.order-success__title {
	margin-bottom: 10px;
	font-size: clamp(1.6rem, 1rem + 1.6vw, 2.4rem);
	font-weight: 700;
	line-height: 1.15;
}
.order-success__subtitle { margin-bottom: 28px; color: var(--text-gray); }

.order-success__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}
.order-success__meta li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface-warm);
}
.order-success__meta span {
	font-size: 12px;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: var(--text-gray);
}
.order-success__meta strong { font-size: 16px; color: var(--text); }

.order-success__details .woocommerce-order-details,
.order-success__details .woocommerce-customer-details { margin-bottom: 24px; }
.order-success__details h2 {
	margin-bottom: 14px;
	font-size: 1.25rem;
	font-weight: 700;
}
.order-success__details .woocommerce-table--order-details {
	width: 100%;
	border-collapse: collapse;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 12px;
}
.order-success__details .woocommerce-table--order-details th,
.order-success__details .woocommerce-table--order-details td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}
.order-success__details .woocommerce-table--order-details thead th {
	background: var(--surface-warm);
	font-size: 12px;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: var(--text-gray);
}
.order-success__details .woocommerce-table--order-details tfoot th { font-weight: 600; }
.order-success__details .woocommerce-table--order-details tfoot tr:last-child th,
.order-success__details .woocommerce-table--order-details tfoot tr:last-child td { font-size: 17px; }
.order-success__details .woocommerce-columns {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}
.order-success__details .woocommerce-column { flex: 1 1 260px; }
.order-success__details .woocommerce-columns address {
	margin: 0;
	font-style: normal;
	line-height: 1.6;
}
.order-success__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 8px;
}

/* ===== Страница 404 ===== */
.error-page {
	max-width: 720px;
	padding-block: clamp(48px, 8vw, 110px);
	text-align: center;
}
.error-page__code {
	font-size: clamp(72px, 16vw, 160px);
	font-weight: 800;
	line-height: 1;
	color: var(--accent);
	letter-spacing: -2px;
}
.error-page__title {
	margin-top: 8px;
	font-size: clamp(1.5rem, 1rem + 1.4vw, 2.2rem);
	font-weight: 700;
}
.error-page__text {
	max-width: 520px;
	margin: 14px auto 0;
	color: var(--text-gray);
	line-height: 1.55;
}
.error-page__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 28px;
}
.error-page__search { max-width: 420px; margin: 28px auto 0; }
.error-page__search input[type="search"],
.error-page__search input[type="text"] {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: 10px;
	font: inherit;
}
.error-page__search button,
.error-page__search input[type="submit"] {
	margin-top: 10px;
	min-height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

/* ===== Прелоадер при оформлении заказа ===== */
.ds-preloader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(17, 20, 24, .45);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}
.ds-preloader.is-active { opacity: 1; visibility: visible; }
.ds-preloader__box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 28px 34px;
	border-radius: 16px;
	background: var(--background);
	box-shadow: 0 20px 60px rgba(17, 20, 24, .25);
}
.ds-preloader__spinner {
	width: 44px;
	height: 44px;
	border: 3px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	-webkit-animation: doorstrong-spin .7s linear infinite;
	animation: doorstrong-spin .7s linear infinite;
}
.ds-preloader__text { font-size: 15px; font-weight: 600; color: var(--text); }
html.ds-preloading { cursor: progress; }

/* Свой оверлей — прячем стандартный «блок» WooCommerce */
.woocommerce .blockUI.blockOverlay,
.blockUI.blockOverlay { background: transparent !important; }
.woocommerce .blockUI.blockMsg { border: 0 !important; background: transparent !important; }