/* ============================================
   FOOD CARD COMPONENT
   ============================================ */

.food-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.food-card:active {
  transform: scale(0.97);
}

.food-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* --- Image --- */
.food-card__image {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.food-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.food-card:hover .food-card__image img {
  transform: scale(1.05);
}

/* --- Popular Badge --- */
.food-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Body --- */
.food-card__body {
  padding: var(--space-3);
}

.food-card__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  line-height: 1.3;

  /* Clamp to 2 lines max */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.food-card__price {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
}

/* --- Quick Add Button --- */
.food-card__add {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #ffffff;
  font-size: 20px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  line-height: 1;
}

.food-card__add:hover {
  background: var(--color-primary-dark);
}

.food-card__add:active {
  transform: scale(0.9);
}

/* --- Unavailable State --- */
.food-card--unavailable {
  opacity: 0.5;
  pointer-events: none;
}

.food-card--unavailable .food-card__badge {
  background: var(--color-text-light);
}

.food-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 30, 140, 0.06);
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.food-card:active::after {
  opacity: 1;
}