:root {
    --ink: #17130f;
    --cream: #f8f4ed;
    --gold: #c99545;
    --wine: #671f28;
    --muted: #756d63;
    --line: #e8dfd3;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--cream);
    color: var(--ink);
    font-family: Tahoma, Arial, sans-serif;
}

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

button {
    font-family: inherit;
}

/* =========================================================
   Hero
========================================================= */

.rm-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 530px;
    overflow: hidden;
    color: #fff;
    background: url('/images/restaurant-hero.jpg') center/cover no-repeat;
}

.rm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 10, 7, .92), rgba(15, 10, 7, .35));
}

.rm-hero h1 {
    max-width: 850px;
    margin-top: 13px;
    margin-bottom: 18px;
    font-size: clamp(2.4rem, 6vw, 5.4rem);
    font-weight: 900;
    line-height: 1.05;
}

.rm-hero p {
    max-width: 640px;
    margin-bottom: 26px;
    color: #eee;
    font-size: 1.15rem;
    line-height: 1.9;
}

.rm-kicker {
    color: #f1c77d;
    font-weight: 800;
    letter-spacing: 2px;
}

.rm-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 26px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #e2b665, #b57b27);
    color: #211508;
    box-shadow: 0 12px 35px rgba(181, 123, 39, .28);
    text-decoration: none;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .rm-main-btn:hover {
        color: #211508;
        transform: translateY(-2px);
        box-shadow: 0 16px 40px rgba(181, 123, 39, .36);
    }

/* =========================================================
   Categories
========================================================= */

.rm-categories {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #e6dccd;
    background: rgba(248, 244, 237, .94);
    backdrop-filter: blur(12px);
}

.rm-chip {
    flex: 0 0 auto;
    padding: 10px 19px;
    border: 1px solid #d7c8b4;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

    .rm-chip:hover {
        border-color: var(--gold);
        transform: translateY(-1px);
    }

    .rm-chip.active {
        border-color: var(--ink);
        background: var(--ink);
        color: #fff;
    }

.rm-search {
    max-width: 290px;
    padding: 12px 18px;
    border-radius: 999px;
}

/* =========================================================
   Product Card
========================================================= */

.rm-card {
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(61, 44, 23, .09);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .rm-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 55px rgba(61, 44, 23, .14);
    }

.rm-image-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #eee8df;
}

    .rm-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s ease;
    }

.rm-card:hover .rm-image-wrap img {
    transform: scale(1.06);
}

.rm-discount {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--wine);
    color: #fff;
    font-weight: 800;
}

.rm-card-body {
    padding: 20px;
}

.rm-meta {
    color: var(--gold);
    font-size: .8rem;
    font-weight: 800;
}

.rm-card h3 {
    margin: 8px 0;
    font-size: 1.3rem;
    font-weight: 900;
}

.rm-card p {
    height: 46px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.6;
}

.rm-card strong {
    font-size: 1.15rem;
}

.rm-card del {
    display: block;
    color: #aaa;
    font-size: .8rem;
}

/* =========================================================
   Add To Cart
========================================================= */

.rm-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #251e18, #100d0a);
    color: #fff;
    box-shadow: 0 10px 24px rgba(23, 19, 15, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

    .rm-add:hover {
        color: #fff;
        transform: translateY(-3px);
        background: linear-gradient(145deg, #d8a64d, #ad7321);
        box-shadow: 0 15px 30px rgba(181, 123, 39, .32);
    }

    .rm-add:active {
        transform: scale(.94);
    }

    .rm-add i {
        line-height: 1;
    }

/* =========================================================
   Floating Cart Button
========================================================= */

.rm-cart-button {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    padding: 8px 10px 8px 17px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: linear-gradient(135deg, #7b2933, var(--wine));
    color: #fff;
    box-shadow: 0 16px 38px rgba(103, 31, 40, .34), inset 0 1px 0 rgba(255, 255, 255, .13);
    font-size: .95rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .rm-cart-button:hover {
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 20px 45px rgba(103, 31, 40, .42);
    }

.rm-cart-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 1.15rem;
}

.rm-cart-button-text {
    white-space: nowrap;
}

.rm-cart-button b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    height: 31px;
    margin: 0;
    padding: 0 7px;
    border-radius: 999px;
    background: #fff;
    color: var(--wine);
    font-size: .82rem;
    font-weight: 900;
}

/* =========================================================
   Backdrop + Cart Drawer
========================================================= */

.rm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 39;
    display: block;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(3px);
    transition: opacity .25s ease, visibility .25s ease;
}

    .rm-backdrop.open {
        visibility: visible;
        opacity: 1;
    }

.rm-cart {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: min(420px, 92vw);
    height: 100dvh;
    overflow: hidden;
    background: #fff;
    box-shadow: 20px 0 60px rgba(0, 0, 0, .2);
    transform: translateX(-105%);
    transition: transform .3s ease;
}

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

/* =========================================================
   Cart Header
========================================================= */

.rm-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 104px;
    padding: 20px 22px;
    border-bottom: 1px solid #eee5d9;
    background: linear-gradient(180deg, #fff, #fffaf3);
}

    .rm-cart-head small {
        display: block;
        margin-bottom: 4px;
        color: var(--muted);
        font-size: .78rem;
        font-weight: 700;
    }

    .rm-cart-head h3 {
        margin: 0;
        color: var(--ink);
        font-size: 1.55rem;
        font-weight: 900;
    }

.rm-cart-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid #e5ddd3;
    border-radius: 13px;
    background: #fff;
    color: #342b24;
    box-shadow: 0 7px 18px rgba(40, 28, 17, .07);
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

    .rm-cart-close:hover {
        border-color: #e9c4c8;
        background: #fff0f1;
        color: var(--wine);
        transform: rotate(5deg);
    }

/* =========================================================
   Cart Items
========================================================= */

.rm-cart-items {
    flex: 1;
    min-height: 0;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
}

.rm-cart-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 13px;
    width: 100%;
    min-width: 0;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #eee5d9;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(45, 33, 20, .055);
}

    .rm-cart-row > div {
        min-width: 0;
    }

    .rm-cart-row img {
        width: 76px;
        height: 76px;
        border-radius: 15px;
        background: #f4eee6;
        object-fit: cover;
    }

    .rm-cart-row h5,
    .rm-cart-row h6,
    .rm-cart-row strong {
        margin-top: 0;
        color: var(--ink);
        font-weight: 900;
    }

    .rm-cart-row h5,
    .rm-cart-row h6 {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rm-cart-row small {
        color: var(--muted);
    }

/* =========================================================
   Quantity Controls
========================================================= */

.rm-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px;
    border: 1px solid #e3d9cc;
    border-radius: 13px;
    background: #faf7f2;
}

    .rm-qty button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 0;
        border-radius: 9px;
        background: #fff;
        color: var(--ink);
        box-shadow: 0 3px 9px rgba(35, 23, 12, .08);
        font-size: .95rem;
        font-weight: 900;
        cursor: pointer;
        transition: transform .18s ease, background .18s ease, color .18s ease;
    }

        .rm-qty button:hover {
            background: var(--ink);
            color: #fff;
            transform: translateY(-1px);
        }

        .rm-qty button i {
            line-height: 1;
        }

.rm-qty-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 32px;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 900;
}

.rm-cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #f0d9db;
    border-radius: 10px;
    background: #fff5f5;
    color: #a7333f;
    font-size: .95rem;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

    .rm-cart-remove:hover {
        border-color: var(--wine);
        background: var(--wine);
        color: #fff;
        transform: translateY(-2px);
    }

/* =========================================================
   Cart Footer + Checkout
========================================================= */

.rm-cart-footer {
    flex: 0 0 auto;
    padding: 18px 20px 20px;
    border-top: 1px solid #eee5d9;
    background: #fff;
    box-shadow: 0 -12px 35px rgba(40, 28, 17, .06);
}

    .rm-cart-footer > .d-flex {
        align-items: center;
        margin-bottom: 14px;
    }

    .rm-cart-footer strong {
        color: var(--wine);
        font-size: 1.25rem;
        font-weight: 900;
    }

.rm-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 52px;
    margin-top: 14px;
    padding: 12px 22px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #e2b665, #bd822d);
    color: #241708;
    box-shadow: 0 12px 30px rgba(181, 123, 39, .27);
    text-decoration: none;
    font-size: .96rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

    .rm-checkout:hover:not(:disabled) {
        color: #241708;
        transform: translateY(-2px);
        box-shadow: 0 16px 36px rgba(181, 123, 39, .36);
    }

    .rm-checkout:disabled {
        opacity: .48;
        cursor: not-allowed;
        box-shadow: none;
    }

    .rm-checkout i {
        font-size: 1.1rem;
    }

/* =========================================================
   Checkout Modal
========================================================= */

.rm-order-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

    .rm-order-types input {
        display: none;
    }

    .rm-order-types span {
        display: block;
        padding: 14px;
        border: 2px solid #ddd;
        border-radius: 16px;
        text-align: center;
        font-weight: 900;
        cursor: pointer;
        transition: border-color .18s ease, background .18s ease;
    }

    .rm-order-types input:checked + span {
        border-color: var(--gold);
        background: #fff7e9;
    }

.rm-modal {
    overflow: hidden;
    border: 0;
    border-radius: 25px;
}

/* =========================================================
   Thanks Page
========================================================= */

.rm-thanks {
    display: grid;
    min-height: 100vh;
    place-items: center;
    background: radial-gradient(circle at top, #fff8e9, #efe4d2);
}

.rm-thanks-card {
    width: min(520px, 92vw);
    padding: 45px;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .12);
    text-align: center;
}

.rm-checkmark {
    display: grid;
    width: 80px;
    height: 80px;
    margin: auto;
    place-items: center;
    border-radius: 50%;
    background: #258b5b;
    color: #fff;
    font-size: 2.7rem;
}

.rm-thanks-card strong {
    display: block;
    margin: 12px;
    font-size: 1.5rem;
}

.rm-thanks-card a {
    display: inline-block;
    margin-top: 15px;
    color: var(--wine);
    font-weight: 900;
}

.min-w-0 {
    min-width: 0;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 600px) {
    .rm-hero {
        min-height: 440px;
    }

        .rm-hero h1 {
            font-size: 2.6rem;
        }

    .rm-image-wrap {
        height: 210px;
    }

    .rm-cart-button {
        left: 14px;
        bottom: 14px;
    }

    .rm-search {
        max-width: 170px;
    }

    .rm-cart {
        width: 100%;
    }

    .rm-cart-head {
        min-height: 92px;
        padding: 17px;
    }

    .rm-cart-items {
        padding: 12px;
    }

    .rm-cart-row {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

        .rm-cart-row img {
            width: 68px;
            height: 68px;
        }

    .rm-cart-footer {
        padding: 15px;
    }
}
