@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Montserrat:wght@300;500&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background: #111;
  color: #eee;
  overflow-x: hidden;
}

h1, h2, .subcat {
  font-family: 'Dancing Script', cursive;
  color: #f9d342;
  text-align: center;
  margin: 0.5em 0;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 6px;
}

.hero-section {
  background-size: cover;
  background-position: center;
  padding: 200px 20px;
  color: #fff;
  text-align: center;
  transition: background-image 1s ease-in-out;
}

.hero-content {
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 10px;
  display: inline-block;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 0.5em;
}

.hero-section p {
  font-size: 1.3rem;
}

.menu-page {
  display: flex;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  overflow-y: auto;
  background: #111;
  padding-top: 100px;
  z-index: 1000;
}

.menu-content {
  margin-left: 220px;
  padding: 20px;
  flex: 1;
}

.menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 10px;
}

.menu-nav li {
  margin-bottom: 8px;
}

.menu-nav a {
  color: #eee;
  text-decoration: none;
  font-size: 1rem;
  display: block;
  padding: 5px;
}

.menu-nav .active, .menu-nav a:hover {
  color: #f9d342;
  background: rgba(249, 211, 66, 0.1);
  border-radius: 4px;
}

.menu-nav li.subnav a {
  font-size: 0.9rem;
  margin-left: 15px;
  color: #ccc;
}

.menu-nav li.subnav a:hover {
  color: #f9d342;
}

.menu-section {
  margin-bottom: 40px;
}

.container {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  padding: 30px;
}

.menu-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-items li {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  margin: 10px 0;
  padding: 15px;
  overflow: visible;
}

.menu-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  flex-wrap: nowrap;
}

.menu-item-img {
  width: 120px;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  border-radius: 6px;
  margin-left: 20px;
  flex-shrink: 0;
}

.item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.item-name {
  font-size: 1.1rem;
  margin-bottom: 0.2em;
}

.item-price {
  font-size: 1rem;
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.before-price {
  color: #bbb;
  text-decoration: line-through;
}

.after-price {
  color: #f9d342;
  font-weight: bold;
}

.save-badge {
  background-color: #f9d342;
  color: #111;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.price {
  color: #f9d342;
  font-weight: 500;
}

.vote-section {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.heart-btn {
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 8px;
}

.heart-icon {
  width: 24px;
  height: 24px;
  filter: invert(90%) sepia(10%) saturate(500%) hue-rotate(330deg);
}

.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #f9d342;
  color: #111;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: transform 0.2s ease, background 0.3s ease;
}

.floating-cta:hover {
  background: #eee;
  transform: scale(1.05);
}

.submenu {
  list-style: none;
  padding-left: 15px;
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.submenu.collapsed {
  max-height: 0;
  padding: 0;
  margin: 0;
}

.menu-category > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #eee;
  text-decoration: none;
  font-size: 1rem;
  padding: 5px 10px;
  cursor: pointer;
}

.menu-category > a:hover {
  background: rgba(249, 211, 66, 0.1);
  border-radius: 4px;
  color: #f9d342;
}

.item-description {
  font-size: 0.95rem;
  color: #ccc;
  margin: 5px 0;
  font-style: italic;
  line-height: 1.4;
}

.item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.item-link:hover .item-info {
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

/* ------------------- Responsive Design ------------------- */
@media(max-width: 768px) {
  .hero-section {
    padding: 140px 15px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }

  .menu-page {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .menu-content {
    margin-left: 0;
    padding: 15px;
  }

  .menu-item-row {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }

  .menu-item-img {
    width: 100px;
    max-height: 100px;
    margin-left: 15px;
  }

  .floating-cta {
    padding: 10px 16px;
    font-size: 1rem;
    bottom: 15px;
    right: 15px;
  }

  .menu-nav a {
    font-size: 1rem;
    text-align: left;
  }
}

@media(max-width: 430px) {
  .hero-section {
    padding: 100px 10px;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .menu-item-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .menu-item-img {
    width: 90%;
    max-height: unset;
    margin: 10px 0 0 0;
  }

  .item-info {
    text-align: center;
    width: 100%;
  }

  .item-name {
    font-size: 0.95rem;
  }

  .item-description {
    font-size: 0.9rem;
  }

  .item-price {
    font-size: 0.95rem;
  }

  .floating-cta {
    padding: 8px 14px;
    font-size: 0.9rem;
    bottom: 10px;
    right: 10px;
  }
}
