/**
 * WoodMart: .wd-logo img[src$=".svg"] { height: 100%; } — без высоты контейнера SVG схлопывается в 0px.
 */
.site-logo .wd-logo img[src$=".svg"] {
	width: auto;
	height: auto;
	max-height: calc(var(--wd-header-general-h, 90px) - 10px);
}

/* Крошки страниц (WoodMart .breadcrumbs) и магазина (WC nav) — одна типографика, без uppercase/600 base. */
.page-title :is(.breadcrumbs, .yoast-breadcrumb) :is(a, span),
.page-title .peptide-wc-breadcrumbs .woocommerce-breadcrumb,
.page-title .peptide-wc-breadcrumbs .woocommerce-breadcrumb a,
.single-breadcrumbs-wrapper .woocommerce-breadcrumb,
.single-breadcrumbs-wrapper .woocommerce-breadcrumb a {
	font-weight: var(--wd-text-font-weight, 400);
	font-size: var(--wd-text-font-size, 14px);
	font-family: var(--wd-text-font, inherit);
	text-transform: none;
	line-height: var(--wd-text-line-height, 1.6);
	color: var(--color-gray-900, #333);
}

.page-title .peptide-wc-breadcrumbs .woocommerce-breadcrumb a:hover,
.single-breadcrumbs-wrapper .woocommerce-breadcrumb a:hover {
	color: var(--color-gray-500, #767676);
}

/* WoodMart woocommerce-base: .breadcrumb-last { font-weight: 600 } — как .current на страницах */
.page-title .peptide-wc-breadcrumbs .woocommerce-breadcrumb .breadcrumb-last,
.single-breadcrumbs-wrapper .woocommerce-breadcrumb .breadcrumb-last {
	font-weight: var(--wd-text-font-weight, 400);
	color: var(--color-gray-900, #333);
}

.page-title .peptide-wc-breadcrumbs .woocommerce-breadcrumb {
	margin: 0;
	padding: 0;
}

/* Категории: back + H1 в одной строке, у H1 margin-bottom: 0 — отступ только у крошек */
.page-title.title-shop.with-back-btn > .container > .peptide-wc-breadcrumbs {
	margin-top: 10px;
}

/* Каталог: заголовок + крошки; стрелка «назад» в одной строке с H1. */
.page-title.title-shop > .container {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

.page-title.title-shop.with-back-btn .wd-back-btn {
	flex: 0 0 auto;
	margin-inline-end: 12px;
	margin-inline-start: 0;
	margin-bottom: 0;
}

/* Кнопка «назад» — bordered, WoodMart Medical (рамка только на ссылке, не на обёртке) */
.page-title.title-shop.with-back-btn .wd-back-btn:not(a) {
	display: inline-flex;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
}

.page-title.title-shop.with-back-btn a.wd-back-btn,
.page-title.title-shop.with-back-btn .wd-back-btn > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid color-mix(in srgb, var(--wd-entities-title-color, #242424) 14%, transparent);
	border-radius: var(--wd-brd-radius, 12px);
	background-color: var(--wd-main-bgcolor, #fff);
	color: var(--wd-entities-title-color, #242424);
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.page-title.title-shop.with-back-btn a.wd-back-btn:hover,
.page-title.title-shop.with-back-btn a.wd-back-btn:focus-visible,
.page-title.title-shop.with-back-btn .wd-back-btn > a:hover,
.page-title.title-shop.with-back-btn .wd-back-btn > a:focus-visible {
	border-color: var(--wd-primary-color, rgb(32, 128, 201));
	color: var(--wd-primary-color, rgb(32, 128, 201));
	background-color: rgba(32, 128, 201, 0.06);
}

.page-title.title-shop.with-back-btn > .container {
	align-items: center;
}

.page-title.title-shop.with-back-btn .entry-title.title {
	flex: 1 1 0;
	min-width: 0;
	margin-bottom: 0;
}

.page-title.title-shop > .container > :is(.breadcrumbs, .yoast-breadcrumb, .peptide-wc-breadcrumbs),
.page-title.title-blog > .container > .breadcrumbs,
.page-title.peptide-single-post-page-title > .container > :is(.breadcrumbs, .yoast-breadcrumb) {
	flex: 0 0 100%;
	width: 100%;
}

.page-title.peptide-single-post-page-title > .container > .entry-title.title {
	margin-bottom: 10px;
}

/* Каталог (моб.): крошки — сверху; «назад», H1 и стрелки категорий — одна строка. */
@media (max-width: 767.98px) {
	.page-title.title-shop.with-back-btn > .container {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px 10px;
	}

	.page-title.title-shop.with-back-btn > .container > :is(.breadcrumbs, .yoast-breadcrumb, .peptide-wc-breadcrumbs, .woocommerce-breadcrumb) {
		order: 1;
		flex: 0 0 100%;
		width: 100%;
		margin-top: 0;
	}

	.page-title.title-shop.with-back-btn .wd-back-btn {
		order: 2;
		margin-inline-end: 0;
	}

	.page-title.title-shop.with-back-btn a.wd-back-btn,
	.page-title.title-shop.with-back-btn .wd-back-btn > a {
		min-width: 40px;
		min-height: 40px;
		padding: 0 10px;
		font-size: 16px;
	}

	.page-title.title-shop.with-back-btn .entry-title.title {
		order: 3;
		flex: 1 1 0;
		min-width: 0;
		width: auto;
		max-width: none;
		margin: 0;
		font-size: clamp(14px, 3.9vw, 18px);
		line-height: 1.25;
	}

	/* Карусель / соседние категории в page-title — отдельная строка, управление на всю ширину. */
	.page-title.title-shop.with-back-btn > .container > :is(
		.wd-nav-product-cat-wrap,
		.wd-cats-navigation,
		.wd-cats-nav
	) {
		order: 5;
		flex: 0 0 100%;
		width: 100% !important;
		max-width: 100%;
		margin: 8px 0 0;
		clear: both;
	}

	.page-title.title-shop.with-back-btn > .container > .wd-nav-product-cat-wrap {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 10px;
	}

	.page-title.title-shop.with-back-btn .wd-nav-product-cat-wrap:has(.wd-btn-show-cat):has(.wd-nav-arrows) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
		column-gap: 10px;
		row-gap: 8px;
	}

	.page-title.title-shop.with-back-btn .wd-nav-product-cat-wrap:has(.wd-btn-show-cat):has(.wd-nav-arrows) .wd-btn-show-cat {
		grid-column: 2;
		grid-row: 1;
		justify-self: center;
	}

	.page-title.title-shop.with-back-btn .wd-nav-product-cat-wrap:has(.wd-btn-show-cat):has(.wd-nav-arrows) .wd-nav-arrows {
		display: contents;
	}

	.page-title.title-shop.with-back-btn .wd-nav-product-cat-wrap:has(.wd-btn-show-cat):has(.wd-nav-arrows) .wd-prev {
		grid-column: 1;
		grid-row: 1;
	}

	.page-title.title-shop.with-back-btn .wd-nav-product-cat-wrap:has(.wd-btn-show-cat):has(.wd-nav-arrows) .wd-next {
		grid-column: 3;
		grid-row: 1;
	}

	.page-title.title-shop.with-back-btn .wd-nav-product-cat-wrap .wd-nav-arrows {
		position: relative;
		display: flex;
		flex: 1 1 100%;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		width: 100%;
		max-width: 100%;
		min-height: 48px;
		margin: 0;
		padding: 0;
		inset: auto;
	}

	.page-title.title-shop.with-back-btn .wd-nav-product-cat-wrap .wd-nav-arrows.wd-pos-sep:after {
		content: none;
	}

	.page-title.title-shop.with-back-btn .wd-nav-product-cat-wrap .wd-nav-arrows .wd-btn-arrow {
		position: relative;
		top: auto;
		inset-inline: auto;
		flex: 1 1 0;
		display: flex;
		max-width: none;
		min-width: 0;
	}

	.page-title.title-shop.with-back-btn .wd-nav-product-cat-wrap .wd-nav-arrows .wd-prev {
		justify-content: flex-start;
	}

	.page-title.title-shop.with-back-btn .wd-nav-product-cat-wrap .wd-nav-arrows .wd-next {
		justify-content: flex-end;
	}

	.page-title.title-shop.with-back-btn .wd-nav-product-cat-wrap .wd-nav-arrows .wd-arrow-inner {
		--wd-arrow-size: 44px;
		--wd-arrow-icon-size: 20px;
		box-sizing: border-box;
		width: 100%;
		min-width: 72px;
		max-width: none;
		min-height: 44px;
		border-radius: var(--wd-brd-radius, 12px);
	}

	.page-title.title-shop.with-back-btn .wd-nav-product-cat-wrap .wd-btn-show-cat {
		flex: 0 0 auto;
		margin: 0;
		font-size: 110%;
	}

	.page-title.title-shop.with-back-btn .wd-nav-product-cat-wrap .wd-btn-show-cat > a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 48px;
		min-height: 44px;
		padding: 0 14px;
		border: 1px solid color-mix(in srgb, var(--wd-entities-title-color, #242424) 14%, transparent);
		border-radius: var(--wd-brd-radius, 12px);
		background-color: var(--wd-main-bgcolor, #fff);
	}

	.page-title.title-shop.with-back-btn .wd-nav-product-cat-wrap > .wd-nav-product-cat {
		flex: 0 0 100%;
		width: 100%;
		margin-top: 4px;
	}

	/* Крошки — одна строка, свайп влево/вправо, без полосы прокрутки (как peptide-cat-nav). */
	.page-title > .container > :is(.breadcrumbs, .yoast-breadcrumb, .peptide-wc-breadcrumbs),
	.single-breadcrumbs-wrapper :is(.wd-breadcrumbs, .breadcrumbs) {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		max-width: 100%;
	}

	.page-title > .container > :is(.breadcrumbs, .yoast-breadcrumb, .peptide-wc-breadcrumbs)::-webkit-scrollbar,
	.single-breadcrumbs-wrapper :is(.wd-breadcrumbs, .breadcrumbs)::-webkit-scrollbar {
		display: none;
		width: 0;
		height: 0;
	}

	.page-title > .container > :is(.breadcrumbs, .yoast-breadcrumb) {
		white-space: nowrap;
	}

	.page-title > .container > .peptide-wc-breadcrumbs .woocommerce-breadcrumb,
	.single-breadcrumbs-wrapper .woocommerce-breadcrumb {
		display: inline-block;
		width: max-content;
		max-width: none;
		white-space: nowrap;
		vertical-align: top;
	}

	.single-breadcrumbs-wrapper .breadcrumbs {
		white-space: nowrap;
	}

	/* Карточка товара: prev · «к каталогу» · next — отдельная строка, крупные зоны нажатия. */
	.single-breadcrumbs-wrapper > :is(.container, .single-breadcrumbs) {
		flex-wrap: wrap;
		align-items: stretch;
		justify-content: flex-start;
		gap: 10px;
	}

	.single-breadcrumbs-wrapper .wd-breadcrumbs {
		flex: 0 0 100%;
		width: 100%;
		min-width: 0;
	}

	.single-breadcrumbs-wrapper .wd-products-nav {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
		column-gap: 10px;
		row-gap: 0;
		margin: 0;
		font-size: inherit;
	}

	.single-breadcrumbs-wrapper .wd-products-nav > .wd-event-hover:has(.wd-btn-prev) {
		grid-column: 1;
		grid-row: 1;
		display: flex;
		justify-content: flex-start;
		min-width: 0;
	}

	.single-breadcrumbs-wrapper .wd-products-nav > .wd-btn-back {
		grid-column: 2;
		grid-row: 1;
		justify-self: center;
	}

	.single-breadcrumbs-wrapper .wd-products-nav > .wd-event-hover:has(.wd-btn-next) {
		grid-column: 3;
		grid-row: 1;
		display: flex;
		justify-content: flex-end;
		min-width: 0;
	}

	.single-breadcrumbs-wrapper .wd-products-nav > .wd-event-hover > .wd-product-nav-btn {
		box-sizing: border-box;
		width: 100%;
		min-width: 72px;
		max-width: none;
		min-height: 44px;
		height: auto;
		padding: 0 12px;
		border: 1px solid color-mix(in srgb, var(--wd-entities-title-color, #242424) 14%, transparent);
		border-radius: var(--wd-brd-radius, 12px);
		background-color: var(--wd-main-bgcolor, #fff);
	}

	.single-breadcrumbs-wrapper .wd-products-nav .wd-product-nav-btn:before {
		font-size: 18px;
	}

	.single-breadcrumbs-wrapper .wd-products-nav > .wd-btn-back {
		box-sizing: border-box;
		min-width: 48px;
		min-height: 44px;
		padding: 0 14px;
		border: 1px solid color-mix(in srgb, var(--wd-entities-title-color, #242424) 14%, transparent);
		border-radius: var(--wd-brd-radius, 12px);
		background-color: var(--wd-main-bgcolor, #fff);
	}

	.single-breadcrumbs-wrapper .wd-products-nav > .wd-btn-back:before {
		font-size: 20px;
	}
}

.single-breadcrumbs-wrapper .wd-breadcrumbs .breadcrumbs,
.single-breadcrumbs-wrapper .breadcrumbs,
.single-breadcrumbs-wrapper .woocommerce-breadcrumb {
	vertical-align: middle;
}

/* MAX в «Поделиться» — см. assets/css/social-share.css (.peptide-share-unified) */

/* WooCommerce: «Товар добавлен в корзину» — без тёмной обводки (WC border-top + outline). */
.woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info, .woocommerce-error),
.wd-wc-notices :is(.woocommerce-message, .woocommerce-info, .woocommerce-error),
ul:is(.woocommerce-message, .woocommerce-info, .woocommerce-error),
.wd-notice,
div.wc-block-components-notice-banner {
	border: none !important;
	border-top: none !important;
	box-shadow: none;
}

.woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):is(:focus, :focus-visible),
.wd-wc-notices :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):is(:focus, :focus-visible) {
	outline: none;
	box-shadow: none;
}

/* Страховка: второй подряд wrapper (fragments replaceWith на несколько узлов). */
.woocommerce-notices-wrapper + .woocommerce-notices-wrapper {
	display: none !important;
}
