/* ── Horizontal List Card Refactor (Uber Eats / Talabat Style) ── */
.menu-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  padding: 0 !important;
  gap: 0 !important;
  background: #fff;
  border-radius: 12px !important;
  border: 1px solid var(--border, #f0f0f0) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
  overflow: hidden;
  position: relative;
  min-height: 100px;
  transform: none !important; /* Kill vertical hover lift */
}

.menu-item:active { background: #fafafa !important; }

/* ── Content Zone (Right) ── */
.menu-item .item-content {
  flex: 1; min-width: 0;
  padding: 12px 14px !important;
  display: flex; flex-direction: column;
  justify-content: space-between; gap: 6px;
}

.item-top { display: flex; flex-direction: column; gap: 4px; }

.item-name {
  font-weight: 700; font-size: var(--text-base, 15px) !important;
  color: var(--text, #111) !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}

.item-desc {
  font-size: var(--text-xs, 12px) !important;
  color: #666 !important;
  line-height: 1.4; margin: 0 !important;
  display: -webkit-box !important; -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
}

/* ── Bottom Row (Price & Button) ── */
.item-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
}

.item-bottom .item-price {
  font-weight: 700; font-size: var(--text-sm, 14px) !important;
  color: var(--green, var(--gold, var(--primary, #16a34a))) !important;
  background: none !important; border: none !important; padding: 0 !important;
}

.item-bottom .add-btn {
  width: 36px !important; height: 36px !important;
  border-radius: 50% !important;
  background: var(--green, var(--gold, var(--primary, #16a34a))) !important;
  color: white !important; border: none !important;
  display: flex !important; align-items: center; justify-content: center;
  padding: 0 !important; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
  transition: transform 0.15s cubic-bezier(.22,.68,0,1.2) !important;
  margin: 0 !important;
}

.item-bottom .add-btn:active { transform: scale(0.92) !important; }

/* ── Image Zone (Left) ── */
.item-img-wrapper {
  width: 90px; aspect-ratio: 1/1; flex-shrink: 0; position: relative;
  background: var(--surface-2, #f3f4f6);
}

.item-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Shimmer Loading */
.item-img-wrapper::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, #f3f4f6 30%, #e5e7eb 45%, #f3f4f6 60%);
  background-size: 300% 100%; animation: img-shimmer 1.5s ease infinite;
  transition: opacity 0.3s; z-index: 1;
}
.item-img-wrapper.loaded::before { opacity: 0; }
@keyframes img-shimmer { 100% { background-position: -200% 50%; } }

/* ── Mobile < 360px ── */
@media (max-width: 359px) {
  .menu-item .item-content { padding: 10px !important; }
  .item-img-wrapper { width: 80px; }
  .item-name { font-size: 14px !important; }
  .item-desc { -webkit-line-clamp: 1 !important; }
}
