:root {
  --brown: #5A2A0A;
  --brown-grad: #7A3A12;
  --yellow: #F4BF1A;
  --cream: #F8EBC0;
  --white: #FFFFFF;
  --text-secondary: #6B6B6B;
  --border-gray: #EAEAEA;
  --red-offer: #E53935;
  --text-dark: #111111;
  --desc-gray: #7A7A7A;
  --dot-inactive: #C9C9C9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #EFEFEF;
  color: var(--text-dark);
}

.appShell {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  padding-top: env(safe-area-inset-top, 0px);
}

/* 2. Cabeçalho principal */
.topHeader {
  height: 96px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.iconBtn {
  background: none;
  border: 0;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  cursor: pointer;
  position: relative;
}
.iconBtn svg { width: 28px; height: 28px; }

.headerActions { display: flex; align-items: center; gap: 14px; }

.cartBadge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--red-offer);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.brandLockup { display: flex; align-items: center; gap: 8px; }
.brandLockup .chefIcon { width: 30px; height: 30px; color: var(--brown); flex-shrink: 0; }
.brandWordmark { line-height: 1.05; }
.brandWordmark .line1 { font-size: 15px; font-weight: 800; color: var(--yellow); letter-spacing: .2px; }
.brandWordmark .line2 { font-size: 17px; font-weight: 900; color: var(--brown); margin-top: -1px; }
.brandWordmark .tagline {
  font-size: 10px;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
  margin-top: 2px;
}

/* 3. Saudação */
.greeting { padding: 20px 24px 0; }
.greeting h1 { margin: 0; font-size: 23px; font-weight: 600; }
.greeting h1 b { color: var(--brown); font-weight: 800; }
.greeting p { margin: 4px 0 0; font-size: 15px; color: var(--text-secondary); }

/* 4. Atalhos rápidos */
.shortcuts {
  display: flex;
  gap: 12px;
  padding: 16px 24px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.shortcuts::-webkit-scrollbar { display: none; }
.shortcutCard {
  flex: 0 0 auto;
  width: 76px;
  height: 96px;
  border-radius: 20px;
  border: 1px solid var(--border-gray);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--brown);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.shortcutCard svg { width: 30px; height: 30px; }
.shortcutCard.active { background: var(--cream); }

/* 5. Banner principal */
.bannerWrap { padding: 20px 24px 0; }
.banner {
  position: relative;
  height: 290px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #C9791C, #8A4A12);
  display: flex;
  align-items: flex-end;
}
.banner .bannerArt {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 35%, rgba(255,200,120,.55), transparent 60%),
              linear-gradient(180deg, rgba(90,42,10,0) 35%, rgba(90,42,10,.75) 100%);
}
.banner .bannerArt .emoji {
  position: absolute;
  right: 18px;
  top: 24px;
  font-size: 92px;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.35));
}
.banner .bannerText {
  position: relative;
  padding: 22px;
  color: #fff;
}
.banner .bannerText h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
}
.banner .bannerText h2 .accent { color: var(--yellow); }
.banner .bannerText p { margin: 8px 0 0; font-size: 14px; color: #fff; opacity: .92; }

.bannerDots { display: flex; justify-content: center; gap: 8px; padding: 12px 0 4px; }
.bannerDots span { width: 11px; height: 11px; border-radius: 50%; background: var(--dot-inactive); }
.bannerDots span.active { background: var(--yellow); }

/* 7. Cabeçalho da seção */
.sectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 4px;
}
.sectionHead h3 { margin: 0; font-size: 24px; font-weight: 800; color: var(--text-dark); }
.sectionHead a {
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* 8. Cards de produto */
.productGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 24px 8px;
}
.productCard {
  position: relative;
  background: var(--white);
  border: 1px solid #EDEDED;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.productImg {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: linear-gradient(160deg, var(--cream), #F3D98A);
  overflow: hidden;
}
.productImg img { width: 100%; height: 100%; object-fit: cover; }
.productBody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.productBody .pName { font-size: 17px; font-weight: 700; margin: 0; }
.productBody .pDesc { font-size: 13px; color: var(--desc-gray); margin: 0 0 6px; }
.priceRow { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.priceBlock { display: flex; flex-direction: column; }
.priceNow { font-size: 19px; font-weight: 800; color: var(--text-dark); }
.priceNow .unit { font-size: 12px; font-weight: 600; color: var(--desc-gray); }
.addBtn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  border: 0;
  color: var(--brown);
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 13px;
  z-index: 2;
}
.badge.offer { background: var(--red-offer); color: #fff; }

/* 10. Botões de ação final */
.ctaButtons { padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.ctaBtn {
  width: 100%;
  height: 76px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.ctaBtn.primary { background: var(--white); border: 2px solid var(--brown); color: var(--brown); }
.ctaBtn.secondary { border: 0; color: #fff; background: linear-gradient(135deg, var(--brown), var(--brown-grad)); }

.footerTagline { text-align: center; font-size: 12px; color: var(--text-secondary); padding: 0 24px 24px; }

.comingSoon { padding: 70px 24px 30px; text-align: center; }
.comingSoon .comingSoonIcon { font-size: 64px; line-height: 1; }
.comingSoon h1 { margin: 16px 0 4px; font-size: 24px; font-weight: 800; color: var(--text-dark); }
.comingSoon p { margin: 0; color: var(--text-secondary); font-size: 15px; }
.comingSoon .comingSoonSub { max-width: 300px; margin: 8px auto 0; font-size: 13px; }
.comingSoon .ctaBtn { margin-top: 28px; max-width: 280px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: var(--brown);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  transition: .2s;
  pointer-events: none;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
