@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
}

/* ============================================
   RESTAURANT REDESIGN - MATCHING IMAGE 2
   Yellow/Black Theme with Modern Layout
   ============================================ */

/* Force Bootstrap Modal Z-index (Fixes black shaded screen bug) */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

/* ============================================
   1. BLACK/DARK PURPLE TOP BAR (Opening Hours, Phone, etc.)
   ============================================ */
.restaurant-top-bar {
    background-color: indigo;
    /* Matches top nav bg-grad */
    color: #ffffff;
    padding: 10px 0;
    font-size: 13px;
    position: sticky;
    top: 105px;
    margin-top: 105px;
    /* Account for fixed modern navbar (approx 105px without search) */
    z-index: 1020;
    height: 42px;
    display: flex;
    align-items: center;
}

.restaurant-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.restaurant-top-bar .opening-hours {
    display: flex;
    align-items: center;
    gap: 8px;
}

.restaurant-top-bar .opening-hours .clock-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.restaurant-top-bar .status-badge {
    background-color: #4CAF50;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.restaurant-top-bar .status-badge.closed {
    background-color: #f44336;
}

.restaurant-top-bar .phone-number {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.restaurant-top-bar .phone-number:hover {
    color: #FFC107;
}

.restaurant-top-bar .allergens-link,
.restaurant-top-bar .order-link {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.restaurant-top-bar .allergens-link:hover,
.restaurant-top-bar .order-link:hover {
    background-color: #333333;
}

/* ============================================
   2. YELLOW STICKY CATEGORY NAVIGATION
   ============================================ */
.category-nav-wrapper {
    background-color: #ffbe00;
    position: sticky;
    top: 147px;
    /* Adjusted top to follow indigo bar (105px + 42px) */
    z-index: 1010;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 60px;
}

.category-nav-wrapper .container {
    display: flex;
    align-items: center;
    height: 100%;
}

.category-nav-home {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align icon to the left */
    width: 60px;
    height: 100%;
    cursor: pointer;
    transition: background-color 0.3s;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.category-nav-home:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.category-nav-home .home-icon {
    font-size: 26px;
    color: #ffffff;
}

.category-nav-arrow-left,
.category-nav-arrow-right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
}

.category-nav-arrow {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.category-nav-arrow:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.category-nav-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
    height: 100%;
}

.category-nav-scroll::-webkit-scrollbar {
    display: none;
}

.category-nav-list {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.category-nav-item {
    height: 100%;
}

.category-nav-link {
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #ffffff;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
    height: 100%;
}

.category-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.category-nav-link.active {
    background-color: #d9a014;
    color: #ffffff;
    font-weight: 600;
}

.category-nav-search {
    padding-left: 20px;
    padding-right: 0;
    /* Align with right edge of container */
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: #ffc41a;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 6px 12px;
    width: 240px;
}

.search-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    width: 100%;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.search-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
}

/* ============================================
   3. RESTAURANT HERO SECTION
   ============================================ */
.restaurant-hero {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    margin-top: 0;
    /* Following sticky bars in flow */
}

.restaurant-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 40px 0 20px;
}

.restaurant-hero-content {
    color: #ffffff;
}

.restaurant-hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    object-fit: cover;
    margin-bottom: 16px;
}

.restaurant-hero-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.restaurant-hero-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 4px;
    color: #ffffff;
}

.restaurant-hero-address .location-icon {
    font-size: 16px;
}

.restaurant-hero-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
}

.restaurant-hero-phone:hover {
    color: #FFC107;
}

/* ============================================
   4. MAIN CONTENT LAYOUT (2-COLUMN)
   ============================================ */
.restaurant-main-content {
    background-color: #ffffff;
    min-height: 100vh;
    margin-top: -40px;
    position: relative;
    /* NOTE: No z-index here — setting z-index would create a stacking context
       that traps the food modals inside it, making them inaccessible behind the backdrop. */
    border-radius: 40px 40px 0 0;
}

.restaurant-content-wrapper {
    display: flex;
    gap: 24px;
    padding: 24px 0;
}

.restaurant-menu-section {
    flex: 1;
    max-width: calc(100% - 400px);
}

.restaurant-cart-sidebar {
    width: 376px;
    position: sticky;
    top: 310px;
    /* 160px navbar + 42px top-bar + 60px yellow nav + 48px spacing */
    height: fit-content;
    max-height: calc(100vh - 330px);
    overflow-y: auto;
}

/* ============================================
   5. MENU ITEM CARDS (HORIZONTAL LAYOUT)
   ============================================ */
.menu-category-section {
    margin-bottom: 40px;
}

.menu-category-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0b418;
}

.menu-category-count {
    font-size: 16px;
    font-weight: 400;
    color: #f0b418;
    margin-left: 8px;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.menu-item-card {
    display: flex;
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    min-height: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.menu-item-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.menu-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-right: 16px;
}

.menu-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.menu-item-number-name {
    flex: 1;
}

.menu-item-number {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.menu-item-description {
    font-size: 14px;
    color: #6d6d6d;
    line-height: 1.5;
    margin-bottom: 15px;
    max-width: 85%;
}

.menu-item-allergens {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.allergen-item {
    text-align: center;
}

.allergen-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1.5px solid #f0b418;
    margin-bottom: 4px;
}

.allergen-name {
    font-size: 9px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}

.menu-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-item-price-section {
    display: flex;
    flex-direction: column;
}

.menu-item-from {
    font-size: 12px;
    color: #999999;
    margin-bottom: 2px;
}

.menu-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #f0b418;
}

.menu-item-add-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f0b418;
    border: none;
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-item-add-btn:hover {
    background-color: #d49a0d;
    transform: scale(1.1);
}

.menu-item-add-btn:hover {
    background-color: #FFB800;
    transform: scale(1.1);
}

.menu-item-add-btn:active {
    transform: scale(0.95);
}

.menu-item-image-wrapper {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.menu-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #f44336;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* ============================================
   6. CART SIDEBAR (STICKY RIGHT PANEL)
   ============================================ */
.cart-panel {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.cart-toggle-section {
    display: flex;
    background: #f1f1f1;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
    gap: 0;
}

.cart-toggle-btn {
    flex: 1;
    padding: 10px 5px;
    border: none !important;
    background: transparent !important;
    color: #666 !important;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-toggle-btn.active {
    background-color: #FFC107 !important;
    color: #000000 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-toggle-btn:hover:not(.active) {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: #000 !important;
}

.cart-preparing-time {
    text-align: center;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cart-preparing-time .time-label {
    font-size: 12px;
    color: #666666;
    margin-bottom: 4px;
}

.cart-preparing-time .time-value {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

.cart-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.cart-empty-illustration {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.cart-empty-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.cart-empty-message {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

.cart-items-list {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #FFC107;
    margin-bottom: 6px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 2px;
    border: 1px solid #eee;
}

.cart-summary {
    border-top: 2px solid #e0e0e0;
    padding-top: 16px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.cart-summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.cart-checkout-btn {
    width: 100%;
    padding: 14px;
    background-color: #FFC107;
    border: none;
    border-radius: 12px;
    color: #000000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.2);
    margin-top: 20px;
}

.cart-checkout-btn:hover {
    background-color: #FFB800;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.3);
}

#clear-cart-btn-redesign {
    background-color: #f8f9fa !important;
    color: #dc3545 !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

#clear-cart-btn-redesign:hover {
    background-color: #fff1f1 !important;
    border-color: #dc3545 !important;
}

/* ============================================
   7. RESPONSIVE DESIGN - INDUSTRY STANDARD
   ============================================ */

/* Large Desktop (1200px and up) - Default styles above */

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    .restaurant-cart-sidebar {
        width: 320px;
    }

    .restaurant-menu-section {
        max-width: calc(100% - 344px);
    }

    .search-form {
        width: 200px;
    }
}

/* Tablet Landscape (768px - 991px) */
@media (max-width: 991px) {
    .restaurant-content-wrapper {
        flex-direction: column;
        padding-bottom: 80px;
    }

    .restaurant-menu-section {
        max-width: 100%;
    }

    .restaurant-cart-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        right: -100%;
        width: 100% !important;
        max-width: 100% !important;
        background: #fff;
        z-index: 10000 !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        height: 100vh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .restaurant-cart-sidebar.active {
        right: 0 !important;
        transform: translateX(0) !important;
    }

    /* Keep mobile bottom nav on top */

    /* Keep mobile bottom nav on top */
    .mobile-menu {
        z-index: 1100 !important;
    }

    /* Hide BOTH the restaurant View Cart bar AND the global mobile nav when full cart is open */
    body.cart-open .mobile-bottom-bar,
    body.cart-open .mobile-bottom-nav {
        display: none !important;
    }

    .cart-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
        border: none;
        border-radius: 0;
        padding: 0 !important;
        /* Managed by internal sections */
    }

    /* internal scrolling for items */
    .cart-items-wrapper-mobile {
        flex: 1;
        overflow-y: auto;
        padding: 15px 20px;
        -webkit-overflow-scrolling: touch;
    }

    .cart-sidebar-header {
        padding: 18px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f1f1f1;
        background: #fff;
        flex-shrink: 0;
        z-index: 2;
    }

    .cart-sidebar-header h5 {
        margin: 0;
        font-weight: 800;
        font-size: 18px;
    }

    .close-cart-btn {
        background: #f8f9fa;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        font-size: 16px;
        cursor: pointer;
        transition: background 0.2s;
    }

    .close-cart-btn:hover {
        background: #e9ecef;
    }

    .cart-summary-mobile-sticky {
        padding: 20px;
        background: #fff;
        border-top: 1px solid #f1f1f1;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
        flex-shrink: 0;
    }

    .cart-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 9999 !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .cart-open .cart-sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    body.cart-open {
        overflow: hidden;
    }

    .menu-item-card {
        flex-direction: row;
    }

    .menu-item-image-wrapper {
        width: 120px;
        height: 120px;
    }

    .category-nav-wrapper {
        height: 55px;
    }

    .category-nav-link {
        font-size: 13px;
        padding: 0 16px;
    }
}

/* Mobile Bottom Bar Styles */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 10px 0;
    z-index: 1030;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    height: 70px;
}

.mobile-cart-info {
    display: flex;
    flex-direction: column;
}

.mobile-cart-count {
    font-size: 12px;
    color: #666;
}

.mobile-cart-total {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.mobile-view-cart-btn {
    background: #FFC107;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 14px;
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {

    /* Top Navigation Bar */
    .restaurant-top-bar {
        font-size: 11px;
        padding: 6px 0;
        height: 36px;
    }

    .restaurant-top-bar .container {
        gap: 8px;
    }

    .restaurant-top-bar .status-badge {
        padding: 3px 8px;
        font-size: 10px;
    }

    /* Category Navigation */
    .category-nav-wrapper {
        top: 196px;
        /* 160px navbar + 36px mobile top-bar */
        height: 50px;
    }

    .category-nav-link {
        padding: 0 14px;
        font-size: 13px;
    }

    .category-nav-home {
        width: 50px;
    }

    .category-nav-home .home-icon {
        font-size: 22px;
    }

    .search-form {
        width: 160px;
        padding: 5px 10px;
    }

    .search-input {
        font-size: 13px;
    }

    /* Hero Section */
    .restaurant-hero {
        height: 220px;
        margin-top: 160px;
        /* Account for modern navbar (same height on mobile) */
    }

    .restaurant-hero-logo {
        width: 60px;
        height: 60px;
        border-width: 3px;
    }

    .restaurant-hero-name {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .restaurant-hero-address,
    .restaurant-hero-phone {
        font-size: 13px;
    }

    /* Menu Section */
    .menu-category-title {
        font-size: 20px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .menu-category-count {
        font-size: 14px;
    }

    /* Grid Layout - Single Column on Tablet */
    .row.g-3 {
        gap: 12px !important;
    }

    /* Mobile Bottom Bar */
    .mobile-bottom-bar {
        height: 65px;
        padding: 8px 0;
    }

    .mobile-cart-total {
        font-size: 16px;
    }

    .mobile-view-cart-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) and (min-width: 577px) {
    .col-lg-6 {
        width: 100%;
    }
}

/* Mobile Portrait (576px and below) */
@media (max-width: 576px) {

    /* Top Bar - Compact Mode */
    .restaurant-top-bar .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 4px;
        padding: 0 10px;
    }

    .restaurant-top-bar .opening-hours {
        font-size: 10px;
        gap: 4px;
    }

    .restaurant-top-bar .opening-hours .clock-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .restaurant-top-bar .opening-hours span {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .restaurant-top-bar .phone-number span,
    .restaurant-top-bar .order-link span {
        display: none;
    }

    .restaurant-top-bar .allergen-toggle-container {
        padding: 3px 8px;
    }

    .restaurant-top-bar .allergen-toggle-label {
        font-size: 11px;
    }

    /* Category Navigation - Compact */
    .category-nav-wrapper {
        height: 48px;
    }

    .category-nav-home {
        width: 45px;
    }

    .category-nav-home .home-icon {
        font-size: 20px;
    }

    .category-nav-link {
        padding: 0 12px;
        font-size: 12px;
    }

    .category-nav-search {
        padding-left: 8px;
    }

    .search-form {
        width: 100px;
        padding: 4px 8px;
    }

    .search-input {
        font-size: 12px;
    }

    .search-btn {
        font-size: 14px;
    }

    /* Hero Section - Compact */
    .restaurant-hero {
        height: 180px;
        margin-top: 48px;
    }

    .restaurant-hero-overlay {
        padding: 20px 0 15px;
    }

    .restaurant-hero-logo {
        width: 50px;
        height: 50px;
        border-width: 2px;
        margin-bottom: 10px;
    }

    .restaurant-hero-name {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .restaurant-hero-address,
    .restaurant-hero-phone {
        font-size: 12px;
        gap: 4px;
    }

    .restaurant-hero-address .location-icon {
        font-size: 14px;
    }

    /* Main Content */
    .restaurant-main-content {
        padding-bottom: 100px !important;
        /* Extra space for mobile bottom bar */
    }

    .restaurant-content-wrapper {
        padding: 16px 0;
    }

    /* Menu Categories */
    .menu-category-section {
        margin-bottom: 30px;
    }

    .menu-category-title {
        font-size: 18px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .menu-category-count {
        font-size: 13px;
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }

    /* Grid - Full Width Cards */
    .col-lg-6,
    .col-md-6 {
        width: 100%;
        max-width: 100%;
    }

    .row.g-3 {
        gap: 10px !important;
    }

    /* Mobile Bottom Bar - Touch Friendly */
    .mobile-bottom-bar {
        height: 60px;
        padding: 6px 0;
    }

    .mobile-cart-count {
        font-size: 11px;
    }

    .mobile-cart-total {
        font-size: 15px;
    }

    .mobile-view-cart-btn {
        padding: 10px 18px;
        font-size: 13px;
        min-height: 44px;
        /* Touch-friendly minimum */
        border-radius: 22px;
        background-color: #FFC107 !important;
        color: #000 !important;
        font-weight: 700;
    }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .restaurant-hero-name {
        font-size: 16px;
    }

    .menu-category-title {
        font-size: 16px;
    }

    .search-form {
        width: 80px;
    }
}

/* Very Small Mobile (320px - 375px) */
@media (max-width: 375px) {
    .restaurant-top-bar {
        font-size: 10px;
        height: 32px;
    }

    .category-nav-wrapper {
        top: 192px;
        /* 160px navbar + 32px very small mobile top-bar */
        height: 44px;
    }

    .category-nav-home {
        width: 40px;
    }

    .restaurant-hero {
        height: 160px;
    }

    .restaurant-hero-logo {
        width: 45px;
        height: 45px;
    }

    .restaurant-hero-name {
        font-size: 15px;
    }

    .menu-category-title {
        font-size: 15px;
    }
}

/* ============================================
   8. UTILITY CLASSES
   ============================================ */
.text-yellow {
    color: #FFC107;
}

.bg-yellow {
    background-color: #FFC107;
}

.border-yellow {
    border-color: #FFC107;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Sidebar Modal (Drawer) */
.modal.sidebar-modal {
    z-index: 99999 !important;
}

.modal.sidebar-modal .modal-dialog {
    position: fixed;
    margin: auto;
    width: 6050px;
    /* Increased from 450px */
    max-width: 90%;
    height: 100vh;
    right: 0;
    top: 0;
    bottom: 0;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.3s ease-in-out;
}

.modal.sidebar-modal.show .modal-dialog {
    transform: translate3d(0, 0, 0);
}

.modal.sidebar-modal .modal-content {
    height: 100%;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
}

.modal.sidebar-modal .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    justify-content: space-between;
}

.modal.sidebar-modal .modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.modal.sidebar-modal .close-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    order: 2;
    /* Ensure it stays on right if flex-direction is row */
}

.modal.sidebar-modal .modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Customization Sections */
.food-price-large {
    font-size: 24px;
    font-weight: 700;
    color: #FF6B35;
}

.food-description-large {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.food-image-large {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.customization-section {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0;
    letter-spacing: 0.3px;
}

.section-subtitle {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.customization-item {
    background: #fafafa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    transition: background 0.2s;
    border: 1px solid #f0f0f0;
}

.customization-item:hover {
    background: #fff;
    border-color: #f0b418;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.item-control {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    color: #ffbe00;
}

.qty-btn:hover {
    background: #f0f0f0;
}

.qty-value {
    font-size: 16px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.item-name-price {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.item-price-tag {
    color: #FFC107;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

/* Standard Modal Backdrop Override */
.modal-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 99998 !important;
}

/* Modal Sidebar Drawer Adjustments for Nav Bar */
@media (max-width: 768px) {
    .modal.sidebar-modal .modal-dialog {
        height: 100% !important;
        bottom: 0 !important;
        top: 0 !important;
        margin-bottom: 0 !important;
    }
}

.sidebar-footer {
    background: #fff;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

.footer-qty-control {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 8px;
}

.add-to-cart-btn-large {
    flex: 1;
    background: #FFC107;
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.add-to-cart-btn-large:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.add-to-cart-btn-large span:first-child {
    font-weight: 700;
    letter-spacing: 0.3px;
}

.add-to-cart-btn-large .total-price-display {
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Allergen icons in modal */
.modal-allergens {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.modal-allergen-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.modal-allergen-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #FFBE00;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 18px;
}

.modal-allergen-name {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}

@media (max-width: 576px) {

    /* Modal Full Width on Mobile */
    .modal.sidebar-modal .modal-dialog {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        height: 100% !important;
    }

    .modal.sidebar-modal .modal-content {
        height: 100% !important;
        border-radius: 0 !important;
    }

    .modal.sidebar-modal .modal-header {
        padding: 0 16px !important;
        height: 54px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .modal.sidebar-modal .modal-title {
        font-size: 15px !important;
        margin: 0 !important;
        line-height: normal !important;
        display: flex !important;
        align-items: center !important;
        flex: 1 !important;
    }

    .modal.sidebar-modal .close-sidebar {
        margin: 0 !important;
        padding: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
    }

    .modal.sidebar-modal .modal-body {
        padding: 12px !important;
        padding-bottom: 25px !important;
    }

    /* Food Details Compact */
    .food-price-large {
        font-size: 18px !important;
    }

    .food-description-large {
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }

    /* Customization Sections Mobile */
    .customization-section {
        margin-bottom: 30px !important;
        padding-top: 6px !important;
    }

    .section-title {
        font-size: 13px !important;
        margin-bottom: 10px !important;
        font-weight: 700 !important;
        color: #333 !important;
    }

    .section-subtitle {
        font-size: 10px !important;
        margin-top: -6px !important;
        margin-bottom: 12px !important;
        display: block !important;
    }

    .customization-item {
        padding: 10px 12px !important;
        margin-bottom: 10px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }

    .item-left {
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        flex: 1 !important;
        min-width: 0 !important;
        margin: 0 !important;
        align-self: center !important;
    }

    .item-control {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        align-self: center !important;
    }

    .item-name-price {
        font-size: 13px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        white-space: normal !important;
        word-break: break-word !important;
        display: flex !important;
        align-items: center !important;
    }

    .item-price-tag {
        font-size: 11px !important;
        margin: 0 !important;
        font-weight: 600 !important;
        display: inline-block !important;
    }

    /* Touch-Friendly Buttons */
    .modal.sidebar-modal .qty-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
        border-radius: 4px;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    .qty-value {
        font-size: 13px !important;
        min-width: 24px !important;
        text-align: center !important;
        margin: 0 !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .quantity.buttons_added {
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
    }

    /* Checkboxes - Proper Sizing */
    .modal.sidebar-modal .form-check-input {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        cursor: pointer !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        background-color: #fff !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 8px !important;
        border: 1px solid #ddd !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }

    .modal.sidebar-modal .form-check-input:checked {
        background-color: #FFBE00 !important;
        border-color: #FFBE00 !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
    }

    /* Make parent clickable for better UX */
    .modal.sidebar-modal .customization-item {
        min-height: auto !important;
        cursor: pointer;
    }

    .modal.sidebar-modal .item-left {
        min-height: auto !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Modal Footer Mobile - STICKY AT BOTTOM */
    .sidebar-footer {
        padding: 10px 16px !important;
        gap: 10px !important;
        flex-direction: column !important;
        position: sticky !important;
        bottom: 0 !important;
        z-index: 10 !important;
        background: #fff !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08) !important;
    }

    .footer-qty-control {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 16px !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
    }

    .footer-qty-control .footer-main-qty {
        font-size: 16px !important;
        width: 50px !important;
        text-align: center !important;
        font-weight: 700 !important;
    }

    .add-to-cart-btn-large {
        width: 100% !important;
        padding: 10px 20px !important;
        font-size: 13px !important;
        min-height: 46px !important;
        border-radius: 8px !important;
    }

    /* Allergens Mobile */
    .modal-allergens {
        gap: 12px;
        margin-bottom: 20px;
    }

    .modal-allergen-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .modal-allergen-name {
        font-size: 9px;
    }
}

/* Extra Small Mobile Modal Adjustments */
@media (max-width: 480px) {
    .modal.sidebar-modal .modal-title {
        font-size: 15px;
    }

    .food-price-large {
        font-size: 18px;
    }

    .section-title {
        font-size: 14px;
    }

    .customization-item {
        padding: 10px;
    }

    .add-to-cart-btn-large {
        font-size: 13px;
        padding: 14px 16px;
    }
}

/* Landscape Orientation Optimizations */
@media (max-height: 600px) and (orientation: landscape) {
    .restaurant-hero {
        height: 150px;
    }

    .modal.sidebar-modal .modal-header {
        padding: 8px 16px;
    }

    .modal.sidebar-modal .modal-body {
        padding: 12px 16px;
    }

    .customization-section {
        margin-bottom: 15px;
    }

    .sidebar-footer {
        padding: 12px 16px;
    }
}

/* Override Bootstrap Primary Button to Yellow in Modal */
.modal.sidebar-modal .btn-primary {
    background-color: #FFC107 !important;
    border-color: #FFC107 !important;
    color: #000 !important;
}

.modal.sidebar-modal .btn-primary:hover,
.modal.sidebar-modal .btn-primary:active,
.modal.sidebar-modal .btn-primary:focus {
    background-color: #ffb300 !important;
    border-color: #ffb300 !important;
    color: #000 !important;
}

/* Override Plus/Minus Buttons to Yellow in Modal */
.modal.sidebar-modal .quantity.buttons_added .minus {
    background-color: #FFC107 !important;
    border-color: #FFC107 !important;
    color: #000 !important;
}

.modal.sidebar-modal .quantity.buttons_added .plus {
    background-color: #FFC107 !important;
    border-color: #FFC107 !important;
    color: #000 !important;
}

.modal.sidebar-modal .quantity.buttons_added .minus:hover,
.modal.sidebar-modal .quantity.buttons_added .plus:hover {
    background-color: #ffb300 !important;
    border-color: #ffb300 !important;
    opacity: 1 !important;
}

/* Quantity Display in Modal */
.modal.sidebar-modal .quantity .qty {
    background-color: #f5f5f5 !important;
    color: #000 !important;
    border: none !important;
    font-weight: 700;
}

/* Clean Footer Qty Control */
.footer-qty-control .qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #FFC107;
    background: #fff;
    color: #FFC107;
    font-weight: 700;
    font-size: 16px;
    padding: 0;
}

.footer-qty-control .qty-btn:hover {
    background: #FFC107;
    color: #000;
}