*,
*::before,
*::after {
  box-sizing: border-box
}

:root {
  --background: #ffffff;
  --foreground: #2a1410;
  --card: #ffffff;
  --muted: #f7f1f0;
  --muted-foreground: #7a5a55;
  --border: #f0dcd9;
  --primary: #d62828;
  --primary-foreground: #ffffff;
  --secondary: #fde9e7;
  --secondary-foreground: #d62828;
  --accent: #fcd9d4;
  --accent-foreground: #d62828;
  --gradient-flame: linear-gradient(135deg, #d62828, #f05a3a);
  --gradient-warm: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .95));
  --shadow-glow: 0 20px 60px -15px rgba(214, 40, 40, .35);
  --shadow-card: 0 12px 30px -12px rgba(214, 40, 40, .18);
  --radius: 14px;
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  min-height: 100vh
}

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit
}

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

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem
}

.gradient-text {
  background: var(--gradient-flame);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  gap: 1rem
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.125rem;
  font-weight: 600
}

.logo span.emoji {
  font-size: 1.5rem
}

nav.main-nav {
  display: none;
  gap: 1.5rem;
  font-size: .875rem;
  color: var(--muted-foreground)
}

nav.main-nav a {
  transition: color .15s
}

nav.main-nav a:hover {
  color: var(--foreground)
}

@media(min-width:768px) {
  nav.main-nav {
    display: flex
  }
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: .5rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-glow);
  transition: transform .15s
}

.cart-btn:hover {
  transform: scale(1.05)
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .375rem;
  border-radius: 9999px;
  background: #fff;
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  margin-left: .25rem
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border)
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url(https://images.unsplash.com/photo-1513104890138-7c749659a591?w=1920&q=80);
  background-size: cover;
  background-position: center;
  opacity: .25
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-warm);
  opacity: .9
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 6rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 9999px;
  background: rgba(253, 233, 231, .9);
  color: var(--secondary-foreground);
  padding: .375rem 1rem;
  font-size: .875rem;
  font-weight: 500
}

h1 {
  margin: 1.5rem 0 0;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05
}

@media(min-width:768px) {
  h1 {
    font-size: 4.5rem
  }
}

.hero-content p {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--muted-foreground)
}

/* Sections */
main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 5rem 1.5rem
}

section.menu {
  margin-bottom: 5rem;
  scroll-margin-top: 6rem
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap
}

.subtitle-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: .25rem .75rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted-foreground);
  margin-bottom: .75rem
}

.subtitle-pill .dot {
  width: .5rem;
  height: .5rem;
  border-radius: 9999px;
  background: var(--primary)
}

h2 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700
}

@media(min-width:768px) {
  h2 {
    font-size: 3rem
  }
}

.see-all {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  transition: all .15s;
  white-space: nowrap
}

.see-all:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  transform: translateX(2px)
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr
}

@media(min-width:768px) {
  .grid {
    grid-template-columns: 1fr 1fr
  }
}

article.item {
  display: flex;
  gap: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform .2s, border-color .2s;
  overflow: hidden
}

article.item:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 40, 40, .5)
}

.item-img {
  position: relative;
  width: 8rem;
  height: 8rem;
  flex-shrink: 0;
  border-radius: .75rem;
  overflow: hidden
}

.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s
}

article.item:hover .item-img img {
  transform: scale(1.1)
}

.item-body {
  flex: 1;
  display: flex;
  flex-direction: column
}

.item-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem
}

.item-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2
}

.tag {
  border-radius: 9999px;
  padding: .125rem .5rem;
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em
}

.tag-novo {
  background: var(--accent);
  color: var(--accent-foreground)
}

.tag-favorito {
  background: var(--secondary);
  color: var(--secondary-foreground)
}

.tag-picante {
  background: var(--primary);
  color: var(--primary-foreground)
}

.item-desc {
  margin: .5rem 0;
  font-size: .875rem;
  color: var(--muted-foreground);
  flex: 1
}

.item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .5rem
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-flame);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: .375rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  transition: transform .15s
}

.add-btn:hover {
  transform: scale(1.05)
}

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-glow)
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-flame);
  opacity: .1
}

.cta>div {
  position: relative
}

.cta h3 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0
}

@media(min-width:768px) {
  .cta h3 {
    font-size: 2.25rem
  }
}

.cta p {
  max-width: 36rem;
  margin: .75rem auto 0;
  color: var(--muted-foreground)
}

.cta-btn {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: .75rem 2rem;
  font-weight: 600;
  transition: transform .15s
}

.cta-btn:hover {
  transform: scale(1.05)
}

footer {
  border-top: 1px solid var(--border);
  background: rgba(247, 241, 240, .5);
  padding: 2.5rem 0;
  text-align: center;
  font-size: .875rem;
  color: var(--muted-foreground)
}

/* Cart sheet */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s
}

.overlay.open {
  opacity: 1;
  pointer-events: auto
}

.sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 26rem;
  background: var(--background);
  z-index: 51;
  box-shadow: -10px 0 30px rgba(0, 0, 0, .15);
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  padding: 1.5rem
}

.sheet.open {
  transform: translateX(0)
}

.sheet-head {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border)
}

.sheet-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0
}

.sheet-desc {
  font-size: .875rem;
  color: var(--muted-foreground);
  margin: .5rem 0 0
}

.sheet-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .375rem;
  color: var(--muted-foreground)
}

.sheet-close:hover {
  background: var(--muted)
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0
}

.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  font-size: .875rem;
  color: var(--muted-foreground)
}

.lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem
}

.line {
  display: flex;
  gap: .75rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--card);
  padding: .75rem
}

.line img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: .5rem;
  flex-shrink: 0
}

.line-body {
  flex: 1;
  display: flex;
  flex-direction: column
}

.line-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem
}

.line-name {
  font-size: .875rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2
}

.icon-btn {
  color: var(--muted-foreground);
  transition: color .15s
}

.icon-btn:hover {
  color: var(--primary)
}

.line-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .5rem
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border: 1px solid var(--border);
  border-radius: 9999px
}

.qty button {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.qty button:hover {
  background: var(--muted)
}

.qty span {
  width: 1.5rem;
  text-align: center;
  font-size: .875rem;
  font-weight: 600
}

.line-total {
  font-size: .875rem;
  font-weight: 700;
  color: var(--primary)
}

.sheet-foot {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem
}

.total-label {
  color: var(--muted-foreground);
  font-weight: 500
}

.total-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary)
}

.confirmed-msg {
  margin-bottom: .75rem;
  border: 1px solid rgba(214, 40, 40, .3);
  background: rgba(214, 40, 40, .1);
  color: var(--primary);
  padding: .5rem .75rem;
  text-align: center;
  font-size: .75rem;
  font-weight: 500;
  border-radius: .5rem
}

.place-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: .75rem 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  transition: transform .15s
}

.place-btn:hover:not(:disabled) {
  transform: scale(1.02)
}

.place-btn:disabled {
  opacity: .5;
  cursor: not-allowed
}

/* Icons */
.ic {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  vertical-align: middle
}

.ic-sm {
  width: .875rem;
  height: .875rem
}

.ic-lg {
  width: 1.25rem;
  height: 1.25rem
}