/*
Theme Name: Buy Shop
Theme URI: https://www.borbila.com
Description: Buy Shop child theme for Hello Elementor.
Author: Borbila
Author URI: https://www.borbila.com
Template: hello-elementor
Version: 1.0.0
Text Domain: buy-shop
*/

/* Show eleven 35px category rows, with the remaining rows scrolling inside. */
@media (min-width: 1025px) {
	.elementor-63 .elementor-element.elementor-element-dazheroside {
		--min-height: 0px;
	}

	.elementor-63 .elementor-element-dazheromenu .elementor-nav-menu--main {
		max-height: calc(35px * 11);
		overflow-y: auto;
		overflow-x: hidden;
		overscroll-behavior-y: contain;
		scrollbar-width: thin;
	}
}

/* Keep the complete client banners visible at every screen width. */
.elementor-63 .elementor-element.elementor-element-dazslides.elementor-widget-slides .swiper-slide {
	height: auto;
	aspect-ratio: 19 / 8;
}

.elementor-63 .elementor-element.elementor-element-dazslides .swiper-slide-bg {
	background-size: contain;
	background-repeat: no-repeat;
}

/* Display the regenerated wordmark without its transparent top/bottom margins. */
.elementor .ars-site-logo {
	width: 100%;
	max-width: 340px;
}

.elementor .ars-site-logo a {
	display: block;
}

.elementor-element-dazlogo.ars-site-logo {
	max-width: 320px;
}

.elementor .ars-site-logo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 5.5 / 1;
	object-fit: cover;
}

.elementor .ars-company-video .elementor-wrapper {
	border-radius: 12px;
	overflow: hidden;
}

/* Equal-sized promotion and video cards beneath the homepage products. */
.elementor .ars-promo-video-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
}

.elementor .ars-promo-video-row > .elementor-widget {
	min-width: 0;
	width: 100%;
	margin: 0;
}

.elementor .ars-side-promo a,
.elementor .ars-side-promo img {
	display: block;
	width: 100%;
	border-radius: 12px;
}

.elementor .ars-side-promo img {
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: contain;
}

@media (max-width: 767px) {
	.elementor-element-dazmlogo.ars-site-logo {
		max-width: 250px;
	}

	.elementor .ars-promo-video-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
}

/* WooCommerce checkout/cart primary buttons */
.woocommerce .wc-proceed-to-checkout a.checkout-button.button.alt.wc-forward,
.woocommerce-page .wc-proceed-to-checkout a.checkout-button.button.alt.wc-forward,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background-color: #14963a !important;
	border-color: #14963a !important;
	color: #ffffff !important;
	opacity: 1 !important;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button.button.alt.wc-forward:hover,
.woocommerce-page .wc-proceed-to-checkout a.checkout-button.button.alt.wc-forward:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background-color: #0f7f30 !important;
	border-color: #0f7f30 !important;
	color: #ffffff !important;
}

/* Hide post add-to-cart "View cart" links */
.woocommerce a.added_to_cart,
.woocommerce-page a.added_to_cart,
.single-product .summary a.added_to_cart,
.woocommerce a.added_to_cart.wc-forward,
.woocommerce-page a.added_to_cart.wc-forward,
.woocommerce a.added_to_cart.wc_forward,
.woocommerce-page a.added_to_cart.wc_forward {
	display: none !important;
	visibility: hidden !important;
}

/* Equal-height Elementor product loop cards */
.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-loop-container {
	align-items: stretch !important;
	grid-auto-rows: 1fr !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-loop-container > .e-loop-item.product {
	display: flex !important;
	height: 100% !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .e-loop-item.product > .elementor-166,
.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166.e-loop-item.product,
.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-a86d1d0 {
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	width: 100% !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-a86d1d0 > .e-con-inner {
	display: flex !important;
	flex: 1 1 auto !important;
	flex-direction: column !important;
	height: 100% !important;
	width: 100% !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-9f927c4,
.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-ea70087,
.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-4a96b90 {
	flex: 0 0 auto !important;
	width: 100% !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-4a96b90 a {
	display: block !important;
	aspect-ratio: 1 / 1 !important;
	width: 100% !important;
	overflow: hidden !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-4a96b90 img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-02e5650 {
	display: flex !important;
	flex: 1 1 auto !important;
	flex-direction: column !important;
	width: 100% !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-065e4ce {
	min-height: 38px !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-065e4ce .elementor-heading-title,
.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-065e4ce .elementor-heading-title a {
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;
	overflow: hidden !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-286422f {
	min-height: 22px !important;
	margin-bottom: 0 !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-286422f .price {
	margin-bottom: 0 !important;
	line-height: 1.2 !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-04e2789 {
	flex: 0 0 auto !important;
	margin-top: auto !important;
	width: 100% !important;
}

@media (max-width: 767px) {
	.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-a86d1d0 > .e-con-inner {
		padding: 8px !important;
	}

	.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-065e4ce {
		min-height: 31px !important;
	}

	.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-286422f {
		min-height: 18px !important;
	}

	.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-04e2789 {
		margin-top: 4px !important;
	}
}
