:root {
    --primary: #d32f2f;
    --secondary: #2e7d32;
    --dark: #2d3436;
    --light-gray: #f1f2f6;
    --white: #ffffff;
}

* { margin:0; padding:0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, sans-serif; }
body { background: var(--light-gray); padding-bottom: 70px; color: var(--dark); overflow-x: hidden; }

/* Header */
header { 
    background: var(--white); padding: 15px 20px; display: flex; 
    justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
header h1 { font-size: 20px; }
header h1 span { color: var(--primary); }
.cart-trigger { position: relative; font-size: 22px; cursor: pointer; }
#cart-count {
    position: absolute; top: -5px; right: -8px; background: var(--primary);
    color: white; font-size: 10px; padding: 2px 6px; border-radius: 10px;
}

/* Pages Navigation */
.page { display: none; padding: 20px; min-height: 80vh; animation: slideUp 0.3s ease; }
.page.active { display: block; }
@keyframes slideUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Accueil */
.hero { background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1528459801416-a9e53bbf4e17?q=80') center/cover; padding: 30px 20px; border-radius: 15px; color: white; margin-bottom: 20px; }
.hero h2 { font-size: 24px; }

/* Grille de produits */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 3px 6px rgba(0,0,0,0.05); }
.card img { width: 100%; height: 130px; object-fit: cover; }
.card-body { padding: 10px; }
.card-body h4 { font-size: 14px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { color: var(--primary); font-weight: bold; font-size: 15px; }
.add-btn { width: 100%; background: var(--dark); color: white; border: none; padding: 8px; border-radius: 6px; margin-top: 8px; font-size: 13px; }

/* Barre de recherche */
.search-container { background: white; padding: 10px 15px; border-radius: 10px; display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.search-container input { border: none; outline: none; width: 100%; }
.categories { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.cat-pill { background: white; padding: 6px 15px; border-radius: 20px; font-size: 13px; white-space: nowrap; }
.cat-pill.active { background: var(--secondary); color: white; }

/* Panier */
.cart-summary { background: white; padding: 20px; border-radius: 15px; margin-top: 20px; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }
.total-row { display: flex; justify-content: space-between; font-weight: bold; font-size: 18px; margin-bottom: 15px; }
.checkout-btn { width: 100%; background: #25d366; color: white; border: none; padding: 12px; border-radius: 10px; font-size: 16px; font-weight: bold; }

/* Nav du bas */
.bottom-nav { position: fixed; bottom: 0; width: 100%; height: 65px; background: white; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid #eee; }
.nav-item { color: #b2bec3; text-align: center; font-size: 11px; cursor: pointer; }
.nav-item.active { color: var(--primary); }
.nav-item i { font-size: 20px; display: block; margin-bottom: 2px; }

/* Profil */
.profile-card { text-align: center; background: white; padding: 20px; border-radius: 15px; margin-bottom: 20px; }
.avatar { width: 70px; height: 70px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 10px; }
.menu-list { background: white; border-radius: 15px; overflow: hidden; }
.menu-item { padding: 15px; border-bottom: 1px solid #eee; display: flex; gap: 10px; }