:root {
  --bg: #fdf8ef;
  --bg-soft: #f6ead4;
  --card: #ffffff;
  --card-border: #ecdec4;
  --gold: #e8720c;
  --gold-soft: #f4a13f;
  --green: #2f6b3a;
  --green-soft: #438a4f;
  --text: #332a1f;
  --text-muted: #8c7f6a;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
}

.font-display {
  font-family: "Playfair Display", "Georgia", serif;
}

.accent {
  color: var(--gold);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 600;
}

.btn-gold:hover,
.btn-gold:focus {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: #fff;
}

/* ---------- Welcome splash ---------- */
.welcome-splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(253, 248, 239, 0.4), rgba(253, 248, 239, 0.98)),
    radial-gradient(circle at 50% 30%, #fbe4bd 0%, #fdf8ef 70%);
  opacity: 1;
  transition: opacity 0.5s ease;
}

.welcome-splash.welcome-splash-hide {
  opacity: 0;
  pointer-events: none;
}

.welcome-splash-inner {
  max-width: 480px;
}

.splash-icon {
  font-size: 2.75rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.splash-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.splash-title {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  color: var(--text);
  margin-bottom: 0;
}

.splash-sub {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

body.splash-active {
  overflow: hidden;
}

/* ---------- Navbar ---------- */
.navbar-resto {
  background: rgba(253, 248, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}

.navbar-resto .navbar-brand {
  color: var(--green) !important;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.navbar-resto .navbar-brand i {
  color: var(--gold);
}

/* ---------- Hero ---------- */
.hero-resto {
  background:
    linear-gradient(180deg, rgba(253, 248, 239, 0.5), rgba(253, 248, 239, 0.97)),
    radial-gradient(circle at 50% 0%, #fbe4bd 0%, #fdf8ef 70%);
  padding: 6.5rem 1rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
}

.hero-resto h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--text);
}

.hero-resto .accent {
  color: var(--gold);
}

.hero-resto p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.divider-gold {
  width: 70px;
  height: 3px;
  background: var(--gold);
  margin: 1.25rem auto;
  border-radius: 2px;
}

/* ---------- Menu search bar ---------- */
.menu-search-bar {
  position: sticky;
  top: 56px;
  z-index: 1031;
  background: rgba(253, 248, 239, 0.97);
  padding: 0.85rem 0;
}

/* ---------- Category filter ---------- */
.category-filter {
  position: sticky;
  top: 140px;
  z-index: 1030;
  background: rgba(253, 248, 239, 0.97);
  padding: 1rem 0;
}

.category-filter .nav-pills {
  flex-wrap: wrap;
}

.category-filter .nav-pills .nav-link {
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  margin: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: #fff;
  white-space: nowrap;
}

.category-filter .nav-pills .nav-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.category-filter .nav-pills .nav-link.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ---------- Menu cards ---------- */
.menu-section {
  padding: 2.5rem 0;
}

.menu-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(51, 42, 31, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.menu-card:hover,
.menu-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgba(51, 42, 31, 0.16);
  outline: none;
}

.menu-info-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(51, 42, 31, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.menu-gallery-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(51, 42, 31, 0.6);
  color: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.menu-card .menu-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f6ead4, #fdf8ef);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.menu-card .menu-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-card .menu-placeholder-icon {
  font-size: 2.6rem;
  color: var(--card-border);
}

.menu-card .menu-body {
  padding: 1.25rem 1.25rem 1.4rem;
}

.menu-card .menu-title {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.menu-card .menu-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  font-family: "Playfair Display", serif;
}

.menu-category-block {
  margin-bottom: 3.5rem;
}

.menu-category-block:last-child {
  margin-bottom: 1.5rem;
}

.category-heading {
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.6rem;
  margin-bottom: 1.75rem;
}

.category-heading .category-title {
  color: var(--green);
}

.category-heading .category-title i {
  color: var(--gold);
}

.category-heading .scroll-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

/* ---------- Horizontal scrolling menu row ---------- */
.menu-scroll-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 0.5rem 1.5rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
}

.menu-scroll-row::-webkit-scrollbar {
  height: 7px;
}

.menu-scroll-row::-webkit-scrollbar-track {
  background: transparent;
}

.menu-scroll-row::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 4px;
}

.menu-scroll-row::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.menu-card-wrap {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: start;
}

@media (max-width: 767.98px) {
  .menu-card-wrap {
    width: 200px;
  }
}

@media (max-width: 575.98px) {
  .menu-card-wrap {
    width: 168px;
  }

  .menu-card .menu-body {
    padding: 0.85rem 0.9rem 1rem;
  }

  .menu-card .menu-title {
    font-size: 0.92rem;
  }
}

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 4rem 1rem;
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 1040;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 20px rgba(51, 42, 31, 0.3);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  color: #fff;
  transform: scale(1.08);
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: whatsapp-pulse 2.4s infinite;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float.whatsapp-float-raised {
  bottom: 5.25rem;
}

/* ---------- Menu search ---------- */
.menu-search-wrap {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

.menu-search-wrap input {
  border-radius: 999px;
  padding-left: 2.4rem;
  border: 1px solid var(--card-border);
}

.menu-search-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(232, 114, 12, 0.15);
}

.menu-search-wrap i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ---------- Promo / featured ribbons ---------- */
.menu-ribbons {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.menu-ribbon {
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.menu-ribbon-promo {
  background: #d64545;
}

.menu-ribbon-featured {
  background: var(--green);
}

.menu-price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin-right: 0.4rem;
}

/* ---------- Order control (add to order) ---------- */
.menu-order-control {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  z-index: 2;
}

.menu-order-control-inline {
  position: static;
  margin-top: 0.5rem;
}

.menu-order-add-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(51, 42, 31, 0.25);
}

.menu-order-add-btn:hover,
.menu-order-add-btn:focus {
  background: var(--gold-soft);
}

.menu-order-stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(51, 42, 31, 0.85);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
}

.menu-order-stepper button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}

.menu-order-stepper button:hover,
.menu-order-stepper button:focus {
  background: var(--gold-soft);
}

.menu-order-stepper span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 1rem;
  text-align: center;
}

/* ---------- Order cart bar ---------- */
.order-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1045;
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -6px 20px rgba(51, 42, 31, 0.25);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.order-cart-bar.order-cart-visible {
  transform: translateY(0);
}

.order-cart-summary {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.75);
}

.order-cart-summary:hover,
.order-cart-summary:focus {
  color: rgba(255, 255, 255, 0.95);
}

.order-cart-summary strong {
  color: var(--gold-soft);
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  display: block;
}

.order-cart-item {
  border-bottom: 1px solid var(--card-border);
}

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

@media (max-width: 575.98px) {
  .order-cart-bar {
    padding: 0.6rem 0.85rem;
  }

  .order-cart-summary {
    font-size: 0.75rem;
  }

  .order-cart-summary strong {
    font-size: 0.95rem;
  }
}

.menu-modal-link {
  color: var(--gold);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.menu-modal-link:hover {
  color: var(--gold-soft);
  text-decoration: underline;
}

.footer-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #1b9e4b;
  border: 1px solid rgba(37, 211, 102, 0.5);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.footer-whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.14);
  color: #1b9e4b;
}

/* ---------- Menu detail page ---------- */
.menu-detail-section {
  padding: 2.5rem 0 4rem;
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.back-link:hover {
  color: var(--gold);
}

.menu-detail-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f6ead4, #fdf8ef);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.menu-detail-img i {
  font-size: 5rem;
  color: var(--card-border);
}

.menu-detail-img .carousel,
.menu-detail-img .carousel-inner,
.menu-detail-img .carousel-item {
  width: 100%;
  height: 100%;
}

.menu-detail-img .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-detail-title {
  color: var(--text);
  margin: 0.75rem 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.menu-detail-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* ---------- Menu detail modal ---------- */
.menu-modal-content {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}

.menu-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  padding: 0.4rem;
  opacity: 1;
}

.menu-modal-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f6ead4, #fdf8ef);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.menu-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-modal-img i {
  font-size: 4rem;
  color: var(--card-border);
}

.menu-modal-img .carousel,
.menu-modal-img .carousel-inner,
.menu-modal-img .carousel-item {
  width: 100%;
  height: 100%;
}

.menu-carousel-indicators {
  margin-bottom: 0.6rem;
}

.menu-carousel-indicators [data-bs-target] {
  background-color: var(--gold);
}

.menu-carousel-control {
  opacity: 1;
  width: 18%;
}

.menu-carousel-arrow {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu-carousel-control:hover .menu-carousel-arrow,
.menu-carousel-control:focus .menu-carousel-arrow {
  background: var(--gold);
  color: #fff;
  transform: scale(1.08);
}

.menu-modal-content .modal-body {
  padding: 1.5rem 1.6rem 1.75rem;
}

.badge-category {
  display: inline-flex;
  align-items: center;
  color: var(--green);
  background: rgba(47, 107, 58, 0.1);
  border: 1px solid rgba(47, 107, 58, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.menu-modal-title {
  color: var(--text);
  margin-bottom: 0.6rem;
}

.menu-modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.modal-backdrop.show {
  opacity: 0.6;
}

/* ---------- Footer ---------- */
.footer-resto {
  background: var(--bg-soft);
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-resto a {
  color: var(--gold);
  text-decoration: none;
}

.footer-resto-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: left;
}

.footer-resto-logo-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  line-height: 0;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(51, 42, 31, 0.08);
}

.footer-resto-logo {
  height: 42px;
  width: auto;
  display: block;
}

@media (max-width: 575.98px) {
  .footer-resto-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .hero-resto {
    padding: 5rem 1rem 3rem;
  }
}

/* ---------- Mobile: category filter moves to a bottom bar ---------- */
@media (max-width: 767.98px) {
  body {
    padding-bottom: 4.75rem;
  }

  .whatsapp-float {
    bottom: var(--wa-float-bottom, 5.5rem);
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .whatsapp-float.whatsapp-float-raised {
    bottom: calc(var(--wa-float-bottom, 5.5rem) + var(--order-cart-bar-height, 0px) + 16px);
  }

  .category-filter {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-bottom: none;
    border-top: 1px solid var(--card-border);
    box-shadow: 0 -6px 20px rgba(51, 42, 31, 0.15);
    padding: 0.6rem 0;
    transform: translateY(var(--category-filter-lift, 0px));
    transition: transform 0.3s ease;
  }

  .category-filter.category-filter-hidden {
    transform: translateY(100%);
  }

  .category-filter .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .category-filter .nav-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-filter .nav-pills::-webkit-scrollbar {
    display: none;
  }

  .category-filter .nav-pills .nav-link {
    flex: 0 0 auto;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
  }
}
