:root {
    --primary: #ff6b00;
    --primary-hover: #e05d00;
    --dark: #222;
    --light: #fefefe;
    --bg-color: #fffaf5;
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* إخفاء المحتوى افتراضياً حتى إدخال كلمة السر */
body {
    background-color: var(--bg-color);
    color: #333;
    display: none; 
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

.header-side {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-side.right { justify-content: flex-start; }
.header-side.left { justify-content: flex-end; }

.restaurant-brand-center {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.restaurant-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    margin-bottom: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background-color: #fff;
}

.cart-btn-header {
    background-color: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.cart-btn-header:hover {
    background-color: var(--primary);
    color: #fff;
}

.restaurant-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.restaurant-btn:hover {
    background-color: var(--primary-hover);
}

/* Container Layout */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    flex: 1;
    width: 100%;
}

/* Menu Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #ffe5d4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { 
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.15);
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.card-body { 
    padding: 12px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.card-title {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--dark);
    font-weight: bold;
    line-height: 1.3;
}

.card-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.btn-add {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 9px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
    font-size: 0.9rem;
}

.btn-add:hover { background-color: var(--primary-hover); }

/* Cart Box */
.cart-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #ffe5d4;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-type-selector {
    display: flex;
    gap: 10px;
    margin: 15px 0 10px 0;
}

.order-type-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    font-size: 0.85rem;
}

.order-type-btn.active {
    background: var(--primary);
    color: #fff;
}

.delivery-note {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.customer-info-inputs input, .customer-info-inputs textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
}

.customer-info-inputs input:focus, .customer-info-inputs textarea:focus {
    border-color: var(--primary);
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    color: var(--dark);
}

.btn-whatsapp {
    width: 100%;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    font-size: 1rem;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover { background-color: #1eb956; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 15px;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
}

.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.9rem; }
.form-group input { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 6px; }

.admin-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    background: #fff5ed;
    padding: 8px;
    border-radius: 6px;
}

.admin-item input {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Floating Cart Button for Mobile */
.floating-cart-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999;
    cursor: pointer;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .container { 
        grid-template-columns: 1fr; 
    }
    .cart-box {
        position: static;
        margin-top: 20px;
    }
    .floating-cart-btn {
        display: block;
    }
}

@media (max-width: 600px) {
    header { 
        padding: 10px 15px;
    }

    .restaurant-logo {
        width: 55px;
        height: 55px;
    }

    .restaurant-brand-center h2 {
        font-size: 1.1rem;
    }

    .restaurant-brand-center small {
        font-size: 0.75rem;
    }

    .cart-btn-header, .restaurant-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card img {
        height: 110px;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .card-price {
        font-size: 1rem;
    }

    .btn-add {
        padding: 7px;
        font-size: 0.8rem;
    }
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px 15px;
    margin-top: 40px;
    border-top: 3px solid var(--primary);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-socials a {
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.social-fb { background-color: #1877F2; }
.social-wa { background-color: #25D366; }

.copyright-text { font-size: 0.8rem; color: #aaa; }