/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.3
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Do not inherit Flatsome's global quote bar inside cloned testimonials. */
.lm-legendairy-testimonials .lm-testimonial blockquote {
	border: 0;
	padding: 0;
}

/* Keep Flatsome's site shell global, but isolate imported homepage modules. */
body.homepage-isolated #content {
	padding-top: 0;
	padding-bottom: 0;
}

body.homepage-isolated #content > .row.row-main {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

body.homepage-isolated #content > .row.row-main > .large-12.col {
	width: 100%;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

body.homepage-isolated #content > .row.row-main > .large-12.col > .col-inner {
	width: 100%;
	max-width: none;
}

body.homepage-isolated #content .lm-section :where(h1, h2, h3, h4, h5, h6) {
	color: inherit;
}

body.homepage-isolated #content .lm-section :where(a:not(.lm-button)) {
	color: inherit;
}

body.homepage-isolated #content .lm-section :where(button) {
	margin-bottom: 0;
}

body.homepage-isolated #content .lm-section :where(blockquote) {
	border: 0;
	padding: 0;
}

body.homepage-isolated #content > .lm-section > :where(.container, .container-width) {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

body.homepage-isolated #content > .lm-section > .row {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

body.homepage-isolated #content > .lm-section > .row > :where(.col, .columns) {
	padding-left: 0;
	padding-right: 0;
}

/* Semantic elements inside migrated modules use their own component spacing. */
body.homepage-isolated #content .lm-section :where(p, ul, ol, figure) {
	margin-block-start: 0;
}

body.homepage-isolated #content .lm-section :where(ul, ol) {
	padding-inline-start: 0;
}

body.homepage-isolated #content .lm-section :where(figure) {
	margin: 0;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* ============================================================
   Homepage module m05 - "Flash sale" product carousel
   (centred content column, product cards fill the column exactly)
   ============================================================ */
#yoto-picks {
	width: 100%;
	max-width: none !important;
	padding: 72px max(24px, calc((100vw - 1232px) / 2)) 56px;
	background: #fff;
	color: #1b1919;
	overflow: hidden;
}

#yoto-picks .yoto-picks-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 26px;
}

#yoto-picks .yoto-picks-head > h2 {
	flex: 0 1 auto;
	width: auto;
	max-width: 100%;
	margin: 0;
	font-family: inherit;
	font-size: 32px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.025em;
	color: #1b1919;
}

#yoto-picks .yoto-picks-aside {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
}

#yoto-picks .yoto-picks-link {
	margin: 0 !important;
}

#yoto-picks .yoto-picks-link a {
	color: #1b1919;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

#yoto-picks .yoto-picks-link a:hover {
	color: #e60023;
}

#yoto-picks .yoto-picks-controls {
	display: flex;
	gap: 8px;
}

#yoto-picks .yoto-picks-controls button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	border: 1px solid #ded7d4;
	border-radius: 50%;
	background: #fff;
	color: #1b1919;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

#yoto-picks .yoto-picks-controls button:hover {
	background: #f5f0f0;
}

#yoto-picks .yoto-picks-controls button:disabled {
	opacity: 0.35;
	cursor: default;
}

#yoto-picks .yoto-picks-controls button:focus-visible {
	outline: 2px solid #1471d9;
	outline-offset: 2px;
}

/* The WooCommerce shortcode grid becomes a horizontal, snap-scrolling rail. */
#yoto-picks .woocommerce,
#yoto-picks .products {
	width: 100%;
	max-width: none !important;
}

#yoto-picks .products {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 20px;
	margin: 0 !important;
	padding: 0 0 10px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

#yoto-picks .products::-webkit-scrollbar {
	display: none;
}

#yoto-picks .products > .product-small {
	flex: 0 0 calc((100% - 80px) / 5);
	width: calc((100% - 80px) / 5);
	max-width: calc((100% - 80px) / 5);
	margin: 0 !important;
	padding: 0 !important;
	scroll-snap-align: start;
}

#yoto-picks .products > .product-small > .col-inner {
	height: 100%;
}

#yoto-picks .yoto-product-card__image {
	aspect-ratio: 638 / 1011;
}

#yoto-picks .yoto-product-card__image img {
	object-fit: cover;
}

/* ============================================================
   Homepage module m06 - benefit cards
   ============================================================ */
#yoto-benefits {
	width: 100%;
	max-width: none !important;
	padding: 8px 24px 88px;
	background: #fff;
}

#yoto-benefits .yoto-benefits-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	max-width: 1232px;
	margin: 0 auto;
}

#yoto-benefits .yoto-benefit {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 22px;
	border-radius: 24px;
	background: #f5f0f0;
}

#yoto-benefits .yoto-benefit svg {
	display: block;
	width: 32px;
	height: 32px;
	margin-bottom: 10px;
	color: #1b1919;
}

#yoto-benefits .yoto-benefit-title {
	margin: 0 !important;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	color: #181818;
}

#yoto-benefits .yoto-benefit-copy {
	margin: 0 !important;
	font-size: 14px;
	line-height: 1.5;
	color: #2b2b2b;
}

/* ============================================================
   m04 spotlight - centre the carousel in the same content column
   ============================================================ */
@media (min-width: 768px) {
	.yoto-spotlight {
		padding: 64px max(24px, calc((100vw - 1232px) / 2)) !important;
	}

	.yoto-spotlight .yoto-spotlight-slide {
		flex: 0 0 100% !important;
		justify-content: center;
		gap: 44px;
	}

	.yoto-spotlight .yoto-spotlight-copy {
		flex: 0 1 520px;
	}

	.yoto-spotlight-prev {
		left: 8px !important;
	}

	.yoto-spotlight-next {
		right: 8px !important;
	}
}

/* Responsive card counts keep the rail flush inside the centred column. */
@media (min-width: 768px) and (max-width: 1199px) {
	#yoto-picks .products > .product-small {
		flex: 0 0 calc((100% - 60px) / 4) !important;
		width: calc((100% - 60px) / 4) !important;
		max-width: calc((100% - 60px) / 4) !important;
	}
}

@media (min-width: 768px) and (max-width: 899px) {
	#yoto-picks .products > .product-small {
		flex: 0 0 calc((100% - 40px) / 3) !important;
		width: calc((100% - 40px) / 3) !important;
		max-width: calc((100% - 40px) / 3) !important;
	}

	#yoto-benefits .yoto-benefits-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	#yoto-picks {
		padding: 44px 0 40px 20px;
	}

	#yoto-picks .yoto-picks-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		margin-bottom: 20px;
		padding-right: 20px;
	}

	#yoto-picks .yoto-picks-head > h2 {
		font-size: 25px;
	}

	#yoto-picks .yoto-picks-controls {
		display: none;
	}

	#yoto-picks .products {
		gap: 14px;
	}

	#yoto-picks .products > .product-small {
		flex: 0 0 64% !important;
		width: 64% !important;
		max-width: 64% !important;
	}

	#yoto-benefits .yoto-benefits-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	#yoto-benefits {
		padding: 8px 20px 56px;
	}

	#yoto-benefits .yoto-benefits-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	#yoto-benefits .yoto-benefit {
		padding: 18px;
	}
}

/* ============================================================
   Sale prices - show the discounted number in the site red
   (Flatsome product boxes, the Yoto product cards and the
   single product price block all use different wrappers, so the
   inner amount and its <bdi> need the colour explicitly.)
   ============================================================ */
.price ins,
.price ins .woocommerce-Price-amount,
.price ins .woocommerce-Price-amount bdi,
.price ins .woocommerce-Price-currencySymbol,
.yoto-product-card__price ins,
.yoto-product-card__price ins .woocommerce-Price-amount,
.yoto-product-card__price ins .woocommerce-Price-amount bdi,
.yoto-product-card__price ins .woocommerce-Price-currencySymbol,
.woocommerce-variation-price ins,
.woocommerce-variation-price ins .woocommerce-Price-amount,
.woocommerce-variation-price ins .woocommerce-Price-amount bdi,
.woocommerce-variation-price ins .woocommerce-Price-currencySymbol {
	color: #e60023 !important;
}

/* ------------------------------------------------------------------
   No empty strip under the WordPress admin bar.
   The header plugin adds top:32px (46px on tablets) to the sticky
   header for logged-in users, but WordPress already offsets the whole
   document by the admin bar height, so the offset landed twice and
   left a blank band above the announcement bar.
   ------------------------------------------------------------------ */
body.admin-bar .htw-site-header {
	top: 0 !important;
}
