@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/baloo2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/baloo2-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --rosa-pastel: #f8c8d8;
  --rosa-claro: #fbe9ef;
  --creme: #fff8fa;
  --bordo: #8c1d33;
  --bordo-escuro: #6d1426;
  --texto: #4a2b33;
  --branco: #ffffff;
  --sombra: 0 10px 30px rgba(140, 29, 51, 0.12);
  --raio: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', 'Baloo 2', sans-serif;
  color: var(--texto);
  background: var(--creme);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .brand-name {
  font-family: 'Baloo 2', sans-serif;
  color: var(--bordo);
  line-height: 1.15;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--bordo);
  color: #fff;
  box-shadow: 0 8px 20px rgba(140, 29, 51, 0.35);
}

.btn-primary:hover {
  background: var(--bordo-escuro);
}

.btn-outline {
  background: var(--branco);
  color: var(--bordo);
  border: 2px solid var(--bordo);
}

.btn-outline:hover {
  background: var(--rosa-claro);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rosa-pastel);
}

.header-inner {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--sombra);
  border: 3px solid var(--rosa-pastel);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.brand-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bordo);
  opacity: 0.75;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-link {
  font-weight: 700;
  color: var(--bordo);
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.header-link:hover {
  background: var(--rosa-claro);
}

.cart-btn {
  position: relative;
  background: var(--bordo);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(140, 29, 51, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}

.cart-btn:hover {
  background: var(--bordo-escuro);
}

.cart-btn:active {
  transform: scale(0.92);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--rosa-pastel);
  color: var(--bordo-escuro);
  font-weight: 800;
  font-size: 0.72rem;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.cart-count.hidden {
  display: none;
}

/* ---------- Nav toggle (mobile) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--rosa-claro);
  padding: 11px;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 2px;
  background: var(--bordo);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--branco);
  border-bottom: 1px solid var(--rosa-pastel);
  box-shadow: var(--sombra);
  padding: 6px 0;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 14px 24px;
  font-weight: 800;
  color: var(--bordo);
  border-bottom: 1px solid var(--rosa-claro);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  background: var(--rosa-claro);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--rosa-claro) 0%, var(--rosa-pastel) 60%, #f4b8cd 100%);
  padding: 72px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  width: min(760px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--branco);
  color: var(--bordo);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--sombra);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--bordo);
  background: linear-gradient(180deg, transparent 55%, var(--rosa-pastel) 55%);
  padding: 0 4px;
}

.hero p {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-emojis {
  margin-top: 40px;
  font-size: 2rem;
  letter-spacing: 10px;
  opacity: 0.7;
}

/* ---------- Menu ---------- */
.menu {
  padding: 70px 0 90px;
}

.menu-head {
  text-align: center;
  margin-bottom: 36px;
}

.menu-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

.menu-sub {
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 22px;
}

.pill {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--bordo);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  vertical-align: middle;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter {
  background: var(--branco);
  border: 2px solid var(--rosa-pastel);
  color: var(--bordo);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.filter:hover {
  background: var(--rosa-claro);
}

.filter.active {
  background: var(--bordo);
  color: #fff;
  border-color: var(--bordo);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.card {
  background: var(--branco);
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-photo {
  position: relative;
  aspect-ratio: 1 / 0.9;
  background: var(--rosa-claro);
  overflow: hidden;
}

.card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 4rem;
  background: linear-gradient(160deg, var(--rosa-claro), var(--rosa-pastel));
}

.card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-cat {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bordo);
  opacity: 0.6;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--texto);
  font-family: 'Baloo 2', sans-serif;
}

.card-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--texto);
  opacity: 0.65;
}

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
}

.card-price {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--bordo);
}

.add-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bordo);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(140, 29, 51, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}

.add-btn:hover {
  background: var(--bordo-escuro);
}

.add-btn:active {
  transform: scale(0.85);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bordo);
  color: #fbe9ef;
  padding-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.footer-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--rosa-pastel);
}

.footer-brand p {
  font-weight: 600;
  opacity: 0.9;
}

.footer h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-col p {
  margin-bottom: 8px;
  font-weight: 600;
  opacity: 0.92;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ---------- Carrinho ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(74, 43, 51, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 90;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(400px, 100%);
  background: var(--creme);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -10px 0 40px rgba(74, 43, 51, 0.2);
}

.cart.open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  background: var(--branco);
  border-bottom: 1px solid var(--rosa-pastel);
}

.cart-head h3 {
  font-size: 1.3rem;
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rosa-claro);
  color: var(--bordo);
  font-size: 1.1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.cart-close:hover {
  background: var(--rosa-pastel);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-weight: 600;
  opacity: 0.7;
  padding: 20px;
}

.cart-empty.show {
  display: flex;
}

.cart-empty-icon {
  font-size: 3rem;
}

.cart-item {
  display: flex;
  gap: 12px;
  background: var(--branco);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--sombra);
}

.cart-item-thumb-box {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: linear-gradient(160deg, var(--rosa-claro), var(--rosa-pastel));
}

.cart-item-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-name {
  font-weight: 800;
  font-family: 'Baloo 2', sans-serif;
  color: var(--bordo);
  line-height: 1.1;
}

.cart-item-unit {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.6;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--rosa-claro);
  color: var(--bordo);
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.qty-btn:hover {
  background: var(--rosa-pastel);
}

.qty-value {
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}

.cart-item-price {
  font-weight: 800;
  color: var(--bordo);
  align-self: flex-end;
  font-family: 'Baloo 2', sans-serif;
}

.cart-foot {
  padding: 20px 22px;
  background: var(--branco);
  border-top: 1px solid var(--rosa-pastel);
  display: none;
  flex-direction: column;
  gap: 12px;
}

.cart-foot.show {
  display: flex;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.cart-delivery {
  background: var(--rosa-claro);
  border-radius: 16px;
  padding: 14px;
}

.cart-delivery h4 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--bordo);
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.delivery-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--branco);
  border: 2px solid var(--rosa-pastel);
  border-radius: 12px;
  padding: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.15s ease;
}

.delivery-opt.selected {
  background: var(--bordo);
  border-color: var(--bordo);
  color: #fff;
}

.delivery-opt input {
  accent-color: var(--bordo);
}

.delivery-field {
  display: none;
  margin-top: 10px;
}

.delivery-field.show {
  display: block;
}

.delivery-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--rosa-pastel);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--branco);
  color: var(--texto);
  outline: none;
}

.delivery-input:focus {
  border-color: var(--bordo);
}

.delivery-note {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.7;
}

.delivery-note:empty {
  display: none;
}

.cart-total strong {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.4rem;
  color: var(--bordo);
}

.cart-note {
  font-size: 0.75rem;
  text-align: center;
  opacity: 0.6;
  font-weight: 600;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bordo);
  color: #fff;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(140, 29, 51, 0.4);
  z-index: 120;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 720px) {
  .header-link {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 56px 0 70px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .toast {
    white-space: normal;
    text-align: center;
    width: max-content;
    max-width: 90vw;
  }
}
