@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #bfe1c9 0%, #9ad2ad 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.header {
    color: white;
    padding-top: 10px;
    text-align: center;
    background-color: #bfe1c9;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
}

.header img {
    animation: logoIntro 1.8s ease-out both;
}

@keyframes logoIntro {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.category-menu {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102,126,234,0.1);
}

.category-menu-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 15px 5px;
}

.category-menu-container::-webkit-scrollbar {
    display: none;
}

.category-menu .category-name {
    font-size: 14px
}

.category-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    flex-shrink: 0;
}

.category-menu-item:hover {
    border-color: #bfe1c9;
    background: #bfe1c9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.category-menu-item.active {
    background: #bfe1c9;
    border-color: #bfe1c9;
}

.category-menu-item .category-icon {
    font-size: 16px;
}

.menu-content {
    padding: 20px;
}

.category {
    margin-bottom: 35px;
    scroll-margin-top: 80px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.category-icon {
    font-size: 28px;
}

.category-name {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.items-grid {
    display: grid;
    gap: 15px;
}

.item-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.item-card:active {
    transform: scale(0.98);
}

.item-card.unavailable {
    opacity: 0.6;
    filter: grayscale(100%);
}

.item-card.unavailable::after {
    content: 'ناموجود';
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.item-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.item-info {
    padding: 15px;
}

.item-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.item-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.item-price {
    font-size: 16px;
    font-weight: bold;
    color: #667eea;
}

.no-items {
    text-align: center;
    padding: 20px;
    color: #999;
}

.footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

@media (max-width: 480px) {
    .container {
        border-radius: 0;
    }
    
    body {
        padding: 0;
    }
    
    .item-image {
        height: 160px;
    }
}