.products-grid-container {
	margin-bottom: 130px;
}

.container__product_cat {
	display: flex;
	flex-direction: column;
}

.container__product_cat .header-section {
	margin-bottom: 24px;
}


.container__product_cat .products-grid {
	display: grid;
	grid-template-columns:  1fr 1fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--brand300);
}


.container__product_cat .product-image-wrapper {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
}

.container__product_cat .product-image-wrapper img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.container__product_cat .product-info {
	padding: 16px 0; 
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.container__product_cat .product-title {
	font-weight: 500;
	font-size: 16px;
	line-height: 20px;
	color: var(--brand100);
	margin: 0;
}

.price-with-discount {
	display: flex;
	flex-wrap: nowrap;
	gap: 20px;
}

.product-description {
	font-weight: 400;
	font-size: 14px;
	line-height: 130%;
	color: var(--brand85);
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -moz-box;
	-moz-box-orient: vertical;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-clamp: 3;
	box-orient: vertical;
	display: none;
}

.container__product_cat .product-card{
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.container__product_cat  .current-price .woocommerce-Price-amount > bdi,
.container__product_cat  .old-price .woocommerce-Price-amount > bdi {
	font-weight: 600;
	font-size: 18px;
	line-height: 24px;
	color: var(--brand100);
	margin: 0;
}

.container__product_cat  .old-price .woocommerce-Price-amount > bdi {
	text-decoration: line-through;
}

.container__product_cat .product-actions .btn {
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

/* Стили пагинации */
.pagination__products {
	margin-top: 40px;
	text-align: center;
}

.pagination-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.pagination-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	color: #333;
	text-decoration: none;
	transition: all 0.3s ease;
}

.pagination-arrow:hover {
	background-color: var(--brand-alpha200);
}

.pagination-arrow svg {
	width: 20px;
	height: 20px;
}

.pagination-numbers {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pagination-number {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	border-radius: 8px;
	color: var(--brand100);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
}

.pagination-number:hover {
	background-color: var(--brand-alpha200);
}

.pagination-number.active {
	background-color: var(--brand-alpha200);
}

.pagination-dots {
	padding: 0 8px;
	color: var(--brand100);
}

.products-grid.loading {
	opacity: 0.6;
	pointer-events: none;
	position: relative;
}

.products-grid.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #333;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.pagination__products.loading .pagination-nav {
	opacity: 0.5;
	pointer-events: none;
}

.pagination-arrow.disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

.pagination-arrow.disabled:hover {
	background-color: transparent;
	border-color: #e0e0e0;
}
.products-grid {
	transition: opacity 0.3s ease;
}

.products-grid.loading {
	opacity: 0.6;
}

/* .pagination-arrow.prev-page {
margin-right: auto;
}

.pagination-arrow.next-page {
margin-left: auto;
}  */

.products-grid .product-uom {
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	color: var(--brand100);
	margin: 0;
}

/* Подкатегории */

.categories-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 16px;
	padding-bottom: 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--brand300);
}

.categories-list a {
	border: 1px solid var(--brand-alpha200);
	padding: 8px 12px;
	display: flex;
	align-items: center;
	min-height: 64px;
	gap: 20px;
	border-radius: 12px;
	justify-content: space-between;
	transition: .3s linear;
	box-sizing: border-box;
}

.categories-list .category-name {
	font-weight: 700;
	font-size: 16px;
	line-height: 150%;
	color: var(--brand100);
	transition: .3s linear;
}

.category-count {
	font-weight: 400;
	font-size: 16px;
	line-height: 150%;
	color: var(--brand85);
	white-space: nowrap;
	transition: .3s linear;
}

.category-item:hover {
	background-color: var(--brand200);
}

.category-item:hover .category-name {
	color: var(--white);
	text-decoration: underline;
}

.category-item:hover .category-count {
	color: var(--white);
}

.category-item.active {
	background-color: var(--brand200);
}

.category-item.active .category-name {
	color: var(--white);
	text-decoration: underline;
}

.category-item.active .category-count {
	color: var(--white);
}

@media(max-width: 1240px) {
	.container__product_cat .products-grid {
		grid-template-columns:  1fr 1fr 1fr;
	}
}

@media(max-width: 900px) {
	.container__product_cat .products-grid {
		grid-template-columns:  1fr 1fr;
		gap: 16px;
	}
}

@media(max-width: 768px) {
	.product-description {
		display: none;
	}

	.categories-list {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	}

}

@media(max-width: 600px) {
	.container__product_cat .products-grid {
		grid-template-columns:  1fr;
	}

	.pagination-number {
		width: 35px;
		height: 35px;
		min-width: 35px;
	}
}







