:root {
    --bg-main: #1b1a29;
    --bg-panel: #232333;
    --bg-soft: #2a2a3f;
    --text-main: #f3f2f7;
    --text-muted: #b6b7c9;
    --accent: #FF6709;
    --accent-soft: rgba(255, 103, 9, 0.18);
    --shadow-card: 0 22px 45px rgba(7, 7, 16, 0.32);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

body {
    margin: 0;
    font-family: var(--meseros-font-family);
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(255, 103, 9, 0.08), transparent 20rem),
        radial-gradient(circle at bottom right, rgba(132, 118, 255, 0.14), transparent 24rem),
        var(--bg-main);
    transition: background 0.25s ease, color 0.25s ease;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.24);
    border: 2px solid transparent;
    background-clip: padding-box;
}

button {
    font: inherit;
}

.meseros-shell {
    min-height: 100vh;
    display: flex;
    gap: 1.5rem;
    padding: 1.1rem;
}

.meseros-main {
    flex: 1;
    min-width: 0;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(39, 40, 58, 0.98), rgba(28, 28, 43, 0.98));
    padding: 1.6rem 1.6rem 1.9rem;
    box-shadow: var(--shadow-card);
}

.category-grid {
    row-gap: 1.85rem !important;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8d8fa6;
}

.page-title {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.02;
}

.page-subtitle {
    max-width: 38rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #e4e4f0;
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
}

.badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #49d67d;
    box-shadow: 0 0 0 6px rgba(73, 214, 125, 0.16);
}

.menu-card {
    position: relative;
    height: 100%;
    min-height: 282px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: var(--shadow-card);
    isolation: isolate;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.menu-card .card-copy {
    position: relative;
    z-index: 2;
    max-width: 62%;
    margin-top: auto;
}

.menu-card::before,
.menu-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    z-index: -1;
    opacity: 0.55;
}

.menu-card::before {
    inset: auto auto -80px -60px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.16);
}

.menu-card::after {
    inset: -55px -35px auto auto;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.18);
}

.menu-card:hover,
.menu-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 28px 50px rgba(7, 7, 16, 0.4);
}

.menu-card h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.15rem, 1.4vw, 1.45rem);
    font-weight: 800;
    line-height: 1.15;
}

.menu-card p {
    max-width: 24rem;
    margin: 0 0 1rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.menu-card-featured {
    min-height: 320px;
    padding: 1.45rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
    gap: 1rem;
    align-items: center;
}

.menu-card-featured .card-copy {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.menu-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.82rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: rgba(20, 20, 32, 0.2);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-illustration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40%;
    height: 108px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 0;
    pointer-events: none;
}

.card-illustration.compact {
    width: 38%;
    height: 104px;
}

.food-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right top;
    filter: drop-shadow(0 16px 18px rgba(19, 17, 34, 0.26));
}

.food-image-featured {
    width: 100%;
    height: 100%;
    object-position: right center;
}

.floating-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #272634;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 12px 20px rgba(15, 15, 30, 0.16);
}

.chip-one {
    top: 1rem;
    right: 0.2rem;
}

.chip-two {
    top: 4.9rem;
    right: 10.8rem;
    left: auto;
}

.btn-pill {
    border: 0;
    border-radius: 999px;
    padding: 0.64rem 1.05rem;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 12px 22px rgba(14, 13, 28, 0.16);
}

.btn-summary {
    align-self: flex-start;
    padding-inline: 1.4rem;
}

.summary-top,
.summary-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.table-chip {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(26, 24, 36, 0.16);
    font-weight: 700;
}

.summary-stats {
    margin-top: auto;
    margin-bottom: 1rem;
}

.summary-stats div {
    min-width: 0;
}

.summary-stats strong {
    display: block;
    font-size: 1.2rem;
    line-height: 1.1;
}

.summary-stats span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.theme-fire {
    background: linear-gradient(135deg, #ff5f00 0%, #ff7f22 55%, #ff9151 100%);
}

.theme-berry {
    background: linear-gradient(160deg, #ff5d86 0%, #ef4b8f 100%);
}

.theme-ice {
    background: linear-gradient(160deg, #b7c7dc 0%, #d0d8e8 100%);
    color: #ffffff;
}

.theme-mint {
    background: linear-gradient(160deg, #73d6d0 0%, #8bd4bc 100%);
}

.theme-sky {
    background: linear-gradient(160deg, #78c8eb 0%, #65aad8 100%);
}

.theme-lavender {
    background: linear-gradient(160deg, #ad97ff 0%, #8f82d8 100%);
}

.theme-sunset {
    background: linear-gradient(160deg, #ffb165 0%, #f1712f 100%);
}

.order-summary .card-copy,
.order-summary .summary-top,
.order-summary .summary-stats,
.order-summary .btn-summary {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

body.theme-light {
    --bg-main: #f2efe7;
    --bg-panel: #ffffff;
    --bg-soft: #ece7df;
    --text-main: #272230;
    --text-muted: #6f6c7a;
    --accent-soft: rgba(255, 122, 26, 0.12);
    --shadow-card: 0 22px 42px rgba(153, 140, 122, 0.18);
    color-scheme: light;
}

body.theme-light {
    background:
        radial-gradient(circle at top left, rgba(255, 103, 9, 0.08), transparent 20rem),
        radial-gradient(circle at bottom right, rgba(255, 200, 120, 0.18), transparent 24rem),
        var(--bg-main);
}

body.theme-light .meseros-main {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 240, 0.98));
}

body.theme-light .service-badge {
    background: rgba(39, 34, 48, 0.06);
    color: #3a3545;
}

body.theme-light .menu-tag {
    background: rgba(39, 34, 48, 0.09);
}

body.theme-light .theme-ice {
    color: #ffffff;
}

body.theme-light html,
body.theme-light {
    scrollbar-color: rgba(39, 34, 48, 0.18) transparent;
}

body.theme-light ::-webkit-scrollbar-thumb {
    background: rgba(39, 34, 48, 0.18);
}

body.theme-light ::-webkit-scrollbar-thumb:hover {
    background: rgba(39, 34, 48, 0.28);
}

@media (max-width: 1199.98px) {
    .menu-card-featured {
        grid-template-columns: minmax(0, 1fr) 220px;
    }
}

@media (max-width: 991.98px) {
    .meseros-shell {
        flex-direction: column;
        padding: 0.85rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-card {
        min-height: 240px;
    }

    .menu-card .card-copy {
        max-width: 72%;
    }

    .card-illustration {
        width: 34%;
        height: 96px;
    }

    .card-illustration.compact {
        width: 34%;
        height: 92px;
    }

    .chip-two {
        right: 8.5rem;
    }
}

@media (max-width: 767.98px) {
    .meseros-main {
        padding: 1.2rem;
    }

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

    .menu-card-featured .card-illustration {
        position: relative;
        min-height: 140px;
        width: 100%;
        height: auto;
        top: auto;
        right: auto;
    }

    .food-image {
        width: min(62%, 126px);
        height: auto;
        max-height: 92px;
        object-position: center top;
    }

    .food-image-featured {
        width: min(100%, 240px);
        height: auto;
        max-height: 180px;
    }

    .menu-card {
        min-height: 225px;
        border-radius: 24px;
        justify-content: space-between;
    }

    .menu-card .card-copy {
        max-width: 100%;
    }

    .card-illustration.compact {
        position: relative;
        width: 100%;
        height: auto;
        justify-content: center;
        top: auto;
        right: auto;
        margin-bottom: 0.35rem;
    }

    .chip-two {
        top: auto;
        right: auto;
        left: 0.1rem;
        bottom: 0.55rem;
    }

}

@media (max-width: 575.98px) {
    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.84rem;
    }

    .menu-card {
        min-height: 210px;
        padding: 1.15rem;
    }

    .summary-top,
    .summary-stats {
        flex-direction: column;
        align-items: flex-start;
    }
}
