/* Окно киоска на первом экране: кликом попадаем на кухню */
.hero { overflow: hidden; background: none; }
.hero__scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, 177.7vh);
  width: max(100%, 177.7svh);
  aspect-ratio: 1672 / 941;
  transform: translate(-50%, -50%);
}
.hero__scene img { display: block; width: 100%; height: 100%; }
.hero::after { pointer-events: none; }
.hero__content { pointer-events: none; }
.hero__content a, .hero__content button { pointer-events: auto; }

.hero__window {
  position: absolute;
  /* Проём окна на фото kiosk.jpg (1672×941): углы (739,334) (1007,364) (1007,612) (739,606) */
  left: 44.2%;
  top: 35.49%;
  width: 16.03%;
  height: 29.55%;
  z-index: 2;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
/* Рамка повторяет проём с перспективой: верх окна наклонён, поэтому многоугольник, а не прямоугольник */
.hero__window-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(255, 201, 40, .9)) drop-shadow(0 0 22px rgba(255, 201, 40, .55));
  animation: window-breathe 2.6s ease-in-out infinite;
}
.hero__window-frame polygon {
  fill: rgba(255, 220, 140, .12);
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.hero__window:hover .hero__window-frame,
.hero__window:focus-visible .hero__window-frame { animation-duration: 1.2s; }
.hero__window.is-loading { cursor: progress; }
.hero__window.is-loading .hero__window-frame { animation-duration: .6s; }
.hero__window.is-loading .hero__window-label { font-size: 0; }
.hero__window.is-loading .hero__window-label::after {
  content: "Открываем окно…";
  font-size: clamp(.75rem, 1.2vw, .95rem);
  color: var(--accent);
}
.hero__window:focus-visible { outline: none; }
.hero__window-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%);
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(10, 7, 4, .78);
  border: 1px solid rgba(255, 201, 40, .55);
  color: var(--text);
  font: inherit; font-weight: 600; font-size: clamp(.75rem, 1.2vw, .95rem); line-height: 1.2;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  animation: window-label 2.6s ease-in-out infinite;
}
.hero__window-label b { color: var(--accent); }
@keyframes window-breathe {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}
@keyframes window-label {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -4px); }
}

/* Кухня: полноэкранная сцена поверх сайта */
.kitchen {
  position: fixed;
  inset: 0;
  z-index: 50;
  /* Пока видео не показало первый кадр, под ним то же фото киоска, что на первом экране */
  background: #0a0704 url("/img/kiosk.jpg") center / cover no-repeat;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.kitchen.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.kitchen__enter,
.kitchen__pan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kitchen__pan { opacity: 0; transition: opacity .4s ease; cursor: grab; pointer-events: none; }
.kitchen.is-inside .kitchen__pan { pointer-events: auto; }
.kitchen.is-inside .kitchen__pan { opacity: 1; }
.kitchen.is-dragging .kitchen__pan { cursor: grabbing; }
.kitchen__idle { opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.kitchen.is-idle .kitchen__idle { opacity: 1; }
/* Видео вылета лежит поверх кухни, но мышь и палец должны доставаться самой кухне */
.kitchen__exit { opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.kitchen.is-flying-out .kitchen__exit { opacity: 1; }
.kitchen.is-inside.is-leaving .kitchen__ui,
.kitchen.is-inside.is-leaving .kitchen__vignette { opacity: 0; transition: opacity .3s ease; }
.kitchen.is-inside.is-leaving .kitchen__ui > * { pointer-events: none; }
/* Тот же градиент, что лежит на фото киоска на первом экране: без него павильон «вспыхивал»
   в момент клика. При влёте градиент тает, при вылете проявляется к последнему кадру */
.kitchen__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(26, 18, 8, .92) 0%, rgba(26, 18, 8, .35) 45%, rgba(26, 18, 8, 0) 70%);
  transition: opacity 1.4s ease .1s;
}
.kitchen.is-flying .kitchen__shade { opacity: 0; }
.kitchen.is-flying.is-landing .kitchen__shade { opacity: 1; transition: opacity 1.1s ease; }
.kitchen__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 55%, rgba(10, 7, 4, .55));
  opacity: 0;
  transition: opacity .6s ease;
}
.kitchen.is-inside .kitchen__vignette { opacity: 1; }

.kitchen__ui { opacity: 0; transition: opacity .5s ease .2s; pointer-events: none; }
.kitchen.is-inside .kitchen__ui { opacity: 1; }
.kitchen.is-inside .kitchen__ui > * { pointer-events: auto; }

.kitchen__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 201, 40, .45);
  background: rgba(10, 7, 4, .7);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.kitchen__close:hover { border-color: var(--accent); color: var(--accent); }
.kitchen__title {
  position: absolute;
  top: 18px;
  left: 16px;
  right: 80px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .8);
}
.kitchen__title small {
  display: block;
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
}
.kitchen__title strong { font-size: clamp(1.2rem, 2.6vw, 1.8rem); font-weight: 800; }
.kitchen__hint {
  position: absolute;
  left: 50%;
  bottom: 112px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(10, 7, 4, .7);
  font-size: .85rem;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transition: opacity .4s ease;
}
.kitchen__hint::before,
.kitchen__hint::after { content: "←"; color: var(--accent); animation: hint-sway 1.6s ease-in-out infinite; }
.kitchen__hint::after { content: "→"; animation-direction: reverse; }
.kitchen.has-looked .kitchen__hint { opacity: 0; pointer-events: none; }
@keyframes hint-sway {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

/* Точки на кухне: станция → раздел меню */
.kitchen__spot {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit; font-weight: 600; font-size: .9rem; line-height: 1.2;
  cursor: pointer;
  translate: -12px -50%;
  transition: opacity .3s ease;
}
.kitchen__spot[hidden] { display: flex; opacity: 0; pointer-events: none; }
.kitchen__spot--flip { flex-direction: row-reverse; translate: calc(-100% + 12px) -50%; }
.kitchen__spot i {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 201, 40, .6);
  animation: spot-ping 2s ease-out infinite;
}
.kitchen__spot i::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #1a1208;
}
.kitchen__spot span {
  padding: .4rem .8rem;
  border-radius: 999px;
  background: rgba(10, 7, 4, .78);
  border: 1px solid rgba(255, 201, 40, .45);
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transition: border-color .2s ease, transform .2s ease;
}
.kitchen__spot:hover span,
.kitchen__spot:focus-visible span { border-color: var(--accent); transform: scale(1.06); }
.kitchen__spot:focus-visible { outline: none; }
@keyframes spot-ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 201, 40, .6); }
  80%, 100% { box-shadow: 0 0 0 16px rgba(255, 201, 40, 0); }
}

/* Нижняя панель разделов */
.kitchen__dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: .5rem;
  justify-content: center;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  overflow-x: auto;
  scrollbar-width: none;
  background: linear-gradient(transparent, rgba(10, 7, 4, .85) 45%);
  z-index: 5;
}
.kitchen__dock::-webkit-scrollbar { display: none; }
.kitchen__dock button {
  flex: none;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 201, 40, .35);
  background: rgba(26, 18, 8, .8);
  color: var(--text);
  font: inherit; font-weight: 600; font-size: .9rem; line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.kitchen__dock button:hover,
.kitchen__dock button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #1a1208; }

/* Колода карточек выбранного раздела */
.deck {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(10, 7, 4, .55);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.deck.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
/* Карточки идут сеткой: сколько влезает в ширину, остальные ниже, листаем вниз */
.deck__body {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 72px 16px calc(96px + env(safe-area-inset-bottom));
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 201, 40, .5) transparent;
}
.deck__head {
  max-width: 1200px;
  margin: 0 auto 8px;
}
.deck__head small {
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
}
.deck__head h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; }
.deck__head p { color: var(--muted); }
.deck__track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 24px auto 0;
  perspective: 1400px;
}
.deck__close {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 201, 40, .45);
  background: rgba(10, 7, 4, .7);
  color: var(--text);
  font: inherit; font-weight: 600; font-size: .9rem; line-height: 1;
  cursor: pointer;
}
.deck__close:hover { border-color: var(--accent); color: var(--accent); }

/* Карточка — «образец» из лаборатории: кремовая бумага, номер, блик при наклоне */
.card {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 30%;
  opacity: 0;
  transform: translateY(60px) rotateX(-18deg) scale(.94);
  transition: opacity .55s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.card--wide { grid-column: span 2; }
.deck.is-open .card { opacity: 1; transform: none; }
.card__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
  border-radius: 20px;
  background: linear-gradient(160deg, #fffaf0, #f4e9d2);
  color: #1a1208;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .6) inset;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
  overflow: hidden;
}
.card.is-tilting .card__inner { transition: transform .08s linear; }
.card:hover .card__inner { box-shadow: 0 40px 70px -20px rgba(0, 0, 0, .8), 0 0 0 2px var(--accent) inset; }
.card__glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .7), transparent 45%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover .card__glare { opacity: 1; }
.card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(26, 18, 8, .5);
}
.card__tag {
  padding: .25rem .55rem;
  border-radius: 999px;
  background: #e2342a;
  color: #fff;
  letter-spacing: .08em;
}
.card__tag--soft { background: #1a1208; color: var(--accent); }
.card__photo {
  height: 150px;
  margin: 10px -6px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Фото без фона висят над карточкой; края мягко гаснут, скрывая срезы с плаката */
.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.1) contrast(1.03) drop-shadow(0 14px 14px rgba(60, 35, 10, .28));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.card:hover .card__photo img { transform: scale(1.08) rotate(-2deg); }
/* Бумажный стаканчик с напитком цвета --tint; размеры в долях, чтобы одинаково рисовать
   и на карточке, и маленьким в корзине */
.card__cup {
  position: relative;
  width: 74px;
  aspect-ratio: 74 / 92;
  filter: drop-shadow(0 10px 10px rgba(60, 35, 10, .3));
}
.card__cup::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 42% 7.5% at 50% 11%, var(--tint, #5a2a14) 92%, transparent 100%),
    radial-gradient(ellipse 50% 10% at 50% 10%, #fffdf8 92%, transparent 100%),
    radial-gradient(circle at 50% 56%, transparent 13%, rgba(26, 18, 8, .35) 14%, rgba(26, 18, 8, .35) 16.5%, transparent 17.5%),
    linear-gradient(90deg, #e9e0cd, #fff 35%, #f4ecdc 70%, #ddd2bb);
  clip-path: polygon(0 10%, 4% 6%, 50% 0, 96% 6%, 100% 10%, 88% 100%, 12% 100%);
}
.card__dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px dashed rgba(26, 18, 8, .25);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(26, 18, 8, .55);
}
.card h3 { font-size: 1.02rem; font-weight: 800; line-height: 1.25; transform: translateZ(25px); }
.card p { margin-top: .35rem; font-size: .82rem; line-height: 1.4; color: rgba(26, 18, 8, .7); }
.card__foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .5rem;
  transform: translateZ(30px);
}
.card__foot span { font-size: .75rem; color: rgba(26, 18, 8, .55); }
.card__price {
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--accent);
  font-size: 1.15rem;
  font-weight: 800;
  white-space: nowrap;
}
.card--formula .card__photo { height: 130px; }
.card--formula .card__price { font-size: 1.5rem; }

@media (max-width: 640px) {
  /* Все шесть разделов на одном экране: сетка 3×2 вместо прокрутки вбок */
  .kitchen__dock {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 14px 8px calc(10px + env(safe-area-inset-bottom));
    overflow: visible;
  }
  .kitchen__dock button {
    padding: .55rem .25rem;
    font-size: .76rem;
    line-height: 1.15;
    white-space: normal;
  }
  .kitchen__hint { bottom: 120px; font-size: .78rem; }
  .deck__body { padding: 68px 12px calc(124px + env(safe-area-inset-bottom)); }
  .deck__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
  .card--wide { grid-column: 1 / -1; }
  .card__inner { padding: 12px 12px 14px; border-radius: 16px; }
  .card__top { font-size: .58rem; letter-spacing: .08em; }
  .card__photo { height: 96px; margin: 6px -4px 4px; }
  .card h3 { font-size: .86rem; }
  .card p { font-size: .72rem; }
  .card__foot { flex-direction: column; align-items: flex-start; padding-top: 10px; gap: .35rem; }
  .card__foot span { font-size: .66rem; }
  .card__price { font-size: 1rem; padding: .3rem .65rem; }
  .card--formula .card__photo { height: 110px; }
  .card--formula .card__foot { flex-direction: row; align-items: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__window-frame, .hero__window-label, .kitchen__spot i, .kitchen__hint::before, .kitchen__hint::after { animation: none; }
  .card { transition: opacity .3s ease; transform: none; }
}

/* ---------- Корзина ---------- */
.kitchen__cart {
  position: absolute;
  top: 16px;
  right: 76px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: .45rem;
  height: 48px;
  padding: 0 1rem 0 .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 201, 40, .45);
  background: rgba(10, 7, 4, .7);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.kitchen__cart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kitchen__cart svg circle { fill: currentColor; stroke: none; }
.kitchen__cart.has-items { background: var(--accent); border-color: var(--accent); color: #1a1208; }
.kitchen__cart-count:empty { display: none; }
.kitchen__cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #1a1208;
  color: var(--accent);
  font-size: .75rem;
  line-height: 22px;
  text-align: center;
}
.kitchen__cart.is-bump { animation: cart-bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cart-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Выбор варианта на карточке: соус, банан или киви */
.card__opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.card__opts button {
  padding: .3rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 18, 8, .2);
  background: transparent;
  color: #1a1208;
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
}
.card__opts button[aria-checked="true"] { background: #1a1208; border-color: #1a1208; color: var(--accent); }

.card__buy { margin-top: 12px; min-height: 40px; display: flex; }
.card__add {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: #1a1208;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.card__add:hover { background: #2c1f0d; }
.card__add:active { transform: scale(.97); }
.card__buy-note { align-self: center; font-size: .75rem; color: rgba(26, 18, 8, .55); }
.stepper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: #1a1208;
  font-weight: 800;
}
.stepper button {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

/* Панель заказа: справа на ПК, снизу на телефоне */
.cartpanel {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  justify-content: flex-end;
  background: rgba(10, 7, 4, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.cartpanel.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.cartpanel__box {
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fffaf0;
  color: #1a1208;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
  transform: translateX(30px);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.cartpanel.is-open .cartpanel__box { transform: none; }
.cartpanel__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 12px; }
.cartpanel__head h2 { font-size: 1.4rem; font-weight: 800; }
.cartpanel__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(26, 18, 8, .2);
  background: none;
  color: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}
.cartpanel__list { flex: 1; overflow-y: auto; padding: 0 20px; overscroll-behavior: contain; touch-action: pan-y; }
.cartpanel__empty { padding: 40px 0; text-align: center; color: rgba(26, 18, 8, .55); }
.cartline {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-template-areas: "img name sum" "img step del";
  gap: 6px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(26, 18, 8, .1);
}
.cartline img, .cartline__dot { grid-area: img; width: 56px; height: 56px; object-fit: contain; }
.cartline__dot { border-radius: 50%; background: #f1e3c4; }
.cartline .card__cup { grid-area: img; justify-self: center; width: 40px; }
.cartline__name { grid-area: name; font-weight: 700; font-size: .9rem; line-height: 1.25; }
.cartline__name small { display: block; font-weight: 600; color: rgba(26, 18, 8, .6); }
.cartline__name span { display: block; font-weight: 400; font-size: .78rem; color: rgba(26, 18, 8, .55); }
.cartline > b { grid-area: sum; white-space: nowrap; }
.cartline__del {
  grid-area: del;
  justify-self: end;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(26, 18, 8, .18);
  background: none;
  color: rgba(26, 18, 8, .6);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.cartline__del svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cartline__del:hover, .cartline__del:focus-visible { color: #e2342a; border-color: #e2342a; background: rgba(226, 52, 42, .06); }
.cartline .stepper { grid-area: step; flex: none; width: 128px; height: 34px; }
.cartline .stepper button { width: 36px; height: 34px; }
.cartpanel__foot { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(26, 18, 8, .12); }
.cartpanel__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; }
.cartpanel__total b { font-size: 1.5rem; }
.cartpanel__order {
  width: 100%;
  height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #1a1208;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
}
.cartpanel__order:disabled { opacity: .55; cursor: not-allowed; }
.cartpanel__note { margin-top: 8px; font-size: .78rem; color: rgba(26, 18, 8, .6); text-align: center; }
.cartpanel__clear {
  display: block;
  margin: 10px auto 0;
  border: 0;
  background: none;
  color: rgba(26, 18, 8, .55);
  font: inherit;
  font-size: .8rem;
  text-decoration: underline;
  cursor: pointer;
}
.cartpanel.is-empty .cartpanel__foot { display: none; }

@media (max-width: 640px) {
  .kitchen__cart { right: 72px; height: 44px; padding: 0 .8rem; font-size: .82rem; }
  .kitchen__title { right: 200px; }
  .kitchen__title strong { font-size: 1rem; }
  .card__add { height: 36px; font-size: .8rem; border-radius: 10px; }
  .stepper { height: 36px; border-radius: 10px; }
  .stepper button { width: 34px; height: 36px; }
  .card__opts button { font-size: .68rem; padding: .25rem .5rem; }
  .cartpanel { align-items: flex-end; }
  .cartpanel__box { width: 100%; height: 85%; border-radius: 20px 20px 0 0; transform: translateY(40px); }
}
@media (prefers-reduced-motion: reduce) {
  .kitchen__cart.is-bump { animation: none; }
}
