:root {
  --primary: #8B4A2C;
  --accent: #C98A4B;
  --bg: #FFF8EE;
  --surface: #FFFFFF;
  --text: #2A1810;
  --muted: #8A6F60;
  --header-h: 64px;
  --bottom-nav: 64px;
  --radius: 16px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Fraunces', serif; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

/* ===== Splash ===== */
#splash {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}
#splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { position: relative; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; }
.splash-logo { width: 100px; height: 100px; border-radius: 50%; position: relative; z-index: 1; }
.splash-ring {
  position: absolute; inset: 0;
  border: 4px solid #F0DFC8;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  height: var(--header-h);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px;
}
.header-logo { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.search-wrap { flex: 1; max-width: 420px; position: relative; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .5; font-size: 18px; }
.search-wrap input {
  width: 100%; padding: 10px 14px 10px 36px;
  border: 1px solid #EEE0CC; border-radius: 999px;
  background: var(--bg); font-size: 14px; outline: none;
}
.search-wrap input:focus { border-color: var(--accent); }
.cart-icon-btn {
  position: relative; background: none; border: none; font-size: 20px;
  cursor: pointer; flex-shrink: 0;
}
.badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.badge.hidden { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 1320 / 1480;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 20px 32px;
  background: linear-gradient(180deg, #FFF1DC, var(--bg));
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('assets/images/herobackground.jpg') center / cover no-repeat, #FFF1DC;
  animation: heroKenBurns 16s ease-in-out infinite alternate;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,241,220,.55), rgba(255,248,238,.7));
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 42px; color: var(--primary); letter-spacing: 1px; }
.hero p { color: var(--muted); margin-top: 8px; font-size: 15px; font-weight: 700; }

.hero-logo, .hero-sub, .hero-cta {
  opacity: 0; transform: translateY(18px);
  animation: heroFadeUp .8s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-logo {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  animation-delay: 1.5s;
}
.hero-sub { margin-top: 14px; animation-delay: 1.7s; }
.hero-cta { animation-delay: 1.9s; }
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-cta {
  display: inline-block; margin-top: 20px; padding: 12px 28px;
  background: var(--primary); color: #fff; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 16px rgba(139,74,44,.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 22px rgba(139,74,44,.4);
}
.hero-cta:active { transform: translateY(0) scale(.98); }

/* ===== Hero decorative clouds ===== */
.hero-cloud {
  position: absolute; z-index: 1; opacity: 0;
  background: #fff; border-radius: 999px; filter: blur(.5px);
  box-shadow: 0 8px 20px rgba(139,74,44,.08);
  animation: cloudFadeIn 1.2s ease forwards, cloudDrift 14s ease-in-out infinite;
}
.cloud-1 { top: 14%; left: 8%;  width: 64px; height: 24px; animation-delay: .3s, 1.5s; }
.cloud-2 { top: 22%; right: 10%; width: 46px; height: 18px; animation-delay: .6s, 2.1s; }
.cloud-3 { bottom: 16%; left: 14%; width: 38px; height: 16px; animation-delay: .9s, 1.8s; }
@keyframes cloudFadeIn { to { opacity: .55; } }
@keyframes cloudDrift {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(16px); }
}

.hero-scroll-cue {
  position: absolute; left: 50%; bottom: calc(var(--bottom-nav) + 16px); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.7); color: var(--primary);
  text-decoration: none;
  opacity: 0; animation: heroFadeUp .8s cubic-bezier(.22,1,.36,1) forwards 2.1s, bounce 1.8s ease-in-out infinite 2.9s;
}
.hero-scroll-cue .material-symbols-outlined { text-decoration: none; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ===== Category nav ===== */
.category-nav {
  display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px;
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--bg); border-bottom: 1px solid #F0E2CB;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; padding: 8px 16px; border-radius: 999px;
  border: 1px solid #E9D6B8; background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer;
  white-space: nowrap; transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 4px;
}
.cat-pill .material-symbols-outlined { font-size: 16px; }
.cat-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Menu ===== */
.menu-main { max-width: 1100px; margin: 0 auto; padding: 16px 16px 32px; }
.section-title {
  font-size: 22px; margin: 28px 0 14px; color: var(--primary);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.section-sub { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 400; color: var(--muted); }
.no-results { text-align: center; padding: 40px 0; color: var(--muted); }
.no-results.hidden { display: none; }

.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05);
  display: flex; flex-direction: column;
}
.card-img {
  width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  font-size: 36px; background: #FFFFFF; overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font-size: 15px; }
.card-desc { font-size: 12px; color: var(--muted); line-height: 1.4; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; gap: 6px; }
.card-price { font-size: 12px; font-weight: 600; color: var(--primary); direction: ltr; unicode-bidi: embed; }
.add-btn {
  background: var(--primary); color: #fff; border: none; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
}

/* ===== Add-ons ===== */
.addons-section { margin-top: 36px; }
.addon-lists { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .addon-lists { grid-template-columns: 1fr 1fr; } }
.addon-block { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.addon-block h3 { font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.addon-list { list-style: none; }
.addon-list li {
  padding: 7px 0; font-size: 14px; border-bottom: 1px dashed #EEE0CC;
}
.addon-list li:last-child { border-bottom: none; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Toast ===== */
.toast {
  position: fixed; top: -80px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px;
  z-index: 200; transition: top .35s ease; box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.toast.show { top: 76px; }
.toast-check { color: #4ADE80; }

/* ===== Cart ===== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.cart-overlay.show { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--surface); border-radius: 20px 20px 0 0;
  max-height: 80vh; display: flex; flex-direction: column;
  transform: translateY(110%); transition: transform .35s ease;
  box-shadow: 0 -8px 30px rgba(0,0,0,.15);
}
.cart-drawer.open { transform: translateY(0); }
.cart-handle { width: 40px; height: 4px; background: #E5D7C2; border-radius: 999px; margin: 10px auto; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 12px; }
.cart-header button { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); }
.cart-items { overflow-y: auto; padding: 0 20px; flex: 1; }
.cart-empty { text-align: center; color: var(--muted); padding: 30px 0; }
.ci { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F2E6D2; }
.ci-name { flex: 1; font-size: 14px; }
.ci-qty { display: flex; align-items: center; gap: 8px; }
.ci-qty button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #E5D7C2; background: var(--bg); cursor: pointer; }
.ci-price { font-size: 13px; font-weight: 600; min-width: 90px; text-align: right; direction: ltr; unicode-bidi: embed; }
.cart-footer { padding: 14px 20px 20px; border-top: 1px solid #F2E6D2; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 12px; }
#cart-total { direction: ltr; unicode-bidi: embed; }
.whatsapp-btn {
  width: 100%; padding: 14px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, #25D366, #128C7E); color: #fff;
  font-weight: 700; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ===== Bottom nav ===== */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: var(--bottom-nav); background: var(--surface);
  border-top: 1px solid #F0E2CB; display: flex;
  box-shadow: 0 -2px 10px rgba(0,0,0,.05);
}
.bn-link {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 18px; background: none; border: none; cursor: pointer;
  color: var(--text); text-decoration: none; position: relative;
}
.bn-link span:last-child { font-size: 10px; font-weight: 600; }
.bn-link .badge { top: -2px; right: 22px; }

@media (min-width: 900px) {
  .bottom-nav { display: none; }
  .site-footer { margin-bottom: 0; }
}

/* ===== Footer ===== */
.site-footer {
  text-align: center; padding: 32px 16px; background: #FBF0DE;
  margin-bottom: var(--bottom-nav);
}
.footer-logo { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 10px; }
.footer-phone {
  font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 4px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.footer-phone .material-symbols-outlined { font-size: 16px; }
.footer-tag { font-size: 13px; color: var(--muted); }
