/* =========================================================
 * Filterable Restaurant Menu Grid
 * ========================================================= */

.frmg {
	background-color: #FAF5EB;
	padding: 40px 24px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.frmg *,
.frmg *::before,
.frmg *::after {
	box-sizing: border-box;
}

/* ---------- Filter bar ---------- */
.frmg-filterbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0 auto 36px;
	max-width: 900px;
}

.frmg-filters {
	display: flex;
	align-items: center;
	gap: 12px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 4px;
	scroll-behavior: smooth;
}

.frmg-filters::-webkit-scrollbar {
	display: none;
}

.frmg-filter {
	flex: 0 0 auto;
	border: none;
	cursor: pointer;
	background-color: #FFFFFF;
	color: #332211;
	font-weight: 700;
	font-size: 15px;
	padding: 10px 20px;
	border-radius: 50px;
	box-shadow: 0 4px 12px rgba(170, 140, 90, 0.12);
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
	white-space: nowrap;
	line-height: 1;
}

.frmg-filter:hover {
	transform: translateY(-1px);
}

.frmg-filter.is-active {
	background-color: #FF8A00;
	color: #FFFFFF;
	box-shadow: 0 6px 16px rgba(255, 138, 0, 0.35);
}

/* ---------- Arrows ---------- */
.frmg-arrow {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border: none;
	cursor: pointer;
	background-color: #FFFFFF;
	color: #332211;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(170, 140, 90, 0.15);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.frmg-arrow:hover {
	background-color: #FF8A00;
	color: #FFFFFF;
}

/* Custom-character arrows */
.frmg-arrow-char {
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	display: block;
	transform: translateY(-1px);
}

/* CSS-drawn chevrons via inline SVG mask (renders identically everywhere) */
.frmg-chevron {
	display: inline-block;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: 16px 16px;
	mask-size: 16px 16px;
}

.frmg-chevron-left {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
}

.frmg-chevron-right {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}

/* ---------- Grid ---------- */
.frmg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	max-width: 1140px;
	margin: 0 auto;
}

.frmg-card.is-hidden {
	display: none;
}

/* ---------- Card ---------- */
.frmg-card {
	background-color: #FFFFFF;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(120, 100, 70, 0.10);
	display: flex;
	flex-direction: column;
	animation: frmgFade 0.4s ease both;
}

@keyframes frmgFade {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Card media ---------- */
.frmg-card-media {
	position: relative;
	background: #FFF9EE;
	background-image: linear-gradient(180deg, #FFFCF6 0%, #FFF4E2 100%);
	border-radius: 24px 24px 0 0;
	padding: 24px;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.frmg-card-img {
	max-width: 100%;
	max-height: 200px;
	height: auto;
	width: auto;
	object-fit: contain;
	display: block;
}

/* ---------- Badge ---------- */
.frmg-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	background-color: #CC5500;
	color: #FFFFFF;
	text-transform: uppercase;
	font-weight: 800;
	font-size: 11px;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 20px;
	line-height: 1.2;
}

/* ---------- Card body ---------- */
.frmg-card-body {
	padding: 20px 22px 26px;
}

.frmg-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.frmg-card-title {
	margin: 0;
	color: #332211;
	font-family: "Fredoka", "Arial Black", -apple-system, sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.1;
	flex: 1 1 auto;
}

/* ---------- Price ---------- */
.frmg-price {
	flex: 0 0 auto;
	background-color: #F5EBE0;
	color: #332211;
	font-weight: 700;
	font-size: 15px;
	padding: 5px 12px;
	border-radius: 50px;
	white-space: nowrap;
	line-height: 1.2;
}

/* ---------- Description ---------- */
.frmg-card-desc {
	margin: 0;
	color: #776655;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.frmg-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.frmg-grid {
		grid-template-columns: 1fr;
	}
	.frmg-filterbar {
		gap: 8px;
	}
	.frmg-filters {
		justify-content: flex-start;
	}
	.frmg-card-title {
		font-size: 22px;
	}
}
