/**
 * Hippo Theme - Interactive Menu Stylesheet
 *
 * Clean, bistro-style typography without individual food photos.
 * Modern, interactive, playful, and responsive.
 *
 * @package HippoStyle
 */

/* ==========================================================================
   1. MENU HERO & SEARCH BAR
   ========================================================================== */
.hippo-menu-page {
	background-color: var(--hippo-cream, #FAF7F2);
	min-height: 100vh;
	padding-bottom: 80px;
}

.hippo-menu-hero {
	background-color: #FAF4E6;
	background-image: url('../images/menu-bg.webp');
	background-size: cover;
	background-position: center bottom;
	background-repeat: no-repeat;
	border-bottom: 2px solid rgba(61, 20, 4, 0.06);
	padding: 42px 0 32px;
	position: relative;
	overflow: hidden;
	min-height: 440px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Side Illustrations */
.hippo-menu-hero-side {
	position: absolute;
	bottom: 0;
	z-index: 1;
	pointer-events: none;
	display: flex;
	align-items: flex-end;
}

.hippo-menu-hero-left {
	left: 0;
	width: clamp(290px, 28vw, 500px);
	transform-origin: bottom left;
}

.hippo-menu-hero-right {
	right: 0;
	width: clamp(290px, 28vw, 500px);
	transform-origin: bottom right;
}

.hippo-menu-hero-img {
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 8px 20px rgba(61, 20, 4, 0.08));
}

/* Comic Text Doodles */
.hippo-hero-doodle {
	position: absolute;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #2e4d08;
	font-family: 'Playpen Sans', 'Caveat', cursive, sans-serif;
	font-weight: 800;
	user-select: none;
	pointer-events: none;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.doodle-left {
	top: -12%;
	left: 8%;
	transform: rotate(-10deg);
	line-height: 1.12;
	font-size: clamp(0.95rem, 1.2vw, 1.3rem);
	letter-spacing: 0.03em;
}

.doodle-left .doodle-heart {
	font-size: 1.35em;
	margin-top: 1px;
	color: #2e4d08;
}

.doodle-right {
	top: -17%;
	right: 14%;
	transform: rotate(-7deg);
	line-height: 1.18;
	font-size: clamp(0.98rem, 1.25vw, 1.35rem);
}

.doodle-right .doodle-heart {
	font-size: 1.4em;
	margin-bottom: 2px;
	color: #2e4d08;
}

/* Center Hero Content */
.hippo-menu-hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	z-index: 2;
	max-width: 720px;
	width: 100%;
	margin: 0 auto;
	padding: 0 16px;
}

/* Badge with Comic Speed Dashes */
.hippo-menu-hero-badge-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.hippo-hero-dashes {
	display: flex;
	align-items: center;
	opacity: 0.9;
}

.hippo-menu-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: #FFFFFF;
	color: #3b6d0d;
	font-family: 'Playpen Sans', 'Geologica', sans-serif;
	font-size: 0.88rem;
	font-weight: 700;
	padding: 5px 18px;
	border-radius: 20px;
	border: 1.5px solid #8ec839;
	box-shadow: 0 4px 14px rgba(61, 20, 4, 0.05);
}

.hippo-menu-hero-badge .badge-icon {
	font-size: 0.95rem;
}

/* Hero Title */
.hippo-menu-hero-title-wrap {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 12px;
}

.hippo-menu-hero-title {
	font-family: 'ACBalooPaaji', cursive, sans-serif;
	font-size: clamp(1.9rem, 3.2vw, 2.9rem);
	font-weight: 900;
	line-height: 1.1;
	color: #3d1404;
	margin: 0;
	letter-spacing: -0.01em;
	text-align: center;
}

.hippo-menu-hero-title .title-line-1 {
	display: block;
	white-space: nowrap;
}

.hippo-menu-hero-title .title-line-2 {
	display: block;
	margin-top: 2px;
}

.hippo-menu-hero-title .amp {
	color: #659b15;
	font-style: normal;
}

.hippo-hero-accent-doodle.doodle-under-title {
	position: absolute;
	left: -24px;
	bottom: 6px;
	pointer-events: none;
}

.hippo-hero-accent-doodle.doodle-beside-title {
	position: absolute;
	right: -24px;
	bottom: 8px;
	pointer-events: none;
}

.hippo-menu-hero-desc {
	font-family: 'Geologica', sans-serif;
	font-size: 0.98rem;
	color: #4a2c1b;
	max-width: 600px;
	line-height: 1.55;
	margin: 0 0 20px;
}

/* Search Bar */
.hippo-menu-search-wrap {
	width: 100%;
	max-width: 600px;
	position: relative;
	margin-bottom: 16px;
}

.hippo-menu-search-input {
	width: 100%;
	padding: 13px 44px 13px 52px !important;
	font-family: 'Geologica', sans-serif;
	font-size: 0.94rem;
	color: #3d1404;
	background-color: #FFFFFF;
	border: 1.5px solid rgba(61, 20, 4, 0.12);
	border-radius: 35px;
	box-shadow: 0 4px 18px rgba(61, 20, 4, 0.06);
	outline: none;
	transition: all 0.25s ease;
}

.hippo-menu-search-input:focus {
	border-color: #659b15;
	box-shadow: 0 6px 20px rgba(101, 155, 21, 0.22);
}

.hippo-menu-search-input::placeholder {
	color: #8c766b;
	font-size: 0.92rem;
}

.hippo-menu-search-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	color: #659b15;
	pointer-events: none;
}

.hippo-menu-search-clear {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	background: #efebe7;
	border-radius: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: #666;
	cursor: pointer;
	border: none;
	transition: background-color 0.2s ease;
}

.hippo-menu-search-clear:hover {
	background-color: #e2ddd8;
}

.hippo-menu-search-clear.is-visible {
	display: flex;
}

/* Dietary Filter Chips */
.hippo-dietary-filters {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: nowrap;
}

.hippo-dietary-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px;
	border-radius: 20px;
	background-color: #FFFFFF;
	color: #3d1404;
	font-family: 'Geologica', sans-serif;
	font-size: 0.88rem;
	font-weight: 700;
	border: 1.5px solid rgba(61, 20, 4, 0.1);
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	user-select: none;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(61, 20, 4, 0.04);
}

.hippo-dietary-pill:hover {
	border-color: #659b15;
	transform: translateY(-1px);
	color: #2b4d08;
}

.hippo-dietary-pill.active {
	background-color: #365e0e;
	color: #FFFFFF;
	border-color: #365e0e;
	box-shadow: 0 4px 12px rgba(54, 94, 14, 0.28);
}

.hippo-dietary-pill .pill-icon {
	font-size: 1rem;
	line-height: 1;
}

/* Responsive Rules for Hero */
@media (max-width: 1250px) {
	.hippo-menu-hero-left {
		width: clamp(260px, 25vw, 340px);
	}

	.hippo-menu-hero-right {
		width: clamp(260px, 25vw, 340px);
	}

	.hippo-menu-hero-inner {
		max-width: 600px;
	}

	.hippo-dietary-filters {
		flex-wrap: wrap;
	}
}

@media (max-width: 992px) {
	.hippo-menu-hero-side {
		opacity: 0.22;
		z-index: 1;
	}

	.hippo-hero-doodle {
		display: none;
	}
}

@media (max-width: 768px) {
	.hippo-menu-hero {
		padding: 35px 16px 25px;
		min-height: auto;
	}

	.hippo-menu-hero-side {
		display: none;
	}

	.hippo-menu-hero-title {
		font-size: 2rem;
	}

	.hippo-hero-accent-doodle {
		display: none;
	}

	.hippo-menu-search-input {
		padding: 12px 38px 12px 42px;
		font-size: 0.88rem;
	}

	.hippo-dietary-pill {
		padding: 6px 14px;
		font-size: 0.82rem;
	}
}

/* ==========================================================================
   2. STICKY CATEGORY NAVIGATOR
   ========================================================================== */
:root {
	--hippo-header-h: 84px;
}

@media (max-width: 768px) {
	:root {
		--hippo-header-h: 75px;
	}
}

.hippo-menu-nav-sticky {
	position: sticky;
	top: var(--hippo-header-h, 84px);
	z-index: 990;
	background-color: #FAF7F2;
	border-bottom: 1.5px solid rgba(61, 20, 4, 0.08);
	box-shadow: 0 4px 16px rgba(61, 20, 4, 0.05);
	padding: 12px 0;
	transition: top 0.25s ease;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .hippo-header {
	top: 32px;
}

body.admin-bar .hippo-menu-nav-sticky {
	top: calc(32px + var(--hippo-header-h, 84px));
}

@media (max-width: 782px) {
	body.admin-bar .hippo-header {
		top: 46px;
	}

	body.admin-bar .hippo-menu-nav-sticky {
		top: calc(46px + var(--hippo-header-h, 75px));
	}
}

.hippo-menu-nav-list {
	display: flex;
	align-items: center;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
	/* Firefox */
	-webkit-overflow-scrolling: touch;
	height: 50px;
}

.hippo-menu-nav-list::-webkit-scrollbar {
	display: none;
	/* Safari/Chrome */
}

.hippo-menu-nav-item {
	flex-shrink: 0;
}

.hippo-menu-nav-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px;
	border-radius: 25px;
	background-color: #FFFFFF;
	color: #3d1404;
	font-family: 'Geologica', sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
	border: 1.5px solid rgba(61, 20, 4, 0.1);
	box-shadow: 0 2px 8px rgba(61, 20, 4, 0.04);
	transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	white-space: nowrap;
}

.hippo-menu-nav-btn .cat-icon {
	font-size: 1.15rem;
}

.hippo-menu-nav-btn:hover {
	border-color: #71A810;
	transform: translateY(-2px);
	color: #3b6d0d;
}

.hippo-menu-nav-btn.active {
	background-color: #71A810;
	color: #2D150B;
	border-color: #71A810;
	box-shadow: 0 4px 14px rgba(113, 168, 16, 0.35);
}

/* ==========================================================================
   3. CATEGORY SECTION & HERO BANNER CARD
   ========================================================================== */
.hippo-menu-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.hippo-menu-category-section {
	padding-top: 25px;
	margin-bottom: 55px;
	scroll-margin-top: calc(var(--hippo-header-h, 84px) + 75px);
}

body.admin-bar .hippo-menu-category-section {
	scroll-margin-top: calc(32px + var(--hippo-header-h, 84px) + 75px);
}

@media (max-width: 782px) {
	body.admin-bar .hippo-menu-category-section {
		scroll-margin-top: calc(46px + var(--hippo-header-h, 75px) + 70px);
	}
}

/* Big Category Banner Card */
.hippo-cat-hero-card {
	background: linear-gradient(135deg, #FFFDF8 0%, #F8F3E5 100%);
	border: 1.5px solid rgba(61, 20, 4, 0.09);
	border-radius: 24px;
	padding: 28px 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	margin-bottom: 32px;
	box-shadow: 0 8px 24px rgba(61, 20, 4, 0.06);
	position: relative;
	overflow: hidden;
}

.hippo-cat-hero-info {
	max-width: 680px;
	z-index: 2;
}

.hippo-cat-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: #EEF7DE;
	color: #3b6d0d;
	font-family: 'Playpen Sans', 'Geologica', sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 14px;
	margin-bottom: 10px;
}

.hippo-cat-hero-title {
	font-family: 'ACBalooPaaji', cursive, sans-serif;
	font-size: clamp(2.2rem, 3.8vw, 2.9rem);
	font-weight: 900;
	color: #3d1404;
	line-height: 1;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.hippo-cat-hero-title .cat-emoji {
	font-size: 2.2rem;
}

.hippo-cat-hero-tagline {
	font-family: 'Geologica', sans-serif;
	font-size: 1rem;
	color: #5d3e2f;
	line-height: 1.5;
	margin: 0;
}

.hippo-cat-hero-art {
	flex-shrink: 0;
	width: 170px;
	height: 170px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
}

.hippo-cat-hero-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 12px 18px rgba(61, 20, 4, 0.16));
	transform: rotate(-3deg) scale(1.08);
	transition: transform 0.3s ease;
}

.hippo-cat-hero-card:hover .hippo-cat-hero-img {
	transform: rotate(0deg) scale(1.14);
}

/* ==========================================================================
   4. SUBCATEGORY & BISTRO ITEMS GRID (NO FOOD PHOTOS)
   ========================================================================== */
.hippo-subcat-block {
	margin-bottom: 40px;
}

.hippo-subcat-header {
	border-bottom: 2px solid rgba(61, 20, 4, 0.08);
	padding-bottom: 8px;
	margin-bottom: 22px;
}

.hippo-subcat-title {
	font-family: 'ACBalooPaaji', cursive, sans-serif;
	font-size: 1.55rem;
	font-weight: 900;
	color: #3d1404;
	margin: 0 0 4px;
}

.hippo-subcat-desc {
	font-family: 'Geologica', sans-serif;
	font-size: 0.92rem;
	color: #7A5C4D;
	margin: 0;
}

/* Responsive 2-column menu grid */
.hippo-menu-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 16px 36px;
}

/* Individual Dish Row (No photo thumbnail!) */
.hippo-menu-item {
	background-color: #FFFFFF;
	border: 1px solid rgba(61, 20, 4, 0.08);
	border-radius: 16px;
	padding: 16px 20px;
	box-shadow: 0 2px 10px rgba(61, 20, 4, 0.03);
	transition: all 0.22s ease;
	display: flex;
	flex-direction: column;
	position: relative;
}

.hippo-menu-item:hover {
	border-color: rgba(113, 168, 16, 0.5);
	box-shadow: 0 6px 18px rgba(61, 20, 4, 0.07);
	transform: translateY(-2px);
}

.hippo-menu-item.is-hidden {
	display: none !important;
}

.hippo-item-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	width: 100%;
}

.hippo-item-name-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	max-width: 75%;
}

.hippo-item-name {
	font-family: 'Geologica', sans-serif;
	font-size: 1.08rem;
	font-weight: 700;
	color: #2D150B;
	margin: 0;
}

/* Dietary / Highlight Badges */
.hippo-item-badge {
	font-family: 'Geologica', sans-serif;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 2px 8px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	line-height: 1.2;
}

.badge-bestseller {
	background-color: #FFF3D6;
	color: #8A5D00;
	border: 1px solid #FBE29D;
}

.badge-veggie {
	background-color: #EEF7DE;
	color: #3b6d0d;
	border: 1px solid #D4EBA8;
}

.badge-new {
	background-color: #FFEAD8;
	color: #B04A00;
	border: 1px solid #FED0AC;
}

.badge-spicy {
	background-color: #FDE8E8;
	color: #C53030;
	border: 1px solid #F8B4B4;
}

/* Dotted Line Leader */
.hippo-item-leader {
	flex: 1;
	border-bottom: 2px dotted rgba(61, 20, 4, 0.22);
	margin: 0 10px;
	height: 12px;
	min-width: 20px;
}

/* Green Price Pill */
.hippo-item-price {
	font-family: 'Geologica', sans-serif;
	font-weight: 800;
	font-size: 1.05rem;
	color: #2B5706;
	background-color: #EEF7DE;
	padding: 4px 12px;
	border-radius: 14px;
	border: 1px solid #D4EBA8;
	white-space: nowrap;
	flex-shrink: 0;
}

/* Ingredients Description */
.hippo-item-desc {
	font-family: 'Geologica', sans-serif;
	font-size: 0.88rem;
	font-weight: 500;
	color: #6E584F;
	line-height: 1.45;
	margin: 6px 0 0;
	padding-right: 25px;
}

/* ==========================================================================
   5. INTERACTIVE "BUILD YOUR OWN" CALCULATOR CARD
   ========================================================================== */
.hippo-custom-builder {
	background-color: #FFFFFF;
	border: 2px dashed #9cd736;
	border-radius: 22px;
	padding: 26px 30px;
	margin-top: 35px;
	box-shadow: 0 8px 24px rgba(61, 20, 4, 0.05);
	position: relative;
}

.hippo-builder-header {
	margin-bottom: 22px;
}

.hippo-builder-title {
	font-family: 'ACBalooPaaji', cursive, sans-serif;
	font-size: 1.65rem;
	font-weight: 900;
	color: #3d1404;
	margin: 0 0 6px;
}

.hippo-builder-subtitle {
	font-family: 'Geologica', sans-serif;
	font-size: 0.92rem;
	color: #6E584F;
	margin: 0;
}

.hippo-builder-groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 22px;
	margin-bottom: 25px;
}

.hippo-builder-group-title {
	font-family: 'Geologica', sans-serif;
	font-size: 0.92rem;
	font-weight: 800;
	color: #3b6d0d;
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hippo-builder-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hippo-builder-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 18px;
	background-color: #FAF7F2;
	border: 1.5px solid rgba(61, 20, 4, 0.12);
	font-family: 'Geologica', sans-serif;
	font-size: 0.86rem;
	color: #3d1404;
	cursor: pointer;
	transition: all 0.18s ease;
	user-select: none;
}

.hippo-builder-label input[type="checkbox"] {
	cursor: pointer;
	accent-color: #71A810;
}

.hippo-builder-label:hover {
	border-color: #71A810;
	background-color: #FFFFFF;
}

.hippo-builder-label.is-selected {
	background-color: #EEF7DE;
	border-color: #71A810;
	color: #2B5706;
	font-weight: 700;
}

.hippo-builder-label .opt-price {
	font-size: 0.80rem;
	opacity: 0.85;
}

/* Builder Total Summary Bar */
.hippo-builder-summary {
	background: linear-gradient(135deg, #FAF4E8 0%, #F5ECCF 100%);
	border-radius: 16px;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 1.5px solid rgba(61, 20, 4, 0.08);
}

.hippo-builder-total-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hippo-builder-total-label {
	font-family: 'Geologica', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #3d1404;
}

.hippo-builder-total-price {
	font-family: 'ACBalooPaaji', cursive, sans-serif;
	font-size: 1.85rem;
	font-weight: 900;
	color: #3b6d0d;
}

/* Empty Search Results Message */
.hippo-menu-no-results {
	display: none;
	text-align: center;
	padding: 60px 20px;
}

.hippo-menu-no-results.is-visible {
	display: block;
}

.hippo-no-results-emoji {
	font-size: 3.5rem;
	margin-bottom: 12px;
}

.hippo-no-results-title {
	font-family: 'ACBalooPaaji', cursive, sans-serif;
	font-size: 1.8rem;
	color: #3d1404;
	margin-bottom: 8px;
}

.hippo-no-results-text {
	font-family: 'Geologica', sans-serif;
	font-size: 1rem;
	color: #6E584F;
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 860px) {
	.hippo-cat-hero-card {
		flex-direction: column-reverse;
		align-items: flex-start;
		padding: 22px 24px;
	}

	.hippo-cat-hero-art {
		width: 130px;
		height: 130px;
		align-self: center;
		margin-bottom: -15px;
	}

	.hippo-menu-grid {
		grid-template-columns: 1fr;
	}

	.hippo-builder-summary {
		flex-direction: column;
		gap: 14px;
		text-align: center;
	}
}

@media (max-width: 580px) {
	.hippo-menu-hero {
		padding: 30px 0 25px;
	}

	.hippo-menu-search-input {
		font-size: 0.94rem;
		padding: 13px 40px 13px 44px;
	}

	.hippo-item-name-wrap {
		max-width: 65%;
	}

	.hippo-item-price {
		font-size: 0.95rem;
		padding: 3px 9px;
	}
}