@font-face {
    font-family: 'Vazir';
    src: url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.eot');
    src: url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.eot?#iefix') format('embedded-opentype'),
         url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.woff2') format('woff2'),
         url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.woff') format('woff'),
         url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #E31837; /* قرمز اشتها آور */
    --primary-dark: #C8102E;
    --secondary: #FFFFFF; /* سفید */
    --bg-light: #F9F9F9;
    --bg-card: #FFFFFF;
    --text: #333333;
    --text-secondary: #666666;
    --success: #28A745;
    --danger: #DC3545;
    --info: #17A2B8;
    --accent: #FFD700;
}

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    background: var(--bg-light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: 
        radial-gradient(circle at 10% 20%, rgba(227,24,55,0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.1) 0%, transparent 20%),
        linear-gradient(135deg, #FFFFFF 0%, #F9F9F9 100%);
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* هدر */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(227, 24, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(227, 24, 55, 0.5);
    animation: pulse 2s infinite;
    border: 3px solid white;
}

.logo i {
    font-size: 38px;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.restaurant-name {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(227, 24, 55, 0.2);
}

/* تب‌ها */
.tabs-container {
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(227, 24, 55, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    color: var(--text-secondary);
}

.tab:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 24, 55, 0.1);
}

.tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(227, 24, 55, 0.3);
}

.tab i {
    font-size: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* سبد خرید شناور */
.floating-cart {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cart-icon-container {
    position: relative;
    animation: floatCart 3s ease-in-out infinite;
}

@keyframes floatCart {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cart-icon {
    background: var(--primary);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(227, 24, 55, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.cart-icon:hover {
    background: var(--primary-dark);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(227, 24, 55, 0.6);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--text);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cart-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(227, 24, 55, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.floating-cart:hover .cart-badge {
    opacity: 1;
    transform: translateY(0);
}

/* بخش‌های منو */
.section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(227, 24, 55, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(227, 24, 55, 0.1);
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(227, 24, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* بخش نوشابه، سس و سالاد */
.addons-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    backdrop-filter: blur(10px);
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.addon-category {
    margin-bottom: 25px;
}

.category-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--info);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(23, 162, 184, 0.2);
}

.addon-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.addon-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(227, 24, 55, 0.1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.addon-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
}

.addon-item.selected {
    border-color: var(--info);
    background: rgba(23, 162, 184, 0.05);
}

.addon-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.addon-name {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    color: var(--text);
}

.addon-price {
    color: var(--info);
    font-weight: bold;
}

.addon-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(227, 24, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.addon-item.selected .addon-checkbox {
    background: var(--info);
    border-color: var(--info);
}

.addon-item.selected .addon-checkbox::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* کارت آیتم منو */
.menu-item-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(227, 24, 55, 0.1);
    position: relative;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(227, 24, 55, 0.15);
    border-color: rgba(227, 24, 55, 0.3);
}

.item-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item-card:hover .item-image {
    transform: scale(1.05);
}

.item-content {
    padding: 20px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.item-name {
    font-weight: bold;
    font-size: 18px;
    color: var(--text);
}

.item-price {
    font-weight: bold;
    color: var(--primary);
    font-size: 18px;
}

.item-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
    min-height: 42px;
}

.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-family: 'Vazir', Tahoma, sans-serif;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(227, 24, 55, 0.3);
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(227, 24, 55, 0.4);
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 18px;
    color: var(--primary);
}

/* مودال سبد خرید */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(227, 24, 55, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-title {
    font-size: 22px;
    font-weight: bold;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: var(--accent);
}

.modal-body {
    padding: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(227, 24, 55, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-weight: bold;
    font-size: 16px;
}

.cart-item-price {
    color: var(--primary);
    font-size: 14px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-btn {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(220, 53, 69, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: rgba(220, 53, 69, 0.2);
}

.cart-summary {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.total-price {
    color: var(--primary);
    font-size: 20px;
}

.checkout-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-family: 'Vazir', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-btn:hover {
    background: var(--primary-dark);
}

.checkout-btn:disabled {
    background: rgba(227, 24, 55, 0.5);
    cursor: not-allowed;
}

/* مودال آدرس */
.address-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(227, 24, 55, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delivery-option:hover {
    border-color: var(--primary);
    background: rgba(227, 24, 55, 0.05);
}

.delivery-option.selected {
    border-color: var(--primary);
    background: rgba(227, 24, 55, 0.1);
}

.delivery-option input[type="radio"] {
    display: none;
}

.delivery-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}

.delivery-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.form-input, .form-textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(227, 24, 55, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: var(--text);
    font-family: 'Vazir', Tahoma, sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(227, 24, 55, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-order-btn {
    background: var(--success);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-family: 'Vazir', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-order-btn:hover {
    background: #218838;
}

/* پیام موفقیت */
.success-message {
    text-align: center;
    padding: 30px 20px;
}

.success-icon {
    font-size: 50px;
    color: var(--success);
    margin-bottom: 20px;
}

.success-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--success);
    margin-bottom: 10px;
}

.success-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* مودال نوشابه و سالاد و سس */
.addon-modal-category {
    margin-bottom: 20px;
}

.addon-modal-category-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--info);
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(23, 162, 184, 0.2);
}

.addon-modal-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.addon-modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(227, 24, 55, 0.1);
}

.addon-modal-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.addon-modal-item-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.addon-modal-item-name {
    font-weight: bold;
    font-size: 14px;
}

.addon-modal-item-price {
    color: var(--info);
    font-size: 12px;
}

.addon-modal-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.addon-modal-quantity {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        width: 100%;
        justify-content: center;
    }
    
    .menu-grid, .addons-grid {
        grid-template-columns: 1fr;
    }
    
    .addon-items {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .modal-content {
        width: 95%;
    }
    
    .floating-cart {
        bottom: 20px;
        left: 20px;
    }
    
    .cart-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .cart-count {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}