/* Menu Page Styles */

/* Hero Section */

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

/* Allergen Warning Section */
.allergen-warning-section {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border-bottom: 3px solid #ffc107;
    padding: 20px 0;
}

.allergen-warning-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #ffc107;
}

.allergen-warning-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.allergen-warning-icon {
    width: 28px;
    height: 28px;
    color: #e65100;
    flex-shrink: 0;
}

.allergen-warning-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #e65100;
    font-weight: 700;
}

.allergen-warning-box > p {
    color: #5d4037;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-size: 0.95rem;
}

/* Allergen Legend */
.allergen-legend {
    background: #fafafa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.allergen-legend h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.allergen-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.allergen-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
}

.allergen-tag .allergen-icon {
    font-size: 1rem;
}

/* Allergen tag colors */
.allergen-tag.shellfish { background: #ffebee; border-color: #ef9a9a; color: #c62828; }
.allergen-tag.fish { background: #e3f2fd; border-color: #90caf9; color: #1565c0; }
.allergen-tag.eggs { background: #fff8e1; border-color: #ffe082; color: #f57f17; }
.allergen-tag.soy { background: #e8f5e9; border-color: #a5d6a7; color: #2e7d32; }
.allergen-tag.wheat { background: #fff3e0; border-color: #ffcc80; color: #e65100; }
.allergen-tag.peanuts { background: #efebe9; border-color: #bcaaa4; color: #5d4037; }
.allergen-tag.dairy { background: #f3e5f5; border-color: #ce93d8; color: #7b1fa2; }
.allergen-tag.sesame { background: #fafafa; border-color: #bdbdbd; color: #424242; }

/* Inline allergen tags for menu items */
.menu-item-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.menu-item-allergens .allergen-tag {
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 12px;
}

.menu-item-allergens .allergen-icon {
    font-size: 0.85rem;
}

/* Raw food warning */
.raw-food-warning {
    text-align: center;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: #5d4037;
    margin: 0 auto 25px;
    max-width: 900px;
    line-height: 1.5;
    font-weight: 500;
}

/* Footer allergen disclaimer */
.menu-footer-disclaimer {
    padding: 40px 20px;
    background: #fafafa;
    border-top: 3px solid #c41e3a;
}

.allergen-footer-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.allergen-footer-text {
    font-size: 0.95rem;
    color: #5d4037;
    line-height: 1.6;
    margin-bottom: 15px;
    background: #fff8e1;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #ffc107;
}

.allergen-footer-text strong {
    color: #e65100;
}

.raw-food-footer {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    font-style: italic;
    background: #f5f5f5;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Allergen note for specific sections */
.allergen-note {
    text-align: center;
    background: #ffebee;
    border: 2px solid #ef9a9a;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #c62828;
    margin: 0 auto 20px;
    max-width: 700px;
    font-weight: 500;
}



.menu-hero {
position: relative;
background: linear-gradient(180deg, rgb(211 47 47) 0%, rgb(101 0 18 / 90%) 100%);
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);
}

#imagesNotice {
    color: #ffffff;
}

.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;
flex-wrap: wrap;
align-items: flex-start;
gap: 1rem;
position: relative;
}

.menu-item-content {
flex: 1;
min-width: 150px;
}

/* Price and Order Button Row - spans full width */
.menu-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    gap: 1rem;
}

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

.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;
}

/* Order Now Button inside menu items */
.menu-item-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #c41e3a;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    flex-shrink: 0;
}

.menu-item-order-btn:hover {
    background: #a01830;
    transform: scale(1.05);
}

.menu-item-order-btn svg {
    width: 14px;
    height: 14px;
}

/* 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;
}

/* Footer and Order Button for Small Menu Items (Side Orders) */
.menu-item-footer-small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.menu-item-order-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #c41e3a;
    color: white;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    flex-shrink: 0;
}

.menu-item-order-btn-small:hover {
    background: #a01830;
    transform: scale(1.05);
}

.menu-item-footer-small .menu-price {
    font-size: 0.95rem;
}

/* Bubble Tea Category Order Button */
.bubble-tea-order-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    background: #c41e3a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.bubble-tea-order-btn:hover {
    background: #a01830;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

/* 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;
}

/* ============================================
   ORDER MODAL STYLES
   ============================================ */
.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.order-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.order-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.order-modal-header {
    position: relative;
    background: linear-gradient(135deg, #c41e3a 0%, #8b1429 100%);
    padding: 1.5rem;
    color: white;
    text-align: center;
}

.order-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.order-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.order-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    padding-right: 2rem;
}

.order-modal-body {
    padding: 1.5rem;
}

.order-modal-image-container {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-modal-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    gap: 0.5rem;
}

.order-modal-image-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.order-modal-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-option {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
}

.order-option-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.order-option-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #c41e3a;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: #fff5f5;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.order-option-phone:hover {
    background: #ffebeb;
    transform: translateX(3px);
}

.order-option-phone svg {
    width: 18px;
    height: 18px;
}

.order-option-divider {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    position: relative;
    margin: 0.5rem 0;
}

.order-option-divider::before,
.order-option-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e5e5e5;
}

.order-option-divider::before {
    left: 0;
}

.order-option-divider::after {
    right: 0;
}

.order-continue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.order-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.order-continue-btn svg {
    width: 18px;
    height: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
/* Allergen Section Mobile */
.allergen-warning-section {
    padding: 15px 10px;
}

.allergen-warning-box {
    padding: 15px;
}

.allergen-warning-header h3 {
    font-size: 1.1rem;
}

.allergen-warning-box > p {
    font-size: 0.85rem;
}

.allergen-legend-items {
    gap: 8px;
}

.allergen-tag {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.raw-food-warning {
    padding: 10px 15px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.allergen-footer-text,
.raw-food-footer {
    font-size: 0.85rem;
    padding: 12px 15px;
}

.menu-hero {
    padding: 10px 0;
}

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

#imagesNotice {
    font-size: .75rem;
}

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

.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;
}

/* Order Modal Mobile */
.order-modal {
    max-width: 100%;
    margin: 0 0.5rem;
}

.order-modal-image-container {
    height: 150px;
}

}

@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;
}

/* Order button smaller on mobile */
.menu-item-order-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

}

/* 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;
}

/* Hide order buttons in print */
.menu-item-order-btn {
    display: none;
}

}

/* 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;
}
}