/* Online Orders Specific Styles */

html[dir="rtl"] .logo {
    left: auto;
    right: 20px;
}

/* Mobile Navigation Overrides for Orders Page */
@media (max-width: 768px) {
    /* Language toggle positioning */
    .language-toggle {
        position: absolute;
        top: 15px;
        right: 20px;
        left: auto;
        margin: 0;
        z-index: 1001;
    }
    
    /* Arabic version - top left */
    html[dir="rtl"] .language-toggle {
        position: absolute;
        top: 15px;
        left: 20px;
        right: auto;
        margin: 0;
        z-index: 1001;
    }
    
    /* Mobile navigation panel */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: #F5F3F0;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    /* RTL Mobile Navigation Fix */
    html[dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        transition: right 0.3s ease;
    }

    html[dir="rtl"] .nav-menu.active {
        left: auto;
        right: 0;
    }
    
    /* Hamburger button positioning */
    .hamburger {
        position: absolute !important;
        right: 20px;
        left: auto;
        top: 15px;
        z-index: 1002;
    }
    
    html[dir="rtl"] .hamburger {
        right: auto !important;
        left: 20px !important;
    }
}

/* Cart Styles */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: none;
}

.cart-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2C2C2C, #2c2c2c);
    border: none;
    border-radius: 50%;
    color: #F5F3F0;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cart-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
}



.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #F5F3F0;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #2C2C2C;
}

.cart-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2C2C2C, #2c2c2c);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #F5F3F0;
    font-size: 1.2rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.cart-item-price {
    color: #382b0b;
    font-weight: 600;
    font-size: 0.9rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #382b0b;
    color: white;
    border-color: #382b0b;
}

.quantity {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.remove-item {
    background: #ff4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #cc0000;
}

.cart-summary {
    padding: 1rem 2rem;
    border-top: 1px solid #e8e8e8;
    background: #F5F3F0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2C2C2C;
    border-top: 1px solid #e8e8e8;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.cart-actions {
    padding: 1rem 2rem 2rem;
}

.order-now-btn {
    width: 100%;
    background: linear-gradient(135deg, #2C2C2C, #2c2c2c);
    color: #F5F3F0;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-now-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.order-now-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}


/* Cart Display Modal Styles */
.cart-modal-content {
    background: #F5F3F0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    border: 2px solid #2C2C2C;
}

.cart-modal-header {
    padding: 2rem;
    background: linear-gradient(135deg, #2C2C2C, #2c2c2c);
    color: #F5F3F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-header h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-cart-modal {
    background: none;
    border: none;
    color: #F5F3F0;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart-modal:hover {
    background: rgba(245, 243, 240, 0.2);
}

.cart-modal-body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-modal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #F5F3F0;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.cart-modal-item:hover {
    background: #f9f9f9;
    border-color: #382b0b;
}

.cart-modal-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2C2C2C, #2c2c2c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F5F3F0;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cart-modal-item-info {
    flex: 1;
}

.cart-modal-item-name {
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.cart-modal-item-price {
    color: #382b0b;
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-modal-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.cart-modal-quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cart-modal-quantity-btn:hover {
    background: #382b0b;
    color: white;
    border-color: #382b0b;
}

.cart-modal-quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.cart-modal-item-total {
    font-weight: 700;
    color: #2C2C2C;
    font-size: 1.1rem;
    min-width: 80px;
    text-align: right;
}

.cart-modal-remove-btn {
    background: #ff4444;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cart-modal-remove-btn:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.cart-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e8e8e8;
    background: #F5F3F0;
}

.cart-total-display {
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.total-row.main-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2C2C2C;
    border-top: 2px solid #382b0b;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.cart-modal-actions {
    display: flex;
    gap: 1rem;
}

.continue-shopping-btn {
    flex: 1;
    background: transparent;
    color: #2C2C2C;
    border: 2px solid #2C2C2C;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
    background: #2C2C2C;
    color: #F5F3F0;
}

.proceed-to-checkout-btn {
    flex: 1;
    background: linear-gradient(135deg, #2C2C2C, #2c2c2c);
    color: #F5F3F0;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.proceed-to-checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.proceed-to-checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.empty-cart-modal {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-cart-modal i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: #382b0b;
}

.empty-cart-modal h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2C2C2C;
}

.empty-cart-modal p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Cart Preview Styles */
.cart-preview {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 300px;
    animation: slideDown 0.3s ease;
}

.cart-preview-content {
    padding: 1rem;
    background: #F5F3F0;
    border: 2px solid #2C2C2C;
}

.cart-preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.cart-preview-header i {
    color: #382b0b;
}

.cart-preview-items {
    margin-bottom: 0.75rem;
}

.cart-preview-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-preview-item:last-child {
    border-bottom: none;
}

.preview-item-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2C2C2C, #2c2c2c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F5F3F0;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.preview-item-info {
    flex: 1;
}

.preview-item-name {
    font-weight: 600;
    color: #2C2C2C;
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
}

.preview-item-quantity {
    color: #2C2C2C;
    font-size: 0.75rem;
}

.preview-more {
    text-align: center;
    color: #382b0b;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5rem 0;
}

.cart-preview-total {
    text-align: center;
    font-weight: 700;
    color: #2C2C2C;
    font-size: 1rem;
    padding-top: 0.5rem;
    border-top: 2px solid #382b0b;
}

/* RTL Support for Cart Preview */
html[dir="rtl"] .cart-preview {
    right: auto;
    left: 30px;
}

/* Cart Preview Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Add to Cart Feedback Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

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

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

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

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

/* Order Header */
.order-header {
    padding: 120px 0 40px;
    background: #2C2C2C;
    color: #F5F3F0;
    text-align: center;
}

.order-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.order-header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.order-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.info-item .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.info-item .value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Order Options */
.order-options {
    padding: 40px 0;
    background: #F5F3F0;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.option-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.option-card.active {
    border-color: #472811;
    background: #f5f5dc;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-header i {
    font-size: 2rem;
    color: #472811;
}

.option-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #472811;
}

.option-details p {
    margin-bottom: 0.5rem;
    color: #666;
}

.change-btn {
    background: transparent;
    color: #2C2C2C;
    border: 1px solid #2C2C2C;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.change-btn:hover {
    background: #2C2C2C;
    color: white;
}

/* Menu Section */
.menu-section {
    padding: 40px 0;
    background: #F5F3F0;
}

.menu-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #2C2C2C;
    color: #F5F3F0;
}

.tab-btn.active {
    background: #2C2C2C;
    color: #F5F3F0;
}

/* Category Content */
.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

/* Menu Items */
.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.menu-item {
    background: #F5F3F0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #382b0b;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2C2C2C, #382b0b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.item-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #2C2C2C;
    line-height: 1.3;
    flex: 1;
}

.item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #382b0b;
    white-space: nowrap;
    background: linear-gradient(135deg, #382b0b, #DAA520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.item-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    flex: 1;
}

.add-to-cart-btn {
    width: 100%;
    background: #2C2C2C;
    color: #F5F3F0;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: #1A1A1A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.item-info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.item-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #472811;
}

.add-to-cart-btn {
    background: #472811;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-to-cart-btn:hover {
    background: #2C2C2C;
    transform: translateY(-2px);
}






.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: #472811;
    font-weight: 500;
}

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

.quantity-btn {
    background: #472811;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #2C2C2C;
}

.quantity {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    background: #dc3545;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #c82333;
}

/* Cart Summary */
.cart-summary {
    border-top: 2px solid #ddd;
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 600;
    color: #472811;
    border-top: 1px solid #ddd;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.order-now-btn {
    width: 100%;
    background: #472811;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-now-btn:hover:not(:disabled) {
    background: #2C2C2C;
    transform: translateY(-2px);
}

.order-now-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    color: #472811;
    margin: 0;
}

.close {
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #472811;
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #472811;
}

.order-summary {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.order-summary h3 {
    font-family: 'Playfair Display', serif;
    color: #472811;
    margin-bottom: 1rem;
}

.modal-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.modal-cart-item:last-child {
    border-bottom: none;
}

.modal-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
}

.submit-order-btn {
    width: 100%;
    background: #472811;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.submit-order-btn:hover {
    background: #2C2C2C;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .menu-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .menu-items {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.25rem;
    }
    
    
    .item-name {
        font-size: 1.3rem;
    }
    
    .item-price {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .order-header {
        padding: 100px 0 40px;
    }
    
    .order-header h1 {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .order-header p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .order-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Category tabs mobile optimization */
    .category-tabs {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
        scrollbar-width: thin;
        scrollbar-color: #654321 #f0f0f0;
    }

    .category-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .category-tabs::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 2px;
    }

    .category-tabs::-webkit-scrollbar-thumb {
        background: #654321;
        border-radius: 2px;
    }
    
    .tab-btn {
        flex-shrink: 0;
        min-width: 120px;
        padding: 10px 12px;
        font-size: 0.85rem;
        min-height: 45px;
        border-radius: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    /* RTL adjustments for category tabs */
    html[dir="rtl"] .category-tabs {
        direction: rtl;
    }
    
    .menu-items {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .item-content {
        padding: 1.5rem;
    }
    
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .item-name {
        font-size: 1.25rem;
    }
    
    .item-price {
        font-size: 1.1rem;
    }
    
    
    .floating-cart {
        bottom: 20px;
        right: 20px;
    }
    
    .cart-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        min-width: 20px;
    }
    
    /* Cart Modal Responsive */
    .cart-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cart-modal-header {
        padding: 1.5rem;
    }
    
    .cart-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .cart-modal-body {
        padding: 1rem;
        max-height: 300px;
    }
    
    .cart-modal-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .cart-modal-item-info {
        min-width: 120px;
    }
    
    .cart-modal-quantity-controls {
        margin: 0.5rem 0;
    }
    
    .cart-modal-footer {
        padding: 1rem;
    }
    
    .cart-modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .continue-shopping-btn,
    .proceed-to-checkout-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    /* Cart Preview Mobile */
    .cart-preview {
        max-width: 280px;
        right: 15px;
        top: 100px;
    }
    
    html[dir="rtl"] .cart-preview {
        right: auto;
        left: 15px;
    }
    
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        justify-content: center;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Cart Preview Tablet */
    .cart-preview {
        top: 110px !important;
        right: 20px !important;
        max-width: 280px !important;
    }
    
    .menu-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .item-image {
        width: 100%;
        height: 200px;
        margin: 0 auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
}

/* Medium mobile devices (481px - 600px) */
@media (max-width: 600px) and (min-width: 481px) {
    .order-header h1 {
        font-size: 2.5rem;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .menu-item {
        padding: 1.2rem;
    }
    
    .item-name {
        font-size: 1rem;
    }
    
    .item-price {
        font-size: 0.9rem;
    }
    
    .add-to-cart-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .order-info {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .order-header {
        padding: 80px 0 25px;
    }
    
    .order-header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.6rem;
    }
    
    .order-header p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Category tabs for very small screens */
    .category-tabs {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 0 0.5rem;
        max-width: 350px;
        margin: 0 auto 1.5rem;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-height: 48px;
        justify-content: flex-start;
        border-radius: 15px;
    }
    
    /* RTL adjustments for small screens */
    html[dir="rtl"] .tab-btn {
        justify-content: flex-end;
    }
    
    .order-header p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .order-info {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .info-item {
        text-align: center;
    }
    
    .info-item .label {
        font-size: 0.85rem;
    }
    
    .info-item .value {
        font-size: 0.9rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .option-card {
        padding: 1.2rem;
    }
    
    .option-header h3 {
        font-size: 1.2rem;
    }
    
    .option-details p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .category-tabs {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .menu-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .item-name {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .item-price {
        font-size: 0.9rem;
        align-self: flex-start;
    }
    
    .menu-item p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .add-to-cart-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* Floating cart mobile */
    .floating-cart {
        bottom: 20px;
        right: 20px;
    }
    
    .cart-toggle {
        width: 50px;
        height: 50px;
    }
    
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        min-width: 20px;
    }
    
    /* Modal mobile optimization */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.2rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .submit-order-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* Cart modal mobile */
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .cart-item-info {
        width: 100%;
    }
    
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .cart-summary {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .summary-row {
        font-size: 0.9rem;
    }
    
    .summary-row.total {
        font-size: 1.1rem;
    }
}

/* Animation for cart updates */
@keyframes cartUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-updated {
    animation: cartUpdate 0.3s ease;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #472811;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

