/* Explain: Styles for individual food dish details and options. */
/* MARKET HOME — Mark Food : fiche plat, options et compteur */

/* fiche plat */
.dish-top{position:absolute;top:14px;left:14px;right:14px;z-index:2;display:flex;justify-content:space-between}
.dish-top .fav{position:static;width:44px;height:44px}
.dish-body{flex:1;min-height:0;display:flex;flex-direction:column}
.dish-scroll{flex:1;min-height:0;overflow-y:auto;padding:20px 22px 14px}
.dish-bar{flex:none;display:flex;align-items:center;gap:12px;padding:14px 18px calc(16px + env(safe-area-inset-bottom,0px));box-shadow:0 -1px 0 var(--stroke)}
.dish-bar .cta{flex:1;min-width:0}
.d-rate{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.dish h2{margin:14px 0 4px;font-family:var(--display);font-weight:600;font-size:clamp(1.4rem,3.4vw,1.9rem);line-height:1.1;letter-spacing:-.03em;text-wrap:balance}
.d-resto{padding:0;border:0;background:none;color:var(--muted);font:inherit;font-size:.92rem;cursor:pointer;text-decoration:underline;text-decoration-color:var(--stroke);text-underline-offset:3px}
.d-price{margin:14px 0 0;font-size:1.6rem;font-weight:700;font-variant-numeric:tabular-nums}
.d-h{margin:22px 0 10px;font-size:.72rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.d-desc{margin:0;line-height:1.55;max-width:60ch}
.ings{list-style:none;margin:0;padding:0 0 4px;display:flex;gap:10px;overflow-x:auto;scrollbar-width:none}
.ing{flex:none;width:74px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:.76rem;font-weight:500;line-height:1.2}
.ing-art{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;background:var(--glass-strong);box-shadow:inset 0 0 0 1px var(--stroke)}
.ing-art img,.ing-art svg{width:52px;height:52px}
.opts{display:grid;gap:8px}
.opt{position:relative;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;cursor:pointer;background:var(--glass);box-shadow:inset 0 0 0 1px var(--stroke)}
.opt input{position:absolute;opacity:0;pointer-events:none}
.box{flex:none;width:22px;height:22px;border-radius:7px;display:grid;place-items:center;color:transparent;box-shadow:inset 0 0 0 1.6px var(--muted);transition:background .2s,box-shadow .2s,color .2s}
.box svg{width:14px;height:14px}
.opt input:checked + .box{color:#fff;background:var(--food);box-shadow:none}
.opt input:focus-visible + .box{outline:2px solid var(--food);outline-offset:2px}
.opt-l{flex:1;font-weight:500}
.opt-p{color:var(--muted);font-size:.86rem;font-variant-numeric:tabular-nums}

/* compteur */
.stepper{flex:none;display:inline-flex;align-items:center;gap:2px;padding:4px;border-radius:999px;background:var(--glass-strong);box-shadow:inset 0 0 0 1px var(--stroke)}
.stepper button{width:38px;height:38px;border:0;border-radius:50%;display:grid;place-items:center;background:none;color:var(--fg);cursor:pointer}
.stepper button:disabled{opacity:.3;cursor:default}
.stepper button svg{width:18px;height:18px}
.stepper output{min-width:24px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}
.stepper.sm button{width:30px;height:30px}
.stepper.sm button svg{width:15px;height:15px}
.pop{animation:popn .35s cubic-bezier(.2,1.6,.4,1)}
@keyframes popn{from{transform:scale(.6)}to{transform:scale(1)}}

/* bouton d'action */
.cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:56px;padding:0 22px;border:0;border-radius:18px;cursor:pointer;font-weight:700;font-size:1rem;font-variant-numeric:tabular-nums;color:var(--on-accent);background:linear-gradient(135deg,var(--food),var(--food-2));box-shadow:0 14px 30px -14px var(--food);transition:transform .2s,opacity .2s}
.cta:active{transform:scale(.97)}
.cta:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.cta.alt{color:var(--bg);background:var(--fg);box-shadow:none}
.cta.ghost{color:var(--fg);background:var(--glass-strong);box-shadow:inset 0 0 0 1px var(--stroke)}
.cta.block{width:100%}