@import url(font.css); /* لینک دستور فونت فیس */

:root {
    --color-primary: #104310;
    --color-secondary: #4f664f;
    --color-third: #a7d9a7;
    --color-fourth: #2f562f;
    --color-accent: #f5c518;
    --color-card: #1e4a1e;
    --color-card-border: #3a6b3a;
    --color-item-bg: #2d5a2d;
    --color-light-green: #c8e6c8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    height: 100%;
    width: 100%;

    margin: 0;
}

body {
    height: 100%;
}
body {
    /* تنظیمات ابعاد و اسکرول */
    height: 100vh;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;

    /* تنظیمات متن و جهت‌دهی */
    direction: rtl;
    color: #fff;
    font-family: Yekan-NewFace-D3, Tahoma, Arial, sans-serif !important;

    /* تنظیمات پس‌زمینه (ترکیب گرادینت با Fallback) */
    background-color: #3a5c3a; /* Fallback برای مرورگرهای قدیمی */
    background: linear-gradient(
        180deg,
        #3a5c3a 0%,
        var(--color-primary, #1a2a1a) 100%
    );

    /* بهینه‌سازی رندرینگ */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea {
    font-family: Yekan-NewFace-D3 !important;
}
h1 {
    font-weight: 500;
}
a {
    text-decoration: none;
}
.wrapper {
    max-width: 900px;
    margin: 0 auto;
}
.ltr {
    direction: ltr;
}
.text-right {
    text-align: right;
}
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-small {
    font-size: 0.8em;
}
.text-xsmall {
    font-size: 0.6em;
}
.text-large {
    font-size: 1.2em;
}
.text-xlarge {
    font-size: 1.4em;
}
.text-underline {
    text-decoration: underline;
}

.text-thin {
    font-weight: 100;
}
.text-light {
    font-weight: 200;
}
.text-regular {
    font-weight: 300;
}
.text-medium {
    font-weight: 400;
}
.text-bold {
    font-weight: 500;
}
.text-black {
    font-weight: 600;
}
blockquote {
    font-weight: 600;
    padding: 10px;
    border: 1px dashed #666666;
}

.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.logo-bar {
    text-align: center;
    margin-bottom: 20px;
    background-color: var(--color-fourth);
    padding: 10px;
    width: 40%;
    margin: 0 auto;
    height: 150px;
    border-radius: 0 0 60px 60px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-bar img {
    max-width: 90px;
    height: auto;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.home-content h1 {
    font-size: 16px;
    color: var(--color-third);
}

.home-content p {
    color: var(--color-third);
    border-radius: 16px;
    padding: 4px 16px;
    background-color: var(--color-fourth);
}

.name-desc {
    max-width: 270px;
    margin: 40px auto 20px auto;
}
.name-desc p {
    font-size: 18px;
}

.vertical-divider {
    width: 1px;
    height: 100px;
    background-color: var(--color-third);
    margin: 0 20px;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
}
.menus-item {
    background-color: #466146;
    border: 1px solid #6a8d6a;
    padding: 15px 25px;
    color: #fff;
    border-radius: 30px;
    transition: all ease-in-out 0.1s;
    display: flex;
    flex-direction: column;
}

.menus-item:hover {
    background-color: #425842;
}
.menus-item img {
    width: 60px;
}
.menus-item span {
    font-size: 16px;
    font-weight: 200;
}
.menus-item h4 {
    font-size: 22px;
    font-weight: 500;
}

.lang {
    background-color: #466146;
    border: 1px solid #6a8d6a;
    padding: 8px 15px;
    color: #fff;
    border-radius: 30px;
    transition: all ease-in-out 0.1s;
    margin-bottom: 30px;
}
.lang p {
    margin: 0;
    padding: 0;
    font-weight: 300;
}
.space {
    height: 40px;
}
.modal-content {
    background-color: #1b401b !important;
    border-radius: 20px;
    border: 0;
    padding: 12px 30px 20px 30px;
}

.modal-menu-item {
    border: 1px solid #6a8d6a;
    padding: 12px 12px;
    color: #fff;
    border-radius: 30px;
    transition: all ease-in-out 0.1s;
    font-size: 22px;
    transition: all ease-in-out 0.1s;
}

.modal-menu-item:hover {
    background-color: #102e10 !important;
}

.modal-title {
    color: #fff;
}
.modal-header {
    border: 0;
}
.modal-header h1 > span {
    font-weight: normal;
    font-size: 14px;
    padding: 3px 6px;
    background-color: #ffcc00;
    color: #1b401b;
    border-radius: 16px;
}
.menu-btn-close {
    background-color: #6a8d6a;
}

.app-shell {
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 80px;
    padding: 0 20px 115px 20px;
}

/* ===== HEADER ===== */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    background: rgba(16, 67, 16, 0.6);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(167, 217, 167, 0.1);
    border-radius: 0 0 16px 16px;
}

.header-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(167, 217, 167, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-third);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-third);
}

.header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.logo-text {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
}

.logo-text span {
    color: var(--color-accent);
}

.header-brand-icon {
    width: 42px;
    height: 42px;
    background: var(--color-fourth);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--color-accent);
    border: 1px solid rgba(167, 217, 167, 0.3);
}

/* ===== CATEGORY SCROLL ===== */
.category-section {
    padding: 20px 0 10px;
}

.category-scroll {
    display: flex;
    gap: 36px;
    overflow-x: auto;
    padding: 0 20px 8px;
    scrollbar-width: none;
    padding: 10px 0 0 0;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    cursor: pointer;
}

.cat-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(167, 217, 167, 0.15);
    border: 2px solid rgba(167, 217, 167, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.cat-avatar.active {
    border-color: var(--color-accent);
    background: rgba(245, 197, 24, 0.15);
}

.cat-item:hover .cat-avatar {
    border-color: var(--color-third);
    transform: translateY(-2px);
}

.cat-label {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-third);
    white-space: nowrap;
}

/* ===== SECTION TITLE ===== */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 12px;
    color: var(--color-accent);
    font-size: 16px;
    font-weight: 400;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(245, 197, 24, 0.4));
}

.section-title::before {
    background: linear-gradient(to right, transparent, rgba(245, 197, 24, 0.4));
}

/* ===== FEATURED BANNER ===== */
.featured-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 0 20px 4px;
    scrollbar-width: none;
}

.featured-scroll::-webkit-scrollbar {
    display: none;
}

.featured-card {
    flex-shrink: 0;
    width: 240px;
    height: 130px;
    border-radius: 20px;
    background: linear-gradient(135deg, #e8d44d 0%, #c9a227 100%);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.featured-card:first-child {
    width: 280px;
}

.featured-card:hover {
    transform: scale(0.98);
}

.featured-card-inner {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(16, 67, 16, 0.7);
    color: #fff;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.featured-card .food-emoji {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 52px;
    opacity: 0.85;
    transform: rotate(-10deg);
}

.featured-card h5 {
    color: #1a2e0a;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.featured-card p {
    color: rgba(26, 46, 10, 0.7);
    font-size: 11px;
    font-weight: 300;
}

/* secondary featured */
.featured-card.secondary {
    background: linear-gradient(135deg, #2d5a2d 0%, #1a3d1a 100%);
    border: 1px solid var(--color-card-border);
}

.featured-card.secondary h5 {
    color: var(--color-third);
}

.featured-card.secondary p {
    color: rgba(167, 217, 167, 0.6);
}

/* ===== FOOD LIST ===== */
.food-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.food-card {
    background: rgba(30, 74, 30, 0.7);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: stretch;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.food-card:hover {
    background: rgba(30, 74, 30, 0.9);
    transform: translateX(-2px);
    border-color: rgba(167, 217, 167, 0.4);
}

.food-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.food-name {
    font-size: 17px;
    font-weight: 400;
    color: #fff;
}

.food-desc {
    font-size: 12px;
    font-weight: 300;
    color: rgba(167, 217, 167, 0.7);
    line-height: 1.5;
}

.food-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--color-third);
    font-weight: 300;
}

.meta-item i {
    font-size: 13px;
    opacity: 0.8;
}

.meta-value {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.food-image-box {
    width: 115px;
    min-width: 85px;
    height: 100px;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(167, 217, 167, 0.2),
        rgba(167, 217, 167, 0.05)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    border: 1px solid rgba(167, 217, 167, 0.15);
    position: relative;
    overflow: hidden;
}

.food-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.add-btn {
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #1a3d1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.add-btn:hover {
    transform: scale(1.1);
    background: #ffd84d;
}

.price-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(245, 197, 24, 0.12);
    border: 1px solid rgba(245, 197, 24, 0.25);
    border-radius: 20px;
    padding: 3px 10px;
    width: fit-content;
}

.price-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-accent);
    direction: ltr;
}

.price-unit {
    font-size: 10px;
    color: rgba(245, 197, 24, 0.6);
    font-weight: 300;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(16, 47, 16, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(167, 217, 167, 0.15);

    /* اصلاح اصلی اینجاست */
    display: grid;
    grid-template-columns: repeat(
        3,
        1fr
    ); /* تقسیم فضا به ۳ قسمت دقیقاً مساوی */

    align-items: center;
    padding: 12px 0 25px; /* پدینگ پایین برای گوشی‌های جدید (Safe Area) کمی بیشتر شد */
    z-index: 200;
    border-radius: 24px 24px 0 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;

    /* حذف پدینگ افقی مزاحم */
    padding: 8px 0;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(167, 217, 167, 0.5);
    text-decoration: none;
    width: 100%; /* اشغال تمام فضای ستون گریدی */
}

/* برای اینکه وقتی active شد پدینگ داخلی قشنگ‌تر دیده شود */
.nav-item.active {
    color: var(--color-third);
    /* حذف پس‌زمینه بزرگ برای جلوگیری از تداخل بصری، یا استفاده از یک پس‌زمینه کوچک و متمرکز */
    background: transparent;
}

/* استایل آیکون‌ها برای هماهنگی بیشتر */
.nav-item svg,
.nav-item i {
    height: 26px;
    width: 26px;
    transition: transform 0.2s;
}

.nav-item.active svg,
.nav-item.active i {
    transform: translateY(-2px); /* افکت کوچک برای آیتم فعال */
    color: var(--color-third);
}

/* ===== SHIMMER FOR PLACEHOLDER IMGS ===== */
@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(167, 217, 167, 0.05) 25%,
        rgba(167, 217, 167, 0.12) 50%,
        rgba(167, 217, 167, 0.05) 75%
    );
    background-size: 400px 100%;
    animation: shimmer 2s infinite;
}

/* scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(167, 217, 167, 0.2);
    border-radius: 4px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(167, 217, 167, 0.6);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
/* Food Detail Page */
.food-detail-page {
    background: linear-gradient(135deg, #2d5016 0%, #1a3d0a 100%);
    min-height: 100vh;
}

.food-detail-image {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    margin-top: 10px;
}

.food-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
}

.food-detail-content {
    padding: 24px 16px 100px;
}

.food-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.food-detail-name {
    font-size: 24px;

    color: #fff;
    margin: 0;
}

.food-category-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffd700;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
}

.food-price-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-item:last-child {
    border-bottom: none;
}

.price-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.price-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-amount {
    font-size: 20px;

    color: #ffd700;
}

.price-currency {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.food-meta-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.meta-icon {
    font-size: 24px;
    color: #ffd700;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.food-description-section,
.food-ingredients-section {
    margin-bottom: 24px;
}

.section-heading {
    font-size: 18px;

    color: #ffd700;
    margin-bottom: 12px;
}

.food-description-text,
.ingredients-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 15px;
}
