:root{
  --honey: #FBC02D;         /* jaune miel (primaire) */
  --anthracite: #333333;   /* texte principal */
  --bg-soft: #FAFAFA;      /* fond cassé */
  --accent: #FF9800;       /* orange doux */
  --good: #4CAF50;         /* vert (nutri A/B) */
  --bad: #E53935;          /* rouge (nutri D/E) */
  --muted: #6c6c6c;        /* gris texte secondaire */
  --card-bg: #ffffff;      /* cartes blanches */
  --card-border: rgba(251,176,45,0.12); /* bordure miel subtile */
}

body{
  background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
  color: var(--anthracite);
  -webkit-font-smoothing:antialiased;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Header */
.brand {
  display:inline-flex;
  gap:.6rem;
  align-items:center;
  justify-content:center;
  padding: .4rem .8rem;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(251,176,45,0.12), rgba(255,152,0,0.04));
  border: 1px solid var(--card-border);
}
.brand .bee {
  width:36px;height:36px;
  display:inline-grid;place-items:center;
  font-size:20px;
  background:var(--honey);
  color:var(--anthracite);
  border-radius:50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Product area */
.product-img {
  border-radius: 14px;
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 30px rgba(51,51,51,0.08);
  background: linear-gradient(180deg, #fff 0%, #fff 100%);
  max-width: 100%;
}

.card-elevated{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(51,51,51,0.06);
  border-radius: 14px;
}

.nutri-badge {
  font-weight:700;
  letter-spacing:.06em;
  padding:.35rem .55rem;
  border-radius: .6rem;
  color: white;
}

/* Nutri colors */
.nutri-A{ background: linear-gradient(180deg, #66bb6a, #4caf50); }
.nutri-B{ background: linear-gradient(180deg, #9ccc65, #7cb342); }
.nutri-C{ background: linear-gradient(180deg, #ffb74d, #ff9800); }
.nutri-D{ background: linear-gradient(180deg, #ff8a65, #f4511e); }
.nutri-E{ background: linear-gradient(180deg, #ef5350, #e53935); }

.price-pill{
  display:inline-block;
  padding:.4rem .7rem;
  border-radius: .6rem;
  background: linear-gradient(90deg, rgba(76,175,80,0.09), rgba(76,175,80,0.03));
  border: 1px solid rgba(76,175,80,0.12);
  font-weight:700;
  color: var(--anthracite);
  min-width:110px;
}

/* price cards hex-ish subtle */
.price-card {
  border-radius: 12px;
  padding: 1.15rem;
  text-align:center;
}

/* Buttons */
.btn-honey {
  background: var(--honey);
  border: 1px solid rgba(0,0,0,0.06);
  color: var(--anthracite);
  font-weight:600;
  box-shadow: 0 8px 24px rgba(251,176,45,0.12);
  border-radius: 999px;
  padding: .6rem 1.1rem;
}
.btn-honey:hover{ filter:brightness(.97); }

.btn-outline-muted{
  border-radius: 999px;
  padding: .55rem 1rem;
  color:var(--anthracite);
  border:1px solid rgba(51,51,51,0.06);
  background: rgba(51,51,51,0.02);
  font-weight:600;
}

/* small utilities */
.meta-key{ color:var(--muted); font-size:.95rem; }
.meta-val{ font-weight:600; color:var(--anthracite); }

@media (max-width:767px){
  .brand .bee{ width:32px;height:32px;font-size:18px; }
}

.bottom-nav {
  height: 60px;
  z-index: 1030;
}

.bottom-nav .nav-item {
  color: #555;
  text-decoration: none;
  font-size: 12px;
}

.bottom-nav .nav-item:hover {
  color: #000;
}

.add-btn {
  position: relative;
  top: -20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background-color: #ffc107; /* jaune Beeconomie */
  color: #000;
  font-size: 32px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.add-btn:focus {
  outline: none;
}

#productModal .modal-body {
  overflow: visible;
}

/* Toast centré au-dessus de la bottom bar */
#toast-wrapper {
  position: fixed;
  bottom: 80px; /* ajuste selon la hauteur de ta barre d’action */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  width: 90%;
  max-width: 400px;
  pointer-events: none; /* évite de bloquer les clics dessous */
}

#toast-wrapper .toast {
  pointer-events: auto;
}

