.menu-section{
    padding: 4rem 5%;
    background: var(--light -bg);
    min-height: 60vh;
}

/* HIỆU ỨNG NHÃN */
.menu-item-badge{
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse{
    0%,100%{
        transform: scale(1);
    }
    50%{
        transform: scale(1.05);
    }
}

.menu-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Grid 4 cột */
.menu-section .menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ===== CARD ===== */
.menu-item {
  background-color: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ===== BADGE (Bán Chạy / Mới / Đặc Biệt) ===== */
.menu-item-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background-color: #e74c3c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Badge màu khác cho từng loại */
.menu-item[data-category="cold"] .menu-item-badge {
  background-color: #2980b9;
}

.menu-item[data-category="special"] .menu-item-badge {
  background-color: #c8956c;
}

/* ===== ẢNH ===== */
.menu-item-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f0e8df;
}

.menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.menu-item:hover .menu-item-image img {
  transform: scale(1.05);
}

/* Icon khi chưa có ảnh */
.menu-item-image .coffe-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  opacity: 0.4;
  pointer-events: none;
}

/* Ẩn icon khi ảnh load thành công */
.menu-item-image img[src]:not([src=""]) + .coffe-icon {
  display: none;
}

/* ===== NỘI DUNG CARD ===== */
.menu-item-conten {
  padding: 1rem 1.1rem 1.2rem;
}

.menu-item-conten h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2c1a0e;
  margin-bottom: 0.4rem;
}

.menu-item-conten p {
  font-size: 0.83rem;
  color: #888;
  line-height: 1.55;
  margin-bottom: 1rem;
  min-height: 52px;   /* giữ chiều cao đều nhau */
}

/* ===== FOOTER CARD: giá + nút ===== */
.menu-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.menu-item-footer .price {
  font-size: 1rem;
  font-weight: 700;
  color: #c8956c;
}

.btn-add {
  background-color: #3b2314;
  color: #fff;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.15s;
}

.btn-add:hover {
  background-color: #c8956c;
  transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .menu-section .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-section .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .menu-section .menu-grid {
    grid-template-columns: 1fr;
  }
}