/* =========================================================
   VETERO — WooCommerce catalog
   ========================================================= */

.vetero-shop {
	padding: 60px 0 60px;
	background: #fff;
}

.vetero-shop .vetero-container {
	width: min(1440px, calc(100% - 40px));
	margin-right: auto;
	margin-left: auto;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

/* Заголовок каталога */

.vetero-shop .woocommerce-products-header {
}

.vetero-shop .woocommerce-products-header__title,
.vetero-shop .page-title {
	margin: 0;
	margin-top: 30px;
	font-family: "Montserrat", sans-serif;
	font-size: clamp(22px, 4vw, 42px);
	font-weight: 600;
	line-height: 1.15;
	color: #17253a;
	display: none;
}

/* Верхняя строка: количество и сортировка */

.vetero-shop .woocommerce-result-count {
	margin: 12px 0 30px;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #758093;
}

.vetero-shop .woocommerce-ordering {
	margin: 0 0 30px;
}

.vetero-shop .woocommerce-ordering select {
	min-width: 240px;
	height: 48px;
	padding: 0 44px 0 16px;
	border: 1px solid #dce2e9;
	border-radius: 8px;
	background-color: #fff;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	color: #17253a;
	outline: none;
	cursor: pointer;
}

.vetero-shop .woocommerce-ordering select:focus {
	border-color: #759dc6;
	box-shadow: 0 0 0 3px rgba(117, 157, 198, 0.14);
}

/* Сетка товаров */

.vetero-shop .woocommerce ul.products,
.vetero-shop .woocommerce-page ul.products,
.vetero-shop ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	clear: both;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vetero-shop .woocommerce ul.products::before,
.vetero-shop .woocommerce ul.products::after,
.vetero-shop ul.products::before,
.vetero-shop ul.products::after {
	display: none;
	content: none;
}

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

.vetero-shop ul.products li.product {
	position: relative;
	display: flex;
	float: none !important;
	flex-direction: column;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 0 24px;
	overflow: hidden;
	border: 1px solid #e4e9ef;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 30px rgba(23, 37, 58, 0.05);
	transition:
		transform 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

.vetero-shop ul.products li.product:hover {
	transform: translateY(-4px);
	border-color: #cbd6e2;
	box-shadow: 0 18px 45px rgba(23, 37, 58, 0.11);
}

/* Ссылка карточки */

.vetero-shop ul.products li.product
.woocommerce-LoopProduct-link {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

/* Изображение */

.vetero-shop ul.products li.product a img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 22px !important;
	padding: 24px;
	object-fit: contain;
	object-position: center;
	background: #f5f7fa;
	transition: transform 0.35s ease;
}

.vetero-shop ul.products li.product:hover a img {
	transform: scale(1.025);
}

/* Название */

.vetero-shop ul.products li.product
.woocommerce-loop-product__title {
	margin: 0;
	padding: 0 24px !important;
	font-family: "Montserrat", sans-serif;
	font-size: 18px !important;
	font-weight: 600;
	line-height: 1.4;
	color: #17253a;
	transition: color 0.2s ease;
}

.vetero-shop ul.products li.product:hover
.woocommerce-loop-product__title {
	color: #507da9;
}

/* Цена */

.vetero-shop ul.products li.product .price {
	display: block;
	margin: 18px 0 0;
	padding: 0 24px;
	font-family: "Montserrat", sans-serif;
	font-size: 18px !important;
	font-weight: 600;
	line-height: 1.3;
	color: #17253a !important;
}

.vetero-shop ul.products li.product .price del {
	margin-right: 8px;
	font-size: 14px;
	font-weight: 400;
	color: #8e98a6;
	opacity: 1;
}

.vetero-shop ul.products li.product .price ins {
	text-decoration: none;
}

/* Кнопка */

.vetero-shop ul.products li.product .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-height: 46px;
	margin: 22px 24px 0 !important;
	padding: 12px 22px;
	border: 0;
	border-radius: 7px;
	background: #17253a;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.vetero-shop ul.products li.product .button:hover {
	background: #507da9;
	color: #fff;
	transform: translateY(-1px);
}

/* Метка скидки */

.vetero-shop span.onsale {
	top: 16px !important;
	right: 16px !important;
	left: auto !important;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: auto;
	min-height: 32px;
	margin: 0 !important;
	padding: 7px 12px;
	border-radius: 6px;
	background: #507da9;
	font-family: "Montserrat", sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
}

/* Пагинация */

.vetero-shop .woocommerce-pagination {
	margin: 50px 0 0;
}

.vetero-shop .woocommerce-pagination ul.page-numbers {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.vetero-shop .woocommerce-pagination ul.page-numbers li {
	margin: 0 !important;
	border: 0 !important;
}

.vetero-shop .woocommerce-pagination
.page-numbers li a,
.vetero-shop .woocommerce-pagination
.page-numbers li span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	border: 1px solid #dce2e9;
	border-radius: 7px;
	background: #fff;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #17253a;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease;
}

.vetero-shop .woocommerce-pagination
.page-numbers li a:hover,
.vetero-shop .woocommerce-pagination
.page-numbers li span.current {
	border-color: #17253a;
	background: #17253a;
	color: #fff;
}

/* Сообщения WooCommerce */

.vetero-shop .woocommerce-info,
.vetero-shop .woocommerce-message,
.vetero-shop .woocommerce-error {
	margin: 0 0 30px;
	padding: 18px 22px;
	border: 1px solid #dce2e9;
	border-top: 3px solid #507da9;
	border-radius: 8px;
	background: #f7f9fb;
	font-family: "Montserrat", sans-serif;
	color: #17253a;
}

/* Планшет */

@media (max-width: 1024px) {
	.vetero-shop {
		padding-top: 45px;
	}

	.vetero-shop .woocommerce ul.products,
	.vetero-shop .woocommerce-page ul.products,
	.vetero-shop ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
}

/* Телефон */

@media (max-width: 640px) {
	.vetero-shop {
		padding: 32px 0 60px;
	}

	.vetero-shop .vetero-container {
		width: calc(100% - 24px);
	}

	.vetero-shop .woocommerce ul.products,
	.vetero-shop .woocommerce-page ul.products,
	.vetero-shop ul.products {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.vetero-shop ul.products li.product a img {
		padding: 18px;
	}

	.vetero-shop ul.products li.product
	.woocommerce-loop-product__title {
		padding-right: 18px !important;
		padding-left: 18px !important;
		font-size: 17px !important;
	}

	.vetero-shop ul.products li.product .price {
		padding-right: 18px;
		padding-left: 18px;
	}

	.vetero-shop ul.products li.product .button {
		margin-right: 18px !important;
		margin-left: 18px !important;
	}

	.vetero-shop .woocommerce-ordering {
		float: none;
		width: 100%;
	}

	.vetero-shop .woocommerce-ordering select {
		width: 100%;
		min-width: 0;
	}
}

/* VETERO CATALOG CATEGORY GRID */

.vetero-catalog-sections {
	clear: both;
	width: 100%;
	margin: 0 0 44px;
}

.vetero-catalog-sections__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.vetero-catalog-section {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #e0e6ed;
	border-radius: 10px;
	color: #17253a;
	text-decoration: none;
	background: #ffffff;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.vetero-catalog-section:hover {
	border-color: #cbd5e1;
	color: #17253a;
	text-decoration: none;
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(23, 37, 58, 0.1);
}

.vetero-catalog-section__image {
	display: flex;
	align-items: baseline;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1.55 / 1;
	padding: 28px;
	overflow: hidden;
	background: #f3f6f9;
}

.vetero-catalog-section__img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	transition: transform 0.25s ease;
}

.vetero-catalog-section:hover
.vetero-catalog-section__img {
	transform: scale(1.035);
}

.vetero-catalog-section__title {
	display: flex;
	align-items: flex-start;
	min-height: 82px;
	padding: 20px 22px;
	color: #17253a;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	background: #ffffff;
}

@media (max-width: 900px) {
	.vetero-catalog-sections__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.vetero-catalog-sections__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.vetero-catalog-section__title {
		min-height: 68px;
		font-size: 16px;
	}
}

.vetero-catalog-sections__grid {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
}

.vetero-catalog-section__title {
	font-size: 15px;
}

@media (max-width: 1100px) {
	.vetero-catalog-sections__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 650px) {
	.vetero-catalog-sections__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.vetero-catalog-section__image {
	aspect-ratio: auto;
	height: 170px;
}

@media (max-width: 1100px) {
	.vetero-catalog-section__image {
		height: 320px;
	}
}

@media (max-width: 650px) {
	.vetero-catalog-section__image {
		height: 270px;
	}
}

.vetero-catalog-section__title {
	color: #fff;
	background: #627ff5;
}

.vetero-catalog-section:hover .vetero-catalog-section__title {
	color: #fff;
	background: #627ff5;
}

.vetero-catalog-section,
.vetero-catalog-section__image,
.vetero-catalog-section__title {
	background: #627ff5;
}

.vetero-catalog-section,
.vetero-catalog-section__title,
.vetero-catalog-section:hover,
.vetero-catalog-section:hover .vetero-catalog-section__title {
	color: #fff;
}

.vetero-catalog-sections,
.vetero-catalog-sections__grid,
.vetero-catalog-section,
.vetero-catalog-section:hover,
.vetero-catalog-section__image {
	background: transparent !important;
}

.vetero-catalog-section__title,
.vetero-catalog-section:hover .vetero-catalog-section__title {
	flex: 1 1 auto;
	width: 100%;
	color: #fff !important;
	background: #627ff5 !important;
}

.vetero-catalog-section__img {
	transform: translateY(var(--vetero-image-y, 0));
}

.vetero-catalog-section:hover .vetero-catalog-section__img {
	transform:
		translateY(var(--vetero-image-y, 0))
		scale(1.035);
}

.vetero-catalog-section:nth-child(1) {
	--vetero-image-y: 30px;
}

.vetero-catalog-section:nth-child(2) {
	--vetero-image-y: -20px;
}

.vetero-catalog-section:nth-child(3) {
	--vetero-image-y: 30px;
}

.vetero-catalog-section:nth-child(4) {
	--vetero-image-y: -5px;
}

.vetero-catalog-section:nth-child(5) {
	--vetero-image-y: -10px;
}

.vetero-catalog-section:nth-child(6) {
	--vetero-image-y: 30px;
}

/* Подрубрики внутри товарной рубрики */
.tax-product_cat
.woocommerce-products-header
+ .vetero-catalog-sections {
	margin: 0 0 45px;
}

.tax-product_cat
.woocommerce-products-header
+ .vetero-catalog-sections
.vetero-catalog-sections__grid {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.tax-product_cat
.woocommerce-products-header
+ .vetero-catalog-sections
.vetero-catalog-section {
	width: 100%;
	max-width: 300px;
	height: auto;
	min-height: 0;
	padding: 11px 22px;
	background: #7892f4;
	border: 0;
	border-radius: 8px;
	box-shadow: none;
}

.tax-product_cat
.woocommerce-products-header
+ .vetero-catalog-sections
.vetero-catalog-section__image {
	display: none;
}

.tax-product_cat
.woocommerce-products-header
+ .vetero-catalog-sections
.vetero-catalog-section__title {
	display: block;
	padding: 0;
	background: transparent;
	line-height: 1.35;
}

/* VETERO ROOT CATEGORY BACKGROUND START */
html body .vetero-catalog-sections
.vetero-catalog-sections__grid
> a.vetero-catalog-section {
	background: #2f4f85 !important;
	background-color: #2f4f85 !important;
}

html body .vetero-catalog-sections
.vetero-catalog-section__title {
	color: #fff !important;
}
/* VETERO ROOT CATEGORY BACKGROUND END */
.vetero-catalog-benefits {
	margin-top: 90px;
	margin-bottom: 90px;
}

.vetero-catalog-benefits__title {
	max-width: 900px;
	margin: 0 0 42px;
	font-family: "Montserrat", sans-serif;
	font-size: clamp(34px, 4vw, 56px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: #2b2a28;
}

.vetero-catalog-benefits__title span {
	color: #df6011;
}

.vetero-catalog-benefits__grid {
	gap: 20px;
	margin: 0;
}

.vetero-catalog-benefits__card {
	min-width: 0;
	min-height: 300px;
	padding: 38px 40px 40px;
	background: #f4f1ed;
	border-radius: 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.vetero-catalog-benefits__icon {
	width: 58px;
	height: 58px;
	margin-bottom: 32px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.vetero-catalog-benefits__icon svg {
	display: block;
	width: 30px;
	height: auto;
}

.vetero-catalog-benefits__card-title {
	margin: 0 0 16px;
	font-family: "Montserrat", sans-serif;
	font-size: clamp(22px, 2vw, 30px);
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -0.02em;
	color: #2b2a28;
}

.vetero-catalog-benefits__text {
	margin: auto 0 0;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
	color: #5c5955;
}

@media (max-width: 781px) {
	.vetero-catalog-benefits {
		margin-top: 60px;
		margin-bottom: 60px;
	}

	.vetero-catalog-benefits__title {
		margin-bottom: 28px;
	}

	.vetero-catalog-benefits__grid {
		gap: 16px;
	}

	.vetero-catalog-benefits__card {
		min-height: 0;
		padding: 28px 24px 30px;
	}

	.vetero-catalog-benefits__icon {
		margin-bottom: 24px;
	}

	.vetero-catalog-benefits__text {
		margin-top: 0;
	}
}

@media (max-width: 520px) {
	.vetero-catalog-benefits__title,
	.vetero-catalog-benefits__card-title,
	.vetero-catalog-benefits__text {
		word-break: normal;
		overflow-wrap: normal;
	}

	.vetero-catalog-benefits__card-title br,
	.vetero-catalog-benefits__text br {
		display: none;
	}
}

/* Каталог — преимущества после рубрик */
.vetero-catalog-benefits {
	margin-top: 0px;
	margin-bottom: 0px;
}

.vetero-catalog-benefits__title {
	max-width: 100%;
	margin: 0 0 40px;
	font-size: clamp(34px, 4vw, 56px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: #2b2a28;
}

.vetero-catalog-benefits__title span {
	color: inherit;
}

.vetero-catalog-benefits__grid {
	gap: 20px;
	margin: 0;
}

.vetero-catalog-benefits__card {
	min-width: 0;
	min-height: 300px;
	padding: 38px 40px 40px;
	background: #edf7fc;
	border-radius: 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.vetero-catalog-benefits__icon {
	width: 58px;
	height: 58px;
	margin-bottom: 32px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.vetero-catalog-benefits__icon svg {
	display: block;
	width: 30px;
	height: auto;
}

.vetero-catalog-benefits__card-title {
	margin: 0 0 16px;
	font-size: clamp(22px, 2vw, 30px);
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -0.02em;
	color: #2b2a28;
}

.vetero-catalog-benefits__text {
	margin: auto 0 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
	color: #5c5955;
}

@media (max-width: 781px) {
	.vetero-catalog-benefits {
		margin-top: 60px;
		margin-bottom: 60px;
	}

	.vetero-catalog-benefits__title {
		margin-bottom: 28px;
	}

	.vetero-catalog-benefits__grid {
		gap: 16px;
	}

	.vetero-catalog-benefits__card {
		min-height: 0;
		padding: 28px 24px 30px;
	}

	.vetero-catalog-benefits__icon {
		margin-bottom: 24px;
	}

	.vetero-catalog-benefits__text {
		margin-top: 0;
	}
}

@media (max-width: 520px) {
	.vetero-catalog-benefits__card-title br,
	.vetero-catalog-benefits__text br {
		display: none;
	}
}

/* Каталог — поднять рубрики ближе к заголовку */
body.post-type-archive-product .woocommerce-products-header {
	margin-bottom: 20px;
}

body.post-type-archive-product ul.products:has(> li.product-category) {
	margin-top: 0 !important;
}

/* Каталог — синие SVG в блоке преимуществ */
.vetero-catalog-benefits__icon svg path {
	fill: #168dcc !important;
}

/* Основные рубрики каталога — убрать чужие псевдоэлементы и stretch */
body.post-type-archive-product ul.products li.product-category,
body.post-type-archive-product ul.products li.product-category > a {
	align-self: auto !important;
	justify-self: auto !important;
}

body.post-type-archive-product ul.products li.product-category::before,
body.post-type-archive-product ul.products li.product-category::after,
body.post-type-archive-product ul.products li.product-category > a::before,
body.post-type-archive-product ul.products li.product-category > a::after,
body.post-type-archive-product ul.products li.product-category .woocommerce-loop-category__title::before,
body.post-type-archive-product ul.products li.product-category .woocommerce-loop-category__title::after {
	content: none !important;
	display: none !important;
}

body.post-type-archive-product ul.products li.product-category > a {
	position: relative;
	display: flex !important;
	flex-direction: column;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border: 1px solid #b9d4e6;
	border-radius: 14px;
	background: #fff;
}

body.post-type-archive-product ul.products li.product-category img {
	display: block;
	width: 100% !important;
	height: 190px !important;
	margin: 0 !important;
	padding: 20px;
	object-fit: contain;
	object-position: center;
	flex: 0 0 190px;
	box-sizing: border-box;
}

body.post-type-archive-product ul.products li.product-category .woocommerce-loop-category__title {
	position: static !important;
	inset: auto !important;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 92px;
	margin: 0 !important;
	padding: 20px;
	box-sizing: border-box;
	background: #355b91;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	transform: none !important;
}
