/* =============================================
   Joy Guru Menu - Styles
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #ff6b35;
    --secondary: #1a1a1a;
    --bg: #ffffff;
    --text: #333333;
    --light-bg: #f8f9fa;
    --border: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 80px;
}

body.menu-browser-page {
    height: 100dvh;
    min-height: 0;
    padding-bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.menu-browser {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Navbar */
.navbar {
    background: var(--secondary);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand img {
    height: 40px;
}

.nav-menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: -330px;
    top: 0;
    width: min(330px, 88vw);
    height: 100dvh;
    padding: 18px;
    background: linear-gradient(160deg, #242424 0%, #111 100%);
    border-right: 1px solid rgba(255,255,255,0.12);
    box-shadow: 18px 0 45px rgba(0,0,0,0.25);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-header {
    padding: 8px 4px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.sidebar-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    padding: 3px;
    border-radius: 8px;
    background: transparent;
}

.sidebar-brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-brand strong,
.sidebar-brand span {
    display: block;
}

.sidebar-brand strong {
    color: var(--primary);
    font-size: 18px;
    letter-spacing: 1px;
}

.sidebar-brand span {
    margin-top: 2px;
    color: rgba(255,255,255,0.55);
    font-size: 9px;
    letter-spacing: 1.5px;
}

.sidebar-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.sidebar-welcome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 4px 12px;
    color: rgba(255,255,255,0.55);
    font-size: 11px;
}

.sidebar-welcome-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #31d158;
    box-shadow: 0 0 0 4px rgba(49,209,88,0.12);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 5px 0;
    padding: 13px 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,107,53,0.14);
    border-color: rgba(255,107,53,0.28);
    color: #fff;
}

.sidebar-nav a.active .nav-icon {
    color: var(--primary);
}

.nav-icon {
    width: 25px;
    color: rgba(255,255,255,0.58);
    font-size: 21px;
    line-height: 1;
    text-align: center;
}

.nav-arrow {
    margin-left: auto;
    color: rgba(255,255,255,0.35);
    font-size: 21px;
}

.sidebar-footer-card {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 28px 4px 4px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.sidebar-footer-icon {
    color: var(--primary);
    font-size: 22px;
}

.sidebar-footer-card strong,
.sidebar-footer-card small {
    display: block;
}

.sidebar-footer-card strong { font-size: 12px; }
.sidebar-footer-card small { margin-top: 3px; color: rgba(255,255,255,0.48); font-size: 10px; }

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    text-align: center;
}

.hero-overlay h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
}

.hero-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.5);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 8px;
}

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.6);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-top: 5px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--primary);
    width: 25px;
    border-radius: 5px;
}

/* Search & Filter */
.search-filter-section {
    padding: 15px 20px;
    background: var(--bg);
}

.search-box {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.search-input-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-input-wrap input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input-wrap input:focus {
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.filter-btn {
    padding: 12px 20px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1200;
    display: none;
    margin-top: 5px;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    width: 100%;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--text);
    border: 0;
    border-bottom: 1px solid var(--border);
    font-family: inherit;
    font-size: 14px;
    text-align: left;
}

.suggestion-item:hover {
    background: var(--light-bg);
}

.suggestion-item img {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    object-fit: cover;
}

.suggestion-info {
    flex: 1;
}

.suggestion-info small {
    display: block;
    color: #666;
    font-size: 11px;
    font-weight: 700;
}

.suggestion-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
    white-space: nowrap;
}

/* Item Details */
body.modal-open {
    overflow: hidden;
}

.item-detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3200;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
    align-items: center;
    justify-content: center;
}

.item-detail-modal.active {
    display: flex;
}

.item-detail-panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.item-detail-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.item-detail-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--light-bg);
}

.item-detail-content {
    padding: 20px;
}

.item-detail-category {
    color: #666;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.item-detail-content h2 {
    margin-top: 4px;
    color: var(--secondary);
    font-size: 22px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.item-detail-price {
    margin-top: 10px;
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
}

.item-detail-description {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

/* Categories */
.categories-section {
    padding: 6px 0;
    overflow-x: auto;
    overflow-y: hidden;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
}

.categories-scroll {
    display: flex;
    gap: 15px;
    padding: 6px 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-width: 75px;
    text-decoration: none;
}

.category-img-wrap {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
}

.category-item.active .category-img-wrap,
.category-item:hover .category-img-wrap {
    border-color: var(--primary);
    transform: scale(1.05);
}

.category-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-all-photo {
    background: #ff6b35;
    color: #000;
}

.category-all-photo img {
    width: 44%;
    height: 44%;
    object-fit: contain;
}

.category-all-label {
    font-size: 18px;
    font-weight: 700;
}

.category-name {
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
    text-align: center;
}

.category-item.active .category-name {
    color: #000;
    font-weight: 600;
}

/* Menu List */
.menu-section {
    padding: 10px 20px 100px;
}

.menu-browser-page .search-filter-section,
.menu-browser-page .categories-section {
    flex-shrink: 0;
    position: relative;
    z-index: 110;
}

.menu-browser-page .menu-section {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.pull-refresh-indicator {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 0;
    overflow: visible;
    color: #555b65;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-100% + var(--pull-distance, 0px)));
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.pull-refresh-indicator::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 7px;
    vertical-align: -3px;
    border: 2px solid #d5d7da;
    border-top-color: #ff5814;
    border-radius: 50%;
}

.pull-refresh-indicator.is-visible {
    opacity: 1;
}

.pull-refresh-indicator.is-ready {
    color: #ff5814;
}

.pull-refresh-indicator.is-refreshing::before {
    animation: pull-refresh-spin 0.7s linear infinite;
}

@keyframes pull-refresh-spin {
    to { transform: rotate(360deg); }
}

.menu-browser-page > footer {
    display: none;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary);
}

.menu-card {
    display: flex;
    gap: 15px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.menu-card[data-menu-item] {
    cursor: pointer;
}

.menu-card[data-menu-item]:focus-visible {
    outline: 3px solid rgba(255, 107, 53, 0.35);
    outline-offset: 2px;
}

.menu-card[hidden],
.live-no-results[hidden] {
    display: none !important;
}

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.menu-card-img {
    width: 130px;
    min-width: 130px;
    height: 130px;
    overflow: hidden;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-card-content {
    flex: 1;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-card-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 22px;
    min-height: 22px;
    justify-content: center;
    flex-shrink: 0;
}

.badge-veg {
    background: #e6f9ec;
    color: #1b7a3d;
    border: 1px solid #1b7a3d;
}

.badge-nonveg {
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #c0392b;
}

.menu-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.3;
}

.menu-card-desc {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}

.menu-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    font-weight: 700;
}

.menu-rating .star {
    color: #ffc107;
    font-size: 13px;
}

.menu-price {
    margin-right: 12px;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

/* Bottom Actions */
.bottom-actions {
    position: fixed;
    bottom: 8px;
    left: 50%;
    right: auto;
    width: min(920px, calc(100vw - 56px));
    padding: 0;
    display: flex;
    gap: 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: translateX(-50%);
    z-index: 100;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.action-btn.call {
    background: var(--secondary);
    color: #fff;
}

.action-btn.whatsapp {
    background: #25D366;
    color: #fff;
}

.bottom-actions .action-btn {
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 18px;
    background: #fff;
    color: #111;
    font-size: 11px;
}

.bottom-actions .action-btn.call,
.bottom-actions .action-btn.whatsapp {
    background: #fff;
    color: #111;
}

.bottom-actions .action-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0);
}

.action-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Results Count */
.results-count {
    padding: 0 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
}

.results-count strong {
    color: var(--primary);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-results .icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 5px;
}

/* Filter Modal */
.filter-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    justify-content: flex-end;
}

.filter-modal.active {
    display: flex;
}

.filter-panel {
    width: min(380px, 92vw);
    height: 100dvh;
    max-height: 100dvh;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -12px 0 35px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.filter-header {
    padding: calc(16px + env(safe-area-inset-top)) 20px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-shrink: 0;
    justify-content: space-between;
    align-items: center;
}

.filter-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.filter-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.filter-body {
    padding: 20px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.filter-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: #fff;
}

.filter-actions .action-btn {
    min-width: 0;
}

.filter-reset {
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: #fff;
    color: var(--secondary);
    font: 600 14px/1 'Poppins', sans-serif;
    cursor: pointer;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

/* Utility */
.text-center { text-align: center; }
.mt-3 { margin-top: 15px; }
.mb-3 { margin-bottom: 15px; }
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 600px) {
    .search-filter-section {
        padding: 10px 12px;
    }

    .search-input-wrap {
        min-width: 0;
    }

    .filter-btn {
        padding: 11px 14px;
    }

    .categories-scroll {
        gap: 10px;
        padding-inline: 12px;
    }

    .category-item {
        min-width: 62px;
    }

    .category-img-wrap {
        width: 58px;
        height: 58px;
    }

    .menu-browser-page .menu-section {
        padding: 10px 12px calc(90px + env(safe-area-inset-bottom));
    }

    .filter-modal {
        align-items: flex-end;
    }

    .filter-panel {
        width: 100%;
        height: auto;
        max-height: min(88dvh, 680px);
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -12px 35px rgba(0,0,0,0.2);
        animation-name: slideUp;
    }

    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .item-detail-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .item-detail-panel {
        max-width: none;
        max-height: calc(100dvh - 24px);
        border-radius: 20px 20px 8px 8px;
    }
}

@media (max-width: 400px) {
    .hero-slider { height: 260px; }
    .hero-overlay h1 { font-size: 22px; }
    .menu-card-img { width: 105px; min-width: 105px; height: 118px; }
    .menu-card-title { font-size: 14px; }
    .menu-price { font-size: 14px; }
    .menu-card-content { padding-right: 8px; }
    .filter-btn { font-size: 0; gap: 0; }
    .filter-btn svg { width: 20px; height: 20px; }
}

@media (max-height: 520px) and (orientation: landscape) {
    .filter-panel {
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .filter-header,
    .filter-body,
    .filter-actions {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* =============================================
   Premium Menu Browser Redesign
   ============================================= */
body.menu-browser-page {
    --menu-shell-width: 980px;
    background: #f7f7f7;
    color: #151515;
}

.menu-browser-page .navbar {
    min-height: 112px;
    padding: 18px max(28px, calc((100vw - var(--menu-shell-width)) / 2));
    background: radial-gradient(circle at 50% -100%, #292929 0, #171717 48%, #0d0d0d 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.menu-browser-page .nav-menu-btn {
    width: 48px;
    height: 48px;
    padding: 9px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    border-radius: 12px;
}

.menu-browser-page .nav-menu-btn span {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: #fff;
}

.menu-browser-page .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    color: #fff;
    text-decoration: none;
}

.menu-browser-page .navbar-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.navbar-brand-copy {
    min-width: 0;
    flex-shrink: 0;
    text-align: center;
}

.navbar-brand-copy strong {
    white-space: nowrap;
}

.navbar-brand-copy strong,
.navbar-brand-copy small {
    display: block;
}

.navbar-brand-copy strong {
    font-size: clamp(20px, 2.8vw, 30px);
    line-height: 1.22;
    letter-spacing: -0.4px;
}

.navbar-brand-copy small {
    margin-top: 7px;
    color: #e5aa35;
    font-size: clamp(9px, 1.4vw, 13px);
    font-weight: 700;
    letter-spacing: 3px;
}

.navbar-balance {
    width: 48px;
}

.menu-browser-page .menu-browser {
    background: #fff;
}

.menu-browser-page .search-filter-section,
.menu-browser-page .categories-section,
.menu-browser-page .menu-section {
    width: 100%;
}

.menu-browser-page .search-filter-section {
    padding: 28px max(28px, calc((100vw - var(--menu-shell-width)) / 2)) 20px;
}

.menu-browser-page .search-box {
    gap: 24px;
}

.menu-browser-page .search-input-wrap input {
    height: 64px;
    padding: 0 26px 0 68px;
    border: 1px solid #dfe1e5;
    border-radius: 36px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(20, 20, 20, 0.035);
    color: #343942;
    font: 500 18px/1 'Poppins', sans-serif;
}

.menu-browser-page .search-input-wrap input::placeholder {
    color: #6c727d;
}

.menu-browser-page .search-icon {
    left: 27px;
    width: 22px;
    height: 22px;
    border: 3px solid #656c75;
    border-radius: 50%;
}

.menu-browser-page .search-icon::after {
    content: '';
    position: absolute;
    right: -7px;
    bottom: -5px;
    width: 10px;
    height: 3px;
    border-radius: 3px;
    background: #656c75;
    transform: rotate(45deg);
}

.menu-browser-page .filter-btn {
    min-width: 180px;
    height: 64px;
    padding: 0 32px;
    justify-content: center;
    border-radius: 34px;
    background: linear-gradient(135deg, #080808, #222);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    font-size: 18px;
    font-weight: 600;
}

.menu-browser-page .filter-btn svg {
    width: 26px;
    height: 26px;
}

.menu-browser-page .categories-section {
    padding: 8px max(0px, calc((100vw - var(--menu-shell-width)) / 2)) 19px;
    border-bottom: 1px solid #e6e6e6;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.045);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.menu-browser-page .categories-section::-webkit-scrollbar {
    display: none;
}

.menu-browser-page .categories-scroll {
    gap: 27px;
    padding: 0 28px 4px;
    scrollbar-width: none;
}

.menu-browser-page .categories-scroll::-webkit-scrollbar {
    display: none;
}

.menu-browser-page .category-item {
    min-width: 108px;
    gap: 12px;
}

.menu-browser-page .category-img-wrap {
    width: 104px;
    height: 104px;
    border: 1px solid #dfe2e7;
    padding: 0;
    background: #fff;
}

.menu-browser-page .category-img-wrap img {
    object-fit: cover;
}

.menu-browser-page .category-item.active .category-img-wrap,
.menu-browser-page .category-item:hover .category-img-wrap {
    border: 4px solid #ff5a13;
    transform: none;
}

.menu-browser-page .category-all-photo {
    padding: 0;
    background: #ff6b35;
}

.menu-browser-page .category-all-photo img {
    width: 44%;
    height: 44%;
    object-fit: contain;
}

.menu-browser-page .category-all-label {
    font-size: 25px;
}

.menu-browser-page .category-name {
    max-width: 112px;
    color: #121212;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}

.menu-browser-page .category-item.active .category-name {
    color: #000;
    font-weight: 600;
}

.menu-browser-page .menu-section {
    padding: 28px max(28px, calc((100vw - var(--menu-shell-width)) / 2)) 118px;
    background: #fafafa;
}

.menu-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.menu-browser-page .results-count {
    margin: 0;
    padding: 0;
    color: #535861;
    font-size: 17px;
}

.menu-browser-page .results-count strong {
    color: #ff5814;
    font-weight: 700;
}

.sort-control {
    height: 52px;
    min-width: 270px;
    padding: 0 14px 0 22px;
    display: flex;
    align-items: center;
    border: 1px solid #dfe2e7;
    border-radius: 15px;
    background: #fff;
    color: #161616;
    font-size: 16px;
    font-weight: 500;
}

.sort-control select {
    flex: 1;
    min-width: 0;
    padding: 0 4px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #161616;
    font: 500 16px/1 'Poppins', sans-serif;
    cursor: pointer;
}

.menu-browser-page .menu-card {
    min-height: 210px;
    gap: 28px;
    padding: 12px;
    border: 1px solid #e4e4e4;
    border-radius: 25px;
    box-shadow: 0 7px 19px rgba(20, 20, 20, 0.055);
    margin-bottom: 22px;
}

.menu-browser-page .menu-card:hover {
    transform: translateY(-3px);
    border-color: #ffd4c2;
    box-shadow: 0 13px 30px rgba(20, 20, 20, 0.1);
}

.menu-browser-page .menu-card-img {
    position: relative;
    width: 340px;
    min-width: 340px;
    height: 186px;
    border-radius: 20px;
}

.menu-browser-page .menu-card-img img {
    border-radius: inherit;
}

.menu-browser-page .badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    min-height: 37px;
    padding: 6px 14px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
    font-size: 15px;
    font-weight: 600;
}

.menu-browser-page .badge-veg {
    background: #18a968;
}

.menu-browser-page .badge-nonveg {
    background: #d8473b;
}

.menu-browser-page .menu-card-content {
    min-width: 0;
    padding: 17px 10px 15px 0;
}

.menu-browser-page .menu-card-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.menu-browser-page .menu-card-desc {
    margin-top: 11px;
    color: #555b65;
    font-size: 16px;
    line-height: 1.8;
}

.menu-browser-page .menu-card-footer {
    gap: 18px;
    margin-top: 14px;
}

.menu-browser-page .menu-rating {
    color: #535963;
    font-size: 15px;
    font-weight: 500;
}

.menu-meta-icon {
    font-size: 22px;
}

.menu-browser-page .menu-price {
    margin: 0 14px 0 auto;
    color: #ff5814;
    font-size: 30px;
    font-weight: 700;
}

.menu-browser-page .bottom-actions {
    bottom: 8px;
    width: calc(100vw - 56px);
}

@media (min-width: 1024px) {
    body.menu-browser-page {
        --menu-shell-width: 1600px;
    }

    .menu-browser-page .menu-section {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-content: start;
        gap: 16px;
        padding-inline: max(20px, calc((100vw - var(--menu-shell-width)) / 2));
    }

    .menu-browser-page .menu-results-toolbar,
    .menu-browser-page .no-results {
        grid-column: 1 / -1;
    }

    .menu-browser-page .menu-results-toolbar {
        margin-bottom: 0;
    }

    .menu-browser-page .menu-card {
        min-width: 0;
        min-height: 126px;
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding: 7px;
        border-radius: 14px;
        margin-bottom: 0;
    }

    .menu-browser-page .menu-card-img {
        width: 38%;
        min-width: 78px;
        max-width: 105px;
        height: 112px;
        min-height: 112px;
        aspect-ratio: auto;
        border-radius: 10px;
    }

    .menu-browser-page .badge {
        top: 8px;
        left: 8px;
        min-height: 25px;
        padding: 4px 8px;
        border-radius: 7px;
        font-size: 10px;
    }

    .menu-browser-page .menu-card-content {
        display: flex;
        flex: 1;
        flex-direction: column;
        width: auto;
        padding: 6px 3px 4px 0;
    }

    .menu-browser-page .menu-card-title {
        overflow: hidden;
        font-size: 15px;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menu-browser-page .menu-card-desc {
        display: -webkit-box;
        min-height: 29px;
        margin-top: 4px;
        overflow: hidden;
        font-size: 9px;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .menu-browser-page .menu-card-footer {
        align-items: flex-end;
        gap: 6px;
        margin-top: auto;
        padding-top: 8px;
    }

    .menu-browser-page .menu-rating {
        min-width: 0;
        overflow: hidden;
        font-size: 9px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menu-browser-page .menu-rating .menu-meta-icon {
        display: none;
    }

    .menu-browser-page .menu-price {
        flex: 0 0 auto;
        margin-right: 0;
        font-size: 17px;
    }
}

@media (max-width: 760px) {
    .menu-browser-page .navbar {
        min-height: 64px;
        padding: 7px 14px;
    }

    .menu-browser-page .nav-menu-btn,
    .navbar-balance {
        width: 36px;
        height: 36px;
    }

    .menu-browser-page .nav-menu-btn {
        padding: 7px;
        gap: 4px;
    }

    .menu-browser-page .nav-menu-btn span {
        height: 3px;
    }

    .menu-browser-page .navbar-brand {
        gap: 9px;
    }

    .menu-browser-page .navbar-brand img {
        width: 38px;
        height: 38px;
    }

    .navbar-brand-copy strong {
        font-size: clamp(11px, 3.4vw, 15px);
        line-height: 1.12;
    }

    .navbar-brand-copy small {
        margin-top: 2px;
        font-size: 6px;
        letter-spacing: 1px;
    }

    .menu-browser-page .search-filter-section {
        padding: 8px 12px 6px;
    }

    .menu-browser-page .search-box {
        gap: 10px;
    }

    .menu-browser-page .search-input-wrap input {
        height: 42px;
        padding-left: 42px;
        /* Mobile Safari zooms focused form controls below 16px. */
        font-size: 16px;
    }

    .menu-browser-page .search-icon {
        left: 17px;
        width: 15px;
        height: 15px;
        border-width: 2px;
    }

    .menu-browser-page .filter-btn {
        min-width: 96px;
        height: 42px;
        padding: 0 14px;
        font-size: 12px;
    }

    .menu-browser-page .filter-btn svg {
        width: 20px;
        height: 20px;
    }

    .menu-browser-page .categories-section {
        padding: 4px 0 6px;
    }

    .menu-browser-page .categories-scroll {
        gap: 9px;
        padding: 0 12px 2px;
    }

    .menu-browser-page .category-item {
        min-width: 58px;
        gap: 5px;
    }

    .menu-browser-page .category-img-wrap {
        width: 54px;
        height: 54px;
        padding: 0;
    }

    .menu-browser-page .category-all-label {
        font-size: 15px;
    }

    .menu-browser-page .category-name {
        max-width: 62px;
        font-size: 10px;
    }

    .menu-browser-page .menu-section {
        padding: 8px 10px 78px;
    }

    .menu-results-toolbar {
        margin-bottom: 7px;
    }

    .menu-browser-page .results-count {
        font-size: 13px;
    }

    .sort-control {
        min-width: 145px;
        height: 34px;
        padding: 0 6px 0 10px;
        border-radius: 9px;
        font-size: 10px;
    }

    .sort-control select {
        font-size: 12px;
    }

    .menu-browser-page .menu-card {
        min-height: 88px;
        gap: 8px;
        padding: 5px;
        border-radius: 10px;
        margin-bottom: 6px;
    }

    .menu-browser-page .menu-card-img {
        width: 34%;
        min-width: 34%;
        height: 78px;
        min-height: 78px;
        border-radius: 8px;
    }

    .menu-browser-page .badge {
        top: 6px;
        left: 6px;
        min-height: 22px;
        padding: 3px 6px;
        border-radius: 6px;
        font-size: 9px;
    }

    .menu-browser-page .menu-card-content {
        padding: 2px 2px 2px 0;
    }

    .menu-browser-page .menu-card-title {
        font-size: 13px;
    }

    .menu-browser-page .menu-card-desc {
        margin-top: 2px;
        font-size: 8px;
        line-height: 1.35;
    }

    .menu-browser-page .menu-card-footer {
        gap: 4px;
        margin-top: 4px;
    }

    .menu-browser-page .menu-rating {
        gap: 2px;
        font-size: 10px;
    }

    .menu-meta-icon {
        display: none;
    }

    .menu-browser-page .menu-price {
        margin-right: 2px;
        font-size: 16px;
    }

    .menu-browser-page .bottom-actions {
        bottom: 8px;
        width: calc(100vw - 56px);
    }
}

@media (max-width: 430px) {
    .menu-browser-page .filter-btn {
        min-width: 54px;
        width: 54px;
        padding: 0;
        font-size: 0;
    }

    .menu-results-toolbar {
        gap: 8px;
    }

    .sort-control {
        min-width: 145px;
    }

    .menu-browser-page .menu-card-img {
        width: 34%;
        min-width: 34%;
    }

    .menu-browser-page .menu-card-title {
        font-size: 13px;
    }

    .menu-browser-page .menu-card-desc {
        -webkit-line-clamp: 2;
        font-size: 8px;
    }

    .menu-browser-page .menu-rating {
        max-width: 65%;
        overflow: hidden;
        white-space: nowrap;
    }

    .menu-browser-page .menu-price {
        font-size: 16px;
    }
}

/* Shared RESTAURANT information pages */
.content-page {
    --content-width: 1120px;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
    background: #f7f7f5;
    color: #202020;
}

.content-page .navbar {
    min-height: 112px;
    padding: 18px max(28px, calc((100vw - var(--content-width)) / 2));
    background: radial-gradient(circle at 50% -100%, #292929 0, #171717 48%, #0d0d0d 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.content-page .nav-menu-btn {
    display: flex;
    width: 48px;
    height: 48px;
    padding: 9px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    border-radius: 12px;
}

.content-page .nav-menu-btn span {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: #fff;
}

.content-page .navbar-brand {
    position: absolute;
    left: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    color: #fff;
    text-decoration: none;
    transform: translateX(-50%);
}

.content-page .navbar-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.content-page .navbar-balance {
    width: 48px;
}

.sidebar-help-content {
    min-width: 0;
    flex: 1;
}

.sidebar-help-content strong,
.sidebar-help-content a,
.sidebar-help-content small {
    display: block;
}

.sidebar-help-content strong {
    margin-bottom: 8px;
    color: #fff;
    font-size: 14px;
}

.sidebar-help-content a {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    line-height: 1.6;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-help-content a:hover {
    color: #f59a23;
}

.sidebar-help-content a span {
    display: inline-block;
    width: 46px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-help-content small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    line-height: 1.45;
}

.info-page {
    width: min(var(--content-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 62px 0 110px;
}

.page-hero {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.page-eyebrow,
.content-kicker {
    display: inline-block;
    color: #e47718;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 10px 0 12px;
    color: #161616;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p,
.about-copy p,
.contact-intro,
.info-card p,
.empty-content p {
    color: #777;
    font-size: 14px;
    line-height: 1.8;
}

.content-card {
    border: 1px solid #e8e5df;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(34, 30, 24, 0.06);
}

.about-showcase {
    display: grid;
    grid-template-columns: minmax(230px, 0.8fr) 1.4fr;
    gap: 52px;
    align-items: center;
    padding: clamp(26px, 5vw, 58px);
}

.about-brand-panel {
    padding: 24px;
    border-radius: 22px;
    background: #181818;
    color: #fff;
    text-align: center;
}

.about-logo,
.about-logo-fallback {
    display: grid;
    width: 132px;
    height: 132px;
    margin: 0 auto 20px;
}

.about-logo {
    padding: 8px;
    object-fit: contain;
}

.about-logo-fallback {
    place-items: center;
    border-radius: 50%;
    background: #f59a23;
    font-size: 46px;
}

.about-brand-panel h2,
.about-copy h2,
.section-heading h2,
.contact-details h2,
.social-card h2 {
    margin: 0;
    color: inherit;
    line-height: 1.25;
}

.about-brand-panel h2 {
    font-size: 20px;
}

.food-type-list,
.about-highlights,
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.food-type-list {
    justify-content: center;
    margin-top: 16px;
}

.food-type {
    padding: 6px 9px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 10px;
    font-weight: 600;
}

.food-type.veg { color: #79d987; }
.food-type.nonveg { color: #ffae78; }
.about-copy h2 { margin-top: 8px; font-size: clamp(25px, 3vw, 38px); }
.about-copy p { margin: 18px 0 24px; }
.about-highlights span { padding: 10px 13px; border-radius: 10px; background: #fff5e9; color: #6b6258; font-size: 11px; }
.about-highlights strong { color: #e47718; }

.info-grid,
.contact-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.info-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 25px;
}

.info-card-icon,
.contact-row-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff1df;
    color: #e47718;
    font-size: 20px;
    font-weight: 700;
}

.info-card h3 { margin: 0 0 6px; font-size: 17px; }
.info-card p { margin: 0 0 5px; font-size: 12px; }
.info-card a { color: #e47718; font-size: 12px; font-weight: 700; text-decoration: none; }

.map-card { margin-top: 24px; overflow: hidden; }
.section-heading { padding: 25px 28px 17px; }
.section-heading h2 { margin-top: 6px; font-size: 24px; }
.map-frame { min-height: 260px; background: #eee; }
.map-frame iframe { display: block; width: 100%; min-height: 260px; border: 0; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 210px;
    gap: 18px;
}

.gallery-item {
    position: relative;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: #ddd;
    cursor: zoom-in;
}

.gallery-item-featured { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-item span { position: absolute; right: 12px; bottom: 12px; left: 12px; padding: 9px 11px; border-radius: 10px; background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 11px; text-align: left; }

.empty-content { padding: 64px 24px; text-align: center; }
.empty-content-icon { color: #e47718; font-size: 40px; }
.empty-content h2 { margin: 14px 0 6px; }

.gallery-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; padding: 30px; background: rgba(0, 0, 0, 0.9); }
.gallery-lightbox.active { display: grid; }
.gallery-lightbox figure { max-width: min(1000px, 94vw); max-height: 90vh; margin: 0; text-align: center; }
.gallery-lightbox img { display: block; max-width: 100%; max-height: 78vh; margin: auto; border-radius: 12px; }
.gallery-lightbox figcaption { margin-top: 12px; color: #fff; font-size: 13px; }
.gallery-lightbox-close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #222; font-size: 28px; cursor: pointer; }

.contact-layout { align-items: start; margin-top: 0; }
.contact-details { padding: clamp(26px, 5vw, 52px); }
.contact-details h2 { margin-top: 8px; font-size: clamp(25px, 3vw, 36px); }
.contact-intro { margin: 16px 0 26px; }
.contact-list { display: grid; gap: 12px; }
.contact-row { display: flex; gap: 14px; align-items: center; padding: 13px; border-radius: 15px; background: #faf8f4; color: #222; text-decoration: none; }
a.contact-row:hover { background: #fff1df; }
.contact-row span:last-child { min-width: 0; }
.contact-row small { display: block; margin-bottom: 3px; color: #9a9187; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-row strong { display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }
.whatsapp-icon { color: #25a65a; background: #e7f8ed; }
.contact-side { display: grid; gap: 20px; }
.contact-side .map-card { margin-top: 0; }
.social-card { margin-top: 24px; padding: 28px; }
.social-card h2 { margin: 7px 0 16px; font-size: 25px; }
.social-links a { padding: 10px 16px; border-radius: 99px; background: #181818; color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; }
.social-links a:hover { background: #e47718; }

@media (max-width: 760px) {
    .content-page .navbar {
        min-height: 84px;
        padding: 12px 14px;
    }

    .content-page .nav-menu-btn,
    .content-page .navbar-balance {
        width: 42px;
        height: 42px;
    }

    .content-page .navbar-brand {
        max-width: calc(100% - 116px);
        gap: 9px;
    }

    .content-page .navbar-brand img {
        width: 48px;
        height: 48px;
    }

    .content-page .navbar-brand-copy strong {
        font-size: clamp(12px, 3.7vw, 17px);
        line-height: 1.2;
    }

    .content-page .navbar-brand-copy small {
        margin-top: 4px;
        overflow: hidden;
        font-size: clamp(7px, 2vw, 9px);
        letter-spacing: 1px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar {
        width: min(310px, 92vw);
        padding: 14px;
    }

    .sidebar-nav a {
        padding: 11px 10px;
    }

    .sidebar-footer-card {
        margin-top: 18px;
    }

    .info-page { width: min(calc(100% - 28px), var(--content-width)); padding-top: 38px; }
    .about-showcase,
    .info-grid,
    .contact-layout { grid-template-columns: 1fr; gap: 16px; }
    .about-showcase { gap: 25px; padding: 20px; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 12px; }
    .gallery-item-featured { grid-column: span 2; grid-row: span 1; }
    .gallery-lightbox { padding: 18px; }
}

@media (max-width: 430px) {
    .content-page .navbar-brand {
        max-width: calc(100% - 112px);
    }

    .content-page .navbar-brand-copy strong {
        font-size: 13px;
    }

    .content-page .navbar-brand-copy small {
        font-size: 7px;
    }

    .page-hero h1 { font-size: 34px; }
    .page-hero p { font-size: 12px; }
    .gallery-grid { grid-auto-rows: 145px; }
    .gallery-item span { font-size: 10px; }
    .info-card,
    .contact-details,
    .social-card { padding: 20px; }
}

@media (max-width: 360px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item-featured { grid-column: span 1; }
}

@media (max-height: 650px) {
    .sidebar-header { padding-bottom: 10px; }
    .sidebar-welcome { padding-top: 12px; padding-bottom: 7px; }
    .sidebar-nav a { margin: 3px 0; padding-top: 9px; padding-bottom: 9px; }
    .sidebar-footer-card { margin-top: 12px; padding: 11px; }
}

/* Menu ordering */
.menu-browser-page .menu-card-content { min-width: 0; }
.menu-browser-page .menu-item-purchase { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 12px; margin-right: 14px; }
.menu-browser-page .menu-price { margin-right: auto; }
.cart-controls, .item-added-controls, .quantity-selector { display: flex; align-items: center; }
.item-add-btn[hidden], .item-added-controls[hidden] { display: none !important; }
.cart-controls { flex: 0 0 auto; min-height: 34px; }
.item-add-btn, .item-added-badge, .quantity-selector { min-height: 34px; border-radius: 7px; font: 600 12px/1 'Poppins', sans-serif; transition: opacity .25s ease, transform .25s ease, background-color .25s ease; }
.item-add-btn { min-width: 66px; padding: 9px 18px; border: 1px solid #038F32; background: #038F32; color: #fff; cursor: pointer; }
.item-add-btn:hover, .item-add-btn:focus-visible { border-color: #1254aa; background: #1254aa; transform: translateY(-1px); }
.item-added-controls { gap: 7px; animation: order-control-in .25s ease; }
.quantity-selector { overflow: hidden; border: 1px solid #dedede; background: #fff; }
.quantity-selector button { width: 32px; height: 32px; border: 0; background: #f5f5f5; color: #151515; font: 600 18px/1 'Poppins', sans-serif; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.quantity-selector button:hover, .quantity-selector button:focus-visible { background: #ececec; color: var(--primary); }
.item-quantity { width: 28px; color: #111; font-size: 12px; font-weight: 700; text-align: center; }
.item-added-badge { display: inline-flex; min-width: 57px; padding: 8px 10px; align-items: center; justify-content: center; border: 1px solid #038F32; background: #038F32; color: #fff; }
@keyframes order-control-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.view-order-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1200; display: flex; width: 100%; height: calc(50px + env(safe-area-inset-bottom)); min-height: 50px; padding: 5px max(48px, calc((100vw - 980px) / 2)) max(5px, env(safe-area-inset-bottom)); align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 0; background: linear-gradient(110deg,#f47721,#ff9d2f); box-shadow: 0 -5px 18px rgba(218,89,8,.24); color: #fff; cursor: pointer; font-family: 'Poppins',sans-serif; text-align: center; animation: view-order-in .25s ease; }
.view-order-bar[hidden], .order-summary-view[hidden], .menu-browser[hidden], .menu-browser-page > .navbar[hidden] { display: none !important; }
.view-order-bar:hover, .view-order-bar:focus-visible { filter: brightness(1.04); transform: translateY(-2px); }
.view-order-cart { position: absolute; left: max(16px, calc((100vw - 980px) / 2)); display: grid; width: 38px; height: 38px; place-items: center; border-radius: 7px; background: rgba(255,255,255,.18); }
.view-order-cart svg { width: 20px; height: 20px; }
.view-order-count { position: absolute; top: -4px; right: -4px; display: grid; min-width: 21px; height: 21px; padding: 0 5px; place-items: center; border: 2px solid #fb8a25; border-radius: 50%; background: #fff; color: #db5a0c; font-size: 10px; font-weight: 700; }
.view-order-label { min-width: 0; overflow: hidden; font-size: 14px; font-weight: 600; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.view-order-arrow { position: absolute; right: max(16px, calc((100vw - 980px) / 2)); width: 24px; height: 24px; }
@keyframes view-order-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

body.order-summary-open { padding-bottom: 0; overflow: hidden; }
.order-summary-view { position: fixed; inset: 0; z-index: 2500; display: flex; flex-direction: column; background: #f3f4f6; color: #202124; }
.order-summary-header { display: grid; grid-template-columns: 46px minmax(0,1fr) 46px; min-height: 86px; padding: max(12px,env(safe-area-inset-top)) max(20px,calc((100vw - 980px)/2)); align-items: center; border: 1px solid #ececec; border-top: 0; border-radius: 0 0 16px 16px; background: #fff; box-shadow: 0 5px 18px rgba(24,24,24,.06); }
.order-summary-heading { min-width: 0; text-align: center; }
.order-summary-header h1 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; }
.order-summary-heading p { margin: 4px 0 0; overflow: hidden; color: #878787; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.order-back-btn { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #e7e7e7; border-radius: 8px; background: #fff; color: #252525; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.order-back-btn:hover, .order-back-btn:focus-visible { border-color: #f47721; background: #fff7f0; color: #e7650b; }
.order-back-btn svg { width: 21px; height: 21px; }
.order-summary-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.order-summary-content { width: min(920px,calc(100% - 36px)); margin: 0 auto; padding: 24px 0 calc(28px + env(safe-area-inset-bottom)); }
.order-info-banner { display: flex; align-items: flex-start; gap: 12px; padding: 15px 17px; border: 1px solid #b9e3c5; border-radius: 8px; background: #e9f8ed; color: #236e3b; }
.order-info-banner svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.order-info-banner p { margin: 0; font-size: 12px; font-weight: 500; line-height: 1.55; }
.order-items { margin-top: 18px; overflow: hidden; border: 1px solid #e7e7e7; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(31,31,31,.045); }
.order-item { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 16px; min-height: 86px; padding: 13px 20px; border-bottom: 1px solid #ededed; }
.order-item:last-child { border-bottom: 0; }
.order-item-details { min-width: 0; }
.order-item-details h3 { margin: 0; color: #111; font-size: 15px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.order-item-details p { margin: 5px 0 0; color: #656565; font-size: 11px; font-weight: 500; }
.order-quantity-selector { display: inline-grid; grid-template-columns: 30px 36px 30px; width: 96px; height: 30px; overflow: hidden; border: 1px solid #dedede; border-radius: 7px; background: #fff; }
.order-quantity-selector button { display: grid; width: 30px; height: 28px; padding: 0; place-items: center; border: 0; background: #fafafa; color: #555; font: 600 16px/1 'Poppins',sans-serif; cursor: pointer; transition: background-color .2s ease,color .2s ease; }
.order-quantity-selector button:last-child { background: #f45d00; color: #fff; }
.order-quantity-selector button:hover, .order-quantity-selector button:focus-visible { background: #ededed; color: #222; }
.order-quantity-selector button:last-child:hover, .order-quantity-selector button:last-child:focus-visible { background: #dc5200; color: #fff; }
.order-item-quantity { display: grid; width: 36px; height: 28px; place-items: center; color: #111; font-size: 12px; font-weight: 700; }
.order-item-subtotal { color: #ef5b0b; font-size: 15px; font-weight: 700; white-space: nowrap; }
.order-item-delete { display: none !important; }
.bill-summary { margin-top: 18px; padding: 24px 30px; border: 1px solid #e7e7e7; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(31,31,31,.045); }
.bill-summary h2 { display: flex; margin: 0 0 16px; align-items: center; gap: 11px; color: #202020; font-size: 17px; font-weight: 700; }
.bill-summary h2 svg { width: 22px; height: 22px; color: #f45d00; }
.bill-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 0; color: #747474; font-size: 12px; }
.bill-row strong { color: #393939; font-weight: 600; white-space: nowrap; }
.bill-total { margin-top: 9px; padding-top: 17px; border-top: 1px dashed #d7d7d7; color: #202020; font-size: 15px; font-weight: 700; }
.bill-total strong { color: #ef741c; font-size: 21px; font-weight: 700; }
.back-to-menu-btn { display: flex; width: 100%; min-height: 54px; margin-top: 18px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 8px; background: linear-gradient(110deg,#f47721,#ff9d2f); box-shadow: 0 8px 20px rgba(225,103,19,.22); color: #fff; font: 600 14px/1 'Poppins',sans-serif; cursor: pointer; transition: filter .2s ease,transform .2s ease; }
.back-to-menu-btn:hover, .back-to-menu-btn:focus-visible { filter: brightness(1.04); transform: translateY(-1px); }
.back-to-menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 700px) {
    .menu-browser-page .menu-card-footer { align-items: flex-end; }
    .menu-browser-page .menu-item-purchase { flex-direction: column; align-items: flex-end; gap: 6px; margin-right: 8px; }
    .menu-browser-page .menu-price { margin-right: 0; }
    .item-added-controls { gap: 5px; }
    .quantity-selector button { width: 28px; }
    .item-quantity { width: 23px; }
    .item-added-badge { min-width: 52px; padding-right: 7px; padding-left: 7px; font-size: 10px; }
    .order-summary-header { min-height: 78px; padding-right: 14px; padding-left: 14px; border-radius: 0 0 12px 12px; }
    .order-summary-header h1 { font-size: 18px; }
    .order-summary-content { width: min(100% - 24px,920px); padding-top: 12px; }
    .order-info-banner { padding: 11px 12px; }
    .order-item { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; min-height: 66px; padding: 10px 12px; }
    .order-item-details h3 { font-size: 12px; }
    .order-item-details p { margin-top: 3px; font-size: 9px; }
    .order-quantity-selector { grid-template-columns: 24px 28px 24px; width: 76px; height: 25px; }
    .order-quantity-selector button { width: 24px; height: 23px; font-size: 14px; }
    .order-item-quantity { width: 28px; height: 23px; font-size: 10px; }
    .order-item-subtotal { font-size: 12px; }
    .bill-summary { margin-top: 12px; padding: 14px 12px; }
}
@media (max-width: 390px) {
    .order-summary-content { width: calc(100% - 16px); }
    .order-item { gap: 5px; padding-right: 8px; padding-left: 8px; }
    .order-quantity-selector { grid-template-columns: 21px 25px 21px; width: 67px; height: 23px; }
    .order-quantity-selector button { width: 21px; height: 21px; font-size: 12px; }
    .order-item-quantity { width: 25px; height: 21px; font-size: 9px; }
    .order-item-subtotal { font-size: 11px; }
    .menu-browser-page .menu-card-img { width: 96px; min-width: 96px; }
    .menu-browser-page .menu-card-content { padding-left: 0; }
    .item-add-btn { min-width: 25px; padding-right: 13px; padding-left: 13px; }
    .quantity-selector button { width: 26px; }
    .item-quantity { width: 21px; }
    .item-added-badge { min-width: 48px; }
    .view-order-bar { right: 0; bottom: 0; left: 0; width: 100%; }
}

/* Keep menu metadata and cart actions on one row at every breakpoint. */
.menu-browser-page .menu-card-footer {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.menu-browser-page .menu-rating {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-browser-page .menu-item-purchase {
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-right: 0;
}

.menu-browser-page .menu-item-purchase {
    --cart-action-width: 160px;
    display: grid;
    grid-template-columns: max-content var(--cart-action-width);
}

.menu-browser-page .menu-price {
    position: static;
    grid-column: 1;
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.menu-browser-page .cart-controls {
    grid-column: 2;
    width: var(--cart-action-width);
    justify-content: flex-end;
}

.menu-browser-page .cart-controls,
.menu-browser-page .item-added-controls,
.menu-browser-page .quantity-selector {
    flex-flow: row nowrap;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .menu-browser-page .menu-card-footer {
        align-items: center;
        gap: 3px;
    }

    .menu-browser-page .menu-item-purchase {
        --cart-action-width: 114px;
        align-items: center;
        gap: 3px;
        margin-right: 0;
    }

    .menu-browser-page .menu-price {
        margin: 0;
        font-size: 14px;
    }

    .menu-browser-page .item-added-controls {
        gap: 3px;
    }

    .menu-browser-page .quantity-selector button {
        width: 24px;
        height: 28px;
    }

    .menu-browser-page .item-quantity {
        width: 19px;
        font-size: 11px;
    }

    .menu-browser-page .item-add-btn,
    .menu-browser-page .item-added-badge {
        min-height: 28px;
        font-size: 9px;
    }

    .menu-browser-page .item-add-btn {
        min-width: 38px;
        padding: 7px 8px;
    }

    .menu-browser-page .item-added-badge {
        min-width: 42px;
        padding-right: 5px;
        padding-left: 5px;
    }
}

@media (max-width: 390px) {
    .menu-browser-page .menu-card-footer {
        gap: 2px;
    }

    .menu-browser-page .menu-item-purchase {
        --cart-action-width: 96px;
        gap: 2px;
    }

    .menu-browser-page .menu-price {
        font-size: 12px;
    }

    .menu-browser-page .item-added-controls {
        gap: 2px;
    }

    .menu-browser-page .quantity-selector button {
        width: 20px;
        height: 25px;
        font-size: 15px;
    }

    .menu-browser-page .item-quantity {
        width: 16px;
        font-size: 10px;
    }

    .menu-browser-page .item-add-btn,
    .menu-browser-page .item-added-badge {
        min-height: 25px;
        font-size: 8px;
    }

    .menu-browser-page .item-add-btn {
        min-width: 32px;
        padding: 6px 5px;
    }

    .menu-browser-page .item-added-badge {
        min-width: 36px;
        padding-right: 3px;
        padding-left: 3px;
    }
}

/* Keep price after serving details and prevent desktop actions from clipping. */
@media (min-width: 761px) and (max-width: 1023px) {
    .menu-browser-page .menu-card-footer {
        flex-flow: row nowrap;
        align-items: center;
    }

    .menu-browser-page .menu-item-purchase {
        flex-flow: row nowrap;
        align-items: center;
    }

    .menu-browser-page .menu-price {
        position: static;
        order: 0;
        margin: 0;
    }

    .menu-browser-page .cart-controls {
        order: 1;
    }
}

@media (min-width: 1024px) {
    .menu-browser-page .menu-card {
        overflow: hidden;
        gap: 7px;
    }

    .menu-browser-page .menu-card-img {
        width: 34%;
        min-width: 72px;
        max-width: 88px;
    }

    .menu-browser-page .menu-card-content {
        min-width: 0;
        padding-right: 0;
    }

    .menu-browser-page .menu-card-footer,
    .menu-browser-page .menu-item-purchase {
        gap: 2px;
    }

    .menu-browser-page .menu-item-purchase {
        --cart-action-width: 88px;
    }

    .menu-browser-page .menu-rating {
        font-size: 8px;
    }

    .menu-browser-page .menu-price {
        position: static;
        order: 0;
        margin: 0;
        font-size: 13px;
    }

    .menu-browser-page .cart-controls {
        order: 1;
    }

    .menu-browser-page .item-add-btn,
    .menu-browser-page .item-added-badge {
        min-height: 26px;
        border-color: #038F32;
        background: #038F32;
        font-size: 8px;
    }

    .menu-browser-page .item-add-btn {
        min-width: 36px;
        padding: 6px;
    }

    .menu-browser-page .item-added-controls {
        gap: 2px;
    }

    .menu-browser-page .quantity-selector button {
        width: 18px;
        height: 26px;
        font-size: 14px;
    }

    .menu-browser-page .item-quantity {
        width: 14px;
        font-size: 9px;
    }

    .menu-browser-page .item-added-badge {
        min-width: 34px;
        padding-right: 3px;
        padding-left: 3px;
    }

    .menu-browser-page .view-order-bar {
        right: 50%;
        bottom: 14px;
        left: auto;
        width: min(560px, calc(100vw - 48px));
        height: 48px;
        min-height: 48px;
        padding: 5px 48px;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(218, 89, 8, .28);
        transform: translateX(50%);
    }

    .menu-browser-page .view-order-cart {
        left: 14px;
    }

    .menu-browser-page .view-order-arrow {
        right: 14px;
    }

    .menu-browser-page .view-order-bar:hover,
    .menu-browser-page .view-order-bar:focus-visible {
        transform: translateX(50%) translateY(-2px);
    }
}


