/* ==========================================================================
   GeloBebida — style.css
   Identidade: azul royal + laranja + bege/off-white + branco
   Ipanema · verão · delivery de bebidas geladas
   ========================================================================== */

:root {
  /* Cores da marca */
  --blue: #1428B4;
  --blue-dark: #0D1A78;
  --blue-soft: #2A45E0;
  --navy: #16193B;
  --orange: #F27C13;
  --orange-dark: #C25F05;
  --green: #1FAD55;
  --green-dark: #16853F;

  --beige: #EFE6D3;
  --beige-light: #F6EBD2;
  --beige-border: #EDE3CE;
  --cream: #FDF9F0;
  --white: #FFFFFF;

  --text: #16193B;
  --text-light: #6B6F8C;
  --text-muted: #7A7E97;
  --text-sand: #9A8F76;

  --danger: #D64545;

  /* Tipografia */
  --font-display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;

  /* Layout */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --header-h: 60px;
  --nav-h: 74px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --max-width: 480px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; width: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--beige);
  color: var(--text);
  line-height: 1.4;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; border: 0; cursor: pointer; background: transparent; }
input, select, textarea { font-family: inherit; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

@keyframes pop {
  0% { transform: scale(.6); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(100%); }
  to { transform: translateX(-50%) translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes toastIn {
  from { transform: translate(-50%, 12px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- App shell ---------- */
.app {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--cream);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(20, 25, 59, 0.08);
}

/* ---------- Header ---------- */
.header {
  flex: none;
  background: var(--white);
  padding: 10px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--beige-border);
}

.header__logo { display: flex; align-items: center; gap: 8px; }
.header__logo img { height: 46px; width: auto; }

.header__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F1EEE4;
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
}
.icon-btn--blue { background: var(--blue); }

.icon-btn svg { width: 20px; height: 20px; }

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid var(--white);
}

/* Back header (inner screens) */
.header--inner { gap: 12px; }
.header__back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F1EEE4;
  display: grid;
  place-items: center;
  flex: none;
}
.header__back svg { width: 16px; height: 16px; }
.header__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--text);
  line-height: 1;
}

/* ---------- Main scroll area ---------- */
.main {
  flex: 1;
  padding-bottom: calc(var(--nav-h) + 90px + var(--safe-bottom));
}

.view { display: none; }
.view.is-active { display: block; animation: fadeIn .18s ease-out both; }

/* ---------- Hero ---------- */
.hero {
  margin: 16px 12px 0;
  padding: 24px 20px 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--blue-soft) 0%, var(--blue) 55%, var(--blue-dark) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: var(--beige-light);
  opacity: .12;
  right: -46px; top: -40px;
}
.hero::after {
  content: '';
  position: absolute;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--orange);
  opacity: .3;
  right: 44px; bottom: -30px;
}
.hero__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -.4px;
  max-width: 78%;
}
.hero__subtitle {
  position: relative;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #C9D0F5;
}
.hero__cta {
  position: relative;
  margin-top: 18px;
  width: 100%;
  height: 54px;
  border-radius: 16px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 0 0 var(--orange-dark);
}
.hero__cta:active { transform: translateY(4px); box-shadow: 0 4px 0 0 var(--orange-dark); }

/* ---------- Section headings ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 24px 16px 12px;
  gap: 8px;
}
.section-head--tight { padding-bottom: 2px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .dot {
  height: 9px; width: 9px; border-radius: 50%; background: var(--orange); flex: none;
}
.section-sub { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-top: 2px; }
.section-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
  flex: none;
}

/* ---------- Category rail ---------- */
.cat-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 18px 16px 4px;
  scroll-snap-type: x proximity;
}
.cat-item {
  flex: none;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  scroll-snap-align: start;
}
.cat-item__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--beige-light);
  border: 2px solid var(--beige-border);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cat-item__icon img { width: 34px; height: 34px; }
.cat-item__label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  text-align: center;
  width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* ---------- Category chips (busca) ---------- */
.chip-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 16px 4px;
}
.chip {
  flex: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--beige-border);
  white-space: nowrap;
}
.chip.is-active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ---------- Search bar ---------- */
.searchbar {
  margin: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--beige-border);
}
.searchbar svg { width: 17px; height: 17px; flex: none; color: var(--text-muted); }
.searchbar input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  min-width: 0;
}
.searchbar input::placeholder { color: var(--text-muted); font-weight: 600; }
.searchbar__clear {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--beige-border);
  display: none;
  place-items: center;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 800;
  line-height: 0;
}
.searchbar__clear.is-visible { display: grid; }

/* ---------- Product grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--beige-border);
  border-radius: var(--radius-lg);
  padding: 10px 10px 12px;
  position: relative;
  min-width: 0;
}
.product-card__link {
  display: block;
  width: 100%;
  background: transparent;
  padding: 0;
  text-align: left;
}
.product-card__img {
  display: block;
  height: 104px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--beige-light);
}
.product-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-card__name {
  display: block;
  margin-top: 9px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card__vol { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.product-card__row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.product-card__price { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--orange); white-space: nowrap; flex-shrink: 0; }
.add-btn {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  line-height: 0;
  display: grid;
  place-items: center;
}
.add-btn:active { transform: scale(0.92); }
.qty-flag {
  position: absolute;
  top: 8px; left: 8px;
  min-width: 26px; height: 26px;
  padding: 0 7px;
  border-radius: 13px;
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px -2px rgba(242,124,19,.7);
}

/* ---------- Promo rows ---------- */
.promo-list { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.promo-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--beige-border);
  border-radius: var(--radius-lg);
  padding: 10px;
}
.promo-card__img {
  width: 80px; height: 80px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  background: var(--beige-light);
}
.promo-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.promo-card__body { flex: 1; min-width: 0; }
.promo-card__name { font-size: 15px; font-weight: 800; color: var(--text); }
.promo-card__vol { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.promo-card__prices { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.promo-card__before { font-size: 13px; font-weight: 700; color: #A3A7BC; text-decoration: line-through; white-space: nowrap; }
.promo-card__now { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--orange); white-space: nowrap; }
.promo-card__btn {
  flex: none;
  align-self: stretch;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Combos rail ---------- */
.combo-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 16px 8px;
  scroll-snap-type: x mandatory;
}
.combo-card {
  flex: none;
  width: 220px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--navy);
  scroll-snap-align: start;
}
.combo-card__img { display: block; height: 130px; background: var(--beige-light); }
.combo-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.combo-card__body { padding: 14px 16px 16px; }
.combo-card__name { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--white); line-height: 1.15; }
.combo-card__vol { margin-top: 3px; font-size: 12.5px; font-weight: 600; color: #B9BDD6; }
.combo-card__row { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.combo-card__price { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: #FFB765; white-space: nowrap; }
.combo-card__btn { padding: 10px 16px; border-radius: 13px; background: var(--orange); color: var(--white); font-size: 13.5px; font-weight: 800; white-space: nowrap; }

/* ---------- Info strip / footer ---------- */
.info-strip {
  margin: 24px 16px 8px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--beige-light);
  border: 1px dashed #DCCBA4;
  display: flex;
  gap: 14px;
  align-items: center;
}
.info-strip__icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}
.info-strip__text { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.35; }

.brand-footer {
  padding: 18px 16px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sand);
  line-height: 1.6;
}

/* ---------- Empty states ---------- */
.empty-state { padding: 60px 24px; text-align: center; }
.empty-state__icon {
  width: 84px; height: 84px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--beige-light);
  display: grid;
  place-items: center;
}
.empty-state__icon svg { width: 34px; height: 34px; color: var(--blue); }
.empty-state__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
}
.empty-state__text { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.empty-state__btn {
  margin-top: 20px;
  padding: 14px 22px;
  border-radius: 15px;
  background: var(--orange);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
}

/* ---------- Cart lines ---------- */
.cart-body { padding: 0 16px; }
.cart-lines { display: flex; flex-direction: column; gap: 10px; }
.cart-line {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--beige-border);
  border-radius: 18px;
  padding: 10px;
}
.cart-line__img { width: 68px; height: 68px; flex: none; border-radius: 12px; overflow: hidden; background: var(--beige-light); }
.cart-line__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-line__body { flex: 1; min-width: 0; }
.cart-line__name { font-size: 14px; font-weight: 800; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line__detail { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.cart-line__total { margin-top: 4px; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--orange); }
.stepper {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #F1EEE4;
  border-radius: 999px;
  padding: 4px;
}
.stepper__btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
  line-height: 0;
  display: grid;
  place-items: center;
}
.stepper__btn--add { background: var(--blue); color: var(--white); }
.stepper__val { min-width: 20px; text-align: center; font-size: 15px; font-weight: 800; color: var(--text); }

.remove-line {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--danger);
}
.remove-line svg { width: 15px; height: 15px; }

/* ---------- Totals card ---------- */
.totals-card {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--beige-border);
}
.totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
}
.totals-row + .totals-row { margin-top: 8px; }
.totals-row span:last-child { color: var(--text); }
.totals-row--final {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--beige-border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.totals-row--final .label { font-size: 15px; font-weight: 800; color: var(--text); }
.totals-row--final .value { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--orange); }

.btn-primary {
  margin-top: 16px;
  width: 100%;
  height: 56px;
  border-radius: 18px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 8px 0 0 var(--blue-dark);
}
.btn-primary:active { transform: translateY(4px); box-shadow: 0 4px 0 0 var(--blue-dark); }
.btn-primary:disabled { opacity: .5; box-shadow: 0 8px 0 0 rgba(13,26,120,.4); }

.btn-orange {
  width: 100%;
  height: 56px;
  border-radius: 18px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 8px 0 0 var(--orange-dark);
}
.btn-orange:active { transform: translateY(4px); box-shadow: 0 4px 0 0 var(--orange-dark); }

/* ---------- Form ---------- */
.form-body { padding: 0 16px; }
.field { display: block; margin-bottom: 12px; }
.field__label { display: block; font-size: 13px; font-weight: 800; color: var(--text-light); margin-bottom: 6px; }
.field__input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 15px;
  border: 1.5px solid var(--beige-border);
  background: var(--white);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  outline: 0;
  transition: border-color .15s ease;
}
.field__input:focus { border-color: var(--blue); }
.field__input.has-error { border-color: var(--danger); }
.field__error { display: none; margin-top: 5px; font-size: 12px; font-weight: 700; color: var(--danger); }
.field__error.is-visible { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }

.pay-options { display: flex; gap: 8px; margin-top: 8px; }
.pay-opt {
  flex: 1;
  padding: 14px 6px;
  border-radius: 15px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--beige-border);
  text-align: center;
}
.pay-opt.is-active { background: var(--blue); color: var(--white); border-color: var(--blue); }

.total-pill {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--beige-light);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.total-pill span:first-child { font-size: 14px; font-weight: 800; color: var(--text); }
.total-pill span:last-child { font-family: var(--font-display); font-size: 23px; font-weight: 800; color: var(--text); }

/* ---------- Confirmation ---------- */
.confirm-body { padding: 20px 20px 24px; text-align: center; }
.confirm-check {
  width: 92px; height: 92px;
  margin: 12px auto 0;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 42px;
  font-weight: 700;
  animation: pop .45s ease-out both;
}
.confirm-title { margin-top: 18px; font-family: var(--font-display); font-size: 27px; font-weight: 800; color: var(--text); }
.confirm-text { margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--text-light); line-height: 1.45; }
.confirm-msg {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--beige-border);
  text-align: left;
  white-space: pre-wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  max-height: 260px;
  overflow-y: auto;
}
.wa-btn {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  border-radius: 18px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 8px 0 0 var(--green-dark);
}
.wa-btn:active { transform: translateY(4px); box-shadow: 0 4px 0 0 var(--green-dark); }
.wa-btn svg { width: 22px; height: 22px; flex: none; }
.confirm-again {
  margin-top: 10px;
  width: 100%;
  height: 46px;
  border-radius: 16px;
  background: transparent;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 800;
}

/* ---------- Orders (histórico local) ---------- */
.order-card {
  background: var(--white);
  border: 1px solid var(--beige-border);
  border-radius: 22px;
  padding: 16px;
}
.order-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-card__date { font-size: 12.5px; font-weight: 800; color: var(--text-muted); }
.order-card__status { padding: 5px 10px; border-radius: 999px; background: #E8F5EC; color: #157A3C; font-size: 12px; font-weight: 800; white-space: nowrap; }
.order-card__items { margin-top: 12px; font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.5; }
.order-card__row { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-card__total { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--text); }
.order-card__btn { padding: 12px 18px; border-radius: 14px; background: var(--blue); color: var(--white); font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.orders-hint { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--text-muted); text-align: center; }
.orders-list { display: flex; flex-direction: column; gap: 12px; }

/* ---------- FAB (pedir pelo whatsapp) ---------- */
.fab {
  position: fixed;
  right: 50%;
  transform: translateX(calc(var(--max-width) / 2 - 70px));
  bottom: calc(var(--nav-h) + 14px + var(--safe-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 20px 0 14px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 14.5px;
  font-weight: 800;
  box-shadow: 0 12px 26px -8px rgba(31,173,85,.75), 0 0 0 5px rgba(31,173,85,.14);
}
.fab svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 480px) {
  .fab { right: 14px; transform: none; }
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 50;
  width: 100%;
  max-width: var(--max-width);
  height: var(--nav-h);
  padding: 0 8px calc(10px + var(--safe-bottom));
  background: var(--white);
  border-top: 1px solid var(--beige-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}
.nav-item {
  background: transparent;
  padding: 8px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.nav-item__dot { width: 20px; height: 4px; border-radius: 2px; background: transparent; }
.nav-item.is-active .nav-item__dot { background: var(--blue); }
.nav-item__icon { width: 21px; height: 21px; color: var(--text-muted); }
.nav-item.is-active .nav-item__icon { color: var(--blue); }
.nav-item__label { font-size: 11.5px; font-weight: 800; color: var(--text-muted); }
.nav-item.is-active .nav-item__label { color: var(--blue); }
.nav-item__badge {
  position: absolute;
  top: 2px; right: 12px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ---------- Product sheet (modal) ---------- */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}
.sheet-overlay.is-open { display: block; }
.sheet-overlay__bg {
  position: absolute;
  inset: 0;
  background: rgba(22,25,59,.55);
  width: 100%;
  border: 0;
  animation: fadeIn .15s ease-out both;
}
.sheet {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--max-width);
  background: var(--cream);
  border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(22px + var(--safe-bottom));
  animation: slideUp .25s cubic-bezier(.2,.8,.2,1) both;
  max-height: 88vh;
  overflow-y: auto;
}
.sheet__handle { width: 44px; height: 5px; border-radius: 3px; background: #E3D9C3; margin: 0 auto 14px; }
.sheet__img { height: 180px; border-radius: 20px; overflow: hidden; background: var(--beige-light); }
.sheet__img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.sheet__name { margin-top: 14px; font-family: var(--font-display); font-size: 23px; font-weight: 700; color: var(--text); line-height: 1.15; }
.sheet__desc { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--text-light); line-height: 1.45; }
.sheet__row { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet__price { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--orange); white-space: nowrap; }
.sheet .stepper__btn { width: 38px; height: 38px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 16px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 70;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.35);
  animation: toastIn .2s ease-out both;
  pointer-events: none; /* nunca deve bloquear cliques em botões abaixo dele */
}

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Small screens ---------- */
@media (max-width: 340px) {
  .hero__title { font-size: 26px; }
  .product-card__name { font-size: 13px; }
}
