/**
 * Theme tokens — update these to match the restaurant brand.
 */
:root {
  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-text: #1c1917;
  --color-text-muted: #57534e;
  --color-border: #e7e5e4;
  --color-accent: #0d9488;
  --color-accent-hover: #0f766e;
  --color-pedido: #15803d;
  --color-pedido-hover: #166534;
  --color-pedido-soft: rgba(21, 128, 61, 0.14);
  --color-navbar-bg: rgba(255, 255, 255, 0.92);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08);
  --radius-card: 0.75rem;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html {
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
}

.navbar {
  backdrop-filter: blur(10px);
  background-color: var(--color-navbar-bg) !important;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  min-width: 0;
}

.navbar-brand .brand-text {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(0.74rem, 2.4vw, 1rem);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.35rem;
  object-fit: contain;
  flex-shrink: 0;
}

/* Mobile / tablet: collapse full width below brand + pedido + toggler */
.navbar-main-collapse {
  flex-basis: 100%;
}

@media (min-width: 992px) {
  .navbar-main-collapse {
    flex-basis: auto;
  }
}

/* Pedido / order — distinct from default nav links */
.nav-link-pedido {
  color: var(--color-pedido) !important;
  background-color: var(--color-pedido-soft);
  font-weight: 600;
  border: 1px solid rgba(21, 128, 61, 0.28);
}

.nav-link-pedido:hover,
.nav-link-pedido:focus {
  color: var(--color-pedido-hover) !important;
  background-color: rgba(21, 128, 61, 0.2);
}

.nav-pedido-badge {
  font-size: 0.65rem;
  min-width: 1.15rem;
  padding: 0.25em 0.45em;
  background-color: var(--color-pedido) !important;
  color: #fff !important;
  position: static;
  transform: none;
}

.min-w-badge-cart {
  min-width: 2.5rem;
}

/* Menu cards — full-bleed media with text overlay */
.menu-card--overlay {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 17rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.menu-card--overlay:hover {
  box-shadow: var(--shadow-md);
}

.menu-card__media {
  position: absolute;
  inset: 0;
  background: #1c1917;
  overflow: hidden;
}

.menu-card__media img,
.menu-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
}

.menu-card__media video {
  background: #000;
}

.menu-card__media video[data-lazy-video] {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.menu-card__media video[data-lazy-video].is-ready {
  opacity: 0.88;
}

.menu-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.35) 42%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.menu-card__body {
  position: relative;
  z-index: 2;
  min-height: 17rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.menu-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.menu-card__desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.menu-card__actions-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.menu-card__allergens-btn {
  cursor: pointer;
  white-space: nowrap;
}

.btn-allergen {
  background-color: #f6ad55;
  border-color: #f6ad55;
  color: #fff;
}

.btn-allergen:hover,
.btn-allergen:focus {
  background-color: #ed8936;
  border-color: #ed8936;
  color: #fff;
}

.menu-card--overlay .btn-allergen {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.allergen-info {
  background: #fffaf2;
  border: 1px solid #fed7aa;
}

.allergen-list {
  margin: 0;
  padding-left: 1rem;
}

.allergen-list li {
  margin-bottom: 0.35rem;
}

.menu-card__price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.menu-card__media .media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Phones & small tablets: taller cards (~2/3 viewport) */
@media (max-width: 991.98px) {
  .menu-card--overlay,
  .menu-card__body {
    min-height: 66.666vh;
  }
}

.cart-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

.cart-row {
  border-bottom: 1px solid var(--color-border);
}

.cart-row:last-child {
  border-bottom: none;
}

.btn-accent {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

.menu-card--overlay .btn-accent {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.badge-cart {
  font-size: 0.7rem;
  min-width: 1.25rem;
}

.hero-strip {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-restaurant-title {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}

.category-dropdown-menu {
  max-height: min(70vh, 26rem);
  overflow-y: auto;
}

.category-nav-dropdown .dropdown-toggle::after {
  margin-inline-start: 0.35em;
}

.navbar-lang-dropdown .navbar-lang-btn {
  white-space: nowrap;
  padding-inline: 0.45rem 0.35rem;
}

.navbar-lang-dropdown .current-lang-flag {
  font-size: 1.35rem;
  line-height: 1;
}

.navbar-lang-dropdown .dropdown-item .lang-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.section-title {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.price-tag {
  font-weight: 600;
  color: var(--color-accent);
}

.footer-tuinsta-logo-link {
  line-height: 0;
  opacity: 0.92;
}

.footer-tuinsta-logo-link:hover {
  opacity: 1;
}

.footer-tuinsta-logo {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.footer-credit a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  color: var(--color-accent-hover);
}

.footer-rights {
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.45;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
