/* نجمة الصنف المميز - توحيد البعد بين جميع الشاشات */
.item-star {
        position: absolute;
        top: 6px;
        left: 6px;
        color: #ffc107;
        font-size: 1.13rem;
        z-index: 3;
        background: rgba(255,255,255,0.92);
        border-radius: 50%;
        padding: 2px 5px;
        box-shadow: 0 1px 4px rgba(44,62,80,0.10);
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
}

@media (max-width: 991.98px) {
    .item-star {
        top: 6px;
        left: 6px;
        font-size: 1.13rem;
        padding: 2px 5px;
    }
}
/* ===== Public Menu View ===== */
.menu-body {
    margin: 0;
    padding: 0;
    font-family: "Tajawal", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-size-adjust: 100%;
    background:
        radial-gradient(circle at 15% 10%, rgba(230, 126, 34, 0.08), transparent 38%),
        radial-gradient(circle at 85% 25%, rgba(44, 62, 80, 0.08), transparent 42%),
        #f7f8fa;
    color: #26313d;
}

.menu-body.menu-protected-page,
.menu-body.menu-protected-page * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.menu-body.menu-protected-page img {
    -webkit-user-drag: none;
}

/* Layout */
.menu-wrapper {
    display: flex;
    gap: 0;
    min-height: 100vh;
}

.menu-sidebar {
    width: 300px;
    min-height: 100vh;
    background: #ffffff;
    box-shadow: 6px 0 18px rgba(36, 45, 54, 0.05);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 24px 16px;
}

.menu-main {
    flex: 1;
    padding: 24px;
    min-width: 0;
    background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.97), rgba(241, 245, 249, 0.98));
}

.menu-intro-card {
    display: none;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 244, 0.96));
    border: 1px solid rgba(230, 126, 34, 0.18);
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(37, 47, 58, 0.06);
    padding: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.menu-intro-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.menu-intro-logo,
.menu-intro-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
}

.menu-intro-logo {
    object-fit: cover;
    border: 2px solid rgba(230, 126, 34, 0.3);
}

.menu-intro-logo-placeholder {
    background: linear-gradient(135deg, var(--primary, #e67e22), #d35400);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.menu-intro-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 5px;
}

.menu-intro-head {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
}

.menu-intro-name {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 800;
    color: #24303d;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-intro-type {
    width: fit-content;
    max-width: 100%;
    flex-shrink: 0;
    margin-right: 0;
    margin-left: 0;
}

.menu-intro-toggle {
    margin-bottom: 0;
    width: auto;
    min-width: 166px;
    border-color: color-mix(in srgb, var(--primary, #e67e22) 36%, #d9e2ec);
    background: color-mix(in srgb, var(--primary, #e67e22) 10%, #ffffff);
    color: #25303d;
    box-shadow: none;
}

.menu-intro-toggle-content {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.restaurant-info-toggle {
    display: none;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #2f3a46;
    font-weight: 700;
    font-size: 0.9rem;
    min-height: 42px;
    padding: 8px 12px;
    margin-bottom: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.restaurant-info-backdrop {
    display: none;
}

.mobile-sidebar-head {
    display: none;
}

.mobile-sidebar-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #24303d;
}

.mobile-sidebar-close {
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #53606f;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-sidebar-close:hover {
    color: #1f2a37;
    border-color: #cfd8e3;
    background: #f6f9fc;
}

.restaurant-info-toggle-icon {
    transition: transform 0.2s ease;
}

.restaurant-info-toggle[aria-expanded="true"] .restaurant-info-toggle-icon {
    transform: rotate(180deg);
}

/* Sidebar */
.restaurant-identity {
    background: linear-gradient(180deg, rgba(230, 126, 34, 0.08), rgba(255, 255, 255, 0.6));
    border: 1px solid rgba(230, 126, 34, 0.2);
    border-radius: 16px;
    padding: 18px 12px;
}

.restaurant-logo {
    width: 98px;
    height: 98px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary, #e67e22);
    box-shadow: 0 6px 14px rgba(230, 126, 34, 0.12);
}

.restaurant-logo-placeholder {
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #e67e22), #d35400);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    border: 3px solid var(--primary, #e67e22);
    box-shadow: 0 6px 14px rgba(230, 126, 34, 0.12);
}

.restaurant-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #25303d;
    line-height: 1.4;
}

.restaurant-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary, #e67e22) 20%, #ffffff), #ffffff);
    border: 1px solid color-mix(in srgb, var(--primary, #e67e22) 35%, #ffffff);
    color: #2f3a46;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.08);
}

.restaurant-type-icon {
    width: 15px;
    height: 15px;
    font-size: 0.85rem;
    color: var(--primary, #e67e22);
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-section {
    background: #fff;
    border: 1px solid #ebedf0;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: #5b6672;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.branches-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary, #e67e22) 12%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--primary, #e67e22) 30%, #ffffff);
    color: var(--primary, #e67e22);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0 7px;
    margin-right: 2px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #2f3a46;
    text-decoration: none;
    background: #f6f8fa;
    border: 1px solid #edf0f3;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.94rem;
    line-height: 1.45;
    margin-bottom: 8px;
}

.contact-item i {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item:hover {
    background: #eff3f7;
    color: #2f3a46;
}

.menu-powered-link {
    color: var(--primary, #e67e22);
    font-weight: 700;
    text-decoration: none;
    margin-inline-start: 4px;
}

.menu-powered-link:hover {
    color: color-mix(in srgb, var(--primary, #e67e22) 82%, #000000);
    text-decoration: underline;
}

.social-links-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(31, 40, 49, 0.1);
}

.social-facebook {
    background: #1877f2;
}

.social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-x {
    background: #000000;
}

.social-tiktok {
    background: #000000;
}

.social-website {
    background: #0d6efd;
}

.address-box {
    background: #f7f9fc;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    padding: 10px;
}

.address-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #2f3a46;
    margin-bottom: 6px;
}

.address-text {
    color: #647181;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 8px;
    white-space: pre-line;
}

.address-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #c0392b;
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.22);
    border-radius: 10px;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.address-link:hover {
    color: #a93226;
    background: rgba(169, 50, 38, 0.12);
    border-color: rgba(169, 50, 38, 0.32);
}

.branch-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.branch-card {
    background: #f7f9fc;
    border: 1px solid #e6ebf1;
    border-radius: 12px;
    padding: 10px;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.branch-card:hover {
    border-color: color-mix(in srgb, var(--primary, #e67e22) 35%, #d8dfe6);
    box-shadow: 0 4px 10px rgba(31, 41, 52, 0.05);
    transform: translateY(-1px);
}

.branch-card-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.branch-name {
    font-weight: 700;
    color: #2c3642;
    line-height: 1.35;
}

.branch-address {
    color: #6e7986;
    font-size: 0.84rem;
    line-height: 1.5;
}

.branch-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.branch-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid #e3e8ef;
    background: #fff;
    color: #3a4552;
    min-height: 36px;
    padding: 6px 8px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-wrap: balance;
}

.branch-action span {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.branch-action:hover {
    color: #23303e;
    background: #f2f6fb;
    border-color: #d6dfea;
}

.branch-action-map {
    color: #c0392b;
    border-color: rgba(192, 57, 43, 0.22);
    background: rgba(192, 57, 43, 0.08);
}

.branch-action-map:hover {
    color: #a93226;
    border-color: rgba(169, 50, 38, 0.32);
    background: rgba(169, 50, 38, 0.12);
}

.branch-action-phone {
    color: #1f7a45;
    border-color: rgba(31, 122, 69, 0.24);
    background: rgba(31, 122, 69, 0.08);
}

.branch-action-phone:hover {
    color: #176338;
    border-color: rgba(23, 99, 56, 0.35);
    background: rgba(23, 99, 56, 0.12);
}

/* Dynamic slider */
.menu-slider-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(38, 49, 61, 0.07);
    border: 1px solid rgba(230, 126, 34, 0.2);
    background: #fffdfa;
}

.menu-banner-slider .carousel-item {
    position: relative;
}

.menu-slide-link {
    display: block;
    text-decoration: none;
}

.menu-slide-img {
    width: 100%;
    height: clamp(190px, 28vw, 280px);
    object-fit: cover;
    background: linear-gradient(120deg, #f6f7f8, #eceff1);
}

.menu-slide-caption {
    left: 14px;
    right: 14px;
    bottom: 10px;
    text-align: right;
}

.menu-slide-caption span {
    display: inline-block;
    background: rgba(20, 24, 29, 0.58);
    color: #fff;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    backdrop-filter: blur(3px);
}

.menu-banner-slider .carousel-indicators {
    margin-bottom: 0.45rem;
}

.menu-banner-slider .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.menu-banner-slider .carousel-control-prev,
.menu-banner-slider .carousel-control-next {
    width: 10%;
}

.menu-banner-slider .carousel-control-prev-icon,
.menu-banner-slider .carousel-control-next-icon {
    width: 1.9rem;
    height: 1.9rem;
    background-color: rgba(21, 24, 29, 0.36);
    border-radius: 50%;
    padding: 0.86rem;
    background-size: 58% 58%;
}

/* Fixed ads layout */
.top-ad-banner {
    width: 100%;
    text-align: center;
    padding: 0;
    margin: 0;
    background: transparent;
}

.top-ad-banner > a,
.ad-banner-link {
    display: block;
}

.top-ad-img {
    width: 100%;
    max-height: 132px;
    object-fit: cover;
    display: block;
    margin: 0;
}

.ad-banner-wrap {
    border-radius: 16px;
    overflow: hidden;
}

.ad-banner-img {
    width: 100%;
    max-height: 205px;
    object-fit: cover;
    display: block;
}

/* Content sections */
.content-section {
    background: #ffffff;
    border: 1px solid #eceef1;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 3px 10px rgba(45, 54, 64, 0.04);
}

.section-heading {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #2a3440;
}

.section-count-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.9rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: #fff3dc;
    border: 1px solid #efcf96;
    color: #8a5c06;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
    box-sizing: border-box;
    flex-shrink: 0;
}

.category-description-note {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: -0.1rem 0 0.85rem;
    padding: 0.65rem 0.9rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(230, 126, 34, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 237, 0.98) 48%, rgba(255, 239, 214, 0.98) 100%),
        linear-gradient(90deg, rgba(230, 126, 34, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
    color: #7a4c12;
    box-shadow: 0 10px 22px rgba(230, 126, 34, 0.09);
    position: relative;
    overflow: hidden;
}

.category-description-note__icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f4b04d 0%, #e67e22 100%);
    color: #fff;
    font-size: 0.88rem;
    box-shadow: 0 6px 14px rgba(230, 126, 34, 0.18);
}

.category-description-note__text {
    min-width: 0;
    color: #6d4310;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .category-description-note {
        border-radius: 18px;
        align-items: flex-start;
        padding: 0.62rem 0.78rem 0.68rem;
    }

    .category-description-note__icon {
        width: 1.95rem;
        height: 1.95rem;
        font-size: 0.82rem;
    }

    .category-description-note__text {
        font-size: 0.84rem;
        line-height: 1.65;
    }
}

/* Categories nav */
.category-tab {
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.15;
    min-height: 40px;
    border: 1px solid #e4e8ee;
    background: #f7f9fb;
    color: #4b5866;
    scroll-snap-align: start;
    box-sizing: border-box;
    text-align: center;
}

.category-tab.active,
.category-tab:hover {
    background: var(--primary, #e67e22);
    color: #fff;
    border-color: var(--primary, #e67e22);
}

.category-tabs-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    cursor: grab;
    user-select: none;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
}

.category-tabs-wrap.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.category-tabs-wrap::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.category-icon,
.item-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    vertical-align: middle;
}

.category-icon--tab {
    width: 1.45em;
    height: 1.45em;
    font-size: 0.98rem;
}

.category-icon--tab img,
.item-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.category-icon--heading {
    width: 1.5em;
    height: 1.5em;
    font-size: 1rem;
}

.item-category-icon {
    width: 1.2em;
    height: 1.2em;
    font-size: 0.92rem;
    color: var(--primary, #e67e22);
}

.item-category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.item-category-text {
    line-height: 1.2;
}

.menu-main .row.g-3 > [class*="col-"] {
    display: flex;
}

.menu-main .row.g-3 > [class*="col-"] > .menu-item-card {
    width: 100%;
}

/* Menu items */
.menu-item-card {
    --item-content-width: 100%;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eceff3;
    box-shadow: 0 1px 8px rgba(35, 47, 58, 0.05);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 12px 14px 12px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    min-height: 380px;
    max-height: none;
    justify-content: space-between;
    gap: 0;
}

.menu-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(35, 47, 58, 0.08);
}

.item-image-wrap {
    width: 100%;
    aspect-ratio: 1.2/1;
    min-height: 112px; /* -20% */
    max-height: 120px;
    height: 120px;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 8px auto;
    background: transparent;
    border: 0;
    border-radius: 12px;
    overflow: visible;
}

.item-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 0;
}

.item-image-fallback {
    border: 0;
    background: #fff;
}

.item-image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f0f0, #e3e6ea);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2ad;
    font-size: 1.4rem;
}

.item-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f39c12;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem; /* slightly larger badge font-size for better star size */
    z-index: 2;
    box-shadow: 0 2px 8px 0 rgba(44,62,80,0.18), 0 1.5px 4px 0 rgba(230,126,34,0.13);
}

.item-badge i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.7em; /* star is smaller than the circle */
    margin: 0;
    position: static;
    transform: none;
}

.item-body {
    padding: 0 2px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-content: stretch;
    min-height: 0;
    flex: 1 1 auto;
    gap: 6px;
    height: 100%;
}

.item-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    align-self: center;
    width: 100%;
    max-width: 144px; /* -20% */
    background: color-mix(in srgb, var(--primary, #e67e22) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--primary, #e67e22) 28%, #ffffff);
    color: var(--primary, #e67e22);
    font-size: 0.86rem;
    line-height: 1.15;
    border-radius: 999px;
    padding: 5px 10px;
    max-width: 100%;
    margin: 0 auto 2px auto;
    text-align: center;
    height: 28px;
    min-height: 28px;
    box-sizing: border-box;
    vertical-align: middle;
}

.item-category-icon {
    width: 14px;
    height: 14px;
    font-size: 0.78rem;
    object-fit: cover;
    color: var(--primary, #e67e22);
    flex-shrink: 0;
}

.item-category-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    line-height: 1.15;
    min-height: 1.15em;
}

.item-name {
    font-weight: 700;
    font-size: 1.04rem;
    color: #24303d;
    margin-top: 2px;
    margin-bottom: 2px;
    line-height: 1.38;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.5em;
    max-height: 2.7em;
    overflow-wrap: anywhere;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.item-desc {
    font-size: 0.88rem;
    color: #556373;
    line-height: 1.66;
    font-weight: 500;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0.55rem 0.7rem;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    height: calc((1.66em * 5) + 1.1rem);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-wrap: anywhere;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    box-sizing: border-box;
}

.item-desc-text {
    width: 100%;
    display: -webkit-box;
    overflow: hidden;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

.item-desc.item-desc-empty {
    color: #a7b0ba;
    opacity: 0.75;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-clamp: unset;
    -webkit-line-clamp: unset;
}

.item-desc.item-desc-empty .item-desc-text {
    display: block;
    line-clamp: unset;
    -webkit-line-clamp: unset;
}

.item-body > .mt-auto {
    margin-top: 0 !important;
    margin-bottom: 0px;
    text-align: center;
}

.item-text-spacer {
    display: block;
    flex: 1 1 auto;
    width: var(--item-content-width);
    margin-left: auto;
    margin-right: auto;
    min-height: 0;
}

.item-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;
    text-align: center;
    margin-top: auto;
    width: var(--item-content-width);
    margin-left: auto;
    margin-right: auto;
    padding-top: 2px;
    padding-bottom: 1px;
    min-height: 38px;
    height: auto;
}

.item-price {
    font-weight: 700;
    color: var(--primary, #e67e22);
    font-size: 1rem;
    line-height: 1.25;
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 0;
}

.item-price-old {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    text-decoration-color: #94a0ac;
    color: #9aa4b0;
    font-size: 0.83rem;
    font-weight: 500;
    line-height: 1.2;
    min-height: 0.7em;
    display: block;
}

.featured-price del {
    text-decoration-thickness: 1px;
    text-decoration-color: #94a0ac;
    font-weight: 500;
}

.item-price-old-empty {
    visibility: hidden;
    min-height: 0.3em;
    display: block;
}

/* Featured */
.featured-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.featured-grid > .featured-card {
    flex: 1 1 300px;
    max-width: 100%;
    height: 100%;
}

.featured-card.is-collapsed {
    display: none;
}

.featured-card {
    background: #fff8ea;
    border: 1px solid rgba(230, 126, 34, 0.22);
    border-radius: 14px;
    padding: 14px;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    row-gap: 0;
    height: auto;
    min-height: 124px;
    overflow: visible;
    position: relative;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.featured-card:hover {
    transform: none;
    box-shadow: none;
}

.featured-img {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid var(--primary, #e67e22);
    flex-shrink: 0;
    align-self: center;
}

.featured-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    text-align: right;
    height: 100%;
    min-height: 96px;
    gap: 2px;
    overflow: visible;
}

.featured-head {
    display: block;
    min-width: 0;
    min-height: 0;
    margin-bottom: 0;
}

.featured-title {
    font-size: 1.04rem;
    line-height: 1.25;
    font-weight: 700;
    color: #24303d;
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-desc {
    font-size: 0.84rem;
    color: #596777;
    line-height: 1.45;
    font-weight: 500;
    min-height: calc(1.45em * 2);
    text-align: right;
    overflow: visible;
    display: flex;
    align-items: center;
    padding-bottom: 1px;
}

.featured-desc-text {
    width: 100%;
    overflow-wrap: anywhere;
    display: block;
    overflow: visible;
}

.featured-desc-empty {
    visibility: visible;
    color: #8b96a3;
    opacity: 0.95;
    font-style: italic;
}

.featured-price {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary, #e67e22);
    font-size: 1.02rem;
    min-height: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.featured-img-fallback {
    border-color: rgba(230, 126, 34, 0.38);
    background: #fff;
}

.featured-badge {
    background: var(--primary, #e67e22);
    color: #fff;
    font-size: 0.68rem;
    padding: 3px 9px;
    border-radius: 999px;
    font-weight: 700;
    position: absolute;
    top: 10px;
    left: 10px;
    line-height: 1.2;
    z-index: 2;
}

@media (max-width: 1199.98px) {
    .featured-grid > .featured-card {
        flex-basis: 100%;
    }
}

.featured-toggle-btn {
    width: 100%;
    max-width: 100%;
    border-radius: 999px;
    border: 1px solid #efd7ab;
    background: #fff8ea;
    color: #7b570d;
    font-weight: 700;
    padding: 8px 18px;
}

.featured-toggle-btn:hover,
.featured-toggle-btn:focus {
    background: #fff3dc;
    color: #6f4d08;
    border-color: #e6c98f;
}

/* Responsive */
@media (max-width: 991.98px) {
    .menu-body,
    .menu-main,
    .menu-sidebar {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .menu-body,
    .menu-wrapper,
    .menu-main {
        overflow-x: hidden;
    }

    .menu-body::-webkit-scrollbar,
    .menu-main::-webkit-scrollbar,
    .menu-sidebar::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .menu-wrapper {
        flex-direction: column;
    }

    .restaurant-info-toggle {
        display: inline-flex;
        background: linear-gradient(180deg, #ffffff, #f9fbfd);
        box-shadow: 0 4px 10px rgba(36, 45, 54, 0.05);
    }

    .menu-intro-card {
        display: flex;
        padding: 11px;
    }

    .menu-intro-toggle {
        min-width: 154px;
    }

    .menu-main {
        order: 1;
        padding: 16px;
    }

    .menu-sidebar {
        width: min(86vw, 340px);
        min-height: 100dvh;
        height: 100dvh;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1060;
        border-left: 1px solid #ebedf0;
        border-top: none;
        border-radius: 0;
        box-shadow: -10px 0 24px rgba(23, 30, 38, 0.12);
        margin-top: 0;
        transform: translateX(106%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease, visibility 0.26s ease;
        overscroll-behavior: contain;
    }

    .menu-sidebar.is-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-sidebar-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: -24px;
        z-index: 2;
        margin: -24px -16px 14px;
        padding: 14px 16px;
        background: #ffffff;
        border-bottom: 1px solid #edf1f5;
    }

    .restaurant-info-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1050;
        background: rgba(18, 24, 31, 0.42);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.24s ease, visibility 0.24s ease;
    }

    .restaurant-info-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .menu-body.menu-overlay-open {
        overflow: hidden;
    }
}

@media (max-width: 767.98px) {
    .menu-sidebar {
        width: min(92vw, 340px);
    }

    .menu-main {
        padding: 12px;
    }

    .menu-intro-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }

    .menu-intro-identity {
        align-items: center;
    }

    .menu-intro-logo,
    .menu-intro-logo-placeholder {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .menu-intro-name {
        font-size: 1.08rem;
        line-height: 1.45;
        margin-top: 6px;
        white-space: normal;
        overflow: hidden;
        text-overflow: unset;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .menu-intro-head {
        gap: 6px;
        flex-wrap: wrap;
    }

    .menu-intro-toggle {
        width: 100%;
        min-width: 0;
    }

    .menu-slider-wrap {
        border-radius: 12px;
    }

    .ad-banner-wrap {
        border-radius: 12px;
    }

    .top-ad-img {
        max-height: 110px;
    }

    .ad-banner-img {
        max-height: 165px;
    }

    .menu-slide-img {
        height: clamp(165px, 43vw, 215px);
    }

    .menu-slide-caption {
        left: 10px;
        right: 10px;
        bottom: 8px;
    }

    .menu-slide-caption span {
        font-size: 0.76rem;
        padding: 6px 10px;
    }

    .content-section {
        padding: 12px;
    }

    .menu-item-card {
        --item-content-width: 100%;
        padding: 12px;
        height: 100%;
        min-height: 350px;
        max-height: none;
    }

    .item-image,
    .item-image-placeholder {
        border-radius: 10px;
    }

    .item-image-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        padding: 0;
        margin: 0 auto 12px;
        border-radius: 12px;
    }

    .item-image,
    .item-image-placeholder {
        width: 100%;
        height: 100%;
    }

    .item-body {
        padding-bottom: 0;
        min-height: 0;
        flex: 1;
        gap: 6px;
    }

    .item-text-spacer {
        display: block;
        flex: 1 1 auto;
        min-height: 4px;
    }

    .item-body > .mt-auto {
        margin-bottom: 6px;
    }

    .item-price-wrap {
        width: var(--item-content-width);
        padding-bottom: 0;
    }

    .item-category {
        width: var(--item-content-width);
        font-size: 0.78rem;
        padding: 4px 8px;
        gap: 5px;
        min-height: 26px;
        height: 26px;
    }

    .item-category-icon {
        width: 12px;
        height: 12px;
        font-size: 0.72rem;
    }

    .item-name {
        font-size: 1rem;
        margin-top: 4px;
        line-height: 1.4;
    }

    .item-desc {
        font-size: 0.84rem;
        line-height: 1.65;
        padding: 0.5rem 0.6rem;
        height: calc((1.65em * 6) + 1rem);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 0;
    }

    .item-desc-text {
        line-clamp: 6;
        -webkit-line-clamp: 6;
    }

    .item-price-wrap {
        min-height: 36px;
        height: auto;
        padding-top: 2px;
    }

    .item-price {
        font-size: 0.95rem;
    }

    .featured-card {
        padding: 12px;
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: stretch;
        column-gap: 10px;
        height: auto;
        min-height: 100px;
    }

    .featured-title {
        font-size: 1rem;
    }

    .featured-desc {
        font-size: 0.82rem;
        line-height: 1.45;
        min-height: calc(1.45em * 2);
    }

    .featured-img {
        width: 88px;
        height: 100%;
        min-height: 88px;
        border-radius: 14px;
        align-self: stretch;
    }

    .featured-content {
        height: 100%;
        min-height: 88px;
    }

    .featured-grid {
        gap: 10px;
    }

    .featured-grid > .featured-card {
        flex-basis: 100%;
    }

    .category-tab {
        font-size: 0.86rem;
        padding: 7px 12px;
        min-height: 38px;
    }

    .menu-item-card:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(35, 47, 58, 0.08);
    }

    .featured-card:hover {
        transform: none;
        box-shadow: none;
    }

    .branch-actions {
        grid-template-columns: 1fr;
    }

    .branch-action {
        min-height: 32px;
        font-size: 0.82rem;
    }
}
