/**
 * Single Digital Menu Template Styles
 * Based on Elementor template design
 */

/* Title Area */
.single-menu-title-area {
	position: relative;
	min-height: 400px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 90px 60px 30px;
	overflow: hidden;
}

.single-menu-title-area::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(200deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
	z-index: 1;
}

.title-area-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
}

.title-area-spacer {
	height: 100px;
}

@media (max-width: 768px) {
	.title-area-spacer {
		margin-top: 110px; /* Avoid header overlay */
	}
}

/* Product Section */
.single-menu-product-section {
	margin-top: -280px;
	position: relative;
	z-index: 10;
	padding-top: 30px;
	padding-bottom: 30px;
	min-height: 560px;
}

.product-section-container {
	display: flex;
	flex-direction: row;
	gap: 40px;
	align-items: stretch;
}

/* Image Section (40% width) */
.product-image-section {
	width: 40%;
	flex-shrink: 0;
}

.product-image-wrapper {
	position: sticky;
	top: 90px;
	width: 100%;
	height: 500px;
	border-radius: 20px;
	overflow: hidden;
}

.product-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 20px;
}

/* Content Section (60% width) */
.product-content-section {
	width: 60%;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 60px;
	min-height: 500px;
}

/* Title & Price Section */
.title-price-section {
	min-height: 220px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
}

.title-row {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 0;
	flex-wrap: wrap;
}

.title-col {
	width: 100%;
	flex: 1;
}

.menu-categories {
	font-size: clamp(1.4rem, 1.3538rem + 0.2051vw, 1.5rem); /* Title 6 */
	color: var(--rezivoo-primary-color, #000);
	margin-bottom: 10px;
	font-weight: 500;
	text-decoration: none;
}

.menu-categories a {
	color: var(--rezivoo-primary-color, #000);
	text-decoration: none;
}

.menu-title {
	font-size: clamp(3rem, 2.5385rem + 2.0513vw, 4rem) !important; /* Title 1 */
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 20px 0;
	text-stroke: 0.5px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	color: var(--rezivoo-text-color, #000000) !important;
}

.vegan-indicator {
	width: 20%;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
	background-color: var(--rezivoo-primary-color, #000);
	border-radius: 10px;
	margin-bottom: 10px;
	margin-left: auto;
}

.vegan-icon {
	font-size: 1.4rem;
}

.vegan-text {
	font-size: clamp(1.2rem, 1.1769rem + 0.1026vw, 1.25rem); /* Title 7 */
	color: #fff;
}

.price-row {
	display: flex;
	flex-direction: column;
	gap: 5px;
	align-items: flex-start;
}

.price-label {
	font-size: clamp(1.4rem, 1.3538rem + 0.2051vw, 1.5rem) !important; /* Title 6 */
	font-weight: 700;
	margin: 0;
	color: var(--rezivoo-text-color, #000000);
}

.price-value {
	font-size: clamp(1.6rem, 1.5308rem + 0.3077vw, 1.75rem); /* Title 5 */
	font-weight: 600;
	margin: 0;
	color: var(--rezivoo-secondary-color, #000);
}

/* Details Area */
.details-area {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.details-section,
.allergens-section,
.extras-section,
.macronutrients-section {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.section-divider {
	width: 100%;
	height: 1px;
	background-color: var(--rezivoo-secondary-color, #000);
	margin: 20px 0;
	opacity: 0.3;
}

.section-title {
	font-size: clamp(1.6rem, 1.5308rem + 0.3077vw, 1.75rem); /* Title 5 */
	font-weight: 600;
	margin: 0 0 10px 0;
	color: var(--rezivoo-primary-color, #000);
}

.details-content,
.allergens-content {
	font-size: 1rem; /* Body */
	line-height: 1.6;
	color: var(--rezivoo-text-color, #000);
}

.allergens-link {
	font-size: 0.875rem; /* Body Small */
	color: var(--rezivoo-primary-color, #000);
	text-decoration: none;
	margin-top: 10px;
	transition: color 0.3s;
}

.allergens-link:hover {
	color: var(--rezivoo-secondary-color, #000);
}

/* Extras Grid */
.extras-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.extra-item {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	background-color: rgba(0, 0, 0, 0.02);
	border-radius: 8px;
}

.extra-name {
	font-size: 1rem; /* Body */
}

.extra-price {
	font-size: 1rem; /* Body */
	font-weight: 600;
	color: var(--rezivoo-primary-color, #000);
}

/* Macronutrients Grid */
.macros-grid {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 20px;
}

.macro-item {
	width: 30%;
	display: flex;
	flex-direction: row;
	gap: 5px;
	align-items: center;
}

.macro-label {
	font-size: 1rem; /* Body */
	color: var(--rezivoo-primary-color, #000);
}

.macro-value {
	font-size: 1rem; /* Body */
	color: var(--rezivoo-primary-color, #000);
}

/* Mobile Sticky Price Bar */
.mobile-sticky-price {
	display: none;
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px;
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 16px 16px 0 0;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
	z-index: 100;
}

.sticky-title {
	font-size: clamp(1.6rem, 1.5308rem + 0.3077vw, 1.75rem); /* Title 5 */
	font-weight: 600;
	color: #fff;
}

.sticky-price {
	font-size: clamp(1.6rem, 1.5308rem + 0.3077vw, 1.75rem); /* Title 5 */
	font-weight: 600;
	color: var(--rezivoo-secondary-color, #fff);
}


/* Responsive Styles */
@media (max-width: 1024px) {
	.single-menu-product-section {
		margin-top: -300px;
		padding: 30px;
	}

	.product-section-container {
		flex-direction: column;
		gap: 20px;
	}

	.product-image-section {
		width: 100%;
	}

	.product-image-wrapper {
		position: relative;
		top: 0;
		height: 340px;
	}

	.product-content-section {
		width: 100%;
		gap: 20px;
	}

	.title-row {
		flex-wrap: nowrap;
	}

	.vegan-indicator {
		width: 40%;
	}

	.similar-products-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.single-menu-title-area {
		padding: 80px 20px 40px;
		min-height: 200px !important; /* Half of 400px */
	}

	.single-menu-product-section {
		margin-top: -300px;
		padding: 30px 20px;
	}

	.product-content-section {
		gap: 20px;
	}

	.title-row {
		flex-wrap: wrap;
	}

	.vegan-indicator {
		width: 40%;
		gap: 5px;
	}

	.extras-grid {
		grid-template-columns: 1fr;
	}

	.macros-grid {
		flex-direction: column;
		gap: 10px;
	}

	.macro-item {
		width: 100%;
	}

	.mobile-sticky-price {
		display: flex;
	}

}

/* Glassmorphism effect for mobile sticky */
.mobile-sticky-price.darkglass {
	background: rgba(0, 0, 0, 0.65);
	border-radius: 16px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(4.5px);
	-webkit-backdrop-filter: blur(4.5px);
	border: 1px solid rgba(255, 255, 255, 0.18);
}

