/* ===== MENU PAGE (Habit Burger Style) ===== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

.menu-page {
    background: var(--white, #ffffff);
    min-height: 100vh;
}

.menu_container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#menu_area {
    position: relative;
}

#menu_area .inner {
    position: relative;
}

/* Search and Filter Section */
.menu_search_filter {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white, #ffffff);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(98, 65, 30, 0.05);
}

.search_wrapper {
    position: relative;
    margin-bottom: 20px;
}

.menu_search_input {
    width: 100%;
    padding: 14px 50px 14px 50px;
    border: 2px solid rgba(98, 65, 30, 0.1);
    border-radius: 25px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition, all 0.3s ease);
    background: var(--white, #ffffff);
    color: var(--text-color, #333);
}

.menu_search_input:focus {
    outline: none;
    border-color: var(--primary, #dc3545);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.search_icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-light, #666);
    pointer-events: none;
}

.search_clear {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-light, #666);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    padding: 0;
}

.search_clear:hover {
    color: var(--primary, #dc3545);
}

.search_clear svg {
    width: 18px;
    height: 18px;
}

.filter_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter_btn {
    padding: 10px 20px;
    border: 2px solid rgba(98, 65, 30, 0.2);
    border-radius: 20px;
    background: var(--white, #ffffff);
    color: var(--text-color, #333);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    white-space: nowrap;
}

.filter_btn:hover {
    border-color: var(--primary, #dc3545);
    color: var(--primary, #dc3545);
    transform: translateY(-2px);
}

.filter_btn[data-active='true'] {
    background: var(--primary, #dc3545);
    border-color: var(--primary, #dc3545);
    color: var(--white, #ffffff);
}

.filter_btn[data-active='true']:hover {
    background: #c82333;
    border-color: #c82333;
}

.subcategory_filter_wrapper {
    margin-top: 15px;
    width: 100%;
}

.subcategory_filter_select {
    width: 100%;
    padding: 12px 40px 12px 18px;
    border: 2px solid rgba(98, 65, 30, 0.2);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    background: var(--white, #ffffff);
    color: var(--text-color, #333);
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px;
}

.subcategory_filter_select:hover {
    border-color: var(--primary, #dc3545);
}

.subcategory_filter_select:focus {
    outline: none;
    border-color: var(--primary, #dc3545);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.search_results_info {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light, #666);
    font-weight: 500;
}

.search_results_info #results_count {
    font-weight: 700;
    color: var(--primary, #dc3545);
}

/* Hidden items */
.menu_item.hidden {
    display: none !important;
}

.menu_cat.no-results {
    display: none;
}

.menu_cat.no-results.active {
    display: block;
}

.no-results-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light, #666);
    font-size: 1.1rem;
}

.no-results-message h3 {
    font-family: 'Bebas Neue', 'Poppins', sans-serif;
    font-size: 2rem;
    color: var(--primary, #dc3545);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.no-results-message .text-muted {
    font-size: 1rem;
    color: var(--text-light, #666);
    margin: 0;
}

/* Menu Navigation */
#menu_nav {
    position: sticky;
    top: 0;
    background: var(--white, #ffffff);
    z-index: 100;
    padding: 25px 0;
    margin: 0 0 30px 0;
    border-bottom: 2px solid rgba(98, 65, 30, 0.08);
    box-shadow: 0 2px 10px rgba(98, 65, 30, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.flex_inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    max-width: 100%;
}

.flex_inner::-webkit-scrollbar {
    height: 5px;
}

.flex_inner::-webkit-scrollbar-track {
    background: rgba(98, 65, 30, 0.05);
    border-radius: 10px;
}

.flex_inner::-webkit-scrollbar-thumb {
    background: var(--primary, #dc3545);
    border-radius: 10px;
}

.flex_inner::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

.menu_nav {
    background: rgba(98, 65, 30, 0.03);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 14px 24px;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Bebas Neue', 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color, #333);
    letter-spacing: 0.8px;
    position: relative;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(98, 65, 30, 0.06);
}

.menu_nav:hover {
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
    color: var(--primary, #dc3545);
}

.menu_nav.active {
    background: linear-gradient(
        135deg,
        var(--primary, #dc3545) 0%,
        #c82333 100%
    );
    color: var(--white, #ffffff);
    border-color: var(--primary, #dc3545);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    transform: translateY(-2px);
}

.menu_nav.active:hover {
    background: linear-gradient(135deg, #c82333 0%, #b01e2e 100%);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    transform: translateY(-3px);
}

.menu_nav.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 4px;
    background: var(--primary, #dc3545);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.menu_nav .thumb {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu_nav.active .thumb {
    border-color: rgba(255, 255, 255, 0.5);
}

.menu_nav .cat_name {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
}

/* Menu Categories */
.menu_cats {
    position: relative;
}

.menu_cat {
    display: none;
    padding: 30px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu_cat.active {
    display: block;
    opacity: 1;
}

.menu_cat h2 {
    font-family: 'Bebas Neue', 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary, #dc3545);
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.category_desc {
    text-align: center;
    color: var(--text-light, #666);
    font-size: 1rem;
    margin-bottom: 40px;
    font-style: italic;
}

/* Sub Categories */
.sub_categories {
    margin-bottom: 40px;
}

.sub_category_section {
    margin-bottom: 50px;
}

.sub_category_title {
    font-family: 'Bebas Neue', 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color, #333);
    margin-bottom: 25px;
    text-align: left;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(98, 65, 30, 0.1);
}

/* Menu Items Grid */
.menu_items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.menu_item {
    background: var(--white, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(98, 65, 30, 0.06);
    transition: var(--transition, all 0.3s ease);
    border: 1px solid var(--border-light, #f0f0f0);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(98, 65, 30, 0.12);
}

.menu_item.has_img .item_image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.menu_item.has_img .img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.menu_item:hover .img {
    transform: scale(1.08);
}

.item_image .img_link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.item_image .img_link.product-detail-trigger:hover {
    opacity: 0.9;
}

.item_copy {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item_badge {
    display: inline-block;
    background: linear-gradient(
        135deg,
        var(--primary, #dc3545) 0%,
        #c82333 100%
    );
    color: var(--white, #ffffff);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(98, 65, 30, 0.15);
    align-self: flex-start;
}

.item_badge.vegetarian {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.item_name {
    font-family: 'Bebas Neue', 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary, #dc3545);
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.2s ease;
}

.item_name.product-detail-trigger:hover {
    color: var(--primary-dark, #442d15);
    transform: translateX(4px);
}

.item_cal {
    font-size: 14px;
    color: var(--text-light, #666);
    margin-bottom: 15px;
    font-weight: 500;
    flex-grow: 1;
}

.cta_row {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* CTA Button */
.cta {
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding: 12px 24px;
    border-radius: 25px;
    background: linear-gradient(
        135deg,
        var(--primary, #dc3545) 0%,
        #c82333 100%
    );
    color: var(--white, #ffffff);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition, all 0.3s ease);
    box-shadow: 0 3px 12px rgba(98, 65, 30, 0.15);
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
    text-align: center;
    flex: 1;
}

.cta .ani_txt {
    position: relative;
    z-index: 2;
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
}

.cta .bknd_red,
.cta .bknd_white {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.cta .bknd_red {
    background: linear-gradient(
        135deg,
        var(--primary, #dc3545) 0%,
        #c82333 100%
    );
    z-index: 0;
}

.cta .bknd_white {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    transform: translateX(-100%);
    z-index: 1;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(98, 65, 30, 0.3);
}

.cta:hover .bknd_white {
    transform: translateX(0);
}

.cta:hover .ani_txt {
    color: var(--primary, #dc3545);
}

.details {
    color: var(--text-color, #333);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.details:hover {
    color: var(--primary, #dc3545);
    text-decoration: underline;
}

/* Utility Classes */
.tc {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.no-products-message {
    text-align: center;
    padding: 60px 20px;
}

.no-products-message .text-muted {
    font-size: 1.1rem;
    color: var(--text-light, #666);
}

.nut_links {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(98, 65, 30, 0.1);
}

.nut_links a {
    color: var(--primary, #dc3545);
    text-decoration: none;
    font-weight: 600;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.nut_links a:hover {
    color: #c82333;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1200px) {
    .menu_items {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .menu_container {
        padding: 20px 15px;
    }

    #menu_nav {
        padding: 20px 0;
        margin-bottom: 25px;
        box-shadow: 0 2px 8px rgba(98, 65, 30, 0.08);
    }

    .flex_inner {
        justify-content: flex-start;
        gap: 10px;
        padding: 5px 15px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .menu_nav {
        padding: 12px 18px;
        font-size: 15px;
        min-width: 90px;
        gap: 5px;
    }

    .menu_nav .thumb {
        display: block;
        width: 38px;
        height: 38px;
    }

    .menu_nav .cat_name {
        font-size: 13px;
        line-height: 1.2;
    }

    .menu_cat h2 {
        font-size: 2rem;
    }

    .menu_items {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .menu_item.has_img .item_image {
        height: 180px;
    }

    .item_copy {
        padding: 16px;
    }

    .item_name {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .menu_items {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #menu_nav {
        padding: 15px 0;
        margin-bottom: 20px;
    }

    .flex_inner {
        gap: 8px;
        padding: 5px 10px;
    }

    .menu_nav {
        padding: 10px 14px;
        font-size: 14px;
        min-width: 80px;
    }

    .menu_nav .thumb {
        width: 35px;
        height: 35px;
    }

    .menu_nav .cat_name {
        font-size: 12px;
    }

    .menu_cat h2 {
        font-size: 1.75rem;
    }

    .sub_category_title {
        font-size: 1.5rem;
    }

    .menu_search_filter {
        padding: 15px;
        margin-bottom: 20px;
    }

    .menu_search_input {
        padding: 12px 45px 12px 45px;
        font-size: 14px;
    }

    .filter_wrapper {
        gap: 8px;
    }

    .filter_btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .subcategory_filter_select {
        padding: 10px 35px 10px 15px;
        font-size: 13px;
    }
}

/* Mobile Only */
@media (max-width: 768px) {
    .mobile_only {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile_only {
        display: none;
    }
}

/* Selected Category Header */
.selected-category-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(98, 65, 30, 0.1);
}

.selected-category-header .section-title {
    font-family: 'Bebas Neue', 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary, #dc3545);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.selected-category-header .category-name-highlight {
    color: #dc3545;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

.selected-category-header .section-subtitle {
    font-size: 1rem;
    color: var(--text-light, #666);
    margin: 0;
    font-weight: 400;
}

/* No Category Selected */
.no-category-selected {
    padding: 80px 20px;
    text-align: center;
}

.no-category-message {
    max-width: 600px;
    margin: 0 auto;
}

.no-category-message h2 {
    font-family: 'Bebas Neue', 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary, #dc3545);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.no-category-message .text-muted {
    font-size: 1.1rem;
    color: var(--text-light, #666);
    margin-bottom: 30px;
    line-height: 1.6;
}

.no-category-message .cta {
    display: inline-block;
    margin-top: 20px;
}

.clear-category-link {
    color: var(--text-color, #333);
    text-decoration: none;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.clear-category-link:hover {
    color: var(--primary, #dc3545);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .selected-category-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .selected-category-header .section-title {
        font-size: 2rem;
    }

    .selected-category-header .section-subtitle {
        font-size: 0.9rem;
    }

    .no-category-message h2 {
        font-size: 2rem;
    }

    .no-category-message .text-muted {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .selected-category-header .section-title {
        font-size: 1.75rem;
    }

    .no-category-message h2 {
        font-size: 1.75rem;
    }
}
