/* ==========================================================================
   Multline — Homepage Promotional Banners (premium redesign)
   Scope: .mlx-hero-tile (hero offer tiles) and .mlx-card (category promo cards)
   Brand: Primary green #4CAF50 · Deep green #2E7D32 · Ink #17241b · Roboto
   Content stays editable in Elementor; this file controls presentation only.
   ========================================================================== */

:root {
	--mlx-green: #4CAF50;
	--mlx-green-d: #2E7D32;
	--mlx-green-soft: rgba(76, 175, 80, .10);
	--mlx-ink: #17241b;
	--mlx-body: #5f6b63;
	--mlx-surface: #ffffff;
	--mlx-tint: #f1f7f1;
	--mlx-line: #e7ede8;
	--mlx-dark: #13311f;
	--mlx-radius: 18px;
	--mlx-shadow: 0 8px 26px rgba(23, 36, 27, .07);
	--mlx-shadow-h: 0 18px 44px rgba(23, 36, 27, .14);
}

/* ==========================================================================
   1. HERO OFFER TILES  (rt-service-grid · style8)
   ========================================================================== */

/* Drop the demo background image inherited from the theme kit. */
.elementor-widget.mlx-hero-tile {
	background-image: none !important;
	background-color: transparent !important;
}

.mlx-hero-tile .react-addon-services.services-style8,
.mlx-hero-tile .services-part {
	height: 100%;
}

.mlx-hero-tile .product-box.product-box-medium {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	margin: 0;
	padding: 20px 20px;
	border-radius: var(--mlx-radius);
	background: var(--mlx-surface);
	border: 1px solid var(--mlx-line);
	box-shadow: var(--mlx-shadow);
	overflow: hidden;
	transition: transform .35s ease, box-shadow .35s ease;
}

.mlx-hero-tile .product-box.product-box-medium:hover {
	transform: translateY(-4px);
	box-shadow: var(--mlx-shadow-h);
}

.mlx-hero-tile .contents {
	flex: 1 1 auto;
	min-width: 0;
}

.mlx-hero-tile .contents .pretitle {
	display: inline-block;
	margin: 0 0 10px !important;
	padding: 0 !important;
	background: none !important;
	border-radius: 0 !important;
	font-size: 11.5px !important;
	font-weight: 700 !important;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--mlx-green-d) !important;
}

.mlx-hero-tile .contents .product-title {
	margin: 0 0 8px !important;
	font-size: 21px !important;
	line-height: 1.22 !important;
	font-weight: 700 !important;
	color: var(--mlx-ink) !important;
	overflow-wrap: break-word;
}

.mlx-hero-tile .contents .product-title span {
	color: var(--mlx-green) !important;
	font-weight: 700 !important;
}

.mlx-hero-tile .contents p {
	margin: 0 0 16px !important;
	font-size: 13.5px !important;
	line-height: 1.5 !important;
	color: var(--mlx-body) !important;
}

/* CTA pill (authored inside the tile text as <span class="mlx-cta">) */
.mlx-hero-tile .contents .mlx-cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 20px;
	border-radius: 999px;
	background: var(--mlx-green);
	color: #fff !important;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .01em;
	white-space: nowrap;
	transition: background .25s ease, transform .25s ease;
}

.mlx-hero-tile .product-box:hover .contents .mlx-cta {
	background: var(--mlx-green-d);
}

.mlx-hero-tile .product-thumb {
	flex: 0 0 auto !important;
	width: 44% !important;
	max-width: 150px !important;
	min-width: 95px;
	align-self: center;
	right: auto !important;
	position: relative !important;
}

.mlx-hero-tile .product-thumb img {
	width: 100%;
	height: auto;
	max-height: 205px;
	object-fit: contain;
	filter: drop-shadow(0 12px 20px rgba(23, 36, 27, .18));
}

/* Dark "bold" variant — deep brand green with light type (transparent product PNG) */
.mlx-hero-tile--dark .product-box.product-box-medium {
	background: var(--mlx-dark);
	border-color: transparent;
}

.mlx-hero-tile--dark .contents .pretitle {
	color: #9be0a3 !important;
}

.mlx-hero-tile--dark .contents .product-title {
	color: #ffffff !important;
}

.mlx-hero-tile--dark .contents .product-title span {
	color: #86df90 !important;
}

.mlx-hero-tile--dark .contents p {
	color: rgba(255, 255, 255, .72) !important;
}

/* ==========================================================================
   2. CATEGORY PROMO CARDS  (rt-image-card · style3)
   ========================================================================== */

.mlx-card .rts-posters-section.rt-image--card {
	height: 100%;
}

.mlx-card .product-box.product-box-medium.product-box-medium2 {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	height: 100%;
	min-height: 220px;
	margin: 0;
	padding: 34px 36px;
	border-radius: var(--mlx-radius);
	background: var(--mlx-surface);
	border: 1px solid var(--mlx-line);
	box-shadow: var(--mlx-shadow);
	overflow: hidden;
	transition: transform .4s ease, box-shadow .4s ease;
}

.mlx-card .product-box.product-box-medium2:hover {
	transform: translateY(-5px);
	box-shadow: var(--mlx-shadow-h);
}

.mlx-card .contents {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	min-width: 0;
}

.mlx-card .contents .pretitle.sub--title {
	display: inline-block;
	margin: 0 0 12px !important;
	padding: 0 !important;
	background: none !important;
	border-radius: 0 !important;
	font-size: 12px !important;
	line-height: 1.4 !important;
	font-weight: 700 !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mlx-green-d) !important;
}

.mlx-card .contents .product-title.title {
	margin: 0 0 18px !important;
	font-size: 26px !important;
	line-height: 1.22 !important;
	font-weight: 700 !important;
	color: var(--mlx-ink) !important;
}

.mlx-card .contents .product-title.title span {
	color: var(--mlx-ink) !important;
	font-weight: 700 !important;
}

.mlx-card .product-thumb {
	position: relative !important;
	right: auto !important;
	flex: 0 0 150px;
	width: 150px;
	max-width: 44%;
	align-self: center;
}

.mlx-card .product-thumb img {
	width: 100%;
	height: auto;
	max-height: 170px;
	object-fit: contain;
}

/* ---- Left "deal" card: editorial / minimal, accent bar + arrow link ---- */
.mlx-card--deal .product-box.product-box-medium2 {
	background: var(--mlx-surface);
}

.mlx-card--deal .product-box.product-box-medium2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: var(--mlx-green);
}

.mlx-card--deal .contents .product-title.title {
	font-size: 30px !important;
}

.mlx-card--deal .contents .view-collections.go-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--mlx-green-d) !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: gap .25s ease, color .25s ease;
}

.mlx-card--deal .product-box:hover .view-collections.go-btn {
	gap: 12px;
	color: var(--mlx-green) !important;
}

/* ---- Right "collection" card: retail, soft tint + pill CTA ---- */
.mlx-card--collection .product-box.product-box-medium2 {
	background: var(--mlx-tint);
	border-color: #e1ece2;
}

.mlx-card--collection .product-box.product-box-medium2::after {
	content: "";
	position: absolute;
	right: -40px;
	top: 50%;
	transform: translateY(-50%);
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: var(--mlx-green-soft);
	z-index: 1;
}

/* ---- Wide single card: full-width split ---- */
.mlx-card--wide .product-box.product-box-medium2 {
	background: var(--mlx-tint);
	border-color: #e1ece2;
	padding: 44px 56px;
}

.mlx-card--wide .contents .product-title.title {
	font-size: 32px !important;
}

.mlx-card--wide .product-thumb {
	flex: 0 0 220px;
	width: 220px;
	max-width: 36%;
}

/* Shared pill CTA for collection + wide cards */
.mlx-card--collection .contents .view-collections.go-btn,
.mlx-card--wide .contents .view-collections.go-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 24px;
	border-radius: 999px;
	background: var(--mlx-green);
	color: #fff !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	letter-spacing: .01em;
	white-space: nowrap;
	transition: background .25s ease, transform .25s ease;
}

.mlx-card--collection .product-box:hover .view-collections.go-btn,
.mlx-card--wide .product-box:hover .view-collections.go-btn {
	background: var(--mlx-green-d);
}

.mlx-card .contents .view-collections.go-btn i {
	font-size: 13px;
}

/* ==========================================================================
   3. RESPONSIVE
   The plugin makes .product-thumb position:absolute; we restore flex flow
   above so text never overlaps the product image. Tablets use a compact row,
   phones stack the image beneath the copy.
   ========================================================================== */

/* Tablet — cards sit two-up and get narrow: trim type + imagery (still a row). */
@media (max-width: 1024px) {
	.mlx-card .product-box.product-box-medium2 {
		padding: 26px 28px;
		min-height: 0;
		gap: 16px;
	}
	.mlx-card .contents .product-title.title,
	.mlx-card--deal .contents .product-title.title,
	.mlx-card--wide .contents .product-title.title {
		font-size: 22px !important;
		margin-bottom: 16px !important;
	}
	.mlx-card .product-thumb {
		flex-basis: 110px;
		width: 110px;
	}
	.mlx-card--wide .product-box.product-box-medium2 {
		padding: 30px 34px;
	}
	.mlx-card--wide .product-thumb {
		flex-basis: 160px;
		width: 160px;
	}
	.mlx-card--collection .product-box.product-box-medium2::after {
		width: 170px;
		height: 170px;
		right: -30px;
	}
}

/* Phones — Elementor stacks the columns full-width; stack copy over product. */
@media (max-width: 767px) {
	.mlx-card .product-box.product-box-medium.product-box-medium2 {
		flex-direction: column;
		align-items: flex-start;
		gap: 22px;
		padding: 28px 28px;
		text-align: left;
	}
	.mlx-card .contents {
		max-width: 100%;
		width: 100%;
	}
	.mlx-card .contents .product-title.title,
	.mlx-card--deal .contents .product-title.title,
	.mlx-card--wide .contents .product-title.title {
		font-size: 24px !important;
		margin-bottom: 18px !important;
	}
	.mlx-card .product-thumb {
		flex: 0 0 auto;
		width: 150px;
		max-width: 60%;
		align-self: center;
		margin: 0 auto;
	}
	.mlx-card--collection .product-box.product-box-medium2::after {
		display: none;
	}
	.mlx-card--collection .product-box.product-box-medium2,
	.mlx-card--wide .product-box.product-box-medium2 {
		text-align: center;
		align-items: center;
	}
	.mlx-card--deal .product-box.product-box-medium2 {
		padding-left: 30px;
	}
	/* Hero tiles (shown on tablet/desktop) */
	.mlx-hero-tile .product-box.product-box-medium {
		padding: 22px;
	}
	.mlx-hero-tile .contents .product-title {
		font-size: 21px !important;
	}
	.mlx-hero-tile .product-thumb {
		flex-basis: 92px;
		width: 92px;
	}
}

@media (max-width: 479px) {
	.mlx-card .product-box.product-box-medium.product-box-medium2 {
		padding: 26px 22px;
		gap: 18px;
	}
	.mlx-card .contents .product-title.title,
	.mlx-card--deal .contents .product-title.title,
	.mlx-card--wide .contents .product-title.title {
		font-size: 22px !important;
	}
	.mlx-card .product-thumb {
		width: 140px;
	}
}


/* ==========================================================================
   4. BRAND / PARTNER LOGOS STRIP  (homepage HTML widget .mlx-brands)
   CSS lives here (not inline) because the HTML widget strips <style> tags.
   ========================================================================== */
.mlx-brands {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 6px 0;
}
.mlx-brands .brand-logo {
	flex: 1 1 140px;
	max-width: 170px;
	height: 96px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #eef0ee;
	border-radius: 12px;
	padding: 16px;
	box-sizing: border-box;
	background: #fff;
	transition: box-shadow .25s ease, transform .25s ease;
}
.mlx-brands .brand-logo:hover {
	box-shadow: 0 8px 22px rgba(23, 36, 27, .08);
	transform: translateY(-2px);
}
.mlx-brands .brand-logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
@media (max-width: 991px) {
	.mlx-brands .brand-logo { flex: 1 1 30%; height: 88px; }
}
@media (max-width: 600px) {
	.mlx-brands { gap: 12px; }
	.mlx-brands .brand-logo { flex: 1 1 40%; height: 76px; padding: 12px; }
}


/* Hero tiles: on narrow/tablet widths the right column gets tight — stack the
   product beneath the copy so headlines never collide with or starve against
   the image. (Tiles are hidden below 768px by the theme.) */
@media (max-width: 1200px) {
	.mlx-hero-tile .product-box.product-box-medium {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		text-align: left;
	}
	.mlx-hero-tile .contents { width: 100%; }
	.mlx-hero-tile .contents .product-title { font-size: 22px !important; }
	.mlx-hero-tile .product-thumb {
		width: auto !important;
		max-width: 135px !important;
		min-width: 0;
		align-self: center;
		margin: 2px auto 0;
	}
}


/* ==========================================================================
   5. HOMEPAGE SEO CONTENT BLOCK  (#multline-seo)
   Keeps semantic h1/h2/h3 for SEO but renders them at a compact, readable
   size with clear hierarchy and on-brand links.
   ========================================================================== */
#multline-seo {
	max-width: 1180px;
	margin: 0 auto;
	padding: 4px 0 8px;
	color: #5f6b63;
	font-size: 15px;
	line-height: 1.75;
}
#multline-seo h1 {
	font-size: 26px;
	line-height: 1.3;
	font-weight: 700;
	color: #17241b;
	margin: 0 0 12px;
	letter-spacing: -0.2px;
}
#multline-seo h2 {
	font-size: 19px;
	line-height: 1.35;
	font-weight: 700;
	color: #17241b;
	margin: 26px 0 8px;
}
#multline-seo h3 {
	font-size: 15.5px;
	line-height: 1.45;
	font-weight: 600;
	color: #17241b;
	margin: 16px 0 4px;
}
#multline-seo p {
	margin: 0 0 12px;
	color: #5f6b63;
}
#multline-seo ul {
	margin: 0 0 14px;
	padding-left: 20px;
}
#multline-seo li {
	margin-bottom: 6px;
	color: #5f6b63;
}
#multline-seo a {
	color: #2E7D32;
	font-weight: 500;
	text-decoration: none;
}
#multline-seo a:hover {
	text-decoration: underline;
}
#multline-seo strong { color: #17241b; }

@media (max-width: 767px) {
	#multline-seo { font-size: 14.5px; }
	#multline-seo h1 { font-size: 22px; }
	#multline-seo h2 { font-size: 18px; }
	#multline-seo h3 { font-size: 15px; }
}


/* ==========================================================================
   6. SHOP BY CATEGORY  (rs-product-category / rtpc-style1)
   Give each category a defined, bordered card instead of a plain image.
   ========================================================================== */
.rt-product--category.rtpc-style1 .product-item .pcat-single {
	border: 1px solid #e7ede8;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 14px rgba(23, 36, 27, .05);
	transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.rt-product--category.rtpc-style1 .product-item .pcat-single:hover {
	box-shadow: 0 12px 28px rgba(23, 36, 27, .12);
	transform: translateY(-4px);
	border-color: #bfe0c4;
}
.rt-product--category.rtpc-style1 .pcat-single .pcat-img img {
	display: block;
	width: 100%;
	height: auto;
}


/* ==========================================================================
   7. SINGLE PRODUCT PAGE — mobile responsiveness fixes
   Stops horizontal overflow from the product gallery/zoom image and the
   add-to-cart row (quantity + Add to cart + fixed-width WhatsApp button).
   ========================================================================== */
.single-product div.product .woocommerce-product-gallery { overflow: hidden; max-width: 100%; }
.single-product div.product .woocommerce-product-gallery img,
.single-product div.product .woocommerce-product-gallery .zoomImg { max-width: 100%; }

@media (max-width: 767px) {
	.single-product div.product form.cart {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 10px;
	}
	.single-product div.product form.cart .quantity { margin: 0; }
	.single-product div.product form.cart .single_add_to_cart_button {
		flex: 1 1 auto;
		min-width: 0;
	}
	/* Order-via-WhatsApp plugin button is fixed at 300px — let it fit/stack. */
	.single-product div.product form.cart .nta-woo-products-button,
	.single-product div.product form.cart .nta_wa_button {
		flex: 1 1 100%;
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
	}
	.single-product div.product form.cart .nta_wa_button a,
	.single-product div.product form.cart .nta_wa_button > div,
	.single-product div.product form.cart .nta_wa_button > a > div {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
}


/* ==========================================================================
   8. EQUAL-HEIGHT, RESPONSIVE PRODUCT CARDS  (shop loop + homepage sliders)
   ========================================================================== */
/* Shop grid: flex rows so every card in a row shares the tallest height. */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none;
	display: flex;
}
.woocommerce ul.products li.product > .product-inner {
	width: 100%;
}

/* Card inner = full-height flex column (shop + slider share .product-inner). */
.product-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.product-inner .product-list,
.product-inner .product-bottom,
.product-inner .rselements-product-list {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

/* Titles: reserve two lines and clamp longer ones so prices line up. */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.rt--pslider .rselements-product-list .product-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
	line-height: 1.3;
	margin-bottom: 8px;
}

/* Price (and the add-to-cart button that follows it) pinned to the bottom. */
.product-inner .product-bottom .price,
.rt--pslider .rselements-product-list .product-price {
	margin-top: auto;
}

/* Responsive columns for the shop grid. */
@media (max-width: 1024px) {
	.woocommerce ul.products li.product,
	.woocommerce-page ul.products li.product { width: 31.33%; margin-right: 3% !important; }
	.woocommerce ul.products li.product:nth-child(4n),
	.woocommerce-page ul.products li.product:nth-child(4n) { margin-right: 3% !important; }
	.woocommerce ul.products li.product:nth-child(3n),
	.woocommerce-page ul.products li.product:nth-child(3n) { margin-right: 0 !important; }
}
@media (max-width: 767px) {
	.woocommerce ul.products li.product,
	.woocommerce-page ul.products li.product { width: 48%; margin-right: 4% !important; }
	.woocommerce ul.products li.product:nth-child(3n),
	.woocommerce-page ul.products li.product:nth-child(3n) { margin-right: 4% !important; }
	.woocommerce ul.products li.product:nth-child(2n),
	.woocommerce-page ul.products li.product:nth-child(2n) { margin-right: 0 !important; }
}


/* Homepage product sliders: make Swiper slides equal height so titles/prices line up. */
.rt--pslider .swiper-wrapper { align-items: stretch; }
.rt--pslider .swiper-slide { height: auto; }
.rt--pslider .swiper-slide > .product-inner { height: 100%; }
