* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', sans-serif;
    background: linear-gradient(to bottom right, #fef3ff, #fff9f0, #fffaed);
    min-height: 100vh;
    direction: rtl;
}

/* Header */
.header {
    background: linear-gradient(to left, #93298d, #fecd07);
    position: sticky;
    top: 0;
    z-index: 60;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.header img {
    width: auto;
    height: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Desktop Sidebar */
.desktop-sidebar {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 5rem;
    background: linear-gradient(to bottom, #93298d, #fecd07);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    z-index: 50;
}

@media (min-width: 1024px) {
    .desktop-sidebar {
        display: flex;
    }

    .mobile-nav,
    .mobile-bottom-bar {
        display: none !important;
    }

    .header {
        top: 0;
    }

    .content {
        margin-right: 5rem;
        padding-top: 0;
    }
}

.desktop-sidebar button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.desktop-sidebar button:hover {
    transform: scale(1.1);
}

.desktop-sidebar button.active {
    background: rgba(255, 255, 255, 0.2);
}

.category-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.category-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile Navigation */
.mobile-nav {
    position: sticky;
    top: 7rem;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #93298d, #fecd07);
    padding: 0.75rem;
    z-index: 50;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 42rem;
    margin: 0 auto;
}

.mobile-nav button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s;
}

.mobile-nav button.active {
    transform: scale(1.1);
}

.mobile-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #93298d, #fecd07);
    padding: 1rem;
    z-index: 50;
    box-shadow: 0 -10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 42rem;
    margin: 0 auto;
}

.mobile-bottom-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.mobile-bottom-bar a:hover {
    transform: scale(1.1);
}

.bottom-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.bottom-text {
    font-size: 0.75rem;
    color: white;
}

/* Content */
.content {
    padding: 1rem 1rem 7rem;
}

@media (min-width: 1024px) {
    .content {
        padding: 3rem 1rem;
    }
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 10px;
}

/* Category Header - FIXED */
.category-header {
    display: flex;
    justify-content: flex-start; /* Changed from flex-end to flex-start */
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .category-header {
        margin-bottom: 3rem;
    }
}

.category-badge {
    padding: 1rem 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    /* Removed margin-right: auto */
}

.category-badge-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .category-badge-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
}

.category-badge-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 1024px) {
    .category-badge-icon svg {
        width: 2rem;
        height: 2rem;
    }
}

.category-badge-text {
    color: white;
    font-size: 1.5rem;
}

@media (min-width: 1024px) {
    .category-badge-text {
        font-size: 1.875rem;
    }
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Menu Item */
.menu-item {
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 4px solid;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

.menu-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.menu-item-image {
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f3f4f6;
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-content {
    text-align: right;
}

.menu-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.menu-item-name {
    color: #4b5563;
    flex: 1;
    font-weight: 500;
}

.menu-item-price {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.menu-item-description {
    color: #6b7280;
    line-height: 1.625;
}

/* Logo placeholder */
.logo-placeholder {
    height: 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

@media (min-width: 1024px) {
    .logo-placeholder {
        height: 7rem;
    }

    .header {
        padding: 2rem;
    }
}