/* Shared product-card behavior loaded after WooCommerce card styles. */
body.home .gambit-products-view.grid-view .gambit-card-compare,
body.tax-product_cat .gambit-products-view.grid-view .gambit-card-compare {
	display: none !important;
}

/* Home product carousel: one stable 3:4 card geometry at every slide. */
body.home .products-home-block ul.products.swiper-wrapper {
	display: flex;
	align-items: stretch;
}

body.home .products-home-block ul.products > li.product.swiper-slide {
	display: flex;
	height: auto;
	min-width: 0;
	flex-direction: column;
	padding-bottom: 2px;
}

body.home .products-home-block ul.products > li.product .gambit-product-item-img {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	margin-bottom: 20px;
	border-radius: 10px;
	background: #fff;
}

body.home .products-home-block ul.products > li.product .gambit-product-item-img a,
body.home .products-home-block ul.products > li.product .gambit-product-item-img img {
	display: block;
	width: 100%;
	height: 100%;
}

body.home .products-home-block ul.products > li.product .gambit-product-item-img img {
	border-radius: 10px;
	object-fit: contain;
}

body.home .products-home-block ul.products > li.product .gambit-product-item-data-wrap,
body.home .products-home-block ul.products > li.product .gambit-product-item-data {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
}

body.home .products-home-block ul.products > li.product .gambit-product-item-title {
	margin: 0 0 5px;
	color: var(--Black, #232323);
	font: 600 18px/24px Roboto, sans-serif;
}
body.home .products-home-block ul.products > li.product .gambit-product-item-title a {
	display: -webkit-box;
	min-height: 0;
	overflow: hidden;
	color: inherit;
	font: inherit;
	font-style: normal;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

body.home .products-home-block ul.products > li.product .gambit-product-item-reviews {
	display: flex;
	height: 18px;
	align-items: center;
	gap: 8px;
	margin-bottom: 15px;
}
body.home .products-home-block ul.products > li.product .gambit-product-item-reviews .rating {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}
body.home .products-home-block ul.products > li.product .gambit-product-item-reviews .rating img { width: 14px; height: 14px; }
body.home .products-home-block .reviews-block {
	color: #868686;
	font: 400 13px/18px Roboto, sans-serif;
	text-decoration: none;
}
body.home .products-home-block ul.products > li.product .gambit-product-item-info {
	display: grid;
	width: 100%;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: end;
	margin-top: auto;
}
body.home .products-home-block ul.products > li.product .gambit-product-item-oldprice { position: static; min-height: 20px; margin-bottom: 1px; }
body.home .products-home-block ul.products > li.product .gambit-product-item-buttons { align-self: end; margin: 0; }
body.home .products-home-block ul.products > li.product .gambit-product-item-buttons .addtocart {
	display: inline-flex;
	width: auto;
	min-width: 130px;
	height: 44px;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 7px 14px;
	white-space: nowrap;
}

@media (max-width: 767px) {
	body.home .products-home-block ul.products > li.product.swiper-slide {
		display: flex;
		flex: 0 0 auto;
		flex-direction: column;
		gap: 0;
		margin-bottom: 0;
		padding-bottom: 2px;
		border-bottom: 0;
	}
	body.home .products-home-block ul.products > li.product.swiper-slide .gambit-product-item-img {
		width: 100%;
		max-width: none;
		flex: none;
		margin-bottom: 20px;
	}
	body.home .products-home-block ul.products > li.product .gambit-product-item-title a { min-height: 0; -webkit-line-clamp: 3; }
	body.home .products-home-block ul.products > li.product .gambit-product-item-buttons .addtocart { width: 130px; min-width: 130px; padding: 9px 10px; font: 500 14px/24px Roboto,sans-serif; border: 1px solid #cdd5cf; border-radius: 8px; background: #fff; }
	body.home .products-home-block ul.products > li.product .gambit-product-item-buttons .addtocart:is(:hover,:focus-visible) { border-color: #91b59b; background: #f1f7f3; color: #2d6943; }
	body.home .products-home-block ul.products > li.product .gambit-product-item-buttons .addtocart span { display: inline; }
}

@media (max-width: 767px) {
 body.home .products-home-block ul.products > li.product .gambit-product-item-availability,
 body.home .products-home-block ul.products > li.product .gambit-product-item-buttons .oneclick,
 body.home .products-home-block ul.products > li.product .gambit-product-item-specs,
 body.home .products-home-block ul.products > li.product .gambit-card-compare { display: none; }
 body.home .products-home-block ul.products > li.product .gambit-product-item-buttons { width: auto; }
 body.home .products-home-block ul.products > li.product .gambit-product-item-newprice { font: 600 20px/24px Roboto,sans-serif; white-space: nowrap; }
 body.home .products-home-block ul.products > li.product .gambit-product-item-oldprice { font: 400 13px/18px Roboto,sans-serif; }
 body.home .products-home-block ul.products > li.product .gambit-product-item-info { gap: 8px; }
 body.home .products-home-block ul.products > li.product .gambit-product-item-prices { min-width: 0; }
}

@media (max-width: 767px) { body.home .products-home-block ul.products > li.product.swiper-slide { width: 250px; } }
