/* ==========================================
   1. Reset & Global
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: #ffffff;
    color: #222222;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
    width: 100%;
}

/* ==========================================
   2. Header & Navigation
   ========================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    color: orange;
    font-size: 45px;
}

nav a {
    color: #222;
    text-decoration: none;
    margin-left: 25px;
    font-size: 20px;
    transition: 0.3s;
}

nav a:hover {
    color: orange;
}

.cart {
    color: white;
    font-size: 18px;
    background: orange;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: bold;
}

/* ==========================================
   3. Hero Section
   ========================================== */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

.hero-content h2 {
    font-size: 60px;
    margin-bottom: 20px;
    color: white;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 25px;
    color: white;
}

/* ==========================================
   4. Buttons
   ========================================== */
button {
    padding: 15px 40px;
    border: none;
    background: orange;
    color: white;
    font-size: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    background: #e69500;
    transform: scale(1.05);
}

#modeBtn {
    position: fixed;
    top: auto;
    bottom: 145px;
    right: 20px;
    z-index: 999;
    padding: 10px 15px;
    font-size: 20px;
    background: orange;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

#topBtn {
    position: fixed;
    bottom: 15px;
    right: 20px;
    background-color: #222;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: 0.3s;
}

#topBtn:hover {
    background: orange;
}

#popup {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #2ecc71;
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    font-size: 20px;
    display: none;
    z-index: 10001;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#popup.show {
    display: block;
}

/* ==========================================
   5. Search & Filter
   ========================================== */
.search-container {
    margin-bottom: 25px;
}

.search-container input {
    width: 350px;
    padding: 12px 20px;
    border-radius: 30px;
    border: 2px solid orange;
    background: #f5f5f5;
    color: #222;
    font-size: 16px;
    outline: none;
    text-align: center;
}

.filter-buttons {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.filter-btn {
    padding: 10px 25px;
    font-size: 16px;
    background: #f0f0f0;
    color: #222;
    border: 1px solid #ccc;
}

.filter-btn.active,
.filter-btn:hover {
    background: orange;
    color: white;
    border-color: orange;
}

/* ==========================================
   6. Layout Sections
   ========================================== */
.gallery, .menu, .about, .contact, .social, .checkout {
    padding: 100px 50px;
    text-align: center;
}

.gallery h2, .menu h2, .about h2, .contact h2, .follow-title, .checkout h2 {
    font-size: 50px;
    color: orange;
    margin-bottom: 50px;
}

.gallery-images, .icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* ==========================================
   7. Cards
   ========================================== */
.card {
    background-color: #f9f9f9;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.4s ease;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    animation: show 1s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 165, 0, 0.2);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    margin: 20px 0 10px;
    color: orange;
    font-size: 24px;
}

.card p {
    padding: 0 20px 15px;
    font-size: 16px;
    color: #555;
}

.qty {
    width: 80px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    background: #ffffff;
    color: #222;
}

.buy {
    margin-bottom: 20px;
    padding: 12px 25px;
    background: orange;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

/* ==========================================
   8. Gallery Images
   ========================================== */
.gallery-images img {
    width: 300px;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    transition: 0.4s ease;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.gallery-images img:hover {
    transform: scale(1.08);
}

/* ==========================================
   9. About, Contact, Social, Checkout
   ========================================== */
.about {
    background: #f5f5f5;
}

.about p {
    max-width: 800px;
    margin: auto;
    font-size: 22px;
    line-height: 1.8;
}

.contact p {
    font-size: 22px;
    line-height: 1.8;
    margin: 15px auto;
}

.icons img {
    width: 60px;
    transition: 0.4s;
}

.icons img:hover {
    transform: translateY(-10px) scale(1.1);
}

/* ==========================================
   Checkout - New Modern Design
   ========================================== */
.checkout {
    padding: 80px 50px;
    text-align: left;
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
}

.checkout-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

.checkout-left, .checkout-right {
    flex: 1;
    background: #fff;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 8px 40px rgba(255,165,0,0.1);
    border: 1px solid #ffe0a0;
}

.checkout-badge {
    display: inline-block;
    background: orange;
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.checkout-title {
    font-size: 28px;
    color: #222;
    margin-bottom: 25px;
    font-weight: 800;
}

.checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 80px;
}

.checkout-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
}

.checkout-item-row span:last-child {
    font-weight: 700;
    color: orange;
}

.empty-cart-msg {
    color: #aaa;
    font-size: 15px;
    text-align: center;
    padding: 20px 0;
}

.checkout-divider {
    height: 1px;
    background: #ffe0a0;
    margin: 20px 0;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    font-weight: 800;
    color: #222;
}

.checkout-total-row span:last-child {
    color: orange;
}

/* Form */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    padding: 14px 18px;
    border: 2px solid #eee;
    border-radius: 14px;
    font-size: 16px;
    color: #222;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
    border-color: orange;
    background: #fff;
}

.delivery-options, .payment-options {
    display: flex;
    gap: 12px;
}

.delivery-option, .payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
}

.delivery-option:has(input:checked),
.payment-option:has(input:checked) {
    border-color: orange;
    background: #fff8f0;
    color: #222;
}

.delivery-option input,
.payment-option input {
    accent-color: orange;
}

.confirm-order-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, orange, #ff8c00);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(255,165,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.confirm-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255,165,0,0.5);
}

/* Order Success Modal */
.order-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 20000;
    justify-content: center;
    align-items: center;
}

.order-modal.show {
    display: flex;
}

.order-modal-content {
    background: white;
    border-radius: 28px;
    padding: 50px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: show 0.4s ease;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.order-modal-content h3 {
    font-size: 30px;
    color: #222;
    margin-bottom: 10px;
}

.order-modal-content p {
    color: #666;
    font-size: 16px;
    margin-bottom: 8px;
}

.order-modal-content .eta {
    background: #fff8f0;
    border-radius: 12px;
    padding: 12px;
    color: #333;
    margin: 16px 0;
}

.order-modal-content button {
    background: orange;
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}

/* Responsive checkout */

footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 18px;
    margin-top: 30px;
}

/* ==========================================
   10. Cart Sidebar
   ========================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffbe33;
    color: #fff;
}

.close-cart-btn {
    background: #fff;
    color: #ffbe33;
    border: none;
    width: 35px;
    height: 35px;
    padding: 0;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.close-cart-btn:hover {
    transform: scale(1.1);
}

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

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    margin-left: 15px;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #222;
}

.cart-item-details p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-item-actions button {
    background-color: #ffbe33;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.remove-item-btn {
    background-color: #ff4d4d !important;
    font-size: 12px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    background-color: #222;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.checkout-btn:hover {
    background-color: #ffbe33;
    color: white;
    transform: none;
}

.continue-shopping-btn {
    width: 100%;
    background: transparent;
    color: #ffbe33;
    border: 2px solid #ffbe33;
    padding: 10px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.continue-shopping-btn:hover {
    background-color: #ffbe33;
    color: white;
    transform: none;
}

/* ==========================================
   11. Floating Cart Button
   ========================================== */
.floating-cart-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #ffbe33;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    background-color: #e6a728;
}

#floatingCount {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4d4d;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 50%;
    border: 2px solid white;
}

/* ==========================================
   12. Animations
   ========================================== */
section {
    animation: fade 1s ease;
}

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

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

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

/* ==========================================
   13. Dark Mode
   ========================================== */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode header {
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

body.dark-mode nav a {
    color: #ffffff;
}

body.dark-mode .about {
    background: #161616;
}

body.dark-mode .card {
    background-color: #1e1e1e;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

body.dark-mode .card h3 {
    color: orange;
}

body.dark-mode .card p {
    color: #ccc;
}

body.dark-mode .qty {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

body.dark-mode .search-container input {
    background: #222;
    color: white;
    border-color: orange;
}

body.dark-mode .filter-btn {
    background: #222;
    color: #ccc;
    border-color: #444;
}

body.dark-mode .filter-btn.active,
body.dark-mode .filter-btn:hover {
    background: orange;
    color: white;
}

body.dark-mode .checkout input {
    background: #222;
    color: white;
    border-color: #444;
}

body.dark-mode .cart-sidebar {
    background-color: #1a1a1a;
    color: #ffffff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

body.dark-mode .cart-footer {
    background-color: #262626;
    border-top: 1px solid #333;
}

body.dark-mode .cart-item {
    border-bottom: 1px solid #333;
}

body.dark-mode .cart-item-details h4 {
    color: #ffffff;
}

body.dark-mode .cart-item-details p {
    color: #cccccc;
}

body.dark-mode .cart-item-actions span {
    color: #ffffff;
}

body.dark-mode .close-cart-btn {
    background-color: #333;
    color: #ffbe33;
}

body.dark-mode .continue-shopping-btn {
    color: #ffbe33;
    border-color: #ffbe33;
}

body.dark-mode .continue-shopping-btn:hover {
    background-color: #ffbe33;
    color: #1a1a1a;
}

body.dark-mode .checkout-btn {
    background-color: #ffbe33;
    color: #1a1a1a;
}

body.dark-mode .checkout-btn:hover {
    background-color: #e6a728;
}

body.dark-mode .checkout {
    background: linear-gradient(135deg, #161616 0%, #1a1a1a 100%);
}

body.dark-mode .checkout-left,
body.dark-mode .checkout-right {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

body.dark-mode .checkout-title {
    color: #fff;
}

body.dark-mode .checkout-item-row {
    background: #2a2a2a;
    color: #ddd;
}

body.dark-mode .checkout-total-row {
    color: #fff;
}

body.dark-mode .form-group label {
    color: #aaa;
}

body.dark-mode .form-group input[type="text"],
body.dark-mode .form-group input[type="tel"] {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

body.dark-mode .form-group input:focus {
    border-color: orange;
    background: #333;
}

body.dark-mode .delivery-option,
body.dark-mode .payment-option {
    border-color: #444;
    color: #aaa;
    background: #2a2a2a;
}

body.dark-mode .delivery-option:has(input:checked),
body.dark-mode .payment-option:has(input:checked) {
    border-color: orange;
    background: #2e2200;
    color: #fff;
}

body.dark-mode .order-modal-content {
    background: #1e1e1e;
}

body.dark-mode .order-modal-content h3 {
    color: #fff;
}

body.dark-mode .order-modal-content p {
    color: #aaa;
}

body.dark-mode .order-modal-content .eta {
    background: #2a2a2a;
    color: #ddd;
}

body.dark-mode .checkout-divider {
    background: #333;
}

/* ==========================================
   14. Responsive
   ========================================== */

/* ---- Mobile hamburger toggle: hidden on desktop ---- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: orange;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 900px) {
    header {
        padding: 14px 18px;
        flex-wrap: wrap;
    }
    header h1 { font-size: 26px; }
    .cart { font-size: 13px; padding: 8px 12px; order: 3; }

    .nav-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .nav-wrapper {
        order: 4;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-wrapper.open {
        max-height: 400px;
        margin-top: 14px;
    }

    .nav-wrapper nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .nav-wrapper nav a {
        margin-left: 0;
        padding: 10px 6px;
        font-size: 17px;
        border-bottom: 1px solid rgba(128,128,128,0.15);
    }

    .lang-switcher {
        display: flex;
        gap: 8px;
        padding-top: 6px;
    }

    .cards {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
    }

    /* Category chips overflowed off-screen on mobile — make them
       horizontally swipeable instead of being clipped */
    .filter-buttons {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        margin-bottom: 30px;
    }
    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .gallery, .menu, .about, .contact, .social, .checkout {
        padding: 50px 20px;
    }
    .gallery h2, .menu h2, .about h2, .contact h2, .follow-title, .checkout h2 {
        font-size: 32px;
        margin-bottom: 25px;
    }
    .about p, .contact p {
        font-size: 16px !important;
        line-height: 1.6;
    }
    .checkout {
        padding: 50px 20px;
    }
    .hero-content h2 {
        font-size: 38px;
    }
    .hero-content p {
        font-size: 18px;
    }

    /* Dark mode button now uses a consistent bottom-anchored position
       defined in the base #modeBtn rule — no mobile override needed */

    /* Checkout & Contact columns must stack on mobile in EVERY language,
       not just Arabic/RTL */
    .checkout-wrapper,
    .contact-wrapper {
        flex-direction: column;
    }
    .checkout-left, .checkout-right,
    .contact-info, .map-container {
        width: 100%;
    }
    .checkout-left, .checkout-right {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 30px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .gallery, .menu, .about, .contact, .social, .checkout {
        padding: 36px 16px;
    }
    .gallery h2, .menu h2, .about h2, .contact h2, .follow-title, .checkout h2 {
        font-size: 26px;
        margin-bottom: 18px;
    }
    .about p, .contact p {
        font-size: 14.5px !important;
    }
    header h1 { font-size: 20px; }
    .cart { font-size: 11px; padding: 6px 9px; }

    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .card img { height: 120px; }
    .card h3 { font-size: 13px; padding: 10px 10px 0; }
    .card p { font-size: 12px; }
}

/* ==========================================
   Loading Screen
   ========================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: #111;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 80px;
    font-weight: 900;
    color: orange;
    letter-spacing: -4px;
    animation: pulse 1s ease infinite alternate;
}

.loading-sub {
    color: #fff;
    font-size: 20px;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-top: -10px;
    margin-bottom: 30px;
    opacity: 0.7;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: #333;
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, orange, #ff8c00);
    border-radius: 10px;
    animation: loadBar 1.8s ease forwards;
}

@keyframes pulse {
    from { transform: scale(1);   opacity: 1; }
    to   { transform: scale(1.05); opacity: 0.85; }
}

@keyframes loadBar {
    0%   { width: 0%; }
    100% { width: 100%; }
}

/* ==========================================
   Carousel
   ========================================== */
.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: #222;
    border: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: orange;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: -24px; }
.carousel-btn.next { right: -24px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: orange;
    transform: scale(1.3);
}

body.dark-mode .carousel-btn {
    background: rgba(30,30,30,0.9);
    color: #fff;
}

body.dark-mode .carousel-dot {
    background: #444;
}

/* ==========================================
   Hours Box
   ========================================== */
.hours-box {
    max-width: 500px;
    margin: 50px auto 0;
    background: #fff;
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 4px 20px rgba(255,165,0,0.1);
    border: 1px solid #ffe0a0;
}

.hours-box h3 {
    font-size: 24px;
    color: orange;
    margin-bottom: 20px;
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    color: #444;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.hours-row:last-child {
    border-bottom: none;
}

/* ==========================================
   Reviews
   ========================================== */
.reviews-section {
    margin-top: 60px;
}

.reviews-section h3 {
    font-size: 32px;
    color: orange;
    margin-bottom: 30px;
}

.reviews-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    width: 280px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid #ffe0a0;
    text-align: left;
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-6px);
}

.review-stars {
    font-size: 18px;
    margin-bottom: 12px;
}

.review-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 14px;
    padding: 0;
}

.reviewer {
    font-size: 14px;
    font-weight: 700;
    color: orange;
}

/* ==========================================
   Contact Enhanced
   ========================================== */
.contact-wrapper {
    display: flex;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    align-items: flex-start;
    text-align: left;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: #444;
    background: #fff;
    padding: 16px 20px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #ffe0a0;
}

.contact-item span {
    font-weight: 500;
}

.map-container {
    flex: 1.2;
}

/* ==========================================
   Footer Enhanced
   ========================================== */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 50px 25px 30px;
    margin-top: 30px;
}

.footer-logo {
    font-size: 36px;
    font-weight: 900;
    color: orange;
    margin-bottom: 8px;
}

.footer-tagline {
    color: #aaa;
    font-size: 16px;
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: orange;
}

.footer-copy {
    color: #555;
    font-size: 14px;
    border-top: 1px solid #222;
    padding-top: 20px;
    margin-top: 10px;
}

/* Dark mode extras */
body.dark-mode .hours-box,
body.dark-mode .review-card,
body.dark-mode .contact-item {
    background: #1e1e1e;
    border-color: #333;
}

body.dark-mode .hours-row {
    color: #ccc;
    border-color: #333;
}

body.dark-mode .review-card p {
    color: #bbb;
}

body.dark-mode .contact-item {
    color: #ccc;
}

/* ==========================================
   WhatsApp Bubble
   ========================================== */
.wa-bubble {
    position: fixed;
    bottom: 150px;
    right: 20px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: waPulse 2s ease infinite;
}

.wa-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes waPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================
   Price Animation on Cards
   ========================================== */
.card h3 {
    transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover h3 {
    transform: scale(1.05);
    color: #e69500;
}

/* ==========================================
   Language Switcher
   ========================================== */
.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 10px;
    min-width: 42px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #444;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    border-color: orange;
    color: orange;
    transform: scale(1.05);
}

.lang-btn.active-lang {
    border-color: orange;
    color: orange;
    background: rgba(255,165,0,0.1);
}

body.dark-mode .lang-btn {
    border-color: #555;
    color: #ccc;
}

body.dark-mode .lang-btn:hover,
body.dark-mode .lang-btn.active-lang {
    border-color: orange;
    color: orange;
    background: rgba(255,165,0,0.1);
}

/* RTL for Arabic */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl header {
    flex-direction: row-reverse;
}

body.rtl nav a {
    margin-left: 0;
    margin-right: 25px;
}

body.rtl .cart-sidebar {
    right: auto;
    left: -400px;
}

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

body.rtl .cart-item-details {
    margin-left: 0;
    margin-right: 15px;
}

body.rtl .checkout-wrapper {
    flex-direction: row-reverse;
}

body.rtl .contact-wrapper {
    flex-direction: row-reverse;
}

@media (max-width: 900px) {
    body.rtl .cart-sidebar {
        left: -100%;
        right: auto;
    }
    body.rtl .cart-sidebar.open {
        left: 0;
    }
}

/* Location Button */
.location-btn {
    width: 100%;
    padding: 14px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background 0.2s, transform 0.1s;
    font-family: 'Segoe UI', sans-serif;
}

.location-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* ==========================================================================
   تعديل ألوان الـ Light Mode المضمون (خلفية كريمية ناعمة وفاتحة متناسقة)
   ========================================================================== */
body.light-mode {
    background-color: #F7F4EB !important; /* لون كريمي دافئ وفاتح جداً، مريح ومكيعميش */
    color: #1E1B18 !important; /* نصوص داكنة بوضوح ممتاز للقراءة */
}

/* الهيدر والقائمة العلوية */
body.light-mode header {
    background-color: #ffffff !important; /* هيدر أبيض نقي باش يعطي إضاءة للموقع */
    box-shadow: 0 4px 15px rgba(30, 27, 24, 0.05) !important;
    border-bottom: 1px solid #EAE4D3 !important;
}

body.light-mode nav a {
    color: #1E1B18 !important;
}

body.light-mode nav a:hover {
    color: #D97706 !important; /* برتقالي دافئ عند التمرير */
}

/* بطاقات المنيو والأكل */
body.light-mode .card {
    background-color: #ffffff !important; /* البطاقات بيضاء باش تبرز الأكلات والصور بوضوح */
    color: #1E1B18 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #EAE4D3 !important;
}

body.light-mode .card h3 {
    color: #1E1B18 !important;
}

body.light-mode .card p {
    color: #D97706 !important; /* لون السعر برتقالي متناسق مع هوية المطعم */
    font-weight: bold !important;
}

body.light-mode .qty {
    background-color: #F7F4EB !important;
    color: #1E1B18 !important;
    border: 1px solid #D5CBB5 !important;
}

/* قسم "معلومات عنا" والأقسام الداخلية */
body.light-mode .about {
    background-color: #EFEAE0 !important; /* أغمق قليلاً من الخلفية لتمييز القسم */
}

body.light-mode .about h2,
body.light-mode .reviews h2,
body.light-mode .hours-box h3,
body.light-mode .contact-item h3 {
    color: #1E1B18 !important;
}

body.light-mode .about p,
body.light-mode .review-card p,
body.light-mode .contact-item span {
    color: #4A453E !important; /* نصوص فرعية ناعمة ومريحة */
}

body.light-mode .hours-box,
body.light-mode .review-card,
body.light-mode .contact-item {
    background-color: #ffffff !important;
    border: 1px solid #EAE4D3 !important;
}

body.light-mode .hours-row {
    color: #4A453E !important;
    border-bottom: 1px dashed #D5CBB5 !important;
}

/* خانات البحث وأزرار الفلتر */
body.light-mode .search-container input {
    background-color: #ffffff !important;
    color: #1E1B18 !important;
    border: 2px solid orange !important;
}

body.light-mode .filter-btn {
    background-color: #EFEAE0 !important;
    color: #4A453E !important;
}

body.light-mode .filter-btn.active {
    background-color: orange !important;
    color: #ffffff !important;
}

/* سلة المشتريات الجانبية */
body.light-mode .cart-sidebar {
    background-color: #ffffff !important;
    color: #1E1B18 !important;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.05) !important;
    border-left: 1px solid #EAE4D3 !important;
}

body.light-mode .cart-header h2 {
    color: #1E1B18 !important;
}

body.light-mode .cart-item {
    border-bottom: 1px solid #F7F4EB !important;
}

body.light-mode .cart-item-details h4 {
    color: #1E1B18 !important;
}

body.light-mode .cart-item-details p {
    color: #D97706 !important;
}

body.light-mode .qty-control span {
    color: #1E1B18 !important;
}

body.light-mode .cart-footer {
    background-color: #F7F4EB !important;
    border-top: 1px solid #EAE4D3 !important;
}

body.light-mode .cart-total h3 {
    color: #1E1B18 !important;
}

body.light-mode .close-cart-btn {
    background-color: #EFEAE0 !important;
    color: #1E1B18 !important;
}

/* صفحة إتمام الطلب (Checkout) */
body.light-mode .checkout {
    background: #F7F4EB !important;
}

body.light-mode .checkout-left, 
body.light-mode .checkout-right {
    background: #ffffff !important;
    border: 1px solid #EAE4D3 !important;
}

body.light-mode .checkout-title {
    color: #1E1B18 !important;
}

body.light-mode .checkout-item-row {
    background: #F7F4EB !important;
    color: #1E1B18 !important;
}

body.light-mode .form-group label {
    color: #4A453E !important;
}

body.light-mode .form-group input[type="text"],
body.light-mode .form-group input[type="tel"] {
    background: #F7F4EB !important;
    border: 1px solid #D5CBB5 !important;
    color: #1E1B18 !important;
}

body.light-mode .delivery-option,
body.light-mode .payment-option {
    background: #ffffff !important;
    border: 1px solid #EAE4D3 !important;
    color: #4A453E !important;
}

body.light-mode .delivery-option:has(input:checked),
body.light-mode .payment-option:has(input:checked) {
    border-color: orange !important;
    background: #FFFBEB !important;
    color: #1E1B18 !important;
}

/* الأزرار العلوية وزر المود */
body.light-mode .lang-btn {
    border: 1px solid #D5CBB5 !important;
    color: #4A453E !important;
}
body.light-mode .lang-btn.active-lang {
    border-color: orange !important;
    color: orange !important;
    background: rgba(255, 165, 0, 0.05) !important;
}
body.light-mode #modeBtn {
    background: #EFEAE0 !important;
    color: #1E1B18 !important;
}

/* الفوتر السفلي للموقع */
body.light-mode footer {
    background-color: #1E1B18 !important; /* الفوتر يبقى داكن باش يعطي قفلة زوينة للسيت */
    color: #ffffff !important;
}
body.light-mode footer .footer-links a {
    color: #F7F4EB !important;
}
/* كود يوضع فآخر الملف باش يخلي انتقال الألوان ناعم */
body {
    transition: background-color 0.3s ease, color 0.3s ease !important;
}
header, .card, .cart-sidebar, .filter-btn, input {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
body.light-mode .card img {
    filter: contrast(1.02) !important; /* كيزيد حيوية للألوان د الماكلة */
    border-bottom: 1px solid #EAE4D3 !important; /* كيقسم الصورة على الكرتونة بذكاء */
}
body.light-mode #modeBtn:hover {
    background-color: #D5CBB5 !important;
    transform: scale(1.05);
}
/* ==========================================
   14. RTL Support for Arabic
   ========================================== */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl header {
    flex-direction: row-reverse;
}

body.rtl nav a {
    margin-right: 25px;
    margin-left: 0;
}

body.rtl .cart-sidebar {
    right: auto;
    left: -400px;
    transition: left 0.3s ease;
}

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

body.rtl .checkout-wrapper {
    flex-direction: column-reverse; /* لترتيب ملخص الطلب على اليمين في الموبايل */
}

@media (min-width: 901px) {
    body.rtl .checkout-wrapper {
        flex-direction: row-reverse;
    }
}

body.rtl .form-group label {
    text-align: right;
}
/* ==========================================
   تنسيق بطاقة أمان الأدمن (Admin Security Card)
   ========================================== */
.admin-security-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-top: 20px;
    border: 1px solid #eaeaea;
}
.admin-security-card h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    border-bottom: 2px solid #f1f3f5;
    padding-bottom: 10px;
}
.admin-security-group {
    margin-top: 15px;
}
.admin-security-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}
.admin-security-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}
/* اللون اللي بغيتيه بحال "Where Flavor Comes First" */
.text-secondary {
    color: #a0a0a0 !important; /* بدّل هذا الكود بنفس اللون اللي كاين ف Where Flavor Comes First */
}

/* اللون الذهبي لـ Developer */
.link-gold {
    color: #ff9900 !important; /* اللون الذهبي ديال اللوغو */
    text-decoration: none;
    font-weight: bold;
}
/* النص اللي فيه "Crafted by" و "0605890047" */
.text-secondary {
    color: #a0a0a0 !important; /* نفس لون "Where Flavor Comes First" */
    font-size: 12px;           /* هنا كنصغرو الكتابة */
}

/* الرابط ديال "Developer" */
.link-gold {
    color: #ff9900 !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;           /* باش يبقى الحجم متناسق مع النص */
}
.footer-credit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* مسافة بسيطة بين العناصر */
    font-size: 12px;
    direction: rtl; /* باش الترتيب العربي يجي صحيح */
    margin-top: 10px;
}

.text-secondary {
    color: #a0a0a0 !important; /* لون متناسق */
}

.link-gold {
    color: #ff9900 !important; /* اللون الذهبي للرابط */
    text-decoration: none;
    font-weight: bold;
}
/* الكود اللي كيجمع العناصر ف سطر واحد وبترتيب ثابت */
.footer-credit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px; 
    font-size: 12px;
    margin-top: 15px;
    color: #a0a0a0;
    
    /* هاد الخاصية هي اللي كتمنع النص يتقلب ف العربية */
    direction: ltr !important; 
    unicode-bidi: embed;
}

/* التنسيق الخاص بالرابط الذهبي */
.link-gold {
    color: #ff9900 !important;
    text-decoration: none;
    font-weight: bold;
}
.phone-number {
    display: inline-block; /* باش نحكمو فيه */
    direction: ltr !important; /* هادي هي اللي كتقاد الترتيب */
    unicode-bidi: embed; /* باش الرقم يبقى متماسك */
    text-align: right; /* يلا بغيتيه يبقى جهة اليمين */
}
iframe {
    border-radius: 15px; /* باش تجي الخريطة مجنبة ومودرن */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* باش تبان بحال طالعة شوية على الخلفية */
}