:root {
  --cream: #f4eadc;
  --cream-strong: #ead7c4;
  --card: #fffaf4;
  --text: #1c1713;
  --muted: #76675c;
  --gold: #b98a33;
  --gold-dark: #8f6420;
  --brown: #5d3d27;
  --line: rgba(93, 61, 39, 0.14);
  --shadow: 0 18px 45px rgba(93, 61, 39, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(185, 138, 51, 0.13), transparent 34rem),
    linear-gradient(180deg, var(--cream) 0%, #fff8ef 100%);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding-bottom: 5rem;
}

.hero {
  position: relative;
  padding: 1.1rem 1rem 1.5rem;
  background: linear-gradient(180deg, var(--cream-strong), rgba(244, 234, 220, 0.76));
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
  mix-blend-mode: multiply;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 12rem;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(40px);
  pointer-events: none;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  min-height: 3rem;
}

.icon-button {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(93, 61, 39, 0.58);
  box-shadow: 0 10px 24px rgba(56, 40, 30, 0.16);
  font-size: 1.35rem;
  transition: transform 180ms ease, background 180ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--brown);
  transform: translateY(-2px);
}

.brand {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  padding: 0.35rem 0 1.15rem;
}

.brand-logo {
  width: min(13rem, 56vw);
  height: auto;
}

.brand-kicker,
.eyebrow {
  margin: 0;
  color: var(--gold-dark);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 9vw, 4.5rem);
  line-height: 0.96;
  color: var(--brown);
}

.language-control {
  position: relative;
  z-index: 1;
  display: block;
  width: min(15.5rem, 72vw);
  margin: 0 auto;
}

.language-control select {
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 3rem 0.95rem 1.25rem;
  color: var(--text);
  background: #fff;
  box-shadow: 0 12px 25px rgba(64, 43, 30, 0.14);
  font-weight: 800;
}

.language-control::after {
  content: "⌄";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-56%);
  color: var(--brown);
  font-size: 1.25rem;
  pointer-events: none;
}

.search-panel {
  padding: 1rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 1rem;
  background: rgba(255, 250, 244, 0.88);
  box-shadow: 0 10px 28px rgba(93, 61, 39, 0.08);
  backdrop-filter: blur(12px);
}

.search-box span,
.search-box i {
  color: var(--gold-dark);
  font-size: 1.35rem;
}

.search-box input {
  width: 100%;
  min-height: 3.25rem;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-weight: 700;
}

.category-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(244, 234, 220, 0.9);
  border-block: 1px solid rgba(93, 61, 39, 0.08);
  backdrop-filter: blur(16px);
}

.category-tabs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.8rem 1rem;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.1rem;
  color: var(--brown);
  background: rgba(255, 255, 255, 0.52);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.category-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 12px 26px rgba(143, 100, 32, 0.23);
}

.category-tab:focus-visible {
  outline: 3px solid rgba(185, 138, 51, 0.35);
}

.menu-section {
  padding: 1.15rem 1rem 0;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0.18rem 0 0;
  color: var(--brown);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.15rem, 11vw, 4rem);
  line-height: 1;
}

.products-grid,
.skeleton-grid {
  display: grid;
  gap: 0.95rem;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.95rem;
  min-height: 9rem;
  padding: 0.75rem;
  border: 1px solid rgba(93, 61, 39, 0.08);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 16px 34px rgba(93, 61, 39, 0.1);
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  animation: cardIn 420ms ease forwards;
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-card img {
  width: 100%;
  height: 100%;
  min-height: 7.5rem;
  object-fit: cover;
  border-radius: 18px;
  background: #eadfd2;
}

.product-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.2rem 0.15rem 0.2rem 0;
}

.product-info h3 {
  margin: 0;
  font-size: clamp(1.12rem, 4.8vw, 1.45rem);
  line-height: 1.16;
}

.product-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.price {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 900;
}

.allergens {
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 0.34rem 0.65rem;
  color: #fff;
  background: linear-gradient(135deg, #c94937, #a93227);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card .badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.empty-state {
  margin-top: 1rem;
  padding: 2rem 1.2rem;
  border: 1px dashed rgba(93, 61, 39, 0.22);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 250, 244, 0.65);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brown);
  font-size: 1.15rem;
}

.skeleton-card {
  height: 9rem;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.42));
  background-size: 220% 100%;
  animation: shimmer 1.2s infinite linear;
}

.skeleton-grid.hidden {
  display: none;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 8;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--brown);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
  background: rgba(28, 23, 19, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.product-sheet {
  width: min(100%, 720px);
  max-height: 88vh;
  margin: 0 auto;
  overflow: auto;
  border-radius: 30px 30px 0 0;
  background: var(--card);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 260ms ease;
}

.modal-overlay.open .product-sheet {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 1;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-size: 1.7rem;
}

.modal-image {
  width: 100%;
  height: min(48vh, 24rem);
  object-fit: cover;
  background: #eadfd2;
}

.modal-content {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem 1.1rem 1.35rem;
}

.modal-content h3 {
  margin: 0;
  color: var(--brown);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  line-height: 1.05;
}

.modal-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.detail-row strong {
  color: var(--text);
  font-size: 1.55rem;
}

.whatsapp-order {
  display: flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2fb15f, #178846);
  box-shadow: 0 12px 28px rgba(23, 136, 70, 0.2);
  font-weight: 900;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (min-width: 720px) {
  .hero {
    border-radius: 0 0 34px 34px;
    padding-inline: 2rem;
  }

  .products-grid,
  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    grid-template-columns: 9rem 1fr;
  }

  .search-panel,
  .category-tabs,
  .menu-section {
    padding-inline: 2rem;
  }
}

/* Accordion menu overrides */
.language-control::after {
  content: none;
}

.flag-switcher {
  display: flex;
  width: fit-content;
  max-width: calc(100% - 2rem);
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid rgba(93, 61, 39, 0.1);
  border-radius: 999px;
  padding: 0.38rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(64, 43, 30, 0.13);
  backdrop-filter: blur(16px);
}

.language-flag-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background 180ms ease, box-shadow 180ms ease;
}

.language-flag-button .fi {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background-size: cover;
  box-shadow: 0 4px 10px rgba(93, 61, 39, 0.13);
}

.language-flag-button:hover,
.language-flag-button:focus-visible {
  background: rgba(185, 138, 51, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.language-flag-button.active {
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(185, 138, 51, 0.45), 0 8px 18px rgba(93, 61, 39, 0.12);
}

.language-flag-button.active .fi {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 7px 14px rgba(93, 61, 39, 0.16);
}

.brand-logo {
  width: min(16rem, 68vw);
  max-height: 7rem;
  object-fit: contain;
  transform-origin: center;
  animation: logoBreath 4.8s ease-in-out infinite;
}

.brand h1 {
  font-size: clamp(1.65rem, 7vw, 3.2rem);
}

.icon-button {
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.search-box span,
.search-box i {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-box i {
  width: 1.2rem;
  font-size: 1rem;
  text-align: center;
}

.back-to-top,
.modal-close,
.accordion-icon {
  line-height: 1;
}

.whatsapp-order i {
  margin-right: 0.45rem;
}

.menu-section {
  padding-top: 0.35rem;
}

.category-accordion {
  display: grid;
  gap: 0.95rem;
}

.accordion-item {
  scroll-margin-top: 0.75rem;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 250, 244, 0.8);
  box-shadow: 0 18px 38px rgba(93, 61, 39, 0.12);
}

.accordion-cover {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 8.4rem;
  align-items: end;
  border: 0;
  border-radius: 26px;
  padding: 1.1rem;
  overflow: hidden;
  color: #fff;
  background-image: var(--cover-image);
  background-position: center;
  background-size: cover;
  cursor: pointer;
  text-align: left;
  isolation: isolate;
}

.accordion-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--cover-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: transform 280ms ease;
}

.accordion-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(28, 23, 19, 0.76), rgba(28, 23, 19, 0.32) 58%, rgba(28, 23, 19, 0.08)),
    linear-gradient(0deg, rgba(28, 23, 19, 0.42), transparent 55%);
}

.accordion-item.open .accordion-cover::before,
.accordion-cover:hover::before {
  transform: scale(1.07);
}

.accordion-title {
  max-width: 78%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 10vw, 4.2rem);
  font-weight: 800;
  line-height: 0.95;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.accordion-count {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accordion-icon {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  font-size: 1.5rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.accordion-panel {
  padding: 0.9rem 0.72rem 0.85rem;
  animation: panelIn 240ms ease both;
}

.accordion-panel .products-grid {
  gap: 0.72rem;
}

.accordion-panel .product-card {
  box-shadow: none;
  border-color: rgba(93, 61, 39, 0.1);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoBreath {
  0%,
  100% {
    filter: drop-shadow(0 10px 18px rgba(93, 61, 39, 0.09));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 16px 26px rgba(185, 138, 51, 0.16));
    transform: scale(1.012);
  }
}
