/* =========================================================
   RESTAURANT MENU
   Modern / Mobile First
   ========================================================= */

.restaurant-menu-page {
    background: #f7f7f5;
    min-height: 100vh;
    padding-bottom: 150px;
}


/* =========================================================
   HEADER
   ========================================================= */

.menu-header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    padding: 18px 0 26px;
}

.menu-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

    .back-link span {
        font-size: 20px;
        line-height: 1;
    }

    .back-link:hover {
        color: #111;
    }

.menu-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #999;
}


.restaurant-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .restaurant-heading h1 {
        font-size: 30px;
        font-weight: 800;
        color: #202020;
        margin: 0;
        letter-spacing: -0.7px;
    }

    .restaurant-heading p {
        margin: 6px 0 0;
        color: #777;
        font-size: 14px;
    }

        .restaurant-heading p span {
            margin-right: 4px;
        }

.restaurant-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #fff3e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}


/* =========================================================
   CATEGORY BAR
   ========================================================= */

.category-bar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: none;
}

    .category-scroll::-webkit-scrollbar {
        display: none;
    }

.category-pill {
    flex: 0 0 auto;
    padding: 8px 17px;
    border-radius: 30px;
    background: #f3f3f3;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

    .category-pill:hover {
        background: #222;
        color: #fff;
    }


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.menu-container {
    padding-top: 28px;
}


/* =========================================================
   LOGIN NOTICE
   ========================================================= */

.login-notice {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    padding: 14px 17px;
    margin-bottom: 30px;
}

.notice-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    background: #f2f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

    .notice-content strong {
        color: #222;
    }

    .notice-content span {
        color: #777;
    }

    .notice-content a {
        color: #0d6efd;
        font-weight: 700;
        text-decoration: none;
    }

.welcome-message {
    color: #777;
    font-size: 14px;
    margin-bottom: 28px;
}


/* =========================================================
   CATEGORY
   ========================================================= */

.menu-category {
    margin-bottom: 42px;
    scroll-margin-top: 75px;
}

.category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 17px;
}

    .category-title h2 {
        font-size: 22px;
        font-weight: 800;
        color: #222;
        margin: 0;
        letter-spacing: -0.4px;
    }

    .category-title span {
        color: #999;
        font-size: 12px;
        margin-top: 3px;
        display: block;
    }


/* =========================================================
   FOOD GRID
   ========================================================= */

.food-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}


/* =========================================================
   FOOD CARD
   ========================================================= */

.food-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #eeeeee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .food-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    }


/* =========================================================
   FOOD IMAGE
   ========================================================= */

.food-image-wrapper {
    position: relative;
    height: 195px;
    background: #f0f0f0;
    overflow: hidden;
}

.food-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.35s ease;
}

.food-card:hover .food-image {
    transform: scale(1.04);
}

.food-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #aaa;
}

.spicy-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,.94);
    color: #c62828;
    padding: 6px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   FOOD CONTENT
   ========================================================= */

.food-content {
    padding: 15px;
}

.food-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.food-name-area {
    min-width: 0;
}

    .food-name-area h3 {
        font-size: 16px;
        line-height: 1.25;
        font-weight: 800;
        margin: 0 0 6px;
        color: #222;
    }

.food-tags {
    min-height: 16px;
}

.food-tag {
    font-size: 10px;
    font-weight: 800;
}

    .food-tag.veg {
        color: #238b45;
    }

    .food-tag.nonveg {
        color: #d13b3b;
    }

    .food-tag.vegan {
        color: #248b7a;
    }

.food-price {
    flex: 0 0 auto;
    text-align: right;
}

    .food-price small {
        display: block;
        color: #999;
        font-size: 10px;
    }

    .food-price strong {
        display: block;
        color: #222;
        font-size: 16px;
        font-weight: 800;
    }

.food-description {
    color: #888;
    font-size: 12px;
    line-height: 1.5;
    margin: 9px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================================
   GALLERY
   ========================================================= */

.food-gallery {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-top: 12px;
    scrollbar-width: none;
}

    .food-gallery::-webkit-scrollbar {
        display: none;
    }

.gallery-thumb {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
}

    .gallery-thumb.active {
        border-color: #222;
    }


/* =========================================================
   OPTIONS
   ========================================================= */

.food-options {
    border-top: 1px solid #eeeeee;
    margin-top: 10px;
    padding-top: 8px;
}

.options-title {
    color: #888;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .35px;
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 30px;
    margin-bottom: 2px;
}

    .option-row:last-child {
        margin-bottom: 0;
    }

    .option-row label {
        display: flex;
        align-items: center;
        gap: 5px;
        min-width: 0;
        margin: 0;
        font-size: 12px;
        line-height: 1.2;
        color: #555;
    }

        .option-row label span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .option-row label strong {
            flex-shrink: 0;
            color: #222;
            font-size: 11px;
            font-weight: 700;
        }

    .option-row .qty-control {
        flex: 0 0 auto;
        height: 28px;
    }

    .option-row .qty-btn {
        width: 27px;
        height: 26px;
        font-size: 16px;
    }

    .option-row .qty-input {
        width: 29px !important;
        height: 26px;
        font-size: 12px;
    }

/* =========================================================
   QUANTITY
   ========================================================= */

.single-quantity {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .single-quantity > span {
        color: #777;
        font-size: 12px;
        font-weight: 600;
    }

.qty-control {
    display: inline-flex;
    align-items: center;
    height: 34px;
    border: 1px solid #dddddd;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    border: 0;
    background: #f7f7f7;
    width: 32px;
    height: 32px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .qty-btn:hover {
        background: #eeeeee;
    }

.qty-input {
    width: 34px !important;
    height: 32px;
    border: 0 !important;
    padding: 0 !important;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    background: #fff;
    box-shadow: none !important;
}

    .qty-input::-webkit-inner-spin-button,
    .qty-input::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.qty-input {
    appearance: textfield;
}


/* =========================================================
   CART BAR
   ========================================================= */

.cart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .08);
}

.cart-inner {
    min-height: 90px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 25px;
    align-items: center;
    padding: 14px 0;
}

.cart-notes label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #777;
    margin-bottom: 5px;
}

.cart-notes input {
    width: 100%;
    max-width: 400px;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 9px;
    padding: 0 12px;
    font-size: 12px;
    outline: none;
}

    .cart-notes input:focus {
        border-color: #999;
    }

.cart-summary {
    min-width: 180px;
}

.summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
    color: #777;
}

    .summary-line strong {
        color: #333;
    }

.tax-line {
    margin-top: 2px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #eee;
    font-size: 15px;
    font-weight: 800;
}

    .summary-total strong {
        font-size: 18px;
    }

.place-order-btn {
    height: 48px;
    min-width: 180px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: #222;
    color: white;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    transition: all .2s ease;
}

    .place-order-btn:hover {
        background: #000;
        transform: translateY(-1px);
    }


/* =========================================================
   EMPTY MENU
   ========================================================= */

.empty-menu {
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 60px 20px;
    margin-top: 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-menu h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
}

.empty-menu p {
    color: #888;
    font-size: 14px;
}

.btn-back {
    display: inline-flex;
    margin-top: 15px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #222;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .food-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 991px) {

    .food-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-inner {
        grid-template-columns: 1fr auto;
    }

    .cart-notes {
        display: none;
    }

    .cart-summary {
        justify-self: end;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */


@media (max-width: 575px) {

    .restaurant-menu-page {
        padding-bottom: 135px;
    }

    .menu-header {
        padding: 14px 0 20px;
    }

    .menu-header-top {
        margin-bottom: 18px;
    }

    .restaurant-heading h1 {
        font-size: 23px;
    }

    .restaurant-heading p {
        font-size: 12px;
    }

    .restaurant-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 22px;
    }

    .category-scroll {
        padding: 10px 0;
    }

    .category-pill {
        padding: 7px 13px;
        font-size: 12px;
    }

    .menu-container {
        padding-top: 20px;
    }

    .login-notice {
        padding: 12px;
        align-items: flex-start;
    }

    .notice-content {
        font-size: 12px;
    }

    .menu-category {
        margin-bottom: 32px;
    }

    .category-title h2 {
        font-size: 19px;
    }

    .food-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .food-card {
        display: grid;
        grid-template-columns: 115px 1fr;
        min-height: 150px;
        border-radius: 15px;
    }

    .food-image-wrapper {
        height: 100%;
        min-height: 150px;
    }

    .food-content {
        padding: 12px;
    }

    .food-name-area h3 {
        font-size: 14px;
    }

    .food-price strong {
        font-size: 14px;
    }

    .food-description {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .spicy-badge {
        top: 7px;
        right: 7px;
        padding: 4px 6px;
        font-size: 9px;
    }

    .food-gallery {
        display: none;
    }

    .single-quantity {
        margin-top: 10px;
        padding-top: 9px;
    }

    .food-options {
        margin-top: 10px;
        padding-top: 9px;
    }

    .option-row {
        margin-bottom: 6px;
    }

    .qty-control {
        height: 31px;
    }

    .qty-btn {
        width: 29px;
        height: 29px;
    }

    .qty-input {
        width: 30px !important;
        height: 29px;
    }


    /* Mobile cart */

    .cart-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 10px 0;
    }

    .cart-summary {
        min-width: 0;
    }

    .summary-line {
        font-size: 10px;
        gap: 10px;
    }

    .summary-total {
        font-size: 13px;
    }

        .summary-total strong {
            font-size: 17px;
        }

    .place-order-btn {
        min-width: 130px;
        height: 48px;
        padding: 0 14px;
        font-size: 12px;
        border-radius: 10px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .food-card {
        grid-template-columns: 100px 1fr;
    }

    .food-image-wrapper {
        min-height: 145px;
    }

    .food-content {
        padding: 10px;
    }

    .food-name-area h3 {
        font-size: 13px;
    }

    .food-description {
        font-size: 10px;
    }

    .place-order-btn {
        min-width: 115px;
        padding: 0 10px;
    }
}

/* --- Scrollable image carousel (replaces single image + thumbnail strip) --- */
.food-image-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    height: 100%;
}

    .food-image-scroller::-webkit-scrollbar {
        display: none;
    }

.food-image-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.food-image-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

.food-image-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transition: background 0.2s, transform 0.2s;
}

    .food-image-dot.active {
        background: #ffffff;
        transform: scale(1.3);
    }

/* --- Add-on button that opens the "more options" popup --- */
.more-options-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #b8420f;
    background: #fff3ec;
    border: 1px solid #f3c9ae;
    border-radius: 999px;
    cursor: pointer;
}

    .more-options-btn:hover {
        background: #ffe8db;
    }

.more-options-plus {
    font-size: 15px;
    line-height: 1;
}

/* --- Options popup --- */
.options-modal {
    border: none;
    border-radius: 14px;
    padding: 0;
    width: min(420px, 92vw);
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

    .options-modal::backdrop {
        background: rgba(0, 0, 0, 0.45);
    }

.options-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

    .options-modal-header h4 {
        margin: 0;
        font-size: 15px;
    }

.options-modal-close {
    border: none;
    background: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 4px;
}

.options-modal-body {
    padding: 8px 16px;
    max-height: 55vh;
    overflow-y: auto;
}

.options-modal-footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
}

.options-modal-done {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #b8420f;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}