/* Menu Page Styles */

/* Hero Section */

.container {
    width: 100%;
    max-width: 1400px;
    padding: 0px;
}



.menu-hero {
position: relative;
background: linear-gradient(180deg, rgb(211 47 47) 0%, rgb(101 0 18 / 90%) 100%);
padding: 50px 0 80px;
text-align: center;
color: white;
margin-top: 0;
overflow: hidden;
}

.menu-hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('../images/pattern-overlay.png') repeat;
opacity: 0.1;
pointer-events: none;
}

.menu-hero-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(180deg, rgb(211 47 47) 0%, rgb(101 0 18 / 90%) 100%);
}

.menu-hero .container {
position: relative;
z-index: 1;
}

.menu-hero h1 {
font-size: 3.5rem;
font-weight: 700;
margin-bottom: 1rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.menu-subtitle {
font-size: 1.3rem;
font-weight: 300;
opacity: 0.95;
max-width: 600px;
margin: 0 auto;
}

.section-header-image {
    width: 100%;
    margin: 1rem 0 0 0;
    position: relative;
    box-shadow: 0px 14px 12px rgba(0, 0, 0, 0.2);
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

/* Sticky Menu Navigation */
.menu-navigation {
background: white;
border-bottom: 1px solid #e5e5e5;
position: -webkit-sticky;
position: sticky;
top: var(--header-height, 140px);
z-index: 990;
transition: box-shadow 0.3s ease;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
}

.menu-navigation.stuck {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.menu-nav-wrapper {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem 0;
overflow: hidden;
}

.menu-search-btn {
background: #f5f5f5;
border: 1px solid #e0e0e0;
border-radius: 8px;
width: 42px;
height: 42px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
flex-shrink: 0;
color: #666;
}

.menu-search-btn:hover {
background: #ebebeb;
border-color: #c41e3a;
color: #c41e3a;
}

.menu-nav-scroll {
display: flex;
gap: 0.75rem;
overflow-x: auto;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
-ms-overflow-style: none;
flex: 1;
}

.menu-nav-scroll::-webkit-scrollbar {
display: none;
}

.menu-nav-item {
background: #f5f5f5;
color: #666;
padding: 0.65rem 1.25rem;
border-radius: 20px;
text-decoration: none;
white-space: nowrap;
font-size: 0.95rem;
font-weight: 500;
transition: all 0.2s ease;
border: 1px solid transparent;
flex-shrink: 0;
}

.menu-nav-item:hover {
background: #ebebeb;
color: #333;
}

.menu-nav-item.active {
background: white;
color: #c41e3a;
border-color: #c41e3a;
font-weight: 600;
}

/* Search Overlay - CRITICAL: Must be above header */
.menu-search-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 99999;
display: none;
align-items: flex-start;
justify-content: center;
padding-top: 10vh;
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}

.menu-search-overlay.active {
display: flex;
animation: fadeIn 0.2s ease;
}

.menu-search-container {
background: white;
border-radius: 16px;
width: 90%;
max-width: 600px;
max-height: 70vh;
display: flex;
flex-direction: column;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
animation: slideDown 0.3s ease;
position: relative;
z-index: 100000;
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

@keyframes slideDown {
from {
    opacity: 0;
    transform: translateY(-20px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

.menu-search-header {
display: flex;
align-items: center;
gap: 1rem;
padding: 1.5rem;
border-bottom: 1px solid #e5e5e5;
}

.menu-search-input {
flex: 1;
border: none;
outline: none;
font-size: 1.1rem;
padding: 0.5rem;
color: #333;
}

.menu-search-input::placeholder {
color: #999;
}

.menu-search-close {
background: #f5f5f5;
border: none;
border-radius: 8px;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
color: #666;
flex-shrink: 0;
}

.menu-search-close:hover {
background: #fee;
color: #c41e3a;
}

.menu-search-results {
overflow-y: auto;
padding: 1rem;
max-height: calc(70vh - 100px);
}

.search-result-item {
padding: 1rem;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
border: 1px solid transparent;
margin-bottom: 0.5rem;
}

.search-result-item:hover {
background: #f9f9f9;
border-color: #e5e5e5;
}

.search-result-name {
font-size: 1.1rem;
font-weight: 600;
color: #c41e3a;
margin-bottom: 0.25rem;
}

.search-result-desc {
font-size: 0.9rem;
color: #666;
margin-bottom: 0.25rem;
}

.search-result-price {
font-size: 0.95rem;
font-weight: 600;
color: #333;
}

.search-result-section {
font-size: 0.85rem;
color: #999;
margin-top: 0.25rem;
}

.search-section-header {
font-size: 0.75rem;
font-weight: 600;
color: #999;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 1rem 0 0.5rem;
margin-top: 0.5rem;
border-top: 1px solid #f0f0f0;
}

.search-section-header:first-child {
margin-top: 0;
border-top: none;
}

.search-result-section-item {
background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.search-result-section-item:hover {
background: linear-gradient(135deg, #ffebeb 0%, #fff5f5 100%);
border-color: #c41e3a;
}

.search-result-type {
font-size: 0.85rem;
color: #c41e3a;
font-weight: 500;
margin-top: 0.25rem;
}

.search-no-results {
text-align: center;
padding: 3rem 1rem;
color: #999;
}

.search-no-results svg {
width: 60px;
height: 60px;
margin: 0 auto 1rem;
opacity: 0.3;
}

/* Menu Sections */
.menu-section {
padding: 60px 20px;
border-bottom: 1px solid #e5e5e5;
}

.menu-section:last-child {
border-bottom: none;
}

.section-title {
font-size: 2.5rem;
font-weight: 700;
color: #c41e3a;
text-align: center;
margin-bottom: 1.5rem;
position: relative;
padding-bottom: 15px;
}

.section-title::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 3px;
background: linear-gradient(90deg, #c41e3a, #ff6b6b);
border-radius: 2px;
}

.section-note {
text-align: center;
font-size: 1rem;
color: #666;
max-width: 800px;
margin: 0 auto 2rem;
line-height: 1.6;
font-style: italic;
}

/* Subsections */
.subsection {
margin-top: 3rem;
}

.subsection:first-child {
margin-top: 0;
}

.subsection-title {
font-size: 1.8rem;
font-weight: 600;
color: #333;
margin-bottom: 1.5rem;
padding-bottom: 10px;
border-bottom: 2px solid #c41e3a;
}

/* Menu Grid */
.menu-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
margin-top: 2rem;
}

/* Menu Items */
.menu-item {
background: white;
padding: 1.5rem;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
border: 1px solid #f0f0f0;
display: flex;
align-items: flex-start;
gap: 1.5rem;
}

.menu-item-content {
flex: 1;
}

.menu-price {
display: block;
font-size: 1.1rem;
font-weight: 700;
color: #c41e3a;
margin-top: 0.75rem;
}

.menu-item-image {
width: 120px;
height: 120px;
object-fit: cover;
border-radius: 8px;
flex-shrink: 0;
}

.menu-item-image[src=""],
.menu-item-image:not([src]) {
display: none !important;
}

.menu-item:hover {
transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(196, 30, 58, 0.15);
border-color: #c41e3a;
}

.menu-item h3,
.menu-item h4 {
font-size: 1.2rem;
font-weight: 600;
color: #c41e3a;
margin-bottom: 0.5rem;
}

.menu-item p {
font-size: 0.95rem;
color: #666;
line-height: 1.6;
margin: 0;
}

/* Featured Items */
.menu-item.featured {
background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
border: 2px solid #c41e3a;
}

.menu-item.featured h3 {
color: #8b1429;
}

/* Special Highlight Section */
.special-highlight {
background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
padding: 80px 0;
}

/* Compact Grid for Side Orders */
.menu-grid.compact {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem;
}

.menu-item-small {
background: white;
padding: 1rem;
border-radius: 6px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
border: 1px solid #f0f0f0;
text-align: center;
}

.menu-item-small:hover {
transform: translateY(-2px);
box-shadow: 0 2px 8px rgba(196, 30, 58, 0.15);
border-color: #c41e3a;
}

.menu-item-small h4 {
font-size: 1rem;
font-weight: 600;
color: #c41e3a;
margin-bottom: 0.3rem;
}

.menu-item-small p {
font-size: 0.85rem;
color: #666;
margin: 0;
}

/* Bubble Tea Section */
.bubble-tea-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
margin-top: 2rem;
}

.bubble-tea-category {
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
border: 1px solid #f0f0f0;
}

.flavor-list {
list-style: none;
padding: 0;
margin: 1rem 0;
}

.flavor-list li {
padding: 0.5rem 0;
border-bottom: 1px dotted #e0e0e0;
color: #555;
}

.flavor-list li:last-child {
border-bottom: none;
}

.special-note {
font-weight: 600;
color: #c41e3a;
margin-top: 1rem;
padding: 0.5rem;
background: #fff5f5;
border-radius: 4px;
text-align: center;
}

.toppings-section {
margin-top: 3rem;
padding: 2rem;
background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
border-radius: 8px;
}

.toppings-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 1.5rem;
}

.topping-column h4 {
font-size: 1.2rem;
font-weight: 600;
color: #c41e3a;
margin-bottom: 1rem;
}

.topping-column ul {
list-style: none;
padding: 0;
}

.topping-column li {
padding: 0.4rem 0;
color: #555;
position: relative;
padding-left: 1.5rem;
}

.topping-column li::before {
content: '•';
position: absolute;
left: 0;
color: #c41e3a;
font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
.menu-hero {
padding: 50px 0 60px;
}

.menu-hero h1 {
    font-size: 1.5rem;
}

.menu-subtitle {
    font-size: .75rem;
}

.section-title {
    font-size: 2rem;
}

.subsection-title {
    font-size: 1.5rem;
}

.menu-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.menu-item {
    width: 90%;
    margin: auto;
}

.menu-item-image {
    width: 100px;
    height: 100px;
}

.menu-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.bubble-tea-grid {
    grid-template-columns: 1fr;
}

.toppings-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.menu-section {
    padding: 40px 0;
}

/* Mobile Navigation */
.menu-nav-wrapper {
    padding: 0.75rem 0;
    gap: 0.75rem;
}

.menu-search-btn {
    width: 38px;
    height: 38px;
}

.menu-nav-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.menu-search-container {
    width: 95%;
    max-height: 80vh;
}

.menu-search-header {
    padding: 1rem;
}

.menu-search-input {
    font-size: 1rem;
}

}

@media (max-width: 480px) {

.section-title {
    font-size: 1.8rem;
}

.menu-item {
    padding: 1rem;
    gap: 1rem;
}

.menu-item-image {
    width: 80px;
    height: 80px;
}

.menu-item h3,
.menu-item h4 {
    font-size: 1.1rem;
}

.menu-price {
    font-size: 1rem;
}

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

/* Smaller Mobile Navigation */
.menu-nav-wrapper {
    padding: 0.5rem 0;
}

.menu-search-btn {
    width: 36px;
    height: 36px;
}

.menu-search-btn svg {
    width: 18px;
    height: 18px;
}

.menu-nav-item {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.menu-search-overlay {
    padding-top: 5vh;
}

.menu-search-header {
    padding: 0.75rem;
}

.search-result-item {
    padding: 0.75rem;
}

.search-result-name {
    font-size: 1rem;
}

.search-result-desc {
    font-size: 0.85rem;
}

}

/* Print Styles */
@media print {
.menu-hero {
background: white;
color: black;
padding: 20px 0;
margin-top: 0;
}

.menu-hero::before,
.menu-hero-overlay {
    display: none;
}

.menu-section {
    page-break-inside: avoid;
    padding: 30px 0;
}

.menu-item {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
}

.section-title,
.menu-item h3,
.menu-item h4 {
    color: #000;
}

}

/* Accessibility */
.menu-item:focus-within {
outline: 2px solid #c41e3a;
outline-offset: 2px;
}

/* Loading Animation */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.menu-item {
animation: fadeInUp 0.5s ease-out;
}

.menu-item:nth-child(2) {
animation-delay: 0.1s;
}

.menu-item:nth-child(3) {
animation-delay: 0.2s;
}

/* Smooth Scroll */
html {
scroll-behavior: smooth;
}

/* Section Spacing */
.menu-section + .menu-section {
margin-top: 0;
}

/* Back to Top Button */
.back-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 50px;
height: 50px;
background: #c41e3a;
color: white;
border: none;
border-radius: 50%;
font-size: 1.5rem;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 999;
}

.back-to-top.visible {
opacity: 1;
visibility: visible;
}

.back-to-top:hover {
background: #8b1429;
transform: translateY(-3px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Mobile Navigation */
@media (max-width: 768px) {
.back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1.3rem;
}
}

@media (max-width: 480px) {
.back-to-top {
width: 40px;
height: 40px;
bottom: 15px;
right: 15px;
font-size: 1.2rem;
}
}