:root {
    --bg-main: #eef2f7;
    --bg-spot: #d9e6ff;
    --panel: #ffffff;
    --ink: #0f172a;
    --ink-soft: #64748b;
    --line: #dbe4f0;
    --brand: #0b63f6;
    --brand-2: #0ea5e9;
    --accent: #0da433;
    --danger: #d84848;
    --shadow: 0 16px 35px rgba(15, 23, 42, 0.11);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Outfit", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1000px 520px at 20% 10%, var(--bg-spot), transparent 65%),
        radial-gradient(700px 450px at 100% -10%, #c6f0ff, transparent 60%),
        var(--bg-main);
}

.noscript {
    margin: 2rem auto;
    width: min(94%, 680px);
    background: #fff1f1;
    border: 1px solid #f6bcbc;
    color: #8d1f1f;
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

#qrMenuApp {
    width: 100%;
    padding: 1.2rem 1rem 6.5rem;
}

.qr-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 12, 24, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 29;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    left: 0;
    top: 0;
    width: min(88vw, 320px);
    height: 100vh;
    background: linear-gradient(165deg, #061630, #0f2c5f);
    color: #e9f4ff;
    transform: translateX(-104%);
    transition: transform 0.26s ease;
    z-index: 30;
    padding: 1.05rem 1.1rem 1.4rem;
    overflow-y: auto;
    box-shadow: 18px 0 35px rgba(0, 0, 0, 0.32);
}

.drawer.open {
    transform: translateX(0);
}

.drawer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-close,
.icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
}

.drawer-close {
    color: #f3f8ff;
    background: rgba(255, 255, 255, 0.14);
}

.drawer-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.place-box {
    margin-top: 1.2rem;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.place-box h2 {
    margin: 0;
    font-size: 1.03rem;
    font-weight: 600;
}

.place-head {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.place-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.3rem;
    flex-shrink: 0;
}

.place-logo-empty {
    display: block;
}

.place-meta {
    display: grid;
    gap: 0.08rem;
}

.place-box p {
    margin: 0;
    font-size: 0.86rem;
    color: #c9def8;
}

.side-list {
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.side-list li {
    font-size: 0.92rem;
    color: #d8e8ff;
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.side-list i {
    color: #90c8ff;
}

.side-actions {
    margin-top: 1.2rem;
    display: grid;
    gap: 0.55rem;
}

.side-action {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f2f7ff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    border-radius: 10px;
    padding: 0.58rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.wifi-card {
    display: grid;
    gap: 0.55rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.72rem 0.8rem;
}

.wifi-row {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.84rem;
    color: #d8e8ff;
}

.wifi-row span {
    color: #adc6e5;
}

.wifi-row strong {
    color: #ffffff;
    font-weight: 600;
}

.side-copy {
    margin-top: 1.2rem;
    font-size: 0.74rem;
    color: #adc6e5;
}

.menu-frame {
    width: min(760px, 100%);
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: menuRise 0.5s ease;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.8rem 0.95rem;
    backdrop-filter: blur(10px);
    background: rgba(10, 26, 56, 0.86);
    color: #f2f8ff;
}

.topbar-title {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 600;
    text-align: center;
}

.topbar-title small {
    font-size: 0.73rem;
    color: #bfd3ee;
    font-weight: 400;
}

.icon-btn {
    color: #f4f8ff;
    background: rgba(255, 255, 255, 0.14);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0;
}

.lang-select {
    min-width: 44px;
    border: 0;
    border-radius: 10px; 
    padding: 0.48rem 0.75rem 0.48rem 0.75rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #dbe9ff;
    background: transparent;
    cursor: pointer;
    appearance: none;
}

.lang-select:focus {
    outline: none;
}

.lang-select option {
    color: #0f172a;
}

.hero {
    padding: 1rem 1rem 0;
}

.hero-card {
    background: linear-gradient(138deg, #052f6a, #0b63f6 55%, #33b6ff);
    color: #ffffff;
    border-radius: 10px;
    padding: 1.15rem 1.05rem;
    overflow: hidden;
    position: relative;
}

.hero-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -50px;
    width: 180px;
    height: 180px;
    border-radius: 10px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.32), transparent 68%);
}

.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}

.hero-card h1 {
    margin: 0.24rem 0 0;
    font-size: 1.42rem;
    line-height: 1.18;
    font-family: "Fraunces", serif;
    font-weight: 700;
}

.hero-card p {
    margin: 0.62rem 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #e3f0ff;
    max-width: 38ch;
}

.menu-inline-alert {
    margin-bottom: 0.8rem;
    padding: 0.72rem 0.82rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.24);
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.45;
}

.menu-loading-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
}

.menu-loading-card {
    min-width: min(280px, 100%);
    padding: 24px 22px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #dbe4f2;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.10);
    text-align: center;
}

.menu-loading-card strong,
.menu-loading-card span {
    display: block;
}

.menu-loading-card strong {
    color: #0f172a;
    font-size: 1rem;
}

.menu-loading-card span {
    margin-top: 6px;
    color: #64748b;
    font-size: 0.84rem;
}

.menu-loading-gif {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 4px solid #dbeafe;
    border-top-color: #2563eb;
    animation: menu-loading-spin 0.8s linear infinite;
}

@keyframes menu-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.menu-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ingredients-inline {
    margin-top: 0.8rem;
}

.waiter-table-field {
    margin-bottom: 1rem;
}

.hero-actions {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.btn {
    border: 0;
    border-radius: 10px;
    padding: 0.56rem 0.88rem;
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-light {
    background: #ffffff;
    color: #0c3f8f;
}

.btn-dark {
    background: rgba(4, 20, 45, 0.52);
    color: #e7f3ff;
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.section {
    padding: 1rem;
}

.section-title {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.section-title h2 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 600;
}

.section-title span {
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.feature-rail {
    margin-top: 0.72rem;
    display: flex;
    overflow-x: auto;
    gap: 0.7rem;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
}

.feature-card {
    flex: 0 0 320px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.72rem;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.11);
}

.feature-thumb {
    width: 72px;
    min-width: 72px;
    height: 72px;
    background: linear-gradient(125deg, var(--tone-a), var(--tone-b));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border-radius: 10px;
    overflow: hidden;
}

.feature-thumb .menu-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-body {
    padding: 0;
    flex: 1;
    min-width: 0;
}

.feature-name {
    margin: 0;
    font-size: 0.93rem;
    font-weight: 600;
}

.feature-sub {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.feature-row {
    margin-top: 0.42rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 0.88rem;
    color: #1358c8;
    font-weight: 600;
}

.add-mini,
.add-btn {
    border: 0;
    color: #fff;
    background: var(--accent);
    border-radius: 10px;
    cursor: pointer;
}

.add-mini {
    width: 33px;
    height: 33px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.category-grid {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.category-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem 0.9rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.96));
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: auto -20px -24px auto;
    width: 92px;
    height: 92px;
    border-radius: 10px;
    background: radial-gradient(circle, var(--tone-b), transparent 68%);
    opacity: 0.34;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    border-color: #c9d9ef;
}

.category-card strong,
.category-card small,
.category-badge {
    position: relative;
    z-index: 1;
}

.category-card strong {
    display: block;
    font-size: 0.92rem;
    color: #10233f;
    line-height: 1.3;
}

.category-card small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.76rem;
    color: #5b708d;
}

.category-badge {
    display: inline-flex;
    margin-bottom: 0.6rem;
    border-radius: 10px;
    padding: 0.14rem 0.5rem;
    font-size: 0.68rem;
    background: #e9f2ff;
    color: #1f5fb7;
    font-weight: 600;
}

.menu-grid {
    margin-top: 0.28rem;
    display: grid;
    gap: 1rem;
}

.menu-group {
    border-top: 1px dashed var(--line);
    padding-top: 0.95rem;
}

.menu-group:first-child {
    border-top: 0;
    padding-top: 0.35rem;
}

.product-only-group {
    padding-top: 0;
}

.menu-group h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.menu-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 0.68rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 0.6rem;
    margin-bottom: 0.58rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menu-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.08);
}

.menu-thumb {
    width: 74px;
    height: 74px;
    border-radius: 10px;
    background: linear-gradient(136deg, var(--tone-a), var(--tone-b));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.menu-item h4 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.menu-item p {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    color: var(--ink-soft);
    line-height: 1.36;
}

.menu-meta {
    margin-top: 0.34rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    border: 0;
    background: transparent;
    color: #1f5fb7;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.feedback-card {
    margin-top: 0.85rem;
    display: grid;
    gap: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 1rem;
}

.feedback-type-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.feedback-type-btn {
    border: 1px solid #d6e2f3;
    background: #f8fbff;
    color: #315070;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.feedback-type-btn.active {
    border-color: #0b63f6;
    background: #edf4ff;
    color: #0b63f6;
}

.feedback-field {
    display: grid;
    gap: 0.4rem;
}

.feedback-field span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #314257;
}

.feedback-field input,
.feedback-field textarea {
    width: 100%;
    border: 1px solid #dbe5f0;
    border-radius: 10px;
    background: #f8fbff;
    padding: 0.82rem 0.9rem;
    font: inherit;
    color: #0f172a;
}

.feedback-field textarea {
    resize: vertical;
    min-height: 132px;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
    outline: none;
    border-color: #0b63f6;
    box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.12);
}

.feedback-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.add-btn {
    width: 34px;
    height: 34px;
    font-size: 1.08rem;
    line-height: 1;
}

.note-section {
    background: #f8fbff;
    border-top: 1px solid var(--line);
    padding: 1.1rem 1rem 1.2rem;
}

.note-section p {
    margin: 0;
    font-size: 0.83rem;
    color: #5e6d83;
    line-height: 1.48;
}

.footer {
    padding: 1.18rem 1rem 1.3rem;
    border-top: 1px solid var(--line);
    text-align: center;
    color: #6b7b90;
    font-size: 0.78rem;
    background: #fff;
}

.cart-fab {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 10px;
    padding: 0.76rem 1.18rem;
    color: #fff;
    background: linear-gradient(132deg, #1d5c00, #07a743 52%, #1d5c00);
    box-shadow: 0 10px 22px rgba(21, 57, 19, 0.36);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    z-index: 18;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-fab.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 28px);
}

.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 13, 26, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 35;
}

.sheet-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.search-sheet {
    position: fixed;
    width: min(460px, calc(100% - 32px));
    left: 50%;
    top: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 36;
    overflow: hidden;
}

.search-sheet.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.waiter-sheet {
    position: fixed;
    width: min(520px, calc(100% - 32px));
    left: 50%;
    top: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.24);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 36;
    overflow: hidden;
}

.waiter-sheet.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.waiter-sheet-body {
    padding: 1rem;
    display: grid;
    gap: 0.9rem;
}

.waiter-sheet-body p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #586a82;
}

.waiter-option-list {
    display: grid;
    gap: 0.65rem;
}

.waiter-option-btn {
    border: 1px solid #dbe5f0;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border-radius: 10px;
    padding: 0.88rem 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: #233449;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.waiter-option-btn:hover {
    transform: translateY(-1px);
    border-color: #0b63f6;
    box-shadow: 0 10px 18px rgba(11, 99, 246, 0.12);
}

.waiter-option-btn span {
    font-weight: 500;
}

.waiter-option-btn i {
    color: #0b63f6;
}

.waiter-option-btn.is-other {
    background: linear-gradient(180deg, #0f1b2d, #132844);
    border-color: #0f2d57;
    color: #f4f8ff;
}

.waiter-option-btn.is-other i {
    color: #9cc4ff;
}

.search-sheet-body {
    padding: 1rem;
    display: grid;
    gap: 0.8rem;
}

.search-sheet-body p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #586a82;
}

.search-sheet-body input {
    width: 100%;
    border: 1px solid #dbe5f0;
    border-radius: 10px;
    background: #f8fbff;
    padding: 0.9rem 0.95rem;
    font: inherit;
    color: #0f172a;
}

.search-sheet-body input:focus {
    outline: none;
    border-color: #0b63f6;
    box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.12);
}

.search-sheet-foot {
    grid-template-columns: 1fr 1fr;
}

.product-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 13, 26, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 37;
}

.product-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.product-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 84vh;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.23);
    transform: translateY(104%);
    transition: transform 0.25s ease;
    z-index: 38;
    display: flex;
    flex-direction: column;
}

.product-sheet.open {
    transform: translateY(0);
}

.product-head {
    padding: 0.9rem 1rem 0.4rem;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
}

.product-thumb {
    width: 84px;
    height: 84px;
    border-radius: 10px;
    background: linear-gradient(136deg, var(--tone-a), var(--tone-b));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
}

.product-head h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.product-head p {
    margin: 0.22rem 0 0;
    font-size: 0.8rem;
    color: var(--ink-soft);
    line-height: 1.4;
}

.product-head strong {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.93rem;
    color: #115acb;
}

.product-body {
    overflow-y: auto;
    padding: 0.2rem 1rem 0.8rem;
}

.product-block {
    border-top: 1px dashed #dbe3ef;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.product-block:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0.25rem;
}

.product-block h5 {
    margin: 0;
    font-size: 0.89rem;
}

.product-block p {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #51627a;
    line-height: 1.45;
}

.product-block ul {
    margin: 0.4rem 0 0;
    padding-left: 1rem;
}

.product-block li {
    font-size: 0.8rem;
    color: #475972;
    margin-bottom: 0.25rem;
}

.extra-list {
    margin-top: 0.6rem;
    display: grid;
    gap: 0.55rem;
}

.extra-option {
    border: 1px solid #d8e3f1;
    background: #f8fbff;
    border-radius: 10px;
    padding: 0.72rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: #314257;
    font-size: 0.84rem;
    cursor: pointer;
}

.extra-option.active {
    border-color: #0b63f6;
    background: #edf4ff;
    color: #0b63f6;
}

.extra-option b {
    font-size: 0.82rem;
}

.allergen-list {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.allergen-pill {
    font-size: 0.76rem;
    border: 1px solid #f1c3c3;
    background: #fff2f2;
    color: #8c2a2a;
    border-radius: 10px;
    padding: 0.2rem 0.55rem;
}

.allergen-pill.none {
    border-color: #cfe2f8;
    background: #eff6ff;
    color: #295a95;
}

.search-summary {
    margin-top: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: #607188;
    font-size: 0.84rem;
}

.search-link {
    border: 0;
    background: transparent;
    color: #0b63f6;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.search-empty {
    margin-top: 0.9rem;
    border: 1px dashed #d5e1ef;
    border-radius: 10px;
    background: #fbfdff;
    color: #5f7088;
    padding: 1rem;
    font-size: 0.88rem;
    text-align: center;
}

.reaction-box {
    margin-top: 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #f8fbff;
    padding: 0.75rem;
}

.reaction-head {
    font-size: 0.82rem;
    color: #54657d;
    margin-bottom: 0.55rem;
}

.reaction-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.reaction-btn {
    border: 1px solid #d6e2f3;
    background: #fff;
    border-radius: 10px;
    padding: 0.56rem 0.48rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    color: #2b4361;
    font-size: 0.81rem;
    cursor: pointer;
}

.reaction-btn.like.active {
    border-color: #8fc5a0;
    background: #ebfbf0;
    color: #1d7f3f;
}

.reaction-btn.dislike.active {
    border-color: #e3b0b0;
    background: #fff0f0;
    color: #b13232;
}

.reaction-btn b {
    font-size: 0.86rem;
}

.reaction-total {
    margin-top: 0.56rem;
    font-size: 0.78rem;
    color: #586c88;
}

.detail-foot {
    grid-template-columns: 1fr 1fr;
}

.cart-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 74vh;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.23);
    transform: translateY(105%);
    transition: transform 0.25s ease;
    z-index: 36;
    display: flex;
    flex-direction: column;
}

.cart-sheet.open {
    transform: translateY(0);
}

.sheet-head {
    padding: 0.95rem 1rem 0.7rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sheet-head h3 {
    margin: 0;
    font-size: 1rem;
}

.sheet-body {
    overflow-y: auto;
    padding: 0.5rem 1rem;
}

.cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
    border-bottom: 1px solid #eef3fb;
    padding: 0.65rem 0;
}

.cart-row strong {
    display: block;
    font-size: 0.9rem;
}

.cart-extra-note {
    margin-top: 0.18rem;
    font-size: 0.75rem;
    color: #1f5fb7;
}

.cart-row small {
    color: #6a7b91;
    font-size: 0.77rem;
}

.qty-box {
    display: flex;
    align-items: center;
    gap: 0.38rem;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
}

.qty-minus {
    background: var(--danger);
}

.qty-plus {
    background: var(--accent);
}

.cart-form {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem 0 0.25rem;
}

.cart-field {
    display: grid;
    gap: 0.38rem;
}

.cart-field span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #314257;
}

.cart-field input,
.cart-field textarea {
    width: 100%;
    border: 1px solid #dbe5f0;
    border-radius: 10px;
    background: #f8fbff;
    padding: 0.78rem 0.9rem;
    font: inherit;
    color: #0f172a;
}

.cart-field textarea {
    resize: vertical;
    min-height: 84px;
}

.cart-field input:focus,
.cart-field textarea:focus {
    outline: none;
    border-color: #0b63f6;
    box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.12);
}

.sheet-foot {
    border-top: 1px solid var(--line);
    padding: 0.85rem 1rem 1rem;
    display: grid;
    gap: 0.6rem;
}

.sheet-total {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
}

.sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.btn-danger {
    background: #f8d9d9;
    color: #8b1c1c;
}

.btn-primary {
    background: #0b63f6;
    color: #fff;
}

.empty-note {
    text-align: center;
    padding: 1.2rem 0.4rem;
    color: #6f8096;
    font-size: 0.9rem;
}

.app-toast {
    position: fixed;
    left: 50%;
    bottom: 88px;
    transform: translateX(-50%) translateY(14px);
    background: #0f172a;
    color: #fff;
    border-radius: 10px;
    padding: 0.54rem 0.85rem;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 42;
}

.app-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes menuRise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    #qrMenuApp {
        padding-top: 1.6rem;
    }

    .qr-shell {
        display: grid;
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 1.1rem;
        align-items: start;
    }

    .drawer {
        position: sticky;
        top: 1.3rem;
        height: calc(100vh - 2.6rem);
        transform: translateX(0);
        border-radius: 10px;
    }

    .drawer-top {
        padding-right: 0.1rem;
    }

    .drawer-close,
    .topbar .menu-btn,
    .drawer-overlay {
        display: none;
    }

    .cart-sheet {
        left: auto;
        right: 20px;
        width: 390px;
        border-radius: 10px;
        max-height: min(76vh, 700px);
        bottom: 20px;
        transform: translateY(115%) translateX(0);
    }

    .cart-sheet.open {
        transform: translateY(0) translateX(0);
    }

    .product-sheet {
        left: auto;
        right: 20px;
        width: 430px;
        border-radius: 10px;
        max-height: min(82vh, 760px);
        bottom: 20px;
        transform: translateY(115%) translateX(0);
    }

    .product-sheet.open {
        transform: translateY(0) translateX(0);
    }
}
