/* ==========================================================================
   Yakulaas — home.css  (homepage only)
   Sections: hero · trust · categories · best sellers · discover · story · reviews
   The hero, trust badges and discovery tiles keep their own module stylesheets.
   ========================================================================== */

.yk-main--home { padding: 0; }

/* The hero module breaks out to 100vw with a negative margin, built for a narrower container.
   It already sits edge to edge here, and that trick would add a sideways scrollbar. */
.yk-main--home .bt-hero { width: 100%; max-width: 100%; margin: 0; }

/* ---------- Trust strip: the module's colours come from CSS variables, so retint them to the brand green */
.yk-home-trust {
	--bt-trust-bg: var(--yk-brand-dark);
	--bt-trust-card-bg: var(--yk-brand-tint);
	--bt-trust-icon: var(--yk-brand);
	--bt-trust-label: var(--yk-ink);
	--bt-trust-sub: var(--yk-body); /* the module's own grey is just under the contrast minimum on this tint */
}

/* ---------- Section frame ------------------------------------------------- */
.yk-home-section { padding-block: var(--yk-space-2xl); }
@media (min-width: 768px) { .yk-home-section { padding-block: var(--yk-space-3xl); } }
.yk-home-section--module { padding-block: 0; }

.yk-home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--yk-space-sm) var(--yk-space-md); margin-bottom: var(--yk-space-lg); }
.yk-home-head h2 { margin: 0; font-size: var(--wp--preset--font-size--2xl, 2rem); }

.yk-home-link {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding-bottom: .25rem;
	color: var(--yk-brand);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.yk-home-link .yk-icon { width: 1.1rem; height: 1.1rem; transition: transform .2s ease; }
.yk-home-link:hover { color: var(--yk-brand-hover); }
.yk-home-link:hover .yk-icon { transform: translateX(3px); }

/* ---------- Shop by category ---------------------------------------------- */
/* Compact band: small round tiles sized for the cut-out bowl photos, centred in a row.
   If they don't fit (phones) the row swipes. */
.yk-home-section--cats { padding-block: var(--yk-space-lg); }
@media (min-width: 768px) { .yk-home-section--cats { padding-block: var(--yk-space-xl); } }
.yk-home-section--cats .yk-home-head { margin-bottom: var(--yk-space-md); }
.yk-home-section--cats + .yk-home-section { padding-top: var(--yk-space-lg); }
@media (min-width: 768px) { .yk-home-section--cats + .yk-home-section { padding-top: var(--yk-space-xl); } }

.yk-cats {
	--yk-cat-size: 5.5rem;
	display: flex;
	justify-content: flex-start;
	justify-content: safe center;
	gap: var(--yk-space-md);
	margin: 0 calc(-1 * var(--yk-gutter));
	padding: 0 var(--yk-gutter) .25rem;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x proximity;
	scroll-padding-inline: var(--yk-gutter);
	scrollbar-width: none;
}
.yk-cats::-webkit-scrollbar { display: none; }
.yk-cats > li { flex: none; width: calc(var(--yk-cat-size) + 1.5rem); margin: 0; scroll-snap-align: start; }

@media (min-width: 768px) {
	.yk-cats { --yk-cat-size: 10rem; flex-wrap: wrap; gap: var(--yk-space-lg) var(--yk-space-xl); margin: 0; padding: 0; overflow: visible; }
	.yk-cats > li { width: calc(var(--yk-cat-size) + 2rem); }
}
@media (min-width: 1100px) { .yk-cats { --yk-cat-size: 12rem; } }

.yk-cat { display: block; color: var(--yk-ink); text-decoration: none; }
.yk-cat__media {
	display: grid;
	place-items: center;
	width: var(--yk-cat-size);
	height: var(--yk-cat-size);
	margin-inline: auto;
	overflow: hidden;
	border: 1px solid rgba(5, 91, 73, .14);
	border-radius: 50%;
	background: var(--yk-brand-tint);
	transition: border-color .2s ease, box-shadow .2s ease;
}
/* cut-out photos: show the whole bowl, never crop it */
.yk-cat__img { width: auto; height: auto; max-width: 80%; max-height: 80%; object-fit: contain; transition: transform .4s ease; }
.yk-cat__ph { text-transform: uppercase; display: grid; place-items: center; width: 100%; height: 100%; color: var(--yk-brand); font-size: 2rem; font-weight: 700; }
.yk-cat__name { display: block; margin-top: .65rem; font-size: 1rem; font-weight: 600; line-height: 1.3; text-align: center; }
.yk-cat:hover .yk-cat__name { color: var(--yk-brand); }
.yk-cat:hover .yk-cat__media { border-color: var(--yk-brand); box-shadow: 0 4px 14px rgba(5, 91, 73, .15); }
@media (hover: hover) { .yk-cat:hover .yk-cat__img { transform: scale(1.06); } }

/* ---------- Best sellers --------------------------------------------------- */
/* phones: 2 rows of 2 · tablets: 6 · desktop: 8 */
.yk-home-section--products .products > li:nth-child(n+5) { display: none; }
@media (min-width: 768px) { .yk-home-section--products .products > li:nth-child(n+5) { display: list-item; } }
@media (min-width: 768px) and (max-width: 1023.98px) { .yk-home-section--products .products > li:nth-child(n+7) { display: none; } }

/* ---------- Brand story ---------------------------------------------------- */
.yk-story { padding-block: 2.5rem; background: var(--yk-brand-tint); }
@media (min-width: 768px) { .yk-story { padding-block: 4rem; } }

.yk-story__inner { display: grid; gap: var(--yk-space-xl); }
@media (min-width: 900px) { .yk-story__inner { grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; } }

.yk-story h2 { margin: 0 0 var(--yk-space-md); font-size: var(--wp--preset--font-size--2xl, 2rem); }
.yk-story__copy p { max-width: 36rem; margin: 0 0 var(--yk-space-lg); color: var(--yk-body); font-size: 1.0625rem; line-height: 1.65; }

.yk-facts { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.yk-fact {
	display: flex;
	align-items: flex-start;
	gap: var(--yk-space-md);
	margin: 0;
	padding: var(--yk-space-md) 1.25rem;
	border: 1px solid rgba(5, 91, 73, .12);
	border-radius: var(--yk-radius-md);
	background: var(--yk-paper);
}
.yk-fact__icon { display: grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--yk-brand-tint); color: var(--yk-brand); }
.yk-fact__body { display: grid; gap: .15rem; }
.yk-fact__body strong { color: var(--yk-ink); }
.yk-fact__body strong a { color: inherit; text-decoration-color: var(--yk-subtle); }
.yk-fact__body > span { color: var(--yk-muted); font-size: .9375rem; line-height: 1.5; }

/* ---------- Reviews --------------------------------------------------------- */
.yk-rating { display: flex; align-items: center; gap: .75rem; margin: 0; padding: .4rem 1.1rem .4rem .4rem; border-radius: var(--yk-radius-pill); background: var(--yk-brand-tint); }
.yk-rating__score { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--yk-brand); color: #fff; font-size: 1.0625rem; font-weight: 700; }
.yk-rating__meta { display: grid; gap: .15rem; line-height: 1.1; }
.yk-rating__count { color: var(--yk-body); font-size: .8125rem; }

.yk-quotes {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(86%, 21rem);
	gap: var(--yk-space-md);
	margin: 0 calc(-1 * var(--yk-gutter));
	padding: .25rem var(--yk-gutter) 1rem;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--yk-gutter);
	scrollbar-width: none;
}
.yk-quotes::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
	.yk-quotes { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--yk-space-lg); margin: 0; padding: 0; overflow: visible; }
}

.yk-quote {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
	padding: 1.75rem;
	border: 1px solid var(--yk-line);
	border-radius: var(--yk-radius-lg);
	background: var(--yk-paper);
	box-shadow: var(--yk-shadow-sm);
	scroll-snap-align: start;
	transition: box-shadow .2s ease, transform .2s ease;
}
@media (hover: hover) { .yk-quote:hover { box-shadow: var(--yk-shadow-md); transform: translateY(-2px); } }
.yk-quote .yk-stars { font-size: 1.15rem; }
.yk-quote__mark { position: absolute; top: 1.25rem; right: 1.25rem; width: 2.5rem; height: 2.5rem; color: var(--yk-brand); opacity: .14; }
.yk-quote__text { display: -webkit-box; margin: 0; overflow: hidden; color: var(--yk-ink); font-size: 1.0625rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.yk-quote__who { display: flex; align-items: center; gap: .75rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--yk-line); }
.yk-quote__avatar { display: grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--yk-brand); color: #fff; font-weight: 700; text-transform: uppercase; }
.yk-quote__name { display: grid; gap: .1rem; line-height: 1.25; }
.yk-quote__name strong { color: var(--yk-ink); }
.yk-quote__badge { display: inline-flex; align-items: center; gap: .25rem; color: var(--yk-brand); font-size: .8125rem; font-weight: 600; }
.yk-quote__badge .yk-icon { width: .95rem; height: .95rem; }
.yk-quote__product { display: flex; align-items: center; gap: .65rem; padding: .5rem .75rem; border-radius: var(--yk-radius-md); background: var(--yk-surface); color: var(--yk-body); font-size: .8125rem; line-height: 1.3; text-decoration: none; }
.yk-quote__product img { flex: none; width: 2.25rem; height: 2.25rem; border-radius: var(--yk-radius-sm); object-fit: cover; }
.yk-quote__product:hover { color: var(--yk-brand); }

/* ---------- Offers and rewards ----------------------------------------------- */
.yk-home-section--tight { padding-block: var(--yk-space-xl); }
@media (min-width: 768px) { .yk-home-section--tight { padding-block: var(--yk-space-2xl); } }

.yk-offers {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(84%, 19rem);
	gap: var(--yk-space-md);
	margin: 0 calc(-1 * var(--yk-gutter));
	padding: 0 var(--yk-gutter) .5rem;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--yk-gutter);
	scrollbar-width: none;
}
.yk-offers::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
	.yk-offers { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 0; padding: 0; overflow: visible; }
}

/* Each tile is a solid brand colour. The variables below are set per tile position (see :nth-child). */
.yk-offer {
	--o-bg: var(--yk-brand); --o-fg: #fff; --o-text: rgba(255, 255, 255, .92);
	--o-iconbg: rgba(255, 255, 255, .16); --o-icon: #fff; --o-link: #fff;
	--o-line: rgba(255, 255, 255, .75); --o-chip: rgba(255, 255, 255, .12);
	--o-act-bg: #fff; --o-act-fg: var(--yk-brand-dark);

	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .5rem;
	margin: 0;
	padding: var(--yk-space-lg);
	overflow: hidden;
	border-radius: var(--yk-radius-lg);
	background: var(--o-bg);
	color: var(--o-fg);
	scroll-snap-align: start;
}
.yk-offer::after { content: ""; position: absolute; top: -3.5rem; right: -3.5rem; width: 11rem; height: 11rem; border-radius: 50%; background: currentColor; opacity: .07; pointer-events: none; }
.yk-offer > * { position: relative; z-index: 1; }

.yk-offer:nth-child(4n + 2) {
	--o-bg: var(--yk-cream); --o-fg: var(--yk-ink); --o-text: var(--yk-body);
	--o-iconbg: #fff; --o-icon: var(--yk-brand); --o-link: var(--yk-brand);
	--o-line: var(--yk-brand); --o-chip: #fff; --o-act-bg: var(--yk-brand); --o-act-fg: #fff;
}
.yk-offer:nth-child(4n + 3) { --o-bg: var(--yk-brand-dark); }
.yk-offer:nth-child(4n + 4) {
	--o-bg: var(--yk-brand-tint); --o-fg: var(--yk-brand-dark); --o-text: var(--yk-body);
	--o-iconbg: #fff; --o-icon: var(--yk-brand); --o-link: var(--yk-brand);
	--o-line: var(--yk-brand); --o-chip: #fff; --o-act-bg: var(--yk-brand); --o-act-fg: #fff;
}

.yk-offer__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: .25rem; border-radius: 50%; background: var(--o-iconbg); color: var(--o-icon); }
.yk-offer__title { margin: 0; color: var(--o-fg); font-size: 1.25rem; line-height: 1.25; }
.yk-offer__text { margin: 0; color: var(--o-text); font-size: .9375rem; line-height: 1.55; }
.yk-offer__link { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: var(--yk-space-sm); color: var(--o-link); font-weight: 600; text-decoration: none; }
.yk-offer__link .yk-icon { width: 1.1rem; height: 1.1rem; transition: transform .2s ease; }
.yk-offer__link:hover { color: var(--o-link); text-decoration: underline; text-underline-offset: .25em; }
.yk-offer__link:hover .yk-icon { transform: translateX(3px); }

/* coupon tile: a dashed, tappable code */
.yk-offer__code {
	display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; margin-top: .35rem;
	padding: .35rem .5rem .35rem 1rem; border: 1.5px dashed var(--o-line); border-radius: var(--yk-radius-md);
	background: var(--o-chip); color: var(--o-fg); font-weight: 700; letter-spacing: .06em; text-decoration: none; cursor: pointer;
}
.yk-offer__code:hover { border-style: solid; color: var(--o-fg); }
.yk-offer__code-action { padding: .3rem .7rem; border-radius: var(--yk-radius-sm); background: var(--o-act-bg); color: var(--o-act-fg); font-size: .8125rem; font-weight: 600; letter-spacing: 0; }
.yk-offer__until { margin: 0; color: var(--o-text); font-size: .8125rem; }

/* ---------- Also listed on ---------------------------------------------------- */
.yk-listed {
	display: grid; gap: var(--yk-space-md); justify-items: center;
	padding: var(--yk-space-xl) var(--yk-space-md);
	border: 1px solid rgba(5, 91, 73, .14); border-radius: var(--yk-radius-lg);
	background: var(--yk-brand-tint); text-align: center;
}
.yk-listed__title { margin: 0; color: var(--yk-brand-dark); font-size: 1.0625rem; font-weight: 700; }
.yk-listed__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.yk-listed__list > li { margin: 0; }
.yk-market {
	display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; padding: .5rem 1.25rem;
	border: 1.5px solid rgba(5, 91, 73, .22); border-radius: var(--yk-radius-pill);
	background: var(--yk-paper); color: var(--yk-ink); font-size: 1.0625rem; font-weight: 700; text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.yk-market:hover { border-color: var(--yk-brand); box-shadow: var(--yk-shadow-sm); transform: translateY(-1px); }
.yk-market__logo { display: block; width: auto; height: 1.75rem; }
.yk-market__go { width: 1rem; height: 1rem; color: var(--yk-brand); transform: rotate(-45deg); }

/* ---------- Delivery check ---------------------------------------------------- */
.yk-pinbar { display: none; }
.js .yk-pinbar {
	display: grid;
	gap: var(--yk-space-md);
	padding: var(--yk-space-lg);
	border: 1px solid var(--yk-line);
	border-radius: var(--yk-radius-lg);
	background: var(--yk-surface);
}
@media (min-width: 768px) { .js .yk-pinbar { grid-template-columns: 1fr minmax(20rem, 28rem); align-items: center; gap: var(--yk-space-sm) 3rem; padding: var(--yk-space-lg) var(--yk-space-xl); } }

.yk-pinbar__text h2 { margin: 0 0 .25rem; font-size: 1.25rem; }
.yk-pinbar__text p { margin: 0; color: var(--yk-muted); font-size: .9375rem; }
.yk-pinbar__form { display: flex; gap: .5rem; }
.yk-pinbar__form input { flex: 1; min-width: 0; }
.yk-pinbar__result { grid-column: 1 / -1; margin: 0; font-size: .9375rem; }
.yk-pinbar__result:empty { display: none; }
.yk-pinbar__result.is-ok { color: var(--yk-brand-dark); }
.yk-pinbar__result.is-error { color: var(--yk-danger); }


