/* تنظیمات کلی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8f7f2;
    color: #3a5a40;
    line-height: 1.6;
}

/* هدر */
header {
    background-color: #3a5a40;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-left: 1rem;
    object-fit: cover;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.slogan {
    font-size: 1.2rem;
    font-weight: 300;
    color: #dad7cd;
}

/* منوی ناوبری */
nav {
    background-color: #588157;
    padding: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

nav.nav-hidden {
    transform: none;
}

nav.show-menu {
    transform: none !important;
}

.tabs {
    display: flex;
    justify-content: space-around;
    max-width: 800px;
    margin: 0 auto;
}

.tab-btn {
    background: none;
    border: none;
    color: #f8f7f2;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    outline: none;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background-color: #a3b18a !important;
    color: #344e41 !important;
    font-weight: 500;
}

/* محتوای اصلی */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #344e41;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #588157;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.menu-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.menu-item img {
    width: 100%;
    height: 470px;
    object-fit: cover;
}

.menu-item-snack {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item-snack:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.menu-item-snack img {
    width: 100%;
    height: 370px;
}

.item-details {
    padding: 1.5rem;
}

.item-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #344e41;
}

.description {
    color: #588157;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.price {
    font-weight: 700;
    color: #588157;
    font-size: 1.1rem;
}

.special {
    border: 2px solid #6c584c;
}

.special-tag {
    background-color: #6c584c;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* فوتر */
footer {
    background-color: #344e41;
    color: #dad7cd;
    padding: 2rem 1rem;
    text-align: center;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info i {
    margin-left: 0.5rem;
    color: #a3b18a;
}

.social-media {
    margin-bottom: 1.5rem;
}

.social-icon {
    display: inline-block;
    color: #dad7cd;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #fff;
}

.copyright {
    font-size: 0.9rem;
    color: #a3b18a;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0.8rem;
        border-radius: 8px;
        position: relative;
        overflow: hidden;
        font-size: 1.2rem;
    }
    
    .random-product img{
        width: 100%;
        height: 300px;
    }
    .menu-toggle-hint {
        font-size: 0.9rem;
        margin-right: 10px;
        font-weight: bold;
    }
    
    .mobile-menu-toggle i {
        font-size: 1.3rem;
        margin-left: 8px;
    }
    
    .tabs {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #588157;
    }
    
    .tabs.show {
        display: flex !important;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        margin: 0.2rem 0;
    }
    
    .menu-items {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .menu-item img {
        height: 100%;
    }
    .menu-item-snack img {
        height: 100%;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .item-details h3 {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 0.8rem;
    }
    
    .price {
        font-size: 1rem;
    }
    
    .contact-info p {
        margin-bottom: 1rem;
        padding: 0.5rem;
    }
    
    .social-icon {
        font-size: 1.8rem;
        margin: 0 0.8rem;
        padding: 0.5rem;
    }
    
    /* چسباندن نوار ناوبری به بالای صفحه */
    nav {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    /* افزایش فاصله بین آیتم‌های منو برای لمس راحت‌تر */
    .tab-btn {
        padding: 1rem;
        margin: 0.3rem 0;
    }
    
    /* اضافه کردن سایه به منو هنگام باز شدن */
    .tabs.show {
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* اضافه کردن انیمیشن برای باز و بسته شدن منو */
    .tabs {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .tabs.show {
        max-height: 500px;
    }
    
    /* افزایش اندازه دکمه بازگشت به بالا در موبایل */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 25px;
        left: 25px;
    }
    
    .scroll-to-top i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .slogan {
        font-size: 1rem;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .tab-btn {
        flex: 1 0 100%;
        margin: 0.2rem 0;
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .menu-item img {
        height: 470px;
    }
    
    .menu-item-snack img {
        height: 300px;
    }

    main {
        padding: 0 0.5rem;
    }
    
    .item-details {
        padding: 1rem;
    }
    
    footer {
        padding: 1.5rem 0.5rem;
    }
}

/* اضافه کردن به فایل styles.css */
.menu-images-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-images-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* استایل‌های صفحه عکس منو */
.back-button {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.8rem 1.5rem;
    background-color: #588157;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #3a5a40;
}

/* بهبود تجربه لمسی */
.tab-btn, .social-icon, .back-button {
    min-height: 44px;
}

/* اضافه کردن استایل برای منوی همبرگری */
.mobile-menu-toggle {
    display: none;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    text-align: center;
    font-family: 'Vazirmatn', sans-serif;
    position: relative;
}

.menu-toggle-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 5px;
    animation: blink 2s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* دکمه بازگشت به بالای صفحه */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: #588157;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
    opacity: 0.9;
}

.menu-images-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.menu-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.menu-image {
    width: 100%;
    max-width: 800px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 2px solid #a3b18a;
}

.menu-image:hover {
    transform: scale(1.02);
}

.menu-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}



.menu-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #344e41;
    font-size: 1.5rem;
    background-color: #dad7cd;
    padding: 0.5rem;
    border-radius: 5px 5px 0 0;
}

.back-button {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.8rem 1.5rem;
    background-color: #5e4c3e;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #3c2f2f;
}

@media (max-width: 768px) {
    .menu-image {
        max-width: 100%;
    }

    .menu-title {
        font-size: 1.3rem;
        padding: 0.4rem;
    }

    .back-button {
        width: 100%;
        text-align: center;
        padding: 1rem;
        margin-top: 1rem;
    }

    .menu-images-container {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .menu-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 25px;
        left: 25px;
    }
    
    .scroll-to-top i {
        font-size: 1.2rem;
    }
}

.touch-guide {
    text-align: center;
    background-color: rgba(58, 90, 64, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    color: #3a5a40;
    font-weight: 500;
    border: 1px dashed #588157;
    animation: blink 2s infinite;
    display: none;
}

@media (max-width: 768px) {
    .touch-guide {
        display: block;
    }
    
    .menu-image {
        position: relative;
    }
} 