/* =========================================
   Restaurant Menu Section Styles 
   ========================================= */
.restaurant-menu {
    padding: 100px 0;
    background-color: #fdfdfd;
}

/* Header Area */
.menu-header {
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.menu-main-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--chioary-black, #222);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-sub-title {
    font-size: 18px;
    color: #c99a45; /* Golden accent color */
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Custom Price Styling for Centered Cards */
.menu-item-price .price-amount {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: #c99a45;
    background: rgba(201, 154, 69, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
}

/* =========================================
   Sidebar / Navigation 
   ========================================= */
/* Desktop Sidebar Scroll */
.menu-sidebar-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 130px; /* Adjust this so it clears your top navigation bar */
    height: max-content;
    z-index: 10;
}

.menu-categories-desktop {
    background: #fff;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.03);
    border: 1px solid #f9f9f9;
}

.menu-sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
    color: #222;
}

.menu-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 60vh;
    overflow-y: auto;
}

/* Custom Scrollbar for Sidebar */
.menu-category-list::-webkit-scrollbar { width: 4px; }
.menu-category-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.menu-category-list::-webkit-scrollbar-thumb { background: #c99a45; border-radius: 10px; }

.menu-category-list li { margin-bottom: 5px; }

.menu-category-list li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #666;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
}

/* Refined Hover/Active state with soft indent */
.menu-category-list li.active a,
.menu-category-list li a:hover {
    background-color: rgba(201, 154, 69, 0.08);
    color: #c99a45;
    padding-left: 25px;
}

/* =========================================
   Mobile Sticky Dropdown (Bulletproof)
   ========================================= */
/* =========================================
   Mobile Sticky Dropdown (Bootstrap & Solid)
   ========================================= */
.mobile-sticky-dropdown {
    position: -webkit-sticky;
    position: sticky;
    top: 90px; /* Adjust to match your exact mobile navbar height */
    z-index: 4; 
    background-color: #fdfdfd13; 
    padding: 15px 0 20px 0;
    margin-bottom: 15px;
}

/* Make the button look like a select input */
.custom-mobile-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 55px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: #222 !important; /* Forces dark text */
    background-color: #fff !important; /* Forces solid white */
    border: 1px solid #ddd;
    border-radius: 12px;
    text-align: left;
}

.custom-mobile-btn::after {
    /* Customizes the little dropdown arrow */
    margin-left: auto;
    color: #c99a45; 
}

.custom-mobile-btn:focus,
.custom-mobile-btn:active {
    border-color: #c99a45 !important;
    box-shadow: 0 0 0 2px rgba(201, 154, 69, 0.2) !important;
}

/* Make the dropdown menu solid and scrollable */
.custom-mobile-menu {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px 0;
    max-height: 350px; /* Prevents it from being taller than the screen */
    overflow-y: auto;
    background-color: #ffffff !important; /* No more transparency! */
    margin-top: 5px !important;
}

.custom-mobile-menu .dropdown-item {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #222 !important;
    transition: background 0.2s;
    white-space: normal; /* Allows long category names to wrap */
}

.custom-mobile-menu .dropdown-item:hover,
.custom-mobile-menu .dropdown-item:focus {
    background-color: rgba(201, 154, 69, 0.08) !important;
    color: #c99a45 !important;
}

.custom-mobile-menu .dropdown-item.active {
    background-color: #c99a45 !important;
    color: #fff !important;
}
/* =========================================
   Menu Content & Cards
   ========================================= */
/* Smooth fade transition for the category switch */
.menu-category-content {
    animation: fadeInCategory 0.4s ease-in-out;
}

@keyframes fadeInCategory {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-item-card {
    background: #fff;
    padding: 30px 20px 40px;
    border-radius: 25px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid transparent;
}

.menu-item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #f9f9f9;
}

.menu-item-img {
    width: 170px;
    height: 170px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border: 5px solid #fff;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-item-card:hover .menu-item-img img {
    transform: scale(1.1) rotate(2deg);
}

.menu-item-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
    text-transform: capitalize;
}

.menu-item-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .menu-header { text-align: center; }
    .restaurant-menu { padding: 60px 0; }
    .menu-item-card { margin-bottom: 30px; }
}