/* Menu Page Specific Styles */
:root {
    /* ارتفاع هدر بر اساس viewport height */
    --header-height: clamp(50px, 10vh, 120px);
    
    /* حداکثر عرض کانتینر بر اساس دستگاه */
    --container-max-width: min(90%, 1400px);
    
    /* پدینگ‌های ریسپانسیو */
    --section-padding: clamp(0.5rem, 2vw, 2rem);
    
    /* فونت‌های ریسپانسیو */
    --font-size-base: clamp(0.875rem, 1.5vw, 1rem);
    --font-size-large: clamp(1rem, 2vw, 1.5rem);
}

.menu-page {
    padding-top: 0;
    background: linear-gradient(135deg, #5c0a1e 0%, #3d0715 100%);
    /* background-image: url('../images/negar/30.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    background-attachment: fixed; */

    position: relative;
    padding-top: 100px;
    min-height: 100vh;
    overflow: hidden;
}

.menu-page-header {
    /* keep header flow normal so back button positions against .menu-page (pseudo-element) */
    /* position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.5rem 1rem;
    gap: 1rem; */
}

.back-button {
    background: transparent !important;
    border: none !important;
    padding: 0.5rem 0.8rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 1.5rem !important;
    color: #D4AF37 !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    left: 1rem;
    /* place the button vertically so it sits aligned with the logo pseudo-element */
    top: 0.6rem;
    z-index: 50;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Logo / Header branding area */


.menu-page::before {
    content: 'کافه موزه گرامافون';
    position: absolute;
    top: 0;
    left: 0;
    /* right: 0; */
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 280;
    /* height: 221px;               */
    min-height: 140px;            
    max-height: 280px;             
    
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.2rem, 6vw, 3.5rem);   /* فونت responsive */
    font-weight: 700;
    color: #D4AF37;
    letter-spacing: 2px;
    font-family: 'IranNastaliq', 'Vazirmatn', sans-serif;
    
    background-image: url('../images/mobile-border111.png');
    /* background: linear-gradient(135deg, #5c0a1e 0%, #3d0715 100%); */
    background-size: contain;          
    background-position: top center;
    background-repeat: no-repeat;
    
    z-index: 1;
}

@media (min-width: 1400px) {
    .menu-page::before {
        background-size: 100% auto;   /* یا contain – تست کن کدوم بهتره */
        max-height: 320px;
    }
}
/* Section heading styles */

.span-class span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37 20%, #D4AF37 80%, transparent);
}


.menu-page h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #D4AF37;
    text-align: center;
    margin: 2.5rem 0 1.5rem;
    letter-spacing: 0.5px;
    font-family:  'IranNastaliq', 'Vazirmatn', sans-serif;
    position: relative;
    padding-bottom: 1.5rem;
}

.menu-page h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37 20%, #D4AF37 80%, transparent);
}

@media (max-width: 768px) {
    .menu-page h2 {
        font-size: 1.4rem;
        margin: 1.5rem 0 1rem;
        padding-bottom: 1rem;
    }
    
    .menu-page h2::after {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .menu-page h2 {
        font-size: 1.2rem;
        margin: 1rem 0 0.8rem;
        padding-bottom: 0.8rem;
    }
    
    .menu-page h2::after {
        width: 120px;
        height: 1px;
    }
}

.menu-items-container {
    /* justify-items: center; */

}

.menu-items-container .container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    height: auto;
    box-shadow: none;
    position: relative;
    overflow: visible;
    margin: 0;
}

.menu-items-container .container::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 18px;
    /* border: 2px solid rgba(128, 0, 32, 0.25); */
    pointer-events: none;
}

.menu-items-container .container::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background:
        radial-gradient(circle at 20% 30%, rgba(128, 0, 32, 0.10) 0%, transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.10) 0%, transparent 55%),
        repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 2px, transparent 2px, transparent 10px); */
    opacity: 0.35;
    pointer-events: none;
}


/* Sticky Image */
.Image-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;        /* عرض کامل صفحه */
    height: auto;       /* حفظ نسبت تصویر */
    object-fit: cover;  /* پوشش کامل فضا بدون اعوجاج */
    margin: 0;          /* حذف حاشیه خارجی */
    padding: 0;         /* حذف حاشیه داخلی */
    display: block;     /* حذف فضای اضافی اطراف تصویر */
}


/* Category Navigation Bar */
.category-nav-container {
    position: sticky;
    top: auto;
    z-index: 99;
    background-image: url('../images/Img_123.jpg');
    /* background:
        linear-gradient(60deg, rgba(128, 0, 32, 0.411), rgba(164, 24, 59, 0.486), rgba(128, 0, 32, 0.88)); */
    /* border-bottom: 1px solid rgba(212, 175, 55, 0.45); */
    padding: 1.15rem 0 1rem;
    /* box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.10); */
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); */
}

.category-nav-container::before {
    /* content: 'CAFE MUSEUM Gramapj'; */
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.9rem;
    /* border-radius: 999px; */
    background: rgba(0, 0, 0, 0.35);
    /* border: 1px solid rgba(212, 175, 55, 0.75); */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.75rem;
    pointer-events: none;
}

.category-nav-container::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 18px;
    /* border: 2px solid rgba(212, 175, 55, 0.65); */
    pointer-events: none;
    opacity: 0.9;
}

.category-nav-wrapper {
    margin-top: 2px;
    background: linear-gradient(135deg, #5c0a1e 0%, #3d0715 100%);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 2rem 1.5rem 1.5rem;
    margin-bottom: 0.5rem;
}

.category-nav-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-nav {
    display: flex;
    gap: 1.5rem;
    min-width: max-content;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
    padding: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    border: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    width: 220px;
    height: 220px;
}

.category-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none;
    z-index: 1;
    transition: all 0.3s ease;
}

.category-btn:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent);
}

/* حالت هاور */
.category-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* حالت فعال (انتخاب شده) */
.category-btn.active {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3), 0 12px 32px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

/* عنوان دسته بندی - در پایین تصویر */
.category-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
    color: white;
    margin: 0;
    padding: 0.8rem 0.6rem;
    position: relative;
    z-index: 2;
    width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'IranNastaliq', 'Vazirmatn', 'Tahoma', sans-serif;
}

.category-name .name-fa {
    display: block;
    white-space: normal;
    line-height: 1.2;
}

.category-name .name-en {
    display: block;
    white-space: normal;
    font-family: 'IranNastaliq', 'Vazirmatn', 'Tahoma', sans-serif;
    font-size: 0.85em;
    line-height: 1.2;
}

/* آیکون wrapper - پوشش کامل تصویر */
.category-icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.category-btn:not(.active) .category-icon-wrapper {
    background: rgba(0, 0, 0, 0.1);
}

.category-btn.active .category-icon-wrapper {
    background: rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.category-btn:hover .category-icon {
    transform: scale(1.05);
}

.category-btn.active .category-icon {
    filter: none;
    transform: scale(1);
}

/* placeholder آیکون (برای زمانی که آیکون واقعی وجود ندارد) */
.category-icon-placeholder {
    font-size: 3rem;
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.3), rgba(100, 0, 25, 0.3));
}

.category-btn.active .category-icon-placeholder {
    opacity: 0.8;
    transform: scale(1);
    color: rgba(255, 255, 255, 1);
}

/* hover effects */
.category-btn:hover .category-icon,
.category-btn:hover .category-icon-placeholder {
    filter: none;
    transform: scale(1.05);
}

.category-btn:hover .category-icon-wrapper {
    border-color: transparent;
}

/* placeholder استایل */
.category-btn.placeholder {
    opacity: 0.7;
    border-style: solid;
}

.category-btn.placeholder .category-icon-placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.6;
}

/* دکمه‌های کوچکتر برای موبایل */
@media (max-width: 768px) {
    .category-btn {
        width: auto;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

/* برای حالت RTL (راست به چپ) اگر نیاز بود */
[dir="rtl"] .category-btn {
    flex-direction: column;
}

[dir="rtl"] .category-name {
    text-align: center;
    order: 2;
}

[dir="rtl"] .category-icon-wrapper {
    order: 1;
    margin-left: 0;
    margin-right: 0;
}





/* Menu Items Container */
.menu-items-container {
    padding: 1.5rem 0 2rem;
    /* background: linear-gradient(135deg, #5c0a1e 0%, #3d0715 100%); */
    position: relative;
    /* ensure the background fills the viewport below header */
    min-height: calc(100vh - var(--header-height));
}

.menu-items-container::before {
    display: none;
}

.menu-category-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.menu-category-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 769px) {
    .menu-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 2.5rem;
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-list {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .menu-list {
        gap: 0.8rem;
        padding: 0 1rem;
        max-width: 100%;
    }
}

.menu-item-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 100px 1fr 80px;
    grid-template-rows: auto;
    align-items: center;
    cursor: pointer;
    border: none;
    position: relative;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    width: 100%;
    background: linear-gradient(135deg, rgba(80, 10, 30, 0.95), rgba(100, 15, 40, 0.95));
    backdrop-filter: blur(10px);
}

.menu-item-card::before {
    display: none;
}

.menu-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.menu-item-image {
    width: 130px;
    height: 130px;
    min-width: 130px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    grid-column: 1;
    grid-row: 1;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.menu-item-card:hover .menu-item-image img {
    transform: scale(1.05);
}

.menu-item-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(60, 10, 20, 0.6), rgba(80, 15, 30, 0.6));
}

.menu-item-image.placeholder span {
    font-size: 2.5rem;
    opacity: 0.3;
}

.menu-item-content {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: white;
    position: relative;
    z-index: 2;
    justify-content: center;
    gap: 0.5rem;
    grid-column: 2;
    grid-row: 1;
}

/* allow content to shrink properly inside grid columns (prevents overlap) */
.menu-item-content {
    min-width: 0;
}

.menu-item-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 2.5rem;
    margin: 0;
    color: #D4AF37;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.3px;
    font-family:  'IranNastaliq', 'Vazirmatn', sans-serif;
}

.menu-item-title .name-fa {
    text-align: right;
}

.menu-item-title .name-en {
    text-align: left;
    font-family: 'IranNastaliq', 'Vazirmatn', 'Tahoma', sans-serif;
    font-size: 0.5rem;
}

.menu-item-description {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    letter-spacing: 0.2px;
    /* color: rgba(255, 255, 255, 0.8); */
    color: #D4AF37;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    display: inline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.menu-item-description .name-fa {
    /* color: rgba(255, 255, 255, 0.8); */
    color: #D4AF37;
    display: inline;
    line-height: 1.4;
    font-family:  'Vazirmatn', 'Tahoma', sans-serif;
    margin-right: 0.3rem;
}

.menu-item-description .name-en {
    /* color: rgba(255, 255, 255, 0.7); */
    color: #D4AF37;
    display: inline;
    line-height: 1.4;
    font-family: 'IranNastaliq', 'Vazirmatn', 'Tahoma', sans-serif;
    font-size: 0.8em;
}

.menu-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #D4AF37;
    font-family: 'Vazirmatn', serif;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    text-align: right;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
}

/* prevent price wrapping on small viewports */
.menu-item-price {
    white-space: nowrap;
}

.menu-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-item-favorite,
.menu-item-detail-icon {
    border: none;
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item-favorite {
    color: #8b7355;
    font-size: 1.3rem;
}

.menu-item-favorite:hover {
    transform: scale(1.15);
    color: #d63384;
}

.menu-item-favorite.active {
    color: #d63384;
}

.menu-item-detail-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b8892f);
    color: #faf8f5;
    font-size: 0.95rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(42, 24, 16, 0.12);
}

.menu-item-detail-icon:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.5), rgba(26, 26, 26, 0.5));
    border-radius: 16px;
    margin: 2rem;
}

/* Item Detail Modal */
.item-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 24, 16, 0.8);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    z-index: 2001;
    /* background: var(--card-bg-light); */
    background-image: url('../images/Img_123.jpg');
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 20px 60px rgba(42, 24, 16, 0.4);
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--header-dark-brown);
    color: var(--gold-accent);
    border: 1px solid var(--border-gold);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2002;
    box-shadow: 0 2px 6px rgba(42, 24, 16, 0.3);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(139, 115, 85, 0.4);
}

.modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-image-section {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: var(--category-bg-beige);
}

.modal-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-item-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.2px;
    font-family:  'IranNastaliq', 'Vazirmatn', sans-serif;
}

.modal-item-title .name-fa {
    text-align: right;
    font-size: 3rem;
}

.modal-item-title .name-en {
    text-align: left;
    font-family: 'IranNastaliq', 'Vazirmatn', 'Tahoma', sans-serif;
    font-size: 2rem;
}

.modal-item-description {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    letter-spacing: 0.1px;
    display: block;
    gap: 0.8rem;
    max-height: 200px;
    overflow: hidden;
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    transition: overflow-y 0.3s ease;
    padding: 0 0.8rem 0 0;
    font-family: 'iranNastaliq', 'Vazirmatn', serif;
}

.modal-item-description.scrollable {
    overflow-y: auto;
    padding: 0 0.8rem 0 0;
}

.modal-item-description .name-fa {
    color: var(--text-muted);
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    text-align: right;
    display: block;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.modal-item-description .name-en {
    color: var(--text-muted);
    font-family: 'Vazirmatn', sans-serif;
    text-align: left;
    font-size: 0.9em;
    display: block;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.modal-item-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-item-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-accent);
    text-shadow: 0 1px 3px rgba(212, 175, 55, 0.2);
    font-family: 'Vazirmatn', serif;
    letter-spacing: 0.3px;
}


/* Language display toggles: both titles available; site should toggle body.lang-en / body.lang-fa */
.name-en { display: inline-block; }
.name-fa { display: inline-block; }

/* Persian font (Nastaliq) for Persian view */
body.lang-fa .name-fa,
body.lang-fa .category-name,
body.lang-fa .category-name .name-fa,
body.lang-fa .menu-item-title,
body.lang-fa .menu-item-title .name-fa,
body.lang-fa .menu-item-price,
body.lang-fa .modal-item-title,
body.lang-fa .modal-item-description,
body.lang-fa .modal-item-price,
body.lang-fa h2 {
    font-family: 'IranNastaliq', 'Vazirmatn', serif;
}

/* Mobile Menu Buttons (max-width: 480px) */
@media (max-width: 480px) {
    .category-nav-wrapper {
        padding: 1.5rem 1rem 1rem;
    }
    
    .category-nav {
        gap: 0.9rem;
    }
    
    .category-btn {
        width: 130px;
        height: 130px;
        aspect-ratio: 1 / 1;
        border-radius: 10px;
    }
    
    .category-name {
        font-size: 0.8rem;
        padding: 0.5rem 0.4rem;
        font-weight: 700;
        gap: 0.2rem;
    }
    
    .category-name .name-fa {
        font-size: 1.5rem;
    }

    .category-name .name-fa,
    .category-name .name-en {
        white-space: normal;
        line-height: 1.1;
    }
    
    .menu-items-container {
        padding: 1rem 0 1.5rem;
    }
    
    .menu-list {
        gap: 0.8rem;
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .menu-item-card {
        /* use flex layout on very small screens to avoid grid overlap issues */
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0.75rem 0.9rem;
    }
    
    .menu-item-image {
        width: 90px;
        height: 90px;
        flex: 0 0 90px;
    }
    
    .menu-item-title {
        font-size: 2rem;
        font-weight: 700;
    }
    
    .menu-item-title .name-fa {
        flex: 1;
        text-align: right;
    }
    
    .menu-item-title .name-en {
        flex: 0 0 auto;
        text-align: left;
        font-size: 0.5em;
        white-space: nowrap;
    }
    
    .menu-item-description {
        font-size: 0.65rem;
        display: inline;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .menu-item-description .name-fa,
    .menu-item-description .name-en {
        display: inline;
    }
    
    .menu-item-price {
        font-size: 0.9rem;
    }
    
    .menu-item-favorite {
        font-size: 1.1rem;
    }
    
    .menu-item-detail-icon {
        width: 24px;
        height: 24px;
        font-size: 0.85rem;
    }
    
    .modal-image-section {
        width: 100%;
        max-width: 260px;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
    }
    
    .modal-item-description {
        font-size: 0.95rem;
        gap: 0.6rem;
    }
    
    .modal-item-description .name-fa {
        font-size: 0.95rem;
    }
    
    .modal-item-description .name-en {
        font-size: 0.9rem;
    }
    
    .modal-item-title {
        font-size: 2rem;
    }
    
    .modal-item-title .name-fa {
        font-size: 2.5rem;
    }
    
    .modal-item-title .name-en {
        font-size: 1.5rem;
    }
}

/* Tablet Menu Buttons (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .category-nav-wrapper {
        padding: 2rem 1.2rem 1.5rem;
    }
    
    .category-nav {
        gap: 1.2rem;
    }
    
    .category-btn {
        width: 160px;
        height: 160px;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }
    
    .category-name {
        font-size: 0.9rem;
        padding: 0.7rem 0.6rem;
        font-weight: 700;
        gap: 0.3rem;
    }

    .category-name .name-fa {
        font-size: 1.5rem;
    }

    
    .category-name .name-fa,
    .category-name .name-en {
        white-space: normal;
        line-height: 1.2;
    }
    
    .menu-items-container {
        padding: 1.5rem 0 2rem;
    }
    
    .menu-list {
        padding: 0 1.5rem;
    }
    
    .menu-item-card {
        grid-template-columns: 110px 1fr 65px;
        gap: 1rem;
        padding: 0.8rem 1rem;
    }
    
    .menu-item-image {
        width: 110px;
        height: 110px;
    }
    
    .menu-item-title {
        font-size: 0.95rem;
        font-weight: 700;
    }
    
    .menu-item-title .name-fa {
        flex: 1;
        text-align: right;
    }
    
    .menu-item-title .name-en {
        flex: 0 0 auto;
        text-align: left;
        font-size: 0.8em;
        white-space: nowrap;
    }
    
    .menu-item-description {
        font-size: 0.75rem;
        display: inline;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .menu-item-description .name-fa {
        font-size: 0.75rem;
        display: inline;
    }
    
    .menu-item-description .name-en {
        font-size: 0.65rem;
        display: inline;
    }
    
    .menu-item-price {
        font-size: 1rem;
    }
    
    .modal-image-section {
        width: 100%;
        max-width: 360px;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
    }
    
    .modal-item-description {
        font-size: 1rem;
        gap: 0.7rem;
    }
    
    .modal-item-description .name-fa {
        font-size: 1rem;
    }
    
    .modal-item-description .name-en {
        font-size: 0.95rem;
    }
    
    .modal-item-title {
        font-size: 1.5rem;
    }
    
    .modal-item-title .name-fa {
        font-size: 1.7rem;
    }
    
    .modal-item-title .name-en {
        font-size: 0.8rem;
    }
}

/* Desktop Menu Buttons (769px and above) */
@media (min-width: 769px) {
    .category-nav-wrapper {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .category-nav {
        gap: 1.5rem;
    }
    
    .category-btn {
        width: 220px;
        height: 220px;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }
    
    .category-name {
        font-size: 1rem;
        padding: 0.8rem 0.6rem;
        font-weight: 700;
        gap: 0.3rem;
    }

    .category-name .name-fa {
        font-size: 1.5rem;
    }

    
    .category-name .name-fa {
        white-space: normal;
        line-height: 1.2;
    }
    
    .category-name .name-en {
        white-space: normal;
        line-height: 1.2;
        font-size: 0.85em;
    }
}