/* Shop archive — title + breadcrumbs aligned to content column (left) */
.onyx-shop-page-title .main-page-title {
	text-align: left;
}

.onyx-shop-page-title .breadcrumbs {
	justify-content: flex-start;
}

.onyx-shop-page-title .onyx-shop-archive-desc {
	text-align: left;
}

/* Layout switcher removed — hide empty toolbar row on desktop (mobile keeps filter button) */
@media (min-width: 1200px) {
	.col-xl-9 > .tf-shop-control {
		display: none;
	}
}

/* List layout (desktop): compact image, even copy, text CTAs */
@media (min-width: 768px) {
	#listLayout .product-style_list {
		align-items: flex-start;
		gap: 24px;
	}

	#listLayout .product-style_list .card-product_wrapper {
		flex: 0 0 200px;
		width: 200px;
		max-width: 200px;
		align-self: flex-start;
	}

	#listLayout .product-style_list .card-product_wrapper .product-img {
		display: block;
		border-radius: 12px;
		overflow: hidden;
	}

	#listLayout .product-style_list .card-product_wrapper .product-img .img-product,
	#listLayout .product-style_list .card-product_wrapper .product-img .img-hover {
		width: 100%;
		height: auto;
		/* Квадрат вместо 3:4 — фото по высоте сравнивается с текстовым телом карточки.
		   contain, а не cover: упаковку товара нельзя обрезать. */
		aspect-ratio: 1 / 1;
		object-fit: contain;
		border-radius: 0;
	}

	#listLayout .product-style_list .card-product_info {
		flex: 1;
		display: flex;
		flex-direction: column;
		min-width: 0;
		padding-top: 0;
		align-self: flex-start;
		gap: 8px;
	}

	#listLayout .product-style_list .card-product_info .name-product {
		margin-top: 0;
		line-height: 1.25;
	}

	#listLayout .product-style_list .price-wrap .price-new {
		font-size: 20px;
		line-height: 1.3;
	}

	#listLayout .product-style_list .onyx-list-card-desc {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
		margin-bottom: 0;
		/* Строка не должна растягиваться на всю ширину каталога. */
		max-width: 68ch;
	}

	#listLayout .product-style_list .onyx-list-card-actions {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px;
		margin-top: 16px;
	}

	/* WooCommerce .button overrides Amerce .tf-btn on archive */
	#listLayout .onyx-list-card-actions .tf-btn,
	#listLayout .onyx-list-card-actions .add_to_cart_button.button {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		height: 42px;
		padding: 0 24px;
		border-radius: 60px;
		font-weight: 600;
		font-size: inherit;
		line-height: 1.2;
		text-decoration: none !important;
		box-shadow: none;
	}

	#listLayout .onyx-list-card-actions .onyx-list-add-to-cart,
	#listLayout .onyx-list-card-actions .onyx-list-add-to-cart.button {
		background: var(--text) !important;
		color: var(--white) !important;
		border: 1px solid var(--text) !important;
	}

	#listLayout .onyx-list-card-actions .onyx-list-add-to-cart:hover,
	#listLayout .onyx-list-card-actions .onyx-list-add-to-cart.button:hover {
		background: var(--white) !important;
		color: var(--text) !important;
	}

	#listLayout .onyx-list-card-actions .btn-stroke,
	#listLayout .onyx-list-card-actions .btn-stroke.button {
		background: transparent !important;
		color: var(--text) !important;
		border: 1px solid var(--text) !important;
	}

	#listLayout .onyx-list-card-actions .btn-stroke:hover,
	#listLayout .onyx-list-card-actions .btn-stroke.button:hover {
		background: var(--text) !important;
		color: var(--white) !important;
	}
}
