﻿:root {
    --primary: #1a1a4e;
    --accent: #e86a10;
    --accent-hover: #cc5c0d;
    --bg: #ebebeb;
    --white: #fff;
    --text: #616161;
    --text-dark: #293531;
    --text-muted: #8a8a8a;
    --border: #eaeaea;
    --footer-bg: #3c3c3c;
    --footer-bottom: #202020;
    --radius: 10px;
    --radius-sm: 8px;
    --font: 'Tajawal', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 14px; direction: rtl; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }

/* Header */
.eld-header { background: var(--white); padding: 10px 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.burger-btn { background: none; border: none; cursor: pointer; color: var(--text-dark); padding: 6px; display: flex; align-items: center; justify-content: center; }
.burger-btn:hover { color: var(--accent); }
.eld-logo { display: flex; align-items: center; gap: 8px; }
.eld-logo-img { height: 40px; width: auto; }
.eld-logo-text { font-family: 'Almarai', 'Tajawal', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.lang-toggle { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); cursor: pointer; background: none; border: none; font-family: var(--font); }
.lang-toggle:hover { color: var(--accent); }
.cart-circle { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--accent); border-radius: 50%; transition: background 0.2s; }
.cart-circle:hover { background: var(--accent-hover); }
.cart-circle-badge { position: absolute; top: -3px; right: -3px; background: var(--primary); color: #fff; font-size: 0.6rem; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--white); }

/* Categories Bar */
.cat-bar { background: var(--primary); padding: 8px 0; position: sticky; top: 60px; z-index: 999; }
.cat-bar-inner { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; padding: 0 4px; -webkit-overflow-scrolling: touch; }
.cat-bar-inner::-webkit-scrollbar { display: none; }
.cat-pill { padding: 6px 16px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); transition: all 0.2s; border: 1px solid rgba(255,255,255,0.2); flex-shrink: 0; }
.cat-pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.drawer-overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: var(--white); z-index: 2001; transition: right 0.3s ease; overflow-y: auto; box-shadow: -4px 0 20px rgba(0,0,0,0.15); }
.drawer.open { right: 0; }
.drawer-header { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid var(--border); background: var(--primary); color: #fff; }
.drawer-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.drawer-title { flex: 1; font-weight: 700; font-size: 0.9rem; font-family: 'Almarai', 'Tajawal', sans-serif; }
.drawer-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 0 4px; line-height: 1; }
.drawer-links { padding: 8px 0; }
.drawer-link { display: flex; align-items: center; gap: 8px; padding: 12px 20px; font-size: 0.88rem; font-weight: 500; color: var(--text-dark); transition: all 0.2s; border-bottom: 1px solid #f5f5f5; }
.drawer-link:hover { background: var(--bg); color: var(--accent); }
.drawer-info { cursor: default; }
.drawer-info:hover { background: transparent; color: var(--text-dark); }
.drawer-icon { font-size: 1rem; }
.drawer-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* Floating Cart */
.floating-cart { display: none; position: fixed; bottom: 20px; left: 20px; z-index: 999; background: var(--accent); color: #fff; width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 4px 16px rgba(0,0,0,0.3); text-decoration: none; transition: background 0.2s; align-items: center; justify-content: center; }
.floating-cart:hover { background: var(--accent-hover); color: #fff; }
.fc-badge { position: absolute; top: -2px; right: -2px; background: var(--primary); color: #fff; font-size: 0.6rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--white); }

/* Section */
.section-block { padding: 1.2rem 0 0.5rem; }
.section-header { margin-bottom: 0.8rem; }
.section-heading { font-size: 1rem; font-weight: 700; color: var(--accent); padding-bottom: 0.3rem; border-bottom: 2px solid var(--accent); display: inline-block; }

/* Product Grid */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 991px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }

/* Food Card */
.food-card { background: var(--white); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform 0.15s; display: flex; flex-direction: column; height: 100%; }
.food-card:hover { transform: translateY(-2px); }
.food-card-hidden { display: none; }
.food-img-wrap { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #f5f5f0; }
.food-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.15s; }
.food-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: #f5f5f0; }

/* Magnifier Lens - replaced by zoom button */
.img-zoom-btn { position: absolute; top: 6px; left: 6px; z-index: 5; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.55); border: 1.5px solid rgba(255,255,255,0.8); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: background 0.2s, transform 0.2s; backdrop-filter: blur(2px); }
.img-zoom-btn:hover { background: var(--accent); transform: scale(1.1); }

/* Image Viewer */
.img-viewer { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; opacity: 1; transition: opacity 0.2s; }
.iv-close { position: absolute; top: 14px; left: 14px; z-index: 10; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; transition: background 0.2s; }
.iv-close:hover { background: var(--accent); }
.iv-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-in; touch-action: none; }
.iv-stage img { max-width: 92vw; max-height: 88vh; object-fit: contain; transition: transform 0.25s ease; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.img-viewer.zoomed .iv-stage { cursor: zoom-out; }
.iv-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.65); font-size: 0.75rem; background: rgba(0,0,0,0.4); padding: 5px 16px; border-radius: 20px; pointer-events: none; white-space: nowrap; }
.food-info { padding: 8px 10px 10px; flex: 1; display: flex; flex-direction: column; }
.food-title { font-size: 0.85rem; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.food-notice-btn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; margin-inline-start: 3px; border: none; border-radius: 50%; background: transparent; color: #dc3545; cursor: pointer; vertical-align: -5px; flex-shrink: 0; transition: color 0.2s, transform 0.15s; }
.food-notice-btn:hover, .food-notice-btn:focus-visible { background: transparent; color: #b02a37; transform: scale(1.12); }
.food-desc { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 6px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.food-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 6px; }
.food-price { font-size: 0.82rem; font-weight: 700; color: var(--text-dark); font-variant-numeric: tabular-nums; font-feature-settings: "lnum"; }
.food-add-btn { background: var(--accent); color: #fff; border: none; padding: 4px 14px; border-radius: var(--radius-sm); font-size: 0.72rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.food-add-btn:hover { background: var(--accent-hover); }
.btn-view-cat { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--accent); border: 2px solid var(--accent); padding: 8px 20px; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-top: 12px; font-family: var(--font); }
.btn-view-cat:hover { background: var(--accent); color: #fff; }

/* Modal */
.modal-content { border: none; border-radius: var(--radius); overflow: hidden; }
.modal-body { padding: 0; }
.modal-img-wrap { width: 120px; min-width: 120px; height: 120px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.modal-product-img { width: 100%; height: 100%; object-fit: cover; }
.modal-product-name { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.modal-product-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.modal-product-price { font-size: 1rem; font-weight: 700; color: var(--accent); margin: 0; font-variant-numeric: tabular-nums; font-feature-settings: "lnum"; }

/* Notice modal */
.notice-modal-content { border-radius: var(--radius); }
.notice-modal-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; min-width: 34px; border-radius: 50%; background: transparent; color: #dc3545; }
.notice-modal-text { font-size: 0.88rem; line-height: 1.7; color: var(--text-dark); font-weight: 600; }
.notice-modal-btn { background: var(--accent); color: #fff; border: none; padding: 9px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700; cursor: pointer; font-family: var(--font); transition: background 0.2s; }
.notice-modal-btn:hover { background: var(--accent-hover); color: #fff; }

/* Addons */
.addons-title { font-weight: 700; font-size: 0.85rem; color: var(--text-dark); margin: 10px 0 6px; }.addon-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.addon-row:last-child { border-bottom: none; }
.addon-info { display: flex; flex-direction: column; gap: 2px; }
.addon-name { font-size: 0.85rem; font-weight: 500; color: var(--text-dark); }
.addon-price-badge { font-size: 0.72rem; color: var(--text-muted); }

/* Stepper */
.addon-stepper { display: flex; align-items: center; }
.stepper-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; color: var(--text); }
.stepper-btn:hover { border-color: var(--accent); color: var(--accent); }
.stepper-plus { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.stepper-plus:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.stepper-val { width: 32px; text-align: center; font-weight: 700; font-size: 0.9rem; color: var(--text-dark); font-family: 'Almarai', sans-serif; font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "lnum" 1; direction: ltr; }

/* Modal Confirm */
.modal-confirm-bar { background: #f9f9f9; border-top: 1px solid var(--border); }
.modal-confirm-btn { background: var(--accent); color: #fff; border: none; padding: 8px 30px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.modal-confirm-btn:hover { background: var(--accent-hover); }
.modal-confirm-btn:disabled { background: var(--accent-hover); opacity: 0.55; cursor: not-allowed; }

/* Qty Control */
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 50px; background: #fff; }
.qty-btn { width: 34px; height: 34px; border: none; background: transparent; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text); transition: background 0.2s; }
.qty-btn:hover { background: var(--bg); }
.qty-minus { color: var(--text-muted); }
.qty-plus { color: var(--accent); }
.qty-input { width: 36px; text-align: center; border: none; font-size: 0.9rem; font-weight: 700; font-family: 'Almarai', sans-serif; background: transparent; font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "lnum" 1; direction: ltr; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Cart Page */
.cart-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; }
.cart-item-name { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); }
.cart-item-addons { color: var(--text-muted); font-size: 0.72rem; margin-top: 2px; }
.cart-item-price { font-weight: 700; color: var(--accent); font-size: 0.9rem; font-variant-numeric: tabular-nums; font-feature-settings: "lnum"; }
.cart-item-remove { color: #dc3545; background: none; border: none; cursor: pointer; font-size: 0.72rem; padding: 2px 6px; border-radius: 4px; }
.cart-item-remove:hover { background: #f8d7da; }
.btn-clear-cart { background: transparent; border: 1px solid #dc3545; color: #dc3545; padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: var(--font); }
.btn-clear-cart:hover { background: #dc3545; color: #fff; }

/* Summary */
.summary-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.85rem; color: var(--text); }
.summary-row span { font-variant-numeric: tabular-nums; font-feature-settings: "lnum"; }
.summary-row.total { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 10px; font-size: 1.05rem; font-weight: 700; color: var(--text-dark); }

/* Buttons */
.btn-accent { background: var(--accent); color: #fff; border: none; padding: 10px 28px; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: background 0.2s; display: inline-block; text-align: center; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-outline-secondary { border-color: var(--border); color: var(--text); }
.btn-outline-secondary:hover { background: var(--bg); border-color: var(--border); color: var(--text-dark); }

/* Empty State */
.empty-state { text-align: center; padding: 5rem 1rem; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.3; }

/* Footer */
.footer-bottom { background: var(--footer-bottom); padding: 8px 0; }
.footer-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.footer-brand-name { color: #fff; font-size: 0.82rem; font-weight: 700; margin-bottom: 2px; }
.footer-phone { color: var(--accent) !important; font-size: 0.75rem; font-weight: 600; direction: ltr; display: inline-block; }

/* Toast */
.toast-container { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; }
.toast-msg { background: var(--primary); color: #fff; padding: 10px 24px; border-radius: 8px; font-size: 0.85rem; font-weight: 500; box-shadow: 0 4px 12px rgba(0,0,0,0.3); animation: fadeInUp 0.3s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Form */
.form-label { font-weight: 500; font-size: 0.82rem; color: var(--text-dark); }
.form-control, .form-select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.85rem; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(212,136,12,0.15); }

/* Responsive */
@media (max-width: 768px) {
    .eld-header { padding: 8px 0; }
    .eld-logo-img { height: 32px; }
    .eld-logo-text { font-size: 1rem; }
    .lang-toggle { font-size: 0.65rem; }
    .cat-bar { top: 50px; padding: 6px 0; }
    .cat-pill { padding: 5px 12px; font-size: 0.72rem; }
    .section-block { padding: 1rem 0 0.3rem; }
    .food-title { font-size: 0.78rem; }
    .food-desc { font-size: 0.65rem; }
    .food-add-btn { padding: 3px 10px; font-size: 0.68rem; }
    .summary-box { padding: 12px; }
    .modal-img-wrap { width: 80px; min-width: 80px; height: 80px; }
    .footer-bottom { padding: 6px 0; }
    .footer-logo { width: 36px; height: 36px; }
    .footer-brand-name { font-size: 0.7rem; }
    .floating-cart { display: flex; }
}

/* Admin */
.admin-sidebar { width: 240px; min-height: 100vh; background: var(--primary); position: fixed; top: 0; right: 0; z-index: 1000; padding: 1rem 0; }
.admin-sidebar .sidebar-link { display: flex; align-items: center; gap: 8px; padding: 10px 20px; color: rgba(255,255,255,0.6); font-size: 0.85rem; font-weight: 500; transition: all 0.2s; }
.admin-sidebar .sidebar-link:hover, .admin-sidebar .sidebar-link.active { color: #fff; background: rgba(255,255,255,0.08); }
.admin-content { margin-right: 240px; padding: 1.5rem; }
.admin-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.5rem; margin-bottom: 1rem; }
.admin-card h5 { font-weight: 700; margin-bottom: 1rem; color: var(--text-dark); }
.table { font-size: 0.85rem; }
.table th { font-weight: 600; background: #f8f8f5; border-bottom: 2px solid var(--border); color: var(--text-dark); }
.table td { vertical-align: middle; }
.table td .btn { font-size: 0.75rem; padding: 2px 8px; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.login-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 400px; }
.login-box h3 { text-align: center; font-weight: 700; margin-bottom: 1.5rem; color: var(--primary); }
.admin-card input[type="text"][inputmode="decimal"],
.admin-card input[type="text"][inputmode="numeric"] {
    font-family: 'Almarai', sans-serif;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "lnum" 1;
    direction: ltr;
}

/* Addon checkboxes */
.addon-check-box { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; margin-bottom: 4px; transition: all 0.15s; font-size: 0.82rem; }
.addon-check-box:hover { border-color: var(--accent); background: #fff8f2; }
.addon-check-box:has(.addon-check:checked) { border-color: var(--accent); background: #fff3e8; }
.addon-check { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; margin: 0; }
@media (max-width: 768px) {
    .admin-sidebar { width: 100%; min-height: auto; position: relative; right: auto; display: flex; overflow-x: auto; padding: 0.5rem; }
    .admin-sidebar .sidebar-link { white-space: nowrap; padding: 8px 14px; }
    .admin-content { margin-right: 0; padding: 1rem 0.5rem; }
    .admin-card { padding: 1rem; }
    .admin-card .row .col-5, .admin-card .row .col-4, .admin-card .row .col-3 {
        flex: 0 0 auto;
        width: auto;
    }
    .table-responsive { font-size: 0.78rem; }
    .table td .btn { font-size: 0.7rem; padding: 2px 6px; }
}

body.no-scroll { overflow: hidden; }

