/* Fiche produit (assets/front/product-drawer.js) : feuille plein écran sur mobile, tiroir à droite sur ordinateur.
   Couleurs et arrondis : variables du thème du restaurant (--mp-ui-*, --freshy-*). */
.mp-pd-scrim{position:fixed;inset:0;z-index:1200;background:var(--mp-ui-backdrop,rgba(15,23,42,.45));opacity:0;transition:opacity .22s ease}
.mp-pd-scrim.is-open{opacity:1}
.mp-pd{position:fixed;z-index:1201;inset:0;display:flex;flex-direction:column;background:var(--mp-ui-surface,#fff);color:var(--mp-ui-ink,#1f2937);
  transform:translateY(100%);transition:transform .26s cubic-bezier(.2,.8,.2,1);box-shadow:0 24px 60px rgba(15,23,42,.25);outline:0}
.mp-pd.is-open{transform:none}
body.mp-pd-lock{overflow:hidden}
@media (min-width:768px){
  .mp-pd{inset:12px 12px 12px auto;width:min(520px,calc(100vw - 24px));border-radius:var(--mp-ui-drawer-radius,24px);overflow:hidden;transform:translateX(calc(100% + 24px))}
}
@media (prefers-reduced-motion:reduce){.mp-pd,.mp-pd-scrim{transition:none}}

.mp-pd-close{position:absolute;top:12px;right:12px;z-index:2;width:42px;height:42px;border-radius:50%;border:0;display:grid;place-items:center;
  background:rgba(255,255,255,.94);color:#111827;box-shadow:0 6px 18px rgba(15,23,42,.18);cursor:pointer}
.mp-pd-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.mp-pd-close:focus-visible,.mp-pd-cta:focus-visible,.mp-pd-qty button:focus-visible,.mp-pd-often-add:focus-visible{outline:3px solid var(--mp-ui-accent,#2563eb);outline-offset:2px}

.mp-pd-scroll{flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.mp-pd-media{position:relative;aspect-ratio:4/3;background:var(--mp-ui-soft,#f3f4f6)}
.mp-pd-media img{width:100%;height:100%;object-fit:cover;display:block}
.mp-pd-noimg{width:100%;height:100%;background:linear-gradient(135deg,var(--mp-ui-accent-soft,#eef2ff),var(--mp-ui-soft,#f3f4f6))}
.mp-pd-media:not(.has-img){aspect-ratio:auto;height:72px}
@media (min-width:768px){.mp-pd-media{aspect-ratio:16/10}}

.mp-pd-body{padding:18px 18px 10px}
.mp-pd-badges{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.mp-pd-badge,.mp-card-badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:800;line-height:1.1;
  background:#f3f4f6;color:#1f2937}
.is-popular{background:#fff1e6;color:#9a3412}
.is-new{background:#e0f2fe;color:#075985}
.is-chef{background:#f3e8ff;color:#6b21a8}
.is-homemade{background:#fef3c7;color:#92400e}
.is-spicy,.is-hot{background:#fee2e2;color:#991b1b}
.is-vegan,.is-veggie{background:#dcfce7;color:#166534}
.mp-pd-title{margin:0 0 4px;font-size:22px;line-height:1.25;font-weight:800;color:var(--mp-ui-ink,#111827)}
.mp-pd-price{margin:0 0 10px;font-size:18px;font-weight:800;color:var(--mp-ui-accent-strong,var(--freshy-primary,#111827));line-height:1.3}
.mp-pd-desc{margin:0 0 14px;font-size:15px;line-height:1.6;color:#4b5563}
.mp-pd-section{margin:18px 0 6px;padding-top:14px;border-top:1px solid var(--mp-ui-border,#e5e7eb)}
.mp-pd-section h3{margin:0 0 10px;font-size:16px;font-weight:800;color:var(--mp-ui-ink,#111827);line-height:1.3}
.mp-pd-sub{margin:10px 0 6px;font-size:13px;font-weight:700;color:#4b5563;line-height:1.4}
.mp-pd-chips{display:flex;flex-wrap:wrap;gap:6px}
.mp-pd-chip{display:inline-flex;align-items:center;min-height:28px;padding:4px 11px;border-radius:999px;font-size:13px;font-weight:700;line-height:1.2}
.mp-pd-chip.is-present{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.mp-pd-chip.is-trace{background:#fff;color:#4b5563;border:1px dashed #9ca3af}
.mp-pd-note,.mp-pd-text{margin:10px 0 0;font-size:13px;line-height:1.5;color:#4b5563}
.mp-pd-options{margin-top:4px}
.mp-pd .mp-ch-group{margin:12px 0}
.mp-pd-sr{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.mp-pd-radio{cursor:pointer}
.mp-pd-radio.is-on{border-color:var(--mp-ui-accent,#2563eb)}
.mp-pd-radio.is-on .mp-ch-mark{background:var(--mp-ui-accent,#2563eb);border-color:var(--mp-ui-accent,#2563eb);box-shadow:inset 0 0 0 4px #fff}
.mp-pd-radio.is-off{opacity:.45}
.mp-pd-radio:focus-within{outline:3px solid var(--mp-ui-accent,#2563eb);outline-offset:2px}

.mp-pd-often{display:grid;gap:8px}
.mp-pd-often-item{display:grid;grid-template-columns:52px 1fr auto auto;align-items:center;gap:10px;padding:8px;border:1px solid var(--mp-ui-border,#e5e7eb);border-radius:14px}
.mp-pd-often-item img,.mp-pd-often-noimg{width:52px;height:52px;border-radius:10px;object-fit:cover;background:var(--mp-ui-soft,#f3f4f6)}
.mp-pd-often-name{font-size:14px;font-weight:700;color:var(--mp-ui-ink,#111827);line-height:1.3}
.mp-pd-often-price{font-size:13px;font-weight:700;color:#4b5563;white-space:nowrap}
.mp-pd-often-add{width:36px;height:36px;border-radius:50%;border:0;background:var(--freshy-primary,#111827);color:#fff;font-size:20px;line-height:1;cursor:pointer}

.mp-pd-foot{flex:none;padding:10px 14px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--mp-ui-border,#e5e7eb);background:var(--mp-ui-surface,#fff)}
.mp-pd-error{margin:0 0 8px;padding:8px 10px;border-radius:10px;background:#fef2f2;color:#991b1b;font-size:13px;font-weight:700;line-height:1.4}
.mp-pd-error[hidden]{display:none}
.mp-pd-actions{display:flex;align-items:center;gap:10px}
.mp-pd-qty{display:inline-flex;align-items:center;gap:2px;padding:4px;border-radius:999px;background:var(--mp-ui-soft,#f3f4f6)}
.mp-pd-qty[hidden]{display:none}
.mp-pd-qty button{width:38px;height:38px;border-radius:50%;border:0;background:#fff;color:#111827;font-size:20px;font-weight:700;line-height:1;cursor:pointer;box-shadow:0 1px 3px rgba(15,23,42,.12)}
.mp-pd-qty button:disabled{opacity:.4;cursor:default}
.mp-pd-qty output{min-width:28px;text-align:center;font-weight:800;font-size:16px;color:#111827}
.mp-pd-cta{flex:1;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:0 18px;border:0;border-radius:var(--sila-ai-button-radius,14px);
  background:var(--freshy-primary,#111827);color:var(--sila-ai-on-primary,#fff);font-size:16px;font-weight:800;cursor:pointer;box-shadow:0 10px 24px rgba(15,23,42,.18)}
.mp-pd-cta:disabled{opacity:.55;cursor:default;box-shadow:none}
.mp-pd-cta.is-incomplete{opacity:.85}
.mp-pd-cta-total:empty{display:none}

/* Carte produit : toute la carte ouvre la fiche ; badges sur la photo. */
.mp-freshy .product-card[data-mp-product-open]{cursor:pointer}
.mp-pd-link{color:inherit!important;text-decoration:none!important}
.mp-pd-link:focus-visible{outline:3px solid var(--mp-ui-accent,#2563eb);outline-offset:2px;border-radius:4px}
.mp-card-badges{position:absolute;top:10px;left:10px;z-index:2;display:flex;flex-wrap:wrap;gap:5px;max-width:calc(100% - 20px);pointer-events:none}
.mp-card-badge{box-shadow:0 2px 8px rgba(15,23,42,.18);font-size:11px;min-height:22px;padding:3px 8px}
.add-to-cart-smart.is-loading{opacity:.6;pointer-events:none}
.mp-pd-avail{margin:4px 0 0;padding:8px 10px;border-radius:10px;background:#fff7ed;color:#9a3412;font-weight:600;font-size:.9rem}
