/* ==========================================================================
   Hale by Pencilino — Menu & Shop
   --------------------------------------------------------------------------
   Page hero, sticky category tabs, the search and filter toolbar, the filter
   sheet, category groups and the no-results state. Product cards themselves
   come from components.css so the whole site shares one card design.
   ========================================================================== */

/* ---------- Page hero ---------- */
.hale-menu-hero { padding: 60px 0 40px; text-align: center; }

.hale-menu-hero__title {
	font-family: var(--hale-display);
	font-size: clamp(2.8rem, 6vw, 4.8rem);
	color: var(--hale-forest);
	margin: 16px 0 12px;
	line-height: 1.05;
}

.hale-menu-hero__lead {
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	color: var(--hale-body);
	max-width: 740px;
	margin: 0 auto 24px;
	line-height: 1.6;
}

.hale-menu-hero__lead p { margin: 0; }

.hale-menu-meta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: var(--hale-warm-white);
	border: 1px solid var(--hale-line);
	padding: 10px 24px;
	border-radius: var(--hale-radius-pill);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--hale-forest);
	box-shadow: var(--hale-shadow-soft);
	max-width: 100%;
}

.hale-menu-meta__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--hale-whatsapp);
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.hale-menu-meta {
		font-size: 12px;
		padding: 8px 16px;
		line-height: 1.35;
		text-align: left;
		border-radius: 20px;
	}
}

/* ---------- Sticky category tabs ---------- */
.hale-cat-bar {
	position: sticky;
	top: calc(88px + var(--hale-adminbar, 0px));
	z-index: 900;
	background: rgba(250, 247, 240, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-top: 1px solid var(--hale-line);
	border-bottom: 1px solid var(--hale-line);
	padding: 14px 0;
}

.hale-cat-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding: 2px 4px;
}

.hale-cat-tabs::-webkit-scrollbar { display: none; }

.hale-tab-pill {
	font-family: var(--hale-cond);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 9px 18px;
	border-radius: var(--hale-radius-pill);
	background: var(--hale-warm-white);
	color: var(--hale-forest);
	border: 1px solid var(--hale-line);
	white-space: nowrap;
	transition: all 0.2s ease;
}

.hale-tab-pill:hover { background: rgba(13, 40, 24, 0.08); }

.hale-tab-pill.is-active {
	background: var(--hale-forest);
	color: var(--hale-lime);
	border-color: var(--hale-forest);
}

.hale-tab-pill.is-active .hale-tab-count { background: rgba(212, 233, 95, 0.22); color: var(--hale-lime); }

.hale-tab-count {
	font-size: 11px;
	font-weight: 800;
	background: rgba(13, 40, 24, 0.08);
	color: var(--hale-body-light);
	border-radius: var(--hale-radius-pill);
	padding: 1px 7px;
	margin-left: 7px;
	letter-spacing: 0;
}

/* ---------- Toolbar ---------- */
.hale-toolbar {
	margin: 28px auto 20px;
	max-width: 960px;
	width: 100%;
}

.hale-toolbar__main {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	width: 100%;
}

.hale-search-box { position: relative; flex: 1 1 auto; min-width: 240px; }

.hale-search-box__icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 17px;
	height: 17px;
	color: var(--hale-body-light);
	pointer-events: none;
}

.hale-search-box input {
	width: 100%;
	background: var(--hale-warm-white);
	border: 1.5px solid var(--hale-line);
	border-radius: var(--hale-radius-pill);
	padding: 11px 40px 11px 44px;
	font-size: 14px;
	font-family: var(--hale-sans);
	color: var(--hale-forest);
	transition: all 0.2s ease;
	outline: none;
	box-shadow: 0 2px 10px rgba(13, 40, 24, 0.03);
}

.hale-search-box input:focus {
	border-color: var(--hale-forest);
	box-shadow: 0 4px 18px rgba(13, 40, 24, 0.08);
}

.hale-search-box__clear {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(13, 40, 24, 0.1);
	color: var(--hale-forest);
	font-size: 11px;
	display: none;
	align-items: center;
	justify-content: center;
}

.hale-search-box__clear.is-visible { display: flex; }

.hale-filter-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--hale-forest);
	color: #fff;
	padding: 10px 18px;
	border-radius: var(--hale-radius-pill);
	font-size: 13.5px;
	font-weight: 700;
	transition: all 0.2s ease;
	white-space: nowrap;
	border: 1px solid var(--hale-forest);
}

.hale-filter-trigger:hover { background: var(--hale-leaf); border-color: var(--hale-leaf); }

.hale-filter-trigger svg { width: 16px; height: 16px; color: var(--hale-lime); }

.hale-filter-count {
	background: var(--hale-lime);
	color: var(--hale-forest);
	border-radius: var(--hale-radius-pill);
	padding: 2px 7px;
	font-size: 11px;
	font-weight: 800;
	margin-left: 2px;
}

@media (max-width: 600px) {
	.hale-toolbar__main { flex-wrap: nowrap; gap: 8px; }
	.hale-search-box { min-width: 0; flex: 1 1 auto; }
	.hale-search-box input { font-size: 13px; padding: 10px 32px 10px 36px; }
	.hale-search-box__icon { left: 12px; width: 15px; height: 15px; }
	.hale-filter-trigger { padding: 10px 14px; font-size: 12.5px; gap: 5px; flex-shrink: 0; }
}

/* ---------- Quick diet chips ---------- */
.hale-quick-filters {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding: 2px 4px 6px;
	justify-content: center;
	flex-wrap: wrap;
}

.hale-quick-filters::-webkit-scrollbar { display: none; }

@media (max-width: 860px) {
	.hale-quick-filters { flex-wrap: nowrap; justify-content: flex-start; }
}

.hale-quick-chip {
	font-family: var(--hale-sans);
	font-size: 12.5px;
	font-weight: 600;
	padding: 7px 15px;
	border-radius: var(--hale-radius-pill);
	background: var(--hale-warm-white);
	color: var(--hale-body);
	border: 1px solid var(--hale-line);
	white-space: nowrap;
	transition: all 0.18s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hale-quick-chip:hover {
	background: rgba(13, 40, 24, 0.04);
	border-color: rgba(13, 40, 24, 0.2);
}

.hale-quick-chip.is-active {
	background: var(--hale-forest);
	color: var(--hale-lime);
	border-color: var(--hale-forest);
	font-weight: 700;
}

.hale-quick-chip__count {
	font-size: 11px;
	font-weight: 800;
	background: var(--hale-lime);
	color: var(--hale-forest);
	border-radius: var(--hale-radius-pill);
	padding: 1px 7px;
}

.hale-quick-chip.is-active .hale-quick-chip__count { background: rgba(212, 233, 95, 0.9); }

/* ---------- Active filter summary ---------- */
.hale-active-filters {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding: 10px 16px;
	background: rgba(212, 233, 95, 0.12);
	border: 1px solid rgba(212, 233, 95, 0.35);
	border-radius: var(--hale-radius-pill);
	margin: 14px auto 20px;
	font-size: 13px;
	max-width: 960px;
	width: 100%;
}

.hale-active-filters[hidden] { display: none; }

.hale-active-filters__chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.hale-dismiss-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--hale-warm-white);
	border: 1px solid var(--hale-line);
	padding: 4px 10px;
	border-radius: var(--hale-radius-pill);
	font-size: 12px;
	font-weight: 700;
	color: var(--hale-forest);
	transition: background 0.2s ease;
}

.hale-dismiss-chip:hover { background: #fdecec; border-color: #f5b5b5; color: #b00020; }

.hale-clear-all {
	color: var(--hale-citrus);
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: underline;
	background: none;
	border: none;
}

/* ---------- Catalogue ---------- */
.hale-catalogue { padding-top: 20px; }

.hale-cat-group { padding: 50px 0 30px; scroll-margin-top: 172px; }

.hale-cat-group__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 24px;
	border-bottom: 2px solid var(--hale-line);
	padding-bottom: 12px;
	flex-wrap: wrap;
	gap: 12px;
}

.hale-cat-group__header h2 {
	font-family: var(--hale-display);
	font-size: clamp(1.8rem, 3.5vw, 2.5rem);
	color: var(--hale-forest);
	font-weight: 400;
}

.hale-cat-group__sub {
	font-size: 0.95rem;
	color: var(--hale-body-light);
	font-weight: 600;
}

.hale-cat-group__sub p { margin: 0; }

.hale-cat-group__name { min-width: 0; }

/* ---------- No results ---------- */
.hale-no-results {
	text-align: center;
	padding: 60px 20px;
	background: var(--hale-warm-white);
	border: 1px solid var(--hale-line);
	border-radius: var(--hale-radius-lg);
	margin: 30px 0;
}

.hale-no-results[hidden] { display: none; }

.hale-no-results svg { width: 48px; height: 48px; color: var(--hale-body-light); margin: 0 auto 16px; display: block; }

.hale-no-results h3 {
	font-family: var(--hale-display);
	font-size: 1.8rem;
	color: var(--hale-forest);
	margin-bottom: 8px;
}

.hale-no-results p {
	color: var(--hale-body);
	font-size: 14px;
	max-width: 440px;
	margin: 0 auto 20px;
}

/* A hidden card is removed from the grid entirely. */
.hale-prod-card.is-filtered-out { display: none; }

.hale-cat-group.is-filtered-out { display: none; }

/* ---------- Filter sheet ---------- */
.hale-filter-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(13, 40, 24, 0.6);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 3000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.hale-filter-backdrop.is-open { opacity: 1; pointer-events: auto; }

.hale-filter-modal {
	position: fixed;
	z-index: 3100;
	background: var(--hale-cream);
	border-radius: 28px;
	box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s var(--hale-ease), opacity 0.25s ease;
}

@media (min-width: 601px) {
	.hale-filter-modal {
		top: 50%;
		left: 50%;
		transform: translate(-50%, -46%) scale(0.96);
		width: min(520px, 92vw);
		max-height: 85vh;
		opacity: 0;
		pointer-events: none;
	}

	.hale-filter-modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 600px) {
	.hale-filter-modal {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-height: 88vh;
		border-radius: 24px 24px 0 0;
		transform: translateY(100%);
	}

	.hale-filter-modal.is-open { transform: translateY(0); }
}

.hale-filter-modal__header {
	padding: 20px 24px 16px;
	border-bottom: 1px solid var(--hale-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--hale-warm-white);
}

.hale-filter-modal__header h3 {
	font-family: var(--hale-display);
	font-size: 1.4rem;
	color: var(--hale-forest);
}

.hale-filter-modal__close {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(13, 40, 24, 0.08);
	color: var(--hale-forest);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 800;
}

.hale-filter-modal__body {
	padding: 20px 24px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.hale-filter-group__title {
	font-family: var(--hale-cond);
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hale-forest);
	margin-bottom: 10px;
	display: block;
}

.hale-filter-options { display: flex; flex-wrap: wrap; gap: 8px; }

.hale-filter-group + .hale-filter-group { margin-top: 22px; }

.hale-filter-opt {
	font-size: 13px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: var(--hale-radius-pill);
	background: var(--hale-warm-white);
	border: 1px solid var(--hale-line);
	color: var(--hale-forest);
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hale-filter-opt:hover { background: rgba(13, 40, 24, 0.05); }

.hale-filter-opt.is-selected {
	background: var(--hale-forest);
	color: var(--hale-lime);
	border-color: var(--hale-forest);
	font-weight: 700;
}

.hale-filter-modal__footer {
	padding: 16px 24px;
	border-top: 1px solid var(--hale-line);
	display: flex;
	gap: 12px;
	background: var(--hale-warm-white);
}

.hale-btn-modal-reset {
	flex: 1;
	padding: 12px;
	border-radius: var(--hale-radius-pill);
	border: 1px solid var(--hale-line);
	background: var(--hale-paper);
	color: var(--hale-forest);
	font-weight: 700;
	font-size: 14px;
}

.hale-btn-modal-apply {
	flex: 2;
	padding: 12px;
	border-radius: var(--hale-radius-pill);
	background: var(--hale-citrus-bright);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

/* The filter sheet locks the page behind it. */
body.hale-sheet-open { overflow: hidden; }
