/* Product cards keep natural height. Row alignment is done in JS. */

.et-woo-products.grid .loop-products.enova-carousel,
.et-woo-products.grid ul.products.enova-carousel {
	align-items: stretch;
}

.et-woo-products.grid .row-item.swiper-slide {
	height: auto;
	box-sizing: border-box;
}

.et-woo-products.grid .row-item > ul {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.et-woo-products.grid .row-item > ul > .product {
	display: flex;
	flex-direction: column;
}

.et-woo-products.grid .product .post-inner {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	height: 100%;
}

.et-woo-products.grid .product .post-body,
.et-woo-products.grid .product .post-body-inner {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.et-woo-products.grid .product .post-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	min-height: calc(1.35em * 3);
	line-height: 1.35;
}

.et-woo-products.grid .product p.stock-status {
	min-height: 24px;
	margin: 4px 0 8px;
}

.et-woo-products.grid .product p.stock-status.stock-status--empty {
	visibility: hidden;
	background: none;
	padding: 4px 10px;
}

.et-woo-products.grid .product .price-button-wrapp {
	margin-top: auto;
}

.et-woo-products.grid .product .price .mobex-dual-price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	white-space: normal;
}

.elementor-11244 .swiper-container:has(> .et-woo-products) > .swiper-button,
.elementor-11244 #prev-14641f7,
.elementor-11244 #next-14641f7 {
	display: none !important;
}

@media (max-width: 767px) {
	.et-woo-products.grid .swiper-container,
	.et-woo-products.grid .swiper {
		overflow: hidden;
	}
}

ul.products .product,
ul.products .product .post-inner {
	height: 100%;
}

ul.products .product .image-container {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: #f5f5f5;
	border-radius: 6px;
}

ul.products .product .image-container img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

ul.products .product .image-container svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

ul.products .product .image-container img.woocommerce-placeholder,
ul.products .product .post-image.no-thumbnail .image-container img {
	object-fit: contain;
	background-color: #f5f5f5;
}

.widget_products .product_list_widget > li .image-container,
.widget_recently_viewed_products .product_list_widget > li .image-container,
.widget_recent_reviews .product_list_widget > li .image-container,
.widget_top_rated_products .product_list_widget > li .image-container,
.widget_shopping_cart .cart-product-image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: #f5f5f5;
}

.widget_products .product_list_widget > li .image-container img,
.widget_recently_viewed_products .product_list_widget > li .image-container img,
.widget_recent_reviews .product_list_widget > li .image-container img,
.widget_top_rated_products .product_list_widget > li .image-container img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.product-search .search-results .product-image {
	aspect-ratio: 1 / 1;
	background-color: #f5f5f5;
	border-radius: 6px;
}

.product-search .search-results .product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.woocommerce-product-gallery__image img.woocommerce-placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background-color: #f5f5f5;
}

/* Cap single-product main photo height so portrait images do not stretch the page */
.single-product .product .woocommerce-product-gallery {
	max-height: none;
}

.single-product .product .woocommerce-product-gallery .flex-viewport {
	max-height: min(520px, 70vh);
	background-color: #f5f5f5;
}

.single-product .product .woocommerce-product-gallery__image a {
	display: block;
	text-align: center;
}

.single-product .product .woocommerce-product-gallery__image img:not(.zoomImg) {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: min(520px, 70vh);
	object-fit: contain;
	object-position: center;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 767px) {
	.single-product .product .woocommerce-product-gallery .flex-viewport,
	.single-product .product .woocommerce-product-gallery__image img:not(.zoomImg) {
		max-height: min(420px, 60vh);
	}
}

.wc-block-grid__product-image,
.wc-block-components-product-image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: #f5f5f5;
}

.wc-block-grid__product-image img,
.wc-block-components-product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.list ul.products .product .image-container {
	width: 100%;
}

/* Stock status badge on product cards */
ul.products .product p.stock-status,
.product .comp-body p.stock-status,
.product-search .product-data p.stock-status {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	max-width: 100%;
	margin: 4px 0 8px 0;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 0;
}

ul.products .product p.stock-status.outofstock,
.product .comp-body p.stock-status.outofstock,
.product .summary p.stock-status.outofstock,
.product-search .product-data p.stock-status.outofstock {
	color: #c62828;
	background-color: #ffebee;
}

ul.products .product p.stock-status.onbackorder,
.product .comp-body p.stock-status.onbackorder,
.product .summary p.stock-status.onbackorder,
.product-search .product-data p.stock-status.onbackorder {
	color: #c05600;
	background-color: #fff4e5;
}

ul.products .product p.stock-status.instock,
.product .comp-body p.stock-status.instock,
.product .summary p.stock-status.instock,
.product-search .product-data p.stock-status.instock {
	color: #2e7d32;
	background-color: #e8f5e9;
}

ul.products .product p.stock-status:before,
.product .comp-body p.stock-status:before,
.product .summary p.stock-status:before,
.product-search .product-data p.stock-status:before {
	content: "";
	display: block;
	width: 14px;
	height: 14px;
	margin-right: 6px;
	flex-shrink: 0;
	background-color: currentColor;
	background-image: none;
	-webkit-mask: url(../images/icons/stock.svg) no-repeat 50% 50%;
	mask: url(../images/icons/stock.svg) no-repeat 50% 50%;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.comp .product .post-content-wrap p.stock-status {
	display: none;
}

.comp .product .comp-body p.stock-status {
	margin-bottom: 12px;
}

ul.products .product.outofstock .price,
ul.products .product.outofstock .price span,
ul.products .product.outofstock .price bdi,
ul.products .product.outofstock .woocommerce-Price-amount,
ul.products .product.outofstock .comp-body .price,
.et-woo-products .product.outofstock .price,
.product.outofstock .price-button-wrapp .price,
.product.outofstock .comp-form,
.product.outofstock .quantity,
.product.outofstock .minus,
.product.outofstock .plus,
.single-product div.product.outofstock .summary .price,
.single-product div.product.outofstock .summary .price span,
.single-product div.product.outofstock .summary .price bdi,
.single-product div.product.outofstock .summary .woocommerce-Price-amount {
	display: none !important;
}

.single-product-vehicles table tfoot {
	display: none !important;
}

.page-id-11750 .title-section,
.page-id-11746 .title-section,
.page-id-40 .title-section,
.page-id-11 .title-section,
.woocommerce-account .title-section,
.page-id-11750 .et-breadcrumbs,
.page-id-11746 .et-breadcrumbs,
.page-id-40 .et-breadcrumbs,
.page-id-11 .et-breadcrumbs,
.woocommerce-account .et-breadcrumbs,
.page-id-40 .elementor-widget-et_breadcrumbs {
	display: none !important;
}

.woocommerce-account #et-content,
.page-id-11 #et-content {
	padding-top: 32px;
}

.woocommerce-shop .title-section {
	display: none !important;
}

.woocommerce-shop .product-categories-carousel-container {
	padding-top: 24px;
}

.cpg-instock-filter {
	display: inline-flex;
	align-items: center;
	margin-left: 12px;
	margin-bottom: 0;
}

.cpg-instock-filter label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	line-height: 1;
	font-weight: 500;
	color: #444;
	cursor: pointer;
	white-space: nowrap;
	user-select: none;
}

.cpg-instock-filter input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #02427a;
	cursor: pointer;
}

@media only screen and (max-width: 767px) {
	.cpg-instock-filter {
		margin-left: 0;
		margin-top: 8px;
	}
}

.woocommerce-orders-table__cell-order-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.woocommerce-orders-table a.woocommerce-button.cancel,
.woocommerce-order-details a.button.cancel {
	background: #fff !important;
	color: #c0392b !important;
	border: 1px solid #c0392b !important;
}

.woocommerce-orders-table a.woocommerce-button.cancel:hover,
.woocommerce-order-details a.button.cancel:hover {
	background: #c0392b !important;
	color: #fff !important;
}

img.cpg-remote-photo {
	max-width: 100%;
	object-fit: contain;
	background-color: #f5f5f5;
}

table.cart img.cpg-remote-photo,
.woocommerce-checkout img.cpg-remote-photo,
.widget_shopping_cart img.cpg-remote-photo,
.woocommerce-mini-cart img.cpg-remote-photo {
	width: 80px;
	height: 80px;
}

/* Quick view: the only summary block must stay visible, and the dialog has to fit the screen. */
.quick-view-wrapper .summary-details {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
}

.quick-view-wrapper .summary-details + .summary-details {
	display: none !important;
}

.quick-view-wrapper .summary {
	display: block !important;
}

.quick-view-wrapper .summary-inner-wrapper {
	width: 100% !important;
	box-sizing: border-box;
}

.quick-view-wrapper .woocommerce-product-gallery:not(.flexslider) .woocommerce-product-gallery__image ~ .woocommerce-product-gallery__image {
	display: none;
}

@media (min-width: 1280px) {
	.quick-view-wrapper {
		width: min(1080px, calc(100vw - 48px)) !important;
		height: min(640px, calc(100vh - 48px)) !important;
		max-height: calc(100vh - 48px) !important;
		overflow: hidden !important;
	}

	.quick-view-wrapper .product {
		height: 100%;
		margin: 0;
	}

	.quick-view-wrapper .single-product-wrapper {
		display: flex !important;
		align-items: stretch;
		height: 100%;
		min-height: 0;
		padding: 0 !important;
		box-sizing: border-box;
	}

	.quick-view-wrapper .woocommerce-product-gallery {
		flex: 0 0 50%;
		width: 50% !important;
		max-width: 50%;
		height: 100%;
		max-height: 100% !important;
		margin: 0 !important;
		padding: 16px 16px 72px !important;
		box-sizing: border-box;
		overflow: hidden;
		opacity: 1 !important;
	}

	.quick-view-wrapper .woocommerce-product-gallery .flex-viewport {
		max-height: 100% !important;
	}

	.quick-view-wrapper .woocommerce-product-gallery__image a {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.quick-view-wrapper .woocommerce-product-gallery img {
		width: 100% !important;
		height: auto !important;
		max-height: calc(100vh - 180px) !important;
		object-fit: contain !important;
		background: #f7f7f7;
	}

	.quick-view-wrapper .woocommerce-product-gallery .flex-control-nav {
		position: absolute;
		left: 16px;
		right: 16px;
		bottom: 12px;
		transform: none;
		margin: 0;
		z-index: 2;
	}

	.quick-view-wrapper .summary {
		flex: 1 1 50%;
		width: 50% !important;
		max-width: 50%;
		height: 100% !important;
		max-height: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		border-left: 1px solid #e0e0e0;
	}

	.quick-view-wrapper .product .single-product-wrapper .summary-inner-wrapper {
		padding: 56px 28px 24px !important;
	}
}

@media (max-width: 1279px) {
	.quick-view-wrapper {
		overflow: auto !important;
	}

	.quick-view-wrapper .woocommerce-product-gallery {
		opacity: 1 !important;
	}

	.quick-view-wrapper .woocommerce-product-gallery img {
		width: 100%;
		max-height: 55vh;
		object-fit: contain;
	}

	.quick-view-wrapper .summary {
		max-height: none !important;
		overflow: visible !important;
	}

	.quick-view-wrapper .product .single-product-wrapper .summary-inner-wrapper {
		padding: 24px 16px 32px !important;
	}
}

.cpg-shop-more-wrap {
	display: flex;
	justify-content: center;
	margin: 28px 0 8px;
}

#cpg-shop-more {
	min-width: 180px;
	min-height: 48px;
	padding: 12px 28px;
	border: 0;
	border-radius: 8px;
	background-color: #02427a !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

#cpg-shop-more:hover,
#cpg-shop-more:focus {
	background-color: #f29f05 !important;
	color: #fff !important;
}

.widget_price_filter .button:hover,
.widget_price_filter .button:focus {
	background: #f29f05 !important;
	background-color: #f29f05 !important;
	color: #fff !important;
}

#cpg-shop-more[disabled] {
	opacity: 0.7;
	cursor: wait;
}

@media only screen and (max-width: 767px) {
	#cpg-shop-more {
		width: 100%;
	}
}
