/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #F5E6DA;
    --accent-color: #CFAF83;
    --text-dark: #2C3E50;
    --text-light: #7A3E0D;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f7e6dc;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Background Image */
.background-image {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: url('bottom-image.webp') no-repeat center bottom;
    background-size: contain;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.order-summary.show ~ .background-image {
    opacity: 0.1;
}


/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    padding: 0 0 2rem;
    max-width: 450px;
    margin: 0 auto;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(207, 175, 131, 0.05) 0%, transparent 50%);
    min-height: calc(100vh - 200px);
    margin-top: 0;
}

/* Brand Header - Completely New Implementation */
.brand-header {
    background: linear-gradient(to top, rgba(139, 69, 19, 0.5), rgba(139, 69, 19, 0.1));
    width: 100%;
    margin-bottom: -1rem;
    padding-bottom: -0.5rem;
    position: relative;
    z-index: 10;
    border-radius: 0 0 20px 20px;
}

.brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0rem;
    max-width: 100%;
    height: 150px;
}

.brand-logo {
    width: 10px !important;
    height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
    object-fit: contain;
    display: block;
}

.tiny-logo {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Category Navigation */
.category-nav {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-bottom: -1rem;


}

.category-tabs {
    display: flex;
    background: var(--white);
    border-radius: 20px;
    padding: 0.2rem;
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.15);
    border: 2px solid rgba(139, 69, 19, 0.2);
    gap: 0;
    overflow: visible;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: fit-content;
    margin: 1.5rem auto 0;
    align-items: stretch;
    height: auto;
}

.category-tabs:hover {
    
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.2);
    border-color: rgba(139, 69, 19, 0.3);
}

.tab {
    background: transparent;
    border: none;
    border-radius: 18px;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 90px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    overflow: hidden;
    transform: translateY(0);
    height: 100%;
    justify-content: center;
    align-self: stretch;
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 69, 19, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.tab:hover::before {
    transform: translateX(100%);
}

.tab:hover {
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
    background: rgba(139, 69, 19, 0.05);
    border-radius: 18px;
}

.tab.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, #A0522D 100%);
    box-shadow: 0 12px 35px rgba(139, 69, 19, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    height: 100%;
    align-self: stretch;
}

.tab i {
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0) rotate(0deg);
}

.tab:hover i {
    filter: drop-shadow(0 2px 6px rgba(139, 69, 19, 0.2));
}

.tab.active i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: iconSlide 2s ease-in-out infinite;
}

.tab span {
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0) translateY(0);
    color: var(--primary-color);
}

.tab:hover span {
    transform: translateX(1px) translateY(-2px);
    font-weight: 700;
}

.tab.active span {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.tab:active {
    transition: all 0.1s ease;
}

.tab:active i {
    transform: translateX(-1px) scale(1.05) rotate(3deg);
}



/* Remove the animated background to prevent duplication */

/* Enhanced tab animations */
.tab {
    animation: slideInUp 0.5s ease-out;
}

.tab:nth-child(1) { animation-delay: 0.1s; }
.tab:nth-child(2) { animation-delay: 0.2s; }
.tab:nth-child(3) { animation-delay: 0.3s; }

/* Remove pulse animation to prevent duplication */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
        transform: translateY(-4px) scale(1.05);
    }
    50% {
        box-shadow: 0 12px 35px rgba(139, 69, 19, 0.6);
        transform: translateY(-6px) scale(1.08);
    }
}

@keyframes iconSlide {
    0%, 100% {
        transform: translateX(0) scale(1.15) rotate(0deg);
    }
    25% {
        transform: translateX(-2px) scale(1.2) rotate(-1deg);
    }
    75% {
        transform: translateX(2px) scale(1.2) rotate(1deg);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.2);
    }
}

@keyframes containerFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1px);
    }
}

@keyframes pulse {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Menu Section */
.menu-section {
    margin-bottom: 2rem;
    overflow: visible;
    padding-top: 2rem;
}

.menu-grid {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-y: visible;
}

.menu-grid::-webkit-scrollbar {
    display: none;
}

/* Scroll hint for menu items */
.menu-section::after {
    content: '← Swipe to see more →';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.7;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Menu Item */
.menu-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem 1rem 1rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow);
    border: 1px solid rgba(139, 69, 19, 0.1);
    min-width: 160px;
    flex-shrink: 0;
    margin-bottom: 2rem;
    overflow: visible;
    margin-top: 2rem;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu-item:hover::before {
    transform: scaleX(1);
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.menu-item-icon {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px var(--shadow), 0 0 0 0 rgba(139, 69, 19, 0.4);
    border: 3px solid var(--primary-color);
    z-index: 2;
    transition: var(--transition);
}

.menu-item-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover .menu-item-icon::before {
    opacity: 1;
}

.menu-item:hover .menu-item-icon {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.menu-item-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transition: var(--transition);
    
}

.menu-item:hover .menu-item-icon img {
    transform: scale(1.1);
}

.menu-item-content {
    margin-top: 3rem;
}

.menu-item-name {
    margin-bottom: 0.5rem;
}

.menu-item-name .english {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.menu-item-name .arabic {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    font-family: 'Noto Sans Arabic', sans-serif;
    opacity: 0.9;
}

.menu-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.menu-item-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

.quantity-btn:hover {
    transform: scale(1.1);
    background: var(--text-dark);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

.quantity-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Order Summary */
.order-summary {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 230, 218, 0.9));
    padding: 1rem 1rem 1rem;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -8px 32px rgba(139, 69, 19, 0.15);
    z-index: 100;
    max-width: 450px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(139, 69, 19, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
    user-select: none;
}

.order-summary:active {
    cursor: grabbing;
}

.order-summary::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(139, 69, 19, 0.3);
    border-radius: 2px;
    z-index: 101;
}

/* Compact Order View */
.order-compact {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.show-order-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.show-order-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.show-order-btn .total-price {
    font-weight: 700;
    font-size: 1.1rem;
}

.place-order-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.place-order-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.place-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Detailed Order View */
.order-detailed {
    animation: slideDown 0.3s ease-out;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.order-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.hide-order-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hide-order-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Customer Information Form */
.customer-info-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.customer-info-section h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
}

.customer-info-section .form-group {
    margin-bottom: 1rem;
}

.customer-info-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.customer-info-section input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.customer-info-section input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.customer-info-section small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.8rem;
}

.customer-info-section input:invalid {
    border-color: #dc3545;
}

.customer-info-section input:valid {
    border-color: #28a745;
}

.order-summary.show {
    bottom: 0;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        bottom: -100%;
        opacity: 0;
    }
    to {
        bottom: 0;
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.order-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

.order-items {
    max-height: 100px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.order-items::-webkit-scrollbar {
    width: 4px;
}

.order-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.order-items::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.empty-message {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.order-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
}

.order-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-item-controls button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.order-item-controls button:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.order-item-total {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.order-item-name {
    color: var(--text-dark);
    font-weight: 500;
}

.order-item-details {
    display: flex;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.order-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.order-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.order-button:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, var(--text-dark), var(--primary-color));
}

.order-button:hover:not(:disabled)::before {
    left: 100%;
}

.order-button:active:not(:disabled) {
    transform: translateY(0);
}

.order-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 480px) {
    .main-content {
        padding: 1rem 0.5rem 120px;
    }
    
  
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.8rem;
    }
    
    .menu-item {
        padding: 2rem 0.8rem 0.8rem;
    }
    
    .menu-item-icon {
        width: 45px;
        height: 45px;
        top: -18px;
    }
    
    .menu-item-content {
        margin-top: 3rem;
        
    }
    
    .menu-item-icon img {
        width: 25px;
        height: 25px;
    }
    
    .category-tabs {
        padding: 0.15rem;
        border-radius: 18px;
    }
    
    .tab {
        padding: 0.6rem 0.7rem;
        min-width: 80px;
        border-radius: 15px;
    }
    
    .tab i {
        font-size: 0.9rem;
    }
    
    .tab span {
        font-size: 0.8rem;
    }
    
    /* Remove background positioning for mobile */
}

/* Medium screens - balanced spacing */
@media (min-width: 768px) and (max-width: 1199px) {
    .menu-item-content {
        margin-top: 2.2rem;
    }
    
    .menu-item-icon {
        top: -35px;
    }
    
    .menu-item {
        padding: 2.2rem 1rem 1rem;
    }
}

/* Large screens - more spacing */
@media (min-width: 1200px) {
    .menu-item-content {
        margin-top: 2.5rem;
    }
    
    .menu-item-icon {
        top: -40px;
    }
    
    .menu-item {
        padding: 2.5rem 1rem 1rem;
    }
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.menu-item {
    animation: fadeInUp 0.5s ease-out;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }

/* Tab animations */
.tab {
    animation: slideInRight 0.3s ease-out;
}

.tab:nth-child(1) { animation-delay: 0.1s; }
.tab:nth-child(2) { animation-delay: 0.2s; }
.tab:nth-child(3) { animation-delay: 0.3s; }

/* Quantity button animations */
.quantity-btn:active {
    animation: bounce 0.6s ease;
}

/* Order item animations */
.order-item {
    animation: slideInRight 0.3s ease-out;
}

/* Loading state for order button */
.order-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.order-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Horizontal Quantity Controls */
.quantity-controls.horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.quantity-controls.horizontal .quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.quantity-controls.horizontal .quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Additions Button */
.additions-button-container {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
}

.additions-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.additions-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

/* Additions Modal */
.additions-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.additions-modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.additions-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--accent-color);
    background: var(--secondary-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.additions-modal-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--primary-color);
    color: white;
}

.additions-modal-body {
    padding: 1.5rem;
}

.additions-modal .addition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(245, 230, 218, 0.3);
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-color);
}

.additions-modal .addition-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.additions-modal .addition-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.additions-modal .addition-details h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
}

.additions-modal .addition-details .arabic-name {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
}

.additions-modal .addition-details .price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.addition-order-item {
    background: rgba(245, 230, 218, 0.6);
    border-left: 4px solid var(--accent-color);
    margin-left: 1rem;
}

.addition-order-item .item-name {
    color: var(--primary-color);
    font-style: italic;
}

.addition-order-item .item-price {
    color: var(--primary-color);
}

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

/* Add to Cart Feedback Animation */
.add-to-cart-feedback {
    position: fixed;
    background: linear-gradient(135deg, #8b4513, #d2691e);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    animation: bounceUp 0.8s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes bounceUp {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -60%) scale(1.1);
        opacity: 1;
    }
    80% {
        transform: translate(-50%, -80%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -100%) scale(0.8);
        opacity: 0;
    }
}

/* Order Success Notification */
.order-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px var(--shadow-hover);
    z-index: 1000;
    font-weight: 600;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}