body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #fdfaf6;
    color: #4E423D;
    margin: 0;
}

/* ===== لوگو و نام کافه (ثابت) ===== */
.logo-container {
    background-color: #f7f2e9;
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.logo-container img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 5px;
}

.logo-container h1 {
    font-size: 1.5em;
    color: #6f4e37;
    font-weight: 700;
    margin: 0;
}


/* ===== هدر چسبان (فقط ناوبری) ===== */
header {
    background-color: #f7f2e9;
    padding: 4px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

/* ===== نوار آیکون: همیشه تک ردیف با اسکرول افقی ===== */
.icon-navigation {
    display: flex;
    flex-wrap: nowrap; /* مهم: همیشه در یک ردیف */
    overflow-x: auto;  /* مهم: همیشه قابل اسکرول افقی */
    align-items: center;
    padding: 8px 15px;
    gap: 18px; /* فاصله بین آیکون‌ها */
    -ms-overflow-style: none;  /* مخفی کردن اسکرول‌بار */
    scrollbar-width: none;
}

/* مخفی کردن اسکرول‌بار در مرورگرهای کروم، سافاری و اپرا */
.icon-navigation::-webkit-scrollbar {
    display: none;
}

/* هر آیتم لینک در نوبار */
.icon-navigation a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6B4F4F;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    text-align: center;
    padding: 5px;
    flex-shrink: 0; /* مهم: جلوگیری از فشرده شدن آیتم‌ها */
}

/* دایره آیکون */
.icon-navigation a div {
    width: 40px;
    height: 40px;
    margin-bottom: 3px;
    line-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* خود آیکون */
.icon-navigation i {
    font-size: 1.4em;
    color: #8B4513;
}
.icon-navigation img {
    width: 30px;
    height: 30px;
}

/* متن زیر آیکون */
.icon-navigation span {
    font-size: 0.75em;
    font-weight: 700;
    white-space: nowrap;
}

.icon-navigation a:hover {
    background-color: rgba(111, 78, 55, 0.1);
}

/* ===== MEDIA QUERIES برای اندازه‌های مختلف صفحه ===== */

/* در صفحه‌های بزرگتر، فقط سایز آیکون‌ها و نوشته‌ها کمی بزرگتر می‌شود */
/* ساختار تک ردیفه و اسکرولی حفظ می‌شود */
@media (min-width: 768px) {
    .icon-navigation {
        gap: 25px; /* کمی فاصله بیشتر در دسکتاپ */
    }
    .icon-navigation a div {
        width: 50px;
        height: 50px;
        line-height: 50px;
    }
    .icon-navigation i {
        font-size: 1.8em;
    }
    .icon-navigation img {
        width: 35px;
        height: 35px;
    }
    .icon-navigation span {
        font-size: 0.9em;
    }
    .logo-container {
        padding: 15px 10px;
    }
    .logo-container h1 {
        font-size: 2.5em;
    }
}


/* ===== بدنه اصلی منو (بدون تغییر) ===== */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.category-title {
    font-size: 2em;
    color: #6f4e37;
    margin-top: 40px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #D2B48C;
}

.category-title .fas, .category-title .fa-solid {
    margin-left: 15px;
    color: #8B4513;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.menu-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e3dcd2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(111, 78, 55, 0.1);
}

.menu-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin: 15px;
    flex-shrink: 0;
    order: 1;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2;
}

.item-name {
    font-size: 1.2em;
    font-weight: 700;
    color: #6f4e37;
    margin: 0 0 5px 0;
}

.item-description {
    font-size: 0.9em;
    color: #4E423D;
    line-height: 1.5;
    margin: 0 0 10px 0;
    flex-grow: 1;
}

.item-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
}

.item-price {
    font-size: 1.1em;
    font-weight: 700;
    color: #556b2f;
    background-color: #e9ede3;
    padding: 5px 12px;
    border-radius: 20px;
}

footer {
    background-color: #6f4e37;
    color: #fdfaf6;
    padding: 40px 0;
    text-align: center;
}

footer .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.designer-strip {
    background-color: #4E423D;
    color: #fdfaf6;
    padding: 15px 0;
    font-size: 0.8em;
    text-align: center;
}

.designer-strip a {
    color: #fdfaf6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.designer-strip a:hover {
    color: #D2B48C;
}

.social-icons a {
    color: #fdfaf6;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: #D2B48C;
}

/* ایجاد سرنخ بصری برای اسکرول افقی */

/* 1. ابتدا به تگ header یک position: relative می‌دهیم تا افکت ما داخل آن قرار بگیرد */
header {
    position: relative;
}

/* 2. خود افکت محو شونده که در سمت چپ قرار می‌گیرد */
header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;  /* در سمت چپ قرار می‌گیرد (مناسب برای سایت راست‌چین) */
    bottom: 0;
    width: 40px; /* عرض ناحیه محو شونده */
    
    /* مهم‌ترین بخش: یک گرادینت خطی از رنگ پس‌زمینه به شفاف */
    background: linear-gradient(to right, #f7f2e9 20%, transparent);
    
    /* این خاصیت باعث می‌شود که این لایهٔ محو، جلوی کلیک کردن یا اسکرول را نگیرد */
    pointer-events: none;
    
    z-index: 2; /* برای اطمینان از اینکه روی آیکون‌ها قرار می‌گیرد */
}