/* ===== Modale fiche plat (partagée : restaurant, panier) ===== */
.round-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-1);
  color: var(--ink-900);
  transition: transform 0.15s;
}
.round-btn:hover {
  transform: scale(1.06);
}
.round-btn svg {
  width: 22px;
  height: 22px;
}

/* ===== Fiche plat (modale) ===== */
.modal__panel--dish {
  padding: 0;
  overflow: hidden;
  background: var(--paper-pure);
}
.modal__panel--dish .sheet__handle {
  display: none;
}
.modal .modal__panel--dish {
  max-height: calc(100dvh - 5vh);
}
.dish-modal {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.dish-modal__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dish-modal__hero {
  aspect-ratio: 12 / 10;
}
.dish-modal__close {
  position: absolute;
  top: var(--s4);
  left: var(--s4);
  background: rgba(255, 255, 255, 0.95);
}
.dish-modal__body {
  padding: var(--s5) var(--s5) var(--s6);
}
.dish-modal__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.26px;
}
.dish-modal__price {
  margin-top: var(--s2);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--red-700);
  font-variant-numeric: tabular-nums;
}
.dish-modal__desc {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-700);
}
#dm-options {
  margin-top: var(--s6);
}
.opt {
  margin: 0 0 var(--s6);
  padding: 0;
  border: 0;
}
.opt__title {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.84px;
  text-transform: uppercase;
}
.opt__required {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--red-100);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--red-700);
}
.opt__hint {
  margin: 4px 0 var(--s3);
  font-size: 12px;
  color: var(--ink-500);
}
.choice {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  margin-bottom: var(--s2);
  padding: 14px 16px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  background: var(--paper-pure);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.choice:hover:not(.is-on) {
  border-color: var(--ink-300);
}
.choice.is-on {
  border-color: var(--red-700);
  background: var(--red-50);
}
.choice__mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.75px solid var(--ink-300);
  font-size: 12px;
  line-height: 1;
  color: #fff;
}
.choice__mark--single {
  border-radius: 50%;
}
.choice__mark--multi {
  border-radius: 6px;
}
.choice.is-on .choice__mark {
  border-color: var(--red-700);
  background: var(--red-700);
}
.choice__name {
  flex: 1;
}
.choice__extra {
  color: var(--ink-700);
  font-variant-numeric: tabular-nums;
}
.notes .opt__title {
  display: block;
}
.notes__field {
  display: block;
  width: 100%;
  margin-top: var(--s2);
  padding: 12px 14px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  background: var(--paper);
  font-size: 14px;
  resize: vertical;
}
.notes__field:focus {
  border-color: var(--red-700);
  outline: 0;
}
.notes__count {
  margin-top: 4px;
  font-size: 11px;
  text-align: right;
  color: var(--ink-500);
}

/* Barre du bas : quantité + Ajouter */
.dish-modal__bar {
  display: flex;
  gap: var(--s3);
  padding: 16px var(--s5) max(10px, env(safe-area-inset-bottom));
  background: var(--paper-pure);
  box-shadow: 0 -8px 16px rgba(14, 14, 16, 0.04);
}
.qty {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 4px;
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  background: var(--paper);
}
.qty button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink-900);
}
.qty button:disabled {
  color: var(--ink-300);
  cursor: default;
}
.qty button svg {
  width: 16px;
  height: 16px;
}
.qty span {
  width: 32px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.add-cta {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red-700), var(--red-900));
  box-shadow: var(--shadow-cta);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08px;
  transition: transform 0.15s, opacity 0.15s;
}
.add-cta:hover:not(:disabled) {
  transform: translateY(-1px);
}
.add-cta:disabled {
  background: var(--ink-300);
  box-shadow: none;
  cursor: not-allowed;
}
.add-cta__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.add-cta__plus {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.add-cta__plus svg {
  width: 14px;
  height: 14px;
}
.add-cta__price {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-display);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 720px) {
  .modal .modal__panel--dish {
    max-width: 520px;
    max-height: min(820px, calc(100dvh - 48px));
  }
  .dish-modal__hero {
    aspect-ratio: 16 / 10;
  }
}

/* Mode édition : montant séparé, validation en icône seule (mobile et desktop) */
.edit-total {
  flex: 1;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  text-align: right;
  align-self: center;
  color: var(--red-700);
  font-variant-numeric: tabular-nums;
}
.save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red-700), var(--red-900));
  box-shadow: var(--shadow-cta);
  color: #fff;
  transition: transform 0.15s, opacity 0.15s;
}
.save-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.save-btn:disabled {
  background: var(--ink-300);
  box-shadow: none;
  cursor: not-allowed;
}
.save-btn svg {
  width: 18px;
  height: 18px;
}
