*, *::before, *::after { box-sizing: border-box; }
:root {
  font-family: Arial, sans-serif;
  color: #173b20;
  background: #fff9e9;
}

body {
  margin: 0;
}

header {
  background: #ffcf00;
  padding: 40px 20px;
  text-align: center;
}

main {
  max-width: 700px;
  margin: auto;
  padding: 20px;
}

section {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.restaurant-logo {
  display: block;
  width: 280px;
  max-width: 85%;
  height: auto;
  margin: 0 auto 15px;
}

header {
  background: linear-gradient(120deg, #ffcf00, #8cc900);
}


.category-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 15px 20px;
  background: #fff9e9;
  position: sticky;
  top: 0;
  z-index: 10;
  scrollbar-width: thin;
}

.category-nav button {
  flex: 0 0 auto;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  background: white;
  color: #07552b;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px #00000015;
}

.category-nav button:hover,
.category-nav button:focus-visible {
  background: #07552b;
  color: white;
}

section {
  scroll-margin-top: 85px;
}

html {
  scroll-behavior: smooth;
}


/* Mobile layout improvements */
@media (max-width: 600px) {
  header {
    padding: 25px 15px;
  }

  .restaurant-logo {
    width: 240px;
    max-width: 90%;
  }

  h1 {
    font-size: 1.4rem;
    margin: 10px 0 0;
  }

  main {
    padding: 12px;
  }

  section {
    padding: 18px 15px;
    margin-bottom: 14px;
  }

  h2 {
    font-size: 1.35rem;
  }

  .menu-item {
    font-size: 1rem;
    padding: 12px 4px;
    align-items: center;
  }

  .category-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
  
    width: 100%;
    max-width: 100%;
  
    overflow-x: auto;
    overflow-y: hidden;
  
    padding: 15px 20px;
    background: #fff9e9;
  
    position: sticky;
    top: 0;
    z-index: 10;
  
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: thin;
  }

  .category-nav button {
    flex: 0 0 auto;
    white-space: nowrap;
  
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
  
    background: white;
    color: #07552b;
  
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
  }

  
}

/* PublicMenu - Restaurant branding */

.restaurant-header {
  background: linear-gradient(
    135deg,
    #ffe04b 0%,
    #ffcf00 45%,
    #91c900 100%
  );

  padding: 24px 16px 20px;
  text-align: center;
}

.restaurant-logo {
  display: block;
  width: 260px;
  max-width: 85%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.restaurant-subtitle {
  display: inline-block;
  margin: 8px 0 0;
  padding: 7px 18px;
  border-radius: 20px;
  background: #ffffffcc;
  color: #07552b;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .restaurant-header {
    padding: 18px 12px 16px;
  }

  .restaurant-logo {
    width: 220px;
    max-width: 85%;
  }

  .restaurant-subtitle {
    font-size: 0.8rem;
  }

  
}

/* Category food photographs */

.category-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin: 12px 0 18px;
}

@media (max-width: 600px) {
  .category-image {
    height: 180px;
    border-radius: 10px;
  }
}


/* Hide category scrollbar while keeping swipe navigation */

.category-nav {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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


/* Compact restaurant header on mobile */

@media (max-width: 600px) {
  .restaurant-header {
    padding: 12px 12px 14px;
  }

  .restaurant-logo {
    width: 190px;
    max-width: 80%;
  }

  .restaurant-subtitle {
    margin-top: 4px;
    padding: 5px 14px;
    font-size: 0.75rem;
  }
}
