/* ============================================================
   AÇAÍ — TEMA PREMIUM (roxo profundo + dourado + tropical)
   ============================================================ */

:root {
  --purple-900: #1c0733;
  --purple-800: #2a0a4e;
  --purple-700: #3c1069;
  --purple-600: #56189b;
  --purple-500: #7b2ff7;
  --purple-glow: #a855f7;
  --pink: #ff4fd8;
  --gold: #ffb800;
  --gold-soft: #ffce4d;
  --green: #34d36a;

  --ink: #f6ecff;
  --ink-soft: #cbb6e6;
  --line: rgba(255, 255, 255, 0.10);
  --card: rgba(255, 255, 255, 0.055);
  --card-2: rgba(255, 255, 255, 0.09);
  --glass-brd: rgba(255, 255, 255, 0.14);

  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 14px 30px -10px rgba(255, 184, 0, 0.5);
  --wrap: 1120px;
  --font-display: "Anton", system-ui, sans-serif;
  --font: "Poppins", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, #4a137f 0%, transparent 55%),
    radial-gradient(900px 600px at 0% 10%, #45106f 0%, transparent 50%),
    linear-gradient(180deg, var(--purple-800) 0%, var(--purple-900) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---- Orbes de fundo ---- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.orb--1 { width: 420px; height: 420px; background: var(--purple-glow); top: -120px; right: -80px; }
.orb--2 { width: 380px; height: 380px; background: var(--pink); bottom: 5%; left: -120px; opacity: 0.35; }
.orb--3 { width: 300px; height: 300px; background: var(--gold); top: 45%; right: 10%; opacity: 0.15; }

/* orbes ficam no fundo (z-index:-1); conteúdo normal já pinta por cima.
   NÃO forçar position aqui — quebrava o position:fixed do drawer/overlay/FAB. */

/* ---- Topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(28, 7, 51, 0.6);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand__logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.brand__name { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: 1px; }
.badge-status {
  font-size: 0.78rem; font-weight: 700; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
}
.badge-status.open { color: #0a2e17; background: var(--green); border-color: transparent; }
.badge-status.closed { color: #ffd7d7; background: rgba(255, 80, 80, 0.18); border-color: rgba(255,80,80,.35); }

/* ---- Botões ---- */
.btn {
  font-family: var(--font); font-weight: 700; font-size: 0.98rem;
  border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #3a1200; box-shadow: var(--shadow-gold);
}
.btn--gold:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--gold:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; filter: grayscale(.3); }
.btn--wa { background: linear-gradient(135deg, #25d366, #1eb455); color: #052e14; box-shadow: 0 14px 30px -12px rgba(37,211,102,.6); }
.btn--wa:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* ---- Hero ---- */
.hero { padding: 42px 0 20px; }
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: center; }
.hero__eyebrow {
  display: inline-block; font-weight: 600; font-size: 0.85rem; letter-spacing: .5px;
  color: var(--gold-soft); background: rgba(255,184,0,.1); border: 1px solid rgba(255,184,0,.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-display); line-height: .92; letter-spacing: 1px;
  font-size: clamp(3rem, 10vw, 6rem); text-transform: uppercase;
  text-shadow: 0 6px 30px rgba(0,0,0,.4);
}
.hero__title .t-acai {
  display: block; color: var(--gold);
  -webkit-text-stroke: 2px rgba(0,0,0,.15);
  filter: drop-shadow(0 8px 18px rgba(255,184,0,.35));
}
.hero__title .t-energy {
  display: block; color: var(--green);
  font-size: .42em; letter-spacing: 6px; margin-top: 2px;
  filter: drop-shadow(0 6px 14px rgba(52,211,106,.4));
}
.hero__title .t-energy em { font-style: normal; }
.hero__sub { margin-top: 14px; font-size: 1.15rem; color: var(--ink-soft); max-width: 30ch; }
.hero__cta { margin-top: 24px; }
.hero__prices { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.pricechip {
  background: var(--card); border: 1px solid var(--glass-brd); border-radius: var(--radius-sm);
  padding: 10px 16px; display: flex; flex-direction: column; line-height: 1.15; backdrop-filter: blur(8px);
}
.pricechip b { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .5px; }
.pricechip span { font-size: .78rem; color: var(--ink-soft); }
.pricechip em { color: var(--gold); font-style: normal; font-weight: 800; }

/* Foto do açaí no hero */
.hero__photo {
  width: min(420px, 100%); aspect-ratio: 7 / 6; object-fit: cover;
  border-radius: 26px; border: 3px solid rgba(255,184,0,.55);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.06);
}

/* Tigela ilustrada (legado) */
.hero__art { display: flex; justify-content: center; }
.bowl { position: relative; width: min(340px, 80%); aspect-ratio: 1; }
.bowl__cup {
  position: absolute; inset: 22% 6% 6% 6%;
  background: radial-gradient(circle at 50% 30%, #6a2a9e, #3a0f66 70%);
  border-radius: 0 0 50% 50% / 0 0 62% 62%;
  border: 4px solid rgba(255,255,255,.12);
  box-shadow: inset 0 12px 30px rgba(0,0,0,.45), var(--shadow);
}
.bowl__cup::before {
  content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 92%; height: 34px; border-radius: 50%;
  background: linear-gradient(180deg, #7b2ff7, #4a137f);
  box-shadow: inset 0 -6px 14px rgba(0,0,0,.5);
}
.bowl__fruit { position: absolute; top: 6%; left: 0; right: 0; text-align: center; font-size: clamp(2rem, 8vw, 3.4rem); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---- Builder ---- */
#builder { padding: 26px 20px 60px; }
.builder {
  background: var(--card); border: 1px solid var(--glass-brd);
  border-radius: var(--radius); padding: 8px 22px 22px; backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.step { padding: 24px 0; border-bottom: 1px dashed var(--line); }
.step:last-of-type { border-bottom: 0; }
.step__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.step__num {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.25rem;
  color: #3a1200; background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: var(--shadow-gold);
}
.step__title { font-size: 1.3rem; font-weight: 700; }
.step__title .step__opt { font-size: .85rem; color: var(--ink-soft); font-weight: 500; }
.step__hint { font-size: .9rem; color: var(--ink-soft); margin-top: 2px; }
.step__hint b { color: var(--gold-soft); }

.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.opts--sizes { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.opt {
  position: relative; text-align: left; cursor: pointer;
  background: var(--card-2); border: 1.5px solid var(--glass-brd); border-radius: var(--radius-sm);
  padding: 14px 16px; color: var(--ink); font: inherit; transition: all .16s ease;
  display: flex; align-items: center; gap: 10px;
}
.opt:hover { border-color: var(--purple-glow); transform: translateY(-2px); }
.opt__check {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid var(--glass-brd); display: grid; place-items: center;
  font-size: .8rem; color: transparent; transition: all .16s ease;
}
.opt__name { font-weight: 600; }
.opt.sel { border-color: var(--gold); background: rgba(255,184,0,.13); box-shadow: 0 0 0 1px var(--gold) inset; }
.opt.sel .opt__check { background: var(--gold); border-color: var(--gold); color: #3a1200; }
.opt.disabled { opacity: .4; cursor: not-allowed; }
.opt.disabled:hover { transform: none; border-color: var(--glass-brd); }

/* Cards de tamanho */
.opt--size { flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 20px; }
.opt--size .size__name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .5px; }
.opt--size .size__ml { font-size: .82rem; color: var(--ink-soft); }
.opt--size .size__price { position: absolute; top: 16px; right: 18px; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.opt--size.sel .size__price { color: var(--gold-soft); }

/* ---- Add bar ---- */
.addbar {
  position: sticky; bottom: 14px; margin-top: 22px;
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  border: 1px solid var(--glass-brd); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); flex-wrap: wrap;
}
.addbar__info { display: flex; flex-direction: column; }
.addbar__label { font-size: .82rem; color: var(--ink-soft); }
.addbar__price { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold); }
.addbar .btn { flex: 1 0 auto; }

/* ---- Info ---- */
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.info__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.info__card h4 { font-size: 1.05rem; margin-bottom: 10px; }
.info__card p, .info__card li { color: var(--ink-soft); font-size: .92rem; line-height: 1.7; }
.info__card ul { list-style: none; }
.info__card li { display: flex; justify-content: space-between; gap: 10px; }
.info__card li.today { color: var(--gold-soft); font-weight: 600; }
.socials { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.socials a { color: var(--gold-soft); text-decoration: none; font-weight: 600; font-size: .9rem; }

.foot { text-align: center; padding: 30px 20px 120px; color: var(--ink-soft); font-size: .85rem; }

/* ---- Cart FAB ---- */
.cartfab {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 45; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #3a1200;
  font-family: var(--font); font-weight: 800; font-size: 1rem;
  padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow-gold);
  display: flex; align-items: center; gap: 10px; transition: transform .18s ease;
}
.cartfab:hover { transform: translateX(-50%) translateY(-3px); }
.cartfab.hidden { display: none; }
.cartfab__count { background: #3a1200; color: var(--gold-soft); border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: .82rem; padding: 0 6px; }
.cartfab__total { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .5px; }

/* ---- Overlay + Drawer ---- */
.overlay { position: fixed; inset: 0; background: rgba(10, 2, 20, .6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 50; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 100%);
  background: linear-gradient(180deg, var(--purple-800), var(--purple-900));
  border-left: 1px solid var(--glass-brd); z-index: 55;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.drawer.show { transform: translateX(0); }
.drawer__head { position: sticky; top: 0; z-index: 2; background: var(--purple-800); display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.25rem; }
.drawer__close { background: var(--card); border: 1px solid var(--line); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.drawer__body { flex: 0 0 auto; padding: 16px 20px; }
.drawer__foot { padding: 16px 20px 22px; border-top: 1px solid var(--line); background: rgba(0,0,0,.15); }

.cart-empty { text-align: center; color: var(--ink-soft); padding: 40px 10px; }
.cart-empty span { font-size: 3rem; display: block; margin-bottom: 10px; }

.citem { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px; }
.citem__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.citem__name { font-weight: 700; }
.citem__price { font-family: var(--font-display); color: var(--gold); font-size: 1.15rem; }
.citem__detail { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; }
.citem__detail b { color: var(--ink); font-weight: 600; }
.citem__actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.qtybtn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.qty { min-width: 22px; text-align: center; font-weight: 700; }
.citem__del { margin-left: auto; background: none; border: 0; color: #ff8b8b; cursor: pointer; font-size: .82rem; font-weight: 600; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: .82rem; color: var(--ink-soft); margin-bottom: 5px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--card-2); border: 1px solid var(--glass-brd); border-radius: 12px;
  padding: 11px 13px; color: var(--ink); font: inherit; font-size: .95rem;
}
.field textarea { min-height: 60px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field select option { background: var(--purple-800); }

.totals { margin: 8px 0 14px; }
.totals__row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-soft); font-size: .92rem; }
.totals__row--grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.totals__row--grand b { font-family: var(--font-display); color: var(--gold); font-size: 1.4rem; }
.drawer__note { font-size: .78rem; color: var(--ink-soft); text-align: center; margin-top: 10px; }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #12051f; border: 1px solid var(--gold); color: var(--ink);
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 60; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Responsivo ---- */
@media (max-width: 760px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__photo { width: min(320px, 82%); }
  .info { grid-template-columns: 1fr; }
  .addbar { flex-direction: column; align-items: stretch; }
  .addbar .btn { width: 100%; }

  /* ---- PERFORMANCE MOBILE: sem esses efeitos o celular NÃO trava ---- */
  .bg-orbs { display: none; }                 /* orbes borrados pesam demais */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(24, 6, 44, 0.95); }
  .builder, .pricechip { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .overlay { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .addbar { position: static; }               /* sticky + blur causava congelamento */
}
