/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fffff0; /* Changed */
    color: #1a1a1a; /* Changed */
    line-height: 1.6;
}

body.rtl {
    direction: rtl;
    font-family: 'Poppins', sans-serif;
}

/* Contact Info Bar - Desktop */
.contact-bar {
    background-color: #f0f0e0; /* Changed */
    padding: 12px 20px;
    color: #1a1a1a; /* Changed */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    border-bottom: 1px solid #ddd; /* Changed */
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 1;
}

.contact-info a,
.contact-info span {
    color: #333; /* Changed */
    text-decoration: none;
    display: flex;
    align-items: center;
}

@media (min-width: 769px) {
    .contact-info a,
    .contact-info span {
        white-space: nowrap;
    }
}

.contact-info i {
    margin-right: 8px;
    color: #e20000; /* Main color */
}

body.rtl .contact-info i {
    margin-right: 0;
    margin-left: 8px;
}

.clickable-phone {
    cursor: pointer;
}

.clickable-phone:hover {
    text-decoration: underline;
    color: #fcae00; /* Secondary color */
}

.language-switcher {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.lang-btn {
    background: rgba(0, 0, 0, 0.05); /* Changed */
    border: 1px solid #ccc; /* Changed */
    color: #333; /* Changed */
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
}

.lang-btn.active {
    background: #e20000; /* Main color */
    color: white;
    font-weight: bold;
    border-color: #e20000; /* Main color */
}

.admin-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-color: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

body.rtl .admin-link i {
    margin-right: 0;
    margin-left: 5px;
}

.admin-link:hover {
    background-color: rgba(0,0,0,0.9);
    color: #fcae00; /* Secondary color */
}

.admin-link i {
    margin-right: 5px;
}

.admin-link-hidden {
    display: none;
    pointer-events: none;
    opacity: 0;
}

@media (max-width: 768px) {
    .contact-bar {
        flex-direction: column;
        gap: 8px;
        padding: 10px 0;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        overflow-x: hidden;
    }

    .contact-info {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        align-items: center;
        overflow-x: hidden;
    }

    .contact-info > a,
    .contact-info > span {
        width: fit-content;
        max-width: 95%;
        margin: 0 auto;
        padding: 2px 0;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
        white-space: normal;
    }

    .language-switcher {
        width: 100%;
        justify-content: center;
        gap: 5px;
        margin: 0;
        padding: 0;
    }

    .admin-link-hidden {
        display: none;
        pointer-events: none;
        opacity: 0;
    }
}

/* Header */
.header {
    text-align: center;
    padding: 15px 10px;
    background: #ffffff; /* Changed */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Changed */
    margin-top: 0;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    cursor: pointer;
    border: 3px solid #e20000; /* Main color */
}

.restaurant-name {
    font-size: 2.2rem;
    color: #e20000; /* Main color */
    font-weight: 700;
    margin-bottom: 5px;
    animation: bounce 1s ease;
}

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

.subtitle {
    color: #666666; /* Changed */
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Navigation */
.navbar {
    background: #eeeeee; /* Changed */
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Changed */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    width: 100%;
    transition: top 0.3s ease, box-shadow 0.3s ease;
}

.nav-list {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: scroll;
    white-space: nowrap;
    width: 80%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.navbar li {
    margin: 0 10px;
    flex-shrink: 0;
}

.navbar a {
    color: #333; /* Changed */
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.navbar a:hover,
.navbar a.active-category {
    background: #fcae00; /* Secondary color */
    transform: translateY(-2px);
    color: white; /* Changed to white for better contrast on secondary color */
}

.navbar i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: #e20000; /* Main color */
}

body.rtl .navbar i {
    margin-right: 0;
    margin-left: 8px;
}

/* Arrow Buttons */
.arrow {
    background: #ccc; /* Changed */
    border: none;
    border-radius: 35%;
    font-size: 45px;
    color: #e20000; /* Main color */
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 110;
    padding: 5px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Changed */
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.arrow:hover {
    background: #fcae00; /* Secondary color */
    color: white;
}

.left {
    left: 10px;
}

.right {
    right: 10px;
}

body.rtl .left {
    left: auto;
    right: 10px;
}

body.rtl .right {
    left: 10px;
    right: auto;
}

/* Menu Container */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.loading-indicator {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: #666666; /* Changed */
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1); /* Changed */
    border-top: 4px solid #e20000; /* Main color */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.no-items-message {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: #666666; /* Changed */
}

/* Category Section */
.category {
    margin-bottom: 40px;
    background: #ffffff; /* Changed */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Changed */
    scroll-margin-top: calc(80px + 60px + 20px);
}

.category h2 {
    color: #e20000; /* Main color */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd; /* Changed */
    display: flex;
    align-items: center;
    font-size: 1.8rem;
}

.category h2 i {
    margin-right: 10px;
    color: #e20000; /* Main color */
}

body.rtl .category h2 i {
    margin-right: 0;
    margin-left: 10px;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Menu Item */
.menu-item {
    padding: 15px;
    border-radius: 8px;
    background: #f8f8f8; /* Changed */
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Changed */
    border: 1px solid #eee; /* Changed */
}

body.rtl .menu-item {
    text-align: right;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Changed */
}

.item-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ddd; /* Changed */
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-image:hover {
    transform: scale(1.05);
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #e20000; /* Main color */
    font-size: 1.1rem;
}

.item-desc {
    color: #666666; /* Changed */
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
     overflow: visible;
    white-space: normal;
}

.type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.type-option {
    border: 1px solid #ccc; /* Changed */
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
    background-color: #eee; /* Changed */
    color: #333; /* Changed */
}

.type-option:hover {
    border-color: #fcae00; /* Secondary color */
    color: #fcae00; /* Secondary color on hover */
}

.type-option.selected {
    background: #fcae00; /* Secondary color */
    color: white;
    border-color: #fcae00; /* Secondary color */
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.size-option {
    border: 1px solid #ccc; /* Changed */
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
    background-color: #eee; /* Changed */
    color: #333; /* Changed */
}

.size-option:hover {
    border-color: #fcae00; /* Secondary color */
    color: #fcae00; /* Secondary color on hover */
}

.size-option.selected {
    background: #fcae00; /* Secondary color */
    color: white;
    border-color: #fcae00; /* Secondary color */
}

.size-price {
    font-weight: 600;
    margin-top: 3px;
    color: inherit;
}

/* Price and Quantity Controls Container */
.item-controls {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-price {
    font-weight: 700;
    color: #e20000; /* Main color */
    font-size: 1.1rem;
    text-align: center;
    margin: 10px 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background: #e20000; /* Main color */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background 0.2s ease;
}

.quantity-btn:hover {
    background: #fcae00; /* Secondary color */
}

.quantity-input {
    width: 50px;
    height: 30px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #ccc; /* Changed */
    border-radius: 4px;
    background-color: #fff; /* Changed */
    color: #333; /* Changed */
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button */
.add-to-cart-btn {
    background: #e20000; /* Main color */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: background 0.3s;
    user-select: none;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background: #fcae00; /* Secondary color */
}

.add-to-cart-btn i {
    margin-right: 8px;
}

body.rtl .add-to-cart-btn i {
    margin-right: 0;
    margin-left: 8px;
}

/* Customization Modal */
.customization-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff; /* Changed */
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    z-index: 1001;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Changed */
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid #ccc; /* Changed */
}

.customization-modal.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.customization-modal:not(.show) {
    transform: translate(-50%, -50%) scale(0.95);
}

.modal-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc; /* Changed */
    padding-bottom: 15px;
}

.modal-header h3 {
    color: #e20000; /* Main color */
    font-size: 1.3rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666; /* Changed */
    transition: all 0.2s ease;
    padding: 5px;
    line-height: 1;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background-color: #eee; /* Changed */
    color: #333; /* Changed */
}

.modal-body {
    flex: 1;
    overflow-y: auto;
}

.customization-section {
    margin-bottom: 20px;
}

.customization-section h4 {
    color: #333; /* Changed */
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc; /* Changed */
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    background-color: #eee; /* Changed */
    color: #333; /* Changed */
}

.option-item:hover {
    border-color: #fcae00; /* Secondary color */
    background-color: #fce7b0; /* Lighter secondary color on hover */
    color: #333; /* Ensure text remains readable */
}

.option-item.selected {
    border-color: #fcae00; /* Secondary color */
    background: #fcae00; /* Secondary color */
    color: white;
}

.option-item input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #e20000; /* Main color */
}

body.rtl .option-item input[type="checkbox"] {
    margin-right: 0;
    margin-left: 8px;
}

.option-price {
    margin-left: auto;
    font-size: 0.9rem;
    color: #e20000; /* Main color */
    font-weight: 500;
}

body.rtl .option-price {
    margin-left: 0;
    margin-right: auto;
}

.special-notes {
    margin-top: 20px;
}

.special-notes h4 {
    margin-bottom: 10px;
    color: #333; /* Changed */
    font-size: 1.1rem;
}

.special-notes textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc; /* Changed */
    border-radius: 5px;
    min-height: 80px;
    resize: vertical;
    font-family: 'Poppins', sans-serif;
    background-color: #fff; /* Changed */
    color: #1a1a1a; /* Changed */
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid #ccc; /* Changed */
    padding-top: 15px;
}

.cancel-btn {
    background: #999; /* Changed */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.cancel-btn:hover {
    background: #b0b0b0; /* Changed */
}

.confirm-btn {
    background: #e20000; /* Main color */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.confirm-btn:hover {
    background: #fcae00; /* Secondary color */
}

/* Cart Button */
.cart-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #e20000; /* Main color */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Changed */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    z-index: 100;
    user-select: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

body.rtl .cart-button {
    right: 20px;
    left: auto;
}

.cart-button:hover {
    background: #fcae00; /* Secondary color */
    transform: scale(1.1);
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #25D366; /* Kept WhatsApp green, as requested no change */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Changed */
    z-index: 100;
    user-select: none;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

body.rtl .whatsapp-button {
    left: 20px;
    right: auto;
}

.whatsapp-button:hover {
    background: #1DA851; /* Kept WhatsApp darker green, as requested no change */
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e20000; /* Main color */
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    pointer-events: none;
}

body.rtl .cart-count {
    right: auto;
    left: -5px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 350px;
    max-width: 90%;
    height: 100%;
    background: #ffffff; /* Changed */
    box-shadow: 2px 0 15px rgba(0,0,0,0.2); /* Changed */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
    border-left: 1px solid #ccc; /* Changed */
}

body.rtl .cart-sidebar {
    left: auto;
    right: -400px;
    transition: right 0.3s ease;
    border-left: none;
    border-right: 1px solid #ccc; /* Changed */
}

.cart-sidebar.open {
    left: 0;
}

body.rtl .cart-sidebar.open {
    left: auto;
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #ccc; /* Changed */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-header h3 {
    color: #e20000; /* Main color */
    font-size: 1.4rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666; /* Changed */
    transition: color 0.2s ease;
}

.close-cart:hover {
    color: #333; /* Changed */
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty-message {
    text-align: center;
    padding: 20px;
    color: #666; /* Changed */
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc; /* Changed */
    align-items: flex-start;
    text-align: left;
}
body.rtl .cart-item {
    text-align: right;
}

.cart-item-info {
    flex: 1;
    margin-right: 10px;
}
body.rtl .cart-item-info {
    margin-right: 0;
    margin-left: 10px;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #1a1a1a; /* Changed */
    font-size: 1rem;
}

.cart-item-details {
    color: #666; /* Changed */
    font-size: 0.85rem;
    margin-top: 3px;
    line-height: 1.3;
}

.cart-item-price {
    font-weight: 700;
    color: #e20000; /* Main color */
    margin-top: 5px;
    flex-shrink: 0;
    margin-left: auto;
    font-size: 1rem;
}
body.rtl .cart-item-price {
    margin-left: 0;
    margin-right: auto;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 5px;
}

.cart-item-quantity .quantity-btn {
    width: 25px;
    height: 25px;
    background: #e20000; /* Main color */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-quantity .quantity-btn:hover {
    background: #fcae00; /* Secondary color */
}

.cart-item-quantity .quantity-display {
    min-width: 30px;
    text-align: center;
    color: #1a1a1a; /* Changed */
}

.remove-item {
    background: #D32F2F;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 0.9rem;
    padding: 6px 8px;
    transition: background 0.2s ease;
}

.remove-item:hover {
    background: #B71C1C;
}
body.rtl .remove-item {
    margin-left: 0;
    margin-right: 10px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #ccc; /* Changed */
    flex-shrink: 0;
}

.cart-total {
    text-align: right;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #1a1a1a; /* Changed */
    font-weight: bold;
}
body.rtl .cart-total {
    text-align: left;
}

.cart-total strong {
    color: #e20000; /* Main color */
}

.cart-total span {
    font-weight: bold;
    color: #e20000; /* Main color */
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.continue-btn {
    background: #999; /* Changed */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
    transition: background 0.2s ease;
}

.continue-btn:hover {
    background: #b0b0b0; /* Changed */
}

.checkout-btn {
    background: #25D366; /* Kept WhatsApp green */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    text-decoration: none;
    transition: background 0.2s ease;
}

.checkout-btn:hover {
    background: #1DA851; /* Kept WhatsApp darker green */
}

.checkout-btn i {
    margin-right: 8px;
}
body.rtl .checkout-btn i {
    margin-right: 0;
    margin-left: 8px;
}

.checkout-btn.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #666;
}

/* Overlay for Modals/Sidebars */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Changed */
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Notification Toast */
.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #e20000; /* Main color */
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); /* Changed */
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    user-select: none;
    white-space: nowrap;
}
.notification.error {
    background-color: #D32F2F;
}
.notification.show {
    opacity: 1;
    bottom: 40px;
}

/* For items without images */
.menu-item.no-image-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
}

body.rtl .menu-item.no-image-item {
    flex-direction: column;
    align-items: flex-end;
}

.menu-item.no-image-item .item-info {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.menu-item.no-image-item .item-name,
.menu-item.no-image-item .item-desc,
.menu-item.no-image-item .item-price,
.menu-item.no-image-item .quantity-control,
.menu-item.no-image-item .add-to-cart-btn {
    text-align: inherit;
    align-self: flex-start;
}
body.rtl .menu-item.no-image-item .item-name,
body.rtl .menu-item.no-image-item .item-desc,
body.rtl .menu-item.no-image-item .item-price,
body.rtl .menu-item.no-image-item .quantity-control,
body.rtl .menu-item.no-image-item .add-to-cart-btn {
    align-self: flex-end;
}

/* Item Popup Modal */
.item-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Changed */
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.item-popup-modal.show {
    opacity: 1;
    pointer-events: all;
}

.item-popup-content {
    background: #ffffff; /* Changed */
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid #ccc; /* Changed */
}

.item-popup-modal.show .item-popup-content {
    transform: scale(1);
}

.item-popup-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.item-popup-body {
    padding: 20px;
    color: #1a1a1a; /* Changed */
}

.item-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(226, 0, 0, 0.9); /* Main color with slight transparency */
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Changed */

}
.item-popup-close:hover {
    background: #e20000; /* Fully opaque main color on hover */
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .menu-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .menu-item {
        padding: 12px;
        flex-direction: column;
        height: auto;
    }

    .item-image-container {
        height: 150px;
        margin-bottom: 8px;
    }

    .item-info {
        padding: 0;
        text-align: center;
    }

    .item-name {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }

    .item-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        margin-bottom: 10px;
    }

    .type-options, .size-options {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .type-option, .size-option {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .quantity-control {
        justify-content: center;
        margin-bottom: 10px;
    }

    .add-to-cart-btn {
        padding: 8px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .menu-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .menu-item {
        padding: 10px;
    }

    .item-image-container {
        height: 120px;
    }

    .add-to-cart-btn {
        font-size: 0.75rem;
        padding: 6px;
    }

    .options-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .option-item {
        padding: 8px;
        font-size: 0.7rem;
    }
}

/* Fix for customization modal on mobile */
@media (max-width: 768px) {
    .customization-modal {
        width: 95%;
        max-width: none;
        max-height: 90vh !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .modal-content {
        max-height: calc(90vh - 40px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .option-item {
        padding: 12px;
        font-size: 0.9rem;
    }

    .option-item label {
        margin-left: 8px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
        margin: 5px 0;
    }
}

/* Error Message Styles */
.error-message {
    text-align: center;
    padding: 50px;
    background-color: #fcebeb; /* Changed */
    border-radius: 8px;
    margin: 20px;
    border: 1px solid #f0a8a8; /* Changed */
    color: #cc0000; /* Changed */
}

.error-message p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Login Error Message */
.login-error {
    color: #D32F2F;
    font-size: 0.9rem;
    margin-top: 10px;
    display: none;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666; /* Changed */
}

.password-container {
    position: relative;
}
.footer {
    background-color: #f0f0e0; /* Changed */
    color: #333; /* Changed */
    text-align: center;
    padding: 20px 10px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1000px;
    margin: auto;
}

.footer .social-links {
    margin-top: 10px;
}

.footer .social-links a {
    color: #333; /* Changed */
    margin: 0 10px;
    font-size: 20px;
    transition: color 0.3s;
}

.footer .social-links a:hover {
    color: #fcae00; /* Secondary color */
}