/* Eatmeister Ordering – menu
 * Kleuren/maten overschrijfbaar per subsite via Elementor > Site-instellingen > Custom CSS, bijv.:
 * :root { --emo-accent: #208418; --emo-accent-hover: #EC9316; --emo-nav-bg: #fff; }
 * (geldt voor menu én popup)
 */
:root {
	--emo-accent: #208418;
	--emo-accent-hover: #EC9316;
	--emo-accent-text: #fff;
	--emo-nav-bg: #fff;
	--emo-chip-bg: #f2f2f2;
	--emo-chip-text: #222;
	--emo-card-bg: #fff;
	--emo-radius: 12px;
}

/* ---------- Categoriebalk ---------- */
.emo-catnav {
	position: sticky;
	top: var(--emo-offset-d, 0px);
	z-index: 90;
	display: flex;
	align-items: center;
	background: var(--emo-nav-bg);
	margin-bottom: 24px;
	transition: box-shadow .2s;
}
@media (max-width: 767px) {
	.emo-catnav { top: var(--emo-offset-m, var(--emo-offset-d, 0px)); }
}
.emo-catnav.is-stuck { box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }

.emo-catnav__track {
	position: relative;
	flex: 1;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 10px 4px;
}
.emo-catnav__track::-webkit-scrollbar { display: none; }

/* Fade-randen om aan te geven dat er meer is */
.emo-catnav.has-next .emo-catnav__track { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
.emo-catnav.has-prev .emo-catnav__track { -webkit-mask-image: linear-gradient(to left, #000 85%, transparent); mask-image: linear-gradient(to left, #000 85%, transparent); }
.emo-catnav.has-prev.has-next .emo-catnav__track { -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }

.emo-catnav__link {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--emo-chip-bg);
	color: var(--emo-chip-text);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.emo-catnav__link:hover,
.emo-catnav__link:focus-visible { background: #e4e4e4; color: var(--emo-chip-text); }
.emo-catnav__link.is-active { background: var(--emo-accent); color: var(--emo-accent-text); }

.emo-catnav__arrow {
	display: none;
	flex: 0 0 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--emo-chip-bg);
	color: var(--emo-chip-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
@media (hover: hover) and (min-width: 768px) {
	.emo-catnav__arrow { display: flex; }
	.emo-catnav.has-prev .emo-catnav__arrow--prev,
	.emo-catnav.has-next .emo-catnav__arrow--next { opacity: 1; pointer-events: auto; }
}

/* ---------- Secties ---------- */
.emo-cat {
	/* Fallback zonder JS: anker landt onder header + balk */
	scroll-margin-top: calc(var(--emo-offset-d, 0px) + 72px);
	margin-bottom: 40px;
}
.emo-cat__title { margin: 0 0 6px; }
.emo-cat__desc { margin-bottom: 16px; opacity: .8; }
.emo-cat__desc p { margin: 0; }

/* Categoriebanner (afbeelding uit Producten > Categorieën) */
.emo-cat__hero {
	position: relative;
	height: var(--emo-hero-h, 140px);
	margin-bottom: 16px;
	border-radius: var(--emo-hero-radius, 16px);
	overflow: hidden;
	background: #eee;
	isolation: isolate;
}
.emo-cat__hero + .emo-cat__desc { margin-top: -4px; }
.emo-cat__hero-img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 0 !important;
	transition: transform .6s ease;
}
.emo-cat__hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 75%);
	z-index: 1;
	pointer-events: none;
}
.emo-cat__hero--notitle::after { display: none; }
.emo-cat__hero-text {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 14px;
	z-index: 2;
}
.emo-cat__hero .emo-cat__title {
	margin: 0;
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
@media (hover: hover) {
	.emo-cat__hero:hover .emo-cat__hero-img { transform: scale(1.03); }
}
@media (max-width: 767px) {
	.emo-cat__hero { height: var(--emo-hero-h-m, min(var(--emo-hero-h, 140px), 100px)); border-radius: 12px; }
	.emo-cat__hero-text { left: 14px; right: 14px; bottom: 10px; }
	.emo-cat__hero .emo-cat__title { font-size: 21px; }
}

/* Variant: klein vierkantje naast de titel (cat_images="thumb") */
.emo-cat__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.emo-cat__thumb {
	flex: 0 0 64px;
	width: 64px !important;
	height: 64px !important;
	object-fit: cover;
	border-radius: 14px;
	display: block;
}
.emo-cat__head .emo-cat__title { margin: 0; }
.emo-cat__head .emo-cat__desc { margin: 4px 0 0; }

.emo-grid {
	display: grid;
	grid-template-columns: repeat(var(--emo-cols, 3), minmax(0, 1fr));
	gap: var(--emo-gap, 16px);
}
@media (max-width: 1024px) {
	.emo-grid { grid-template-columns: repeat(var(--emo-cols-t, 2), minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.emo-grid { grid-template-columns: repeat(var(--emo-cols-m, 1), minmax(0, 1fr)); }
}
/* Loop Item-template vult de hele cel */
.emo-loop-item,
.emo-loop-item > .elementor { height: 100%; }

/* Bestelknop ook bruikbaar los in een Loop Item-template */
.emo-soldout { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: #f0f0f0; color: #8a8a8a; font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ---------- Productkaart ---------- */
.emo-card {
	display: flex;
	gap: 12px;
	padding: 14px;
	background: var(--emo-card-bg);
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: var(--emo-radius);
}
.emo-card.is-soldout { opacity: .55; }
.emo-loop-item.is-soldout > * { opacity: .55; filter: grayscale(.7); }
.emo-loop-item.is-soldout { cursor: default; }
.emo-card.is-soldout .emo-card__image, .emo-loop-item.is-soldout img { filter: grayscale(1); }
.emo-card__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.emo-card__title { font-size: 17px; margin: 0 0 4px; }
.emo-card__desc { font-size: 14px; opacity: .75; margin-bottom: 10px; }
.emo-card__desc p { margin: 0; }
.emo-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.emo-card__price { font-weight: 700; }
.emo-card__image { flex: 0 0 96px; }
.emo-card__image img { width: 96px; height: 96px; object-fit: cover; border-radius: calc(var(--emo-radius) - 4px); display: block; }

.emo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--emo-accent);
	color: var(--emo-accent-text) !important;
	font-weight: 700;
	font-size: 18px;
	text-decoration: none;
	line-height: 1;
}
.emo-btn--options { font-size: 14px; }
.emo-btn.loading { opacity: .6; pointer-events: none; }
.emo-btn.added { background: #2e7d32; }
/* WooCommerce zet een "Bekijk winkelwagen"-link achter de knop; die vangen we later op in de sidecart */
.emo-card .added_to_cart { display: none; }

/* Bestellen staat uit: knoppen grijs */
.emo-btn.is-disabled { background: #d9d9d9 !important; color: #fff !important; box-shadow: none !important; cursor: not-allowed; pointer-events: none; }

/* ---------- Zoeken in het menu ---------- */
.emo-search {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	width: 40px;
	height: 40px;
	margin-right: 6px;
	border-radius: 999px;
	background: var(--emo-chip-bg);
	transition: width .3s ease, flex-basis .3s ease, background .2s;
	overflow: hidden;
}
.emo-search__toggle {
	flex: 0 0 40px;
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0; margin: 0;
	border: 0; border-radius: 50%; background: transparent;
	color: var(--emo-chip-text); cursor: pointer;
}
.emo-search__toggle:hover { color: var(--emo-accent); }
.emo-search__input,
.emo-search__clear { display: none; }

.emo-catnav.is-searching .emo-search {
	flex: 1 1 auto;
	width: 100%;
	background: #fff;
	box-shadow: inset 0 0 0 2px var(--emo-accent);
}
.emo-catnav.is-searching .emo-search__toggle { color: var(--emo-accent); cursor: default; }
.emo-catnav.is-searching .emo-search__input {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
	padding: 0 4px;
	margin: 0;
	border: 0 !important;
	outline: none;
	box-shadow: none !important;
	background: transparent;
	font-size: 16px; /* voorkomt inzoomen op iPhone */
	color: #1c1c1c;
}
.emo-catnav.is-searching .emo-search__input::-webkit-search-cancel-button { display: none; }
.emo-catnav.is-searching .emo-search__clear {
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 32px; width: 32px; height: 32px; margin-right: 4px; padding: 0;
	border: 0; border-radius: 50%; background: #f0f0f0; color: #555;
	font-size: 20px; line-height: 1; cursor: pointer;
}
/* Tijdens zoeken de categorieën verbergen */
.emo-catnav.is-searching .emo-catnav__track,
.emo-catnav.is-searching .emo-catnav__arrow { display: none !important; }

.emo-search-empty {
	margin: 0 0 24px;
	padding: 18px;
	border-radius: var(--emo-radius);
	background: #f6f6f6;
	color: #666;
	text-align: center;
	font-size: 15px;
}
.emo-search-empty[hidden] { display: none; }

/* ---------- Plus/min met aantal (producten zonder opties) ---------- */
.emo-qty {
	display: inline-flex;
	align-items: center;
	gap: 0;
	height: 38px;
	border-radius: 999px;
	transition: background .2s, box-shadow .2s;
}
.emo-qty__minus,
.emo-qty__num {
	display: none;
}
.emo-qty.has-qty {
	background: #fff;
	box-shadow: inset 0 0 0 1.5px var(--emo-accent);
	padding-left: 2px;
}
.emo-qty.has-qty .emo-qty__minus {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; padding: 0; margin: 0;
	border: 0; border-radius: 50%; background: transparent;
	color: var(--emo-accent); font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer;
}
.emo-qty.has-qty .emo-qty__minus:hover { background: rgba(32, 132, 24, .1); }
.emo-qty.has-qty .emo-qty__num {
	display: inline-block; min-width: 22px; text-align: center;
	font-weight: 700; font-size: 15px; color: #1c1c1c;
}
.emo-qty .emo-qty__plus { flex: 0 0 auto; }
.emo-qty.is-busy { opacity: .7; }
.emo-qty + .added_to_cart, .emo-qty .added_to_cart { display: none !important; }

/* Aantal in de winkelwagen op de "Kies"-knop */
.emo-btn--options { position: relative; gap: 6px; }
.emo-btn__count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
	background: #fff; color: var(--emo-accent); font-size: 12px; font-weight: 800; line-height: 1;
}
.emo-btn__count[hidden] { display: none; }
/* Met aantal op "Kies": het "+" uit de Loop Item-template weglaten → "Kies 3" i.p.v. "Kies 3 +" */
.emo-btn--options.has-qty::after { display: none !important; }

/* Statiegeld bij de prijs */
.emo-deposit { display: block; margin-top: 2px; font-size: .75em; font-weight: 400; line-height: 1.3; color: #6b6b6b; letter-spacing: 0; }

/* Minimum aantal (bijv. Min/Max Quantities): klein "min. 5" naast het plusje zolang er nog niets in zit */
.emo-qty__min { margin-right: 6px; font-size: 12px; font-weight: 600; color: #6b6b6b; white-space: nowrap; }
.emo-qty.has-qty .emo-qty__min { display: none; }

/* Welkom terug / Bestel opnieuw */
.emo-reorder { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; padding: 14px 44px 14px 16px; border-radius: 16px; background: #f1f9f0; border: 1px solid #cfe8cb; }
.emo-reorder__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--emo-accent, #208418); color: #fff; }
.emo-reorder__text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #3a3a3a; line-height: 1.35; }
.emo-reorder__text strong { font-size: 16px; color: #1c1c1c; }
.emo-reorder__btn { flex: 0 0 auto; padding: 10px 18px !important; border: 0 !important; border-radius: 999px !important; background: var(--emo-accent, #208418) !important; color: #fff !important; font-weight: 700 !important; font-size: 15px !important; cursor: pointer; }
.emo-reorder__btn:hover { background: #186512 !important; }
.emo-reorder__btn:disabled { opacity: .7; cursor: default; }
.emo-reorder__forget { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: -4px 0 0 52px; color: #9a9a9a; font-size: 12.5px; }
.emo-reorder__forget button { padding: 0 !important; border: 0 !important; background: none !important; color: #6b6b6b !important; font-size: 12.5px !important; font-weight: 400 !important; text-decoration: underline; cursor: pointer; }
.emo-reorder__forget button:hover { color: #1c1c1c !important; }
.emo-reorder.is-done { background: #fff8ee; border-color: #f3d7ad; }
@media (max-width: 520px) { .emo-reorder__btn { width: 100%; } .emo-reorder__forget { margin-left: 0; } }
.emo-remember-field label { font-size: 14px; }

.emo-reorder__close { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: transparent !important; color: #6b6b6b !important; cursor: pointer; transition: background .15s, color .15s; }
.emo-reorder__close:hover, .emo-reorder__close:focus-visible { background: rgba(0,0,0,.07) !important; color: #1c1c1c !important; outline: none; }
