@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --md-bg: #f6f7fb;
    --md-surface: #ffffff;
    --md-text: #101223;
    --md-muted: #8f97a8;
    --md-accent: #ff4d1d;
    --md-accent-soft: #ffe5de;
    --md-card-shadow: 0 12px 26px rgba(16, 18, 35, 0.08);
    --md-border: #e6e9f1;
    --md-footer-icon: #8c95a7;
}

* {
    box-sizing: border-box;
}

body.md-body {
    margin: 0;
    background: radial-gradient(140% 100% at 10% 0%, #ffffff 0%, #f4f6fb 70%);
    color: var(--md-text);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    line-height: 1.35;
}

.md-shell {
    min-height: 100vh;
    padding: 16px 0 90px;
}

.md-page {
    width: 100%;
}

.md-content {
    width: min(470px, calc(100% - 28px));
    margin: 0 auto;
}

.md-home-wrap {
    display: grid;
    gap: 18px;
}

.md-home-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 8px;
}

.md-home-title {
    margin: 0;
    font-size: clamp(28px, 5.5vw, 36px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.md-home-title span {
    font-size: 0.85em;
}

.md-home-sub {
    margin: 5px 0 0;
    font-size: 21px;
    color: #3f4658;
    letter-spacing: -0.02em;
}

.md-icon-btn {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--md-card-shadow);
    color: #131827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.md-icon-btn i {
    font-size: 23px;
    line-height: 1;
}

.md-lang-btn {
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.55);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.md-lang-btn span {
    line-height: 1;
}

.md-lang-it {
    background: url("/flags/4x3/it.svg") center / cover no-repeat;
    color: #101223;
    text-shadow: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 0 1px rgba(10, 21, 64, 0.12);
}

.md-lang-en {
    background: url("/flags/4x3/gb.svg") center / cover no-repeat;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 0 1px rgba(10, 21, 64, 0.18);
}

.md-lang-fr {
    background: url("/flags/4x3/fr.svg") center / cover no-repeat;
    color: #101223;
    text-shadow: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 0 1px rgba(10, 21, 64, 0.12);
}

.md-lang-de {
    background: url("/flags/4x3/de.svg") center / cover no-repeat;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 0 1px rgba(10, 21, 64, 0.12);
}

.md-address-card {
    background-color: rgba(196, 212, 223, 0.72);
    background-image: linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.24)), url("/menudigitale/img/map.jpg");
    background-size: cover;
    background-position: center;
    background-blend-mode: lighten;
    border-radius: 20px;
    min-height: 96px;
    display: grid;
    grid-template-columns: 32px 1fr 30px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.md-address-icon {
    color: #f7b033;
    font-size: 20px;
    line-height: 1;
}

.md-address-copy small {
    display: block;
    color: #97a0b2;
    font-size: 13px;
    font-weight: 600;
}

.md-address-copy strong {
    display: block;
    margin-top: 4px;
    font-size: 19px;
    letter-spacing: -0.02em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.md-address-arrow {
    color: #7f899f;
    text-align: right;
    font-size: 24px;
    line-height: 1;
}

.md-block {
    display: grid;
    gap: 12px;
}

.md-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.md-block-head h2 {
    margin: 0;
    font-size: clamp(34px, 7vw, 42px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.md-block-head button {
    border: 0;
    background: transparent;
    color: var(--md-accent);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.md-category-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px;
}

.md-category-row::-webkit-scrollbar,
.md-product-row::-webkit-scrollbar {
    display: none;
}

.md-category-card {
    border: 0;
    border-radius: 18px;
    min-width: 164px;
    height: 78px;
    background: var(--bg-card, #ecf1e8);
    padding: 10px 12px;
    text-align: left;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.md-category-card span {
    display: block;
    max-width: calc(100% - 58px);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.05em;
    color: #22283c;
    position: relative;
    z-index: 2;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.md-category-card img {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    right: -4px;
    bottom: -8px;
    box-shadow: 0 12px 18px rgba(16, 18, 35, 0.18);
}

.md-category-card.is-active {
    outline: 3px solid #101223;
}

.md-menu-picker-wrap {
    margin-top: 6px;
}

.md-menu-picker-head {
    text-align: left;
    margin-bottom: 2px;
}

.md-menu-picker-list {
    display: grid;
    gap: 12px;
    padding: 0;
}

.md-menu-select-card {
    text-align: left;
    border: 1px solid #eff2f7;
    background: #fff;
    cursor: pointer;
    padding: 0;
}

.md-menu-select-media {
    height: 184px;
}

.md-menu-select-card .md-food-copy h3 {
    font-size: 18px;
}

.md-selected-menu-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #d7deea;
    border-radius: 14px;
    background: #fff;
    padding: 10px 12px;
}

.md-selected-menu-banner small {
    display: block;
    font-size: 11px;
    color: #687187;
    margin-bottom: 3px;
}

.md-selected-menu-banner strong {
    display: block;
    color: #111829;
    font-size: 15px;
    line-height: 1.2;
}

.md-chip-btn {
    border: 1px solid #cfd6e5;
    border-radius: 999px;
    background: #fff;
    color: #111829;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.md-nearby-sub {
    color: #98a0b1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    margin-top: -6px;
}

.md-nearby-sub i {
    font-size: 17px;
}

.md-product-row {
    display: grid;
    gap: 12px;
    overflow: visible;
    padding-bottom: 0;
}

.md-food-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    border: 1px solid #eff2f7;
    cursor: pointer;
}

.md-food-media {
    position: relative;
    height: 168px;
}

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

.md-rate-chip {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 12px;
    background: rgba(26, 30, 45, 0.58);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.md-rate-chip i {
    color: #ffd15b;
    font-size: 14px;
}

.md-food-copy {
    padding: 9px 10px 9px;
}

.md-food-copy h3 {
    margin: 0;
    font-size: 15px;
    letter-spacing: -0.05em;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.md-food-desc {
    margin: 5px 0 0;
    font-size: 11px;
    line-height: 1.35;
    color: #66728c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.md-food-meta {
    margin-top: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.md-food-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.md-card-add-btn {
    border: 0;
    min-height: 32px;
    border-radius: 999px;
    padding: 0 12px;
    background: #ff4d1d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.md-food-price {
    font-size: 15px;
    line-height: 1;
    color: var(--md-accent);
    letter-spacing: -0.04em;
    font-weight: 800;
}

.md-like-btn {
    border: 0;
    background: transparent;
    color: #1d2232;
    cursor: pointer;
    font-size: 21px;
    line-height: 1;
}

.md-info-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #d7ddea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2b3447;
    font-size: 16px;
}

.md-modal-product .md-modal-backdrop {
    background: rgba(6, 9, 18, 0.58);
}

.md-modal-product-panel {
    position: absolute;
    left: 0;
    top: 0;
    transform: none;
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(6, 10, 20, 0.45);
    background: #fff;
}

.md-product-hero {
    position: relative;
    height: 48%;
    min-height: 280px;
}

.md-product-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.md-product-hero-actions {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    display: flex;
    justify-content: space-between;
}

.md-product-hero-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(11, 18, 33, 0.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.md-product-hero-btn i {
    display: block;
    line-height: 1;
}

.md-product-hero-btn-back i {
    transform: translate(0px, 1px);
}

.md-product-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f7f7f8;
    min-height: 54%;
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0));
    display: flex;
    flex-direction: column;
}

.md-product-grabber {
    width: 54px;
    height: 6px;
    border-radius: 999px;
    background: #d8dce5;
    margin: 0 auto 10px;
}

.md-product-body {
    display: grid;
    gap: 12px;
    overflow: auto;
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0));
}

.md-product-title {
    margin: 0;
    font-size: 25px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.md-product-by {
    margin: -4px 0 0;
    color: #8c95a8;
    font-size: 14px;
}

.md-product-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.md-product-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #d8deea;
    border-radius: 999px;
    background: #fff;
    color: #3a4356;
    font-size: 14px;
    font-weight: 600;
}

.md-product-pill i {
    color: #f1a920;
}

.md-product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.md-product-price-row-readonly {
    justify-content: flex-end;
}

.md-product-qty {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #161d2f;
    padding: 3px;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.md-qty-btn {
    width: 44px;
    height: 44px;
    border: 0;
    margin-left: 1rem;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.md-qty-btn-plus {
    background: rgba(255, 255, 255, 0.1);
}

.md-qty-value {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #eceef4;
    color: #161d2f;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}

.md-product-detail-price {
    font-size: 36px;
    line-height: 1;
    color: #101223;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.md-product-section h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.md-product-detail-desc {
    margin: 0;
    color: #5e6880;
    font-size: 14px;
    line-height: 1.45;
}

.md-allergen-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.md-allergen-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    background: #ffe8e2;
    color: #b83c1b;
    font-size: 12px;
    font-weight: 700;
}

.md-allergen-empty {
    margin: 0;
    color: #6f7990;
    font-size: 12px;
}

.md-product-footer {
    display: grid;
    grid-template-columns: 1fr 56px;
    gap: 10px;
    align-items: center;
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0));
    background: #f7f7f8;
    padding-top: 6px;
    z-index: 3;
}

.md-product-cta {
    border: 0;
    min-height: 52px;
    border-radius: 999px;
    background: #ff4d1d;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.md-product-icon-btn {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 999px;
    background: #161d2f;
    color: #fff;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.md-product-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ff3f32;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    font-style: normal;
    padding: 0 5px;
    border: 2px solid #fff;
}

.md-empty,
.md-alert {
    background: #fff;
    border: 1px solid var(--md-border);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--md-card-shadow);
}

.md-empty h4,
.md-alert h4 {
    margin: 0 0 6px;
    font-size: 17px;
}

.md-empty p,
.md-alert p {
    margin: 0;
    color: #596176;
    font-size: 14px;
}

.md-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--md-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px rgba(16, 18, 35, 0.08);
    transition: transform 260ms cubic-bezier(.22, .61, .36, 1), opacity 220ms ease;
}

body.md-modal-open .md-footer {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}

.md-footer-inner {
    width: min(480px, 100%);
    margin: 0 auto;
    min-height: 68px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 0 6px env(safe-area-inset-bottom, 0);
}

.md-footer-btn {
    border: 0;
    background: transparent;
    color: var(--md-footer-icon);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    height: 48px;
}

.md-footer-btn i {
    font-size: 24px;
    line-height: 1;
}



.md-footer-btn-center {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #131727;
    color: #fff;
    margin-top: -30px;
    box-shadow: 0 16px 28px rgba(19, 23, 39, 0.35);
}

.md-footer-btn-center i {
    font-size: 26px;
}

.md-cart-btn.is-bump {
    animation: md-cart-bump 460ms cubic-bezier(.22, .61, .36, 1);
}

.md-cart-badge {
    position: absolute;
    top: -3px;
    right: 6px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ff3f32;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    font-style: normal;
    padding: 0 4px;
    border: 2px solid #fff;
    transform-origin: center;
}

.md-cart-badge.is-pop {
    animation: md-cart-badge-pop 420ms cubic-bezier(.16, .84, .44, 1);
}

@keyframes md-cart-bump {
    0% {
        transform: translateY(0) scale(1);
    }
    35% {
        transform: translateY(-7px) scale(1.14);
    }
    60% {
        transform: translateY(0) scale(0.95);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes md-cart-badge-pop {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.32);
    }
    70% {
        transform: scale(0.92);
    }
    100% {
        transform: scale(1);
    }
}


.md-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 240ms ease, visibility 0s linear 240ms;
}

.md-modal.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition: opacity 240ms ease;
}

.md-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 13, 24, 0.46);
    opacity: 0;
    transition: opacity 260ms ease;
}

.md-modal.is-open .md-modal-backdrop {
    opacity: 1;
}

.md-modal-panel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(470px, calc(100% - 18px));
    background: #fff;
    border-radius: 22px 22px 0 0;
    border: 1px solid var(--md-border);
    box-shadow: var(--md-card-shadow);
    overflow: hidden;
    opacity: 0;
}

.md-modal-cart .md-modal-backdrop {
    background: rgba(6, 9, 18, 0.58);
}

.md-modal-cart-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100dvh;
    background: #f3f4f6;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.md-cart-screen-head {
    padding: 14px 16px 8px;
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
}

.md-cart-screen-head h2 {
    margin: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.md-cart-back {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #12182b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.md-cart-back i {
    display: block;
    line-height: 1;
    transform: translate(0px, 1px);
}

.md-cart-screen-body {
    overflow: auto;
    padding: 6px 14px 110px;
}

.md-cart-total-wrap {
    text-align: center;
    padding: 8px 0 16px;
}

.md-cart-total-wrap p {
    margin: 0;
    color: #9ca3b0;
    font-size: 17px;
}

.md-cart-total-value {
    margin-top: 4px;
    font-size: 58px;
    line-height: 1;
    font-weight: 800;
    color: #0f1528;
    letter-spacing: -0.04em;
}

.md-cart-items-modern {
    display: grid;
    gap: 12px;
}

.md-cart-item-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #e8ebf1;
}

.md-cart-item-content {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    position: relative;
    z-index: 2;
    background: #e8ebf1;
    transition: transform 220ms ease;
}

.md-cart-item-card.is-swiped-left .md-cart-item-content {
    transform: translateX(-74px);
}

.md-cart-item-card.is-swiped-right .md-cart-item-content {
    transform: translateX(74px);
}

.md-cart-item-remove-swipe {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 74px;
    border: 0;
    background: #e64533;
    color: #fff;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.md-cart-item-remove-swipe-left {
    left: 0;
    right: auto;
}

.md-cart-item-card.is-swiped-left .md-cart-item-remove-swipe:not(.md-cart-item-remove-swipe-left),
.md-cart-item-card.is-swiped-right .md-cart-item-remove-swipe.md-cart-item-remove-swipe-left {
    opacity: 1;
    pointer-events: auto;
}

.md-cart-item-thumb {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    object-fit: cover;
}

.md-cart-item-main h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    color: #12182b;
}

.md-cart-item-controls {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.md-cart-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #cad2e2;
    background: #fff;
    color: #1b243a;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.md-cart-qty-btn i {
    font-size: 14px;
    line-height: 1;
}

.md-cart-qty-btn.is-remove {
    color: #d74130;
    border-color: #f0c5bf;
    background: #fff7f5;
}

.md-cart-line-qty {
    min-width: 34px;
    text-align: center;
    color: #5d667e;
    font-size: 15px;
    font-weight: 700;
}

.md-cart-item-right {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.md-cart-item-amount {
    color: #141b31;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.md-cart-undo {
    position: fixed;
    left: 50%;
    bottom: calc(130px + env(safe-area-inset-bottom, 0));
    transform: translate(-50%, 14px);
    background: rgba(18, 24, 43, 0.95);
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 120;
    white-space: nowrap;
}

.md-cart-undo.is-open {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.md-cart-undo button {
    border: 0;
    background: transparent;
    color: #ff8e72;
    font-weight: 700;
}

.md-cart-screen-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f3f4f6;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0));
    border-top: 1px solid #e3e7ef;
    z-index: 35;
    box-shadow: 0 -8px 20px rgba(15, 21, 40, 0.12);
}

.md-cart-checkout {
    width: 100%;
    border: 0;
    min-height: 52px;
    border-radius: 999px;
    background: #ff4d1d;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
}

.md-cart-more {
    width: 100%;
    border: 0;
    background: transparent;
    color: #ff4d1d;
    font-size: 17px;
    font-weight: 700;
    margin-top: 8px;
}

.md-modal-bottom .md-modal-panel {
    bottom: 0;
    max-height: 78vh;
    transform: translateX(-50%) translateY(26px);
    transition: transform 320ms cubic-bezier(.22, .61, .36, 1), opacity 240ms ease;
}

.md-modal-top .md-modal-panel {
    top: 14px;
    border-radius: 22px;
    transform: translateX(-50%) translateY(-18px);
    transition: transform 320ms cubic-bezier(.22, .61, .36, 1), opacity 240ms ease;
}

.md-modal.is-open .md-modal-panel {
    opacity: 1;
}

.md-modal-bottom.is-open .md-modal-panel,
.md-modal-top.is-open .md-modal-panel {
    transform: translateX(-50%) translateY(0);
}

.md-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px 11px;
    border-bottom: 1px solid var(--md-border);
}

.md-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.md-close {
    border: 0;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    color: #101223;
    cursor: pointer;
    min-width: 30px;
}

.md-modal-body {
    padding: 12px 16px 16px;
    overflow: auto;
}

.md-input {
    width: 100%;
    border: 1px solid #cfd5e3;
    border-radius: 14px;
    min-height: 46px;
    padding: 0 14px;
    font-size: 16px;
    outline: none;
    font-family: inherit;
}

.md-input:focus {
    border-color: #101223;
    box-shadow: 0 0 0 3px rgba(16, 18, 35, 0.1);
}

.md-list-btn,
.md-action-btn {
    width: 100%;
    border: 1px solid var(--md-border);
    background: #fff;
    border-radius: 12px;
    min-height: 46px;
    text-align: left;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 8px;
    font-family: inherit;
}

#menu-categorie .md-list-btn,
#menu-language .md-list-btn {
    border: 0;
    border-bottom: 1px solid var(--md-border);
    border-radius: 0;
    background: transparent;
    min-height: 56px;
    padding: 10px 2px;
    margin-bottom: 0;
    color: #24262b;
}

#menu-categorie .md-list-btn:last-child,
#menu-language .md-list-btn:last-child {
    border-bottom: 0;
}

#menu-categorie .md-list-btn:hover,
#menu-language .md-list-btn:hover {
    background: transparent;
}

.md-action-btn {
    justify-content: center;
    font-weight: 700;
}

.md-action-btn.primary {
    background: #101223;
    border-color: #101223;
    color: #fff;
}

.md-action-btn.secondary {
    background: #fff;
    color: #101223;
}

.md-feedback {
    margin: 8px 0 0;
    font-size: 12px;
    color: #0f766e;
    display: none;
}

.md-cart-note {
    margin: 0 0 10px;
    font-size: 14px;
    color: #49506a;
}

.md-cart-list {
    border: 1px solid var(--md-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.md-cart-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-bottom: 1px solid var(--md-border);
    background: #fff;
}

.md-cart-line:last-child {
    border-bottom: 0;
}

.md-cart-line-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.md-cart-line-main span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    font-size: 13px;
}

.md-cart-line-amount {
    font-size: 13px;
    font-weight: 700;
    color: #101223;
}

.md-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    margin: 0 0 12px;
    padding: 9px 0;
    border-top: 1px solid var(--md-border);
}

.md-contact-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    color: #24262b !important;
    border-bottom: 1px solid var(--md-border);
    min-height: 56px;
    padding: 10px 2px;
}

.md-contact-btn:visited,
.md-contact-btn:hover,
.md-contact-btn:active {
    color: #24262b !important;
    text-decoration: none !important;
}

.md-contact-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.md-contact-icon {
    width: 24px;
    height: 24px;
    color: #1f2328;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 24px;
}

.md-contact-icon svg {
    width: 20px;
    height: 20px;
}

.md-contact-primary {
    display: block;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
}

.md-contact-secondary {
    display: block;
    margin-top: 4px;
    color: #9aa2ac;
    font-size: 12px;
    white-space: normal;
    line-height: 1.25;
}

.md-contact-arrow {
    color: #8d8d8d;
    font-size: 24px;
    line-height: 1;
    margin-left: 8px;
}

@media (max-width: 520px) {
    .md-content {
        width: calc(100% - 22px);
    }

    .md-home-title {
        font-size: 1.5rem;
    }

    .md-home-sub {
        font-size: 1rem;
    }

    .md-block-head h2 {
        font-size: 16vw;
    }

    .md-category-card {
        min-width: 42vw;
    }

    .md-menu-select-media {
        height: 168px;
    }

    .md-food-card {
        min-width: 58vw;
    }

    .md-food-copy h3,
    .md-food-price {
        font-size: 1.2rem;
    }

    .md-modal-product-panel {
        width: 100vw;
        height: 100dvh;
        top: 0;
        border-radius: 0;
    }

    .md-product-title {
        font-size: 22px;
    }

    .md-product-detail-price {
        font-size: 32px;
    }

    .md-product-cta {
        min-height: 48px;
        font-size: 18px;
    }

    .md-product-icon-btn {
        width: 52px;
        height: 52px;
    }

    .md-cart-total-value {
        font-size: 46px;
    }

    .md-cart-item-card {
        border-radius: 14px;
    }

    .md-cart-item-content {
        grid-template-columns: 64px 1fr auto;
        padding: 9px;
    }

    .md-cart-item-thumb {
        width: 64px;
        height: 64px;
    }

    .md-cart-item-main h4 {
        font-size: 15px;
    }

    .md-cart-item-amount {
        font-size: 20px;
    }

    .md-cart-checkout {
        font-size: 22px;
    }
}
