@font-face {
	font-family: 'playfire';
	src: url('../fonts/playfire/PlayfairDisplay-Regular') format('ttf');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}


.menu-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

/* title */
.menu-restaurant-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
    letter-spacing: 1px;
}

/* layout */
.menu-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
 
}

/* sidebar */
.menu-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-tab {
    background-color: #fff;
    transition: all 0.25s ease;
    cursor: pointer;
}

.menu-tab span {
    white-space: nowrap;
}

.menu-tab:hover {
    background: #ececec;
}

.menu-tab img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.menu-tab.active,
.menu-tab.active-tab {
    background-color: #e67e22 !important;
    color: #ffffff !important;
}

/* animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* grid */
.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}

/* card */
.menu-card {
    background: var(--ha-dark-blue);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.menu-card:focus {
    outline: 2px solid rgba(255, 170, 0, 0.9);
    outline-offset: 3px;
}

.menu-card-image {
    position: relative;
    overflow: hidden;
}

.menu-card-image img {
    width: 100%;

    object-fit: cover;
    display: block;
}

.menu-card .menu-price {
    color: #e67e22;
    font-weight: 600;
}

.menu-card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 5px;
}

.menu-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
    min-height: 48px;
    font-size: 14px;
    color: #b3b3b3;
}

.menu-meta {
    color: #d9d9d9;
    line-height: 1.8;
}

/* badges on card */
.menu-card-image .ribbonbadge {
    position: absolute;
    top: 0;
    right: 10px;
    width: 50px;
    height: 77px;
    background: var(--main-color);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.menu-card-image .ribbonbadge p {
    height: 30px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-badges {

    top: 10px;
    left: 10px;
    gap: 6px;

    background: #aaaaaab0;
    color: #ffffff;
    border-radius: 7px;
    z-index: 10;
    align-items: center;
}

.menu-badges .badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
}

.badge-spicy,
.badge-vegan {
    color: #fff;
}

/* tab content */
.menu-tab-content {
    display: none;
    animation: fadeIn 0.25s ease;
}

.menu-tab-content.active,
.menu-tab-content.active-tab {
    display: block;
}

/* responsive grid */
@media (min-width: 576px) {
    .menu-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .menu-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .menu-items-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .menu-items-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    .menu-layout {
        grid-template-columns: 1fr;
    }

    .menu-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .menu-sidebar::-webkit-scrollbar {
        display: none;
    }

    .menu-tab {
        flex-shrink: 0;
    }
}

/* categories sidebar */
.categories-sidebar {
    width: 95px;
    flex-shrink: 0;
    height: fit-content;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    position: sticky;
    top: 65px;
    transition: all 0.3s ease;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-sidebar::-webkit-scrollbar {
    display: none;
}

.title-menu-box::after {
    position: absolute;
    content: "";
    width: 4px;
    height: 80%;
    background-color: #e67e22;
    border-radius: 10px;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

/* search */
.search-wrapper #menu-search {
    background: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--ha-dark-blue);
    max-width: 100%;
    width: 100%;
    display: block;
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;

    transition: all 0.3s ease;
    font-family: inherit;
}

.search-wrapper #menu-search:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.12);
}

/* modal */
.menu-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.menu-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.menu-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.menu-modal-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    background: var(--ha-dark-blue);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    border-radius: 14px;
    overflow: hidden;
}

.menu-modal-close {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 26px;
    line-height: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-modal-close:hover {
    background: rgba(0, 0, 0, 0.85);
}

.menu-modal-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #061426;
    overflow: hidden;
}

.menu-modal-image-overlays {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.menu-modal-image-wrap .menu-badges-card {
    position: absolute;
    bottom: 10px;
    left: 10px;
    gap: 6px;
    padding: 0 6px;
    background: #aaaaaab0;
    color: #ffffff;
    border-radius: 7px;
    z-index: 10;
    align-items: center;
}

.menu-modal-image-wrap .menu-badges .badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
}

.menu-modal-image-wrap .ribbonbadge {
    position: absolute;
    top: 0;
    right: 10px;
    width: 50px;
    height: 77px;
    background: var(--main-color);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.menu-modal-image-wrap .ribbonbadge p {
    height: 30px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-modal-body {
    max-height: 45vh;
    overflow-y: auto;
    padding: 18px;
}

.menu-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.menu-modal-desc {
    color: #d9d9d9;
    line-height: 1.9;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: justify;
}

.menu-modal-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.menu-modal-price {
    color: #e67e22;
    font-weight: 700;
    font-size: 16px;
}

.menu-modal-prep {
    color: #fff;
    font-size: 12px;
}

.menu-modal-open {
    overflow: hidden;
}

/* mobile modal */
@media (max-width: 575px) {
    .menu-modal {
        align-items: flex-end;
    }

    .menu-modal.is-open {
        padding: 0;
    }

    .menu-modal-box {
        max-width: 100%;
        width: 100%;
        border-radius: 18px 18px 0 0;
    }

    .menu-modal-body {
        max-height: 42vh;
    }
}
.no-avaiable{
    background-color: #071b333a;
}
.no-avaiable img{
    opacity: 0.6;
}



/* استایل‌های مربوط به بخش تغییر زبان */
.menu-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: auto;
}

.menu-lang-switcher .lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    text-decoration: none;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 12px;
    font-weight: 700;
    transition: all .2s ease;
}

.menu-lang-switcher .lang-btn:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
}

.menu-lang-switcher .lang-btn.active {
    background: #fff;
    color: #111;
    border-color: #fff;
}

/* تغییر یکنواخت فونت اعداد انگلیسی */
.lang-en-numbers,
.lang-en-numbers * {
    direction: ltr;
  	font-family: 'playfire';
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}