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

.vetero-shop {
	padding: 60px 0 90px;
	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 {
	margin: 0 0 40px;
}

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

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

.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;
	aspect-ratio: 4 / 3;
	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;
}

