:root {
  --bg: #f7f7f7;
  --dark: #272d2a;
  --green: #40845f;
  --green-soft: #f0f7f3;
  --section-tint: linear-gradient(115deg, #fafbf7, #f0f6ef);
  --gold: #b08b45;
  --muted: #737a76;
  --border: #e9ecea;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
a:focus-visible, button:focus-visible, .product-grid:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.topbar {
  width: calc(100% - 64px);
  max-width: 1136px;
  min-height: 84px;
  margin: 20px auto 0;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 8px 28px #24482e09;
  animation: welcome-enter .55s ease-out both;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 54px; height: 54px; border-radius: 50%; }
.brand strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.4px; }
.brand small { display: block; font-size: 12px; color: var(--muted); }
.insta-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #deeadf;
  border-radius: 24px;
  background: var(--green-soft);
  color: #356f50;
  font-size: 13px;
  font-weight: 500;
  transition: background .2s, transform .2s;
}
.insta-link:hover { background: #e5efe7; transform: translateY(-1px); }
.insta-link:active { transform: scale(.96); }
.insta-link svg { width: 19px; height: 19px; }

.menu-section { max-width: 1200px; margin: auto; padding: 24px 32px 64px; }
.section-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 300px;
  padding: 36px 40px;
  border: 1px solid #29342b;
  border-radius: 28px;
  background: #20271f;
  color: #fff;
}
.section-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #20271f 0%, #20271f 45%, #20271f80 65%, #20271f0d 90%); pointer-events: none; }
.welcome-photo { position: absolute; top: 0; right: 0; width: 55%; height: 100%; object-fit: cover; object-position: center 43%; animation: photo-enter .9s ease-out both; }
.welcome-copy { position: relative; z-index: 1; max-width: 640px; animation: welcome-enter .65s .08s ease-out both; }
.section-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #f0dfbd; margin-bottom: 12px; }
.section-kicker::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: #dfbd72; }
.section-head h1 {
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -1.8px;
  margin-bottom: 16px;
}
.section-head h1 em { color: #f3e7cf; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -2px; }
.welcome-period { color: #dfbd72; }
.section-head p { max-width: 380px; color: #e5e7e1; font-size: 14px; margin-bottom: 0; }
.menu-count { position: absolute; z-index: 1; right: 28px; bottom: 22px; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #ffffff40; border-radius: 20px; background: #182019b3; color: #fff; font-size: 12px; white-space: nowrap; }
.menu-count strong { color: #fff; font-size: 14px; font-weight: 500; }
@keyframes welcome-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes photo-enter {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}
.menu-controls { position: sticky; top: 8px; z-index: 4; margin-top: 24px; padding: 20px; border: 1px solid #e3ebe1; border-radius: 24px; background: var(--section-tint); }
.search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px;
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.search-wrap svg { width: 19px; height: 19px; flex: none; color: var(--muted); }
.search-wrap input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--dark);
  font-size: 16px;
}
.search-wrap input::placeholder { color: var(--muted); }
.categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 0;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.category-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  color: #5b645e;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}
.category-chip span { font-size: 15px; }
.category-chip:hover { border-color: #b7d6c6; }
.category-chip.active { background: var(--green-soft); color: #356f50; border-color: #c9dfd3; }
.search-summary { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.product-sections { display: grid; gap: 40px; margin-top: 18px; }
.product-sections:empty { display: none; }
.product-section { min-width: 0; }
.product-section[data-category="destaques"] { margin: 0 -32px; padding: 24px 32px; background: var(--section-tint); }
.category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
}
.category-heading h2 { font-size: 23px; font-weight: 500; letter-spacing: -.6px; line-height: 1.3; margin: 0; }
.results-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.carousel-hint { display: none; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 5px #203c2a0a, 0 8px 18px -8px #203c2a2e;
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px #203c2a0d, 0 12px 24px -10px #203c2a38; }
}
.product-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f4f5f3; }
.product-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-section[data-category="cervejas"] .product-image { background: #fff; }
.product-section[data-category="cervejas"] .product-image img { object-fit: contain; padding: 16px; }
.product-image.image-fallback::after {
  content: 'Buriti Arena';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 20px;
  font-weight: 500;
}
.product-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #fff;
  color: #4d594f;
  font-size: 11px;
  font-weight: 500;
  text-transform: lowercase;
}
.product-badge::first-letter { text-transform: uppercase; }
.product-info { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.product-category { color: var(--muted); font-size: 12px; font-weight: 400; }
.product-decoration, .product-mark { display: none; }
.product-info h3 { font-size: 20px; font-weight: 500; letter-spacing: -.5px; line-height: 1.35; margin: 6px 0 9px; }
.product-info p { flex: 1; color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
.product-bottom { border-top: 1px solid #12801255; padding-top: 14px; }
.product-bottom strong { color: var(--dark); font-size: 20px; font-weight: 600; letter-spacing: -.4px; }
.product-grid:empty { display: none; }
.empty-state { padding: 48px 16px; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state h3 { font-size: 24px; font-weight: 500; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 14px; }
.empty-state button {
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid #c9dfd3;
  border-radius: 24px;
  background: var(--green-soft);
  color: #356f50;
  font-size: 14px;
  font-weight: 500;
}
footer {
  max-width: 1200px;
  margin: auto;
  padding: 44px 32px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--border);
  background: #fafbf9;
  text-align: center;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 21px; font-weight: 500; letter-spacing: -.4px; }
.footer-brand img { width: 68px; height: 68px; border-radius: 50%; }
.footer-brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.footer-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 28px;
  background: #356f50;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.footer-instagram svg { width: 19px; height: 19px; flex: none; }
.footer-instagram span { font-size: 18px; line-height: 1; }
.footer-instagram:hover { background: #2d6044; }
.footer-credits {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.footer-credits a { color: var(--dark); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.footer-credits a:hover { color: var(--green); }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 620px) {
  .topbar { width: calc(100% - 32px); min-height: 72px; margin-top: 14px; padding: 12px 14px; gap: 12px; border-radius: 26px; }
  .brand { gap: 10px; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 11px; }
  .insta-link { width: 44px; padding: 11px; }
  .insta-link span { display: none; }
  .menu-section { padding: 20px 20px 36px; }
  .section-head { min-height: 260px; padding: 24px 22px; border-radius: 24px; align-items: flex-end; }
  .section-head::after { background: linear-gradient(0deg, #182019f2, #182019a6 55%, #1820191a); }
  .welcome-photo { width: 100%; object-position: center 42%; }
  .section-head h1 { font-size: clamp(30px, 8.6vw, 38px); letter-spacing: -1px; margin-bottom: 10px; }
  .section-head h1 em { letter-spacing: -1.2px; }
  .section-head p { font-size: 13px; }
  .section-kicker { font-size: 11px; margin-bottom: 10px; }
  .menu-count { display: none; }
  .menu-controls { margin-top: 20px; padding: 14px; border-radius: 24px; }
  .search-wrap { margin-top: 0; padding: 0 14px; }
  .categories { padding: 14px 0 0; }
  .category-chip { padding: 10px 15px; }
  .product-sections { gap: 32px; margin-top: 12px; }
  .product-section[data-category="destaques"] { margin: 0 -20px; padding: 24px 20px; }
  .category-heading { margin: 0 0 14px; }
  .category-heading h2 { font-size: 22px; }
  .carousel-hint { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
  .carousel-hint span { font-size: 18px; }
  .product-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    margin: -16px -20px -20px;
    padding: 16px 20px 36px;
    scroll-padding-inline: 20px;
    scrollbar-width: thin;
    scrollbar-color: #cfd8d2 transparent;
  }
  .product-card { scroll-snap-align: start; scroll-snap-stop: always; }
  .product-grid::-webkit-scrollbar { height: 4px; }
  .product-grid::-webkit-scrollbar-thumb { background: #cfd8d2; border-radius: 4px; }
  .product-grid::-webkit-scrollbar-track { background: transparent; }
  .product-info { padding: 20px; }
  footer { padding: 32px 20px 24px; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topbar, .welcome-copy, .welcome-photo { animation: none; }
  .insta-link, .search-wrap, .product-card { transition: none; }
  .product-card:hover { transform: none; }
}
