/* لود فونت وزیر */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* اعمال فونت به تمام عناصر مورد نیاز */
body, .menu-container, h1, h2, h3, h4, p, .price, .header, .home-link, .menu, .menu ul li a {
    font-family: 'Vazirmatn', sans-serif; /* اصلاح نام فونت از 'Vazir' به 'Vazirmatn' */
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.menu-category {
    margin-bottom: 20px; /* فاصله زیر هر دسته‌بندی */
    padding-bottom: 10px; /* فضای داخلی زیر دسته‌بندی */
    border-bottom: 2px solid #f4a261; /* خط جداکننده زیر هر دسته‌بندی */
}

.menu-category h2 {
    font-size: 2em;
    color: #444;
    margin-bottom: 20px;
    padding: 10px; /* فضای داخلی برای کادر */
    border: 1px solid #f4a261; /* کادر مشابه عکس‌ها */
    border-radius: 10px; /* گوشه‌های گرد مشابه عکس‌ها */
    white-space: nowrap; /* جلوگیری از شکستن متن به چند خط */
    cursor: pointer; /* نشانگر ماوس برای تعامل */
    transition: transform 0.2s; /* افکت هاور مشابه عکس‌ها */
}

.menu-category h2:hover {
    transform: scale(1.05); /* افکت بزرگ‌نمایی مشابه عکس‌ها */
}

.sub-category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.sub-category-item {
    border: 1px solid #f4a261;
    border-radius: 10px;
    overflow: hidden;
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.2s;
}

.sub-category-item:hover {
    transform: scale(1.05);
}

.sub-category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #faf5e4;
    background-image: url('path/to/parchment-texture.jpg');
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid #d4a373;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #5c4033;
}

.modal-content h3 {
    font-size: 1.8em;
    color: #5c4033;
    margin-bottom: 15px;
    text-align: center;
}

.modal-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px dashed #d4a373;
    padding: 15px;
    gap: 15px;
    direction: rtl;
    min-height: 60px;
}

.menu-item .item-content {
    display: flex;
    flex-direction: column;
    flex: 2;
    text-align: right;
}

.menu-item h4 {
    font-size: 1.1em;
    margin: 0;
    color: #5c4033;
    line-height: 1.4;
}

.menu-item p {
    font-size: 0.9em;
    color: #6b4e31;
    margin: 5px 0 0 0;
    line-height: 1.4;
}

.menu-item .price {
    font-size: 1.1em;
    font-weight: bold;
    color: #e76f51;
    margin: 0;
    text-align: left;
    min-width: 100px;
    align-self: center;
}

@media (max-width: 768px) {
    .menu-item {
        padding: 12px;
        min-height: 50px;
    }

    .sub-category-item {
        width: 150px;
        height: 150px;
    }

    .modal-image {
        max-height: 300px;
    }

    .modal-content {
        max-width: 95%;
    }

    .menu-item h4 {
        font-size: 0.95em;
    }

    .menu-item p {
        font-size: 0.8em;
    }

    .menu-item .price {
        min-width: 80px;
        font-size: 0.95em;
    }

    .menu-category h2 {
        font-size: 1.5em; /* کاهش اندازه فونت در موبایل */
        padding: 8px; /* کاهش فضای داخلی در موبایل */
    }
}

/* ================================================
   مودال تخفیف‌های ویژه – نسخه نهایی و کاملاً ریسپانسیو
   ================================================ */
#specialOfferModal .modal-content {
    background-color: #faf5e4;
    border: 2px solid #d4a373;
    background-image: url('path/to/parchment-texture.jpg');
    background-size: cover;
    background-position: center;
    animation: fadeIn 0.4s ease-in-out;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
}

.special-offer-title {
    text-align: center;
    color: #5c4033;
    font-size: 1.9em;
    font-weight: bold;
    margin: 15px 0 25px;
    padding-bottom: 12px;
    border-bottom: 2px dashed #d4a373;
}

.special-offer-items {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0 10px;
    margin: 10px 0;
}

.special-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    border-right: 6px solid #f4a261;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.special-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* نام + درصد تخفیف در یک خط و بدون علامت منفی */
.special-item h4 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    color: #5c4033;
    font-size: 1.3em;
    margin: 0 0 10px 0;
    font-weight: bold;
    line-height: 1.4;
}

.discount-badge {
    background: #e74c3c;
    color: white;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.9em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    white-space: nowrap;
    /* علامت منفی حذف شد → فقط عدد و % */
    content: attr(data-percent) "٪"; /* فقط در صورت نیاز */
}

.special-item p {
    color: #6b4e31;
    margin: 8px 0 0 0;
    font-size: 0.95em;
    line-height: 1.5;
}

.price-container {
    text-align: left;
    min-width: 120px;
    padding-left: 10px;
}

.old-price {
    display: block;
    color: #999;
    text-decoration: line-through;
    font-size: 0.95em;
}

.new-price {
    display: block;
    color: #e76f51;
    font-weight: bold;
    font-size: 1.55em;
    margin-top: 6px;
}

.modal-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #d4a373;
}

.close-modal-btn {
    background: linear-gradient(to bottom, #e67e22, #d35400);
    color: white;
    border: none;
    padding: 14px 50px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.close-modal-btn:hover {
    background: linear-gradient(to bottom, #d35400, #c0392b);
    transform: translateY(-2px);
}

/* ====================================
   ریسپانسیو عالی برای موبایل
   ==================================== */
@media (max-width: 768px) {
    #specialOfferModal .modal-content {
        width: 95%;
        max-height: 85vh;
        padding: 15px;
    }

    .special-offer-title {
        font-size: 1.6em;
        margin: 10px 0 20px;
    }

    .special-item {
        padding: 14px;
        margin-bottom: 14px;
    }

    .special-item h4 {
        font-size: 1.15em;
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .discount-badge {
        font-size: 0.85em;
        padding: 5px 10px;
    }

    .price-container {
        min-width: 100px;
        padding-left: 0;
    }

    .new-price {
        font-size: 1.4em;
    }

    .close-modal-btn {
        padding: 12px 40px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .special-item h4 {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    
    .discount-badge {
        align-self: flex-start;
    }
}

.tax-notice {
    background-color: #faf5e4;
    border: 1px solid #f4a261;
    border-radius: 10px;
    padding: 15px;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
    font-size: 1.1em;
    color: #5c4033;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: bold;
    font-family: 'Vazirmatn', sans-serif;
}

@media (max-width: 768px) {
    .tax-notice {
        margin: 15px 10px;
        padding: 12px;
        font-size: 1em;
    }
}