:root {
  --ink: #202124;
  --muted: #69706d;
  --paper: #f7f7f5;
  --surface: #ffffff;
  --line: #e5e7e4;
  --yellow: #ffc244;
  --yellow-soft: #fff3d6;
  --green: #00a082;
  --green-dark: #007e68;
  --green-soft: #e9f8f4;
  --gold: #c99c2e;
  --red: #b42318;
  --shadow: 0 10px 35px rgba(32, 33, 36, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}
button, input, select { font: inherit; }
button, a, input, select, label { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.hidden { display: none !important; }
.full { width: 100%; }

.eyebrow {
  margin: 0 0 .55rem;
  color: var(--green-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.light { color: var(--green-dark); }

.primary, .secondary, .back {
  min-height: 50px;
  padding: .78rem 1.1rem;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 160, 130, .22);
}
.primary:hover {
  background: var(--green-dark);
  box-shadow: 0 10px 28px rgba(0, 126, 104, .25);
  transform: translateY(-1px);
}
.secondary, .back {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

/* Confirmação de zona */
.gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  background: rgba(24, 28, 27, .72);
  backdrop-filter: blur(7px);
}
.gate-card {
  width: min(620px, 100%);
  padding: clamp(2rem, 7vw, 4rem);
  text-align: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .32);
}
.gate-card h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.055em;
}
.gate-card > p:not(.eyebrow) { color: var(--muted); }
.gate-card small { display: block; margin-top: .8rem; color: var(--muted); }
.success {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
}
.loader { display: flex; justify-content: center; gap: .4rem; margin-bottom: 1.5rem; }
.loader i {
  width: 13px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  animation: rice .8s ease-in-out infinite alternate;
}
.loader i:nth-child(2) { animation-delay: .15s; }
.loader i:nth-child(3) { animation-delay: .3s; }
@keyframes rice { to { transform: translateY(-8px) rotate(12deg); background: var(--yellow); } }

/* Barra e navegação de delivery */
.promo-bar {
  min-height: 42px;
  padding: .5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .7rem;
  text-align: center;
  background: var(--yellow);
  color: #292313;
  font-size: .8rem;
  font-weight: 800;
}
.promo-bar strong {
  padding: .18rem .55rem;
  border-radius: 999px;
  background: #202124;
  color: #fff;
  letter-spacing: .04em;
}
.promo-bar span { text-transform: uppercase; }

.header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 72px;
  padding: .65rem max(16px, calc((100% - 1260px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 900;
}
.brand span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  box-shadow: inset 0 0 0 2px #111, inset 0 0 0 3px var(--gold);
}
.delivery { display: flex; gap: 1rem; color: var(--muted); font-size: .82rem; }
.cart-button {
  justify-self: end;
  min-height: 44px;
  padding: .55rem .85rem;
  border: 0;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 900;
}
.cart-button b {
  margin-left: .35rem;
  padding: .25rem .48rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.view { display: none; }
.view.active { display: block; }

.delivery-facts {
  width: min(1260px, calc(100% - 32px));
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.delivery-facts > div {
  min-height: 68px;
  padding: .75rem .9rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(32, 33, 36, .05);
}
.delivery-facts > div > span { font-size: 1.25rem; }
.delivery-facts p { margin: 0; display: grid; }
.delivery-facts small {
  color: var(--muted);
  font-size: .59rem;
  font-weight: 900;
  letter-spacing: .07em;
}
.delivery-facts strong { font-size: .95rem; }
.delivery-facts strong span { color: var(--muted); font-size: .75rem; font-weight: 700; }
.status-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #29a452;
  box-shadow: 0 0 0 5px rgba(41, 164, 82, .12);
}
.delivery-facts .rating-star { color: var(--yellow); font-size: 1.55rem; }

/* Produto principal */
.hero {
  width: min(1260px, calc(100% - 32px));
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
  gap: 1rem;
}
.hero-photo {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 26px;
  background: #e9ece9;
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.hero-photo > span {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 82px;
  height: 82px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #272314;
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
}
.hero-photo small { display: block; font-size: .65rem; letter-spacing: .08em; }
.hero-copy {
  padding: clamp(1.7rem, 4vw, 3.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.hero-copy > h1 {
  margin: 0 0 1.35rem;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: .9;
  letter-spacing: -.065em;
}
.hero-copy h1 em { color: var(--green); font-style: normal; }
.product { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.product h2 { margin: .45rem 0 0; }
.product p { margin: .25rem 0; color: var(--muted); }
.product > strong {
  color: var(--green-dark);
  font-size: clamp(2.35rem, 4vw, 3.7rem);
  letter-spacing: -.06em;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  padding: .3rem .58rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #2e2818;
  font-size: .66rem;
  font-weight: 900;
}
.badge:empty { display: none; }
.box-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .45rem;
  margin: 1rem 0;
}
.box-selector button {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f7f5;
  color: var(--ink);
}
.box-selector button strong, .box-selector button span { display: block; }
.box-selector button span { color: var(--muted); font-size: .68rem; }
.box-selector button.selected {
  background: var(--yellow-soft);
  color: var(--ink);
  border: 2px solid var(--yellow);
  box-shadow: 0 4px 13px rgba(255, 194, 68, .22);
}
.box-selector button.selected span { color: #6d571e; }
.hero-includes {
  margin: 0 0 1rem;
  padding: .9rem;
  border: 1px solid #bfe9df;
  border-radius: 16px;
  background: var(--green-soft);
}
.hero-includes-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .65rem;
  color: var(--green-dark);
  font-size: .7rem;
  letter-spacing: .07em;
}
.hero-includes-head span { font-weight: 900; }
.hero-composition { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.hero-composition div {
  min-width: 0;
  padding: .48rem .5rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  border-radius: 10px;
  background: #fff;
}
.hero-composition strong { color: var(--green-dark); }
.hero-composition span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #4e5754;
  font-size: .72rem;
}
.trust { display: block; margin: .8rem; text-align: center; color: var(--muted); }

.section { width: min(1200px, calc(100% - 40px)); margin: auto; padding: 4.5rem 0; }
.section > h2, .page > h1, .proof h2 {
  margin: .2rem 0 1.5rem;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.055em;
}

/* Extras com aspeto de catálogo de delivery */
.extras { margin-top: 1.2rem; background: var(--green-soft); color: var(--ink); }
.extras > .section > p:not(.eyebrow) { color: var(--muted); }
.extras-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.extra-card {
  min-height: 125px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(32, 33, 36, .06);
}
.extra-icon {
  width: 60px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--yellow-soft);
  font-size: 1.8rem;
}
.extra-card h3 { margin: 0; }
.extra-card p { margin: .2rem 0; color: var(--muted); font-size: .82rem; }
.extra-card strong { color: var(--green-dark); }
.add, .stepper button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}
.stepper {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--ink);
}
.stepper button { width: 34px; height: 34px; background: #fff; color: var(--green-dark); }

.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.proof img { width: 100%; max-height: 470px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }

/* Cesto e checkout */
.page { width: min(1200px, calc(100% - 40px)); min-height: 75vh; margin: auto; padding: 3rem 0; }
.page > .back { margin-bottom: 2rem; }
.two-columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .7fr); gap: 2rem; align-items: start; }
.cart-lines, .form-stack { display: grid; gap: .8rem; }
.cart-line {
  padding: 1rem;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.cart-line img { width: 88px; height: 78px; object-fit: cover; border-radius: 12px; }
.cart-line h3 { margin: 0; }
.cart-line p { margin: .2rem 0; color: var(--muted); }
.summary {
  position: sticky;
  top: 90px;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(32, 33, 36, .07);
}
.summary > p, .summary-line { display: flex; justify-content: space-between; gap: 1rem; }
.summary small { display: block; margin-top: .8rem; color: var(--muted); text-align: center; }
.total {
  margin: 1rem 0;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 900;
}
fieldset { margin: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
legend { padding: 0 .4rem; font-size: 1.1rem; font-weight: 900; }
legend > b {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  margin-right: .4rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: .8rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
label { display: grid; gap: .3rem; margin-top: .8rem; font-size: .82rem; font-weight: 800; }
label > small { color: var(--muted); font-weight: 500; }
input, select {
  width: 100%;
  min-height: 48px;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
  color: var(--ink);
  font-size: 16px;
}
input:focus, select:focus { outline: 3px solid rgba(0, 160, 130, .14); border-color: var(--green); }
.field { align-content: start; }
.format-hint { min-height: 1rem; color: var(--muted); font-size: .7rem; font-weight: 500; }
.field-error { display: none; min-height: 1rem; color: var(--red); font-size: .72rem; font-weight: 800; }
.field.invalid .field-error,
.field.valid .field-error { display: block; }
.field.valid .field-error.ok { color: var(--green-dark); }
.field.invalid > input,
.field.invalid .phone-control { border-color: #d92d20; background: #fff7f6; }
.field.valid > input,
.field.valid .phone-control { border-color: var(--green); background: #f5fcfa; }
.phone-control {
  min-height: 48px;
  display: grid;
  grid-template-columns: 112px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
}
.phone-control:focus-within { outline: 3px solid rgba(0, 160, 130, .14); border-color: var(--green); }
.phone-control select,
.phone-control input {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: 0;
}
.phone-control select { border-right: 1px solid var(--line); background: var(--green-soft); color: var(--green-dark); font-weight: 800; }
.phone-control input:focus,
.phone-control select:focus { outline: 0; border-color: transparent; }
.choice { grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .75rem; border: 1px solid var(--line); border-radius: 13px; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.choice input { width: auto; min-height: auto; accent-color: var(--green); }
.choice span { display: grid; }
.choice small { color: var(--muted); }
.gateway-note { margin: .85rem 0 0; padding: .65rem .75rem; border-radius: 10px; background: var(--yellow-soft); color: #62501e; font-size: .75rem; }
.error { padding: .8rem; border: 1px solid #efb6b6; border-radius: 10px; background: #fff1f1; color: var(--red); font-weight: 800; }

.order { text-align: center; max-width: 720px; }
.order > p { color: var(--muted); }
.order-number, .reference { margin: 1rem auto; padding: 1rem; display: flex; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.reference { display: grid; gap: .4rem; text-align: left; }
.reference p { margin: 0; display: flex; justify-content: space-between; }
.order .back { display: block; margin: 1rem auto; }

.sticky {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: 20px;
  min-width: 370px;
  padding: .65rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid #bfe9df;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(32, 33, 36, .2);
}
.sticky div { display: grid; }
.sticky span { color: var(--muted); }
.sticky button { min-height: 45px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-weight: 900; }

dialog {
  width: min(560px, calc(100% - 28px));
  padding: 1.4rem;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .35);
}
dialog::backdrop { background: rgba(18, 24, 22, .7); backdrop-filter: blur(4px); }
dialog form { position: relative; }
.dialog-close { position: absolute; right: 0; top: 0; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--paper); font-size: 1.5rem; }
dialog h2 { margin: .2rem 0; font-size: 2rem; }
dialog menu { padding: 0; display: flex; gap: .5rem; }
dialog menu button { flex: 1; }
.drink-note { padding: .7rem; border-radius: 10px; background: var(--yellow-soft); color: #62501e; font-size: .8rem; }
.payment-status-dialog { text-align: center; }
.payment-status-dialog form { display: grid; justify-items: center; }
.payment-status-dialog h2 { margin: .2rem 0 .5rem; }
.payment-status-dialog p:not(.eyebrow) { margin: 0 0 1.25rem; color: var(--muted); }
.payment-feedback-icon {
  width: 70px;
  height: 70px;
  margin: .4rem auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow-soft);
  color: #6d571e;
  font-size: 2rem;
  font-weight: 900;
}
.payment-status-dialog[data-status="COMPLETED"] .payment-feedback-icon { background: var(--green-soft); color: var(--green-dark); }
.payment-status-dialog[data-status="DECLINED"] .payment-feedback-icon,
.payment-status-dialog[data-status="ERROR"] .payment-feedback-icon { background: #fff0ef; color: var(--red); }

footer { padding: 3rem max(20px, calc((100% - 1200px) / 2)); background: var(--green-dark); color: #d8eee9; }
footer strong { color: #fff; font-size: 1.5rem; }
footer p { color: #b9ddd5; }

@media (max-width: 850px) {
  .header { grid-template-columns: 1fr auto; }
  .delivery { display: none; }
  .delivery-facts { grid-template-columns: repeat(2, 1fr); }
  .hero, .proof, .two-columns { grid-template-columns: 1fr; }
  .hero-photo { min-height: 58vw; }
  .hero-copy { padding: 2rem; }
  .summary { position: static; }
  .extras-grid { grid-template-columns: 1fr; }
  .sticky { right: 0; bottom: 0; width: 100%; min-width: 0; border-radius: 18px 18px 0 0; }
}

@media (max-width: 560px) {
  .promo-bar { min-height: 48px; gap: .25rem; flex-direction: column; font-size: .68rem; }
  .promo-bar strong { padding: .1rem .45rem; }
  .brand b { font-size: .95rem; }
  .delivery-facts { width: calc(100% - 20px); margin: .65rem auto 0; gap: .5rem; }
  .delivery-facts > div { min-height: 61px; padding: .55rem .6rem; gap: .5rem; }
  .delivery-facts small { font-size: .5rem; }
  .delivery-facts strong { font-size: .82rem; }
  .hero { width: calc(100% - 20px); margin: .65rem auto 0; gap: .65rem; }
  .hero-photo { min-height: 82vw; border-radius: 20px; }
  .hero-copy { padding: 1.35rem 1rem 1.7rem; border-radius: 20px; }
  .hero-copy > h1 { margin-bottom: 1.1rem; font-size: 2.8rem; }
  .product > strong { font-size: 2.35rem; }
  .box-selector { overflow-x: auto; padding-bottom: .2rem; }
  .box-selector button { min-width: 68px; }
  .hero-includes { padding: .75rem; }
  .hero-composition { grid-template-columns: repeat(2, 1fr); }
  .hero-composition div { padding: .45rem .35rem; }
  .hero-composition span { font-size: .68rem; }
  .section, .page { width: calc(100% - 28px); padding: 3.5rem 0; }
  .extra-card { grid-template-columns: 55px 1fr auto; padding: .75rem; }
  .field-row { grid-template-columns: 1fr; }
  .phone-control { grid-template-columns: 106px 1fr; }
  .cart-line { grid-template-columns: 66px 1fr; }
  .cart-line img { width: 66px; height: 70px; }
  .cart-line > .stepper { grid-column: 1 / -1; justify-content: space-between; }
  .proof { gap: 1.5rem; }
  .proof img { max-height: 340px; }
  .order-number { flex-direction: column; gap: .3rem; }
  .sticky { padding-bottom: max(.65rem, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}
