:root {
  --navy: #163852;
  --pink: #ee9ab2;
  --pink-soft: rgba(238, 154, 178, 0.45);
  --bg: #f7f4f1;
  --card: #fff;
  --text: #163852;
  --muted: #6b7280;
  --line: #ebe6e1;
  --ok: #1f7a4d;
  --bad: #b42318;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app { min-height: 100vh; }

.top {
  position: sticky; top: 0; z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 28px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  background: none; border: 0; color: var(--navy); padding: 0; cursor: pointer;
}
.brand img { height: 34px; }
.brand span { font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.cart-btn {
  border: 0; border-radius: 999px; background: var(--pink); color: var(--navy);
  font-weight: 800; padding: 10px 18px; cursor: pointer;
}
.cart-btn:hover { filter: brightness(0.97); }
.cart-btn b { margin-left: 8px; }

.compose {
  display: grid;
  grid-template-columns: minmax(420px, 1.7fr) minmax(360px, 0.95fr);
  gap: 32px 56px;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 40px 64px;
}

.bowl-col {
  position: sticky;
  top: 84px;
  align-self: start;
}
.bowl-stage { position: relative; }
.bowl-stage:before {
  content: "";
  position: absolute;
  right: -8%;
  bottom: 4%;
  width: 88%;
  height: 72%;
  background: var(--pink);
  transform: rotate(7deg);
  border-radius: 8px;
  z-index: 0;
  opacity: .55;
}
.bowl-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(620px, 46vw);
  margin: 0 auto;
  aspect-ratio: 1;
}
.bowl-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.bowl-wrap .bowl-base { position: relative; z-index: 0; }
.bowl-wrap .layer { z-index: 1; }
.bowl-wrap .layer.cat-base { z-index: 2; }
.bowl-wrap .layer.cat-marinade { z-index: 20; }
.bowl-wrap .layer.cat-mix-me { z-index: 30; }
.bowl-wrap .layer.cat-proteines,
.bowl-wrap .layer.cat-sauce-me { z-index: 40; }
.bowl-wrap .layer.cat-top-me { z-index: 50; }

.bowl-title {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 900;
  color: var(--pink);
}
.bowl-title em {
  font-style: normal;
  color: var(--navy);
}
.price-tag {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-weight: 900;
  font-size: 26px;
  color: var(--navy);
}
.price-tag small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.options-col { min-width: 0; padding-top: 8px; }
.options-intro h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}
.options-intro p { margin: 0 0 22px; color: var(--muted); font-size: 15px; }

.progress { position: relative; max-width: 100%; margin: 0 0 18px; }
.progress:before, .progress-bar {
  content: ""; position: absolute; height: 3px; left: 0; top: 14px;
  width: 100%; background: #ededed;
}
.progress-bar { background: var(--pink); width: 0; }
.progress-steps {
  display: flex; justify-content: space-between;
  position: relative;
}
.progress-steps button {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: #ededed; color: var(--navy); font-size: 11px; font-weight: 800;
  cursor: pointer;
}
.progress-steps button:hover { background: var(--navy); color: #fff; }
.progress-steps button.active { background: var(--pink); color: #fff; }

.step-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.step-head h2 {
  margin: 0; font-size: 20px; font-weight: 900; text-transform: uppercase;
}
.limit { color: var(--muted); font-weight: 700; font-size: 13px; }
.nav-mini { display: flex; gap: 8px; align-items: center; }
.nav-mini button, .icon-btn {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--pink); color: #fff; font-weight: 800; cursor: pointer;
}
.nav-mini button:hover { background: var(--navy); }
.nav-mini button.disabled { background: #d4d4d4; pointer-events: none; }
.icon-btn.reset { background: transparent; color: #c0c0c0; font-size: 16px; }
.icon-btn.reset:hover { color: var(--navy); background: transparent; }

.lede { display: none; }
.err { color: var(--bad); font-size: 13px; margin: 0 0 10px; }

.swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 12px;
}
.swatch {
  display: flex; flex-direction: column; align-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  user-select: none;
}
.swatch img, .swatch .ph {
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: var(--pink); object-fit: cover;
  transition: transform .15s ease, box-shadow .15s ease;
}
.swatch:hover img, .swatch:hover .ph { transform: scale(1.04); }
.swatch .ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--navy);
}
.swatch.on:not(.qty) img,
.swatch.on:not(.qty) .ph {
  padding: 6%;
  box-sizing: border-box;
  box-shadow: 0 0 0 3px var(--navy);
}
.swatch span {
  margin-top: 8px; font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center;
}
.qty-box {
  margin-top: 8px; display: flex; align-items: center; gap: 8px;
}
.qty-box button {
  width: 28px; height: 28px; border: 2px solid var(--pink); border-radius: 8px;
  background: var(--pink-soft); color: var(--navy); font-weight: 800; cursor: pointer;
}
.qty-box button:hover { background: var(--pink); }
.qty-box em {
  min-width: 16px; font-style: normal; font-weight: 800; text-align: center;
}

.extra { margin-top: 26px; }
.extra label {
  display: block; font-weight: 900; text-transform: uppercase; font-size: 14px; margin-bottom: 8px;
}
.extra select, .form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; background: #fff;
}
.size-row { display: flex; gap: 12px; margin-top: 8px; }
.size-row button {
  flex: 1; border: 2px solid var(--line); background: #fff; border-radius: 14px;
  padding: 18px 12px; font-weight: 800; cursor: pointer; color: var(--navy);
}
.size-row button:hover { border-color: var(--pink); }
.size-row button.on { border-color: var(--pink); background: #fff4f7; }

.desktop-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 8px;
}
.footer-bar { display: none; }

.btn {
  border: 0; border-radius: 12px; padding: 13px 18px; font-weight: 800; cursor: pointer;
}
.btn:hover { filter: brightness(0.97); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-pink { background: var(--pink); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-wide { width: 100%; }

.page { padding: 36px 40px 80px; max-width: 980px; margin: 0 auto; }
.page h1 { margin: 0 0 8px; font-size: 32px; }
.cart-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: start;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 12px 0;
}
.card-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.meta { color: var(--muted); font-size: 13px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.chip {
  background: #f3eef1; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 600;
}
.form { display: grid; gap: 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-row { display: flex; gap: 8px; }
.type-row button { flex: 1; }
.ok { color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 40px 12px; }
.summary-box { position: sticky; top: 96px; }

@media (max-width: 980px) {
  .top { padding: 12px 16px; }
  .compose {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 16px 120px;
  }
  .bowl-col { position: relative; top: 0; }
  .bowl-stage:before { display: none; }
  .bowl-wrap { max-width: 280px; }
  .bowl-title { display: none; }
  .price-tag { text-align: center; font-size: 22px; }
  .options-intro { display: none; }
  .lede { display: block; margin: 0 0 16px; color: var(--muted); font-size: 14px; }
  .desktop-actions { display: none; }
  .footer-bar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0;
    background: #fff; border-top: 1px solid var(--line);
    justify-content: space-between; gap: 10px;
    padding: 12px 16px 18px; z-index: 20;
  }
  .page { padding: 20px 16px 120px; }
  .cart-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .summary-box { position: static; }
}
