* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --background: #FFFBF5;
    --surface: #FFFFFF;
    --primary: #E86A1D;
    --primary-dark: #B84312;
    --gold: #FFB703;
    --heading: #241B17;
    --text: #403630;
    --muted: #8A817A;
    --border: #EDE4DA;
    --veg: #2E8B57;
    --veg-light: #EAF7EF;
    --nonveg: #D64545;
    --nonveg-light: #FFEEEE;
    --shadow: 0 8px 30px rgba(72, 42, 20, 0.07);
    --shadow-hover: 0 12px 35px rgba(72, 42, 20, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
}

.restaurant-logo-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.restaurant-logo {
    display: block;
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
}

.restaurant-logo-wrapper .brand-icon {
    width: 64px;
    height: 64px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 28px;
}
.restaurant-header-wrapper {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            var(--primary-dark) 0%,
            var(--primary) 55%,
            #F28A32 100%
        );
    color: white;
    padding: 48px 20px 80px;
    text-align: center;
    box-shadow:
        0 10px 35px
        rgba(184, 67, 18, 0.18);
}

.restaurant-header-wrapper::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 183, 3, 0.16);
    top: -160px;
    right: -80px;
}

.restaurant-header-wrapper::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    bottom: -140px;
    left: -80px;
}

.restaurant-header {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: auto;
}

.brand-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 18px;
    font-size: 27px;
    backdrop-filter: blur(10px);
}

.restaurant-name {
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.2;
}

.tagline {
    margin-top: 10px;
    color: rgba(255,255,255,.92);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: -38px auto 0;
    padding: 0 18px 60px;
    position: relative;
    z-index: 5;
}

.menu-toolbar {
    background: rgba(255,255,255,.97);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    box-shadow:
        0 12px 35px
        rgba(72,42,20,.10);
    backdrop-filter: blur(15px);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    font-size: 25px;
    color: var(--muted);
    line-height: 1;
    transform: rotate(-20deg);
    pointer-events: none;
}

#searchInput {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    background: var(--background);
    color: var(--heading);
    padding: 0 50px;
    font-size: 14px;
    transition: .25s;
}

#searchInput::placeholder {
    color: var(--muted);
}

#searchInput:focus {
    border-color: var(--primary);
    background: white;
    box-shadow:
        0 0 0 4px
        rgba(232,106,29,.09);
}

.clear-search {
    position: absolute;
    right: 12px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #F0E8E0;
    color: var(--text);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    cursor: pointer;
}

.clear-search:hover {
    background: var(--border);
}

.filter-row {
    display: flex;
    gap: 9px;
    margin-top: 13px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 15px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: white;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: .25s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow:
        0 5px 14px
        rgba(232,106,29,.22);
}

.filter-count {
    background: rgba(255,255,255,.25);
    padding: 1px 7px;
    border-radius: 20px;
    font-size: 11px;
}

.mini-food-icon {
    width: 15px;
    height: 15px;
    border: 2px solid;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-food-icon span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.veg-icon {
    border-color: var(--veg);
}

.veg-icon span {
    background: var(--veg);
}

.nonveg-icon {
    border-color: var(--nonveg);
}

.nonveg-icon span {
    background: var(--nonveg);
}

.result-info {
    padding: 22px 4px 12px;
    color: var(--muted);
    font-size: 13px;
}

.result-info strong {
    color: var(--heading);
}

.category {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .25s ease;
}

.category:hover {
    box-shadow: var(--shadow-hover);
}

.category-header {
    padding: 20px 22px 15px;
    background:
        linear-gradient(
            180deg,
            #FFFFFF 0%,
            #FFFCF8 100%
        );
}

.category-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.category-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.category-title {
    color: var(--heading);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-line {
    width: 45px;
    height: 3px;
    background: var(--gold);
    border-radius: 20px;
}

.category-count {
    flex-shrink: 0;
    background: #FFF3E9;
    color: var(--primary-dark);
    border: 1px solid #F8D8C0;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.category-food-type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
}

.category-food-type.veg {
    color: var(--veg);
}

.category-food-type.nonveg {
    color: var(--nonveg);
}

.category-meta .food-indicator {
    margin-top: 0;
}

.items {
    border-top: 1px solid var(--border);
}

.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 22px;
    border-bottom: 1px solid #F2EBE4;
    transition:
        background .2s ease,
        padding-left .2s ease;
}

.item:last-child {
    border-bottom: none;
}

.item:hover {
    background: #FFFBF7;
    padding-left: 27px;
}

.item-left {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.food-indicator {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    border: 2px solid;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.food-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.food-indicator.veg {
    border-color: var(--veg);
    background: var(--veg-light);
}

.food-indicator.veg .food-dot {
    background: var(--veg);
}

.food-indicator.nonveg {
    border-color: var(--nonveg);
    background: var(--nonveg-light);
}

.food-indicator.nonveg .food-dot {
    background: var(--nonveg);
}

.food-details {
    min-width: 0;
}

.food-name {
    color: var(--heading);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.food-description {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.price {
    flex-shrink: 0;
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 55px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    border-radius: 20px;
    background: #FFF3E9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.empty-state h3 {
    color: var(--heading);
    font-size: 18px;
}

.empty-state p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.empty-state button,
.error-card button {
    margin-top: 18px;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    background: var(--primary);
    color: white;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.loading {
    text-align: center;
    padding: 65px 20px;
    color: var(--muted);
}

.loading-spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto 15px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-card {
    text-align: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 45px 20px;
    box-shadow: var(--shadow);
}

.error-icon {
    font-size: 35px;
    margin-bottom: 10px;
}

.error-card h3 {
    color: var(--heading);
}

.error-card p {
    color: var(--muted);
    margin-top: 5px;
    font-size: 13px;
}

.footer {
    text-align: center;
    padding: 25px 15px 35px;
    color: var(--muted);
    font-size: 12px;
}

.footer small {
    display: block;
    margin-top: 4px;
    opacity: .7;
}

@media (max-width: 768px) {

    .restaurant-header-wrapper {
        padding: 38px 18px 72px;
    }

    .restaurant-name {
        font-size: 29px;
    }

    .tagline {
        font-size: 14px;
    }

    .container {
        margin-top: -32px;
        padding: 0 12px 45px;
    }

    .menu-toolbar {
        border-radius: 17px;
        padding: 13px;
    }

    .category {
        border-radius: 15px;
        margin-bottom: 14px;
    }

    .category-header {
        padding: 17px 16px 13px;
    }

    .category-title {
        font-size: 18px;
    }

    .category-line {
        width: 30px;
    }

    .category-meta {
        margin-top: 1px;
    }

    .item {
        padding: 14px 16px;
    }

    .item:hover {
        padding-left: 16px;
    }

    .food-name {
        font-size: 14px;
    }

    .price {
        font-size: 15px;
    }
}

@media (max-width: 480px) {

    .restaurant-header-wrapper {
        padding: 30px 15px 62px;
    }

    .brand-icon {
        width: 50px;
        height: 50px;
        font-size: 23px;
        border-radius: 15px;
    }

    .restaurant-name {
        font-size: 25px;
    }

    .tagline {
        font-size: 13px;
    }

    .container {
        padding: 0 10px 35px;
    }

    .menu-toolbar {
        padding: 11px;
        border-radius: 15px;
    }

    #searchInput {
        height: 48px;
        font-size: 13px;
    }

    .filter-row {
        margin-top: 10px;
    }

    .filter-btn {
        min-height: 35px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .category-heading {
        align-items: flex-start;
    }

    .category-title-row {
        gap: 8px;
    }

    .category-title {
        white-space: normal;
        font-size: 17px;
    }

    .category-count {
        font-size: 10px;
        padding: 4px 8px;
    }

    .category-meta {
        margin-top: 0;
    }

    .item {
        padding: 13px 14px;
        gap: 10px;
    }

    .item-left {
        gap: 9px;
    }

    .food-indicator {
        width: 16px;
        height: 16px;
    }

    .food-dot {
        width: 7px;
        height: 7px;
    }

    .food-name {
        font-size: 13px;
    }

    .food-description {
        font-size: 11px;
    }

    .price {
        font-size: 14px;
    }
}