/* 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: #1a1a1a; color: #e0e0e0; line-height: 1.6; } body.rtl { direction: rtl; font-family: 'Poppins', sans-serif; } /* Contact Info Bar - Desktop */ .contact-bar { background-color: #1f1f1f; padding: 12px 20px; color: white; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 20px; border-bottom: 1px solid #333; } .contact-info { display: flex; align-items: center; gap: 30px; flex-shrink: 1; } .contact-info a, .contact-info span { color: #f0f0f0; 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: #4CAF50; } body.rtl .contact-info i { margin-right: 0; margin-left: 8px; } .clickable-phone { cursor: pointer; } .clickable-phone:hover { text-decoration: underline; } .language-switcher { display: flex; gap: 5px; flex-shrink: 0; } .lang-btn { background: rgba(255, 255, 255, 0.1); border: 1px solid #444; color: #f0f0f0; padding: 5px 10px; border-radius: 3px; cursor: pointer; font-size: 0.9rem; } .lang-btn.active { background: #4CAF50; color: white; font-weight: bold; border-color: #4CAF50; } .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); } .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: #222; box-shadow: 0 2px 10px rgba(0,0,0,0.3); margin-top: 0; } .logo { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; margin-bottom: 10px; cursor: pointer; border: 3px solid #4CAF50; } .restaurant-name { font-size: 2.2rem; color: #4CAF50; font-weight: 700; margin-bottom: 5px; animation: bounce 1s ease; } @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } .subtitle { color: #aaaaaa; font-size: 1.1rem; margin-bottom: 5px; } /* Navigation */ .navbar { background: #333; position: sticky; top: 0; left: 0; right: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); 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: white; 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: rgba(255, 255, 255, 0.1); transform: translateY(-2px); } .navbar i { margin-right: 8px; font-size: 0.9rem; color: #4CAF50; } body.rtl .navbar i { margin-right: 0; margin-left: 8px; } /* Arrow Buttons */ .arrow { background: #444; border: none; border-radius: 35%; font-size: 45px; color: #4CAF50; 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.4); transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease; } .arrow:hover { background: #4CAF50; 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: #aaaaaa; } .spinner { border: 4px solid rgba(255, 255, 255, 0.1); border-top: 4px solid #4CAF50; 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: #aaaaaa; } /* Category Section */ .category { margin-bottom: 40px; background: #222; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.2); scroll-margin-top: calc(80px + 60px + 20px); } .category h2 { color: #4CAF50; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #444; display: flex; align-items: center; font-size: 1.8rem; } .category h2 i { margin-right: 10px; color: #4CAF50; } 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: #2c2c2c; 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.2); border: 1px solid #3a3a3a; } body.rtl .menu-item { text-align: right; } .menu-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); } .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: #333; } .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: #4CAF50; font-size: 1.1rem; } .item-desc { color: #b0b0b0; font-size: 0.9rem; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .type-options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; } .type-option { border: 1px solid #555; 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: #333; color: #e0e0e0; } .type-option:hover { border-color: #4CAF50; } .type-option.selected { background: #4CAF50; color: white; border-color: #4CAF50; } .size-options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; } .size-option { border: 1px solid #555; 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: #333; color: #e0e0e0; } .size-option:hover { border-color: #4CAF50; } .size-option.selected { background: #4CAF50; color: white; border-color: #4CAF50; } .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: #4CAF50; 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: #4CAF50; 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: #398e3c; } .quantity-input { width: 50px; height: 30px; text-align: center; margin: 0 5px; border: 1px solid #555; border-radius: 4px; background-color: #333; color: #e0e0e0; -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: #4CAF50; 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: #398e3c; } .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: #2c2c2c; width: 90%; max-width: 500px; border-radius: 10px; z-index: 1001; display: none; box-shadow: 0 5px 15px rgba(0,0,0,0.4); max-height: 80vh; overflow-y: auto; opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; border: 1px solid #444; } .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 #444; padding-bottom: 15px; } .modal-header h3 { color: #4CAF50; font-size: 1.3rem; } .close-modal { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #aaa; 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: #444; color: #eee; } .modal-body { flex: 1; overflow-y: auto; } .customization-section { margin-bottom: 20px; } .customization-section h4 { color: #e0e0e0; 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 #555; border-radius: 5px; cursor: pointer; transition: all 0.2s ease; user-select: none; background-color: #333; color: #e0e0e0; } .option-item:hover { border-color: #4CAF50; background-color: #404040; } .option-item.selected { border-color: #4CAF50; background: #398e3c; color: white; } .option-item input[type="checkbox"] { margin-right: 8px; accent-color: #4CAF50; } body.rtl .option-item input[type="checkbox"] { margin-right: 0; margin-left: 8px; } .option-price { margin-left: auto; font-size: 0.9rem; color: #4CAF50; 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: #e0e0e0; font-size: 1.1rem; } .special-notes textarea { width: 100%; padding: 10px; border: 1px solid #555; border-radius: 5px; min-height: 80px; resize: vertical; font-family: 'Poppins', sans-serif; background-color: #333; color: #e0e0e0; } .modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; border-top: 1px solid #444; padding-top: 15px; } .cancel-btn { background: #555; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: 500; transition: background 0.2s ease; } .cancel-btn:hover { background: #666; } .confirm-btn { background: #4CAF50; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: 500; transition: background 0.2s ease; } .confirm-btn:hover { background: #398e3c; } /* Cart Button */ .cart-button { position: fixed; left: 20px; bottom: 20px; width: 60px; height: 60px; background: #4CAF50; color: white; border: none; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.4); 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: #398e3c; transform: scale(1.1); } /* WhatsApp Button */ .whatsapp-button { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; background: #25D366; 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.4); 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; transform: scale(1.1); } .cart-count { position: absolute; top: -5px; right: -5px; background: #B71C1C; 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: #222; box-shadow: 2px 0 15px rgba(0,0,0,0.4); z-index: 1000; display: flex; flex-direction: column; transition: left 0.3s ease; border-left: 1px solid #444; } body.rtl .cart-sidebar { left: auto; right: -400px; transition: right 0.3s ease; border-left: none; border-right: 1px solid #444; } .cart-sidebar.open { left: 0; } body.rtl .cart-sidebar.open { left: auto; right: 0; } .cart-header { padding: 20px; border-bottom: 1px solid #444; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; } .cart-header h3 { color: #4CAF50; font-size: 1.4rem; } .close-cart { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #aaa; transition: color 0.2s ease; } .close-cart:hover { color: #e0e0e0; } .cart-items { flex: 1; overflow-y: auto; padding: 20px; } .cart-empty-message { text-align: center; padding: 20px; color: #aaaaaa; } .cart-item { display: flex; justify-content: space-between; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #444; 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: #e0e0e0; font-size: 1rem; } .cart-item-details { color: #b0b0b0; font-size: 0.85rem; margin-top: 3px; line-height: 1.3; } .cart-item-price { font-weight: 700; color: #4CAF50; 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: #4CAF50; color: white; border: none; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; } .cart-item-quantity .quantity-btn:hover { background: #398e3c; } .cart-item-quantity .quantity-display { min-width: 30px; text-align: center; color: #e0e0e0; } .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 #444; flex-shrink: 0; } .cart-total { text-align: right; margin-bottom: 20px; font-size: 1.2rem; color: #e0e0e0; font-weight: bold; } body.rtl .cart-total { text-align: left; } .cart-total strong { color: #4CAF50; } .cart-total span { font-weight: bold; color: #4CAF50; } .cart-actions { display: flex; flex-direction: column; gap: 10px; } .continue-btn { background: #555; 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: #666; } .checkout-btn { background: #25D366; 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; } .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.7); 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: #4CAF50; color: white; padding: 12px 20px; border-radius: 5px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); 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.95); 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: #2c2c2c; 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 #444; } .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: #e0e0e0; } .item-popup-close { position: absolute; top: 15px; right: 15px; background: rgba(76, 175, 80, 0.9); /* Solid green 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.3); } .item-popup-close:hover { background: rgba(76, 175, 80, 1); /* Fully opaque green 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: #3b1b1b; border-radius: 8px; margin: 20px; border: 1px solid #7a2828; color: #e57373; } .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: #aaa; } .password-container { position: relative; } .footer { background-color: #222; color: #fff; 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: #fff; margin: 0 10px; font-size: 20px; transition: color 0.3s; } .footer .social-links a:hover { color: #ffcc00; /* or your brand color */ }