/* =============================================
   MENU.CSS — Menu Page Styles
   Gigi's Sweets & Treats
   ============================================= */

#menu-sections-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

/* ---- Section Block ---- */
.menu-section { margin-bottom: 50px; }

/* ---- Divider with Icon ---- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.divider-line {
  flex: 1;
  height: 1.5px;
  background: var(--mint);
  max-width: 200px;
}

.divider-icon { font-size: 1.4rem; }

/* ---- Section Title ---- */
.section-title {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-desc {
  text-align: center;
  font-size: 0.9rem;
  color: var(--brown-light);
  margin-bottom: 24px;
  font-style: italic;
}

/* ---- Menu Item Grid ---- */
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-items: start; /* cards don't stretch to match tallest neighbour */
}

/* ---- Individual Item Card ---- */
.menu-item-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 3px 14px var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  transition: transform 0.2s;
  align-self: start; /* never stretch to match taller neighbours */
}
.menu-item-card:hover { transform: translateY(-2px); }

/* Card with image stacks vertically */
.menu-item-card.has-image {
  flex-direction: column;
  padding: 0;
  gap: 0;
  overflow: hidden; /* only clip the rounded corners on the image wrapper */
}
.menu-item-card.has-image .menu-item-body {
  padding: 14px 16px 4px;
  flex: 1;
}
.menu-item-card.has-image .menu-item-price {
  padding: 0 16px 14px;
  align-self: flex-start;
}

.menu-item-img {
  width: 100%;
  height: 160px;       /* fixed height keeps cards uniform */
  display: block;
  object-fit: contain; /* shrinks image to fit — never crops */
  object-position: center;
  background: var(--cream);
  padding: 10px;
  box-sizing: border-box;
}

.menu-item-body { flex: 1; }

.menu-item-name {
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 4px;
}
.menu-item-desc {
  font-size: 0.82rem;
  color: var(--brown-light);
  line-height: 1.5;
}
.menu-item-price {
  font-weight: 800;
  color: var(--mauve);
  white-space: nowrap;
  font-size: 1rem;
}
