* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f6f7f9;
    color: #222
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    width: min(1180px, 92%);
    margin: auto;
    text-align: center;
}

h2.show_resturant {
    display: none;
}

.narrow {
    max-width: 600px
}

.topbar {
    background: #fff;
    box-shadow: 0 2px 12px #0001;
    position: sticky;
    top: 0;
    z-index: 5
}

.nav {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.logo {
    font-size: 9px;
    font-weight: 800;
    color: #0fdb4c
}

.nav nav {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap
}

.nav nav a:hover {
    color: #e63946
}

.hero {
    padding: 0px 0;
    background: linear-gradient(120deg, #fff0ed, #fff)
}

.hero h1 {
    font-size: 42px;
    margin: 0 0 10px
}

.hero p {
    font-size: 15px;
    color: #666
}

.search {
    width: min(700px, 100%);
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    text-align: center;
}

.chips {
    display: none;
    flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    justify-content: center;
}

.chip {
    border: 0;
    background: #fff;
    padding: 10px 16px;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px #0001
}

.chip.active,
.btn.primary {
    margin: 16px;
    background: #e63946;
    color: #fff
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 40px
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 3px 15px #0001;
    margin: 18px 0
}

.food-card {
    padding: 0;
    overflow: hidden
}

.foodimg {
    height: 170px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px
}

.foodimg img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.info {
    padding: 18px
}

.info h3 {
    margin: 6px 0
}

.info p {
    color: #666;
    min-height: 36px
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.btn {
    margin: 0 18px;
    display: inline-block;
    border: 0;
    background: #222;
    color: #fff;
    padding: 10px 16px;
    border-radius: 9px;
    cursor: pointer
}

.full {
    width: 100%
}

label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 600
}

input,
textarea,
select {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff
}

.inline-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center
}

.inline-form>* {
    flex: 1;
    min-width: 130px
}

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding: 14px 0
}

.cartline {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee
}

.qty {
    border: 0;
    background: #eee;
    border-radius: 5px;
    padding: 5px 9px;
    margin: 0 7px
}

.muted {
    color: #777;
    font-size: 14px
}

.error {
    background: #ffe5e5;
    color: #a00;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0
}

.center {
    text-align: center
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px
}

.stats strong {
    display: block;
    font-size: 30px;
    margin-top: 10px
}

.status {
    display: inline-block;
    background: #f1f1f1;
    padding: 5px 9px;
    border-radius: 20px
}

.timeline {
    border-left: 3px solid #e63946;
    padding-left: 18px
}

.timeline-item {
    margin: 12px 0
}

.timeline-item small {
    display: block;
    color: #777;
    margin-top: 4px
}

@media(max-width:700px) {
    .hero h1 {
        font-size: 32px
    }

    .nav {
        align-items: flex-start;
        padding: 12px 0
    }

    .cartline {
        grid-template-columns: 1fr auto
    }

    .cartline>b:last-child {
        grid-column: 1/-1
    }
}

.foodimg {
    height: 190px;
    background: #f1f1f1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px
}

.foodimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.food-admin-preview {
    width: 110px;
    flex: 0 0 110px;
    text-align: center
}

.food-admin-preview img {
    width: 110px;
    height: 80px;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    background: #f1f1f1;
    border: 1px solid #ddd
}

.food-admin-preview small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 5px;
    color: #777;
    font-size: 11px
}

.food-edit-form {
    flex-basis: 100%;
    width: 100%
}

.food-edit-form .file-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 190px;
    flex: 1;
    margin: 0;
    font-weight: 600
}

.food-edit-form .file-label input {
    padding: 7px;
    font-weight: 400
}

.danger {
    background: #b42318
}

@media(max-width:700px) {
    .food-admin-preview {
        width: 90px;
        flex-basis: 90px
    }

    .food-admin-preview img {
        width: 90px;
        height: 70px
    }
}

/* SudhBajar unified responsive app headers */
.app-header .nav {
    min-height: 64px;
    gap: 18px
}

.app-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    white-space: nowrap
}

.app-header .logo span {
    font-size: .78em;
    font-weight: 600;
    opacity: .72
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto
}

.main-nav a {
    padding: 9px 11px;
    border-radius: 9px;
    text-decoration: none
}

.main-nav a:hover {
    background: rgba(0, 0, 0, .06)
}

.main-nav .logout-link {
    font-weight: 700
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(0, 0, 0, .12);
    background: transparent;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 18px;
    cursor: pointer
}

@media(max-width:760px) {
    .app-header .nav {
        position: relative;
        flex-wrap: wrap
    }

    .nav-toggle {
        display: block;
        margin-left: auto
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin-left: 0;
        padding: 8px 0 4px
    }

    .main-nav.open {
        display: flex
    }

    .main-nav a {
        padding: 11px 12px
    }

    .app-header .logo {
        font-size: 1rem
    }
}

.notif-btn {
    margin-left: auto;
    position: relative;
    border: 0;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    /* margin-left: 8px */
}

.notif-count {
    position: absolute;
    top: -6px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 99px;
    background: #d33;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center
}

.notif-panel {
    position: absolute;
    right: 20px;
    top: 58px;
    width: min(360px, calc(100vw - 30px));
    max-height: 420px;
    overflow: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    z-index: 1000
}

.notif-head {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid #eee
}

.notif-head button {
    border: 0;
    background: none;
    cursor: pointer
}

.notif-item {
    padding: 12px;
    border-bottom: 1px solid #eee
}

.notif-item.read {
    opacity: .65
}

.notif-item p {
    margin: 4px 0
}

.notif-item small {
    color: #777
}

@media(max-width:700px) {
    .notif-panel {
        right: 10px;
        top: 54px
    }

    .notif-btn {
        margin-right: 4px
    }
}

/* customize by sonu */
.order_stapes {
    color: green !important;
}

/* SudhBajar mobile header controls */
.brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
    flex: 0 0 38px
}

@media(max-width:760px) {
    .mobile-hide {
        display: none !important
    }

    .app-header .logo {
        gap: 6px
    }

    .app-header .logo .brand-logo {
        width: 36px;
        height: 36px;
        flex-basis: 36px
    }
}

/* Live launch: consistent one-food/one-image card */
.foodimg {
    aspect-ratio: 4/3;
    height: auto;
    min-height: 0;
    background: #f1f1f1
}

.foodimg img {
    aspect-ratio: 4/3;
    object-fit: cover
}

.notif-item[role="button"] {
    cursor: pointer
}

.notif-item[role="button"]:hover {
    background: #fafafa
}