﻿/* =============================================
   MAITREFOOD - Main CSS Stylesheet
   Design: Modern, RTL Arabic + LTR French
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Poppins:wght@300;400;600;700&display=swap');

/* ---- Variables ---- */
:root {
    --primary: #FF6B35;
    --primary-dark: #e8541f;
    --primary-light: #fff0ea;
    --secondary: #1A1A2E;
    --dark: #16213E;
    --card-bg: #ffffff;
    --body-bg: #f5f6f8;
    /* Softer gray background */
    --text-main: #2d2d2d;
    --text-muted: #8b92a5;
    /* Modern soft gray */
    --border: #f0f2f5;
    --radius: 20px;
    /* Increased rounded corners for modern app feel */
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    /* Soft diffused shadow */
    --shadow-hover: 0 16px 40px rgba(255, 107, 53, 0.15);
    /* Vibrant hover shadow */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smoother animation curve */
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    background: var(--body-bg);
    color: var(--text-main);
    direction: rtl;
    min-height: 100vh;
}

body.lang-fr {
    direction: ltr;
    font-family: 'Poppins', 'Cairo', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--secondary);
    padding: 0 20px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--primary);
}

.navbar-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.nav-icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-icon-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.nav-login-btn {
    background: var(--primary);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
}

.nav-login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ============================================
   HERO / BANNER SLIDER
   ============================================ */
.banner-section {
    padding: 15px;
    background: var(--secondary);
    padding-bottom: 25px;
}

.swiper-banners {
    border-radius: var(--radius);
    overflow: hidden;
}

.banner-slide {
    position: relative;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.75), rgba(26, 26, 46, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.banner-text h3 {
    color: white;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.banner-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-top: 6px;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 15px;
    padding: 0 15px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 2px;
    display: block;
}

/* ============================================
   RESTAURANTS - Ø¯Ø§Ø¦Ø±ÙŠØ©
   ============================================ */
.restaurants-section {
    padding: 20px 0 10px;
}

.restaurants-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 15px 15px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.restaurants-scroll::-webkit-scrollbar {
    display: none;
}

.restaurant-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    cursor: pointer;
    transition: var(--transition);
}

.restaurant-thumb:hover {
    transform: translateY(-4px);
}

.restaurant-thumb-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
    transition: var(--transition);
}

.restaurant-thumb:hover .restaurant-thumb-img {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.restaurant-thumb-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories-section {
    padding: 5px 0 15px;
}

.categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 15px 15px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    scroll-snap-align: start;
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.cat-btn .cat-icon {
    font-size: 16px;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-section {
    padding: 10px 15px 100px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 540px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 53, 0.3);
}

.product-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.95 !important;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.08);
}

.product-card-restaurant {
    position: absolute;
    bottom: 8px;
    right: 12px;
    background: white;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.product-card-body {
    padding: 12px;
}

.product-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 4px;
}

.product-card-price .currency {
    font-size: 11px;
}

.product-add-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: var(--transition);
}

.product-add-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

body.lang-fr .product-add-btn {
    left: auto;
    right: 10px;
}

/* ============================================
   BOTTOM NAV (Mobile)
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px 10px;
    border-radius: 12px;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item .icon {
    font-size: 22px;
}

.bottom-nav-cart {
    background: var(--primary);
    border-radius: 16px;
    padding: 8px 18px;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
}

.bottom-nav-cart .icon {
    font-size: 22px;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.95 !important;
    max-height: 600px;
    overflow: hidden;
}

.product-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, var(--body-bg));
}

.back-btn {
    position: fixed;
    top: 75px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--primary);
    color: white;
}

.product-detail-body {
    padding: 15px;
}

.product-detail-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
}

.product-detail-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.detail-section {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.detail-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ingredient-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 3px;
}

/* Social links */
.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    color: white;
}

.social-link:hover {
    transform: scale(1.1) translateY(-3px);
}

.social-fb {
    background: #1877f2;
}

.social-ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-tt {
    background: #000;
}

/* ============================================
   ORDER FORM
   ============================================ */
.order-form {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 80px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    color: var(--text-main);
    background: var(--body-bg);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ============================================
   RESTAURANT PAGE
   ============================================ */
.restaurant-cover {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.restaurant-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.restaurant-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(26, 26, 46, 0.8));
}

.restaurant-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.restaurant-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.restaurant-info {
    text-align: center;
    padding: 12px 20px 5px;
}

.restaurant-info h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary);
}

.restaurant-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.restaurant-tabs {
    display: flex;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

.restaurant-tab-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 5px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    text-align: center;
    transition: var(--transition);
}

.restaurant-tab-btn:hover,
.restaurant-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-hover);
}

.tab-content {
    display: none;
    padding: 15px;
}

.tab-content.active {
    display: block;
}

/* ============================================
   REVIEWS - Ø§Ù„ØªÙ‚ÙŠÙŠÙ…Ø§Øª
   ============================================ */
.review-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.stars {
    color: #FFB800;
    font-size: 14px;
}

.review-text {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.6;
}

.review-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ============================================
   DIGITAL MENU - Menu Type Selector
   ============================================ */
.order-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px 15px;
}

.order-type-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.order-type-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.order-type-card.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.order-type-card .icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.order-type-card h3 {
    font-size: 15px;
    font-weight: 700;
}

.order-type-card p {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

/* ============================================
   ADMIN & RESTAURANT PANELS
   ============================================ */
.panel-body {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    background: var(--secondary);
    padding: 20px 0;
    flex-shrink: 0;
}

.sidebar-logo {
    padding: 10px 20px 25px;
    font-size: 20px;
    font-weight: 800;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.sidebar-logo span {
    color: var(--primary);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    color: white;
    background: rgba(255, 107, 53, 0.15);
    border-right: 3px solid var(--primary);
}

.sidebar-nav li a .icon {
    font-size: 18px;
}

.panel-main {
    flex: 1;
    padding: 25px;
    background: var(--body-bg);
    direction: rtl;
    height: 100vh;
    overflow-y: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.panel-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
}

.stat-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Panel Table */
.panel-table-wrapper {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.panel-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.panel-table th {
    background: var(--body-bg);
    padding: 12px 15px;
    text-align: right;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.panel-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.panel-table tr:last-child td {
    border-bottom: none;
}

.panel-table tr:hover td {
    background: var(--primary-light);
}

/* Status Badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-approved {
    background: #d4edda;
    color: #155724;
}

.badge-rejected {
    background: #f8d7da;
    color: #721c24;
}

.badge-preparing {
    background: #cce5ff;
    color: #004085;
}

.badge-delivered {
    background: #d4edda;
    color: #155724;
}

.badge-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Panel Form */
.panel-form {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 35px 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-logo {
    text-align: center;
    margin-bottom: 25px;
}

.auth-logo .logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
}

.auth-logo .logo-text span {
    color: var(--primary);
}

.auth-logo p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
}

.auth-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
    text-align: center;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: flex-end;
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    display: flex;
}

.modal-sheet {
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 25px 20px 30px;
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
}

.modal-close {
    width: 35px;
    height: 35px;
    background: var(--body-bg);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: #dc3545;
    color: white;
}

/* ============================================
   UPLOAD AREA
   ============================================ */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--body-bg);
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-area .icon {
    font-size: 40px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.upload-area p {
    font-size: 13px;
    color: var(--text-muted);
}

.upload-area input[type=file] {
    display: none;
}

.img-preview {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
    .banner-slide {
        height: 280px;
    }

    .restaurant-thumb-img {
        width: 90px;
        height: 90px;
    }

    .order-type-card .icon {
        font-size: 55px;
    }

    .sidebar {
        width: 280px;
    }
}

@media (max-width: 640px) {
    .sidebar {
        display: none;
    }

    .panel-main {
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 340px;
    height: 100vh;
    background: white;
    z-index: 3000;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    background: var(--secondary);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 700;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.qty-num {
    font-size: 14px;
    font-weight: 700;
}

.cart-footer {
    padding: 15px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--secondary);
}

.cart-total span:last-child {
    color: var(--primary);
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 60px;
    margin-bottom: 15px;
    display: block;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary);
}

.empty-state p {
    font-size: 14px;
}

/* ============================================
   AUTH PAGES - ØªØ³Ø¬ÙŠÙ„ Ø§Ù„Ø¯Ø®ÙˆÙ„
   ============================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary), #2d2d5e);
    padding: 20px 15px;
}

.auth-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo .logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--secondary);
}

.auth-logo .logo-text span {
    color: var(--primary);
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 5px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
}

/* ============================================
   BADGE STATUS CLASSES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-approved {
    background: #d4edda;
    color: #155724;
}

.badge-rejected {
    background: #f8d7da;
    color: #721c24;
}

.badge-confirmed {
    background: #d4edda;
    color: #155724;
}

.badge-preparing {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-ready_for_pickup {
    background: #e2e3e5;
    color: #383d41;
}

.badge-picked_up {
    background: #cce5ff;
    color: #004085;
}

.badge-delivered {
    background: #d4edda;
    color: #155724;
}

.badge-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.badge-active {
    background: #d4edda;
    color: #155724;
}

.badge-inactive {
    background: #f8d7da;
    color: #721c24;
}

.badge-manager {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-staff {
    background: #e2e3e5;
    color: #383d41;
}

/* ============================================
   BUTTON UTILITIES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--secondary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ============================================
   PANEL FORM & TABLE
   ============================================ */
.panel-form {
    background: white;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.panel-table-wrapper {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.panel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.panel-table th {
    background: var(--body-bg);
    padding: 11px 14px;
    text-align: right;
    font-weight: 700;
    color: var(--secondary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.panel-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.panel-table tr:last-child td {
    border-bottom: none;
}

.panel-table tr:hover td {
    background: rgba(255, 107, 53, 0.03);
}

/* Image preview in forms */
.img-preview {
    margin-top: 10px;
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
}

/* ============================================
   MOBILE APP DESIGN - ØªØµÙ…ÙŠÙ… Ø§Ù„Ù‡Ø§ØªÙ
   ============================================ */

/* --- Mobile Header --- */
.mobile-header {
    display: none;
}

@media (max-width: 768px) {

    /* Ø¥Ø®ÙØ§Ø¡ Ø§Ù„Ù€ Navbar Ø§Ù„ØªÙ‚Ù„ÙŠØ¯ÙŠ ÙÙŠ Ø§Ù„Ù‡Ø§ØªÙ */
    .navbar {
        display: none;
    }

    /* Ø¥Ø¸Ù‡Ø§Ø± Ø§Ù„Ù€ Mobile Header */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px 10px;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
    }

    .mobile-header-left .greeting {
        font-size: 12px;
        color: var(--text-muted);
        font-weight: 500;
    }

    .mobile-header-left .brand-name {
        font-size: 20px;
        font-weight: 800;
        color: var(--secondary);
        line-height: 1.1;
    }

    .mobile-header-left .brand-name span {
        color: var(--primary);
    }

    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-header-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: #f5f5f5;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
        color: var(--secondary);
        cursor: pointer;
        text-decoration: none;
        position: relative;
        transition: var(--transition);
    }

    .mobile-header-icon:hover {
        background: var(--primary-light);
        color: var(--primary);
    }

    .mobile-header-icon .cart-badge {
        background: var(--primary);
        top: -4px;
        right: -4px;
    }

    /* --- Search Bar --- */
    .mobile-search {
        padding: 10px 16px 12px;
        background: #fff;
    }

    .mobile-search-box {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #f5f5f5;
        border-radius: 14px;
        padding: 11px 16px;
        border: none;
        box-shadow: none;
    }

    .mobile-search-box i {
        color: var(--text-muted);
        font-size: 16px;
        flex-shrink: 0;
    }

    .mobile-search-box input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 14px;
        font-family: 'Cairo', sans-serif;
        color: var(--text-main);
        outline: none;
    }

    .mobile-search-box input::placeholder {
        color: #bbb;
    }

    .mobile-search-filter-btn {
        width: 44px;
        height: 44px;
        background: var(--primary);
        border: none;
        border-radius: 12px;
        color: white;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
    }

    /* Banner section ÙÙŠ Ø§Ù„Ù‡Ø§ØªÙ */
    .banner-section {
        background: #fff;
        padding: 5px 16px 12px;
    }

    .banner-slide {
        height: 160px;
        border-radius: 14px;
    }

    /* --- Section Headers with "View All" --- */
    .section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 16px 10px;
    }

    .section-header h2 {
        font-size: 17px;
        font-weight: 800;
        color: var(--secondary);
    }

    .section-header a.view-all {
        font-size: 13px;
        font-weight: 600;
        color: var(--primary);
        text-decoration: none;
    }

    /* Ø¥Ø®ÙØ§Ø¡ section-title Ø§Ù„Ù‚Ø¯ÙŠÙ… ÙÙŠ Ø§Ù„Ù‡Ø§ØªÙ */
    .section-title {
        display: none;
    }

    /* --- Restaurants Ø£ÙÙ‚ÙŠØ© circular ØªØ­Ø³ÙŠÙ† --- */
    .restaurants-section {
        padding: 0;
    }

    .restaurants-scroll {
        padding: 6px 16px 14px;
        gap: 14px;
    }

    .restaurant-thumb-img {
        width: 64px;
        height: 64px;
        border: 3px solid var(--primary);
    }

    .restaurant-thumb-name {
        font-size: 10px;
        max-width: 68px;
    }

    /* --- Categories ØªØ­Ø³ÙŠÙ† --- */
    .categories-section {
        padding: 0 0 10px;
    }

    .categories-scroll {
        padding: 4px 16px 8px;
    }

    .cat-btn {
        padding: 7px 14px;
        font-size: 12px;
        border-radius: 20px;
    }

    /* --- Popular Products Grid --- */
    .products-section {
        padding: 5px 16px 110px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        border-radius: 14px;
    }

    .product-card-img {
        padding-top: 70%;
    }

    .product-card-body {
        padding: 10px;
    }

    .product-card-name {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .product-card-price {
        font-size: 14px;
    }

    /* Ù†Ø¬ÙˆÙ… Ø§Ù„ØªÙ‚ÙŠÙŠÙ… */
    .product-card-stars {
        display: flex;
        align-items: center;
        gap: 2px;
        font-size: 10px;
        color: #FFB800;
        margin-bottom: 3px;
    }

    .product-card-stars span.review-count {
        color: var(--text-muted);
        font-size: 10px;
        margin-inline-start: 3px;
    }

    .product-add-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
        bottom: 8px;
        left: 8px;
    }

    body.lang-fr .product-add-btn {
        left: auto;
        right: 8px;
    }
}

/* End mobile media query */

/* ============================================
   Nearby Restaurants Section (GLOBAL)
   ============================================ */
.nearby-restaurants-section {
    padding: 0;
}

.nearby-restaurants-scroll {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 16px 14px;
}

.nearby-restaurant-card {
    display: block;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
}

.nearby-restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.ns-cover {
    position: relative;
    height: 120px;
    background: #eee;
}

.ns-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ns-cover img.blurred-fallback {
    filter: blur(8px) brightness(0.8);
    transform: scale(1.15);
}

.ns-logo {
    position: absolute;
    bottom: -20px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: white;
    padding: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ns-logo img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.nearby-restaurant-info {
    padding: 25px 15px 15px;
}

.ns-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.nearby-restaurant-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 4px;
}

.nearby-restaurant-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.nearby-restaurant-meta .stars {
    color: #FFB800;
    font-size: 10px;
}

.nearby-restaurant-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge-free-delivery {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.badge-order-now {
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

@media (max-width: 768px) {

    /* --- Bottom Navigation ØªØ­Ø³ÙŠÙ† --- */
    .bottom-nav {
        background: #fff;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.09);
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid #f0f0f0;
    }

    .bottom-nav-item {
        color: #bbb;
        font-size: 9px;
        padding: 5px 12px;
        border-radius: 10px;
        gap: 4px;
    }

    .bottom-nav-item.active {
        color: var(--primary);
        background: var(--primary-light);
    }

    .bottom-nav-item:hover {
        color: var(--primary);
    }

    .bottom-nav-item .icon {
        font-size: 20px;
    }

    .bottom-nav-cart {
        background: var(--primary) !important;
        color: white !important;
        border-radius: 14px;
        padding: 8px 16px !important;
        box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
    }

    .bottom-nav-cart .icon {
        font-size: 18px;
    }
}

/* ============================================
   HIDE DESKTOP ELEMENTS ON MOBILE
   ============================================ */
@media (max-width: 768px) {

    .desktop-sidebar,
    .desktop-topbar,
    .desktop-cart-panel {
        display: none !important;
    }

    .desktop-layout {
        display: block !important;
        height: auto !important;
    }

    .desktop-main {
        padding: 0;
        overflow-y: visible;
        height: auto;
    }

    /* Ø¥Ø®Ù Ø§Ø¡ Ø´Ø±ÙŠØ· Ø§Ù„ØªÙ†Ù‚Ù„ Ø§Ù„Ø³Ù Ù„ÙŠ Ø§Ù„Ù‚Ø¯ÙŠÙ… */
    .bottom-nav {
        display: none !important;
    }
}

/* =========================================
       Ø§Ù„Ø²Ø± Ø§Ù„Ø¹Ø§Ø¦Ù… (Floating Checkout Button)
       ========================================= */
.mobile-floating-checkout {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: var(--primary);
    /* Ù„ÙˆÙ† Ø£Ø­Ù…Ø± Ù Ø§ØªØ­ / Ø¨Ø±ØªÙ‚Ø§Ù„ÙŠ */
    border-radius: 30px;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    z-index: 999;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}

.mfc-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mfc-count {
    font-size: 11px;
    opacity: 0.9;
}

.mfc-price {
    font-size: 16px;
    font-weight: 800;
}

.mfc-right {
    font-size: 15px;
    font-weight: 700;
}

/* =========================================
       Ø§Ù„Ù†Ø§ÙØ°Ø© Ø§Ù„Ù…Ù†Ø¨Ø«Ù‚Ø© Ø§Ù„Ø¯Ø§ÙƒÙ†Ø© (Dark Bottom Sheet)
       ========================================= */
.dark-checkout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2999;
    display: none;
    backdrop-filter: blur(2px);
}

.dark-checkout-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 90vh;
    background-color: #1f1f1f;
    /* Ø±Ù…Ø§Ø¯ÙŠ Ø¯Ø§ÙƒÙ† ØªÙ‚Ø±ÙŠØ¨Ø§Ù‹ Ø£Ø³ÙˆØ¯ */
    border-radius: 20px 20px 0 0;
    z-index: 3000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    color: white;
    font-family: 'Tajawal', sans-serif;
}

.dark-checkout-sheet.active {
    bottom: 0;
}

.dcs-header {
    position: relative;
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dcs-header h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.dcs-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.dcs-body {
    padding: 20px;
    overflow-y: auto;
}

/* Ø¹Ù†Ø§ØµØ± Ø§Ù„Ø³Ù„Ø© */
.dcs-item {
    background-color: #2b2b2b;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dcs-item-info {
    display: flex;
    flex-direction: column;
}

.dcs-item-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.dcs-item-calc {
    font-size: 12px;
    color: #999;
}

.dcs-item-remove {
    background-color: #ff6b6b;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

/* ÙÙˆØ§ØµÙ„ */
.dcs-divider {
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
    margin: 15px 0;
}

/* Ø§Ù„Ø³Ø¹Ø± Ø§Ù„Ø³Ø±ÙŠØ¹ */
.dcs-quick-total {
    text-align: center;
    font-size: 16px;
    font-weight: 800;
}

/* Ù…Ù„Ø®Øµ Ø§Ù„Ø³Ø¹Ø± */
.dcs-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}

.dcs-total-row {
    font-size: 16px;
    font-weight: 800;
    margin-top: 10px;
}

/* Ø²Ø± Ù†ÙˆØ¹ Ø§Ù„ØªÙˆØµÙŠÙ„ */
.dcs-delivery-type {
    background-color: #e5f5f0;
    color: #2ea06b;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    margin: 20px 0;
    font-size: 14px;
}

/* Ø§Ù„Ù†Ù…Ø§Ø°Ø¬ */
.dcs-promo-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.dcs-promo-group input {
    flex: 1;
    background: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    color: #333;
    font-family: inherit;
}

.dcs-promo-btn {
    background-color: #9ea4aa;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
}

.dcs-form input {
    width: 100%;
    background: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    color: #333;
    font-family: inherit;
}

/* Ø²Ø± Ø§Ù„ØªØ£ÙƒÙŠØ¯ Ø§Ù„Ù†Ù‡Ø§Ø¦ÙŠ */
.dcs-submit-btn {
    width: 100%;
    background-color: #2ea06b;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    margin-top: 10px;
    cursor: pointer;
}


/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    justify-content: space-around;
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    gap: 4px;
    transition: 0.2s;
}

.mobile-bottom-nav .nav-item i {
    font-size: 20px;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Add extra padding to body so content doesn't get hidden behind bottom nav */
    body {
        padding-bottom: 70px;
    }
}

/* ============================================
   DESKTOP APP LAYOUT - ØªØµÙ…ÙŠÙ… Ø³Ø·Ø­ Ø§Ù„Ù…ÙƒØªØ¨
   ============================================ */
@media (min-width: 769px) {

    /* Ø¥Ø®Ù Ø§Ø¡ Ø§Ù„Ø¹Ù†Ø§ØµØ± Ø§Ù„Ø®Ø§ØµØ© Ø¨Ø§Ù„Ø¬ÙˆØ§Ù„ ØªÙ…Ø§Ù…Ø§Ù‹ */
    .mobile-header,
    .mobile-search,
    .bottom-nav,
    .mobile-bottom-nav {
        display: none !important;
    }

    /* Ø¥Ø®Ù Ø§Ø¡ Ø§Ù„Ù€ Navbar Ø§Ù„Ø¹Ø§Ø¯ÙŠ Ø£ÙŠØ¶Ø§Ù‹ Ù„Ø£Ù†Ù†Ø§ Ù†Ø³ØªØ¨Ø¯Ù„Ù‡ */
    .navbar {
        display: none !important;
    }

    /* *** ØªØ®Ø·ÙŠØ· Ø§Ù„ØµÙØ­Ø© Ø§Ù„Ø±Ø¦ÙŠØ³ÙŠ *** */
    body {
        background: #f2f3f7;
        overflow: hidden;
        height: 100vh;
    }

    /* Wrapper Ø´Ø§Ù…Ù„ */
    .desktop-layout {
        display: grid;
        grid-template-columns: 70px 1fr;
        grid-template-rows: 70px 1fr;
        height: 100vh;
        gap: 0;
    }

    /* ============================
       Left Sidebar - Ø§Ù„Ù‚Ø§Ø¦Ù…Ø© Ø§Ù„ÙŠØ³Ø±Ù‰
       ============================ */
    .desktop-sidebar {
        grid-column: 1;
        grid-row: 1 / -1;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 8px;
        border-right: 1px solid #f0f0f0;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
        z-index: 100;
    }

    .desktop-sidebar-logo {
        width: 42px;
        height: 42px;
        background: var(--primary);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 900;
        color: white;
        margin-bottom: 15px;
        text-decoration: none;
        flex-shrink: 0;
    }

    .desktop-sidebar-item {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #bbb;
        cursor: pointer;
        transition: var(--transition);
        text-decoration: none;
        position: relative;
        border: none;
        background: transparent;
    }

    .desktop-sidebar-item:hover,
    .desktop-sidebar-item.active {
        background: var(--primary-light);
        color: var(--primary);
    }

    .desktop-sidebar-item .ds-badge {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
    }

    .desktop-sidebar-spacer {
        flex: 1;
    }

    /* ============================
       Top Bar - Ø§Ù„Ø´Ø±ÙŠØ· Ø§Ù„Ø¹Ù„ÙˆÙŠ
       ============================ */
    .desktop-topbar {
        grid-column: 2 / 3;
        grid-row: 1;
        background: #fff;
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 0 24px;
        border-bottom: 1px solid #f0f0f0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        z-index: 99;
    }

    .desktop-brand {
        font-size: 22px;
        font-weight: 900;
        color: var(--secondary);
        text-decoration: none;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .desktop-brand span {
        color: var(--primary);
    }

    .desktop-topbar-search {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        background: #f5f5f5;
        border-radius: 12px;
        padding: 10px 18px;
        max-width: 500px;
    }

    .desktop-topbar-search i {
        color: #bbb;
        font-size: 15px;
        flex-shrink: 0;
    }

    .desktop-topbar-search input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 14px;
        font-family: 'Cairo', 'Poppins', sans-serif;
        color: var(--text-main);
        outline: none;
    }

    .desktop-topbar-search input::placeholder {
        color: #ccc;
    }

    .desktop-topbar-right {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-right: auto;
    }

    .desktop-topbar-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: var(--secondary);
        cursor: pointer;
        border: none;
        text-decoration: none;
        transition: var(--transition);
        position: relative;
    }

    .desktop-topbar-icon:hover {
        background: var(--primary-light);
        color: var(--primary);
    }

    .desktop-topbar-avatar {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: var(--primary);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        text-decoration: none;
        flex-shrink: 0;
    }

    .desktop-lang-btn {
        background: #f5f5f5;
        border: none;
        padding: 8px 14px;
        border-radius: 10px;
        font-size: 13px;
        font-family: 'Cairo', sans-serif;
        color: var(--secondary);
        cursor: pointer;
        transition: var(--transition);
        white-space: nowrap;
    }

    .desktop-lang-btn:hover {
        background: var(--primary);
        color: white;
    }

    /* ============================
       Main Content - Ø§Ù„Ù…Ø­ØªÙˆÙ‰ Ø§Ù„Ø±Ø¦ÙŠØ³ÙŠ
       ============================ */
    .desktop-main {
        grid-column: 2 / 3;
        grid-row: 2;
        overflow-y: auto;
        padding: 20px;
        scrollbar-width: thin;
        scrollbar-color: #ddd #f2f3f7;
    }

    .desktop-main::-webkit-scrollbar {
        width: 5px;
    }

    .desktop-main::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 3px;
    }

    /* Ø¥Ø¹Ø§Ø¯Ø© ØªØµÙ…ÙŠÙ… Ø§Ù„Ù€ sections Ø¯Ø§Ø®Ù„ Ø§Ù„Ù…Ø­ØªÙˆÙ‰ */
    .banner-section {
        background: transparent;
        padding: 0 0 16px 0;
    }

    .banner-slide {
        height: 160px;
        border-radius: 18px;
    }

    .restaurants-section {
        padding: 0 0 8px 0;
        background: #fff;
        border-radius: 16px;
        margin-bottom: 16px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .categories-section {
        padding: 0;
        background: #fff;
        border-radius: 16px;
        margin-bottom: 16px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .categories-scroll {
        padding: 12px 16px;
        gap: 8px;
    }

    .cat-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px 8px;
    }

    .section-header h2 {
        font-size: 16px;
    }

    .section-title {
        display: none !important;
    }

    .products-section {
        padding: 0 0 20px 0;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        padding: 0 16px 16px;
    }

    .nearby-restaurants-section {
        background: #fff;
        border-radius: 16px;
        margin-bottom: 16px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        padding-bottom: 12px;
    }

    .nearby-restaurants-scroll {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 4px 16px 16px;
    }

    /* ============================
       Right Cart Panel - Removed
       ============================ */
    .desktop-cart-panel {
        display: none;
    }

    .desktop-cart-header {
        padding: 18px 20px 12px;
        border-bottom: 1px solid #f5f5f5;
    }

    .desktop-cart-header h3 {
        font-size: 17px;
        font-weight: 800;
        color: var(--secondary);
    }

    .desktop-cart-items {
        flex: 1;
        overflow-y: auto;
        padding: 12px 16px;
        scrollbar-width: thin;
    }

    .desktop-cart-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid #f8f8f8;
    }

    .desktop-cart-item img {
        width: 52px;
        height: 52px;
        border-radius: 10px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .desktop-cart-item-info {
        flex: 1;
        min-width: 0;
    }

    .desktop-cart-item-name {
        font-size: 12px;
        font-weight: 700;
        color: var(--secondary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 3px;
    }

    .desktop-cart-item-price {
        font-size: 13px;
        font-weight: 800;
        color: var(--primary);
    }

    .desktop-cart-qty {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .desktop-cart-qty button {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 1.5px solid #eee;
        background: none;
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        line-height: 1;
        color: var(--secondary);
    }

    .desktop-cart-qty button:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

    .desktop-cart-qty span {
        font-size: 13px;
        font-weight: 700;
        min-width: 16px;
        text-align: center;
    }

    .desktop-cart-footer {
        padding: 14px 18px;
        border-top: 1px solid #f0f0f0;
        background: #fafafa;
        border-radius: 0 0 0 0;
    }

    .desktop-cart-row {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: var(--text-muted);
        margin-bottom: 6px;
    }

    .desktop-cart-row.total {
        font-size: 15px;
        font-weight: 800;
        color: var(--secondary);
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px dashed #eee;
    }

    .desktop-cart-row.total span:last-child {
        color: var(--primary);
    }

    .desktop-checkout-btn {
        width: 100%;
        padding: 13px;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 14px;
        font-size: 15px;
        font-weight: 700;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
        margin-top: 12px;
        transition: var(--transition);
        box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
        text-decoration: none;
        display: block;
        text-align: center;
    }

    .desktop-checkout-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
    }

    /* Ø¥Ø®ÙØ§Ø¡ Ø¹Ù†Ø§ØµØ± Ù…ÙˆØ¨Ø§ÙŠÙ„ */
    .cart-sidebar,
    #cart-sidebar,
    #cart-overlay {
        display: none !important;
    }

    /* Ø±Ø³Ø§Ù„Ø© Ø§Ù„Ø³Ù„Ø© Ø§Ù„ÙØ§Ø±ØºØ© */
    .desktop-empty-cart {
        text-align: center;
        padding: 30px 16px;
        color: var(--text-muted);
    }

    .desktop-empty-cart i {
        font-size: 45px;
        color: #ddd;
        margin-bottom: 12px;
        display: block;
    }

    .desktop-empty-cart p {
        font-size: 13px;
    }
}

/* ============================================
   RESTAURANT GALLERY IMAGES
   ============================================ */
.restaurant-gallery-img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow);
    /* Mobile aspect ratio 9:16 (Tall / Portrait) */
    aspect-ratio: 9 / 16;
}

/* Desktop aspect ratio 1:1 (Square) */
@media (min-width: 768px) {
    .restaurant-gallery-img {
        aspect-ratio: 1 / 1;
    }
}