:root {
    --ink: #241313;
    --muted: #7b6666;
    --line: #f0d6d6;
    --paper: #ffffff;
    --mist: #fff6f4;
    --brand: #e31b23;
    --brand-dark: #b81219;
    --accent: #ff7a00;
    --warn: #f59e0b;
    --success: #16a34a;
    --cream: #fff1df;
    --rose: #fff0f1;
    --shadow: 0 18px 44px rgba(146, 18, 25, 0.12);
    --blue-ink: #071f3f;
    --soft-bg: #eef3f8;
    --food-yellow: #ffc20e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 205, 87, 0.24), transparent 28%),
        linear-gradient(180deg, #fff8f3 0%, #fff6f4 42%, #ffffff 100%);
    font-family: "Be Vietnam Pro", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.site-header {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(227, 27, 35, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1120px;
    padding: 14px 18px;
}

.brand {
    align-items: center;
    display: flex;
    font-size: 20px;
    font-weight: 900;
    gap: 10px;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--brand), #ff6a00);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(227, 27, 35, 0.28);
    color: #fff;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 10px;
}

.nav-link {
    border-radius: 999px;
    color: var(--muted);
    font-weight: 800;
    padding: 9px 13px;
}

.nav-link:hover,
.nav-link.active {
    background: var(--rose);
    color: var(--brand);
}

.container {
    margin: 0 auto;
    max-width: 1120px;
    padding: 24px 18px 42px;
}

.hero {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(150, 12, 18, 0.94), rgba(227, 27, 35, 0.68) 44%, rgba(255, 122, 0, 0.22)),
        url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1600&q=80") center/cover;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(176, 18, 26, 0.22);
    color: #fff;
    display: grid;
    min-height: 320px;
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    content: "";
    height: 220px;
    position: absolute;
    right: -72px;
    top: -78px;
    width: 220px;
}

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

.hero h1 {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 12px;
    max-width: 720px;
}

.hero p {
    font-size: 17px;
    margin: 0;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.pill {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    min-height: 36px;
    padding: 8px 12px;
}

.quick-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: -24px 18px 24px;
    position: relative;
    z-index: 2;
}

.quick-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 14px;
}

.quick-item strong {
    color: var(--brand);
    display: block;
    font-size: 15px;
}

.quick-item span {
    color: var(--muted);
    font-size: 13px;
}

.collection-section {
    margin: 28px 0 8px;
}

.collection-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.collection-card {
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(7, 31, 63, 0.08);
    display: grid;
    gap: 6px;
    min-height: 128px;
    padding: 18px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.collection-card:hover {
    box-shadow: 0 22px 48px rgba(7, 31, 63, 0.13);
    transform: translateY(-3px);
}

.collection-card span {
    font-size: 28px;
}

.collection-card strong {
    color: var(--blue-ink);
    font-size: 18px;
    font-weight: 900;
}

.collection-card em {
    color: #64748b;
    font-size: 13px;
    font-style: normal;
}

.toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin: 18px 0 22px;
}

.search-box {
    background: var(--paper);
    border: 2px solid transparent;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(146, 18, 25, 0.09);
    min-width: min(100%, 430px);
    outline: none;
    padding: 14px 16px;
}

.search-wrap {
    min-width: min(100%, 460px);
    position: relative;
}

.search-wrap .search-box {
    min-width: 100%;
}

.search-results {
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 14px;
    box-shadow: 0 22px 58px rgba(7, 31, 63, 0.16);
    display: none;
    left: 0;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 20;
}

.search-results.is-open {
    display: grid;
    gap: 6px;
}

.search-result-item {
    align-items: center;
    border-radius: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    padding: 9px;
}

.search-result-item:hover {
    background: #f6f8fb;
}

.search-result-item img {
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    width: 58px;
}

.search-result-item strong {
    color: var(--blue-ink);
    display: block;
    font-weight: 900;
}

.search-result-item span {
    color: #64748b;
    display: block;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-rating {
    color: #f59e0b;
    font-size: 13px;
    font-weight: 900;
}

.search-empty {
    color: #64748b;
    padding: 14px;
    text-align: center;
}

.search-box:focus {
    border-color: rgba(227, 27, 35, 0.42);
}

.section-title {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 26px 0 14px;
}

.section-title h2 {
    font-size: 24px;
    margin: 0;
}

.section-title span {
    color: var(--muted);
    font-size: 14px;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dish-section {
    margin-top: 26px;
}

.rail-shell {
    position: relative;
}

.dish-rail {
    display: grid;
    gap: 16px;
    grid-auto-columns: minmax(238px, 288px);
    grid-auto-flow: column;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.dish-rail::-webkit-scrollbar {
    display: none;
}

.store-rail {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.store-card {
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(7, 31, 63, 0.08);
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.store-card:hover {
    box-shadow: 0 22px 48px rgba(7, 31, 63, 0.13);
    transform: translateY(-3px);
}

.store-card-cover {
    aspect-ratio: 16 / 7;
    background-color: #dbe5ef;
    background-position: center;
    background-size: cover;
}

.store-card-body {
    display: grid;
    gap: 6px;
    padding: 14px;
}

.store-card-body strong {
    color: var(--blue-ink);
    font-size: 17px;
    font-weight: 900;
}

.store-card-body span {
    color: #64748b;
    font-size: 13px;
}

.store-card-body em {
    color: #f59e0b;
    font-style: normal;
    font-weight: 900;
}

.rail-btn {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    font-size: 30px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    position: absolute;
    top: 43%;
    transform: translateY(-50%);
    width: 42px;
    z-index: 3;
}

.rail-btn:hover {
    background: var(--brand);
    color: #fff;
}

.rail-prev {
    left: -12px;
}

.rail-next {
    right: -12px;
}

.dish-card,
.store-panel,
.admin-panel,
.form-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.dish-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.dish-card:hover {
    box-shadow: 0 22px 48px rgba(146, 18, 25, 0.16);
    transform: translateY(-3px);
}

.dish-image {
    aspect-ratio: 16 / 10;
    background: #d1d5db;
    object-fit: cover;
    width: 100%;
}

.dish-media {
    position: relative;
}

.favorite-btn {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(36, 19, 19, 0.16);
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    font-size: 20px;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 38px;
    z-index: 2;
}

.favorite-btn.is-active {
    background: var(--brand);
    color: #fff;
}

.dish-media .badge {
    bottom: 10px;
    left: 10px;
    position: absolute;
}

.dish-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 15px;
}

.dish-title {
    font-size: 18px;
    font-weight: 900;
    margin: 0;
}

.dish-meta,
.dish-address,
.muted {
    color: var(--muted);
}

.dish-address {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    font-size: 13px;
    min-height: 40px;
    overflow: hidden;
}

.rating {
    align-items: center;
    color: #f59e0b;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    gap: 4px;
}

.rating-large {
    background: #fff7ed;
    border-radius: 999px;
    font-size: 16px;
    padding: 7px 11px;
}

.price {
    color: var(--brand);
    font-size: 19px;
    font-weight: 900;
}

.badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 9px;
    width: fit-content;
}

.badge-today {
    background: #ffe7e8;
    color: var(--brand);
}

.badge-open {
    background: #dcfce7;
    color: #166534;
}

.badge-closed {
    background: #fef3c7;
    color: #92400e;
}

.btn {
    align-items: center;
    background: linear-gradient(135deg, var(--brand), #ff4d2e);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(227, 27, 35, 0.22);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
}

.btn:hover {
    background: var(--brand-dark);
}

.btn.secondary {
    background: var(--cream);
    box-shadow: none;
    color: var(--brand-dark);
}

.btn.danger {
    background: #dc2626;
}

.detail-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.35fr 0.65fr;
}

.detail-image {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    box-shadow: var(--shadow);
    object-fit: cover;
    width: 100%;
}

.store-panel,
.admin-panel,
.form-panel {
    padding: 18px;
}

.store-panel h2,
.admin-panel h2,
.form-panel h2 {
    margin: 0 0 12px;
}

.store-list {
    display: grid;
    gap: 12px;
}

.store-result {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
}

.store-result-head,
.store-result-meta {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.store-result p {
    color: var(--muted);
    margin: 8px 0 12px;
}

.store-result-meta {
    color: var(--muted);
    font-size: 13px;
    justify-content: flex-start;
}

.info-row {
    border-top: 1px solid var(--line);
    padding: 12px 0;
}

.info-row:first-of-type {
    border-top: 0;
}

.admin-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 0.8fr 1.2fr;
}

label {
    color: var(--muted);
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin: 12px 0 6px;
}

input,
select,
textarea {
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    min-height: 40px;
    padding: 9px 10px;
    width: 100%;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.checkline {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.checkline input {
    min-height: auto;
    width: auto;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.notice-stack {
    display: grid;
    gap: 10px;
    position: fixed;
    right: 16px;
    top: 76px;
    width: min(360px, calc(100vw - 32px));
    z-index: 100;
}

.notice {
    background: #2a0b0d;
    border-left: 5px solid var(--brand);
    border-radius: 12px;
    box-shadow: var(--shadow);
    color: #fff;
    display: none;
    font-weight: 700;
    padding: 13px 14px;
}

.notice.success {
    border-left-color: var(--success);
}

.notice.error {
    border-left-color: #ef4444;
}

.empty {
    background: var(--paper);
    border: 1px dashed #f0b6b9;
    border-radius: 12px;
    color: var(--muted);
    padding: 24px;
    text-align: center;
}

@media (max-width: 860px) {
    .grid,
    .detail-layout,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 260px;
        padding: 24px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .quick-strip {
        grid-template-columns: 1fr;
        margin: 14px 0 22px;
    }

    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rail-btn {
        display: none;
    }
}

@media (max-width: 560px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .container {
        padding-top: 16px;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }
}

/* App shell inspired by modern food-ordering webapps */
.app-header {
    background: #fff;
    border-bottom: 1px solid #edf1f5;
    position: sticky;
    top: 0;
    z-index: 30;
}

.topbar {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: auto minmax(220px, 320px) 1fr auto;
    margin: 0 auto;
    max-width: 1180px;
    min-height: 76px;
    padding: 0 18px;
}

.app-logo {
    color: #0b63b6;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.delivery-box,
.top-search {
    align-items: center;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
}

.delivery-box strong {
    color: #0d2340;
    font-size: 12px;
    white-space: nowrap;
}

.delivery-box span {
    color: #6b7a90;
    font-size: 13px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.geo-btn {
    align-items: center;
    background: #f4f7fb;
    border: 1px solid #d7dee8;
    border-radius: 999px;
    color: #0d2340;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    margin-left: auto;
    width: 30px;
}

.geo-btn:hover,
.geo-action:hover {
    background: #ffc20e;
    border-color: #ffc20e;
}

.top-search {
    background: #f3f6fa;
    border-color: transparent;
    position: relative;
}

.top-search input {
    background: transparent;
    border: 0;
    min-height: 38px;
    outline: none;
    padding: 0;
}

.top-search-results {
    top: calc(100% + 10px);
    width: min(560px, 92vw);
}

.login-trigger {
    background: #ffc20e;
    border: 0;
    border-radius: 8px;
    color: #0b2345;
    cursor: pointer;
    font-weight: 900;
    min-height: 40px;
    padding: 0 16px;
}

.store-page,
.checkout-page {
    background: #eef3f8;
    min-height: calc(100vh - 76px);
}

.store-hero {
    background-position: center;
    background-size: cover;
    height: 360px;
    position: relative;
}

.store-hero::after {
    background:
        linear-gradient(180deg, rgba(7, 31, 63, 0.08), rgba(7, 31, 63, 0.34)),
        linear-gradient(90deg, rgba(255, 194, 14, 0.34), transparent 38%);
    content: "";
    inset: 0;
    position: absolute;
}

.store-head {
    align-items: center;
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(7, 31, 63, 0.12);
    display: flex;
    justify-content: space-between;
    margin-top: -74px;
    max-width: 1180px;
    min-height: 150px;
    padding: 28px 34px;
    position: relative;
    z-index: 2;
}

.store-head h1,
.checkout-title h1 {
    color: var(--blue-ink);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.store-head p {
    color: #53647a;
    margin: 0 0 10px;
}

.store-line {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-line a {
    color: #2369d8;
    font-weight: 700;
    text-decoration: underline;
}

.soft-fav {
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(13, 35, 64, 0.12);
    color: #0d2340;
    cursor: pointer;
    font-weight: 800;
    min-height: 38px;
    padding: 0 16px;
}

.menu-tools {
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 16px;
    box-shadow: 0 14px 38px rgba(7, 31, 63, 0.07);
    margin-top: 16px;
    max-width: 1180px;
    padding: 18px;
}

.menu-search {
    background: #f4f7fb;
    border: 0;
    border-radius: 12px;
    color: var(--blue-ink);
    font-weight: 600;
    min-height: 50px;
    padding: 0 18px;
}

.category-rail {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.category-rail a {
    background: #eef3f8;
    border-radius: 999px;
    color: #53647a;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 900;
    padding: 10px 15px;
    text-transform: uppercase;
}

.category-rail a:first-child {
    background: #0d2340;
    color: #fff;
}

.category-rail span {
    background: #d9ebff;
    border-radius: 999px;
    color: #2369d8;
    margin-left: 4px;
    padding: 1px 7px;
}

.restaurant-layout,
.checkout-layout {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) 360px;
    margin: 0 auto;
    max-width: 1180px;
    padding: 32px 18px 72px;
}

.menu-column {
    min-width: 0;
}

.menu-category h2 {
    color: var(--blue-ink);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
}

.menu-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-bottom: 36px;
}

.menu-card {
    background: #fff;
    border: 1px solid #dfe7f0;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(7, 31, 63, 0.08);
    overflow: hidden;
    position: relative;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.menu-card:hover {
    border-color: rgba(255, 194, 14, 0.8);
    box-shadow: 0 22px 52px rgba(7, 31, 63, 0.13);
    transform: translateY(-3px);
}

.menu-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

.menu-card-body {
    display: grid;
    gap: 9px;
    padding: 15px 16px 18px;
}

.menu-card h3 {
    color: var(--blue-ink);
    font-size: 17px;
    font-weight: 900;
    margin: 0;
}

.menu-card p,
.menu-card span {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

.menu-card strong {
    color: var(--blue-ink);
    font-size: 18px;
    font-weight: 900;
}

.add-float {
    background: var(--food-yellow);
    border: 0;
    border-radius: 10px;
    bottom: 14px;
    box-shadow: 0 12px 24px rgba(255, 194, 14, 0.3);
    color: #0d2340;
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    height: 28px;
    position: absolute;
    right: 14px;
    width: 28px;
}

.cart-panel {
    align-self: start;
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(7, 31, 63, 0.1);
    min-height: 300px;
    padding: 22px;
    position: sticky;
    top: 96px;
}

.cart-panel h2 {
    color: var(--blue-ink);
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 18px;
}

.cart-empty {
    align-items: center;
    color: #8a97a8;
    display: flex;
    min-height: 160px;
    justify-content: center;
    text-align: center;
}

.cart-line,
.checkout-line {
    border-bottom: 1px solid #edf1f5;
    display: grid;
    gap: 6px;
    padding: 14px 0;
}

.cart-line strong,
.checkout-line strong {
    color: var(--blue-ink);
    font-weight: 900;
}

.cart-line small,
.checkout-line small {
    color: #64748b;
}

.cart-total {
    align-items: center;
    display: flex;
    color: var(--blue-ink);
    font-size: 18px;
    font-weight: 900;
    justify-content: space-between;
    margin: 18px 0;
    padding-top: 4px;
}

.checkout-link {
    background: linear-gradient(135deg, #ff3838, #ff6a3a);
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(255, 56, 56, 0.25);
    min-height: 48px;
    width: 100%;
}

.checkout-link.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.item-modal,
.auth-modal {
    align-items: flex-start;
    background: rgba(13, 35, 64, 0.48);
    display: none;
    inset: 0;
    justify-content: center;
    overflow-y: auto;
    padding: 36px 18px;
    position: fixed;
    z-index: 80;
}

.item-modal.is-open,
.auth-modal.is-open {
    display: flex;
}

.item-dialog {
    background: #fff;
    border-radius: 14px;
    max-width: 760px;
    overflow: hidden;
    position: relative;
    width: min(100%, 760px);
}

.item-close,
.auth-close {
    background: #fff;
    border: 0;
    border-radius: 999px;
    color: #0d2340;
    cursor: pointer;
    font-size: 28px;
    font-weight: 900;
    height: 54px;
    position: absolute;
    right: 16px;
    top: 12px;
    width: 54px;
    z-index: 2;
}

.item-modal-image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

.item-main,
.option-group,
.item-footer {
    padding: 22px 28px;
}

.item-title-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.item-title-row h2 {
    color: #0d2340;
    font-size: 26px;
    margin: 0 0 8px;
}

.item-title-row strong {
    color: #0d2340;
    font-size: 26px;
}

.item-main textarea {
    border: 1px solid #d9e0ea;
    border-radius: 10px;
    color: #0d2340;
    font-weight: 800;
    margin-top: 18px;
    min-height: 76px;
}

.option-group {
    border-top: 10px solid #f2f5f8;
}

.option-group h3 {
    color: #627089;
    font-size: 17px;
    margin: 0 0 12px;
}

.option-group h3 span {
    font-weight: 500;
}

.option-group label {
    align-items: center;
    border-bottom: 1px solid #edf1f5;
    color: #0d2340;
    display: flex;
    font-size: 18px;
    font-weight: 500;
    justify-content: space-between;
    margin: 0;
    padding: 13px 0;
}

.option-group input {
    margin-right: 12px;
    min-height: auto;
    width: auto;
}

.item-footer {
    align-items: center;
    background: #fff;
    border-top: 10px solid #f2f5f8;
    display: grid;
    gap: 12px;
    grid-template-columns: 38px 38px 38px 1fr;
    position: sticky;
    bottom: 0;
}

.item-footer > button:not(.btn) {
    background: #eef1f5;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 22px;
    font-weight: 900;
    height: 38px;
}

.add-cart-btn {
    background: #ffc20e;
    box-shadow: none;
    color: #0d2340;
    font-size: 18px;
}

.auth-card {
    background: #fff;
    border-radius: 14px;
    max-width: 420px;
    padding: 28px;
    position: relative;
    width: min(100%, 420px);
}

.auth-card h2 {
    color: #0d2340;
    margin: 0 0 8px;
}

.auth-send {
    margin: 12px 0;
    width: 100%;
}

.checkout-title {
    background: #fff;
    max-width: none;
    padding-bottom: 34px;
    padding-left: max(18px, calc((100vw - 1180px) / 2 + 18px));
    padding-top: 44px;
}

.checkout-card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 24px;
}

.checkout-card h2 {
    color: #142236;
    margin: 0 0 22px;
}

.checkout-warning {
    color: #e31b23;
    font-weight: 800;
}

.address-row {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.geo-action {
    background: #fff8dc;
    border: 1px solid #ffd45c;
    border-radius: 10px;
    color: #0d2340;
    cursor: pointer;
    font-weight: 900;
    min-height: 44px;
    padding: 0 14px;
    white-space: nowrap;
}

.location-meta {
    color: #16a34a;
    font-size: 13px;
    font-weight: 800;
    margin: 8px 0 0;
}

.switch-row,
.checkout-card-head,
.summary-row,
.summary-total {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.switch-row input {
    width: auto;
}

.checkout-card-head a,
.promo-box button {
    color: #2369d8;
    font-weight: 900;
}

.promo-box,
.care-box {
    align-items: center;
    background: #f6f8fb;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding: 14px;
}

.promo-input-box {
    gap: 10px;
}

.promo-input-box input {
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    flex: 1;
    font-weight: 800;
    min-width: 0;
    padding: 11px 12px;
    text-transform: uppercase;
}

.promo-input-box button {
    background: #ffbf00;
    border-radius: 8px;
    color: #0d2340;
    padding: 11px 14px;
    white-space: nowrap;
}

.promo-box button {
    background: transparent;
    border: 0;
    cursor: pointer;
}

.promo-input-box button {
    background: #ffbf00;
}

.summary-row,
.summary-total {
    color: #334155;
    font-size: 17px;
    padding: 10px 0;
}

.summary-total {
    border-top: 1px solid #edf1f5;
    color: #0d2340;
    font-size: 20px;
    font-weight: 900;
    margin-top: 10px;
}

.order-btn {
    background: #ffc20e;
    box-shadow: none;
    color: #0d2340;
    font-size: 18px;
    margin-top: 18px;
    width: 100%;
}

.order-btn:disabled {
    background: #e5e7eb;
    color: #a0a8b3;
    cursor: not-allowed;
}

@media (max-width: 980px) {
    .topbar,
    .restaurant-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 14px 18px;
    }

    .store-hero {
        height: 220px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-panel {
        position: static;
    }
}

@media (max-width: 620px) {
    .store-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

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

    .item-footer {
        grid-template-columns: 38px 38px 38px;
    }

    .add-cart-btn {
        grid-column: 1 / -1;
    }
}

/* Polished ordering modal and product surface */
body.modal-open {
    overflow: hidden;
}

.topbar {
    max-width: 1240px;
    min-height: 72px;
    padding: 0 22px;
}

.delivery-box,
.top-search,
.login-trigger {
    border-radius: 12px;
    min-height: 46px;
}

.delivery-box,
.top-search {
    box-shadow: 0 8px 24px rgba(7, 31, 63, 0.05);
}

.item-modal,
.auth-modal {
    background: rgba(13, 35, 64, 0.58);
    backdrop-filter: blur(3px);
    padding: 18px;
}

.item-dialog {
    border-radius: 18px;
    box-shadow: 0 30px 100px rgba(7, 31, 63, 0.36);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    max-height: calc(100vh - 36px);
    max-width: 640px;
    overflow: hidden;
    width: min(100%, 640px);
}

.item-close {
    box-shadow: 0 16px 42px rgba(7, 31, 63, 0.22);
    right: -22px;
    top: -22px;
}

.item-modal-image {
    aspect-ratio: 16 / 7.4;
    background: #eef3f8;
    display: block;
}

.item-main,
.option-group,
.item-footer {
    padding-left: 22px;
    padding-right: 22px;
}

.item-main {
    padding-bottom: 16px;
    padding-top: 18px;
}

.item-title-row {
    align-items: flex-start;
}

.item-title-row h2 {
    color: var(--blue-ink);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.item-title-row p {
    color: #273f60;
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 8px;
}

.item-title-row strong {
    color: var(--blue-ink);
    font-size: 24px;
    font-weight: 900;
    white-space: nowrap;
}

.item-main textarea {
    border-color: #d8e0eb;
    border-radius: 14px;
    min-height: 58px;
    padding: 13px 14px;
}

.item-dialog [data-option-container] {
    min-height: 0;
    overflow-y: auto;
}

.option-group {
    border-top: 8px solid #f2f5f8;
    padding-bottom: 12px;
    padding-top: 16px;
}

.option-group h3 {
    color: #63738c;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
}

.option-group label {
    font-size: 15px;
    min-height: 42px;
    padding: 8px 0;
}

.option-group label > span:first-child {
    align-items: center;
    display: flex;
}

.option-group label > span:last-child {
    color: #64748b;
}

.option-group input {
    accent-color: #ffc20e;
    height: 19px;
    margin-right: 12px;
    width: 19px;
}

.item-footer {
    box-shadow: 0 -18px 40px rgba(7, 31, 63, 0.09);
    grid-template-columns: 36px 36px 36px 1fr;
    padding-bottom: 16px;
    padding-top: 16px;
    z-index: 2;
}

.item-footer > button:not(.btn) {
    border-radius: 10px;
    height: 36px;
}

.item-footer > strong {
    color: var(--blue-ink);
    font-size: 17px;
    text-align: center;
}

.add-cart-btn {
    background: #ffc20e;
    border-radius: 14px;
    color: var(--blue-ink);
    font-size: 16px;
    min-height: 44px;
}

@media (max-width: 760px) {
    .item-close {
        right: 10px;
        top: 10px;
    }

    .item-title-row {
        display: grid;
    }
}

.site-footer {
    background: #071f3f;
    color: #dbeafe;
    margin-top: 36px;
}

.footer-inner {
    display: grid;
    gap: 28px;
    grid-template-columns: 1.2fr 0.6fr 1fr;
    margin: 0 auto;
    max-width: 1180px;
    padding: 42px 18px;
}

.footer-brand strong {
    color: #fff;
    display: block;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
}

.footer-brand p,
.footer-col a,
.footer-branch span,
.footer-bottom {
    color: #b6c7dc;
}

.footer-hotline {
    color: #fff;
    font-weight: 900;
    margin-top: 14px;
}

.footer-hotline a {
    color: #ffc20e;
}

.footer-col {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-col h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 6px;
}

.footer-branch {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 3px;
    padding-bottom: 10px;
}

.footer-branch strong {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1180px;
    padding: 16px 18px;
}

.floating-cart {
    align-items: center;
    background: linear-gradient(135deg, #ffc20e, #ffdf62);
    border: 1px solid rgba(7, 31, 63, 0.08);
    border-radius: 18px;
    bottom: 22px;
    box-shadow: 0 18px 42px rgba(7, 31, 63, 0.22);
    color: var(--blue-ink);
    display: none;
    font-weight: 900;
    height: 58px;
    justify-content: center;
    padding: 0;
    position: fixed;
    right: 22px;
    width: 58px;
    z-index: 70;
}

.floating-cart.is-visible {
    display: inline-flex;
}

.floating-cart-icon {
    font-size: 24px;
}

.floating-cart-count {
    align-items: center;
    background: #ff3838;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    height: 22px;
    justify-content: center;
    min-width: 22px;
    padding: 0 6px;
    position: absolute;
    right: -7px;
    top: -7px;
}

@media (max-width: 860px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .floating-cart {
        bottom: 14px;
        right: 14px;
        left: auto;
    }
}

/* AdminCP */
.admin-login {
    align-items: center;
    background: linear-gradient(135deg, #071f3f, #163d72);
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 72px);
    padding: 28px;
}

.admin-login-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
    max-width: 430px;
    padding: 34px;
    width: 100%;
}

.admin-login-brand,
.admin-logo {
    color: #0b63b6;
    font-size: 24px;
    font-weight: 900;
}

.admin-login-card h1 {
    color: var(--blue-ink);
    font-size: 28px;
    font-weight: 900;
    margin: 14px 0 8px;
}

.admin-login-card p {
    color: #64748b;
}

.admin-login-btn {
    margin-top: 18px;
    width: 100%;
}

.admin-shell {
    background: #eef3f8;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: calc(100vh - 72px);
}

.admin-sidebar {
    background: #071f3f;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
}

.admin-logo {
    color: #fff;
}

.admin-logo span {
    color: #ffc20e;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar nav a,
.admin-logout {
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
    padding: 12px 14px;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-logout {
    margin-top: auto;
}

.admin-main,
.admin-content {
    padding: 28px;
    min-width: 0;
}

.admin-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.admin-top span {
    color: #64748b;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-top h1 {
    color: var(--blue-ink);
    font-size: 32px;
    font-weight: 900;
    margin: 4px 0 0;
}

.admin-view-site {
    background: #ffc20e;
    border-radius: 12px;
    color: var(--blue-ink);
    font-weight: 900;
    padding: 12px 16px;
}

.admin-stats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 18px;
}

.admin-stats article,
.admin-stats > div,
.admin-card {
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(7, 31, 63, 0.08);
}

.admin-stats article,
.admin-stats > div {
    padding: 20px;
}

.admin-stats span {
    color: #64748b;
    font-weight: 800;
}

.admin-stats strong {
    color: var(--blue-ink);
    display: block;
    font-size: 34px;
    font-weight: 900;
}

.admin-card {
    padding: 22px;
}

.admin-card h2 {
    color: var(--blue-ink);
    font-size: 21px;
    font-weight: 900;
    margin: 0 0 16px;
}

.admin-two-col {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(340px, 0.8fr) minmax(0, 1.4fr);
}

.admin-form,
.admin-card form {
    display: grid;
    gap: 12px;
}

.admin-form label,
.admin-card form label {
    color: #52647d;
    font-size: 13px;
    font-weight: 900;
    margin: 0;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-search,
.admin-card form input,
.admin-card form select,
.admin-card form textarea,
.table-tools input {
    background: #f8fafc;
    border: 1px solid #d9e3ef;
    border-radius: 10px;
    color: var(--blue-ink);
    margin-top: 6px;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

.admin-form-row,
.form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-card form input[type="checkbox"] {
    min-height: auto;
    width: auto;
}

.admin-card form button.btn {
    margin-top: 8px;
}

.admin-option-builder {
    background: #f8fafc;
    border: 1px solid #d9e3ef;
    border-radius: 12px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.admin-option-head,
.admin-option-row {
    align-items: center;
    display: grid;
    gap: 10px;
}

.admin-option-head {
    grid-template-columns: minmax(0, 1fr) auto;
}

.admin-option-head strong {
    color: var(--blue-ink);
    display: block;
    font-size: 15px;
    font-weight: 900;
}

.admin-option-head span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.admin-option-group {
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.admin-option-row {
    grid-template-columns: minmax(0, 1fr) 130px 40px;
}

.admin-option-group-title {
    grid-template-columns: minmax(0, 1fr) 120px 92px;
}

.admin-option-row label {
    align-items: center;
    display: flex;
    gap: 6px;
    margin: 0;
}

.admin-option-row button,
.admin-add-option {
    background: #eef3f8;
    border: 0;
    border-radius: 8px;
    color: var(--blue-ink);
    cursor: pointer;
    font-weight: 900;
    min-height: 40px;
    padding: 8px 10px;
}

.admin-option-row button {
    color: #ef233c;
}

.admin-add-option {
    justify-self: start;
}

.admin-check {
    align-items: center;
    display: flex;
    gap: 8px;
}

.admin-check input {
    margin: 0;
    min-height: auto;
    width: auto;
}

.admin-preview {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    object-fit: cover;
    width: 100%;
}

.admin-actions,
.admin-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-quick a {
    background: #eef3f8;
    border-radius: 12px;
    color: var(--blue-ink);
    font-weight: 900;
    padding: 12px 14px;
}

.admin-card-head,
.table-tools {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.admin-search,
.table-tools input {
    max-width: 260px;
    padding: 0 12px;
}

.admin-card table {
    border-collapse: collapse;
    display: block;
    min-width: 820px;
    overflow-x: auto;
    width: 100%;
}

.admin-card table thead,
.admin-card table tbody,
.admin-card table tr {
    width: 100%;
}

.admin-card table th,
.admin-card table td {
    border-bottom: 1px solid #edf1f5;
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
}

.admin-card table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
}

.admin-card table td strong {
    color: var(--blue-ink);
    display: block;
}

.admin-card table td small {
    color: #64748b;
    display: block;
    margin-top: 4px;
    max-width: 280px;
}

.table-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.table-actions a,
.table-actions button {
    background: #eef3f8;
    border: 0;
    border-radius: 8px;
    color: var(--blue-ink);
    cursor: pointer;
    font-weight: 900;
    padding: 8px 10px;
}

.table-actions button {
    color: #ef233c;
}

.table-actions form {
    display: inline-flex;
    gap: 0;
}

.table-actions form input {
    display: none;
}

.admin-pagination,
.table-pagination {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}

.admin-pagination button,
.table-pagination button {
    background: #eef3f8;
    border: 0;
    border-radius: 8px;
    color: var(--blue-ink);
    cursor: pointer;
    font-weight: 900;
    min-width: 34px;
    padding: 8px 10px;
}

.admin-pagination button.active,
.table-pagination button.active {
    background: #ffc20e;
}

@media (max-width: 1100px) {
    .admin-shell,
    .admin-two-col,
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        height: auto;
        position: static;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .admin-option-head,
    .admin-option-row,
    .admin-option-group-title {
        grid-template-columns: 1fr;
    }
}
