:root {
    --primary-color: #a9b6ad;
    --secondary-color: #000000;
    --text-color: #333333;
    --background-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--primary-color);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    color: var(--secondary-color);
    font-size: 2rem;
}

nav {
    background-color: var(--primary-color);
    padding: 1rem;
}

.category-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.category-menu a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid var(--secondary-color);
    background: transparent;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.category-menu a:hover,
.category-menu a.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.menu-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.menu-container > h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-size: 2.5rem;
}

.category {
    margin-bottom: 3rem;
    padding: 1rem;
    background-color: #f8f8f8;
    border-radius: 10px;
}

.category h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.menu-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item-content {
    padding: 1.5rem;
}

.menu-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.menu-item p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.menu-item .price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.menu-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    display: block;
    margin-bottom: 0.5rem;
    background: #eee;
}

footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .category-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) #e0e0e0;
    }
    .category-menu::-webkit-scrollbar {
        height: 6px;
        background: #e0e0e0;
    }
    .category-menu::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
    .category-menu li {
        display: inline-block;
    }
    .category-menu a {
        min-width: 90px;
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0;
        display: inline-block;
    }
}