:root{
    --blue:#0e4f8c;
    --light:#f8f7f4;
    --beige:#efe6d9;
    --white:#ffffff;
    --dark:#1f2937;

    --shadow:
        0 10px 30px rgba(0,0,0,0.08);

    --radius:24px;
}

/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Inter','Cairo',sans-serif;

    background:var(--light);

    color:var(--dark);

    overflow-x:hidden;

}

/* =========================
   TYPOGRAPHY
========================= */

h1,h2,h3{
    font-family:'Cormorant Garamond',serif;
}

.container{

    width:min(1200px,92%);

    margin:auto;

}

.section{

    padding:100px 0;

}

/* =========================
   NAVBAR
========================= */

.navbar{

    position:sticky;

    top:0;

    z-index:999;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:10px 5%;

    min-height:90px;

    background:rgba(255,255,255,0.92);

    backdrop-filter:blur(14px);

    border-bottom:
        1px solid rgba(0,0,0,0.05);

}

.logo{

    width:170px;

    height:auto;

    object-fit:contain;

    display:block;

}

.nav-links{

    display:flex;

    gap:24px;

    list-style:none;

}

.nav-links a{

    text-decoration:none;

    color:var(--dark);

    font-weight:500;

}

.nav-actions{

    display:flex;

    gap:12px;

    align-items:center;

}

/* =========================
   BUTTONS
========================= */

.primary-btn,
.secondary-btn{

    padding:14px 24px;

    border-radius:999px;

    text-decoration:none;

    transition:0.3s ease;

    display:inline-flex;

    justify-content:center;

    align-items:center;

    border:none;

    cursor:pointer;

}

.primary-btn{

    background:var(--blue);

    color:white;

}

.secondary-btn{

    background:white;

    color:var(--blue);

}

.primary-btn:hover,
.secondary-btn:hover{

    transform:translateY(-3px);

}

/* =========================
   HERO
========================= */

.hero{

    min-height:100vh;

    background:
        linear-gradient(
            rgba(255,255,255,0.6),
            rgba(255,255,255,0.6)
        ),
        url('assets/hero.jpg')
        center/cover no-repeat;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    position:relative;

}

.hero-content{

    max-width:760px;

    padding:20px;

}

.hero h1{

    font-size:clamp(3rem,8vw,6rem);

    color:var(--blue);

}

.hero p{

    margin:20px 0;

    font-size:1.1rem;

    line-height:1.8;

}

.hero-buttons{

    display:flex;

    gap:16px;

    justify-content:center;

    flex-wrap:wrap;

}

/* =========================
   GRID
========================= */

.about-grid,
.contact-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:50px;

}

/* =========================
   CARDS
========================= */

.about-card,
.featured-card,
.menu-card{

    background:white;

    border-radius:30px;

    padding:24px;

    box-shadow:var(--shadow);

}

.menu-card{

    transition:0.35s ease;

    overflow:hidden;

    position:relative;

}

.menu-card:hover{

    transform:translateY(-8px);

}

/* =========================
   SECTION HEADERS
========================= */

.section-tag{

    color:var(--blue);

    font-weight:700;

    letter-spacing:2px;

}

.section-header{

    text-align:center;

    margin-bottom:40px;

}

.section-header h2{

    font-size:3rem;

}

/* =========================
   FEATURED
========================= */

.featured-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(280px,1fr));

    gap:28px;

}

.badge{

    display:inline-block;

    padding:6px 14px;

    border-radius:999px;

    margin-bottom:18px;

}

.popular{

    background:#dbeafe;

    color:#1d4ed8;

}

.hot{

    background:#fee2e2;

    color:#dc2626;

}

.new{

    background:#dcfce7;

    color:#15803d;

}

/* =========================
   MENU CONTROLS
========================= */

.menu-controls{

    position:sticky;

    top:85px;

    z-index:120;

    background:rgba(248,247,244,0.96);

    backdrop-filter:blur(14px);

    padding:
        20px
        0
        24px;

    margin-bottom:50px;

    border-bottom:
        1px solid rgba(0,0,0,0.05);

}

#searchInput{

    width:100%;

    padding:18px;

    border:none;

    border-radius:18px;

    margin-bottom:22px;

    box-shadow:
        0 8px 24px rgba(0,0,0,0.06);

    background:white;

    font-size:1rem;

    outline:none;

}

/* =========================
   CATEGORY BUTTONS
========================= */

.category-buttons{

    display:flex;

    gap:14px;

    flex-wrap:wrap;

    align-items:center;

}

.category-btn{

    border:none;

    background:white;

    padding:14px 24px;

    border-radius:999px;

    cursor:pointer;

    font-size:1rem;

    font-weight:500;

    transition:0.3s ease;

    box-shadow:
        0 4px 14px rgba(0,0,0,0.05);

    flex-shrink:0;

}

.category-btn:hover{

    transform:translateY(-2px);

}

.category-btn.active{

    background:#0e4f8c;

    color:white;

}

/* =========================
   MENU GRID
========================= */

.menu-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap:28px;

}

/* =========================
   PRODUCT PLACEHOLDER
========================= */

.product-placeholder{

    width:100%;

    height:240px;

    background:
        linear-gradient(
            135deg,
            #f8f7f4,
            #efe6d9
        );

    border-radius:20px;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:20px;

    text-align:center;

    border:
        1px solid rgba(14,79,140,0.08);

}

.placeholder-text{

    font-size:2rem;

    color:#0e4f8c;

    font-family:'Cairo',sans-serif;

    font-weight:700;

    direction:rtl;

    line-height:1.8;

}

/* =========================
   MENU CONTENT
========================= */

.menu-content{

    padding-top:12px;

}

.menu-top{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:16px;

}

.menu-title{

    font-size:1.8rem;

    color:#0e4f8c;

    margin-bottom:6px;

}

.menu-title-ar{

    font-size:1.1rem;

    direction:rtl;

    text-align:right;

    color:#555;

    font-family:'Cairo',sans-serif;

}

.menu-price{

    font-size:1.2rem;

    font-weight:700;

    color:#0e4f8c;

}

/* =========================
   TAGS
========================= */

.tags-container{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

    margin-top:14px;

}

.item-tag{

    background:#dbeafe;

    color:#1d4ed8;

    padding:6px 12px;

    border-radius:999px;

    font-size:0.8rem;

    font-weight:600;

}

/* =========================
   DESCRIPTION
========================= */

.menu-description{

    margin:18px 0;

}

.desc-en{

    line-height:1.7;

    margin-bottom:14px;

    color:#333;

}

.desc-ar{

    line-height:2;

    direction:rtl;

    text-align:right;

    color:#666;

    font-family:'Cairo',sans-serif;

}

/* =========================
   META INFO
========================= */

.meta-info{

    display:flex;

    justify-content:space-between;

    margin-bottom:10px;

    font-size:0.95rem;

    opacity:0.85;

}

/* =========================
   BEST SELLER
========================= */

.best-seller-badge{

    position:absolute;

    top:18px;
    left:18px;

    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #fbbf24
        );

    color:white;

    padding:10px 18px;

    border-radius:999px;

    font-size:0.8rem;

    font-weight:700;

    z-index:10;

}

/* =========================
   MENU ACTIONS
========================= */

.menu-actions{

    display:flex;

    gap:12px;

    margin-top:24px;

}

.order-btn,
.call-btn{

    flex:1;

    padding:14px;

    border-radius:16px;

    text-decoration:none;

    text-align:center;

    font-weight:600;

    border:none;

    cursor:pointer;

    transition:0.3s ease;

}

.order-btn{

    background:#25D366;

    color:white;

}

.call-btn{

    background:#0e4f8c;

    color:white;

}

.order-btn:hover,
.call-btn:hover{

    transform:translateY(-3px);

}

/* =========================
   CONTACT
========================= */

.contact-list{

    margin:24px 0;

    list-style:none;

    display:grid;

    gap:12px;

}

.social-links{

    display:flex;

    gap:16px;

}

.social-links a{

    text-decoration:none;

    color:var(--blue);

}

.map-container iframe{

    width:100%;

    min-height:350px;

    border:0;

    border-radius:var(--radius);

}

/* =========================
   FOOTER
========================= */

.footer{

    padding:30px;

    text-align:center;

    background:white;

}

/* =========================
   FLOATING WHATSAPP
========================= */

.floating-whatsapp{

    position:fixed;

    right:20px;
    bottom:20px;

    background:#25D366;

    color:white;

    padding:16px 22px;

    border-radius:999px;

    text-decoration:none;

    z-index:999;

}

/* =========================
   CART SIDEBAR
========================= */

.cart-sidebar{

    position:fixed;

    top:120px;
    right:20px;

    width:320px;

    max-height:75vh;

    overflow-y:auto;

    background:white;

    border-radius:30px;

    padding:24px;

    box-shadow:0 10px 40px rgba(0,0,0,0.12);

    z-index:999;

    border:1px solid rgba(0,0,0,0.05);

}

/* =========================
   CART TITLE
========================= */

.cart-sidebar h2{

    margin-bottom:20px;

    color:#0e4f8c;

    font-size:2rem;

}

/* =========================
   CART ITEM
========================= */

.cart-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:14px;

    padding:14px 0;

    border-bottom:1px solid #eee;

}

.cart-item h4{

    font-size:1rem;

    margin-bottom:4px;

}

.cart-item small{

    opacity:0.7;

}

/* =========================
   REMOVE BUTTON
========================= */

.remove-btn{

    border:none;

    background:#ef4444;

    color:white;

    width:26px;
    height:26px;

    border-radius:50%;

    cursor:pointer;

    margin-left:10px;

    font-size:0.8rem;

}

/* =========================
   CART FOOTER
========================= */

.cart-footer{

    margin-top:24px;

}

.cart-footer h3{

    margin-bottom:16px;

}

/* =========================
   CHECKOUT BUTTON
========================= */

.checkout-btn{

    width:100%;

    border:none;

    background:#25D366;

    color:white;

    padding:16px;

    border-radius:18px;

    font-size:1rem;

    font-weight:700;

    cursor:pointer;

    transition:0.3s ease;

}

.checkout-btn:hover{

    transform:translateY(-3px);

}

/* =========================
   DESKTOP MENU SPACE
========================= */

@media(min-width:1200px){

    .menu .container{

        padding-right:360px;

    }

}

/* =========================
   TABLET
========================= */

@media(max-width:1199px){

    .cart-sidebar{

        width:280px;

    }

}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .cart-sidebar{

        position:fixed;

        left:10px;
        right:10px;

        bottom:10px;

        top:auto;

        width:auto;

        max-height:40vh;

        border-radius:24px;

    }

    .menu .container{

        padding-right:0;

    }

}
/* =========================
   LOADER
========================= */

#loader{

    position:fixed;

    inset:0;

    background:white;

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.spinner{

    width:60px;
    height:60px;

    border:4px solid #eee;

    border-top:4px solid var(--blue);

    border-radius:50%;

    animation:spin 1s linear infinite;

}

@keyframes spin{

    to{
        transform:rotate(360deg);
    }

}

/* =========================
   DARK MODE
========================= */

.dark-mode{

    background:#111827;

    color:white;

}

.dark-mode .menu-card,
.dark-mode .cart-sidebar{

    background:#1f2937;

}

.dark-mode .desc-en,
.dark-mode .desc-ar,
.dark-mode .menu-title-ar{

    color:#ddd;

}

.dark-mode .menu-title{

    color:#93c5fd;

}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1200px){

    .cart-sidebar{

        width:280px;

    }

}

@media(max-width:900px){

    .about-grid,
    .contact-grid{

        grid-template-columns:1fr;

    }

    .nav-links{

        display:none;

    }

}

@media(max-width:768px){

    .menu-controls{

        top:72px;

        padding:14px 0 18px;

    }

    .category-buttons{

        flex-wrap:nowrap;

        overflow-x:auto;

        scrollbar-width:none;

    }

    .category-buttons::-webkit-scrollbar{

        display:none;

    }

    .category-btn{

        white-space:nowrap;

        padding:12px 18px;

        font-size:0.9rem;

    }

    .menu-grid{

        grid-template-columns:1fr;

    }

    .menu-actions{

        flex-direction:column;

    }

    .cart-sidebar{

        left:10px;
        right:10px;

        width:auto;

        bottom:10px;

        top:auto;

        max-height:40vh;

    }

    .mobile-order-bar{

        display:block;

        position:fixed;

        bottom:0;

        width:100%;

        padding:12px;

        background:white;

        z-index:999;

    }

    .mobile-order-bar a{

        display:block;

        text-align:center;

        background:var(--blue);

        color:white;

        padding:14px;

        border-radius:999px;

        text-decoration:none;

    }

}
/* =========================
   SMALLER MENU CARDS
========================= */

.menu-grid{

    grid-template-columns:
        repeat(auto-fit,minmax(240px,1fr));

    gap:18px;

}

.menu-card{

    padding:16px;

    border-radius:22px;

}

/* IMAGE */

.product-placeholder{

    height:140px;

    border-radius:16px;

}

.placeholder-text{

    font-size:1.2rem;

    line-height:1.5;

}

/* TITLES */

.menu-title{

    font-size:1.1rem;

}

.menu-title-ar{

    font-size:0.9rem;

}

/* PRICE */

.menu-price{

    font-size:1rem;

}

/* DESCRIPTION */

.desc-en,
.desc-ar{

    font-size:0.82rem;

    line-height:1.6;

}

/* TAGS */

.item-tag{

    padding:4px 10px;

    font-size:0.7rem;

}

/* BUTTONS */

.order-btn,
.call-btn{

    padding:10px;

    font-size:0.82rem;

    border-radius:12px;

}

/* META */

.meta-info{

    font-size:0.78rem;

}

/* BEST SELLER */

.best-seller-badge{

    padding:6px 12px;

    font-size:0.65rem;

}

/* MENU ACTIONS */

.menu-actions{

    gap:8px;

    margin-top:16px;

}

/* MOBILE */

@media(max-width:768px){

    .menu-grid{

        grid-template-columns:
            repeat(2,1fr);

        gap:14px;

    }

    .menu-card{

        padding:12px;

    }

    .product-placeholder{

        height:110px;

    }

    .placeholder-text{

        font-size:0.9rem;

    }

    .menu-title{

        font-size:0.95rem;

    }

    .menu-title-ar{

        font-size:0.78rem;

    }

    .desc-en,
    .desc-ar{

        font-size:0.72rem;

    }

    .order-btn,
    .call-btn{

        font-size:0.72rem;

        padding:8px;

    }

}
/* =========================
   MOBILE FIXES
========================= */

@media(max-width:768px){

    /* Hide floating WhatsApp button */

    .floating-whatsapp{

        display:none !important;

    }

    /* Hide mobile order bar if exists */

    .mobile-order-bar{

        display:none !important;

    }

    /* Fix cart spacing */

    .cart-sidebar{

        bottom:20px;

        padding-bottom:28px;

        z-index:9999;

    }

    /* Better checkout button */

    .checkout-btn{

        position:sticky;

        bottom:0;

        width:100%;

        margin-top:20px;

        padding:18px;

        border-radius:20px;

        font-size:1rem;

    }

}
/* ORDER TYPE MODAL */

.order-type-modal {

    display: none;

    position: fixed;

    z-index: 999999;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.55);

    justify-content: center;
    align-items: center;

    padding: 20px;
}

.order-type-content {

    background: #fff;

    width: 100%;
    max-width: 420px;

    border-radius: 22px;

    padding: 25px;

    text-align: center;

    animation: popupFade 0.3s ease;
}

.order-type-content h3 {

    margin-bottom: 20px;

    font-size: 22px;

    color: #111;

    font-weight: 700;
}

.order-type-content button {

    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 14px;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    margin-bottom: 14px;

    transition: 0.3s;
}

.delivery-btn {

    background: #25D366;

    color: white;
}

.pickup-btn {

    background: #0A84FF;

    color: white;
}

.confirm-delivery-btn {

    background: #111;

    color: white;
}

.order-type-content button:hover {

    opacity: 0.92;
}

.delivery-form {

    margin-top: 15px;
}

.delivery-form input,
.delivery-form textarea {

    width: 100%;

    padding: 14px;

    border-radius: 12px;

    border: 1px solid #ddd;

    margin-bottom: 12px;

    font-size: 15px;

    font-family: inherit;
}

.delivery-form textarea {

    min-height: 90px;

    resize: vertical;
}

@keyframes popupFade {

    from {

        transform: scale(0.92);

        opacity: 0;
    }

    to {

        transform: scale(1);

        opacity: 1;
    }
}