/* ============ India Village — guest FOOD ORDER page ============
   Paper #f4f1ea surface, ink #1c1c1c, gold #E8AA42 — richer "menu card" identity. */

.fo-wrap {
    background-color: #f4f1ea;
    background-image: radial-gradient(circle at 0% 0%, rgba(232,170,66,.10), transparent 42%),
                      radial-gradient(circle at 100% 100%, rgba(232,170,66,.10), transparent 42%);
    border: 1px solid #e6dcc3;
    border-radius: 22px;
    padding: 18px 18px 22px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .16);
}

/* offer ribbon — gold shimmer band */
.fo-offer-ribbon {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(120deg, #1c1c1c 0%, #3a2c10 60%, #1c1c1c 100%);
    color: #fdf6e7; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px;
    font-size: 13.5px; box-shadow: 0 10px 26px rgba(0,0,0,.22);
    border: 1px solid rgba(232,170,66,.5);
}
.fo-offer-ribbon::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 70px; left: -90px;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
    animation: foSheen 3.2s ease-in-out infinite;
}
@keyframes foSheen { 0% { left: -90px; } 60%, 100% { left: 110%; } }
.fo-offer-ribbon i { color: var(--theme-color, #E8AA42); font-size: 26px; animation: foPulse 2.4s ease-in-out infinite; }
@keyframes foPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.fo-offer-ribbon strong { color: var(--theme-color, #E8AA42); }

.fo-empty { color: #4a4538; font-size: 15px; padding: 18px 6px; }

/* category chips — pinned by JS translateY (theme transforms break position:sticky/fixed) */
.fo-cats {
    position: relative; z-index: 5;
    display: flex; gap: 7px; overflow-x: auto; padding: 8px 8px;
    background: #f4f1ea; margin-bottom: 8px; -webkit-overflow-scrolling: touch;
    border-radius: 14px; transition: box-shadow .15s ease;
}
.fo-cats.is-stuck { box-shadow: 0 12px 28px rgba(0,0,0,.18); background: #f7f3ea; }
.fo-cat {
    flex: 0 0 auto; background: #fff; border: 2px solid #e0d9c8; border-radius: 24px;
    padding: 6px 15px; font-weight: 800; font-size: 12.5px; color: #1c1c1c; cursor: pointer;
    transition: all .18s ease; white-space: nowrap; letter-spacing: .3px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.fo-cat:hover { border-color: var(--theme-color, #E8AA42); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.fo-cat.is-active {
    background: linear-gradient(135deg, #f3c96e, var(--theme-color, #E8AA42));
    border-color: var(--theme-color, #E8AA42); color: #fff;
    box-shadow: 0 6px 18px rgba(232,170,66,.5);
}

.fo-cat-title {
    color: #1c1c1c; font-size: 17px; margin: 12px 0 8px; padding: 0 0 5px 12px;
    border-bottom: 2px solid #e6dcc3; display: block; position: relative; font-weight: 800;
}
.fo-cat-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 11px; width: 5px; border-radius: 4px; background: linear-gradient(var(--theme-color, #E8AA42), #b47f1f); }
.fo-cat-title::after { content: ""; position: absolute; left: 14px; bottom: -2px; width: 74px; height: 2px; background: var(--theme-color, #E8AA42); }
.fo-section { scroll-margin-top: 96px; }

/* dish cards — menu-card look */
.fo-dish {
    position: relative;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: linear-gradient(180deg, #ffffff, #fdfbf6);
    border: 1px solid #e6dcc3; border-radius: 13px; padding: 9px 10px;
    height: 100%; transition: all .18s ease; overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,.05);
}
.fo-dish::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(var(--theme-color, #E8AA42), #b47f1f);
    opacity: 0; transition: opacity .18s ease;
}
.fo-dish:hover { border-color: var(--theme-color, #E8AA42); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,.14); }
.fo-dish:hover::before { opacity: 1; }
.fo-dish.fo-in-cart { border-color: var(--theme-color, #E8AA42); background: linear-gradient(180deg, #fdf6e7, #fbf0d8); box-shadow: 0 8px 22px rgba(232,170,66,.28); }
.fo-dish.fo-in-cart::before { opacity: 1; }
/* dish photo (matched from the Restaurant Gallery by name) */
.fo-dish-img { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 11px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.14); background: #f1ece0; }
.fo-dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.fo-dish:hover .fo-dish-img img { transform: scale(1.08); }
.fo-noimg { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #b3a98f; background: repeating-linear-gradient(45deg, #f1ece0, #f1ece0 8px, #ece5d4 8px, #ece5d4 16px); }
.fo-noimg i { font-size: 22px; }
.fo-noimg span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

.fo-dish-info { min-width: 0; flex: 1 1 auto; }
.fo-dish-name { font-weight: 800; color: #1c1c1c; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.3; }
.fo-dish-icons { display: inline-flex; align-items: center; gap: 5px; }
.fo-dish-icons img {
    height: 40px; width: auto; border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,.16); background: #fff; padding: 3px;
    transition: transform .15s ease;
}
.fo-dish-icons img:hover { transform: scale(1.2); }
.fo-dish-desc { color: #6d6759; font-size: 11.5px; margin-top: 2px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fo-dish-price {
    display: inline-block; margin-top: 5px;
    background: #1c1c1c; color: var(--theme-color, #E8AA42);
    border-radius: 12px; padding: 2px 10px; font-weight: 800; font-size: 12px; letter-spacing: .3px;
}

.fo-dish-add { flex: 0 0 auto; }
.fo-add-btn {
    background: linear-gradient(135deg, #f3c96e, var(--theme-color, #E8AA42));
    border: 0; color: #fff;
    border-radius: 22px; padding: 6px 15px; font-weight: 800; font-size: 12.5px; cursor: pointer;
    transition: all .18s ease; box-shadow: 0 5px 14px rgba(232,170,66,.42);
}
.fo-add-btn:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 9px 20px rgba(232,170,66,.55); }
.fo-stepper { display: flex; align-items: center; gap: 7px; background: linear-gradient(135deg, #f3c96e, var(--theme-color, #E8AA42)); border-radius: 18px; padding: 4px 5px; box-shadow: 0 5px 14px rgba(232,170,66,.42); }
.fo-stepper button {
    width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; color: #8a6414;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 11px;
    transition: all .12s ease;
}
.fo-stepper button:hover { background: #1c1c1c; color: var(--theme-color, #E8AA42); transform: scale(1.1); }
.fo-step-qty { color: #fff; font-weight: 800; min-width: 20px; text-align: center; font-size: 15px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }

/* cart panel — ink header band */
/* pinned by JS translateY while scrolling (theme transforms break position:sticky) */
.fo-cart {
    position: relative;
    background: #fff; border: 2px solid #e6dcc3; border-radius: 18px; padding: 0;
    box-shadow: 0 14px 38px rgba(0,0,0,.14); overflow: hidden;
    transition: box-shadow .15s ease;
}
.fo-cart.is-stuck { box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.fo-cart-head {
    display: flex; align-items: center; gap: 9px; font-weight: 800; color: #fff; font-size: 17px;
    background: linear-gradient(120deg, #1c1c1c, #3a2c10); padding: 10px 14px; margin: 0;
    border-bottom: 3px solid var(--theme-color, #E8AA42);
}
.fo-cart-head i { color: var(--theme-color, #E8AA42); font-size: 20px; }
.fo-cart-count { margin-left: auto; background: var(--theme-color, #E8AA42); color: #1c1c1c; border-radius: 13px; padding: 1px 11px; font-size: 13px; font-weight: 800; }
.fo-cart-empty { color: #6d6759; font-size: 13.5px; text-align: center; padding: 26px 14px; }
.fo-cart-empty i { display: block; font-size: 36px; color: var(--theme-color, #E8AA42); margin-bottom: 10px; }
.fo-cart-lines, .fo-cart-totals, .fo-checkout { padding-left: 12px; padding-right: 12px; }
.fo-cart-lines { padding-top: 6px; }

.fo-line { display: flex; align-items: center; gap: 7px; padding: 6px 0; border-bottom: 1px dashed #e6dcc3; }
.fo-line-info { flex: 1 1 auto; min-width: 0; }
.fo-line-name { display: block; font-weight: 700; color: #1c1c1c; font-size: 13px; }
.fo-line-unit { display: block; color: #8a8377; font-size: 11px; }
.fo-line-ctrl { display: flex; align-items: center; gap: 6px; }
.fo-line-ctrl button {
    width: 23px; height: 23px; border: 1px solid #e0d9c8; border-radius: 50%; background: #fff; color: #8a6414;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 9px; transition: all .12s ease;
}
.fo-line-ctrl button:hover { background: var(--theme-color, #E8AA42); color: #fff; border-color: var(--theme-color, #E8AA42); }
.fo-l-qty { font-weight: 800; color: #1c1c1c; min-width: 16px; text-align: center; font-size: 13px; }
.fo-line-total { flex: 0 0 auto; font-weight: 800; color: #1c1c1c; font-size: 13px; min-width: 74px; text-align: right; }

.fo-cart-totals { margin-top: 10px; }
.fo-tot-row { display: flex; justify-content: space-between; font-size: 13.5px; color: #4a4538; padding: 3px 0; }
.fo-tot-offer { color: #1e7a3a; font-weight: 700; }
.fo-tot-offer i { color: var(--theme-color, #E8AA42); }
.fo-tot-final {
    font-weight: 800; color: #1c1c1c; font-size: 17px;
    background: linear-gradient(120deg, #fdf6e7, #fbf0d8);
    border: 1px solid #e3c98a; border-radius: 10px; padding: 9px 12px !important; margin-top: 8px;
}
.fo-tot-note {
    display: flex; gap: 6px; background: #fff8e1; border: 1px dashed var(--theme-color, #E8AA42);
    border-radius: 9px; padding: 7px 9px; font-size: 11px; color: #4a4538; margin-top: 8px; line-height: 1.45;
}
.fo-tot-note i { color: #8a6414; margin-top: 2px; }

/* checkout */
.fo-checkout { margin-top: 10px; border-top: 2px solid #e6dcc3; padding-top: 10px; padding-bottom: 14px; }
.fo-co-title { font-weight: 800; color: #1c1c1c; font-size: 13px; margin: 10px 0 6px; display: flex; align-items: center; gap: 8px; }
.fo-co-title i { color: #fff; background: linear-gradient(135deg, #f3c96e, var(--theme-color, #E8AA42)); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; box-shadow: 0 3px 8px rgba(232,170,66,.4); }
.fo-inp { border: 2px solid #e0d9c8 !important; border-radius: 10px !important; font-size: 13.5px !important; margin-bottom: 6px; background: #fff !important; color: #1c1c1c !important; height: 38px; padding: 6px 11px !important; }
textarea.fo-inp { height: auto; }
.fo-inp:focus { border-color: var(--theme-color, #E8AA42) !important; box-shadow: 0 0 0 3px rgba(232,170,66,.18) !important; }
.fo-input-error { border-color: #b02a1c !important; background: #fdf3f1 !important; }

.fo-type { display: flex; gap: 8px; }
.fo-type-opt { flex: 1; margin: 0; cursor: pointer; }
.fo-type-opt input { display: none; }
.fo-type-opt span {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border: 2px solid #e0d9c8; border-radius: 11px; padding: 8px 5px; font-weight: 800; font-size: 11.5px; color: #1c1c1c;
    background: #fff; transition: all .18s ease;
}
.fo-type-opt span i { font-size: 16px; color: #b39140; transition: color .18s ease; }
.fo-type-opt:hover span { border-color: var(--theme-color, #E8AA42); transform: translateY(-2px); }
.fo-type-opt input:checked + span {
    background: linear-gradient(135deg, #f3c96e, var(--theme-color, #E8AA42));
    border-color: var(--theme-color, #E8AA42); color: #fff; box-shadow: 0 6px 16px rgba(232,170,66,.45);
}
.fo-type-opt input:checked + span i { color: #fff; }

/* highlighted "attach to my table reservation" block */
.fo-res-highlight {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, #fdf6e7, #fbf0d8);
    border: 2px solid var(--theme-color, #E8AA42); border-radius: 13px;
    padding: 11px 13px; margin: 13px 0 0;
    box-shadow: 0 6px 16px rgba(232,170,66,.22);
    animation: foResGlow 2.6s ease-in-out infinite;
}
@keyframes foResGlow {
    0%, 100% { box-shadow: 0 6px 16px rgba(232,170,66,.22); }
    50% { box-shadow: 0 6px 22px rgba(232,170,66,.45); }
}
.fo-res-hl-head { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 13.5px; color: #8a6414; margin-bottom: 6px; }
.fo-res-hl-head i { color: var(--theme-color, #E8AA42); font-size: 16px; }
.fo-res-note { display: flex; gap: 6px; font-size: 11.5px; color: #7a5b00; background: #fff8e1; border: 1px dashed #e6c76a; border-radius: 9px; padding: 7px 9px; margin: 8px 0; line-height: 1.5; }
.fo-res-note i { color: #8a6414; margin-top: 2px; }
.fo-res-schedule {
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
    background: #eef7f0; border: 1px solid #9fd4af; border-radius: 10px;
    padding: 9px 11px; font-size: 12.5px; color: #1e7a3a; font-weight: 700; margin-bottom: 8px;
}
.fo-res-schedule i { color: #1e7a3a; }

.fo-res-toggle { display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; font-size: 13px; color: #1c1c1c; }
.fo-res-toggle input {
    -webkit-appearance: checkbox !important; appearance: auto !important;
    display: inline-block !important; opacity: 1 !important; position: static !important;
    width: 18px !important; height: 18px !important; min-width: 18px; margin: 0 !important;
    accent-color: var(--theme-color, #E8AA42); cursor: pointer; flex: 0 0 auto;
}
.fo-res-box { margin-top: 8px; }
.fo-res-row { display: flex; gap: 8px; }
.fo-res-row .fo-inp { flex: 1 1 auto; margin-bottom: 0; }
.fo-res-check {
    flex: 0 0 auto; background: #1c1c1c; color: var(--theme-color, #E8AA42); border: 0; border-radius: 10px;
    padding: 0 16px; font-weight: 800; font-size: 13px; cursor: pointer; transition: background .15s ease;
}
.fo-res-check:hover { background: #3a2c10; }
/* YES / NO reservation choice tiles */
.fo-res-choice { display: flex; gap: 8px; }
.fo-res-opt { flex: 1; margin: 0; cursor: pointer; }
.fo-res-opt input { display: none !important; }
.fo-res-opt span {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border: 2px solid #e0d9c8; border-radius: 12px; padding: 10px 8px;
    background: #fff; text-align: center; transition: all .18s ease; line-height: 1.3;
}
.fo-res-opt span i { font-size: 19px; color: #b39140; transition: color .18s ease; }
.fo-res-opt span b { font-size: 12.5px; font-weight: 800; color: #1c1c1c; }
.fo-res-opt span small { font-size: 10.5px; color: #8a8377; font-weight: 600; }
.fo-res-opt:hover span { border-color: var(--theme-color, #E8AA42); transform: translateY(-2px); }
.fo-res-opt input:checked + span {
    border-color: #1e7a3a; background: #eef7f0; box-shadow: 0 5px 14px rgba(30,122,58,.22);
}
.fo-res-opt input:checked + span i, .fo-res-opt input:checked + span b { color: #1e7a3a; }
.fo-res-opt input:checked + span small { color: #2f7a4a; }
.fo-res-status { font-size: 12px; margin-top: 6px; color: #6d6759; line-height: 1.5; }
.fo-res-ok { color: #1e7a3a; font-weight: 700; }
.fo-res-bad { color: #b02a1c; font-weight: 700; }

.fo-when { display: flex; gap: 8px; }
.fo-when .fo-inp { flex: 1; }
.fo-when-hint { font-size: 11.5px; color: #8a8377; margin: -2px 0 8px; }

.fo-verify-btn, .fo-submit-btn { margin-top: 10px; }
.fo-msg-ok { color: #1e7a3a; }
.fo-msg-err { color: #b02a1c; }

/* success card */
.fo-success { text-align: center; padding: 40px 18px; }
.fo-success-ic i { font-size: 70px; color: #1e7a3a; filter: drop-shadow(0 6px 14px rgba(30,122,58,.35)); }
.fo-success h3 { color: #1c1c1c; margin: 14px 0 8px; }
.fo-success p { color: #4a4538; font-size: 15px; }
.fo-success-offer { color: #1e7a3a; font-weight: 700; }
.fo-success-note {
    display: inline-block; background: #fdf6e7; border: 1px dashed var(--theme-color, #E8AA42);
    border-radius: 12px; padding: 12px 16px; font-size: 13px !important; margin-top: 8px;
}

/* mobile floating cart bar (body-appended) */
.fo-mobilebar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1050;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: linear-gradient(120deg, #1c1c1c, #3a2c10); color: #fff;
    border: 1px solid rgba(232,170,66,.5); border-radius: 16px;
    padding: 14px 18px; font-weight: 800; font-size: 14px; cursor: pointer;
    box-shadow: 0 12px 34px rgba(0,0,0,.42);
    animation: foBarIn .25s ease;
}
@keyframes foBarIn { from { transform: translateY(80px); opacity: 0; } to { transform: none; opacity: 1; } }
.fo-mobilebar i { color: var(--theme-color, #E8AA42); }
.fo-mb-right { color: var(--theme-color, #E8AA42); }
@media (min-width: 992px) { .fo-mobilebar { display: none !important; } }

/* responsive */
@media (max-width: 991.98px) {
    .fo-wrap { padding: 16px 14px 22px; }
    .fo-cart { position: static; }
}
@media (max-width: 575.98px) {
    .fo-dish { flex-direction: row; padding: 12px 12px; }
    .fo-dish-name { font-size: 14.5px; }
    .fo-dish-icons img { height: 45px; }
    .fo-dish-img { width: 78px; height: 78px; }
    .fo-offer-ribbon { font-size: 13px; }
    .fo-when { flex-direction: column; gap: 0; }
    .fo-cat-title { font-size: 19px; }
}

/* ===== Dish photo lightbox ===== */
#foLightbox {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(20, 16, 8, .82); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 18px;
    opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease;
}
#foLightbox.is-open { opacity: 1; visibility: visible; }
.fo-lb-card {
    position: relative; background: #fff; border-radius: 18px; overflow: hidden;
    max-width: 640px; width: 100%; max-height: 92vh; display: flex; flex-direction: column;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .5);
    transform: translateY(14px) scale(.97); transition: transform .22s ease;
}
#foLightbox.is-open .fo-lb-card { transform: translateY(0) scale(1); }
.fo-lb-imgwrap { background: #14100a; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.fo-lb-img { width: 100%; max-height: 62vh; object-fit: contain; display: block; }
.fo-lb-close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: #1c1c1c; font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3); transition: all .18s ease;
}
.fo-lb-close:hover { background: #b02a1c; color: #fff; transform: rotate(90deg); }
.fo-lb-body { padding: 14px 18px 16px; flex: 0 0 auto; }
.fo-lb-name { font-weight: 800; font-size: 19px; color: #1c1c1c; line-height: 1.25; }
.fo-lb-desc { font-size: 13px; color: #6d6759; margin-top: 4px; line-height: 1.5; max-height: 72px; overflow-y: auto; }
.fo-lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.fo-lb-price { background: #1c1c1c; color: #E8AA42; border-radius: 14px; padding: 5px 14px; font-weight: 800; font-size: 15px; white-space: nowrap; }
.fo-lb-add {
    border: 0; border-radius: 22px; padding: 10px 22px; cursor: pointer;
    background: linear-gradient(135deg, #f0c96c, #E8AA42); color: #1c1c1c;
    font-weight: 800; font-size: 14px; transition: all .18s ease; white-space: nowrap;
}
.fo-lb-add:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232, 170, 66, .45); }
@media (max-width: 575.98px) {
    #foLightbox { padding: 10px; }
    .fo-lb-img { max-height: 48vh; }
    .fo-lb-name { font-size: 16px; }
    .fo-lb-add { padding: 9px 16px; font-size: 13px; }
}
