@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: light;
    --page: #f3f3ef;
    --surface: #ffffff;
    --surface-soft: #e9eee8;
    --ink: #1b1d1a;
    --muted: #6d726b;
    --line: #daddd6;
    --brand: #b64f2d;
    --brand-dark: #8b351a;
    --brand-soft: #f7e8e1;
    --green: #2c6250;
    --green-soft: #e3efe9;
    --stage: #1d211d;
    --danger: #bb3e38;
    --focus: #176b87;
    --shadow-small: 0 5px 18px rgba(30, 33, 28, 0.06);
    --shadow-large: 0 24px 70px rgba(19, 22, 18, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--page);
}

body,
button,
input {
    font-family: "Vazirmatn", Tahoma, sans-serif;
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--page);
    color: var(--ink);
    line-height: 1.55;
}

body.modal-open {
    overflow: hidden;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(23, 107, 135, 0.24);
    outline-offset: 2px;
}

img {
    display: block;
    max-width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.splash-open {
    overflow: hidden;
}

.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 300;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    padding: max(24px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
    background: var(--page);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    cursor: pointer;
    transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1), opacity 360ms ease;
}

.splash-screen.hiding {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.splash-screen.hidden {
    display: none;
}

.splash-content {
    width: min(100%, 540px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.splash-wordmark {
    width: min(220px, 58vw);
    height: auto;
    object-fit: contain;
}

.splash-tagline {
    margin-top: 2px;
    color: var(--muted);
    direction: ltr;
    font-size: 0.76rem;
}

.splash-character {
    width: min(520px, 92vw);
    height: min(260px, 31vh);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.splash-character img {
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: auto;
    transform: translateX(50%);
    filter: drop-shadow(0 12px 25px rgba(30, 33, 28, 0.12));
}

.splash-hours {
    margin-top: 10px;
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 700;
}

.splash-links {
    margin-top: 14px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}

.splash-links a {
    min-height: 40px;
    max-width: min(100%, 340px);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    font-size: 0.7rem;
    cursor: pointer;
}

.splash-links a:hover {
    border-color: #b8bdb4;
    background: #f9f9f6;
}

.splash-enter {
    min-height: 44px;
    margin-top: 22px;
    border: 0;
    background: transparent;
    color: var(--brand);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    animation: splashHint 1.8s ease-in-out infinite;
}

.splash-enter img {
    width: 20px;
    height: 20px;
}

@keyframes splashHint {
    50% {
        transform: translateY(-5px);
    }
}

.splash-open .app {
    opacity: 0;
    transform: translateY(12px);
}

.app {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 360ms ease, transform 360ms ease;
}

.app {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 0 clamp(12px, 2.8vw, 32px) 28px;
}

.main-header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(243, 243, 239, 0.92);
    border-bottom: 1px solid rgba(218, 221, 214, 0.76);
    backdrop-filter: blur(18px);
}

.brand-lockup {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    object-fit: cover;
}

.brand-name {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.brand-name strong {
    font-size: 1.06rem;
    line-height: 1.25;
}

.brand-name small {
    color: var(--muted);
    font-size: 0.66rem;
    direction: ltr;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.header-icon-button,
.language-button,
.back-to-top,
.close-button,
.quantity-button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
}

.header-icon-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    position: relative;
}

.header-icon-button:hover,
.language-button:hover,
.close-button:hover,
.quantity-button:hover {
    background: #f9f9f6;
    border-color: #b8bdb4;
}

.header-icon-button:active,
.language-button:active,
.back-to-top:active,
.close-button:active,
.quantity-button:active {
    transform: translateY(1px);
}

.cart-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border: 2px solid var(--page);
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.62rem;
    font-weight: 700;
}

.cart-badge.bump {
    animation: badgeBump 260ms ease;
}

@keyframes badgeBump {
    50% {
        transform: scale(1.22);
    }
}

.language-button {
    min-width: 60px;
    height: 42px;
    border-radius: 6px;
    gap: 6px;
    padding: 0 10px;
    font-size: 0.76rem;
    font-weight: 700;
}

.nav-banner {
    height: 190px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.nav-banner img {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: min(320px, 86vw);
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    filter: drop-shadow(0 10px 22px rgba(30, 33, 28, 0.1));
}

.category-nav {
    position: sticky;
    top: 68px;
    z-index: 25;
    min-width: 0;
    margin: 0;
    padding: 8px 0 9px;
    overflow: hidden;
    border-bottom: 1px solid rgba(218, 221, 214, 0.9);
    background: rgba(243, 243, 239, 0.95);
    backdrop-filter: blur(18px);
}

.nav-scroll {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    padding: 1px 2px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.nav-scroll::-webkit-scrollbar {
    display: none;
}

.cat-button {
    min-height: 39px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    padding: 7px 13px;
    flex: 0 0 auto;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 600;
    transition: background-color 150ms ease, color 150ms ease;
}

.cat-button:hover {
    background: #f0f1ed;
    color: var(--ink);
}

.cat-button.active {
    background: var(--ink);
    color: #fff;
}

.menu-container {
    min-height: 320px;
    padding: 20px 0 18px;
}

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

.category-heading {
    grid-column: 1 / -1;
    min-height: 42px;
    margin-top: 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 2px 9px;
}

.category-heading:first-child {
    margin-top: 0;
}

.category-heading h2 {
    font-size: 0.96rem;
}

.category-heading span {
    color: var(--muted);
    font-size: 0.68rem;
}

.menu-card {
    min-width: 0;
    min-height: 168px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e1e3de;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-small);
    cursor: pointer;
    isolation: isolate;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.menu-card:hover {
    border-color: #c9cec5;
    box-shadow: 0 10px 28px rgba(30, 33, 28, 0.09);
    transform: translateY(-1px);
}

.menu-card:focus-visible {
    outline: 3px solid rgba(23, 107, 135, 0.24);
    outline-offset: 2px;
}

.card-media,
.card-placeholder {
    position: absolute;
    inset: 0 auto 0 0;
    width: 58%;
    z-index: 0;
}

.card-media {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 58%, rgba(0, 0, 0, 0.78) 72%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 58%, rgba(0, 0, 0, 0.78) 72%, transparent 100%);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.025);
    transition: transform 420ms ease;
}

.menu-card:hover .card-media img {
    transform: scale(1.065);
}

.card-placeholder {
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    color: var(--green);
    font-size: 2.4rem;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 52%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 52%, transparent 100%);
}

.card-content {
    min-height: 168px;
    position: relative;
    z-index: 2;
    padding: 17px 17px 52px 39%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-title-row {
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.item-title {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.4;
}

.soon-badge {
    border-radius: 4px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    padding: 2px 7px;
    font-size: 0.59rem;
    font-weight: 700;
}

.item-description {
    max-width: 100%;
    margin-top: 6px;
    color: var(--muted);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.68rem;
    line-height: 1.65;
}

.modifier-tags {
    max-width: 100%;
    margin-top: 8px;
    display: flex;
    gap: 4px;
    overflow: hidden;
}

.modifier-tag {
    border: 1px solid #d4e4dc;
    border-radius: 4px;
    background: var(--green-soft);
    color: var(--green);
    padding: 2px 6px;
    flex: 0 0 auto;
    font-size: 0.56rem;
    font-weight: 600;
}

.card-price {
    position: absolute;
    right: 17px;
    bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: var(--brand);
    font-weight: 700;
}

.card-price strong {
    font-size: 0.9rem;
}

.card-price small {
    color: var(--muted);
    font-size: 0.61rem;
    font-weight: 400;
}

.card-add-button {
    position: absolute;
    left: 13px;
    bottom: 13px;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 18px rgba(25, 29, 24, 0.17);
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 4;
    backdrop-filter: blur(10px);
    transition: background-color 150ms ease, transform 120ms ease;
}

.card-add-button:hover {
    background: var(--brand);
}

.card-add-button:hover img {
    filter: invert(1);
}

.card-add-button:active {
    transform: scale(0.94);
}

.menu-card.no-image .card-add-button {
    border-color: var(--line);
}

.menu-card.soon {
    cursor: default;
}

.menu-card.soon:hover {
    transform: none;
}

.menu-card.card-added {
    animation: cardAdded 320ms ease;
}

@keyframes cardAdded {
    50% {
        transform: scale(0.985);
        border-color: #8ab6a1;
    }
}

html[dir="ltr"] .card-media,
html[dir="ltr"] .card-placeholder {
    inset: 0 0 0 auto;
    -webkit-mask-image: linear-gradient(to left, #000 0%, #000 58%, rgba(0, 0, 0, 0.78) 72%, transparent 100%);
    mask-image: linear-gradient(to left, #000 0%, #000 58%, rgba(0, 0, 0, 0.78) 72%, transparent 100%);
}

html[dir="ltr"] .card-content {
    padding: 17px 39% 52px 17px;
}

html[dir="ltr"] .card-price {
    right: auto;
    left: 17px;
}

html[dir="ltr"] .card-add-button {
    left: auto;
    right: 13px;
}

.menu-loading {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.menu-loading span {
    min-height: 168px;
    border: 1px solid #e1e3de;
    border-radius: 8px;
    background: #e8eae5;
    position: relative;
    overflow: hidden;
}

.menu-loading span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.64) 48%, transparent 76%);
    transform: translateX(-100%);
    animation: loadingSweep 1.4s infinite;
}

@keyframes loadingSweep {
    to {
        transform: translateX(100%);
    }
}

.menu-empty {
    min-height: 260px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-empty strong {
    font-size: 1rem;
}

.menu-empty p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.78rem;
}

.footer {
    margin-top: 30px;
    padding: 30px 4px max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    font-size: 1.05rem;
}

.footer-brand span {
    color: var(--muted);
    font-size: 0.67rem;
    direction: ltr;
}

.footer-links {
    margin: 18px 0 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    font-size: 0.72rem;
}

.footer > p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.69rem;
}

.back-to-top {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(27, 29, 26, 0.92);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(19, 22, 18, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
    z-index: 22;
}

.back-to-top img {
    filter: invert(1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.item-detail-sheet,
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.item-detail-sheet.show,
.cart-drawer.open {
    visibility: visible;
}

.sheet-overlay,
.drawer-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(16, 18, 15, 0.56);
    opacity: 0;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: opacity 220ms ease;
}

.item-detail-sheet.show .sheet-overlay,
.cart-drawer.open .drawer-overlay {
    opacity: 1;
}

.sheet-content,
.drawer-content {
    width: min(100%, 560px);
    max-height: 90vh;
    position: relative;
    z-index: 2;
    border-radius: 8px 8px 0 0;
    background: var(--surface);
    box-shadow: var(--shadow-large);
    transform: translateY(100%);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.item-detail-sheet.show .sheet-content,
.cart-drawer.open .drawer-content {
    transform: translateY(0);
}

.sheet-content {
    overflow: hidden;
}

.sheet-handle {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 36px;
    height: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.72);
    transform: translateX(-50%);
    z-index: 4;
}

.sheet-body {
    max-height: 90vh;
    overflow-y: auto;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
}

.sheet-hero-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 330px;
    position: relative;
    overflow: hidden;
}

.sheet-hero-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 36%;
    background: linear-gradient(to bottom, transparent, var(--surface));
}

.sheet-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sheet-copy {
    position: relative;
    z-index: 2;
    margin-top: -28px;
    padding: 0 22px 8px;
    text-align: center;
}

.sheet-copy.no-hero {
    margin-top: 0;
    padding-top: 34px;
}

.sheet-copy h3 {
    font-size: clamp(1.25rem, 5vw, 1.65rem);
    line-height: 1.4;
}

.sheet-price {
    margin-top: 7px;
    color: var(--brand);
    font-size: 1.04rem;
    font-weight: 700;
}

.sheet-description {
    width: min(100%, 430px);
    margin: 7px auto 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.sheet-modifiers {
    margin: 12px 22px 0;
    border-top: 1px solid var(--line);
}

.sheet-modifiers-title {
    padding: 16px 0 6px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.modifier-option {
    min-height: 54px;
    border-bottom: 1px solid #eceee9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
}

.modifier-option-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.modifier-option-name {
    font-size: 0.81rem;
    font-weight: 600;
}

.modifier-option-price {
    color: var(--brand);
    font-size: 0.67rem;
}

.modifier-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #cdd1c9;
    border-radius: 5px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.modifier-checkbox.checked {
    border-color: var(--green);
    background: var(--green);
}

.modifier-checkbox.checked::after {
    content: "✓";
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.sheet-quantity {
    margin: 22px 22px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.quantity-button {
    width: 43px;
    height: 43px;
    border-radius: 50%;
}

.sheet-quantity > span {
    min-width: 38px;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 700;
}

.sheet-total-preview {
    margin-top: 10px;
    color: var(--muted);
    text-align: center;
    font-size: 0.75rem;
}

.sheet-total-preview strong {
    color: var(--brand);
}

.sheet-actions {
    padding: 18px 22px 0;
    display: grid;
    grid-template-columns: minmax(110px, 0.6fr) minmax(0, 1.4fr);
    gap: 8px;
}

.primary-button,
.secondary-button {
    min-height: 46px;
    border-radius: 6px;
    border: 0;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 700;
    transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
}

.primary-button {
    background: var(--brand);
    color: #fff;
}

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

.secondary-button {
    border: 1px solid var(--line);
    background: #f4f5f2;
    color: var(--ink);
}

.primary-button:active,
.secondary-button:active {
    transform: translateY(1px);
}

.drawer-content {
    padding: 22px 20px max(20px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.drawer-header p {
    color: var(--brand);
    font-size: 0.68rem;
    font-weight: 700;
}

.drawer-header h2 {
    font-size: 1.2rem;
}

.close-button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.cart-items-list {
    min-height: 130px;
    max-height: 52vh;
    overflow-y: auto;
}

.empty-cart {
    min-height: 150px;
    color: var(--muted);
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 0.82rem;
}

.cart-item {
    min-height: 82px;
    padding: 11px 0;
    border-bottom: 1px solid #eceee9;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.cart-item-copy {
    min-width: 0;
}

.cart-item-name {
    font-size: 0.83rem;
    font-weight: 700;
}

.cart-item-modifiers {
    margin-top: 2px;
    color: var(--green);
    font-size: 0.65rem;
}

.cart-item-price {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.67rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-quantity-button,
.remove-cart-item {
    width: 31px;
    height: 31px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #f5f6f3;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.cart-quantity-button img,
.remove-cart-item img {
    width: 14px;
    height: 14px;
}

.cart-item-controls > span {
    min-width: 24px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.remove-cart-item {
    margin-inline-start: 4px;
    border-color: #efd0cd;
    background: #fbebea;
}

.drawer-footer {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.cart-total {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.84rem;
}

.cart-total strong {
    color: var(--brand);
    font-size: 1rem;
}

.currency-label {
    font-size: 0.7rem;
}

.full-width {
    width: 100%;
}

.drawer-footer .secondary-button {
    margin-top: 8px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 200;
    max-width: calc(100vw - 32px);
    padding: 11px 17px;
    border-radius: 6px;
    background: rgba(27, 29, 26, 0.96);
    color: #fff;
    box-shadow: var(--shadow-large);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
    font-size: 0.78rem;
    text-align: center;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.toast.error {
    background: var(--danger);
}

@media (min-width: 1040px) {
    .menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .menu-card,
    .card-content {
        min-height: 180px;
    }
}

@media (max-width: 640px) {
    .app {
        padding-inline: 10px;
    }

    .main-header {
        min-height: 62px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-name strong {
        font-size: 0.93rem;
    }

    .header-icon-button,
    .language-button {
        height: 40px;
    }

    .header-icon-button {
        width: 40px;
    }

    .language-button {
        min-width: 55px;
    }

    .nav-banner {
        height: 184px;
        margin-top: 4px;
    }

    .nav-banner img {
        width: min(320px, 86vw);
    }

    .category-nav {
        top: 62px;
        padding-block: 7px 8px;
    }

    .cat-button {
        min-height: 36px;
        padding: 6px 11px;
        font-size: 0.7rem;
    }

    .menu-container {
        padding-top: 16px;
    }

    .menu-grid,
    .menu-loading {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .category-heading {
        margin-top: 18px;
    }

    .menu-card,
    .card-content,
    .menu-loading span {
        min-height: 154px;
    }

    .card-media,
    .card-placeholder {
        width: 61%;
    }

    .card-content {
        padding: 15px 15px 49px 36%;
    }

    html[dir="ltr"] .card-content {
        padding: 15px 36% 49px 15px;
    }

    .item-title {
        font-size: 0.9rem;
    }

    .card-price {
        right: 15px;
        bottom: 13px;
    }

    html[dir="ltr"] .card-price {
        left: 15px;
    }

    .card-add-button {
        width: 38px;
        height: 38px;
        left: 11px;
        bottom: 11px;
    }

    html[dir="ltr"] .card-add-button {
        right: 11px;
    }

    .sheet-content,
    .drawer-content {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .brand-name small {
        display: none;
    }

    .splash-wordmark {
        width: 170px;
    }

    .splash-character {
        height: min(210px, 29vh);
    }

    .splash-links {
        width: 100%;
    }

    .splash-links a {
        width: 100%;
    }

    .splash-enter {
        margin-top: 16px;
    }

    .nav-banner {
        height: 178px;
    }

    .menu-card,
    .card-content {
        min-height: 150px;
    }

    .card-content {
        padding-left: 32%;
    }

    html[dir="ltr"] .card-content {
        padding-right: 32%;
    }
}

@media (max-height: 690px) {
    .splash-screen {
        justify-content: flex-start;
        padding-top: max(18px, env(safe-area-inset-top));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
