/**
 * Homepage styles — replicates onlinemangoes.pk home sections.
 *
 * @package onlinemangoes
 */

/* Full-bleed helper (elementor-section-stretched equivalent). */
.omp-bleed {
	width: 100vw;
	margin-inline: calc( 50% - 50vw );
}

/* Section gutters on a constrained main container. */
.omp-content-area .site-main {
	width: auto;
}

/* Homepage content starts flush under the header (reference main pad 0). */
body.omp-home .site-main.wd-content-layout {
	padding-block: 0;
}

/* ---------------------------------------------------------------- hero --- */
.omp-hero {
	position: relative;
	min-height: 675px;
	background: url( '../img/hero-fresh-fruits.webp' ) no-repeat center center;
	background-size: cover;
	overflow: hidden;
}

.omp-hero-overlay-side {
	position: absolute;
	top: 0;
	left: 0;
	width: 60%;
	height: 100%;
	background: linear-gradient( to right, rgba( 0, 0, 0, 0.85 ) 0%, rgba( 0, 0, 0, 0 ) 100% );
	pointer-events: none;
}

.omp-hero-content-wrapper {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	min-height: 675px;
	padding: 0 8%;
}

.omp-hero-content-left {
	width: 600px;
	max-width: 100%;
}

.omp-hero-badge {
	display: inline-block;
	margin-bottom: 20px;
	padding: 6px 14px;
	border: 1px solid rgba( 255, 255, 255, 0.2 );
	border-radius: 3px;
	background: rgba( 0, 128, 0, 0.2 );
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1.6;
}

.omp-hero-title {
	margin: 0 0 20px;
	color: #fff;
	font-size: 50px;
	font-weight: 700;
	line-height: 55px;
}

.omp-hero-desc {
	margin: 0 0 35px;
	color: #f1f1f1;
	font-size: 19px;
	line-height: 30.4px;
}

.omp-hero-desc strong {
	color: #7cb342;
	font-weight: 600;
}

.omp-hero-buttons {
	display: flex;
	gap: 15px;
}

.omp-btn {
	display: inline-block;
	padding: 14px 35px;
	border: 0;
	border-radius: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: center;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.omp-btn-primary {
	background: #008000;
	color: #fff;
}

.omp-btn-primary:hover {
	background: #006400;
	color: #fff;
}

.omp-btn-secondary {
	background: transparent;
	color: #fff;
	text-transform: none;
	letter-spacing: normal;
}

.omp-btn-secondary:hover {
	background: #fff;
	color: #008000;
}

/* Hero buttons: reference metrics (230×54 / 164×54). */
.omp-hero .omp-btn {
	height: 54px;
	box-sizing: border-box;
	white-space: nowrap;
}

.omp-hero .omp-btn-primary {
	width: 230px;
	line-height: 26px;
}

.omp-hero .omp-btn-secondary {
	width: 164px;
	line-height: 24px;
	border: 1px solid #fff;
}

/* ----------------------------------------------------------- authority --- */
.omp-authority {
	margin-top: 25px;
}

.omp-auth-title {
	margin: 0 0 25px;
	color: #008000;
	font-family: 'Cinzel Decorative', serif;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.omp-auth-text {
	max-width: 950px;
	margin: 0 auto 50px;
	color: #444;
	font-size: 17px;
	line-height: 30.6px;
	text-align: left;
}

.omp-auth-text a {
	color: #008000;
	text-decoration: none;
}

.omp-auth-text a:hover {
	text-decoration: underline;
}

.omp-trust-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 30px;
	max-width: 1100px;
	margin: 0 auto;
}

.omp-trust-card {
	padding: 30px;
	border: 1px solid #f0f0f0;
	border-radius: 8px;
	background: #fff;
	text-align: center;
}

.omp-trust-card .omp-svg-icon {
	display: block;
	margin: 0 auto 27px;
}

.omp-trust-card h3 {
	margin: 0 0 10px;
	color: #222;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.4;
}

.omp-trust-card p {
	margin: 0;
	color: #666;
	font-size: 15px;
	line-height: 22.5px;
}

/* -------------------------------------------------------- pre-order grid --- */
.omp-preorder {
	margin-top: 0;
}

.omp-preorder-title {
	margin: 0 0 40px;
	color: #008000;
	font-family: 'Cinzel Decorative', serif;
	font-size: 36px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
}

.omp-preorder .wd-products {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 20px;
}

.omp-preorder .product-grid-item {
	position: relative;
	background: #fff;
	text-align: center;
}

.omp-preorder .product-image {
	position: relative;
	overflow: hidden;
	margin-bottom: 15px;
}

.omp-preorder .product-image img {
	display: block;
	width: 100%;
	height: auto;
}

.omp-preorder .wd-product-title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.omp-preorder .wd-product-title a {
	color: #333;
	text-decoration: none;
}

.omp-preorder .wd-product-title a:hover {
	color: #008000;
}

.omp-preorder .price {
	display: block;
	margin-bottom: 12px;
	color: #008000;
	font-size: 16px;
	font-weight: 600;
}

.omp-preorder .add-to-cart .button {
	width: 100%;
}

/* ------------------------------------------------------- farm-to-table --- */
.omp-farm-wrap {
	margin-block: 40px 0;
}

.omp-farm-to-table {
	margin: 0;
	padding: 40px 30px;
	border: 1px solid #dcfce7;
	border-radius: 16px;
	background: linear-gradient( 145deg, #f0fdf4, #ffffff );
	box-shadow: 0 4px 15px rgba( 0, 128, 0, 0.05 );
}

.omp-farm-head {
	margin-top: 25px;
	margin-bottom: 30px;
	text-align: center;
}

.omp-farm-intro {
	max-width: 800px;
	margin: 0 auto;
	color: #4b5563;
	font-size: 16px;
	line-height: 1.6;
}

.omp-farm-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}

.omp-farm-card {
	flex: 1 1 300px;
	padding: 20px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.03 );
}

.omp-farm-icon {
	margin-bottom: 20px;
	line-height: 0;
}

.omp-farm-card h3 {
	margin: 0 0 20px;
	color: #15803d;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}

.omp-farm-card p {
	margin: 0 0 20px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.5;
}

/* ---------------------------------------------------------- varieties --- */
.omp-variety {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 500px;
	width: 100vw;
	margin-inline: calc( 50% - 50vw );
	overflow: hidden;
}

.omp-variety.has-shape {
	min-height: 518px;
	margin-top: 70px;
}

.omp-variety.is-gray {
	background: #f8f8f8;
}

.omp-variety-shape {
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: 144px;
	line-height: 0;
	pointer-events: none;
}

.omp-variety-shape svg {
	display: block;
	width: 100%;
	height: 100%;
}

.omp-variety-shape .elementor-shape-fill {
	fill: rgba( 0, 128, 0, 0.29 );
}

.omp-variety-container {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 555fr 62fr 605fr;
	align-items: center;
	width: 100%;
	max-width: 1250px;
	margin: 0 auto;
	padding: 0 18px 0 10px;
}

.omp-variety.is-reverse .omp-variety-container {
	grid-template-columns: 605fr 62fr 555fr;
}

.omp-var-col-left {
	grid-column: 1;
	grid-row: 1;
}

.omp-var-spacer {
	grid-column: 2;
	grid-row: 1;
}

.omp-var-col-right {
	grid-column: 3;
	grid-row: 1;
}

.omp-var-copy {
	padding: 10px 0;
}

.omp-variety.has-shape .omp-var-copy {
	margin-top: 50px;
}

.omp-var-title {
	margin: 0;
	color: #008000;
	font-weight: 600;
	line-height: 1;
	text-transform: capitalize;
}

.omp-var-title b {
	font-weight: 700;
}

.omp-var-subtitle {
	margin: 0;
	color: #008000;
	font-size: 19px;
	font-weight: 600;
	line-height: 1;
}

.omp-variety-text {
	margin-top: 20px;
}

.omp-variety-text p {
	margin: 0 0 20px;
	color: #444;
	font-size: 16px;
	line-height: 28.8px;
}

.omp-variety-text a {
	color: #008000;
	text-decoration: underline;
	text-decoration-color: rgba( 0, 128, 0, 0.3 );
	text-underline-offset: 2px;
}

.omp-dropcap {
	float: left;
	padding: 6px 10px 0 0;
	color: #008000;
	font-family: 'Cinzel Decorative', serif;
	font-size: 55px;
	line-height: 45px;
}

.omp-season-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 0;
	padding: 8px 16px;
	border: 1px solid #ccebc5;
	border-radius: 4px;
	background: #f4fbf4;
	color: #1a4d2e;
	font-size: 14px;
	line-height: 22.4px;
}

.omp-var-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 20px;
	padding: 10px 0;
}

.omp-var-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 41px;
	padding: 12px 24px;
	border: 1px solid #008000;
	border-radius: 3px;
	background: transparent;
	color: #008000;
	font-size: 15px;
	font-weight: 400;
	line-height: 15px;
	text-align: center;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.omp-var-btn:hover {
	background: #008000;
	color: #fff;
}

.omp-var-btn-icon {
	display: inline-flex;
	line-height: 0;
}

.omp-var-giant-title {
	margin: 0;
	color: #008000;
	font-weight: 600;
	line-height: 1;
	text-align: center;
}

/* --------------------------------------------------------------- FAQ --- */
.omp-faq-head {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	background: linear-gradient( 243deg, rgb( 0, 128, 0 ) 0%, rgb( 188, 188, 188 ) 100% );
}

.omp-faq-head h2 {
	margin: 0;
	color: #fff;
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
}

.omp-faq-body {
	padding: 20px 0 100px;
}

.omp-faq-leaf {
	width: 1190px;
	max-width: 100%;
	margin: 0 0 55px calc( 50% - 570px );
	text-align: center;
}

.omp-faq-leaf img {
	display: inline-block;
	width: 100px;
	height: 66px;
}

.omp-faq-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 1190px;
	max-width: 100%;
	margin: 0 0 0 calc( 50% - 570px );
}

.omp-faq-col {
	padding: 10px 30px;
}

.omp-faq-item {
	margin-bottom: 25px;
}

.omp-faq-title {
	position: relative;
	display: block;
	margin: 0;
	padding: 15px 10px;
	border-bottom: 1px solid #e7e7e7;
	color: #008000;
	cursor: pointer;
	font-size: 24px;
	font-weight: 700;
	line-height: 24px;
	user-select: none;
}

.omp-faq-title > span:first-child {
	display: block;
	font-size: 18px;
	line-height: 24px;
}

.omp-faq-title:focus-visible {
	outline: 2px solid #008000;
	outline-offset: -2px;
}

.omp-faq-icon {
	position: absolute;
	top: 15px;
	right: 10px;
	display: block;
	width: 24px;
	height: 28px;
	line-height: 0;
	color: #008000;
}

.omp-faq-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.omp-faq-icon .icon-open {
	display: none;
}

.omp-faq-item.is-open .omp-faq-icon .icon-closed {
	display: none;
}

.omp-faq-item.is-open .omp-faq-icon .icon-open {
	display: inline-flex;
}

.omp-faq-content {
	display: none;
	padding: 0 30px 21px;
	color: #000;
	font-size: 16px;
	line-height: 1.6;
}

.omp-faq-content p {
	margin: 0;
}

.omp-faq-item.is-open .omp-faq-content {
	display: block;
}

.omp-faq-all {
	margin-bottom: 20px;
}

.omp-btn-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 5px 28px;
	box-sizing: border-box;
	border: 2px solid #e9e9e9;
	border-radius: 5px;
	color: #008000;
	font-size: 14px;
	font-weight: 400;
	line-height: normal;
	text-align: center;
	text-transform: capitalize;
	transition: border-color 0.3s ease, background-color 0.3s ease;
}

.omp-btn-all:hover {
	border-color: #008000;
	background: rgba( 0, 128, 0, 0.03 );
}

/* ---------------------------------------------------- shop-by-category --- */
.omp-categories {
	margin-top: 60px;
}

.omp-cat-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 15px;
}

.omp-cat-title {
	margin: 0;
	color: #008000;
	font-family: 'Cinzel Decorative', serif;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.4;
}

.omp-cat-head .omp-btn-all {
	width: auto;
	min-height: 0;
	padding: 10px 24px;
	white-space: nowrap;
}

.omp-cat-subtitle {
	margin: 0 0 30px;
	color: #666;
	font-size: 16px;
	line-height: 1.6;
}

.omp-cat-grid {
	display: grid;
	grid-template-columns: repeat( 6, 1fr );
	gap: 20px;
}

.omp-cat-card {
	display: block;
	border: 1px solid #f0f0f0;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.04 );
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.omp-cat-card:hover {
	box-shadow: 0 8px 24px rgba( 0, 128, 0, 0.12 );
	transform: translateY( -3px );
}

.omp-cat-cover {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 640 / 420;
	background: #f4f4f4;
}

.omp-cat-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.omp-cat-season {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba( 0, 128, 0, 0.9 );
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.omp-cat-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
}

.omp-cat-name {
	color: #222;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.omp-cat-count {
	color: #999;
	font-size: 13px;
	line-height: 1.3;
	white-space: nowrap;
}

/* ------------------------------------------------------ simple pages --- */
.omp-page-head {
	max-width: 850px;
	margin: 40px auto 30px;
	text-align: center;
}

.omp-page-head h1 {
	margin: 0 0 12px;
	color: #008000;
	font-family: 'Cinzel Decorative', serif;
	font-size: 34px;
	font-weight: 600;
	line-height: 1.3;
}

.omp-page-desc {
	color: #555;
	font-size: 16px;
	line-height: 1.7;
}

/* ---------------------------------------------------------- responsive --- */
@media ( max-width: 1024px ) {
	.omp-var-spacer {
		display: none;
	}

	.omp-variety-container {
		grid-template-columns: 1fr;
		max-width: 100%;
		padding: 40px 15px;
	}

	.omp-var-col-left,
	.omp-var-col-right {
		grid-column: 1;
		grid-row: auto;
	}

	.omp-variety.has-shape .omp-var-copy {
		margin-top: 0;
	}

	.omp-var-giant-title {
		display: none;
	}

	.omp-variety {
		min-height: 0;
	}

	.omp-variety.has-shape {
		min-height: 0;
		margin-top: 0;
	}

	.omp-faq-leaf,
	.omp-faq-cols {
		width: auto;
		max-width: 100%;
		margin-left: 15px;
		margin-right: 15px;
	}

	.omp-faq-col {
		padding: 10px 0;
	}

	.omp-cat-grid {
		grid-template-columns: repeat( 3, 1fr );
	}
}

@media ( max-width: 767px ) {
	.omp-hero,
	.omp-hero-content-wrapper {
		min-height: 520px;
	}

	.omp-hero-content-wrapper {
		padding: 40px 20px;
	}

	.omp-hero-title {
		font-size: 34px;
		line-height: 40px;
	}

	.omp-hero-desc {
		font-size: 16px;
		line-height: 26px;
	}

	.omp-hero-buttons {
		flex-wrap: wrap;
	}

	.omp-auth-title {
		font-size: 24px;
	}

	.omp-auth-text {
		font-size: 15px;
		line-height: 26px;
	}

	.omp-trust-grid {
		grid-template-columns: 1fr;
	}

	.omp-preorder-title {
		font-size: 26px;
	}

	.omp-preorder .wd-products {
		grid-template-columns: repeat( 2, 1fr );
		gap: 10px;
	}

	.omp-farm-to-table {
		padding: 30px 15px;
	}

	.omp-faq-head {
		min-height: 240px;
	}

	.omp-faq-cols {
		grid-template-columns: 1fr;
	}

	.omp-faq-title {
		font-size: 18px;
		line-height: 22px;
	}

	.omp-faq-content {
		padding: 0 10px 21px;
	}

	.omp-cat-grid {
		grid-template-columns: repeat( 2, 1fr );
		gap: 12px;
	}

	.omp-cat-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.omp-cat-title {
		font-size: 24px;
	}
}
