/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
/*
 * Home hero (Elementor container 9b3e50d): on phones the dedicated dark
 * banner (1120x630 => 56.25vw tall) replaces the whole desktop hero, and
 * only the "Shop Now" button is shown over it. The button is pushed to the
 * bottom by the container's mobile "justify content: end" set in Elementor.
 */
@media (max-width: 767px) {
	.elementor .elementor-element.elementor-element-9b3e50d {
		--padding-top: 0px;
		--padding-bottom: 3vw;
		--padding-left: 7vw;
		--padding-right: 7vw;
		min-height: 56.25vw !important;
		align-items: stretch;
		background-color: #101010 !important;
		background-image: var(--zs-hero-mobile-bg) !important;
		background-repeat: no-repeat !important;
		background-position: center !important;
		background-size: cover !important;
	}

	/* Remove the desktop overlay image (hero-final.jpg). */
	.elementor .elementor-element.elementor-element-9b3e50d::before {
		display: none !important;
	}

	/* Hide everything except the Shop Now button. */
	.elementor-element-9b3e50d .elementor-element-85c1e1c,
	.elementor-element-9b3e50d .elementor-element-0bf4ea4,
	.elementor-element-9b3e50d .elementor-element-96fbf2d,
	.elementor-element-9b3e50d .elementor-element-ab17f74 {
		display: none !important;
	}

	.elementor-element-9b3e50d .elementor-element-a14a451,
	.elementor-element-9b3e50d .elementor-element-f96173c {
		width: auto;
		padding: 0;
		align-items: flex-start;
	}

	.elementor-element-9b3e50d .elementor-element-ce1344f {
		width: auto !important;
	}

	.elementor-element-9b3e50d .elementor-element-ce1344f .elementor-button {
		width: auto;
		padding: 7px 16px;
		font-size: 12px;
		background-color: #ff4200;
		color: #fff;
	}
}

/*
 * Single product page on phones: everything stacks and nothing scrolls except
 * the one-line thumbnail strip. Overrides the WPCode gallery snippet and keeps
 * flex children from forcing the page wider.
 */
@media (max-width: 767px) {
	html,
	body.single-product {
		overflow-x: clip;
	}

	body.single-product .elementor-156 .e-con,
	body.single-product .elementor-156 .e-con-inner,
	body.single-product .elementor-156 .elementor-widget {
		min-width: 0;
		max-width: 100%;
	}

	/* Thumbnails: one line under the main image, scrolling sideways. */
	body.single-product .custom-product-gallery .flex-control-nav.flex-control-thumbs {
		display: flex !important;
		flex-flow: row nowrap !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		gap: 8px !important;
		width: 100% !important;
		padding: 0 0 4px !important;
		-webkit-overflow-scrolling: touch;
	}

	body.single-product .custom-product-gallery .flex-control-nav.flex-control-thumbs li {
		flex: 0 0 72px !important;
		width: 72px !important;
		min-width: 0 !important;
	}

	body.single-product .custom-product-gallery .flex-control-nav.flex-control-thumbs li img {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 1 / 1;
		object-fit: cover;
	}

	/* Right column grows with its content (no inner y/x scrollbars). */
	body.single-product .product-details-right {
		max-height: none;
		overflow: visible;
	}

	/* Every row in the details column becomes a stack: one below another. */
	body.single-product .elementor-156 .elementor-element-c50adb6,
	body.single-product .elementor-156 .elementor-element-6774f8f,
	body.single-product .elementor-156 .elementor-element-24ffa8e,
	body.single-product .elementor-156 .elementor-element-04974ee,
	body.single-product .elementor-156 .elementor-element-a910685,
	body.single-product .elementor-156 .elementor-element-3d9efd6,
	body.single-product .elementor-156 .elementor-element-4248963 {
		flex-direction: column;
		align-items: stretch;
	}

	body.single-product .elementor-156 .elementor-element-c50adb6 > .e-con,
	body.single-product .elementor-156 .elementor-element-6774f8f > .e-con,
	body.single-product .elementor-156 .elementor-element-24ffa8e > .e-con,
	body.single-product .elementor-156 .elementor-element-04974ee > .e-con,
	body.single-product .elementor-156 .elementor-element-a910685 > .e-con,
	body.single-product .elementor-156 .elementor-element-3d9efd6 > .e-con,
	body.single-product .elementor-156 .elementor-element-4248963 > .e-con {
		width: 100%;
	}

	/* Related products: two per row. */
	body.single-product .elementor-156 .elementor-element-2bc694e {
		--grid-columns: 2 !important;
	}

	body.single-product .elementor-156 .elementor-element-2bc694e .elementor-loop-container {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	/* Strip the inner scroll areas the product details may contain. */
	body.single-product .elementor-156 .e-con,
	body.single-product .elementor-156 .elementor-widget-container {
		overflow: visible;
	}

	body.single-product .zestify-product-form .variations select {
		max-width: 100%;
	}
}

/* Single product short description block: no left padding, no gap after the last paragraph. */
#short-description-container {
	padding-left: 0 !important;
}

#short-description-container p:last-of-type,
#short-description-container p:last-child {
	margin-bottom: 0 !important;
}

/*
 * Mini cart drawer: the item list has an automatic height (no fixed or max height of its
 * own) so it always wraps its items; the surrounding scroll area does the scrolling and
 * the delivery benefits box follows the last item.
 */
.cart-icon .zmc-scroll-area {
	gap: 16px;
}

.cart-icon .elementor-menu-cart__main .zmc-scroll-area .elementor-menu-cart__products {
	flex: 0 0 auto !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	overflow: visible !important;
}

.cart-icon .zmc-scroll-area .zmc-delivery-benefits {
	flex: 0 0 auto;
	margin: 0 !important;
}

/* Mini cart quantity box: slightly larger - / + buttons. */
.cart-icon .zmc-price-row .zmc-quantity {
	width: 104px;
	min-height: 36px;
	padding: 2px 6px;
}

.cart-icon .zmc-price-row .zmc-quantity button {
	width: 26px;
	height: 30px;
	font-size: 19px;
}

.cart-icon .zmc-price-row .zmc-quantity span {
	min-width: 16px;
	font-size: 13px;
}

/* Home page "Pre-Order" section: hidden while no product is in the Pre-Order category
   (body class added by Zestify_Core_Preorder). */
body.zestify-no-preorder .elementor-element-f792fbd {
	display: none !important;
}
