:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #17150f;
  --soft: rgba(23, 21, 15, 0.54);
  --line: rgba(23, 21, 15, 0.09);
  --accent: #e8590c;
  --go: #1f9d57;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 16px;
}

.dd {
  width: min(332px, 100%);
  padding: 8px 8px 10px;
  border-radius: 28px;
  background: var(--card);
  box-shadow:
    0 0 0 1px rgba(23, 21, 15, 0.07),
    0 1px 2px rgba(23, 21, 15, 0.05),
    0 14px 28px -12px rgba(23, 21, 15, 0.18),
    0 44px 70px -34px color-mix(in srgb, var(--accent) 34%, rgba(23, 21, 15, 0.3));
}
.dd__photo { position: relative; height: clamp(104px, 34vh, 164px); border-radius: 21px; overflow: hidden; background: #e9e4da; }
.dd__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform-origin: 50% 60%; }
/* two glass labels over the photo */
.dd__chip, .dd__left { position: absolute; top: 9px; display: flex; align-items: center; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); font-size: 11.5px; font-weight: 660; color: var(--ink); box-shadow: 0 1px 2px rgba(23, 21, 15, 0.14); }
.dd__chip { left: 9px; padding: 0 10px; }
.dd__left { right: 9px; gap: 5px; padding: 0 10px 0 4px; }
.dd__left svg { width: 20px; height: 20px; fill: none; }
.left__bed { stroke: rgba(23, 21, 15, 0.14); stroke-width: 2.400; }
.left__arc { stroke: var(--accent); stroke-width: 2.400; stroke-linecap: round; stroke-dasharray: 1; transform: rotate(-90deg); transform-origin: 50% 50%; }
.dd__mins { display: block; height: 16px; overflow: hidden; line-height: 16px; }
.dd__mins span { display: block; white-space: nowrap; }

.dd__info { padding: clamp(7px, 2.400vh, 12px) 8px 0; }
.dd__name { font-size: 18px; line-height: 23px; font-weight: 680; font-stretch: 104%; letter-spacing: -0.014em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd__from { font-size: 12px; line-height: 17px; font-weight: 540; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dd__buy { display: flex; align-items: center; gap: 8px; margin-top: clamp(8px, 2.600vh, 13px); padding: 0 2px; }
.dd__qty { flex: none; display: flex; align-items: center; height: 46px; padding: 0 4px; border-radius: 23px; background: rgba(23, 21, 15, 0.06); }
.dd__qty button { display: grid; place-items: center; width: 36px; height: 38px; border: 0; border-radius: 19px; background: none; color: var(--ink); cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background-color 0.2s ease, opacity 0.2s ease; }
.dd__qty button:disabled { opacity: 0.3; cursor: default; }
.dd__qty svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.900; stroke-linecap: round; }
.dd__qty button:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.dd__n { display: block; width: 20px; height: 22px; overflow: hidden; text-align: center; font-size: 16px; line-height: 22px; font-weight: 700; }
.dd__n span { display: block; }

.dd__add {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 46px;
  padding: 0 16px 0 18px;
  border: 0;
  border-radius: 23px;
  background: var(--ink);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* the green that fills the button from the left when the dish is added */
.dd__fill { position: absolute; inset: 0; background: var(--go); transform: scaleX(0); transform-origin: 0 50%; }
.dd__label, .dd__price, .dd__tick { position: relative; }
.dd__label { min-width: 0; height: 20px; overflow: hidden; line-height: 20px; }
.dd__label span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd__price { flex: none; font-weight: 700; white-space: nowrap; }
.dd__tick { position: absolute; right: 15px; top: 13px; width: 20px; height: 20px; fill: none; stroke: #ffffff; stroke-width: 2.100; stroke-linecap: round; stroke-linejoin: round; }
.dd__tick path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.dd__add:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #17150f;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (hover: hover) {
  .dd__qty button:not(:disabled):hover { background: rgba(23, 21, 15, 0.08); }
}
