/* MCD Category Menu — front-end styles */

.mcd-cm-wrap {
	--mcd-bg: #f2f2f2;
	--mcd-card-bg: #ffffff;
	--mcd-accent: #da291c;
	--mcd-accent-2: #3aa757;
	--mcd-text: #1a1a1a;
	--mcd-muted: #6b6b6b;
	--mcd-radius: 20px;
	--mcd-shadow: 0 8px 24px rgba(0,0,0,0.08);

	/* Fills whatever container it's placed in. For true edge-to-edge
	   (spanning the full browser width, not just your theme's boxed
	   content area), place this shortcode inside a Divi "Fullwidth
	   Section" (or your builder's equivalent full-width row/section) —
	   that's the reliable way to do it, since CSS "breakout" tricks
	   (negative margins based on 100vw) conflict with how Divi and many
	   themes structure their containers and were clipping content. */
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;

	background: var(--mcd-bg);
	padding: 48px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--mcd-text);
}

.mcd-cm-wrap *,
.mcd-cm-wrap *::before,
.mcd-cm-wrap *::after {
	box-sizing: border-box;
}

/* The actual content stays comfortably inset and centered even though
   the section behind it spans the full screen. */
.mcd-cm-inner {
	width: 92%;
	max-width: 1800px;
	margin: 0 auto;
}

.mcd-cm-title {
	text-align: center;
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 800;
	letter-spacing: 0.5px;
	margin: 0 0 28px;
	text-transform: uppercase;
	color: var(--mcd-accent);
}

.mcd-cm-layout {
	display: grid;
	grid-template-columns: minmax(240px, 300px) 1fr;
	gap: 32px;
	align-items: start;
	width: 100%;
}

.mcd-cm-sidebar {
	position: sticky;
	top: 20px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	min-width: 0;
}

/* JS-driven fallback for when a page builder's container (Divi
   sections/rows with overflow:hidden or a transform-based effect are
   common culprits) silently breaks native position:sticky — at any
   viewport width. The JS switches to this fixed-position "pin" if it
   detects sticky isn't actually holding; this works regardless of any
   ancestor's CSS, since position:fixed here is driven by explicit
   inline top/left/width set in JS (deliberately NOT forcing "top" here,
   so the JS-computed value — 20px on desktop, 0px on the mobile bar —
   can actually take effect). */
.mcd-cm-sidebar.mcd-is-pinned {
	position: fixed !important;
	z-index: 999 !important;
}
.mcd-cm-sidebar-placeholder {
	display: none;
}
.mcd-cm-sidebar-placeholder.mcd-is-active {
	display: block;
}

.mcd-cm-content {
	min-width: 0;
}

/* Sidebar */
.mcd-cm-sidebar {
	background: var(--mcd-card-bg);
	border-radius: var(--mcd-radius);
	box-shadow: var(--mcd-shadow);
	padding: 12px 0;
}

.mcd-cm-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mcd-cm-sidebar li {
	border-left: 4px solid transparent;
}

.mcd-cm-sidebar li.is-active {
	border-left-color: var(--mcd-accent);
}

.mcd-cm-sidebar a {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 24px;
	text-decoration: none;
	color: var(--mcd-text);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.4px;
	transition: background 0.15s ease;
}

.mcd-cm-sidebar li.is-active a {
	color: var(--mcd-accent);
}

.mcd-cm-sidebar a:hover {
	background: #fafafa;
}

.mcd-cm-cat-icon {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
}

.mcd-cm-cat-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mcd-cm-cat-label {
	line-height: 1.2;
}

/* Grid */
.mcd-cm-grid {
	display: grid;
	grid-template-columns: repeat(var(--mcd-cols, 3), 1fr);
	gap: 24px;
	transition: opacity 0.15s ease;
}

.mcd-cm-grid.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.mcd-cm-wrap[data-columns] .mcd-cm-grid {
	--mcd-cols: 3;
}

.mcd-cm-card {
	position: relative;
	background: var(--mcd-card-bg);
	border-radius: var(--mcd-radius);
	box-shadow: var(--mcd-shadow);
	padding: 28px 20px 22px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mcd-cm-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.mcd-cm-card-media {
	display: block;
	width: 100%;
	margin-bottom: 18px;
}

.mcd-cm-card-media img {
	width: 100%;
	height: auto;
	max-height: 180px;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.mcd-cm-card-media-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 140px;
	background: #f7f7f7;
	border-radius: 12px;
}

.mcd-cm-card-media-placeholder svg {
	width: 40px;
	height: 40px;
}

.mcd-cm-card-title {
	display: block;
	font-weight: 800;
	font-size: 18px;
	line-height: 1.3;
	color: var(--mcd-text);
	cursor: default;
}

.mcd-cm-card-price-wrap {
	margin-top: 14px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.mcd-cm-wrap .mcd-cm-price-divider {
	display: block !important;
	width: 64px;
	height: 2px;
	background: var(--mcd-accent) !important;
	border-radius: 2px;
	margin: 0 0 10px !important;
	border: none;
}

.mcd-cm-wrap .mcd-cm-card-price,
.mcd-cm-wrap .mcd-cm-card-price *,
.mcd-cm-wrap .mcd-cm-card-price .woocommerce-Price-amount,
.mcd-cm-wrap .mcd-cm-card-price .woocommerce-Price-amount bdi,
.mcd-cm-wrap .mcd-cm-card-price span.price {
	color: var(--mcd-accent) !important;
	font-weight: 800 !important;
	font-size: 20px !important;
	letter-spacing: 0.3px;
}

/* Strikethrough "regular" price on sale, kept muted and smaller so the
   sale price (in accent red) stands out, same idea as the reference design */
.mcd-cm-wrap .mcd-cm-card-price del,
.mcd-cm-wrap .mcd-cm-card-price del * {
	color: var(--mcd-muted) !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	text-decoration: line-through;
}

.mcd-cm-wrap .mcd-cm-card-price ins {
	text-decoration: none;
}

/* Plus / add-to-cart button */
.mcd-cm-add-btn {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--mcd-card-bg);
	border: 2px solid var(--mcd-accent-2);
	color: var(--mcd-accent-2);
	box-shadow: 0 4px 10px rgba(0,0,0,0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
	text-decoration: none;
	z-index: 2;
}

.mcd-cm-add-btn:hover {
	background: var(--mcd-accent-2);
	color: #fff;
	transform: scale(1.06);
}

.mcd-cm-add-btn.is-loading .mcd-cm-plus {
	opacity: 0.4;
}

.mcd-cm-add-btn.is-added {
	background: var(--mcd-accent-2);
	border-color: var(--mcd-accent-2);
	color: #fff;
}

.mcd-cm-plus {
	pointer-events: none;
}

.mcd-cm-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--mcd-muted);
	padding: 40px 0;
}

/* Toast notification */
.mcd-cm-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: #1a1a1a;
	color: #fff;
	padding: 12px 20px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 8px 20px rgba(0,0,0,0.25);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 12px;
}

.mcd-cm-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.mcd-cm-toast a {
	color: #ffd54a;
	text-decoration: underline;
}

/* Responsive */

/* Tablet landscape: keep sidebar + grid side by side, just narrower/denser */
@media (max-width: 1180px) {
	.mcd-cm-layout {
		grid-template-columns: 240px 1fr;
		gap: 22px;
	}
	.mcd-cm-grid {
		--mcd-cols: 2 !important;
		gap: 18px;
	}
	.mcd-cm-cat-icon {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
	}
	.mcd-cm-sidebar a {
		padding: 13px 18px;
		gap: 12px;
		font-size: 13px;
	}
}

/* Tablet portrait / large phone: stack sidebar above grid as a horizontal-scroll row */
@media (max-width: 900px) {
	.mcd-cm-wrap {
		padding: 32px 0;
	}
	.mcd-cm-inner {
		width: 94%;
	}
	.mcd-cm-layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.mcd-cm-title {
		text-align: center;
	}
	.mcd-cm-sidebar {
		position: sticky;
		top: 0;
		z-index: 30;
		max-height: none;
		overflow: visible;
		width: 100%;
		background: var(--mcd-card-bg);
		box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	}
	.mcd-cm-sidebar ul {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		width: 100%;
	}
	.mcd-cm-sidebar li {
		border-left: none;
		border-bottom: 3px solid transparent;
		flex: 0 0 auto;
	}
	.mcd-cm-sidebar li.is-active {
		border-bottom-color: var(--mcd-accent);
	}
	.mcd-cm-sidebar a {
		flex-direction: column;
		gap: 8px;
		padding: 14px 18px;
		text-align: center;
	}
	.mcd-cm-cat-label {
		font-size: 12px;
	}
	.mcd-cm-grid {
		--mcd-cols: 2 !important;
	}
}

@media (max-width: 560px) {
	.mcd-cm-wrap {
		padding: 24px 0;
	}
	.mcd-cm-inner {
		width: 100%;
		padding: 0 16px;
	}
	.mcd-cm-title {
		font-size: 24px;
	}
	.mcd-cm-grid {
		--mcd-cols: 2 !important;
		gap: 12px;
	}
	.mcd-cm-sidebar a {
		padding: 12px 14px;
	}
	.mcd-cm-card {
		padding: 16px 12px 14px;
	}
	.mcd-cm-card-title {
		font-size: 15px;
	}
	.mcd-cm-card-price {
		font-size: 17px;
	}
}

/* ===================================================================
   [mcd_category_grid] — flat grid where each card is a category
   =================================================================== */

.mcd-cg-wrap {
	--mcd-bg: #f2f2f2;
	--mcd-card-bg: #ffffff;
	--mcd-accent: #da291c;
	--mcd-text: #1a1a1a;
	--mcd-muted: #6b6b6b;
	--mcd-radius: 20px;
	--mcd-shadow: 0 8px 24px rgba(0,0,0,0.08);

	/* Fills whatever container it's placed in — for true edge-to-edge,
	   place this shortcode inside a Divi "Fullwidth Section" (or your
	   builder's equivalent). See note on .mcd-cm-wrap above. */
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;

	padding: 24px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--mcd-bg);
}

.mcd-cg-grid {
	display: grid;
	grid-template-columns: repeat(var(--mcd-cg-cols, 4), 1fr);
	gap: 24px;
	width: 92%;
	max-width: 1800px;
	margin: 0 auto;
}

.mcd-cg-wrap *,
.mcd-cg-wrap *::before,
.mcd-cg-wrap *::after {
	box-sizing: border-box;
}

.mcd-cg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--mcd-card-bg);
	border-radius: var(--mcd-radius);
	box-shadow: var(--mcd-shadow);
	padding: 24px 20px 26px;
	text-decoration: none;
	color: var(--mcd-text);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mcd-cg-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(0,0,0,0.14);
}

/* Ribbon "+" corner */
.mcd-cg-ribbon {
	position: absolute;
	top: 0;
	right: 0;
	width: 64px;
	height: 64px;
	background: var(--mcd-accent);
	border-radius: 0 var(--mcd-radius) 0 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: -2px 2px 8px rgba(0,0,0,0.12);
	transition: transform 0.15s ease, background 0.15s ease;
	pointer-events: none;
	z-index: 2;
}

.mcd-cg-card:hover .mcd-cg-ribbon {
	transform: scale(1.06);
}

.mcd-cg-plus {
	color: #fff;
	font-size: 40px;
	font-weight: 500;
	line-height: 1;
}

.mcd-cg-media {
	width: 100%;
	height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.mcd-cg-media img {
	max-width: 100%;
	max-height: 150px;
	object-fit: contain;
}

.mcd-cg-name {
	font-weight: 800;
	font-size: 22px;
	letter-spacing: 0.3px;
	color: var(--mcd-accent);
	margin-bottom: 6px;
	padding-top: 19px;
}

.mcd-cg-subtitle {
	font-size: 14px;
	font-weight: 600;
	color: var(--mcd-text);
	margin-bottom: 4px;
	line-height: 1.4;
}

.mcd-cg-price-row {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 14px;
}

.mcd-cg-price-divider {
	display: block;
	width: 100%;
	max-width: 220px;
	height: 2px;
	background: var(--mcd-accent);
	border-radius: 2px;
	margin-bottom: 10px;
}

.mcd-cg-price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

.mcd-cg-price-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--mcd-text);
}

.mcd-cg-price-amount,
.mcd-cg-price-amount .woocommerce-Price-amount {
	font-size: 24px;
	font-weight: 800;
	color: var(--mcd-accent) !important;
}

/* Responsive */
@media (max-width: 1400px) {
	.mcd-cg-grid {
		--mcd-cg-cols: 3 !important;
	}
}

@media (max-width: 900px) {
	.mcd-cg-grid {
		--mcd-cg-cols: 2 !important;
		width: 94%;
		gap: 18px;
	}
}

@media (max-width: 560px) {
	.mcd-cg-wrap {
		padding: 16px 0;
	}
	.mcd-cg-grid {
		--mcd-cg-cols: 2 !important;
		width: 100%;
		padding: 0 12px;
		gap: 12px;
	}
	.mcd-cg-card {
		padding: 16px 12px 14px;
	}
	.mcd-cg-ribbon {
		width: 44px;
		height: 44px;
		border-radius: 0 var(--mcd-radius) 0 16px;
	}
	.mcd-cg-plus {
		font-size: 24px;
	}
	.mcd-cg-media {
		height: 90px;
		margin-bottom: 10px;
	}
	.mcd-cg-name {
		font-size: 15px;
	}
	.mcd-cg-subtitle {
		font-size: 11px;
	}
	.mcd-cg-price-amount,
	.mcd-cg-price-amount .woocommerce-Price-amount {
		font-size: 17px;
	}
}

/* ===================================================================
   [mcd_top_bar] — Restaurant / View Menu buttons + EN/FR language switch
   =================================================================== */

.mcd-topbar {
	--mcd-topbar-bg: #a53a33;
	--mcd-topbar-bg-hover: #8f322c;
	--mcd-topbar-icon: #d8ab55;

	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	position: relative;
}

.mcd-topbar-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--mcd-topbar-bg);
	color: #fff;
	text-decoration: none;
	padding: 12px 22px;
	border-radius: 6px;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	transition: background 0.15s ease, transform 0.15s ease;
	white-space: nowrap;
}

.mcd-topbar-btn:hover {
	background: var(--mcd-topbar-bg-hover);
	transform: translateY(-1px);
}

.mcd-topbar-icon {
	color: var(--mcd-topbar-icon);
	display: inline-flex;
	flex: 0 0 auto;
}

.mcd-topbar-label {
	line-height: 1;
}

/* Language switch */
.mcd-lang-switch {
	position: relative;
}

.mcd-lang-current {
	background: #141414;
	color: #fff;
	border: none;
	padding: 12px 20px;
	border-radius: 6px;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.mcd-lang-current:hover {
	background: #2a2a2a;
}

.mcd-lang-current::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
	margin-left: 10px;
	margin-bottom: 1px;
}

.mcd-lang-options {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 100%;
	background: #141414;
	border-radius: 6px;
	list-style: none;
	margin: 0;
	padding: 4px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.25);
	z-index: 20;
}

.mcd-lang-options[hidden] {
	display: none;
}

.mcd-lang-options li {
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.4px;
	padding: 9px 16px;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.12s ease;
}

.mcd-lang-options li:hover {
	background: rgba(255,255,255,0.14);
}

.mcd-lang-options li.is-selected {
	color: #d8ab55;
}

@media (max-width: 560px) {
	.mcd-topbar {
		gap: 10px;
	}
	.mcd-topbar-btn,
	.mcd-lang-current {
		padding: 10px 16px;
		font-size: 13px;
	}
}

/* ===================================================================
   [mcd_category_slider] — horizontal swipeable category slider with dots
   =================================================================== */

.mcd-cs-wrap {
	--mcd-bg: #ffffff;
	--mcd-accent: #b23b32;
	--mcd-text: #1a1a1a;
	--mcd-muted: #6b6b6b;

	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 32px 0;
	background: var(--mcd-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mcd-cs-wrap *,
.mcd-cs-wrap *::before,
.mcd-cs-wrap *::after {
	box-sizing: border-box;
}

.mcd-cs-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 4px 4px 8px;
}

.mcd-cs-track::-webkit-scrollbar {
	display: none;
}

.mcd-cs-item {
	flex: 0 0 calc((100% - (var(--mcd-cs-visible, 4) - 1) * 24px) / var(--mcd-cs-visible, 4));
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: var(--mcd-text);
	cursor: pointer;
}

.mcd-cs-media {
	width: 100%;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}

.mcd-cs-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mcd-cs-media svg {
	width: 48px;
	height: 48px;
}

.mcd-cs-name {
	font-weight: 800;
	font-size: 22px;
	letter-spacing: 0.3px;
	color: var(--mcd-accent);
	transition: color 0.15s ease;
}

.mcd-cs-item:hover .mcd-cs-name {
	color: var(--mcd-text);
}

.mcd-cs-subtitle {
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mcd-muted);
}

/* Dots */
.mcd-cs-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
	margin-top: 16px;
}

.mcd-cs-dot {
	position: relative;
	width: 28px;
	height: 28px;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
}

.mcd-cs-dot::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #d4d4d4;
	transform: translate(-50%, -50%);
	transition: background 0.15s ease, transform 0.15s ease;
}

.mcd-cs-dot:hover::after {
	background: #b5b5b5;
}

.mcd-cs-dot.is-active::after {
	background: var(--mcd-accent);
	transform: translate(-50%, -50%) scale(1.15);
}

/* Responsive item widths */
@media (max-width: 1000px) {
	.mcd-cs-item {
		flex-basis: calc((100% - (var(--mcd-cs-visible-tablet, 2) - 1) * 20px) / var(--mcd-cs-visible-tablet, 2)) !important;
	}
	.mcd-cs-track {
		gap: 20px;
	}
	.mcd-cs-name {
		font-size: 18px;
	}
}

@media (max-width: 560px) {
	.mcd-cs-wrap {
		padding: 24px 0;
	}
	.mcd-cs-item {
		flex-basis: calc((100% - (var(--mcd-cs-visible-mobile, 1) - 1) * 16px) / var(--mcd-cs-visible-mobile, 1)) !important;
	}
	.mcd-cs-track {
		gap: 16px;
		padding: 4px 16px 8px;
	}
	.mcd-cs-name {
		font-size: 16px;
	}
}
