:root {
  --primary: #0066A6;
  --secondary: #FFDE59;
  --neutral: #F5F5F5;
  --accent: #333333;
}

.menu-page {
  background: #fff8f4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .category-scroll {
    gap: 15px;
    padding: 0 10px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  .category-item {
    font-size: 16px;
    padding: 10px 8px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
    touch-action: manipulation;
  }
  .cat-scroll-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
  }
  .cat-scroll-btn i {
    font-size: 14px;
  }
  .category-wrapper {
    gap: 6px;
  }
}

.menu-heading {
  padding: 60px 0 30px;
  text-align: center;
}
.menu-heading h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.menu-heading p {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #555;
}

.menu-category-bar {
  padding: 20px 0 40px;
}
.category-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.category-scroll {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar {
  display: none;
}
.category-item {
  border: none;
  background: transparent;
  padding: 12px 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #777;
  position: relative;
  cursor: pointer;
  transition: color 0.25s ease;
}
.category-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 3px;
  background: #e31b23;
  transition: width 0.25s ease;
}
.category-item:hover {
  color: var(--primary);
}
.category-item.active {
  color: var(--primary);
}
.category-item.active::after {
  width: 100%;
}
.cat-scroll-btn {
  border: none;
  background: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cat-scroll-btn i {
  font-size: 16px;
  color: var(--accent);
}

.menu-section {
  padding: 40px 0 60px;
}
.menu-section-title {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #111;
  margin-bottom: 32px;
}

/* Subcategory heading + block spacing */
.menu-subsection {
  margin: 10px 0 36px;
}
.menu-subsection-title {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #111;
  margin: 6px 0 16px;
  padding-left: 20px; /* align with card inner padding */
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.menu-card {
  position: relative;
  background: transparent;
  border-radius: 16px;
  height: 460px;
  overflow: hidden;
  transition: 0.35s ease-in-out;
}

.set-menu-card {
  height: 600px;
}

.menu-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFDE59;
  transition: top 0.45s ease;
  z-index: 0;
}

.menu-card:hover::before {
  top: 0;
}

.menu-card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 15px 20px;
}

.menu-card-heart {
  position: absolute;
  top: 22px;
  left: 28px;
  width: 42px;
  height: 42px;
  background: #000;
  border-radius: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-card-heart i {
  color: #fff;
  font-size: 17px;
}

.menu-card-image {
  width: 100%;
  min-height: 215px;
  background: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  margin-bottom: 20px;
  transition: 0.35s ease;
  position: relative;
  z-index: 2;
}

.menu-card-image img {
  width: 201px;
  height: 201px;
  object-fit: contain;
  margin: auto;
  transition: 0.35s ease;
}

.menu-card:hover .menu-card-image {
  background: transparent;
  box-shadow: none;
}

.menu-card-price {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}

.menu-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}
.menu-card:hover .menu-card-price {
  margin-top: -40px;
}

.set-menu-card:hover .menu-card-price {
  margin-top: -40px;
}

.menu-card-desc {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  color: #444;
  line-height: 1.45;
  height: 60px;
  overflow: hidden;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  height: auto;
  min-height: 42px;
  font-weight: 400;
}



.menu-card:hover .menu-card-title,
.menu-card:hover .menu-card-price,
.menu-card:hover .menu-card-desc {
  color: #000;
}

.menu-card:hover .menu-card-rating i {
  color: #000;
}

@media (max-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-subsection-title {
    font-size: 22px;
    font-weight: 800;
    padding-left: 12px;
    margin: 8px 0 14px;
  }
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .menu-heading h1 {
    font-size: 38px;
  }

  .menu-section {
    padding: 30px 0 50px;
  }

  .menu-section-title {
    font-size: 32px;
  }
  .category-wrapper {
    gap: 8px;
  }
  .category-scroll {
    gap: 18px;
  }
  .category-item {
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  .menu-heading {
    padding: 40px 0 20px;
  }

  .menu-heading h1 {
    font-size: 32px;
  }

  .menu-heading p {
    font-size: 15px;
  }

  .menu-category-bar {
    padding: 15px 0 30px;
  }

  .category-item {
    font-size: 18px;
  }

  .menu-section-title {
    font-size: 28px;
  }

  .menu-card {
    height: auto;
    min-height: 400px;
  }

  .menu-card-image {
    min-height: 180px;
    padding: 20px 15px;
  }

  .menu-card-image img {
    width: 160px;
    height: 160px;
  }

  .menu-grid {
    gap: 20px;
  }
}

@media (min-width: 1025px) {
  #cat-chicken .menu-subsection + .menu-subsection { margin-top: 40px; }
}

.set-menu-card .menu-card-title.set-menu-id {
  font-size: 28px;
  margin-bottom: 6px;
  transition: margin-top 0.35s ease-in-out;
}

.set-menu-card .menu-card-price {
  margin-bottom: 14px;
  transition: margin-top 0.35s ease-in-out;
}

.set-menu-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.set-menu-item {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  color: #000;
  line-height: 1.4;
  font-weight: 700;
}