.item-card {
  display: flex;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  cursor: pointer;
  min-width: 0;
}

.item-card.last {
  border-bottom: none;
}

.item-card.out-of-stock {
  opacity: 0.6;
  filter: grayscale(0.4);
}

.out-of-stock-badge {
  background-color: #f3f4f6;
  color: #6b7280;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  white-space: nowrap;
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.item-labels {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.veg-icon {
  width: 14px;
  height: 14px;
  border: 2px solid;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.veg-icon.veg {
  border-color: var(--green);
}

.veg-icon.non-veg {
  border-color: var(--red);
}

.veg-icon .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.veg-icon.veg .dot {
  background-color: var(--green);
}

.veg-icon.non-veg .dot {
  background-color: var(--red);
}

.bestseller-badge {
  background-color: #f5f0ff;
  color: #7c3aed;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  white-space: nowrap;
}

.item-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.item-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.rating-text {
  font-size: 0.75rem;
  color: var(--text-mid);
}

.item-description {
  font-size: 0.8rem;
  color: var(--text-mid);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.item-image-container {
  width: 100px;
  height: 100px;
  position: relative;
  margin-bottom: 14px;
  flex-shrink: 0;
}

@media (max-width: 360px) {
  .item-image-container {
    width: 80px;
    height: 80px;
  }
}

.item-image, .item-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background-color: var(--primary-light);
}

.item-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid var(--border);
}

.placeholder-icon {
  font-size: 1.8rem;
  opacity: 0.6;
}

.add-to-cart-container {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  min-width: 80px;
  display: flex;
  justify-content: center;
}

.add-button {
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary);
  width: 100%;
  transition: all 0.2s ease;
}

.add-button:hover {
  background-color: var(--primary-light);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
}

.quantity-controls button {
  width: 24px;
  height: 24px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary);
  min-width: 16px;
  text-align: center;
}

.limit-badge {
  background-color: #fef2f2;
  color: #ef4444;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid #fee2e2;
}

.at-limit button:last-child {
  opacity: 0.3;
  cursor: not-allowed;
  background-color: #f1f5f9;
}

.item-card.limit-reached {
  border-left: 3px solid #ef4444;
}
