/* GreenLife Core - front-end components. Uses theme variables with fallbacks. */

.glc-map-wrap,
.glc-locator,
.glc-quiz,
.glc-verify,
.glc-newsletter-wrap,
.glc-ingredients,
.glc-notice {
	--glc-primary: var(--gl-primary, #068539);
	--glc-primary-dark: var(--gl-primary-dark, #04612a);
	--glc-accent: var(--gl-accent, #f0b116);
	--glc-dark: var(--gl-dark, #10261a);
	--glc-light: var(--gl-light, #f5f8f3);
	--glc-text: var(--gl-text, #23332a);
	--glc-muted: var(--gl-muted, #6b7a70);
	--glc-radius: var(--gl-radius, 14px);
	--glc-shadow: var(--gl-shadow, 0 6px 24px rgba(16, 38, 26, 0.10));
	--glc-font-body: var(--gl-font-body, inherit);
	--glc-font-heading: var(--gl-font-heading, inherit);
	font-family: var(--glc-font-body);
	color: var(--glc-text);
	box-sizing: border-box;
}

.glc-map-wrap *,
.glc-locator *,
.glc-quiz *,
.glc-verify *,
.glc-newsletter-wrap * {
	box-sizing: border-box;
}

/* ---------- shared ---------- */
.glc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.glc-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.glc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	padding: 0.7em 1.3em;
	border: 2px solid var(--gl-primary, #068539);
	border-radius: 999px;
	background: var(--gl-primary, #068539);
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.glc-btn:hover,
.glc-btn:focus-visible {
	background: var(--gl-primary-dark, #04612a);
	border-color: var(--gl-primary-dark, #04612a);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--gl-shadow, 0 6px 24px rgba(16, 38, 26, 0.10));
}
.glc-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}
.glc-btn--ghost {
	background: transparent;
	color: var(--gl-primary, #068539);
}
.glc-btn--ghost:hover,
.glc-btn--ghost:focus-visible {
	background: var(--gl-primary, #068539);
	color: #fff;
}
.glc-btn--whatsapp {
	background: #1da851;
	border-color: #1da851;
}
.glc-btn--whatsapp:hover,
.glc-btn--whatsapp:focus-visible {
	background: #168a42;
	border-color: #168a42;
}
.glc-btn:focus-visible,
.glc-link:focus-visible,
.glc-input:focus-visible,
.glc-quiz__card:focus-visible {
	outline: 3px solid var(--gl-accent, #f0b116);
	outline-offset: 2px;
}

.glc-link {
	color: var(--gl-primary, #068539);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.glc-link--button {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.glc-input {
	width: 100%;
	padding: 0.7em 1em;
	border: 1.5px solid #cfd9d1;
	border-radius: 999px;
	background: #fff;
	color: var(--gl-text, #23332a);
	font: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.glc-input:focus {
	border-color: var(--gl-primary, #068539);
	box-shadow: 0 0 0 3px rgba(6, 133, 57, 0.18);
}

.glc-badge {
	display: inline-block;
	padding: 0.15em 0.7em;
	border-radius: 999px;
	background: var(--gl-light, #f5f8f3);
	color: var(--gl-primary-dark, #04612a);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.glc-badge--pickup {
	background: #fff6dc;
	color: #7a5a00;
}

/* ---------- notices ---------- */
.glc-notice {
	margin: 0 0 1em;
	padding: 0.85em 1.1em;
	border-left: 4px solid var(--gl-accent, #f0b116);
	border-radius: 8px;
	background: #fff8e6;
	color: #5c4500;
}
.glc-notice--warning {
	border-left-color: #c0392b;
	background: #fdecea;
	color: #7b241c;
}

/* ---------- product extras ---------- */
.glc-nafdac-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin: 0 0 0.8em;
	padding: 0.3em 0.9em;
	border-radius: 999px;
	background: var(--gl-light, #f5f8f3);
	color: var(--gl-primary-dark, #04612a);
	font-size: 0.85rem;
	font-weight: 700;
}
.glc-nafdac-badge__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.4em;
	height: 1.4em;
	border-radius: 50%;
	background: var(--gl-primary, #068539);
	color: #fff;
	font-size: 0.75em;
}

.glc-benefits {
	margin: 0 0 1.2em;
	padding: 0;
	list-style: none;
}
.glc-benefits li {
	position: relative;
	margin: 0 0 0.45em;
	padding-left: 1.7em;
}
.glc-benefits li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0.1em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25em;
	height: 1.25em;
	border-radius: 50%;
	background: var(--gl-primary, #068539);
	color: #fff;
	font-size: 0.72em;
	font-weight: 700;
}
.glc-benefits--compact li {
	font-size: 0.9rem;
}

.glc-disclaimer {
	margin: 1em 0;
	padding: 0.8em 1em;
	border-radius: 8px;
	background: var(--gl-light, #f5f8f3);
	color: var(--gl-muted, #6b7a70);
	font-size: 0.8rem;
	line-height: 1.5;
}

.glc-ingredients {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.glc-ingredient-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--gl-radius, 14px);
	background: #fff;
	box-shadow: var(--gl-shadow, 0 6px 24px rgba(16, 38, 26, 0.10));
	transition: transform 0.25s ease;
}
.glc-ingredient-card:hover {
	transform: translateY(-3px);
}
.glc-ingredient-card__img img {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
}
.glc-ingredient-card__body {
	padding: 0.9rem 1rem 1rem;
}
.glc-ingredient-card__body h3 {
	margin: 0 0 0.2em;
	font-size: 1.05rem;
}
.glc-ingredient-card__latin {
	margin: 0 0 0.5em;
	color: var(--gl-muted, #6b7a70);
	font-size: 0.85rem;
}
.glc-ingredient-card__body p {
	margin: 0;
	font-size: 0.9rem;
}

.glc-safety-table {
	width: 100%;
	max-width: 520px;
	margin: 1em 0;
	border-collapse: collapse;
}
.glc-safety-table th,
.glc-safety-table td {
	padding: 0.55em 0.8em;
	border-bottom: 1px solid #e3eae5;
	text-align: left;
}
.glc-expired {
	color: #c0392b;
}
.glc-video iframe,
.glc-video video {
	max-width: 100%;
	border-radius: var(--gl-radius, 14px);
}

/* ---------- maps ---------- */
.glc-map-wrap {
	margin: 1.5rem 0;
}
.glc-map {
	position: relative;
	min-height: var(--glc-map-height, 420px);
	height: var(--glc-map-height, 420px);
	overflow: hidden;
	border-radius: var(--gl-radius, 14px);
	background: #e8efe6;
	box-shadow: var(--gl-shadow, 0 6px 24px rgba(16, 38, 26, 0.10));
	isolation: isolate;
}
.glc-map__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
.glc-map__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}
/* Decorative, static "map" drawn in CSS only (no request to Google before consent). */
.glc-map__pattern {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: #eef3ea;
	background-image:
		radial-gradient(circle at 18% 22%, rgba(6, 133, 57, 0.18) 0 9%, transparent 9.5%),
		radial-gradient(circle at 82% 78%, rgba(6, 133, 57, 0.14) 0 12%, transparent 12.5%),
		radial-gradient(circle at 70% 18%, rgba(240, 177, 22, 0.16) 0 6%, transparent 6.5%),
		linear-gradient(rgba(16, 38, 26, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(16, 38, 26, 0.05) 1px, transparent 1px),
		linear-gradient(rgba(16, 38, 26, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(16, 38, 26, 0.035) 1px, transparent 1px);
	background-size: auto, auto, auto, 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}
.glc-map__road,
.glc-map__river {
	position: absolute;
	display: block;
	pointer-events: none;
}
.glc-map__road {
	background: #fff;
	box-shadow: 0 0 0 1px rgba(16, 38, 26, 0.06);
	border-radius: 999px;
}
.glc-map__road--a {
	left: -10%;
	right: -10%;
	top: 58%;
	height: 14px;
	transform: rotate(-8deg);
}
.glc-map__road--b {
	top: -10%;
	bottom: -10%;
	left: 34%;
	width: 10px;
	transform: rotate(14deg);
}
.glc-map__road--c {
	left: 55%;
	right: -10%;
	top: 26%;
	height: 8px;
	transform: rotate(22deg);
	background: #fbf3dc;
}
.glc-map__river {
	left: -5%;
	right: -5%;
	bottom: 8%;
	height: 22px;
	background: rgba(120, 175, 210, 0.45);
	border-radius: 50%;
	transform: rotate(-3deg);
}
.glc-map__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	max-width: 380px;
	width: 100%;
	padding: 1.4rem 1.5rem 1.2rem;
	text-align: center;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(16, 38, 26, 0.08);
	border-radius: calc(var(--gl-radius, 14px) + 2px);
	box-shadow: 0 18px 40px rgba(16, 38, 26, 0.16);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.glc-map__pin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-top: -2.6rem;
	border-radius: 50%;
	color: #fff;
	background: var(--gl-primary, #068539);
	box-shadow: 0 8px 18px rgba(6, 133, 57, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.9);
	animation: glc-bob 2.4s ease-in-out infinite;
}
.glc-map__title {
	font-family: var(--gl-font-heading, inherit);
	font-size: 1.2rem;
	line-height: 1.3;
	color: var(--gl-dark, #10261a);
}
.glc-map__address,
.glc-map__note {
	color: var(--gl-muted, #6b7a70);
	font-size: 0.9rem;
	line-height: 1.45;
}
.glc-map__note {
	font-size: 0.78rem;
}
.glc-map__load {
	margin-top: 0.35rem;
}
.glc-map__cardlinks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.3rem 1.1rem;
	margin: 0.2rem 0 0;
	font-size: 0.9rem;
}
.glc-map__error {
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	margin: 0;
	padding: 0.8em 1em;
	border-radius: 8px;
	background: #fdecea;
	color: #7b241c;
	font-size: 0.9rem;
	z-index: 2;
}
.glc-map--live .glc-map__placeholder {
	display: none;
}
.glc-map__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.4rem;
	margin: 0.8rem 0 0;
}
.glc-map__links[hidden] {
	display: none;
}
.glc-iw {
	max-width: 240px;
	color: #23332a;
	font-size: 0.9rem;
}
.glc-iw__line {
	margin: 0.2em 0;
}
.glc-iw__link {
	display: inline-block;
	margin-top: 0.4em;
	font-weight: 600;
}

@keyframes glc-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
	.glc-map__pin {
		animation: none;
	}
}

@media (max-width: 480px) {
	.glc-map__card {
		padding: 1.2rem 1rem 1rem;
	}
	.glc-map__title {
		font-size: 1.05rem;
	}
}

/* ---------- store locator ---------- */
.glc-locator {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.2rem;
	margin: 1.5rem 0;
}
.glc-locator__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
}
.glc-locator__filter {
	flex: 1 1 200px;
}
.glc-locator__status {
	min-height: 1.4em;
	margin: 0 0 0.6rem;
	color: var(--gl-muted, #6b7a70);
	font-size: 0.9rem;
}
.glc-locator__list {
	display: grid;
	gap: 0.8rem;
	max-height: 560px;
	margin: 0;
	padding: 0 0.3rem 0 0;
	overflow-y: auto;
	list-style: none;
}
.glc-store {
	padding: 1rem 1.1rem;
	border: 1px solid #e3eae5;
	border-radius: var(--gl-radius, 14px);
	background: #fff;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.glc-store:hover {
	border-color: var(--gl-primary, #068539);
	box-shadow: var(--gl-shadow, 0 6px 24px rgba(16, 38, 26, 0.10));
}
.glc-store[hidden] {
	display: none;
}
.glc-store.is-selected {
	border-color: var(--gl-primary, #068539);
	box-shadow: 0 0 0 2px rgba(6, 133, 57, 0.18);
}
.glc-store__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}
.glc-store__name {
	margin: 0;
	font-family: var(--gl-font-heading, inherit);
	font-size: 1.05rem;
}
.glc-store__line {
	margin: 0.3em 0 0;
	font-size: 0.92rem;
}
.glc-store__hours {
	color: var(--gl-muted, #6b7a70);
}
.glc-store__distance {
	margin: 0.3em 0 0;
	color: var(--gl-primary-dark, #04612a);
	font-size: 0.85rem;
	font-weight: 700;
}
.glc-store__distance:empty {
	display: none;
}
.glc-store__actions {
	display: flex;
	gap: 1.2rem;
	margin: 0.6em 0 0;
}

/* ---------- quiz ---------- */
.glc-quiz {
	margin: 1.5rem 0;
	padding: 1.2rem;
	border-radius: var(--gl-radius, 14px);
	background: var(--gl-light, #f5f8f3);
}
.glc-quiz__progress {
	display: flex;
	gap: 0.5rem;
	margin: 0 0 1.2rem;
	padding: 0;
	list-style: none;
	counter-reset: glc-step;
}
.glc-quiz__progress li {
	flex: 1;
	padding-top: 0.6rem;
	border-top: 4px solid #d9e2db;
	color: var(--gl-muted, #6b7a70);
	font-size: 0.85rem;
	font-weight: 600;
	transition: border-color 0.3s ease, color 0.3s ease;
}
.glc-quiz__progress li.is-active,
.glc-quiz__progress li.is-done {
	border-color: var(--gl-primary, #068539);
	color: var(--gl-primary-dark, #04612a);
}
.glc-quiz__panel {
	animation: glc-fade 0.35s ease;
}
.glc-quiz__panel[hidden] {
	display: none;
}
.glc-quiz__panel h3 {
	margin: 0 0 1rem;
	font-family: var(--gl-font-heading, inherit);
	outline: none;
}
.glc-quiz__cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.8rem;
}
.glc-quiz__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 110px;
	padding: 1rem 0.6rem;
	border: 2px solid transparent;
	border-radius: var(--gl-radius, 14px);
	background: #fff;
	color: var(--gl-text, #23332a);
	font: inherit;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	box-shadow: var(--gl-shadow, 0 6px 24px rgba(16, 38, 26, 0.10));
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.glc-quiz__card:hover {
	border-color: var(--gl-primary, #068539);
	transform: translateY(-3px);
}
.glc-quiz__icon {
	font-size: 2rem;
	line-height: 1;
}
.glc-quiz__card-img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}
.glc-quiz__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
.glc-quiz__summary {
	font-weight: 700;
}
.glc-quiz__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1.2rem 0 0;
}
.glc-quiz__error {
	color: #7b241c;
	font-weight: 600;
}
.glc-product-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--gl-radius, 14px);
	background: #fff;
	box-shadow: var(--gl-shadow, 0 6px 24px rgba(16, 38, 26, 0.10));
}
.glc-product-card__img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}
.glc-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem;
}
.glc-product-card__title {
	margin: 0;
	font-size: 1.05rem;
}
.glc-product-card__price {
	color: var(--gl-primary-dark, #04612a);
	font-weight: 700;
}
.glc-product-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto;
}
.glc-product-card__actions .glc-btn {
	padding: 0.5em 1em;
	font-size: 0.9rem;
}

@keyframes glc-fade {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

/* ---------- verify ---------- */
.glc-verify {
	max-width: 620px;
	margin: 1.5rem 0;
	padding: 1.3rem;
	border-radius: var(--gl-radius, 14px);
	background: var(--gl-light, #f5f8f3);
}
.glc-verify__form label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
}
.glc-verify__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
.glc-verify__row .glc-input {
	flex: 1 1 200px;
	width: auto;
}
.glc-verify__result {
	margin-top: 1rem;
}
.glc-verify__msg {
	margin: 0;
	font-weight: 600;
}
.glc-verify__msg--error {
	color: #7b241c;
}
.glc-verify__card {
	padding: 1rem 1.1rem;
	border-left: 6px solid var(--gl-primary, #068539);
	border-radius: 10px;
	background: #fff;
	animation: glc-fade 0.35s ease;
}
.glc-verify__card--warn {
	border-left-color: var(--gl-accent, #f0b116);
}
.glc-verify__status {
	margin: 0 0 0.6rem;
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--gl-primary-dark, #04612a);
}
.glc-verify__card--warn .glc-verify__status {
	color: #8a5d00;
}
.glc-verify__img {
	float: right;
	width: 84px;
	height: 84px;
	margin: 0 0 0.5rem 0.8rem;
	border-radius: 10px;
	object-fit: cover;
}
.glc-verify__name {
	margin: 0 0 0.4rem;
}
.glc-verify__facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.2rem 0.9rem;
	margin: 0 0 0.8rem;
}
.glc-verify__facts dt {
	color: var(--gl-muted, #6b7a70);
}
.glc-verify__facts dd {
	margin: 0;
	font-weight: 600;
}

/* ---------- newsletter ---------- */
.glc-newsletter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	max-width: 520px;
}
.glc-newsletter .glc-input {
	flex: 1 1 220px;
	width: auto;
}
.glc-newsletter__msg {
	flex-basis: 100%;
	min-height: 1.3em;
	margin: 0;
	font-size: 0.9rem;
}
.glc-newsletter__msg--ok {
	color: var(--gl-primary-dark, #04612a);
	font-weight: 600;
}
.glc-newsletter__msg--error {
	color: #b03a2e;
}

/* ---------- checkout autocomplete ---------- */
.glc-places {
	margin: 0 0 1em;
}
.glc-places__label {
	display: block;
	margin-bottom: 0.3em;
	font-size: 0.85rem;
	font-weight: 600;
}
.glc-places gmp-place-autocomplete {
	display: block;
	width: 100%;
}

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
	.glc-quiz__cards {
		grid-template-columns: repeat(3, 1fr);
	}
	.glc-quiz__cards--budget {
		grid-template-columns: repeat(2, 1fr);
	}
	.glc-quiz__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.glc-locator {
		grid-template-columns: minmax(280px, 380px) 1fr;
		align-items: start;
	}
	.glc-quiz {
		padding: 1.8rem;
	}
	.glc-quiz__cards {
		grid-template-columns: repeat(4, 1fr);
	}
	.glc-quiz__cards--budget {
		grid-template-columns: repeat(4, 1fr);
	}
	.glc-quiz__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.glc-btn,
	.glc-input,
	.glc-store,
	.glc-quiz__card,
	.glc-ingredient-card,
	.glc-quiz__progress li {
		transition: none;
	}
	.glc-quiz__panel,
	.glc-verify__card,
	.glc-map__pin {
		animation: none;
	}
	.glc-btn:hover,
	.glc-quiz__card:hover,
	.glc-ingredient-card:hover {
		transform: none;
	}
}
