/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
    background-color: #8eceed;
    color: #333;
    min-width: 320px;
    position: relative;
}

/* Search Message Styles */
.search-message {
    display: none;
    position: relative;
    margin: 2rem auto;
    max-width: 400px;
    background-color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-message.active {
    display: block;
}

.no-results-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-results-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.no-results-message i {
    font-size: 24px;
    color: #e74c3c;
}

.no-results-message p {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.search-message.active {
    display: block;
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-btn {
    background: linear-gradient(145deg, #000000, #333333) !important;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
    letter-spacing: 1px;
}
.feedback-btn a{
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
}
.feedback-btn a:hover{
    text-decoration:none;
}
.feedback-btn:hover {
    background-color: #000000;
    border: 1px solid #fff;
}

/* Breadcrumb Section */
.breadcrumb-section {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    height: 150px;
    overflow: hidden;
    margin-bottom: 0;
    margin-top: 70px;
}

.breadcrumb-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.breadcrumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breadcrumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0 0 0 / 64%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.breadcrumb-overlay h1 {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    text-transform: uppercase;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Menu Controls */
.menu-controls {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 70px;
    z-index: 900;
    max-width: 420px;
    margin: 0 auto;
    background: #8eceed;
    border-bottom: 1px solid #7d7d7d;
}

.menu-dropdown-container {
    position: relative;
}

.menu-btn {
    background: linear-gradient(145deg, #000000, #333333);
    color: #fff;
    border: none;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: linear-gradient(145deg, #333333, #000000);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.menu-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.menu-btn.active i {
    transform: rotate(180deg);
}

.menu-items-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    min-width: 250px;
    max-height: calc(100vh - 200px); /* Maximum height before scrolling */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 8px;
    display: none;
    animation: dropdownFade 0.3s ease-out;
    z-index: 1000;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}

.menu-items-dropdown.show {
    display: block;
}

/* Webkit scrollbar styling */
.menu-items-dropdown::-webkit-scrollbar {
    width: 6px;
}

.menu-items-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.menu-items-dropdown::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 6px;
    border: 2px solid transparent;
}

.menu-items-dropdown::-webkit-scrollbar-thumb:hover {
    background-color: #666;
}

.dropdown-menu-section {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease;
    margin: 2px 0;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-menu-section:last-child {
    border-bottom: none;
}

.dropdown-menu-section:hover {
    background: linear-gradient(145deg, #f5f5f5, #e0e0e0);
    color: #000;
    transform: translateX(5px);
    text-decoration: none;
}

/* Non-clickable dropdown category heading (e.g. "Food") */
.menu-items-dropdown .dropdown-menu-heading {
    display: block;
    color: #000;
    font-size: 22px;
    font-weight: 800;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}
.menu-items-dropdown .menu-heading:hover {
    /* Remove hover effects to keep it non-interactive */
    background: #f5f5f5;
    transform: none;
    color: #000;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .menu-items-dropdown {
        background: rgba(40, 40, 40, 0.95);
    }
    
    .menu-section {
        color: #fff;
    }
    
    .menu-section:hover {
        background: linear-gradient(145deg, #333333, #222222);
        color: #fff;
    }
}

.menu-btn:hover {
    background-color: #333;
}

.search-controls {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.search-container {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100vw - 40px);
    max-width: 285px;
    height: 35px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    overflow: hidden;
    transform: translateY(-100%) scaleY(0);
    transform-origin: top;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    padding: 5px;
}

.search-controls.active .search-container {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
    margin-bottom: 10px;
}

.controls-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-controls.active .controls-buttons {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.search-wrapper.active .search-container {
    transform: translateY(-50%) scaleX(1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    outline: none;
    width: 100%;
    background: transparent;
}

.voice-search, .search-close {
    background: none;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 30px;
}

.voice-search {
    color: #4285f4;
}

.voice-search:hover {
    background-color: rgba(66, 133, 244, 0.1);
    border-radius: 50%;
}

.search-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

/* Voice search animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.voice-search.listening {
    animation: pulse 1.5s infinite;
    color: #ea4335;
}

.menu-section.search-hidden {
    display: none;
}

.menu-section.search-highlight {
    animation: highlight 2s;
}

@keyframes highlight {
    0% { background-color: rgba(255, 236, 179, 0.5); }
    100% { background-color: transparent; }
}

.search-btn, .filter-btn {
    background: none;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    border: 1px solid #333;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    top: -1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background-color: #e92b18;
    border-radius: 50%;
    display: none;
}

.filter-btn.has-active-filters::after {
    display: block;
}

.search-btn i, .filter-btn i {
    font-size: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.search-btn:hover, .filter-btn:hover {
    background-color: #f5f5f5;
}
.filter-container {
    position: relative;
}
.filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 12px;
    min-width: 175px;
    z-index: 1000;
}

.filter-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-option span {
    font-size: 14px;
    color: #333;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 1px;
}

/* Hide items based on filters */
.menu-item.filter-hidden {
    display: none !important;
}
.social-link img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: opacity 0.3s;
}

.social-link:hover img {
    opacity: 0.8;
}

/* Menu Content */
.menu-content {
    padding: 0;
    max-width: 420px;
    margin: 0 auto;
}
.top-content{
	margin-top: 20px;
}
.menu-section {
    margin-bottom: 10px;
    border-radius: 8px;
    scroll-margin-top: 120px; /* This ensures proper scroll positioning */
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
    padding: 15px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
}

.section-title i {
    font-size: 14px;
    color: #666;
}

.section-description {
    font-size: 13px;
    color: #999;
    margin: 5px 0 15px 0;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: normal;
    line-height: 1.4;
    display: block;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-item {
    padding: 12px 0;
    border-bottom: 1px solid #5b5b5b;
}

.menu-item:last-child {
    border-bottom: none;
}

.item-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    justify-content: space-between;
}
.item-content-left {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex: 1;
}
.item-content-right {
    margin-bottom: 6px;
    display: block;
}
.veg-icon, .non-veg-icon, .egg-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1px solid;
    border-radius: 2px;
    position: relative;
}

.veg-icon {
    border-color: #00A14B;
}

.veg-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #00A14B;
    border-radius: 50%;
}

.non-veg-icon {
    border-color: #92282C;
}

.non-veg-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #92282C;
    border-radius: 50%;
}

.egg-icon {
    border-color: #ffec7a;
}

.egg-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #ffec7a;
    border-radius: 50%;
}

.item-name {
    flex-grow: 1;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.item-price {
    font-weight: 600;
    margin: 0;
    font-size: 15px;
    text-align: right;
}

.item-price::before {
    content: '₹';
    margin-right: 1px;
}

.customizable{
	text-align: right;	
	font-size: 10px;	
	letter-spacing: 1px;	
	color: #1200ff;
	cursor: pointer;
}

.item-description {
    font-size: 13px;
    color: #666;
    margin: 0;
    padding-left: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Allergen Section */
.allergen-info {
    padding: 0;
    max-width: 420px;
    margin: 0 auto;
    padding-top: 50px;
}

.allergen-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 800;
}

.allergen-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.allergen-list li {
    font-size: 15px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.allergen-list li i {
    font-size: 14px;
    color: #444;
}


.allergens li i {
    color: #333;
    font-size: 16px;
}

/* Footer Styles */
.menu-footer {
    padding: 20px;
    max-width: 420px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 15px;
    background: #000;
    padding: 10px;
    border-radius: 20px;
}

.tagline {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.note {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.note a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.note a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    color: #999;
    margin: 15px 0 0;
}

/* Mobile Styles */
@media screen and (max-width: 425px) {
    .menu-controls {
        padding: 8px 10px;
        position: sticky;
        top: 47px;
        width: 100%;
        max-width: 100%;
    }

    .breadcrumb-section {
        width: 100%;
        max-width: 100%;
        height: 120px;
        margin-top: 47px;
    }

    .breadcrumb-overlay h1 {
        font-size: 24px;
        padding: 0 15px;
        text-align: center;
    }

    .menu-content {
        padding: 8px 10px;
        margin-top: 20px;
        width: 100%;
        max-width: 100%;
    }

    .search-controls {
        gap: 8px;
    }

    .search-btn, .filter-btn {
        padding: 8px;
    }

    .social-link img {
        width: 26px;
        height: 26px;
    }

    .menu-btn {
        padding: 6px 16px;
        font-size: 13px;
    }

    .allergen-info {
        padding: 8px 10px;
        width: 100%;
        max-width: 100%;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 359px) {
    .menu-controls {
        padding: 6px 8px;
        top: 44px;
    }

    .breadcrumb-section {
        height: 100px;
        margin-top: 44px;
    }

    .breadcrumb-overlay h1 {
        font-size: 20px;
        padding: 0 10px;
    }

    .menu-content {
        padding: 6px 8px;
        margin-top: 15px;
    }

    .search-controls {
        gap: 6px;
    }

    .search-btn, .filter-btn {
        padding: 6px;
    }

    .social-link img {
        width: 24px;
        height: 24px;
    }

    .menu-btn {
        padding: 5px 14px;
        font-size: 12px;
    }

    .allergen-info {
        padding: 6px 8px;
    }
}