@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&display=swap");

/* ORIGINAL CONTENT PRESERVED */
:root{
  /* Couleurs principales */
  --accent:#ff8b5a;           /* orange saumon principal */
  --accent-dark:#ff6b35;      /* variante plus foncée */
  --accent-soft:#ffe2d3;      /* fond doux pour badges/prix */
  --bg:#f7f8fb;
  --header-height:72px;
  --bottom-nav-height:52px;
  --border:#e5e7eb;
  --text:#111827;
  --muted:#6b7280;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family:"Poppins",-apple-system,BlinkMacSystemFont,"SF Pro Rounded","Nunito",system-ui,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* Screens d'intro */
.screen{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  z-index:20;
}
.screen.hidden{display:none;}
.hidden{display:none!important;}
.screen-inner{
  width:100%;
  max-width:380px;
  padding:24px;
  border-radius:24px;
}

/* Titres / sous-titres */
.brand{
  font-size:28px;
  font-weight:800;
  letter-spacing:-0.03em;
  margin-bottom:8px;
}
.subtitle{
  color:var(--muted);
  margin-bottom:16px;
  font-size:14px;
}
.subtitle.small{
  font-size:14px;
  margin-bottom:4px;
}
.subtitle.xsmall{
  font-size:11px;
  margin-top:4px;
}

/* Cartes mode */
.mode-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:12px;
}
.mode-card{
  border-radius:20px;
  border:1px solid var(--border);
  padding:16px 18px;
  background:#fdfdfd;
  cursor:pointer;
  text-align:left;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
  transition:all .16s ease;
}
.mode-card h2{
  font-size:18px;
  margin-bottom:6px;
  font-weight:700;
  letter-spacing:-0.02em;
}
.mode-card p{
  font-size:14px;
  color:var(--muted);
}
.mode-card:active{
  transform:scale(.97);
  box-shadow:0 4px 16px rgba(15,23,42,.08);
}
@media (hover:hover){
  .mode-card:hover{
    border-color:var(--accent-soft);
    box-shadow:0 14px 34px rgba(15,23,42,.09);
  }
}


#screenMode{
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--tenant-secondary) 70%, white 30%) 0%, transparent 36%),
    linear-gradient(135deg, var(--tenant-primary) 0%, color-mix(in srgb, var(--tenant-primary) 70%, var(--tenant-secondary) 30%) 48%, var(--tenant-secondary) 100%);
}


.welcome-logo-wrap{
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.welcome-logo-wrap.hidden{display:none;}
.welcome-logo{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

#screenMode .screen-inner{
  max-width: 420px;
  padding: 32px 24px;
  text-align: center;
}

#screenMode .brand,
#screenMode .subtitle{
  color: #ffffff;
  text-align: center;
}

#screenMode .brand{
  font-size: clamp(32px, 8.5vw, 44px);
  margin-bottom: 10px;
  white-space: nowrap;
  line-height: 1.08;
}

#screenMode .subtitle{
  font-size: 18px;
  margin-bottom: 22px;
}

#screenMode .mode-grid{
  margin-top: 18px;
}

#screenMode .mode-card{
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.18);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#screenMode .mode-card h2{
  width: 100%;
  margin-bottom: 0;
  text-align: center;
  font-size: 28px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.mode-table-icon{
  display:inline-block;
  width: 42px;
  height: 30px;
  flex:0 0 auto;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath fill='black' d='M12 8a3 3 0 0 1 3-3h34a3 3 0 0 1 0 6H35v18h9a3 3 0 1 1 0 6H20a3 3 0 1 1 0-6h9V11H15a3 3 0 0 1-3-3Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath fill='black' d='M12 8a3 3 0 0 1 3-3h34a3 3 0 0 1 0 6H35v18h9a3 3 0 1 1 0 6H20a3 3 0 1 1 0-6h9V11H15a3 3 0 0 1-3-3Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

#screenMode .mode-card .mode-table-icon{
  display: none;
}

#screenMode .mode-card p{
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,.94);
  font-size: 17px;
  line-height: 1.35;
  margin-top: 6px;
}

#screenMode .mode-card:active{
  transform: scale(.985);
}

@media (hover:hover){
  #screenMode .mode-card:hover{
    border-color: rgba(255,255,255,.4);
    box-shadow: 0 22px 46px rgba(0,0,0,.16);
  }
}

/* Input prénom */
.text-input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid #d1d5db;
  margin-bottom:12px;
  font-size:15px;
  background:#f9fafb;
}

/* Boutons */
button{
  font-family:inherit;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}

.btn{
  border:none;
  border-radius:999px;
  padding:10px 18px;
  font-size:15px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
  transition:background .15s,box-shadow .15s,transform .05s,color .15s;
}
.btn.full{width:100%;}
.btn.primary{
  background:linear-gradient(to bottom,#ff9a6d,#ff7d4d);
  color:#ffffff;
  box-shadow:0 10px 28px rgba(255,124,75,.55);
}
.btn.primary:hover{
  background:linear-gradient(to bottom,#ffb28e,#ff8b5a);
  box-shadow:0 14px 34px rgba(255,124,75,.6);
}
.btn.primary:disabled{
  opacity:.45;
  box-shadow:none;
  cursor:not-allowed;
}
.btn.success{
  background:linear-gradient(to bottom,#22c55e,#16a34a);
  color:#ffffff;
  box-shadow:0 10px 28px rgba(22,163,74,.35);
}
.btn.success:hover{
  background:linear-gradient(to bottom,#34d399,#22c55e);
  box-shadow:0 14px 34px rgba(22,163,74,.4);
}
.btn.danger{
  background:linear-gradient(to bottom,#ef4444,#dc2626);
  color:#ffffff;
  box-shadow:0 10px 28px rgba(220,38,38,.3);
}
.btn.danger:hover{
  background:linear-gradient(to bottom,#f87171,#ef4444);
  box-shadow:0 14px 34px rgba(220,38,38,.35);
}
.btn.neutral{
  background:linear-gradient(to bottom,#9ca3af,#6b7280);
  color:#ffffff;
  box-shadow:0 10px 24px rgba(107,114,128,.24);
}
.btn.neutral:hover{
  background:linear-gradient(to bottom,#b0b7c3,#7c8594);
  box-shadow:0 14px 32px rgba(107,114,128,.28);
}
.btn.ghost{
  background:#ffffff;
  border:1px solid var(--border);
  color:#374151;
}
.btn.ghost:hover{
  background:#f9fafb;
}
.btn.icon{
  border-radius:999px;
  width:32px;
  height:32px;
  padding:0;
}
.btn:active{
  transform:scale(.97);
}
.icon-btn{
  border:none;
  background:transparent;
  font-size:24px;
  cursor:pointer;
}

/* App */
.app.hidden{display:none;}
.app{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* HEADER APP */
.app-header{
  padding:16px 16px 10px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  background:#ffffff;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:10;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.app-brand-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
}
.app-title h1{
  font-size:24px;
  font-weight:800;
  letter-spacing:-0.04em;
}
.header-logo{
  width:52px;
  height:52px;
  border-radius:14px;
  object-fit:contain;
  background:#ffffff;
  border:1px solid var(--border);
  box-shadow:0 8px 24px rgba(15,23,42,.08);
  padding:5px;
}
.visually-hidden-title{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.app-meta{
  display:flex;
  gap:6px;
  align-items:flex-end;
}
.app-main{
  display:flex;
  flex:1;
  gap:16px;
  padding:12px 16px 80px;
  max-width:1200px;
  width:100%;
  margin:0 auto;
}
.menu-section{flex:2;touch-action:pan-y;min-height:260px;}
.status-section{flex:1;min-width:260px;}

.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#f3f4f6;
  font-size:11px;
  color:#4b5563;
}

/* Menu / produits */

.categories{display:none;}

.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:12px;
}

.product-card{
  background:#ffffff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(15,23,42,.10);
  display:flex;
  flex-direction:column;
  cursor:pointer;
  transition:transform .12s ease,box-shadow .12s ease;
}
.product-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(15,23,42,.16);
}
.product-img{
  width:100%;
  height:120px;
  object-fit:cover;
}
.product-body{
  padding:10px 12px 12px;
}
.product-title{
  font-size:15px;
  font-weight:700;
  letter-spacing:-0.02em;
  margin-bottom:4px;
}
.product-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
  color:var(--muted);
}
.product-price{
  font-weight:700;
  color:#111827;
}

/* Statut commande */

.order-badge{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 12px;
  margin-bottom:10px;
  box-shadow:0 6px 18px rgba(15,23,42,.04);
  display:flex;
  flex-direction:column;
  gap:6px;
}
.order-badge-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
  font-weight:600;
  color:#111827;
}
.order-badge-items{
  list-style:none;
  margin:4px 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.order-badge-line-main{
  font-size:14px;
  color:#374151;
}
.order-badge-line-supp{
  font-size:11px;
  color:#6b7280;
}
.order-badge-footer{
  font-size:11px;
  color:#9ca3af;
}

.order-badge-line{
  display:flex;
  align-items:flex-start;
  gap:8px;
}
.order-badge-thumb{
  width:44px;
  height:44px;
  border-radius:12px;
  background:#f3f4f6;
  flex-shrink:0;
  overflow:hidden;
}
.order-badge-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.order-badge-text{
  flex:1;
  min-width:0;
}
.order-badge-line-main{
  font-size:14px;
  color:#111827;
}
.order-badge-supp-list{
  margin:4px 0 0;
  padding-left:16px;
  font-size:11px;
  color:#6b7280;
}
.order-badge-supp-list li{
  list-style:disc;
}
.status-card{
  background:#ffffff;
  border-radius:18px;
  border:1px solid var(--border);
  padding:14px 14px 12px;
  box-shadow:0 10px 26px rgba(15,23,42,.06);
}
.status-card h2{
  font-size:18px;
  font-weight:700;
  letter-spacing:-0.02em;
  margin-bottom:4px;
}
.order-items{
  list-style:none;
  margin:8px 0 4px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:14px;
}
.order-items li{
  display:flex;
  justify-content:space-between;
  color:#374151;
}

/* Cartbar */
.cartbar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  background:#ffffff;
  border-top:1px solid var(--border);
  padding:10px 14px;
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:space-between;
  z-index:20;
  box-shadow:0 -8px 20px rgba(15,23,42,.08);
}
.cart-info{
  flex:1;
  font-size:14px;
  color:#111827;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}


/* Barre de navigation inférieure client — version stable sans vague */
.bottom-nav{
  --nav-cart-size:66px;
  position:fixed;
  left:10px;
  right:10px;
  bottom:10px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  align-items:center;
  min-height:58px;
  padding:6px 22px calc(6px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.96);
  border:1px solid rgba(226,232,240,.72);
  border-radius:24px;
  box-shadow:0 -12px 34px rgba(15,23,42,.06),0 20px 44px rgba(15,23,42,.12);
  backdrop-filter:blur(22px) saturate(1.12);
  -webkit-backdrop-filter:blur(22px) saturate(1.12);
  z-index:30;
  overflow:visible;
  isolation:isolate;
}

.bottom-nav::before,
.bottom-nav::after{display:none !important;}

.bottom-nav-btn{
  position:relative;
  z-index:1;
  border:none;
  background:transparent !important;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  min-width:0;
  min-height:46px;
  padding:4px 8px 3px;
  border-radius:22px;
  color:#858da0;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:color .16s ease, transform .12s ease, opacity .16s ease;
}

.bottom-nav-btn:active{transform:scale(.98);}

/* Alignement vertical navbar : Menu et Ma commande remontés sur la ligne du panier */
.nav-menu-btn,
.nav-order-btn{
  transform:translateY(-7px);
}

.nav-menu-btn:active,
.nav-order-btn:active{
  transform:translateY(-7px) scale(.98);
}


.nav-icon-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.bottom-nav-btn .nav-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  color:currentColor;
}

.bottom-nav-btn .nav-icon svg{
  width:100%;
  height:100%;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.35;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.nav-icon-menu{color:#6f788a;}
.nav-menu-btn.active .nav-icon-menu{color:#ffab00;}
.nav-icon-order{color:#6f788a;}

.nav-cart-btn{
  align-self:end;
  justify-self:center;
  justify-content:flex-end;
  gap:2px;
  min-height:46px;
  padding-top:26px;
  color:#111827;
}

.nav-cart-action{
  width:var(--nav-cart-size);
  height:var(--nav-cart-size);
  border-radius:999px;
  background:linear-gradient(135deg,#ffc226 0%,#ffa000 100%);
  color:#ffffff;
  box-shadow:0 20px 38px rgba(255,160,0,.34),0 7px 18px rgba(15,23,42,.10);
  position:absolute;
  left:50%;
  top:calc(-1 * (var(--nav-cart-size) - 18px));
  transform:translateX(-50%);
  z-index:3;
}

.nav-cart-action .nav-icon{
  width:50px;
  height:50px;
  color:#ffffff;
}

.nav-cart-action .nav-icon svg{stroke-width:1.45;}

.cart-badge{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:27px;
  height:27px;
  padding:0 8px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#ffad00,#ff8a00);
  color:#ffffff;
  font-size:14px;
  font-weight:950;
  line-height:1;
  box-shadow:0 10px 20px rgba(255,138,0,.34);
  border:2px solid #ffffff;
}

.cart-badge.hidden{display:none;}

.bottom-nav-btn .nav-label{
  font-size:15px;
  font-weight:850;
  letter-spacing:-.035em;
  color:#111827;
  white-space:nowrap;
}

.bottom-nav-btn .nav-label-secondary{
  font-size:11px;
  font-weight:650;
  color:#7f8798;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.nav-menu-btn.active{color:#111827;}
.nav-menu-btn.active .nav-label{color:#111827;}
.nav-menu-btn.active::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:1px;
  width:56px;
  height:3px;
  border-radius:999px;
  background:#ffb80e;
  transform:translateX(-50%);
  box-shadow:0 8px 20px rgba(255,184,14,.35);
}

.nav-cart-btn.active .nav-label,
.nav-cart-btn.active .nav-label-secondary{color:#111827;}
.nav-order-btn.active{color:#111827;}
.nav-order-btn.active::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:1px;
  width:56px;
  height:3px;
  border-radius:999px;
  background:#ffb80e;
  transform:translateX(-50%);
  box-shadow:0 8px 20px rgba(255,184,14,.35);
}

@media(max-width:520px){
  .nav-menu-btn,
  .nav-order-btn{transform:translateY(-6px);}
  .nav-menu-btn:active,
  .nav-order-btn:active{transform:translateY(-6px) scale(.98);}
}

@media(max-width:520px){
  .bottom-nav{
    --nav-cart-size:58px;
    left:7px;
    right:7px;
    bottom:8px;
    min-height:55px;
    padding:5px 10px calc(5px + env(safe-area-inset-bottom));
    border-radius:24px;
  }
  .bottom-nav-btn{min-height:44px;gap:2px;padding:3px 4px 2px;}
  .bottom-nav-btn .nav-icon{width:25px;height:25px;}
  .bottom-nav-btn .nav-icon svg{stroke-width:1.25;}
  .bottom-nav-btn .nav-label{font-size:13px;}
  .bottom-nav-btn .nav-label-secondary{font-size:10px;}
  .nav-cart-btn{min-height:44px;padding-top:25px;gap:2px;}
  .nav-cart-action{top:calc(-1 * (var(--nav-cart-size) - 16px));box-shadow:0 16px 30px rgba(255,160,0,.30),0 7px 16px rgba(15,23,42,.10);}
  .nav-cart-action .nav-icon{width:42px;height:42px;}
  .cart-badge{min-width:23px;height:23px;font-size:11px;top:-4px;right:-4px;border-width:2px;}
  .nav-menu-btn.active::after,
  .nav-order-btn.active::after{width:50px;height:3px;bottom:1px;}
}

@media(min-width:900px){
  .bottom-nav{
    max-width:1200px;
    margin:0 auto;
    left:0;
    right:0;
  }
}

.drawer{
  position:fixed;
  inset:0;
  bottom:var(--bottom-nav-height);
  display:flex;
  justify-content:flex-end;
  background:rgba(15,23,42,.35);
  z-index:30;
}
.drawer.hidden{display:none;}
.drawer-inner{
  width:100%;
  max-width:420px;
  height:100%;
  background:#ffffff;
  border-left:1px solid var(--border);
  display:flex;
  flex-direction:column;
}
.drawer-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
}
.cart-items{
  flex:1;
  overflow-y:auto;
  padding:10px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.cart-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px;
  border-radius:18px;
  background:#f9fafb;
  border:1px solid rgba(226,232,240,.9);
}
.cart-item-editable{
  cursor:pointer;
  transition:transform .12s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.cart-item-editable:hover{
  transform:translateY(-1px);
  border-color:rgba(255,124,75,.3);
  box-shadow:0 10px 22px rgba(15,23,42,.08);
  background:#fffdfb;
}
.cart-item-info{
  min-width:0;
  flex:1;
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.cart-item-thumb{
  width:56px;
  height:56px;
  border-radius:14px;
  overflow:hidden;
  flex:0 0 56px;
  background:#e5e7eb;
  box-shadow:0 8px 18px rgba(15,23,42,.08);
}
.cart-item-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.cart-item-main{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:14px;
}
.cart-item-title{
  font-weight:700;
  color:#111827;
}
.cart-item-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size:13px;
  color:var(--muted);
}
.cart-item-edit-hint{
  font-size:11px;
  font-weight:600;
  color:var(--accent-dark);
}
.cart-item-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}
.cart-totals{
  padding:10px 16px 14px;
  border-top:1px solid var(--border);
}
.row{
  display:flex;
  justify-content:space-between;
  font-size:14px;
  margin-top:4px;
}
.row.total{
  font-weight:700;
  font-size:15px;
}

.confirm-modal{
  position:fixed;
  inset:0;
  z-index:45;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.confirm-modal.hidden{display:none;}
.confirm-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.58);
  backdrop-filter:blur(6px);
}
.confirm-modal-card{
  position:relative;
  z-index:1;
  width:min(100%, 420px);
  background:linear-gradient(180deg,#ffffff 0%,#fff8f3 100%);
  border:1px solid rgba(255,139,90,.18);
  border-radius:24px;
  padding:26px 20px 20px;
  box-shadow:0 24px 60px rgba(15,23,42,.22);
  display:flex;
  flex-direction:column;
  gap:14px;
}
.confirm-modal-card h2{
  margin:0;
  font-size:22px;
  font-weight:800;
  letter-spacing:-0.03em;
  text-align:center;
  color:var(--accent-dark);
}
.confirm-modal-card p{
  margin:0;
  font-size:15px;
  line-height:1.6;
  color:#4b5563;
  text-align:center;
}
.confirm-modal-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:8px;
}
.confirm-modal-actions .btn{
  min-height:48px;
  font-weight:800;
  color:#ffffff;
}

.empty-cart-card{
  width:min(100%, 460px);
  padding:32px 26px 24px;
  border-radius:28px;
  background:linear-gradient(180deg,#ffffff 0%,#fffdf8 100%);
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 30px 80px rgba(15,23,42,.28);
  align-items:center;
}
.empty-cart-modal .confirm-modal-backdrop{
  background:rgba(15,23,42,.68);
  backdrop-filter:blur(7px);
}
.empty-cart-visual{
  width:118px;
  height:118px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--accent);
  background:radial-gradient(circle at 50% 42%, rgba(255,184,14,.22), rgba(255,184,14,.08) 68%, rgba(255,184,14,0) 69%);
  margin-bottom:8px;
}
.empty-cart-visual svg{
  width:74px;
  height:74px;
  filter:drop-shadow(0 10px 18px rgba(255,184,14,.22));
}
.empty-cart-card h2{
  color:#111827;
  font-size:28px;
  font-weight:800;
  letter-spacing:-.04em;
}
.empty-cart-card p{
  max-width:360px;
  font-family:'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size:16px;
  font-weight:400;
  color:#6b7280;
  line-height:1.55;
}
.empty-cart-separator{
  width:100%;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(15,23,42,.12), transparent);
  margin:10px 0 2px;
}
.empty-cart-card .confirm-modal-actions{
  width:100%;
}
.empty-cart-card .btn.primary{
  min-height:54px;
  border-radius:18px;
  font-size:16px;
  font-weight:700;
  background:linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow:0 14px 30px rgba(255,184,14,.28);
}
@media (max-width:480px){
  .empty-cart-card{
    width:min(100%, 340px);
    padding:28px 20px 20px;
    border-radius:24px;
  }
  .empty-cart-visual{
    width:98px;
    height:98px;
  }
  .empty-cart-visual svg{
    width:62px;
    height:62px;
  }
  .empty-cart-card h2{
    font-size:23px;
  }
  .empty-cart-card p{
    font-size:14px;
  }
}

/* --- FICHE PRODUIT PLEIN ÉCRAN --- */
.modal{
  position:fixed;
  inset:0;
  z-index:40;
  display:flex;
  align-items:stretch;
  justify-content:center;
  pointer-events:none;
}
.modal.hidden{display:none;}
.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.65);
  backdrop-filter:blur(10px);
  pointer-events:auto;
}
.modal-sheet{
  position:relative;
  z-index:41;
  pointer-events:auto;
  background:linear-gradient(180deg,#0f172a 0%,#020617 40%,#020617 100%);
  width:100%;
  max-width:480px;
  height:100dvh;
  margin:0 auto;
  display:block;
  border-radius:24px 24px 0 0;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
@media(min-width:768px){
  .modal-sheet{
    margin-top:32px;
    margin-bottom:32px;
    border-radius:32px;
  }
}
.modal-header{
  position:absolute;
  top:0;
  left:0;
  right:0;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:10px 16px 6px;
  pointer-events:none;
}
.modal-header .icon-circle{
  pointer-events:auto;
}
.icon-circle{
  width:42px;
  height:42px;
  border-radius:999px;
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
  font-size:15px;
  cursor:pointer;
}
.icon-circle.muted{
  background:#f3f4f6;
  color:#9ca3af;
}
.icon-circle-back{
  width:52px;
  height:52px;
  font-size:24px;
  font-weight:800;
}
.modal-hero{
  position:sticky;
  top:0;
  z-index:1;
  width:100%;
  height:min(100vw,480px);
  min-height:min(100vw,480px);
  max-height:480px;
  aspect-ratio:1 / 1;
  overflow:hidden;
  background:#0f172a;
}
.modal-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(15,23,42,.36) 0%,rgba(15,23,42,.05) 38%,rgba(15,23,42,.28) 100%);
  pointer-events:none;
}
.modal-img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
  display:block;
}
.modal-content{
  z-index:2;
  background:#ffffff;
  border-radius:28px 28px 0 0;
  padding:20px 18px calc(24px + env(safe-area-inset-bottom));
  margin-top:-30px;
  position:relative;
  box-shadow:0 -18px 42px rgba(15,23,42,.12);
}
.modal-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.modal-title-row h2{
  margin:0;
  font-size:20px;
  font-weight:800;
  letter-spacing:-0.03em;
}
#modalCategory{
  margin-top:4px;
}
.modal-price-pill{
  min-width:90px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent-dark);
  font-weight:700;
  font-size:14px;
  text-align:right;
}
.modal-desc{
  font-size:14px;
  color:#4b5563;
  margin-bottom:12px;
}
.allergens-line{
  margin-top:10px;
  color:#111827;
  font-size:13px;
  line-height:1.45;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#ffffff;
  padding:0;
}
.allergens-line summary{
  list-style:none;
  cursor:pointer;
  padding:11px 13px;
  font-weight:800;
  color:#111827;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.allergens-line summary::-webkit-details-marker{display:none;}
.allergens-line summary::after{
  content:"⌄";
  font-size:15px;
  color:#6b7280;
}
.allergens-line[open] summary::after{
  transform:rotate(180deg);
}
.allergens-content{
  padding:0 13px 12px;
  color:#4b5563;
}
.allergens-label{
  font-weight:800;
  color:#111827;
}
.allergens-value{
  color:#4b5563;
}

/* Suppléments relookés */
.supplements-block{
  margin:14px 0 10px;
  padding:12px;
  border-radius:22px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
}
.supplements-title{
  font-size:15px;
  font-weight:800;
  margin-bottom:10px;
  color:#111827;
}
.supplements-list{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-bottom:8px;
}
.supplement-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:60px;
  padding:10px 12px;
  font-size:14px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#ffffff;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
  cursor:pointer;
}
.supplement-main{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1;
}
.supplement-avatar{
  width:42px;
  height:42px;
  border-radius:999px;
  background:#ffedd5;
  color:#c2410c;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  flex:0 0 auto;
}
.supplement-name{
  font-weight:700;
  color:#111827;
  line-height:1.2;
}
.supplement-price{
  color:#4b5563;
  font-weight:600;
  margin-top:2px;
}
.supplements-note{
  font-size:11px;
  color:#6b7280;
}

.product-note-block{
  margin:12px 0 10px;
  padding:12px;
  border-radius:20px;
  background:#ffffff;
  border:1px solid #e5e7eb;
}
.product-note-title{
  display:block;
  font-size:14px;
  font-weight:800;
  color:#111827;
  margin-bottom:8px;
}
.product-note-input{
  width:100%;
  min-height:66px;
  resize:vertical;
  border-radius:16px;
  border:1px solid #d1d5db;
  background:#f9fafb;
  color:#111827;
  font:inherit;
  font-size:14px;
  line-height:1.4;
  padding:11px 12px;
  outline:none;
}
.product-note-input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
  background:#ffffff;
}
.product-note-help{
  margin-top:7px;
  color:#6b7280;
  font-size:11px;
  line-height:1.35;
}
.cart-item-note{
  margin-top:4px;
  color:#92400e;
  font-size:11px;
  font-weight:700;
  line-height:1.35;
}
.order-badge-note{
  margin-top:6px;
  color:#92400e;
  font-size:11px;
  font-weight:700;
  line-height:1.35;
}

.supplements-block input[type="checkbox"]{
  width:22px;
  height:22px;
  margin:0;
  accent-color: var(--accent);
  flex:0 0 auto;
}
@media (max-width: 480px){
  .supplement-line{
    min-height:64px;
    padding:10px 12px;
    border-radius:24px;
  }
  .supplement-avatar{
    width:38px;
    height:38px;
    font-size:18px;
  }
}

/* Quantité */
.qty-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:10px;
}
.qty-label{
  font-size:14px;
  color:#374151;
}
.qty-controls{
  display:flex;
  align-items:center;
  gap:8px;
}
.qty-controls span{
  min-width:28px;
  text-align:center;
  font-weight:600;
}
.btn.primary.big{
  position:sticky;
  bottom:12px;
  z-index:4;
  margin-top:14px;
  font-size:15px;
  padding:13px 16px;
  box-shadow:0 12px 28px rgba(190,24,93,.28);
}

/* Barre de catégories fixe sous le header - chips avec emoji */
.category-wrapper{
  position:sticky;
  top:var(--header-height);
  z-index:9;
  background:#ffffff;
  border-bottom:1px solid var(--border);
  padding:14px 16px 18px;
}
.cat-heading{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:var(--muted);
  margin-bottom:12px;
}
.category-bar{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding-bottom:6px;
}
.category-bar::-webkit-scrollbar{
  height:5px;
}
.category-bar::-webkit-scrollbar-track{
  background:transparent;
}
.category-bar::-webkit-scrollbar-thumb{
  background:#d1d5db;
  border-radius:999px;
}
.category-chip{
  flex:0 0 auto;
  width:82px;
  height:82px;
  border-radius:22px;
  background:#ffffff;
  border:1px solid #e5e7eb;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(15,23,42,.08);
  transition:
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .08s ease;
}
.category-chip .emoji{
  font-size:34px;
  line-height:1;
}
.category-chip span:last-child{
  font-size:13px;
  font-weight:600;
  color:#374151;
}
.category-chip.active{
  background:var(--accent);
  border-color:var(--accent-dark);
  box-shadow:0 10px 26px rgba(255,124,75,.55);
  transform:translateY(-2px);
}
.category-chip.active span:last-child{
  color:#fdfdfd;
}
.category-chip.active .emoji{
  transform:scale(1.1);
}

.order-page{
  max-width:1200px;
  width:100%;
  margin:0 auto;
  padding:12px 16px 80px;
}


/* Responsive */
.muted{color:#9ca3af;}

@media(max-width:900px){
  .app-main{
    flex-direction:column;
    padding:0 12px 80px;
  }
  .status-section{
    display:none;
  }
}

@media(max-width:640px){
  .app-header{
    padding:12px 12px 6px;
  }
  .app-main{
    padding:0 8px 80px;
  }
  .drawer-inner{
    max-width:100%;
  }
  .category-wrapper{
    padding:10px 10px 14px;
  }
  .category-chip{
    width:74px;
    height:74px;
    border-radius:20px;
  }
  .category-chip .emoji{
    font-size:32px;
  }
}


/* ===== SCREEN PRENOM - MEME DA QUE ACCUEIL ===== */
#screenName{
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--tenant-secondary) 70%, white 30%) 0%, transparent 36%),
    linear-gradient(135deg, var(--tenant-primary) 0%, color-mix(in srgb, var(--tenant-primary) 70%, var(--tenant-secondary) 30%) 48%, var(--tenant-secondary) 100%);
}

#screenName .screen-inner{
  max-width: 420px;
  padding: 32px 24px;
  text-align: center;
}

#screenName .brand,
#screenName .subtitle{
  color: #ffffff;
  text-align: center;
}

#screenName .brand{
  font-size: clamp(32px, 7vw, 42px);
  margin-bottom: 10px;
}

#screenName .subtitle{
  display: none;
}

#screenName .text-input{
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 16px;
  padding: 14px;
  font-size: 16px;
  margin-bottom: 16px;
}

#screenName .btn.primary{
  background: var(--tenant-secondary);
  color:#ffffff;
  box-shadow:0 10px 28px color-mix(in srgb, var(--tenant-secondary) 42%, transparent);
}

#screenName .btn.neutral{
  background: rgba(255,255,255,.25);
  color:#ffffff;
}

:root{--tenant-primary:#111827;--tenant-secondary:#f59e0b;--tenant-accent:#f59e0b;}
.app-header,.btn.primary,.category-chip.active,.pill{border-color:var(--tenant-primary) !important;}
.btn.primary,.category-chip.active{background:var(--tenant-primary) !important;}
.product-price,.brand,.app-title h1{color:var(--tenant-primary);}
.product-price,.modal-price-pill{color:var(--tenant-primary);}
.category-chip.active{box-shadow:0 10px 24px color-mix(in srgb, var(--tenant-primary) 24%, transparent);}

#screenName .btn.primary{
  background: color-mix(in srgb, var(--tenant-primary) 80%, #000000 20%) !important;
  border-color: color-mix(in srgb, var(--tenant-primary) 80%, #000000 20%) !important;
  color:#ffffff !important;
  font-weight:600;
  box-shadow:0 14px 34px color-mix(in srgb, var(--tenant-primary) 34%, transparent);
}

@media (max-width: 480px){
  .modal-sheet{
    border-radius:22px 22px 0 0;
  }
  .modal-hero{
    height:min(100vw,480px);
    min-height:min(100vw,480px);
    max-height:480px;
  }
  .modal-content{
    border-radius:26px 26px 0 0;
    padding:18px 18px calc(22px + env(safe-area-inset-bottom));
  }
  .modal-title-row h2{
    font-size:19px;
  }
}
.modal-hero:has(.modal-img[style*="display: none"]) {
  display:none;
}


/* v43 — Product sheet UI refresh: aesthetic-only overrides */
.modal-sheet{
  background:#f8fafc;
  border-radius:32px 32px 0 0;
  box-shadow:0 28px 80px rgba(15,23,42,.24);
}
@media(min-width:768px){
  .modal-sheet{
    border-radius:24px;
    overflow:hidden;
  }
}
.modal-header{
  padding:14px 18px 8px;
}
.icon-circle-back{
  width:56px;
  height:56px;
  font-size:24px;
  background:rgba(255,255,255,.96);
  box-shadow:0 14px 34px rgba(15,23,42,.18);
}
.modal-hero{
  background:linear-gradient(180deg,#0b1220 0%,#111827 100%);
}
.modal-hero::after{
  background:linear-gradient(180deg,rgba(15,23,42,.35) 0%,rgba(15,23,42,0) 46%,rgba(15,23,42,.18) 100%);
}
.modal-img{
  padding:0;
  object-fit:contain;
  object-position:center center;
  filter:saturate(1.06) contrast(1.03);
}
.modal-content{
  border-radius:34px 34px 0 0;
  padding:28px 22px calc(28px + env(safe-area-inset-bottom));
  margin-top:-34px;
  box-shadow:0 -22px 55px rgba(15,23,42,.14);
}
.modal-content::before{
  content:"";
  position:absolute;
  top:9px;
  left:50%;
  width:58px;
  height:6px;
  border-radius:999px;
  background:#c5cad3;
  transform:translateX(-50%);
}
.modal-title-row{
  align-items:center;
  margin-bottom:12px;
}
.modal-title-row > div:first-child{
  position:relative;
  padding-left:64px;
  min-height:58px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.modal-title-row > div:first-child::before{
  content:attr(data-category-icon);
  position:absolute;
  left:0;
  top:50%;
  width:50px;
  height:50px;
  border-radius:18px;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#fff7ed 0%,#fdf2f8 100%);
  border:1px solid rgba(219,39,119,.13);
  color:var(--accent);
  box-shadow:0 12px 26px rgba(219,39,119,.08);
}
.modal-title-row h2{
  font-size:28px;
  line-height:1.05;
  font-weight:900;
  letter-spacing:-0.045em;
  color:#0f172a;
}
#modalCategory{
  color:#8a94a6;
  font-weight:700;
  letter-spacing:-0.01em;
}
.modal-price-pill{
  position:absolute;
  top:-76px;
  right:18px;
  min-width:108px;
  padding:14px 18px;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:var(--tenant-primary, var(--accent));
  font-size:18px;
  font-weight:900;
  box-shadow:0 16px 38px rgba(15,23,42,.18);
  border:1px solid rgba(255,255,255,.72);
}
.modal-desc{
  margin:10px 0 18px;
  font-size:15px;
  line-height:1.65;
  color:#4b5563;
}
.supplements-block,
.product-note-block,
.allergens-line{
  border-radius:24px;
  border:1px solid #e8ecf2;
  box-shadow:0 14px 36px rgba(15,23,42,.05);
}
.supplements-block{
  margin:16px 0 14px;
  padding:18px 16px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%);
}
.supplements-title,
.product-note-title{
  font-size:15px;
  font-weight:900;
  letter-spacing:-0.025em;
  color:#0f172a;
}
.supplements-list{
  gap:12px;
}
.supplement-line{
  min-height:72px;
  padding:12px 14px;
  border-radius:22px;
  border-color:#e6eaf0;
  box-shadow:0 10px 26px rgba(15,23,42,.06);
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.supplement-line:has(input:checked){
  border-color:rgba(219,39,119,.36);
  background:linear-gradient(180deg,#fff 0%,#fff5fb 100%);
  box-shadow:0 14px 30px rgba(219,39,119,.10);
}
.supplement-line:active{
  transform:scale(.985);
}
.supplement-avatar{
  width:46px;
  height:46px;
  background:linear-gradient(180deg,#fff7ed 0%,#fdf2f8 100%);
  color:var(--accent-dark);
  font-size:21px;
}
.supplement-name{
  font-weight:850;
  letter-spacing:-0.02em;
}
.supplement-price{
  color:#1f2937;
  font-weight:700;
}
.supplements-note,
.product-note-help{
  color:#7b8494;
  font-size:13px;
  line-height:1.5;
}
.supplements-block input[type="checkbox"]{
  width:26px;
  height:26px;
  border-radius:8px;
  accent-color:var(--tenant-primary, var(--accent));
}
.product-note-block{
  padding:18px 16px;
  background:#ffffff;
}
.product-note-input{
  min-height:86px;
  border-radius:18px;
  border-color:#dce2ea;
  background:#fbfcff;
  font-size:15px;
  padding:15px 16px;
}
.allergens-line{
  background:#ffffff;
  margin-top:14px;
  overflow:hidden;
}
.allergens-line summary{
  min-height:62px;
  padding:12px 16px 12px 64px;
  position:relative;
  font-weight:900;
  letter-spacing:-0.02em;
}
.allergens-line summary::before{
  content:"☘";
  position:absolute;
  left:16px;
  top:50%;
  width:38px;
  height:38px;
  border-radius:999px;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--tenant-primary, var(--accent));
  background:#fdf2f8;
  border:1px solid rgba(219,39,119,.10);
}
.allergens-content{
  padding:0 16px 14px 64px;
}
.qty-row{
  margin:20px 0 14px;
}
.qty-label{
  font-size:17px;
  font-weight:800;
  letter-spacing:-0.02em;
  color:#1f2937;
}
.qty-controls{
  gap:16px;
}
.qty-controls span{
  font-size:20px;
  font-weight:900;
  color:#111827;
}
.qty-controls .btn.ghost.icon{
  width:48px;
  height:48px;
  border-radius:16px;
  background:#ffffff;
  border:1px solid #e3e8ef;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
  color:#111827;
  font-size:22px;
  font-weight:800;
}
.qty-controls .btn.ghost.icon:last-child{
  color:var(--tenant-primary, var(--accent));
}
.btn.primary.big{
  position:sticky;
  bottom:0;
  z-index:8;
  min-height:64px;
  margin-top:10px;
  border:0;
  border-radius:20px;
  padding:0;
  overflow:hidden;
  background:linear-gradient(135deg,#c026a5 0%,#db2777 54%,#f43f5e 100%);
  color:#ffffff;
  box-shadow:0 18px 38px rgba(219,39,119,.28), 0 8px 18px rgba(244,63,94,.16);
}
.cart-cta-inner{
  width:100%;
  min-height:64px;
  display:grid;
  grid-template-columns:58px 1fr auto;
  align-items:center;
  gap:14px;
  padding:8px 18px 8px 10px;
}
.cart-cta-icon{
  width:46px;
  height:46px;
  border-radius:15px;
  background:rgba(255,255,255,.94);
  color:#0f172a;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  box-shadow:0 8px 20px rgba(15,23,42,.12);
}
.cart-cta-label{
  font-size:18px;
  font-weight:900;
  letter-spacing:-0.02em;
  text-align:left;
}
.cart-cta-price{
  min-width:86px;
  padding-left:18px;
  border-left:1px solid rgba(255,255,255,.25);
  font-size:18px;
  font-weight:950;
  text-align:right;
}
@media (max-width:480px){
  .modal-content{
    padding-left:18px;
    padding-right:18px;
  }
  .modal-title-row > div:first-child{
    padding-left:58px;
  }
  .modal-title-row > div:first-child::before{
    width:46px;
    height:46px;
    border-radius:16px;
  }
  .modal-title-row h2{
    font-size:24px;
  }
  .cart-cta-label,
  .cart-cta-price{
    font-size:15px;
  }
  .cart-cta-inner{
    grid-template-columns:54px 1fr auto;
    gap:10px;
    padding-right:14px;
  }
}


/* v44 - Product sheet icon polish */
.icon-circle-back{
  width:48px;
  height:48px;
  border-radius:18px;
  background:rgba(255,255,255,.96);
  color:var(--tenant-primary, var(--accent));
  border:1px solid rgba(255,255,255,.72);
  box-shadow:0 14px 34px rgba(15,23,42,.20);
  font-size:0;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.icon-circle-back::before{
  content:"";
  width:21px;
  height:21px;
  display:block;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M12 19l-7-7 7-7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M12 19l-7-7 7-7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.icon-circle-back:active{ transform:scale(.96); }
.modal-title-row > div:first-child::before{
  font-size:26px;
  line-height:1;
}
.allergens-line summary::before{
  content:"";
  background-color:#eef8ef;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2350a85d' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 4C12.5 4.8 7.6 8.1 5.3 14.1c-1.1 2.9-.3 5 1.8 5.8 2.2.8 4.7-.7 6.1-3.3 1.6-3 1.4-6 6.8-12.6Z'/%3E%3Cpath d='M5.8 18.8c2.8-3.9 6-6.6 9.8-8.1'/%3E%3Cpath d='M9.2 15.1l-.4-3.1'/%3E%3Cpath d='M12.4 12.6l3.2.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  background-size:22px 22px;
  color:transparent;
  border-color:rgba(80,168,93,.14);
}
.cart-cta-icon{
  background:transparent;
  color:#ffffff;
  box-shadow:none;
  border-radius:0;
}
.cart-cta-svg{
  width:31px;
  height:31px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2.35;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Product cards — B4 centered layout: image + title + price, no category/description */
.product-card{
  border-radius:18px;
  min-height:0;
}
.product-img{
  height:120px;
}
.product-body{
  min-height:82px;
  padding:12px 12px 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:6px;
}
.product-title{
  max-width:100%;
  margin:0;
  font-family:"Poppins",-apple-system,BlinkMacSystemFont,"SF Pro Rounded",system-ui,sans-serif;
  font-size:15px;
  line-height:1.14;
  font-weight:600;
  letter-spacing:-.02em;
  color:#0f172a;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.product-price{
  display:block;
  font-size:14px;
  line-height:1;
  font-weight:800;
  letter-spacing:-.015em;
  color:#ff9f00;
}
.product-meta,
.product-body .subtitle.small{
  display:none!important;
}


/* v63 — Fiche produit : badge prix plus compact + textes d’aide supprimés */
.modal-price-pill{
  min-width:86px!important;
  padding:11px 14px!important;
  background:var(--tenant-primary, #ffb80e)!important;
  color:#ffffff!important;
  border:0!important;
  font-size:14px!important;
  font-weight:900!important;
  text-align:center!important;
  box-shadow:0 14px 30px rgba(255,184,14,.30)!important;
}
.product-note-title{
  display:flex;
  align-items:baseline;
  gap:5px;
}
.product-note-optional{
  font-size:.86em;
  font-weight:700;
  color:#8a94a6;
  letter-spacing:-0.01em;
}
.product-note-help{
  display:none!important;
}


/* v64 — Typographie globale client : Poppins Regular pour textes hors titres */
body,
button,
input,
textarea,
select,
.subtitle,
.subtitle.small,
.subtitle.xsmall,
.modal-desc,
.supplements-note,
.product-note-help,
.allergens-content,
.supplement-price,
.product-meta,
.bottom-nav-text small,
.nav-subtitle,
.category-name,
.card-description{
  font-family:"Poppins",-apple-system,BlinkMacSystemFont,"SF Pro Rounded",system-ui,sans-serif;
}
.subtitle,
.subtitle.small,
.subtitle.xsmall,
.modal-desc,
.supplements-note,
.product-note-help,
.allergens-content,
.product-meta,
.bottom-nav-text small,
.nav-subtitle,
.card-description{
  font-weight:400!important;
}
.modal-desc,
.supplements-note,
.allergens-content{
  letter-spacing:-0.005em;
}


/* ===== Header client compact + catégories sticky uniquement ===== */
.app-header{
  position:relative !important;
  top:auto !important;
  z-index:5 !important;
  align-items:center !important;
  justify-content:flex-start !important;
  padding:18px 18px 16px !important;
  min-height:102px !important;
  box-shadow:0 10px 24px rgba(15,23,42,.045) !important;
}
.app-title{
  width:100%;
  min-width:0;
}
.app-brand-row{
  align-items:center !important;
  gap:13px !important;
  min-height:0 !important;
}
.app-brand-text{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
}
.app-title h1,
#headerRestaurantName{
  position:static !important;
  width:auto !important;
  height:auto !important;
  padding:0 !important;
  margin:0 !important;
  overflow:hidden !important;
  clip:auto !important;
  white-space:nowrap !important;
  border:0 !important;
  text-overflow:ellipsis !important;
  font-family:'Poppins',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  font-size:19px !important;
  line-height:1.12 !important;
  font-weight:700 !important;
  letter-spacing:-.025em !important;
  color:#0f172a !important;
}
.app-header #headerSubtitle{
  margin:0 !important;
  font-family:'Poppins',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  font-size:14px !important;
  line-height:1.25 !important;
  font-weight:400 !important;
  color:#64748b !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.header-logo{
  width:58px !important;
  height:58px !important;
  border-radius:16px !important;
  padding:5px !important;
  flex:0 0 58px !important;
}
.app-meta{
  display:none !important;
}
.category-wrapper{
  position:sticky !important;
  top:0 !important;
  z-index:12 !important;
  padding:8px 10px 10px !important;
  background:#f6f7f9 !important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 8px 20px rgba(15,23,42,.055) !important;
}
.cat-heading{
  display:none !important;
}
.category-bar{
  gap:10px !important;
  padding:2px 2px 4px !important;
}
@media(max-width:640px){
  .app-header{
    padding:15px 14px 13px !important;
    min-height:88px !important;
  }
  .app-brand-row{
    gap:11px !important;
  }
  .header-logo{
    width:52px !important;
    height:52px !important;
    border-radius:15px !important;
    flex-basis:52px !important;
  }
  .app-title h1,
  #headerRestaurantName{
    font-size:17px !important;
  }
  .app-header #headerSubtitle{
    font-size:13px !important;
  }
  .category-wrapper{
    padding:7px 8px 9px !important;
  }
}

/* Panier : bouton d’envoi en Poppins SemiBold */
#btnSendOrderDrawer{
  font-family: var(--font-sans, "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-weight:600;
}

/* Livraison A3 — écran QR invalide / table non vérifiée */
.qr-error-screen{
  background:
    radial-gradient(circle at top left, rgba(255, 184, 14, .18), transparent 34%),
    #f7f7f7;
}
.qr-error-card{
  gap:18px;
  text-align:center;
}
.qr-error-icon{
  width:64px;
  height:64px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 4px;
  background:#fff3db;
  box-shadow:0 14px 35px rgba(0,0,0,.08);
  font-size:30px;
}
.qr-error-card .brand{
  margin-bottom:0;
}
.qr-error-card .subtitle{
  max-width:340px;
  margin-left:auto;
  margin-right:auto;
  line-height:1.45;
}

/* Hotfix fiche produit — suppléments vides, scroll initial, flèche retour accessible */
#productModal .modal-sheet{
  scroll-behavior:auto!important;
}
#productModal .modal-header{
  position:fixed!important;
  top:calc(env(safe-area-inset-top, 0px) + 28px)!important;
  left:50%!important;
  right:auto!important;
  width:min(100%, 480px)!important;
  transform:translateX(-50%)!important;
  z-index:80!important;
  padding:0 24px!important;
  pointer-events:none!important;
}
#productModal .modal-header .icon-circle-back{
  pointer-events:auto!important;
}
#modalSupplements[aria-hidden="true"]{
  display:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
@media (max-width:480px){
  #productModal .modal-header{
    top:calc(env(safe-area-inset-top, 0px) + 32px)!important;
    padding-left:32px!important;
    padding-right:18px!important;
  }
}

/* Beordy — canal À emporter V1 */
#screenMode .mode-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
#screenMode .mode-card--takeaway{
  border-color:rgba(255,126,79,.36);
  background:linear-gradient(180deg,#fff 0%,#fff7f3 100%);
}
#screenMode .mode-card--takeaway h2::before{
  content:"🎒";
  display:block;
  font-size:34px;
  line-height:1;
  margin-bottom:10px;
}
#screenMode .mode-card[hidden]{
  display:none!important;
}
@media (max-width: 640px){
  #screenMode .mode-grid{
    grid-template-columns:1fr;
  }
}
